Package com.google.cloud.documentai.v1
Class Document.BlobAsset.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Document.BlobAsset.Builder>
com.google.cloud.documentai.v1.Document.BlobAsset.Builder
- All Implemented Interfaces:
Document.BlobAssetOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- Document.BlobAsset
public static final class Document.BlobAsset.Builder
extends com.google.protobuf.GeneratedMessage.Builder<Document.BlobAsset.Builder>
implements Document.BlobAssetOrBuilder
Represents a blob asset. It's used to store the content of the inline blob in this document, for example, image bytes, such that it can be referenced by other fields in the document via asset ID.Protobuf type
google.cloud.documentai.v1.Document.BlobAsset-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()Optional.Optional.The mime type of the blob asset.Optional.com.google.protobuf.ByteStringOptional.com.google.protobuf.ByteStringOptional.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorThe mime type of the blob asset.com.google.protobuf.ByteStringThe mime type of the blob asset.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(Document.BlobAsset other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) setAssetId(String value) Optional.setAssetIdBytes(com.google.protobuf.ByteString value) Optional.setContent(com.google.protobuf.ByteString value) Optional.setMimeType(String value) The mime type of the blob asset.setMimeTypeBytes(com.google.protobuf.ByteString value) The mime type of the blob asset.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.BlobAsset.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.BlobAsset.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.BlobAsset.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.BlobAsset.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<Document.BlobAsset.Builder>
-
mergeFrom
public Document.BlobAsset.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.BlobAsset.Builder>- Throws:
IOException
-
getAssetId
Optional. The id of the blob asset.
string asset_id = 1 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getAssetIdin interfaceDocument.BlobAssetOrBuilder- Returns:
- The assetId.
-
getAssetIdBytes
public com.google.protobuf.ByteString getAssetIdBytes()Optional. The id of the blob asset.
string asset_id = 1 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getAssetIdBytesin interfaceDocument.BlobAssetOrBuilder- Returns:
- The bytes for assetId.
-
setAssetId
Optional. The id of the blob asset.
string asset_id = 1 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The assetId to set.- Returns:
- This builder for chaining.
-
clearAssetId
Optional. The id of the blob asset.
string asset_id = 1 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
setAssetIdBytes
Optional. The id of the blob asset.
string asset_id = 1 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The bytes for assetId to set.- Returns:
- This builder for chaining.
-
getContent
public com.google.protobuf.ByteString getContent()Optional. The content of the blob asset, for example, image bytes.
bytes content = 2 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getContentin interfaceDocument.BlobAssetOrBuilder- Returns:
- The content.
-
setContent
Optional. The content of the blob asset, for example, image bytes.
bytes content = 2 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The content to set.- Returns:
- This builder for chaining.
-
clearContent
Optional. The content of the blob asset, for example, image bytes.
bytes content = 2 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
getMimeType
The mime type of the blob asset. An IANA published [media type (MIME type)](https://www.iana.org/assignments/media-types/media-types.xhtml).
string mime_type = 3;- Specified by:
getMimeTypein interfaceDocument.BlobAssetOrBuilder- Returns:
- The mimeType.
-
getMimeTypeBytes
public com.google.protobuf.ByteString getMimeTypeBytes()The mime type of the blob asset. An IANA published [media type (MIME type)](https://www.iana.org/assignments/media-types/media-types.xhtml).
string mime_type = 3;- Specified by:
getMimeTypeBytesin interfaceDocument.BlobAssetOrBuilder- Returns:
- The bytes for mimeType.
-
setMimeType
The mime type of the blob asset. An IANA published [media type (MIME type)](https://www.iana.org/assignments/media-types/media-types.xhtml).
string mime_type = 3;- Parameters:
value- The mimeType to set.- Returns:
- This builder for chaining.
-
clearMimeType
The mime type of the blob asset. An IANA published [media type (MIME type)](https://www.iana.org/assignments/media-types/media-types.xhtml).
string mime_type = 3;- Returns:
- This builder for chaining.
-
setMimeTypeBytes
The mime type of the blob asset. An IANA published [media type (MIME type)](https://www.iana.org/assignments/media-types/media-types.xhtml).
string mime_type = 3;- Parameters:
value- The bytes for mimeType to set.- Returns:
- This builder for chaining.
-