Package com.google.cloud.automl.v1
Interface DocumentOrBuilder
-
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
Document
,Document.Builder
public interface DocumentOrBuilder extends com.google.protobuf.MessageOrBuilder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description DocumentDimensions
getDocumentDimensions()
The dimensions of the page in the document.DocumentDimensionsOrBuilder
getDocumentDimensionsOrBuilder()
The dimensions of the page in the document.TextSnippet
getDocumentText()
The plain text version of this document.TextSnippetOrBuilder
getDocumentTextOrBuilder()
The plain text version of this document.DocumentInputConfig
getInputConfig()
An input config specifying the content of the document.DocumentInputConfigOrBuilder
getInputConfigOrBuilder()
An input config specifying the content of the document.Document.Layout
getLayout(int index)
Describes the layout of the document.int
getLayoutCount()
Describes the layout of the document.List<Document.Layout>
getLayoutList()
Describes the layout of the document.Document.LayoutOrBuilder
getLayoutOrBuilder(int index)
Describes the layout of the document.List<? extends Document.LayoutOrBuilder>
getLayoutOrBuilderList()
Describes the layout of the document.int
getPageCount()
Number of pages in the document.boolean
hasDocumentDimensions()
The dimensions of the page in the document.boolean
hasDocumentText()
The plain text version of this document.boolean
hasInputConfig()
An input config specifying the content of the document.-
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
-
-
-
Method Detail
-
hasInputConfig
boolean hasInputConfig()
An input config specifying the content of the document.
.google.cloud.automl.v1.DocumentInputConfig input_config = 1;
- Returns:
- Whether the inputConfig field is set.
-
getInputConfig
DocumentInputConfig getInputConfig()
An input config specifying the content of the document.
.google.cloud.automl.v1.DocumentInputConfig input_config = 1;
- Returns:
- The inputConfig.
-
getInputConfigOrBuilder
DocumentInputConfigOrBuilder getInputConfigOrBuilder()
An input config specifying the content of the document.
.google.cloud.automl.v1.DocumentInputConfig input_config = 1;
-
hasDocumentText
boolean hasDocumentText()
The plain text version of this document.
.google.cloud.automl.v1.TextSnippet document_text = 2;
- Returns:
- Whether the documentText field is set.
-
getDocumentText
TextSnippet getDocumentText()
The plain text version of this document.
.google.cloud.automl.v1.TextSnippet document_text = 2;
- Returns:
- The documentText.
-
getDocumentTextOrBuilder
TextSnippetOrBuilder getDocumentTextOrBuilder()
The plain text version of this document.
.google.cloud.automl.v1.TextSnippet document_text = 2;
-
getLayoutList
List<Document.Layout> getLayoutList()
Describes the layout of the document. Sorted by [page_number][].
repeated .google.cloud.automl.v1.Document.Layout layout = 3;
-
getLayout
Document.Layout getLayout(int index)
Describes the layout of the document. Sorted by [page_number][].
repeated .google.cloud.automl.v1.Document.Layout layout = 3;
-
getLayoutCount
int getLayoutCount()
Describes the layout of the document. Sorted by [page_number][].
repeated .google.cloud.automl.v1.Document.Layout layout = 3;
-
getLayoutOrBuilderList
List<? extends Document.LayoutOrBuilder> getLayoutOrBuilderList()
Describes the layout of the document. Sorted by [page_number][].
repeated .google.cloud.automl.v1.Document.Layout layout = 3;
-
getLayoutOrBuilder
Document.LayoutOrBuilder getLayoutOrBuilder(int index)
Describes the layout of the document. Sorted by [page_number][].
repeated .google.cloud.automl.v1.Document.Layout layout = 3;
-
hasDocumentDimensions
boolean hasDocumentDimensions()
The dimensions of the page in the document.
.google.cloud.automl.v1.DocumentDimensions document_dimensions = 4;
- Returns:
- Whether the documentDimensions field is set.
-
getDocumentDimensions
DocumentDimensions getDocumentDimensions()
The dimensions of the page in the document.
.google.cloud.automl.v1.DocumentDimensions document_dimensions = 4;
- Returns:
- The documentDimensions.
-
getDocumentDimensionsOrBuilder
DocumentDimensionsOrBuilder getDocumentDimensionsOrBuilder()
The dimensions of the page in the document.
.google.cloud.automl.v1.DocumentDimensions document_dimensions = 4;
-
getPageCount
int getPageCount()
Number of pages in the document.
int32 page_count = 5;
- Returns:
- The pageCount.
-
-