Class: Hive2::Thrift::TGetInfoResp

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

STATUS =
1
INFOVALUE =
2
FIELDS =
{
  STATUS => {:type => ::Thrift::Types::STRUCT, :name => 'status', :class => ::Hive2::Thrift::TStatus},
  INFOVALUE => {:type => ::Thrift::Types::STRUCT, :name => 'infoValue', :class => ::Hive2::Thrift::TGetInfoValue}
}

Instance Method Summary collapse

Instance Method Details

#struct_fieldsObject


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

def struct_fields; FIELDS; end

#validateObject

Raises:

  • (::Thrift::ProtocolException)

1119
1120
1121
1122
# File 'lib/thrift/t_c_l_i_service_types.rb', line 1119

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