Class Document.Page.Image.Builder (2.50.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.v1.Document.Page.Image

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Document.Page.Image.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Document.Page.Image.Builder
Overrides

build()

public Document.Page.Image build()
Returns
Type Description
Document.Page.Image

buildPartial()

public Document.Page.Image buildPartial()
Returns
Type Description
Document.Page.Image

clear()

public Document.Page.Image.Builder clear()
Returns
Type Description
Document.Page.Image.Builder
Overrides

clearContent()

public Document.Page.Image.Builder clearContent()

Raw byte content of the image.

bytes content = 1;

Returns
Type Description
Document.Page.Image.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public Document.Page.Image.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
Document.Page.Image.Builder
Overrides

clearHeight()

public Document.Page.Image.Builder clearHeight()

Height of the image in pixels.

int32 height = 4;

Returns
Type Description
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
Type Description
Document.Page.Image.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public Document.Page.Image.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
Document.Page.Image.Builder
Overrides

clearWidth()

public Document.Page.Image.Builder clearWidth()

Width of the image in pixels.

int32 width = 3;

Returns
Type Description
Document.Page.Image.Builder

This builder for chaining.

clone()

public Document.Page.Image.Builder clone()
Returns
Type Description
Document.Page.Image.Builder
Overrides

getContent()

public ByteString getContent()

Raw byte content of the image.

bytes content = 1;

Returns
Type Description
ByteString

The content.

getDefaultInstanceForType()

public Document.Page.Image getDefaultInstanceForType()
Returns
Type Description
Document.Page.Image

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getHeight()

public int getHeight()

Height of the image in pixels.

int32 height = 4;

Returns
Type Description
int

The height.

getMimeType()

public String getMimeType()

Encoding media type (MIME type) for the image.

string mime_type = 2;

Returns
Type Description
String

The mimeType.

getMimeTypeBytes()

public ByteString getMimeTypeBytes()

Encoding media type (MIME type) for the image.

string mime_type = 2;

Returns
Type Description
ByteString

The bytes for mimeType.

getWidth()

public int getWidth()

Width of the image in pixels.

int32 width = 3;

Returns
Type Description
int

The width.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(Document.Page.Image other)

public Document.Page.Image.Builder mergeFrom(Document.Page.Image other)
Parameter
Name Description
other Document.Page.Image
Returns
Type Description
Document.Page.Image.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Document.Page.Image.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Document.Page.Image.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public Document.Page.Image.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
Document.Page.Image.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Document.Page.Image.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
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
Name Description
value ByteString

The content to set.

Returns
Type Description
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
Name Description
field FieldDescriptor
value Object
Returns
Type Description
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
Name Description
value int

The height to set.

Returns
Type Description
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
Name Description
value String

The mimeType to set.

Returns
Type Description
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
Name Description
value ByteString

The bytes for mimeType to set.

Returns
Type Description
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
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
Document.Page.Image.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final Document.Page.Image.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
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
Name Description
value int

The width to set.

Returns
Type Description
Document.Page.Image.Builder

This builder for chaining.