Class Document.ChunkedDocument.Chunk.ImageChunkField (2.66.0)

public static final class Document.ChunkedDocument.Chunk.ImageChunkField extends GeneratedMessageV3 implements Document.ChunkedDocument.Chunk.ImageChunkFieldOrBuilder

The image chunk field in the chunk.

Protobuf type google.cloud.documentai.v1beta3.Document.ChunkedDocument.Chunk.ImageChunkField

Inheritance

Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > Document.ChunkedDocument.Chunk.ImageChunkField

Static Fields

ANNOTATIONS_FIELD_NUMBER

public static final int ANNOTATIONS_FIELD_NUMBER
Field Value
Type Description
int

BLOB_ASSET_ID_FIELD_NUMBER

public static final int BLOB_ASSET_ID_FIELD_NUMBER
Field Value
Type Description
int

DATA_URI_FIELD_NUMBER

public static final int DATA_URI_FIELD_NUMBER
Field Value
Type Description
int

GCS_URI_FIELD_NUMBER

public static final int GCS_URI_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static Document.ChunkedDocument.Chunk.ImageChunkField getDefaultInstance()
Returns
Type Description
Document.ChunkedDocument.Chunk.ImageChunkField

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static Document.ChunkedDocument.Chunk.ImageChunkField.Builder newBuilder()
Returns
Type Description
Document.ChunkedDocument.Chunk.ImageChunkField.Builder

newBuilder(Document.ChunkedDocument.Chunk.ImageChunkField prototype)

public static Document.ChunkedDocument.Chunk.ImageChunkField.Builder newBuilder(Document.ChunkedDocument.Chunk.ImageChunkField prototype)
Parameter
Name Description
prototype Document.ChunkedDocument.Chunk.ImageChunkField
Returns
Type Description
Document.ChunkedDocument.Chunk.ImageChunkField.Builder

parseDelimitedFrom(InputStream input)

public static Document.ChunkedDocument.Chunk.ImageChunkField parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
Document.ChunkedDocument.Chunk.ImageChunkField
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Document.ChunkedDocument.Chunk.ImageChunkField parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Document.ChunkedDocument.Chunk.ImageChunkField
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static Document.ChunkedDocument.Chunk.ImageChunkField parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
Document.ChunkedDocument.Chunk.ImageChunkField
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static Document.ChunkedDocument.Chunk.ImageChunkField parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Document.ChunkedDocument.Chunk.ImageChunkField
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static Document.ChunkedDocument.Chunk.ImageChunkField parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
Document.ChunkedDocument.Chunk.ImageChunkField
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static Document.ChunkedDocument.Chunk.ImageChunkField parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Document.ChunkedDocument.Chunk.ImageChunkField
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static Document.ChunkedDocument.Chunk.ImageChunkField parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
Document.ChunkedDocument.Chunk.ImageChunkField
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static Document.ChunkedDocument.Chunk.ImageChunkField parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Document.ChunkedDocument.Chunk.ImageChunkField
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static Document.ChunkedDocument.Chunk.ImageChunkField parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
Document.ChunkedDocument.Chunk.ImageChunkField
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Document.ChunkedDocument.Chunk.ImageChunkField parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Document.ChunkedDocument.Chunk.ImageChunkField
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static Document.ChunkedDocument.Chunk.ImageChunkField parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
Document.ChunkedDocument.Chunk.ImageChunkField
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static Document.ChunkedDocument.Chunk.ImageChunkField parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Document.ChunkedDocument.Chunk.ImageChunkField
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<Document.ChunkedDocument.Chunk.ImageChunkField> parser()
Returns
Type Description
Parser<ImageChunkField>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getAnnotations()

public Document.Annotations getAnnotations()

Annotation of the image chunk field.

.google.cloud.documentai.v1beta3.Document.Annotations annotations = 4;

Returns
Type Description
Document.Annotations

The annotations.

getAnnotationsOrBuilder()

public Document.AnnotationsOrBuilder getAnnotationsOrBuilder()

Annotation of the image chunk field.

.google.cloud.documentai.v1beta3.Document.Annotations annotations = 4;

Returns
Type Description
Document.AnnotationsOrBuilder

getBlobAssetId()

public String 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];

Returns
Type Description
String

The blobAssetId.

getBlobAssetIdBytes()

public 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];

Returns
Type Description
ByteString

The bytes for blobAssetId.

getDataUri()

public String 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>,<data>

string data_uri = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The dataUri.

getDataUriBytes()

public 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>,<data>

string data_uri = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for dataUri.

getDefaultInstanceForType()

public Document.ChunkedDocument.Chunk.ImageChunkField getDefaultInstanceForType()
Returns
Type Description
Document.ChunkedDocument.Chunk.ImageChunkField

getGcsUri()

public String getGcsUri()

Optional. Google Cloud Storage uri of the image.

string gcs_uri = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The gcsUri.

getGcsUriBytes()

public ByteString getGcsUriBytes()

Optional. Google Cloud Storage uri of the image.

string gcs_uri = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for gcsUri.

getImageSourceCase()

public Document.ChunkedDocument.Chunk.ImageChunkField.ImageSourceCase getImageSourceCase()
Returns
Type Description
Document.ChunkedDocument.Chunk.ImageChunkField.ImageSourceCase

getParserForType()

public Parser<Document.ChunkedDocument.Chunk.ImageChunkField> getParserForType()
Returns
Type Description
Parser<ImageChunkField>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

hasAnnotations()

public boolean hasAnnotations()

Annotation of the image chunk field.

.google.cloud.documentai.v1beta3.Document.Annotations annotations = 4;

Returns
Type Description
boolean

Whether the annotations field is set.

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];

Returns
Type Description
boolean

Whether the blobAssetId field is set.

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>,<data>

string data_uri = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the dataUri field is set.

hasGcsUri()

public boolean hasGcsUri()

Optional. Google Cloud Storage uri of the image.

string gcs_uri = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the gcsUri field is set.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public Document.ChunkedDocument.Chunk.ImageChunkField.Builder newBuilderForType()
Returns
Type Description
Document.ChunkedDocument.Chunk.ImageChunkField.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected Document.ChunkedDocument.Chunk.ImageChunkField.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
Document.ChunkedDocument.Chunk.ImageChunkField.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public Document.ChunkedDocument.Chunk.ImageChunkField.Builder toBuilder()
Returns
Type Description
Document.ChunkedDocument.Chunk.ImageChunkField.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException