Class: Hive2::Thrift::THandleIdentifier

Inherits:
Object
  • Object
show all
Includes:
Thrift::Struct, Thrift::Struct_Union
Defined in:
lib/thrift/t_c_l_i_service_types.rb

Constant Summary collapse

GUID =
1
SECRET =
2
FIELDS =
{
  GUID => {:type => ::Thrift::Types::STRING, :name => 'guid', :binary => true},
  SECRET => {:type => ::Thrift::Types::STRING, :name => 'secret', :binary => true}
}

Instance Method Summary collapse

Instance Method Details

#struct_fieldsObject


889
# File 'lib/thrift/t_c_l_i_service_types.rb', line 889

def struct_fields; FIELDS; end

#validateObject

Raises:

  • (::Thrift::ProtocolException)

891
892
893
894
# File 'lib/thrift/t_c_l_i_service_types.rb', line 891

def validate
  raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field guid is unset!') unless @guid
  raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field secret is unset!') unless @secret
end