Class: CadenceThrift::QueryWorkflowRequest
- Inherits:
-
Object
- Object
- CadenceThrift::QueryWorkflowRequest
- Includes:
- Thrift::Struct, Thrift::Struct_Union
- Defined in:
- lib/gen/thrift/shared_types.rb,
lib/gen/thrift/shared_types.rb
Constant Summary collapse
- DOMAIN =
10
- EXECUTION =
20
- QUERY =
30
- QUERYREJECTCONDITION =
40
- FIELDS =
{ DOMAIN => {:type => ::Thrift::Types::STRING, :name => 'domain', :optional => true}, EXECUTION => {:type => ::Thrift::Types::STRUCT, :name => 'execution', :class => ::CadenceThrift::WorkflowExecution, :optional => true}, QUERY => {:type => ::Thrift::Types::STRUCT, :name => 'query', :class => ::CadenceThrift::WorkflowQuery, :optional => true}, QUERYREJECTCONDITION => {:type => ::Thrift::Types::I32, :name => 'queryRejectCondition', :optional => true, :enum_class => ::CadenceThrift::QueryRejectCondition} }
Instance Method Summary collapse
Instance Method Details
#struct_fields ⇒ Object
4075 |
# File 'lib/gen/thrift/shared_types.rb', line 4075 def struct_fields; FIELDS; end |
#validate ⇒ Object
4077 4078 4079 4080 4081 |
# File 'lib/gen/thrift/shared_types.rb', line 4077 def validate unless @queryRejectCondition.nil? || ::CadenceThrift::QueryRejectCondition::VALID_VALUES.include?(@queryRejectCondition) raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field queryRejectCondition!') end end |