Class: TalkService::GetConfigurations_args

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

Constant Summary collapse

REVISION =
2
REGIONOFUSIM =
3
REGIONOFTELEPHONE =
4
REGIONOFLOCALE =
5
CARRIER =
6
SYNCREASON =
7
FIELDS =
{
  REVISION => {:type => ::Thrift::Types::I64, :name => 'revision'},
  REGIONOFUSIM => {:type => ::Thrift::Types::STRING, :name => 'regionOfUsim'},
  REGIONOFTELEPHONE => {:type => ::Thrift::Types::STRING, :name => 'regionOfTelephone'},
  REGIONOFLOCALE => {:type => ::Thrift::Types::STRING, :name => 'regionOfLocale'},
  CARRIER => {:type => ::Thrift::Types::STRING, :name => 'carrier'},
  SYNCREASON => {:type => ::Thrift::Types::I32, :name => 'syncReason', :enum_class => ::J0_a_e_a_b_rg}
}

Instance Method Summary collapse

Instance Method Details

#struct_fieldsObject



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

def struct_fields; FIELDS; end

#validateObject



5822
5823
5824
5825
5826
# File 'lib/linerb/gen-rb/talk_service.rb', line 5822

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