Class: Jp::JobPoolInstrumented::Add_count_args

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

Constant Summary collapse

POOL_NAME =
1
FIELDS =
{
  POOL_NAME => {:type => ::Thrift::Types::STRING, :name => 'pool_name'}
}

Instance Method Summary collapse

Instance Method Details

#struct_fieldsObject



247
# File 'lib/rb/jp/gen-rb/job_pool_instrumented.rb', line 247

def struct_fields; FIELDS; end

#validateObject

Raises:

  • (::Thrift::ProtocolException)


249
250
251
# File 'lib/rb/jp/gen-rb/job_pool_instrumented.rb', line 249

def validate
  raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field pool_name is unset!') unless @pool_name
end