Class: TaskOutputChangeEvent

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

Constant Summary collapse

OUTPUT =
1
TASKIDENTITY =
2
FIELDS =
{
  OUTPUT => {:type => ::Thrift::Types::LIST, :name => 'output', :element => {:type => ::Thrift::Types::STRUCT, :class => ::OutputDataObjectType}},
  TASKIDENTITY => {:type => ::Thrift::Types::STRUCT, :name => 'taskIdentity', :class => ::TaskIdentifier}
}

Instance Method Summary collapse

Instance Method Details

#struct_fieldsObject



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

def struct_fields; FIELDS; end

#validateObject

Raises:

  • (::Thrift::ProtocolException)


215
216
217
218
# File 'lib/messaging_events_types.rb', line 215

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