Class: CadenceThrift::WorkflowExecutionTimedOutEventAttributes

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

TIMEOUTTYPE =
10
FIELDS =
{
  TIMEOUTTYPE => {:type => ::Thrift::Types::I32, :name => 'timeoutType', :optional => true, :enum_class => ::CadenceThrift::TimeoutType}
}

Instance Method Summary collapse

Instance Method Details

#struct_fieldsObject



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

def struct_fields; FIELDS; end

#validateObject



1641
1642
1643
1644
1645
# File 'lib/gen/thrift/shared_types.rb', line 1641

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