Class: ProcessSubmitEvent

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

Constant Summary collapse

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

Instance Method Summary collapse

Instance Method Details

#struct_fieldsObject



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

def struct_fields; FIELDS; end

#validateObject

Raises:

  • (::Thrift::ProtocolException)


288
289
290
291
292
293
# File 'lib/messaging_events_types.rb', line 288

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