Class: ProcessStatusChangeRequestEvent
- Inherits:
-
Object
- Object
- ProcessStatusChangeRequestEvent
- Includes:
- Thrift::Struct, Thrift::Struct_Union
- Defined in:
- lib/messaging_events_types.rb
Constant Summary collapse
- STATE =
1
- PROCESSIDENTITY =
2
- FIELDS =
{ STATE => {:type => ::Thrift::Types::I32, :name => 'state', :enum_class => ::ProcessState}, PROCESSIDENTITY => {:type => ::Thrift::Types::STRUCT, :name => 'processIdentity', :class => ::ProcessIdentifier} }
Instance Method Summary collapse
Instance Method Details
#struct_fields ⇒ Object
190 |
# File 'lib/messaging_events_types.rb', line 190 def struct_fields; FIELDS; end |
#validate ⇒ Object
192 193 194 195 196 197 198 |
# File 'lib/messaging_events_types.rb', line 192 def validate raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field state is unset!') unless @state raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field processIdentity is unset!') unless @processIdentity unless @state.nil? || ::ProcessState::VALID_VALUES.include?(@state) raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field state!') end end |