Class: CadenceThrift::ActivityTaskTimedOutEventAttributes

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

DETAILS =
5
SCHEDULEDEVENTID =
10
STARTEDEVENTID =
20
TIMEOUTTYPE =
30
FIELDS =
{
  DETAILS => {:type => ::Thrift::Types::STRING, :name => 'details', :binary => true, :optional => true},
  SCHEDULEDEVENTID => {:type => ::Thrift::Types::I64, :name => 'scheduledEventId', :optional => true},
  STARTEDEVENTID => {:type => ::Thrift::Types::I64, :name => 'startedEventId', :optional => true},
  TIMEOUTTYPE => {:type => ::Thrift::Types::I32, :name => 'timeoutType', :optional => true, :enum_class => ::CadenceThrift::TimeoutType}
}

Instance Method Summary collapse

Instance Method Details

#struct_fieldsObject



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

def struct_fields; FIELDS; end

#validateObject



1941
1942
1943
1944
1945
# File 'lib/gen/thrift/shared_types.rb', line 1941

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