Class: TalkService::GetRSAKeyInfo_args

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

Constant Summary collapse

PROVIDER =
2
FIELDS =
{
  PROVIDER => {:type => ::Thrift::Types::I32, :name => 'provider', :enum_class => ::J0_a_e_a_b_rc}
}

Instance Method Summary collapse

Instance Method Details

#struct_fieldsObject



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

def struct_fields; FIELDS; end

#validateObject



2942
2943
2944
2945
2946
# File 'lib/linerb/gen-rb/talk_service.rb', line 2942

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