Package com.google.cloud.documentai.v1
Class Document.ChunkedDocument.Chunk.ImageChunkField.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Document.ChunkedDocument.Chunk.ImageChunkField.Builder>
com.google.cloud.documentai.v1.Document.ChunkedDocument.Chunk.ImageChunkField.Builder
- All Implemented Interfaces:
Document.ChunkedDocument.Chunk.ImageChunkFieldOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- Document.ChunkedDocument.Chunk.ImageChunkField
public static final class Document.ChunkedDocument.Chunk.ImageChunkField.Builder
extends com.google.protobuf.GeneratedMessage.Builder<Document.ChunkedDocument.Chunk.ImageChunkField.Builder>
implements Document.ChunkedDocument.Chunk.ImageChunkFieldOrBuilder
The image chunk field in the chunk.Protobuf type
google.cloud.documentai.v1.Document.ChunkedDocument.Chunk.ImageChunkField-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()Annotation of the image chunk field.Optional.Optional.Optional.Annotation of the image chunk field.Annotation of the image chunk field.Annotation of the image chunk field.Optional.com.google.protobuf.ByteStringOptional.Optional.com.google.protobuf.ByteStringOptional.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorOptional.com.google.protobuf.ByteStringOptional.booleanAnnotation of the image chunk field.booleanOptional.booleanOptional.booleanOptional.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanAnnotation of the image chunk field.mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) Annotation of the image chunk field.setAnnotations(Document.Annotations.Builder builderForValue) Annotation of the image chunk field.setBlobAssetId(String value) Optional.setBlobAssetIdBytes(com.google.protobuf.ByteString value) Optional.setDataUri(String value) Optional.setDataUriBytes(com.google.protobuf.ByteString value) Optional.Optional.setGcsUriBytes(com.google.protobuf.ByteString value) Optional.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.ChunkedDocument.Chunk.ImageChunkField.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.ChunkedDocument.Chunk.ImageChunkField.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.ChunkedDocument.Chunk.ImageChunkField.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
public Document.ChunkedDocument.Chunk.ImageChunkField.Builder mergeFrom(com.google.protobuf.Message other) - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Document.ChunkedDocument.Chunk.ImageChunkField.Builder>
-
mergeFrom
public Document.ChunkedDocument.Chunk.ImageChunkField.Builder mergeFrom(Document.ChunkedDocument.Chunk.ImageChunkField other) -
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<Document.ChunkedDocument.Chunk.ImageChunkField.Builder>
-
mergeFrom
public Document.ChunkedDocument.Chunk.ImageChunkField.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.ChunkedDocument.Chunk.ImageChunkField.Builder>- Throws:
IOException
-
getImageSourceCase
- Specified by:
getImageSourceCasein interfaceDocument.ChunkedDocument.Chunk.ImageChunkFieldOrBuilder
-
clearImageSource
-
hasBlobAssetId
public boolean hasBlobAssetId()Optional. Asset id of the inline image. If set, find the image content in the blob_assets field.
string blob_asset_id = 1 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
hasBlobAssetIdin interfaceDocument.ChunkedDocument.Chunk.ImageChunkFieldOrBuilder- Returns:
- Whether the blobAssetId field is set.
-
getBlobAssetId
Optional. Asset id of the inline image. If set, find the image content in the blob_assets field.
string blob_asset_id = 1 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getBlobAssetIdin interfaceDocument.ChunkedDocument.Chunk.ImageChunkFieldOrBuilder- Returns:
- The blobAssetId.
-
getBlobAssetIdBytes
public com.google.protobuf.ByteString getBlobAssetIdBytes()Optional. Asset id of the inline image. If set, find the image content in the blob_assets field.
string blob_asset_id = 1 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getBlobAssetIdBytesin interfaceDocument.ChunkedDocument.Chunk.ImageChunkFieldOrBuilder- Returns:
- The bytes for blobAssetId.
-
setBlobAssetId
Optional. Asset id of the inline image. If set, find the image content in the blob_assets field.
string blob_asset_id = 1 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The blobAssetId to set.- Returns:
- This builder for chaining.
-
clearBlobAssetId
Optional. Asset id of the inline image. If set, find the image content in the blob_assets field.
string blob_asset_id = 1 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
setBlobAssetIdBytes
public Document.ChunkedDocument.Chunk.ImageChunkField.Builder setBlobAssetIdBytes(com.google.protobuf.ByteString value) Optional. Asset id of the inline image. If set, find the image content in the blob_assets field.
string blob_asset_id = 1 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The bytes for blobAssetId to set.- Returns:
- This builder for chaining.
-
hasGcsUri
public boolean hasGcsUri()Optional. Google Cloud Storage uri of the image.
string gcs_uri = 2 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
hasGcsUriin interfaceDocument.ChunkedDocument.Chunk.ImageChunkFieldOrBuilder- Returns:
- Whether the gcsUri field is set.
-
getGcsUri
Optional. Google Cloud Storage uri of the image.
string gcs_uri = 2 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getGcsUriin interfaceDocument.ChunkedDocument.Chunk.ImageChunkFieldOrBuilder- Returns:
- The gcsUri.
-
getGcsUriBytes
public com.google.protobuf.ByteString getGcsUriBytes()Optional. Google Cloud Storage uri of the image.
string gcs_uri = 2 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getGcsUriBytesin interfaceDocument.ChunkedDocument.Chunk.ImageChunkFieldOrBuilder- Returns:
- The bytes for gcsUri.
-
setGcsUri
Optional. Google Cloud Storage uri of the image.
string gcs_uri = 2 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The gcsUri to set.- Returns:
- This builder for chaining.
-
clearGcsUri
Optional. Google Cloud Storage uri of the image.
string gcs_uri = 2 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
setGcsUriBytes
public Document.ChunkedDocument.Chunk.ImageChunkField.Builder setGcsUriBytes(com.google.protobuf.ByteString value) Optional. Google Cloud Storage uri of the image.
string gcs_uri = 2 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The bytes for gcsUri to set.- Returns:
- This builder for chaining.
-
hasDataUri
public boolean hasDataUri()Optional. Data uri of the image. It is composed of four parts: a prefix (data:), a MIME type indicating the type of data, an optional base64 token if non-textual, and the data itself: data:[<mediatype>][;base64],<data>
string data_uri = 3 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
hasDataUriin interfaceDocument.ChunkedDocument.Chunk.ImageChunkFieldOrBuilder- Returns:
- Whether the dataUri field is set.
-
getDataUri
Optional. Data uri of the image. It is composed of four parts: a prefix (data:), a MIME type indicating the type of data, an optional base64 token if non-textual, and the data itself: data:[<mediatype>][;base64],<data>
string data_uri = 3 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getDataUriin interfaceDocument.ChunkedDocument.Chunk.ImageChunkFieldOrBuilder- Returns:
- The dataUri.
-
getDataUriBytes
public com.google.protobuf.ByteString getDataUriBytes()Optional. Data uri of the image. It is composed of four parts: a prefix (data:), a MIME type indicating the type of data, an optional base64 token if non-textual, and the data itself: data:[<mediatype>][;base64],<data>
string data_uri = 3 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getDataUriBytesin interfaceDocument.ChunkedDocument.Chunk.ImageChunkFieldOrBuilder- Returns:
- The bytes for dataUri.
-
setDataUri
Optional. Data uri of the image. It is composed of four parts: a prefix (data:), a MIME type indicating the type of data, an optional base64 token if non-textual, and the data itself: data:[<mediatype>][;base64],<data>
string data_uri = 3 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The dataUri to set.- Returns:
- This builder for chaining.
-
clearDataUri
Optional. Data uri of the image. It is composed of four parts: a prefix (data:), a MIME type indicating the type of data, an optional base64 token if non-textual, and the data itself: data:[<mediatype>][;base64],<data>
string data_uri = 3 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
setDataUriBytes
public Document.ChunkedDocument.Chunk.ImageChunkField.Builder setDataUriBytes(com.google.protobuf.ByteString value) Optional. Data uri of the image. It is composed of four parts: a prefix (data:), a MIME type indicating the type of data, an optional base64 token if non-textual, and the data itself: data:[<mediatype>][;base64],<data>
string data_uri = 3 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The bytes for dataUri to set.- Returns:
- This builder for chaining.
-
hasAnnotations
public boolean hasAnnotations()Annotation of the image chunk field.
.google.cloud.documentai.v1.Document.Annotations annotations = 4;- Specified by:
hasAnnotationsin interfaceDocument.ChunkedDocument.Chunk.ImageChunkFieldOrBuilder- Returns:
- Whether the annotations field is set.
-
getAnnotations
Annotation of the image chunk field.
.google.cloud.documentai.v1.Document.Annotations annotations = 4;- Specified by:
getAnnotationsin interfaceDocument.ChunkedDocument.Chunk.ImageChunkFieldOrBuilder- Returns:
- The annotations.
-
setAnnotations
public Document.ChunkedDocument.Chunk.ImageChunkField.Builder setAnnotations(Document.Annotations value) Annotation of the image chunk field.
.google.cloud.documentai.v1.Document.Annotations annotations = 4; -
setAnnotations
public Document.ChunkedDocument.Chunk.ImageChunkField.Builder setAnnotations(Document.Annotations.Builder builderForValue) Annotation of the image chunk field.
.google.cloud.documentai.v1.Document.Annotations annotations = 4; -
mergeAnnotations
public Document.ChunkedDocument.Chunk.ImageChunkField.Builder mergeAnnotations(Document.Annotations value) Annotation of the image chunk field.
.google.cloud.documentai.v1.Document.Annotations annotations = 4; -
clearAnnotations
Annotation of the image chunk field.
.google.cloud.documentai.v1.Document.Annotations annotations = 4; -
getAnnotationsBuilder
Annotation of the image chunk field.
.google.cloud.documentai.v1.Document.Annotations annotations = 4; -
getAnnotationsOrBuilder
Annotation of the image chunk field.
.google.cloud.documentai.v1.Document.Annotations annotations = 4;- Specified by:
getAnnotationsOrBuilderin interfaceDocument.ChunkedDocument.Chunk.ImageChunkFieldOrBuilder
-