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.GeneratedMessage.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.GeneratedMessage.Builder<Document.Builder>
implements DocumentOrBuilder
A structured text document e.g. a PDF.Protobuf type
google.cloud.automl.v1.Document-
Method Summary
Modifier and TypeMethodDescriptionaddAllLayout(Iterable<? extends Document.Layout> values) Describes the layout of the document.addLayout(int index, Document.Layout value) Describes the layout of the document.addLayout(int index, Document.Layout.Builder builderForValue) Describes the layout of the document.addLayout(Document.Layout value) Describes the layout of the document.addLayout(Document.Layout.Builder builderForValue) Describes the layout of the document.Describes the layout of the document.addLayoutBuilder(int index) Describes the layout of the document.build()clear()The dimensions of the page in the document.The plain text version of this document.An input config specifying the content of the document.Describes the layout of the document.Number of pages in the document.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorThe dimensions of the page in the document.The dimensions of the page in the document.The dimensions of the page in the document.The plain text version of this document.The plain text version of this document.The plain text version of this document.An input config specifying the content of the document.An input config specifying the content of the document.An input config specifying the content of the document.getLayout(int index) Describes the layout of the document.getLayoutBuilder(int index) Describes the layout of the document.Describes the layout of the document.intDescribes the layout of the document.Describes the layout of the document.getLayoutOrBuilder(int index) Describes the layout of the document.List<? extends Document.LayoutOrBuilder>Describes the layout of the document.intNumber of pages in the document.booleanThe dimensions of the page in the document.booleanThe plain text version of this document.booleanAn input config specifying the content of the document.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanThe dimensions of the page in the document.mergeDocumentText(TextSnippet value) The plain text version of this document.mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) An input config specifying the content of the document.removeLayout(int index) Describes the layout of the document.The dimensions of the page in the document.setDocumentDimensions(DocumentDimensions.Builder builderForValue) The dimensions of the page in the document.setDocumentText(TextSnippet value) The plain text version of this document.setDocumentText(TextSnippet.Builder builderForValue) The plain text version of this document.An input config specifying the content of the document.setInputConfig(DocumentInputConfig.Builder builderForValue) An input config specifying the content of the document.setLayout(int index, Document.Layout value) Describes the layout of the document.setLayout(int index, Document.Layout.Builder builderForValue) Describes the layout of the document.setPageCount(int value) Number of pages in the document.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<Document.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.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.GeneratedMessage.Builder<Document.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Document.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.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
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
An input config specifying the content of the document.
.google.cloud.automl.v1.DocumentInputConfig input_config = 1; -
setInputConfig
An input config specifying the content of the document.
.google.cloud.automl.v1.DocumentInputConfig input_config = 1; -
mergeInputConfig
An input config specifying the content of the document.
.google.cloud.automl.v1.DocumentInputConfig input_config = 1; -
clearInputConfig
An input config specifying the content of the document.
.google.cloud.automl.v1.DocumentInputConfig input_config = 1; -
getInputConfigBuilder
An input config specifying the content of the document.
.google.cloud.automl.v1.DocumentInputConfig input_config = 1; -
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
The plain text version of this document.
.google.cloud.automl.v1.TextSnippet document_text = 2;- Specified by:
getDocumentTextin interfaceDocumentOrBuilder- Returns:
- The documentText.
-
setDocumentText
The plain text version of this document.
.google.cloud.automl.v1.TextSnippet document_text = 2; -
setDocumentText
The plain text version of this document.
.google.cloud.automl.v1.TextSnippet document_text = 2; -
mergeDocumentText
The plain text version of this document.
.google.cloud.automl.v1.TextSnippet document_text = 2; -
clearDocumentText
The plain text version of this document.
.google.cloud.automl.v1.TextSnippet document_text = 2; -
getDocumentTextBuilder
The plain text version of this document.
.google.cloud.automl.v1.TextSnippet document_text = 2; -
getDocumentTextOrBuilder
The plain text version of this document.
.google.cloud.automl.v1.TextSnippet document_text = 2;- Specified by:
getDocumentTextOrBuilderin interfaceDocumentOrBuilder
-
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
Describes the layout of the document. Sorted by [page_number][].
repeated .google.cloud.automl.v1.Document.Layout layout = 3;- Specified by:
getLayoutin interfaceDocumentOrBuilder
-
setLayout
Describes the layout of the document. Sorted by [page_number][].
repeated .google.cloud.automl.v1.Document.Layout layout = 3; -
setLayout
Describes the layout of the document. Sorted by [page_number][].
repeated .google.cloud.automl.v1.Document.Layout layout = 3; -
addLayout
Describes the layout of the document. Sorted by [page_number][].
repeated .google.cloud.automl.v1.Document.Layout layout = 3; -
addLayout
Describes the layout of the document. Sorted by [page_number][].
repeated .google.cloud.automl.v1.Document.Layout layout = 3; -
addLayout
Describes the layout of the document. Sorted by [page_number][].
repeated .google.cloud.automl.v1.Document.Layout layout = 3; -
addLayout
Describes the layout of the document. Sorted by [page_number][].
repeated .google.cloud.automl.v1.Document.Layout layout = 3; -
addAllLayout
Describes the layout of the document. Sorted by [page_number][].
repeated .google.cloud.automl.v1.Document.Layout layout = 3; -
clearLayout
Describes the layout of the document. Sorted by [page_number][].
repeated .google.cloud.automl.v1.Document.Layout layout = 3; -
removeLayout
Describes the layout of the document. Sorted by [page_number][].
repeated .google.cloud.automl.v1.Document.Layout layout = 3; -
getLayoutBuilder
Describes the layout of the document. Sorted by [page_number][].
repeated .google.cloud.automl.v1.Document.Layout layout = 3; -
getLayoutOrBuilder
Describes the layout of the document. Sorted by [page_number][].
repeated .google.cloud.automl.v1.Document.Layout layout = 3;- Specified by:
getLayoutOrBuilderin interfaceDocumentOrBuilder
-
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
Describes the layout of the document. Sorted by [page_number][].
repeated .google.cloud.automl.v1.Document.Layout layout = 3; -
addLayoutBuilder
Describes the layout of the document. Sorted by [page_number][].
repeated .google.cloud.automl.v1.Document.Layout layout = 3; -
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
The dimensions of the page in the document.
.google.cloud.automl.v1.DocumentDimensions document_dimensions = 4;- Specified by:
getDocumentDimensionsin interfaceDocumentOrBuilder- Returns:
- The documentDimensions.
-
setDocumentDimensions
The dimensions of the page in the document.
.google.cloud.automl.v1.DocumentDimensions document_dimensions = 4; -
setDocumentDimensions
The dimensions of the page in the document.
.google.cloud.automl.v1.DocumentDimensions document_dimensions = 4; -
mergeDocumentDimensions
The dimensions of the page in the document.
.google.cloud.automl.v1.DocumentDimensions document_dimensions = 4; -
clearDocumentDimensions
The dimensions of the page in the document.
.google.cloud.automl.v1.DocumentDimensions document_dimensions = 4; -
getDocumentDimensionsBuilder
The dimensions of the page in the document.
.google.cloud.automl.v1.DocumentDimensions document_dimensions = 4; -
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
Number of pages in the document.
int32 page_count = 5;- Parameters:
value- The pageCount to set.- Returns:
- This builder for chaining.
-
clearPageCount
Number of pages in the document.
int32 page_count = 5;- Returns:
- This builder for chaining.
-