Class Document.Page.Image.Builder (2.34.0)

public static final class Document.Page.Image.Builder extends GeneratedMessageV3.Builder<Document.Page.Image.Builder> implements Document.Page.ImageOrBuilder

Rendered image contents for this page.

Protobuf type google.cloud.documentai.v1beta3.Document.Page.Image

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Document.Page.Image.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
Document.Page.Image.Builder
Overrides

build()

public Document.Page.Image build()
Returns
TypeDescription
Document.Page.Image

buildPartial()

public Document.Page.Image buildPartial()
Returns
TypeDescription
Document.Page.Image

clear()

public Document.Page.Image.Builder clear()
Returns
TypeDescription
Document.Page.Image.Builder
Overrides

clearContent()

public Document.Page.Image.Builder clearContent()

Raw byte content of the image.

bytes content = 1;

Returns
TypeDescription
Document.Page.Image.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public Document.Page.Image.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
Document.Page.Image.Builder
Overrides

clearHeight()

public Document.Page.Image.Builder clearHeight()

Height of the image in pixels.

int32 height = 4;

Returns
TypeDescription
Document.Page.Image.Builder

This builder for chaining.

clearMimeType()

public Document.Page.Image.Builder clearMimeType()

Encoding media type (MIME type) for the image.

string mime_type = 2;

Returns
TypeDescription
Document.Page.Image.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public Document.Page.Image.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
Document.Page.Image.Builder
Overrides

clearWidth()

public Document.Page.Image.Builder clearWidth()

Width of the image in pixels.

int32 width = 3;

Returns
TypeDescription
Document.Page.Image.Builder

This builder for chaining.

clone()

public Document.Page.Image.Builder clone()
Returns
TypeDescription
Document.Page.Image.Builder
Overrides

getContent()

public ByteString getContent()

Raw byte content of the image.

bytes content = 1;

Returns
TypeDescription
ByteString

The content.

getDefaultInstanceForType()

public Document.Page.Image getDefaultInstanceForType()
Returns
TypeDescription
Document.Page.Image

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getHeight()

public int getHeight()

Height of the image in pixels.

int32 height = 4;

Returns
TypeDescription
int

The height.

getMimeType()

public String getMimeType()

Encoding media type (MIME type) for the image.

string mime_type = 2;

Returns
TypeDescription
String

The mimeType.

getMimeTypeBytes()

public ByteString getMimeTypeBytes()

Encoding media type (MIME type) for the image.

string mime_type = 2;

Returns
TypeDescription
ByteString

The bytes for mimeType.

getWidth()

public int getWidth()

Width of the image in pixels.

int32 width = 3;

Returns
TypeDescription
int

The width.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(Document.Page.Image other)

public Document.Page.Image.Builder mergeFrom(Document.Page.Image other)
Parameter
NameDescription
otherDocument.Page.Image
Returns
TypeDescription
Document.Page.Image.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Document.Page.Image.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Document.Page.Image.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public Document.Page.Image.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
Document.Page.Image.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Document.Page.Image.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Document.Page.Image.Builder
Overrides

setContent(ByteString value)

public Document.Page.Image.Builder setContent(ByteString value)

Raw byte content of the image.

bytes content = 1;

Parameter
NameDescription
valueByteString

The content to set.

Returns
TypeDescription
Document.Page.Image.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public Document.Page.Image.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
Document.Page.Image.Builder
Overrides

setHeight(int value)

public Document.Page.Image.Builder setHeight(int value)

Height of the image in pixels.

int32 height = 4;

Parameter
NameDescription
valueint

The height to set.

Returns
TypeDescription
Document.Page.Image.Builder

This builder for chaining.

setMimeType(String value)

public Document.Page.Image.Builder setMimeType(String value)

Encoding media type (MIME type) for the image.

string mime_type = 2;

Parameter
NameDescription
valueString

The mimeType to set.

Returns
TypeDescription
Document.Page.Image.Builder

This builder for chaining.

setMimeTypeBytes(ByteString value)

public Document.Page.Image.Builder setMimeTypeBytes(ByteString value)

Encoding media type (MIME type) for the image.

string mime_type = 2;

Parameter
NameDescription
valueByteString

The bytes for mimeType to set.

Returns
TypeDescription
Document.Page.Image.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public Document.Page.Image.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
Document.Page.Image.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final Document.Page.Image.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Document.Page.Image.Builder
Overrides

setWidth(int value)

public Document.Page.Image.Builder setWidth(int value)

Width of the image in pixels.

int32 width = 3;

Parameter
NameDescription
valueint

The width to set.

Returns
TypeDescription
Document.Page.Image.Builder

This builder for chaining.