Class: CadenceThrift::RespondDecisionTaskFailedRequest

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
CAUSE =
20
DETAILS =
30
IDENTITY =
40
FIELDS =
{
  TASKTOKEN => {:type => ::Thrift::Types::STRING, :name => 'taskToken', :binary => true, :optional => true},
  CAUSE => {:type => ::Thrift::Types::I32, :name => 'cause', :optional => true, :enum_class => ::CadenceThrift::DecisionTaskFailedCause},
  DETAILS => {:type => ::Thrift::Types::STRING, :name => 'details', :binary => true, :optional => true},
  IDENTITY => {:type => ::Thrift::Types::STRING, :name => 'identity', :optional => true}
}

Instance Method Summary collapse

Instance Method Details

#struct_fieldsObject



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

def struct_fields; FIELDS; end

#validateObject



3341
3342
3343
3344
3345
# File 'lib/gen/thrift/shared_types.rb', line 3341

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