Class: TalkService::FindAndAddContactsByMid_args

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

Constant Summary collapse

REQSEQ =
1
MID =
2
TYPE =
3
REFERENCE =
4
FIELDS =
{
  REQSEQ => {:type => ::Thrift::Types::I32, :name => 'reqSeq'},
  MID => {:type => ::Thrift::Types::STRING, :name => 'mid'},
  TYPE => {:type => ::Thrift::Types::I32, :name => 'type', :enum_class => ::P0_a_e_a_b_c9},
  REFERENCE => {:type => ::Thrift::Types::STRING, :name => 'reference'}
}

Instance Method Summary collapse

Instance Method Details

#struct_fieldsObject



3971
# File 'lib/linerb/gen-rb/talk_service.rb', line 3971

def struct_fields; FIELDS; end

#validateObject



3973
3974
3975
3976
3977
# File 'lib/linerb/gen-rb/talk_service.rb', line 3973

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