Class: ContactModification

Inherits:
Object
  • Object
show all
Includes:
Thrift::Struct, Thrift::Struct_Union
Defined in:
lib/linerb/gen-rb/takagi_chan_types.rb,
lib/linerb/gen-rb/takagi_chan_types.rb

Constant Summary collapse

TYPE =
1
LUID =
2
PHONES =
11
EMAILS =
12
USERIDS =
13
MOBILECONTACTNAME =
14
PHONETICNAME =
15
FIELDS =
{
  TYPE => {:type => ::Thrift::Types::I32, :name => 'type', :enum_class => ::P0_a_e_a_b_gd},
  LUID => {:type => ::Thrift::Types::STRING, :name => 'luid'},
  PHONES => {:type => ::Thrift::Types::LIST, :name => 'phones', :element => {:type => ::Thrift::Types::STRING}},
  EMAILS => {:type => ::Thrift::Types::LIST, :name => 'emails', :element => {:type => ::Thrift::Types::STRING}},
  USERIDS => {:type => ::Thrift::Types::LIST, :name => 'userids', :element => {:type => ::Thrift::Types::STRING}},
  MOBILECONTACTNAME => {:type => ::Thrift::Types::STRING, :name => 'mobileContactName', :optional => true},
  PHONETICNAME => {:type => ::Thrift::Types::STRING, :name => 'phoneticName', :optional => true}
}

Instance Method Summary collapse

Instance Method Details

#struct_fieldsObject



13386
# File 'lib/linerb/gen-rb/takagi_chan_types.rb', line 13386

def struct_fields; FIELDS; end

#validateObject



13388
13389
13390
13391
13392
# File 'lib/linerb/gen-rb/takagi_chan_types.rb', line 13388

def validate
  unless @type.nil? || ::P0_a_e_a_b_gd::VALID_VALUES.include?(@type)
    raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field type!')
  end
end