# Cloud Optimization V1 API - Class Google::Cloud::Optimization::V1::CapacityQuantity (v0.16.0)

0.16.0 (latest) 0.15.0 0.14.1 0.13.0 0.12.0 0.11.1 0.10.0 0.9.2 0.8.2 0.7.0 0.6.0 0.5.0 0.4.1 0.3.0 0.2.1 0.1.1 Reference documentation and code samples for the Cloud Optimization V1 API class Google::Cloud::Optimization::V1::CapacityQuantity.

Deprecated: Use
[Vehicle.LoadLimit.Interval](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-optimization-v1/latest/Google-Cloud-Optimization-V1-Vehicle-LoadLimit-Interval "Google::Cloud::Optimization::V1::Vehicle::LoadLimit::Interval (class)")
instead.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #type

    def type() -> ::String

**Returns**

- (::String)

### #type=

    def type=(value) -> ::String

**Parameter**

- **value** (::String)
**Returns**

- (::String)

### #value

    def value() -> ::Integer

**Returns**

- (::Integer)

### #value=

    def value=(value) -> ::Integer

**Parameter**

- **value** (::Integer)
**Returns**

- (::Integer)