# Cloud AutoML V1beta1 API - Class Google::Cloud::AutoML::V1beta1::DocumentDimensions (v0.19.0)

0.19.0 (latest) 0.18.0 0.17.0 0.16.1 0.15.0 0.14.1 0.13.1 0.12.0 0.11.1 0.10.2 0.9.0 0.8.0 0.7.0 0.6.1 0.5.5 Reference documentation and code samples for the Cloud AutoML V1beta1 API class Google::Cloud::AutoML::V1beta1::DocumentDimensions.

Message that describes dimension of a document.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #height

    def height() -> ::Float

**Returns**

- (::Float) --- Height value of the document, works together with the unit.

### #height=

    def height=(value) -> ::Float

**Parameter**

- **value** (::Float) --- Height value of the document, works together with the unit.
**Returns**

- (::Float) --- Height value of the document, works together with the unit.

### #unit

    def unit() -> ::Google::Cloud::AutoML::V1beta1::DocumentDimensions::DocumentDimensionUnit

**Returns**

- ([::Google::Cloud::AutoML::V1beta1::DocumentDimensions::DocumentDimensionUnit](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-automl-v1beta1/latest/Google-Cloud-AutoML-V1beta1-DocumentDimensions-DocumentDimensionUnit)) --- Unit of the dimension.

### #unit=

    def unit=(value) -> ::Google::Cloud::AutoML::V1beta1::DocumentDimensions::DocumentDimensionUnit

**Parameter**

- **value** ([::Google::Cloud::AutoML::V1beta1::DocumentDimensions::DocumentDimensionUnit](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-automl-v1beta1/latest/Google-Cloud-AutoML-V1beta1-DocumentDimensions-DocumentDimensionUnit)) --- Unit of the dimension.
**Returns**

- ([::Google::Cloud::AutoML::V1beta1::DocumentDimensions::DocumentDimensionUnit](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-automl-v1beta1/latest/Google-Cloud-AutoML-V1beta1-DocumentDimensions-DocumentDimensionUnit)) --- Unit of the dimension.

### #width

    def width() -> ::Float

**Returns**

- (::Float) --- Width value of the document, works together with the unit.

### #width=

    def width=(value) -> ::Float

**Parameter**

- **value** (::Float) --- Width value of the document, works together with the unit.
**Returns**

- (::Float) --- Width value of the document, works together with the unit.