Class: CadenceThrift::RespondQueryTaskCompletedRequest

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

Constant Summary collapse

TASKTOKEN =
10
COMPLETEDTYPE =
20
QUERYRESULT =
30
ERRORMESSAGE =
40
FIELDS =
{
  TASKTOKEN => {:type => ::Thrift::Types::STRING, :name => 'taskToken', :binary => true, :optional => true},
  COMPLETEDTYPE => {:type => ::Thrift::Types::I32, :name => 'completedType', :optional => true, :enum_class => ::CadenceThrift::QueryTaskCompletedType},
  QUERYRESULT => {:type => ::Thrift::Types::STRING, :name => 'queryResult', :binary => true, :optional => true},
  ERRORMESSAGE => {:type => ::Thrift::Types::STRING, :name => 'errorMessage', :optional => true}
}

Instance Method Summary collapse

Instance Method Details

#struct_fieldsObject



4188
# File 'lib/gen/thrift/shared_types.rb', line 4188

def struct_fields; FIELDS; end

#validateObject



4190
4191
4192
4193
4194
# File 'lib/gen/thrift/shared_types.rb', line 4190

def validate
  unless @completedType.nil? || ::CadenceThrift::QueryTaskCompletedType::VALID_VALUES.include?(@completedType)
    raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field completedType!')
  end
end