# Cloud AutoML V1 API - Class Google::Cloud::AutoML::V1::Document (v1.8.0)

1.8.0 (latest) 1.7.0 1.6.0 1.5.1 1.4.0 1.3.1 1.2.1 1.1.0 1.0.1 0.10.0 0.9.2 0.8.0 0.7.0 0.6.0 0.5.1 0.4.8 Reference documentation and code samples for the Cloud AutoML V1 API class Google::Cloud::AutoML::V1::Document.

A structured text document e.g. a PDF.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #document_dimensions

    def document_dimensions() -> ::Google::Cloud::AutoML::V1::DocumentDimensions

**Returns**

- ([::Google::Cloud::AutoML::V1::DocumentDimensions](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-automl-v1/latest/Google-Cloud-AutoML-V1-DocumentDimensions)) --- The dimensions of the page in the document.

### #document_dimensions=

    def document_dimensions=(value) -> ::Google::Cloud::AutoML::V1::DocumentDimensions

**Parameter**

- **value** ([::Google::Cloud::AutoML::V1::DocumentDimensions](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-automl-v1/latest/Google-Cloud-AutoML-V1-DocumentDimensions)) --- The dimensions of the page in the document.
**Returns**

- ([::Google::Cloud::AutoML::V1::DocumentDimensions](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-automl-v1/latest/Google-Cloud-AutoML-V1-DocumentDimensions)) --- The dimensions of the page in the document.

### #document_text

    def document_text() -> ::Google::Cloud::AutoML::V1::TextSnippet

**Returns**

- ([::Google::Cloud::AutoML::V1::TextSnippet](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-automl-v1/latest/Google-Cloud-AutoML-V1-TextSnippet)) --- The plain text version of this document.

### #document_text=

    def document_text=(value) -> ::Google::Cloud::AutoML::V1::TextSnippet

**Parameter**

- **value** ([::Google::Cloud::AutoML::V1::TextSnippet](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-automl-v1/latest/Google-Cloud-AutoML-V1-TextSnippet)) --- The plain text version of this document.
**Returns**

- ([::Google::Cloud::AutoML::V1::TextSnippet](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-automl-v1/latest/Google-Cloud-AutoML-V1-TextSnippet)) --- The plain text version of this document.

### #input_config

    def input_config() -> ::Google::Cloud::AutoML::V1::DocumentInputConfig

**Returns**

- ([::Google::Cloud::AutoML::V1::DocumentInputConfig](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-automl-v1/latest/Google-Cloud-AutoML-V1-DocumentInputConfig)) --- An input config specifying the content of the document.

### #input_config=

    def input_config=(value) -> ::Google::Cloud::AutoML::V1::DocumentInputConfig

**Parameter**

- **value** ([::Google::Cloud::AutoML::V1::DocumentInputConfig](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-automl-v1/latest/Google-Cloud-AutoML-V1-DocumentInputConfig)) --- An input config specifying the content of the document.
**Returns**

- ([::Google::Cloud::AutoML::V1::DocumentInputConfig](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-automl-v1/latest/Google-Cloud-AutoML-V1-DocumentInputConfig)) --- An input config specifying the content of the document.

### #layout

    def layout() -> ::Array<::Google::Cloud::AutoML::V1::Document::Layout>

**Returns**

- (::Array\<[::Google::Cloud::AutoML::V1::Document::Layout](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-automl-v1/latest/Google-Cloud-AutoML-V1-Document-Layout)\>) --- Describes the layout of the document. Sorted by \[page_number\]\[\].

### #layout=

    def layout=(value) -> ::Array<::Google::Cloud::AutoML::V1::Document::Layout>

**Parameter**

- **value** (::Array\<[::Google::Cloud::AutoML::V1::Document::Layout](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-automl-v1/latest/Google-Cloud-AutoML-V1-Document-Layout)\>) --- Describes the layout of the document. Sorted by \[page_number\]\[\].
**Returns**

- (::Array\<[::Google::Cloud::AutoML::V1::Document::Layout](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-automl-v1/latest/Google-Cloud-AutoML-V1-Document-Layout)\>) --- Describes the layout of the document. Sorted by \[page_number\]\[\].

### #page_count

    def page_count() -> ::Integer

**Returns**

- (::Integer) --- Number of pages in the document.

### #page_count=

    def page_count=(value) -> ::Integer

**Parameter**

- **value** (::Integer) --- Number of pages in the document.
**Returns**

- (::Integer) --- Number of pages in the document.