Package com.google.cloud.automl.v1
Class Document.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<Document.Builder>
-
- com.google.cloud.automl.v1.Document.Builder
-
- All Implemented Interfaces:
DocumentOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- Document
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 typegoogle.cloud.automl.v1.Document
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Document.BuilderaddAllLayout(Iterable<? extends Document.Layout> values)Describes the layout of the document.Document.BuilderaddLayout(int index, Document.Layout value)Describes the layout of the document.Document.BuilderaddLayout(int index, Document.Layout.Builder builderForValue)Describes the layout of the document.Document.BuilderaddLayout(Document.Layout value)Describes the layout of the document.Document.BuilderaddLayout(Document.Layout.Builder builderForValue)Describes the layout of the document.Document.Layout.BuilderaddLayoutBuilder()Describes the layout of the document.Document.Layout.BuilderaddLayoutBuilder(int index)Describes the layout of the document.Document.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)Documentbuild()DocumentbuildPartial()Document.Builderclear()Document.BuilderclearDocumentDimensions()The dimensions of the page in the document.Document.BuilderclearDocumentText()The plain text version of this document.Document.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)Document.BuilderclearInputConfig()An input config specifying the content of the document.Document.BuilderclearLayout()Describes the layout of the document.Document.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)Document.BuilderclearPageCount()Number of pages in the document.Document.Builderclone()DocumentgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()DocumentDimensionsgetDocumentDimensions()The dimensions of the page in the document.DocumentDimensions.BuildergetDocumentDimensionsBuilder()The dimensions of the page in the document.DocumentDimensionsOrBuildergetDocumentDimensionsOrBuilder()The dimensions of the page in the document.TextSnippetgetDocumentText()The plain text version of this document.TextSnippet.BuildergetDocumentTextBuilder()The plain text version of this document.TextSnippetOrBuildergetDocumentTextOrBuilder()The plain text version of this document.DocumentInputConfiggetInputConfig()An input config specifying the content of the document.DocumentInputConfig.BuildergetInputConfigBuilder()An input config specifying the content of the document.DocumentInputConfigOrBuildergetInputConfigOrBuilder()An input config specifying the content of the document.Document.LayoutgetLayout(int index)Describes the layout of the document.Document.Layout.BuildergetLayoutBuilder(int index)Describes the layout of the document.List<Document.Layout.Builder>getLayoutBuilderList()Describes the layout of the document.intgetLayoutCount()Describes the layout of the document.List<Document.Layout>getLayoutList()Describes the layout of the document.Document.LayoutOrBuildergetLayoutOrBuilder(int index)Describes the layout of the document.List<? extends Document.LayoutOrBuilder>getLayoutOrBuilderList()Describes the layout of the document.intgetPageCount()Number of pages in the document.booleanhasDocumentDimensions()The dimensions of the page in the document.booleanhasDocumentText()The plain text version of this document.booleanhasInputConfig()An input config specifying the content of the document.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()Document.BuildermergeDocumentDimensions(DocumentDimensions value)The dimensions of the page in the document.Document.BuildermergeDocumentText(TextSnippet value)The plain text version of this document.Document.BuildermergeFrom(Document other)Document.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)Document.BuildermergeFrom(com.google.protobuf.Message other)Document.BuildermergeInputConfig(DocumentInputConfig value)An input config specifying the content of the document.Document.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)Document.BuilderremoveLayout(int index)Describes the layout of the document.Document.BuildersetDocumentDimensions(DocumentDimensions value)The dimensions of the page in the document.Document.BuildersetDocumentDimensions(DocumentDimensions.Builder builderForValue)The dimensions of the page in the document.Document.BuildersetDocumentText(TextSnippet value)The plain text version of this document.Document.BuildersetDocumentText(TextSnippet.Builder builderForValue)The plain text version of this document.Document.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)Document.BuildersetInputConfig(DocumentInputConfig value)An input config specifying the content of the document.Document.BuildersetInputConfig(DocumentInputConfig.Builder builderForValue)An input config specifying the content of the document.Document.BuildersetLayout(int index, Document.Layout value)Describes the layout of the document.Document.BuildersetLayout(int index, Document.Layout.Builder builderForValue)Describes the layout of the document.Document.BuildersetPageCount(int value)Number of pages in the document.Document.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)Document.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<Document.Builder>
-
clear
public Document.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<Document.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<Document.Builder>
-
getDefaultInstanceForType
public Document getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public Document build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public Document buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public Document.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<Document.Builder>
-
setField
public Document.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Document.Builder>
-
clearField
public Document.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Document.Builder>
-
clearOneof
public Document.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<Document.Builder>
-
setRepeatedField
public Document.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Document.Builder>
-
addRepeatedField
public Document.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Document.Builder>
-
mergeFrom
public Document.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Document.Builder>
-
mergeFrom
public Document.Builder mergeFrom(Document other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<Document.Builder>
-
mergeFrom
public Document.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Document.Builder>- Throws:
IOException
-
hasInputConfig
public boolean hasInputConfig()
An input config specifying the content of the document.
.google.cloud.automl.v1.DocumentInputConfig input_config = 1;- Specified by:
hasInputConfigin interfaceDocumentOrBuilder- Returns:
- Whether the inputConfig field is set.
-
getInputConfig
public DocumentInputConfig getInputConfig()
An input config specifying the content of the document.
.google.cloud.automl.v1.DocumentInputConfig input_config = 1;- Specified by:
getInputConfigin interfaceDocumentOrBuilder- Returns:
- The inputConfig.
-
setInputConfig
public Document.Builder setInputConfig(DocumentInputConfig value)
An input config specifying the content of the document.
.google.cloud.automl.v1.DocumentInputConfig input_config = 1;
-
setInputConfig
public Document.Builder setInputConfig(DocumentInputConfig.Builder builderForValue)
An input config specifying the content of the document.
.google.cloud.automl.v1.DocumentInputConfig input_config = 1;
-
mergeInputConfig
public Document.Builder mergeInputConfig(DocumentInputConfig value)
An input config specifying the content of the document.
.google.cloud.automl.v1.DocumentInputConfig input_config = 1;
-
clearInputConfig
public Document.Builder clearInputConfig()
An input config specifying the content of the document.
.google.cloud.automl.v1.DocumentInputConfig input_config = 1;
-
getInputConfigBuilder
public DocumentInputConfig.Builder getInputConfigBuilder()
An input config specifying the content of the document.
.google.cloud.automl.v1.DocumentInputConfig input_config = 1;
-
getInputConfigOrBuilder
public DocumentInputConfigOrBuilder getInputConfigOrBuilder()
An input config specifying the content of the document.
.google.cloud.automl.v1.DocumentInputConfig input_config = 1;- Specified by:
getInputConfigOrBuilderin interfaceDocumentOrBuilder
-
hasDocumentText
public boolean hasDocumentText()
The plain text version of this document.
.google.cloud.automl.v1.TextSnippet document_text = 2;- Specified by:
hasDocumentTextin interfaceDocumentOrBuilder- Returns:
- Whether the documentText field is set.
-
getDocumentText
public TextSnippet getDocumentText()
The plain text version of this document.
.google.cloud.automl.v1.TextSnippet document_text = 2;- Specified by:
getDocumentTextin interfaceDocumentOrBuilder- Returns:
- The documentText.
-
setDocumentText
public Document.Builder setDocumentText(TextSnippet value)
The plain text version of this document.
.google.cloud.automl.v1.TextSnippet document_text = 2;
-
setDocumentText
public Document.Builder setDocumentText(TextSnippet.Builder builderForValue)
The plain text version of this document.
.google.cloud.automl.v1.TextSnippet document_text = 2;
-
mergeDocumentText
public Document.Builder mergeDocumentText(TextSnippet value)
The plain text version of this document.
.google.cloud.automl.v1.TextSnippet document_text = 2;
-
clearDocumentText
public Document.Builder clearDocumentText()
The plain text version of this document.
.google.cloud.automl.v1.TextSnippet document_text = 2;
-
getDocumentTextBuilder
public TextSnippet.Builder getDocumentTextBuilder()
The plain text version of this document.
.google.cloud.automl.v1.TextSnippet document_text = 2;
-
getDocumentTextOrBuilder
public TextSnippetOrBuilder getDocumentTextOrBuilder()
The plain text version of this document.
.google.cloud.automl.v1.TextSnippet document_text = 2;- Specified by:
getDocumentTextOrBuilderin interfaceDocumentOrBuilder
-
getLayoutList
public List<Document.Layout> getLayoutList()
Describes the layout of the document. Sorted by [page_number][].
repeated .google.cloud.automl.v1.Document.Layout layout = 3;- Specified by:
getLayoutListin interfaceDocumentOrBuilder
-
getLayoutCount
public int getLayoutCount()
Describes the layout of the document. Sorted by [page_number][].
repeated .google.cloud.automl.v1.Document.Layout layout = 3;- Specified by:
getLayoutCountin interfaceDocumentOrBuilder
-
getLayout
public Document.Layout getLayout(int index)
Describes the layout of the document. Sorted by [page_number][].
repeated .google.cloud.automl.v1.Document.Layout layout = 3;- Specified by:
getLayoutin interfaceDocumentOrBuilder
-
setLayout
public 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;
-
setLayout
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;
-
addLayout
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;
-
addLayout
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;
-
addLayout
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;
-
addLayout
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;
-
addAllLayout
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;
-
clearLayout
public Document.Builder clearLayout()
Describes the layout of the document. Sorted by [page_number][].
repeated .google.cloud.automl.v1.Document.Layout layout = 3;
-
removeLayout
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;
-
getLayoutBuilder
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;
-
getLayoutOrBuilder
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;- Specified by:
getLayoutOrBuilderin interfaceDocumentOrBuilder
-
getLayoutOrBuilderList
public List<? extends Document.LayoutOrBuilder> getLayoutOrBuilderList()
Describes the layout of the document. Sorted by [page_number][].
repeated .google.cloud.automl.v1.Document.Layout layout = 3;- Specified by:
getLayoutOrBuilderListin interfaceDocumentOrBuilder
-
addLayoutBuilder
public Document.Layout.Builder addLayoutBuilder()
Describes the layout of the document. Sorted by [page_number][].
repeated .google.cloud.automl.v1.Document.Layout layout = 3;
-
addLayoutBuilder
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;
-
getLayoutBuilderList
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;
-
hasDocumentDimensions
public boolean hasDocumentDimensions()
The dimensions of the page in the document.
.google.cloud.automl.v1.DocumentDimensions document_dimensions = 4;- Specified by:
hasDocumentDimensionsin interfaceDocumentOrBuilder- Returns:
- Whether the documentDimensions field is set.
-
getDocumentDimensions
public DocumentDimensions getDocumentDimensions()
The dimensions of the page in the document.
.google.cloud.automl.v1.DocumentDimensions document_dimensions = 4;- Specified by:
getDocumentDimensionsin interfaceDocumentOrBuilder- Returns:
- The documentDimensions.
-
setDocumentDimensions
public Document.Builder setDocumentDimensions(DocumentDimensions value)
The dimensions of the page in the document.
.google.cloud.automl.v1.DocumentDimensions document_dimensions = 4;
-
setDocumentDimensions
public Document.Builder setDocumentDimensions(DocumentDimensions.Builder builderForValue)
The dimensions of the page in the document.
.google.cloud.automl.v1.DocumentDimensions document_dimensions = 4;
-
mergeDocumentDimensions
public Document.Builder mergeDocumentDimensions(DocumentDimensions value)
The dimensions of the page in the document.
.google.cloud.automl.v1.DocumentDimensions document_dimensions = 4;
-
clearDocumentDimensions
public Document.Builder clearDocumentDimensions()
The dimensions of the page in the document.
.google.cloud.automl.v1.DocumentDimensions document_dimensions = 4;
-
getDocumentDimensionsBuilder
public DocumentDimensions.Builder getDocumentDimensionsBuilder()
The dimensions of the page in the document.
.google.cloud.automl.v1.DocumentDimensions document_dimensions = 4;
-
getDocumentDimensionsOrBuilder
public DocumentDimensionsOrBuilder getDocumentDimensionsOrBuilder()
The dimensions of the page in the document.
.google.cloud.automl.v1.DocumentDimensions document_dimensions = 4;- Specified by:
getDocumentDimensionsOrBuilderin interfaceDocumentOrBuilder
-
getPageCount
public int getPageCount()
Number of pages in the document.
int32 page_count = 5;- Specified by:
getPageCountin interfaceDocumentOrBuilder- Returns:
- The pageCount.
-
setPageCount
public Document.Builder setPageCount(int value)
Number of pages in the document.
int32 page_count = 5;- Parameters:
value- The pageCount to set.- Returns:
- This builder for chaining.
-
clearPageCount
public Document.Builder clearPageCount()
Number of pages in the document.
int32 page_count = 5;- Returns:
- This builder for chaining.
-
setUnknownFields
public final Document.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Document.Builder>
-
mergeUnknownFields
public final Document.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Document.Builder>
-
-