public static final class Document.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Document.Builder> implements DocumentOrBuilder
A structured text document e.g. a PDF.Protobuf type
google.cloud.automl.v1.Document| Modifier and Type | Method and Description |
|---|---|
Document.Builder |
addAllLayout(Iterable<? extends Document.Layout> values)
Describes the layout of the document.
|
Document.Builder |
addLayout(Document.Layout.Builder builderForValue)
Describes the layout of the document.
|
Document.Builder |
addLayout(Document.Layout value)
Describes the layout of the document.
|
Document.Builder |
addLayout(int index,
Document.Layout.Builder builderForValue)
Describes the layout of the document.
|
Document.Builder |
addLayout(int index,
Document.Layout value)
Describes the layout of the document.
|
Document.Layout.Builder |
addLayoutBuilder()
Describes the layout of the document.
|
Document.Layout.Builder |
addLayoutBuilder(int index)
Describes the layout of the document.
|
Document.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
Document |
build() |
Document |
buildPartial() |
Document.Builder |
clear() |
Document.Builder |
clearDocumentDimensions()
The dimensions of the page in the document.
|
Document.Builder |
clearDocumentText()
The plain text version of this document.
|
Document.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
Document.Builder |
clearInputConfig()
An input config specifying the content of the document.
|
Document.Builder |
clearLayout()
Describes the layout of the document.
|
Document.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
Document.Builder |
clearPageCount()
Number of pages in the document.
|
Document.Builder |
clone() |
Document |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
DocumentDimensions |
getDocumentDimensions()
The dimensions of the page in the document.
|
DocumentDimensions.Builder |
getDocumentDimensionsBuilder()
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.
|
TextSnippet.Builder |
getDocumentTextBuilder()
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.
|
DocumentInputConfig.Builder |
getInputConfigBuilder()
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.
|
Document.Layout.Builder |
getLayoutBuilder(int index)
Describes the layout of the document.
|
List<Document.Layout.Builder> |
getLayoutBuilderList()
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.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
Document.Builder |
mergeDocumentDimensions(DocumentDimensions value)
The dimensions of the page in the document.
|
Document.Builder |
mergeDocumentText(TextSnippet value)
The plain text version of this document.
|
Document.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
Document.Builder |
mergeFrom(Document other) |
Document.Builder |
mergeFrom(com.google.protobuf.Message other) |
Document.Builder |
mergeInputConfig(DocumentInputConfig value)
An input config specifying the content of the document.
|
Document.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
Document.Builder |
removeLayout(int index)
Describes the layout of the document.
|
Document.Builder |
setDocumentDimensions(DocumentDimensions.Builder builderForValue)
The dimensions of the page in the document.
|
Document.Builder |
setDocumentDimensions(DocumentDimensions value)
The dimensions of the page in the document.
|
Document.Builder |
setDocumentText(TextSnippet.Builder builderForValue)
The plain text version of this document.
|
Document.Builder |
setDocumentText(TextSnippet value)
The plain text version of this document.
|
Document.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
Document.Builder |
setInputConfig(DocumentInputConfig.Builder builderForValue)
An input config specifying the content of the document.
|
Document.Builder |
setInputConfig(DocumentInputConfig value)
An input config specifying the content of the document.
|
Document.Builder |
setLayout(int index,
Document.Layout.Builder builderForValue)
Describes the layout of the document.
|
Document.Builder |
setLayout(int index,
Document.Layout value)
Describes the layout of the document.
|
Document.Builder |
setPageCount(int value)
Number of pages in the document.
|
Document.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
Document.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<Document.Builder>public Document.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<Document.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<Document.Builder>public Document getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic Document build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic Document buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic Document.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<Document.Builder>public Document.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<Document.Builder>public Document.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<Document.Builder>public Document.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<Document.Builder>public Document.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Document.Builder>public Document.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Document.Builder>public Document.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<Document.Builder>public Document.Builder mergeFrom(Document other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<Document.Builder>public Document.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<Document.Builder>IOExceptionpublic boolean hasInputConfig()
An input config specifying the content of the document.
.google.cloud.automl.v1.DocumentInputConfig input_config = 1;hasInputConfig in interface DocumentOrBuilderpublic DocumentInputConfig getInputConfig()
An input config specifying the content of the document.
.google.cloud.automl.v1.DocumentInputConfig input_config = 1;getInputConfig in interface DocumentOrBuilderpublic Document.Builder setInputConfig(DocumentInputConfig value)
An input config specifying the content of the document.
.google.cloud.automl.v1.DocumentInputConfig input_config = 1;public Document.Builder setInputConfig(DocumentInputConfig.Builder builderForValue)
An input config specifying the content of the document.
.google.cloud.automl.v1.DocumentInputConfig input_config = 1;public Document.Builder mergeInputConfig(DocumentInputConfig value)
An input config specifying the content of the document.
.google.cloud.automl.v1.DocumentInputConfig input_config = 1;public Document.Builder clearInputConfig()
An input config specifying the content of the document.
.google.cloud.automl.v1.DocumentInputConfig input_config = 1;public DocumentInputConfig.Builder getInputConfigBuilder()
An input config specifying the content of the document.
.google.cloud.automl.v1.DocumentInputConfig input_config = 1;public DocumentInputConfigOrBuilder getInputConfigOrBuilder()
An input config specifying the content of the document.
.google.cloud.automl.v1.DocumentInputConfig input_config = 1;getInputConfigOrBuilder in interface DocumentOrBuilderpublic boolean hasDocumentText()
The plain text version of this document.
.google.cloud.automl.v1.TextSnippet document_text = 2;hasDocumentText in interface DocumentOrBuilderpublic TextSnippet getDocumentText()
The plain text version of this document.
.google.cloud.automl.v1.TextSnippet document_text = 2;getDocumentText in interface DocumentOrBuilderpublic Document.Builder setDocumentText(TextSnippet value)
The plain text version of this document.
.google.cloud.automl.v1.TextSnippet document_text = 2;public Document.Builder setDocumentText(TextSnippet.Builder builderForValue)
The plain text version of this document.
.google.cloud.automl.v1.TextSnippet document_text = 2;public Document.Builder mergeDocumentText(TextSnippet value)
The plain text version of this document.
.google.cloud.automl.v1.TextSnippet document_text = 2;public Document.Builder clearDocumentText()
The plain text version of this document.
.google.cloud.automl.v1.TextSnippet document_text = 2;public TextSnippet.Builder getDocumentTextBuilder()
The plain text version of this document.
.google.cloud.automl.v1.TextSnippet document_text = 2;public TextSnippetOrBuilder getDocumentTextOrBuilder()
The plain text version of this document.
.google.cloud.automl.v1.TextSnippet document_text = 2;getDocumentTextOrBuilder in interface DocumentOrBuilderpublic List<Document.Layout> getLayoutList()
Describes the layout of the document. Sorted by [page_number][].
repeated .google.cloud.automl.v1.Document.Layout layout = 3;getLayoutList in interface DocumentOrBuilderpublic int getLayoutCount()
Describes the layout of the document. Sorted by [page_number][].
repeated .google.cloud.automl.v1.Document.Layout layout = 3;getLayoutCount in interface DocumentOrBuilderpublic Document.Layout getLayout(int index)
Describes the layout of the document. Sorted by [page_number][].
repeated .google.cloud.automl.v1.Document.Layout layout = 3;getLayout in interface DocumentOrBuilderpublic Document.Builder setLayout(int index, Document.Layout value)
Describes the layout of the document. Sorted by [page_number][].
repeated .google.cloud.automl.v1.Document.Layout layout = 3;public Document.Builder setLayout(int index, Document.Layout.Builder builderForValue)
Describes the layout of the document. Sorted by [page_number][].
repeated .google.cloud.automl.v1.Document.Layout layout = 3;public Document.Builder addLayout(Document.Layout value)
Describes the layout of the document. Sorted by [page_number][].
repeated .google.cloud.automl.v1.Document.Layout layout = 3;public Document.Builder addLayout(int index, Document.Layout value)
Describes the layout of the document. Sorted by [page_number][].
repeated .google.cloud.automl.v1.Document.Layout layout = 3;public Document.Builder addLayout(Document.Layout.Builder builderForValue)
Describes the layout of the document. Sorted by [page_number][].
repeated .google.cloud.automl.v1.Document.Layout layout = 3;public Document.Builder addLayout(int index, Document.Layout.Builder builderForValue)
Describes the layout of the document. Sorted by [page_number][].
repeated .google.cloud.automl.v1.Document.Layout layout = 3;public Document.Builder addAllLayout(Iterable<? extends Document.Layout> values)
Describes the layout of the document. Sorted by [page_number][].
repeated .google.cloud.automl.v1.Document.Layout layout = 3;public Document.Builder clearLayout()
Describes the layout of the document. Sorted by [page_number][].
repeated .google.cloud.automl.v1.Document.Layout layout = 3;public Document.Builder removeLayout(int index)
Describes the layout of the document. Sorted by [page_number][].
repeated .google.cloud.automl.v1.Document.Layout layout = 3;public Document.Layout.Builder getLayoutBuilder(int index)
Describes the layout of the document. Sorted by [page_number][].
repeated .google.cloud.automl.v1.Document.Layout layout = 3;public Document.LayoutOrBuilder getLayoutOrBuilder(int index)
Describes the layout of the document. Sorted by [page_number][].
repeated .google.cloud.automl.v1.Document.Layout layout = 3;getLayoutOrBuilder in interface DocumentOrBuilderpublic List<? extends Document.LayoutOrBuilder> getLayoutOrBuilderList()
Describes the layout of the document. Sorted by [page_number][].
repeated .google.cloud.automl.v1.Document.Layout layout = 3;getLayoutOrBuilderList in interface DocumentOrBuilderpublic Document.Layout.Builder addLayoutBuilder()
Describes the layout of the document. Sorted by [page_number][].
repeated .google.cloud.automl.v1.Document.Layout layout = 3;public Document.Layout.Builder addLayoutBuilder(int index)
Describes the layout of the document. Sorted by [page_number][].
repeated .google.cloud.automl.v1.Document.Layout layout = 3;public List<Document.Layout.Builder> getLayoutBuilderList()
Describes the layout of the document. Sorted by [page_number][].
repeated .google.cloud.automl.v1.Document.Layout layout = 3;public boolean hasDocumentDimensions()
The dimensions of the page in the document.
.google.cloud.automl.v1.DocumentDimensions document_dimensions = 4;hasDocumentDimensions in interface DocumentOrBuilderpublic DocumentDimensions getDocumentDimensions()
The dimensions of the page in the document.
.google.cloud.automl.v1.DocumentDimensions document_dimensions = 4;getDocumentDimensions in interface DocumentOrBuilderpublic Document.Builder setDocumentDimensions(DocumentDimensions value)
The dimensions of the page in the document.
.google.cloud.automl.v1.DocumentDimensions document_dimensions = 4;public Document.Builder setDocumentDimensions(DocumentDimensions.Builder builderForValue)
The dimensions of the page in the document.
.google.cloud.automl.v1.DocumentDimensions document_dimensions = 4;public Document.Builder mergeDocumentDimensions(DocumentDimensions value)
The dimensions of the page in the document.
.google.cloud.automl.v1.DocumentDimensions document_dimensions = 4;public Document.Builder clearDocumentDimensions()
The dimensions of the page in the document.
.google.cloud.automl.v1.DocumentDimensions document_dimensions = 4;public DocumentDimensions.Builder getDocumentDimensionsBuilder()
The dimensions of the page in the document.
.google.cloud.automl.v1.DocumentDimensions document_dimensions = 4;public DocumentDimensionsOrBuilder getDocumentDimensionsOrBuilder()
The dimensions of the page in the document.
.google.cloud.automl.v1.DocumentDimensions document_dimensions = 4;getDocumentDimensionsOrBuilder in interface DocumentOrBuilderpublic int getPageCount()
Number of pages in the document.
int32 page_count = 5;getPageCount in interface DocumentOrBuilderpublic Document.Builder setPageCount(int value)
Number of pages in the document.
int32 page_count = 5;value - The pageCount to set.public Document.Builder clearPageCount()
Number of pages in the document.
int32 page_count = 5;public final Document.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Document.Builder>public final Document.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Document.Builder>Copyright © 2025 Google LLC. All rights reserved.