Class: Concord::Thrift::BoltManagerService::Signal_args

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

Constant Summary collapse

TOPOLOGYID =
1
S =
2
FIELDS =
{
  TOPOLOGYID => {:type => ::Thrift::Types::I64, :name => 'topologyId'},
  S => {:type => ::Thrift::Types::I32, :name => 's', :enum_class => ::Concord::Thrift::Signal}
}

Instance Method Summary collapse

Instance Method Details

#struct_fieldsObject



121
# File 'lib/gen-rb/bolt_manager_service.rb', line 121

def struct_fields; FIELDS; end

#validateObject



123
124
125
126
127
# File 'lib/gen-rb/bolt_manager_service.rb', line 123

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