Class: TaskIdentifier

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

Constant Summary collapse

TASKID =
1
PROCESSID =
2
EXPERIMENTID =
3
GATEWAYID =
4
FIELDS =
{
  TASKID => {:type => ::Thrift::Types::STRING, :name => 'taskId'},
  PROCESSID => {:type => ::Thrift::Types::STRING, :name => 'processId'},
  EXPERIMENTID => {:type => ::Thrift::Types::STRING, :name => 'experimentId'},
  GATEWAYID => {:type => ::Thrift::Types::STRING, :name => 'gatewayId'}
}

Instance Method Summary collapse

Instance Method Details

#struct_fieldsObject



99
# File 'lib/messaging_events_types.rb', line 99

def struct_fields; FIELDS; end

#validateObject

Raises:

  • (::Thrift::ProtocolException)


101
102
103
104
105
106
# File 'lib/messaging_events_types.rb', line 101

def validate
  raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field taskId is unset!') unless @taskId
  raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field processId is unset!') unless @processId
  raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field experimentId is unset!') unless @experimentId
  raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field gatewayId is unset!') unless @gatewayId
end