Class: ContactModification
- Inherits:
-
Object
- Object
- ContactModification
- 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 => ::J0_a_e_a_b_fd}, 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_fields ⇒ Object
12687 |
# File 'lib/linerb/gen-rb/takagi_chan_types.rb', line 12687 def struct_fields; FIELDS; end |
#validate ⇒ Object
12689 12690 12691 12692 12693 |
# File 'lib/linerb/gen-rb/takagi_chan_types.rb', line 12689 def validate unless @type.nil? || ::J0_a_e_a_b_fd::VALID_VALUES.include?(@type) raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field type!') end end |