Reference documentation and code samples for the Cloud AutoML V1beta1 API class Google::Cloud::AutoML::V1beta1::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::V1beta1::DocumentDimensions
Returns
- (::Google::Cloud::AutoML::V1beta1::DocumentDimensions) — The dimensions of the page in the document.
#document_dimensions=
def document_dimensions=(value) -> ::Google::Cloud::AutoML::V1beta1::DocumentDimensions
Parameter
- value (::Google::Cloud::AutoML::V1beta1::DocumentDimensions) — The dimensions of the page in the document.
Returns
- (::Google::Cloud::AutoML::V1beta1::DocumentDimensions) — The dimensions of the page in the document.
#document_text
def document_text() -> ::Google::Cloud::AutoML::V1beta1::TextSnippet
Returns
- (::Google::Cloud::AutoML::V1beta1::TextSnippet) — The plain text version of this document.
#document_text=
def document_text=(value) -> ::Google::Cloud::AutoML::V1beta1::TextSnippet
Parameter
- value (::Google::Cloud::AutoML::V1beta1::TextSnippet) — The plain text version of this document.
Returns
- (::Google::Cloud::AutoML::V1beta1::TextSnippet) — The plain text version of this document.
#input_config
def input_config() -> ::Google::Cloud::AutoML::V1beta1::DocumentInputConfig
Returns
- (::Google::Cloud::AutoML::V1beta1::DocumentInputConfig) — An input config specifying the content of the document.
#input_config=
def input_config=(value) -> ::Google::Cloud::AutoML::V1beta1::DocumentInputConfig
Parameter
- value (::Google::Cloud::AutoML::V1beta1::DocumentInputConfig) — An input config specifying the content of the document.
Returns
- (::Google::Cloud::AutoML::V1beta1::DocumentInputConfig) — An input config specifying the content of the document.
#layout
def layout() -> ::Array<::Google::Cloud::AutoML::V1beta1::Document::Layout>
Returns
- (::Array<::Google::Cloud::AutoML::V1beta1::Document::Layout>) — Describes the layout of the document. Sorted by [page_number][].
#layout=
def layout=(value) -> ::Array<::Google::Cloud::AutoML::V1beta1::Document::Layout>
Parameter
- value (::Array<::Google::Cloud::AutoML::V1beta1::Document::Layout>) — Describes the layout of the document. Sorted by [page_number][].
Returns
- (::Array<::Google::Cloud::AutoML::V1beta1::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.