Class: CadenceThrift::ChildWorkflowExecutionTimedOutEventAttributes
- Inherits:
-
Object
- Object
- CadenceThrift::ChildWorkflowExecutionTimedOutEventAttributes
- Includes:
- Thrift::Struct, Thrift::Struct_Union
- Defined in:
- lib/gen/thrift/shared_types.rb,
lib/gen/thrift/shared_types.rb
Constant Summary collapse
- TIMEOUTTYPE =
10
- DOMAIN =
20
- WORKFLOWEXECUTION =
30
- WORKFLOWTYPE =
40
- INITIATEDEVENTID =
50
- STARTEDEVENTID =
60
- FIELDS =
{ TIMEOUTTYPE => {:type => ::Thrift::Types::I32, :name => 'timeoutType', :optional => true, :enum_class => ::CadenceThrift::TimeoutType}, DOMAIN => {:type => ::Thrift::Types::STRING, :name => 'domain', :optional => true}, WORKFLOWEXECUTION => {:type => ::Thrift::Types::STRUCT, :name => 'workflowExecution', :class => ::CadenceThrift::WorkflowExecution, :optional => true}, WORKFLOWTYPE => {:type => ::Thrift::Types::STRUCT, :name => 'workflowType', :class => ::CadenceThrift::WorkflowType, :optional => true}, INITIATEDEVENTID => {:type => ::Thrift::Types::I64, :name => 'initiatedEventId', :optional => true}, STARTEDEVENTID => {:type => ::Thrift::Types::I64, :name => 'startedEventId', :optional => true} }
Instance Method Summary collapse
Instance Method Details
#struct_fields ⇒ Object
2571 |
# File 'lib/gen/thrift/shared_types.rb', line 2571 def struct_fields; FIELDS; end |
#validate ⇒ Object
2573 2574 2575 2576 2577 |
# File 'lib/gen/thrift/shared_types.rb', line 2573 def validate unless @timeoutType.nil? || ::CadenceThrift::TimeoutType::VALID_VALUES.include?(@timeoutType) raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field timeoutType!') end end |