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.Builder
addAllLayout(Iterable<? extends Document.Layout> values)
Describes the layout of the document.Document.Builder
addLayout(int index, 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(Document.Layout value)
Describes the layout of the document.Document.Builder
addLayout(Document.Layout.Builder builderForValue)
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(Document other)
Document.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
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 value)
The dimensions of the page in the document.Document.Builder
setDocumentDimensions(DocumentDimensions.Builder builderForValue)
The dimensions of the page in the document.Document.Builder
setDocumentText(TextSnippet value)
The plain text version of this document.Document.Builder
setDocumentText(TextSnippet.Builder builderForValue)
The plain text version of this document.Document.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
Document.Builder
setInputConfig(DocumentInputConfig value)
An input config specifying the content of the document.Document.Builder
setInputConfig(DocumentInputConfig.Builder builderForValue)
An input config specifying the content of the document.Document.Builder
setLayout(int index, Document.Layout value)
Describes the layout of the document.Document.Builder
setLayout(int index, Document.Layout.Builder builderForValue)
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)
-
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:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<Document.Builder>
-
clear
public Document.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<Document.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<Document.Builder>
-
getDefaultInstanceForType
public Document getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public Document build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public Document buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public Document.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<Document.Builder>
-
setField
public Document.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Document.Builder>
-
clearField
public Document.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Document.Builder>
-
clearOneof
public Document.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<Document.Builder>
-
setRepeatedField
public Document.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Document.Builder>
-
addRepeatedField
public Document.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Document.Builder>
-
mergeFrom
public Document.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<Document.Builder>
-
mergeFrom
public Document.Builder mergeFrom(Document other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in 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:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in 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:
hasInputConfig
in 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:
getInputConfig
in 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:
getInputConfigOrBuilder
in interfaceDocumentOrBuilder
-
hasDocumentText
public boolean hasDocumentText()
The plain text version of this document.
.google.cloud.automl.v1.TextSnippet document_text = 2;
- Specified by:
hasDocumentText
in 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:
getDocumentText
in 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:
getDocumentTextOrBuilder
in 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:
getLayoutList
in 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:
getLayoutCount
in 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:
getLayout
in 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:
getLayoutOrBuilder
in 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:
getLayoutOrBuilderList
in 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:
hasDocumentDimensions
in 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:
getDocumentDimensions
in 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:
getDocumentDimensionsOrBuilder
in interfaceDocumentOrBuilder
-
getPageCount
public int getPageCount()
Number of pages in the document.
int32 page_count = 5;
- Specified by:
getPageCount
in 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:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<Document.Builder>
-
mergeUnknownFields
public final Document.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<Document.Builder>
-
-