Class: CadenceThrift::DecisionTaskTimedOutEventAttributes

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

SCHEDULEDEVENTID =
10
STARTEDEVENTID =
20
TIMEOUTTYPE =
30
FIELDS =
{
  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



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

def struct_fields; FIELDS; end

#validateObject



1775
1776
1777
1778
1779
# File 'lib/gen/thrift/shared_types.rb', line 1775

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