Class: CadenceThrift::WorkflowQueryResult
- Inherits:
-
Object
- Object
- CadenceThrift::WorkflowQueryResult
- Includes:
- Thrift::Struct, Thrift::Struct_Union
- Defined in:
- lib/gen/thrift/shared_types.rb,
lib/gen/thrift/shared_types.rb
Constant Summary collapse
- RESULTTYPE =
10
- ANSWER =
20
- ERRORREASON =
30
- ERRORDETAILS =
40
- FIELDS =
{ RESULTTYPE => {:type => ::Thrift::Types::I32, :name => 'resultType', :optional => true, :enum_class => ::CadenceThrift::QueryResultType}, ANSWER => {:type => ::Thrift::Types::STRING, :name => 'answer', :binary => true, :optional => true}, ERRORREASON => {:type => ::Thrift::Types::STRING, :name => 'errorReason', :optional => true}, ERRORDETAILS => {:type => ::Thrift::Types::STRING, :name => 'errorDetails', :binary => true, :optional => true} }
Instance Method Summary collapse
Instance Method Details
#struct_fields ⇒ Object
4213 |
# File 'lib/gen/thrift/shared_types.rb', line 4213 def struct_fields; FIELDS; end |
#validate ⇒ Object
4215 4216 4217 4218 4219 |
# File 'lib/gen/thrift/shared_types.rb', line 4215 def validate unless @resultType.nil? || ::CadenceThrift::QueryResultType::VALID_VALUES.include?(@resultType) raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field resultType!') end end |