Class RawImageDescriptor.Builder (0.40.0)

public static final class RawImageDescriptor.Builder extends GeneratedMessage.Builder<RawImageDescriptor.Builder> implements RawImageDescriptorOrBuilder

The descriptor for a raw image.

Protobuf type google.cloud.visionai.v1.RawImageDescriptor

Static Methods

getDescriptor()

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

Methods

build()

public RawImageDescriptor build()
Returns
Type Description
RawImageDescriptor

buildPartial()

public RawImageDescriptor buildPartial()
Returns
Type Description
RawImageDescriptor

clear()

public RawImageDescriptor.Builder clear()
Returns
Type Description
RawImageDescriptor.Builder
Overrides

clearFormat()

public RawImageDescriptor.Builder clearFormat()

Raw image format. Its possible values are: "srgb".

string format = 1;

Returns
Type Description
RawImageDescriptor.Builder

This builder for chaining.

clearHeight()

public RawImageDescriptor.Builder clearHeight()

The height of the image.

int32 height = 2;

Returns
Type Description
RawImageDescriptor.Builder

This builder for chaining.

clearWidth()

public RawImageDescriptor.Builder clearWidth()

The width of the image.

int32 width = 3;

Returns
Type Description
RawImageDescriptor.Builder

This builder for chaining.

getDefaultInstanceForType()

public RawImageDescriptor getDefaultInstanceForType()
Returns
Type Description
RawImageDescriptor

getDescriptorForType()

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

getFormat()

public String getFormat()

Raw image format. Its possible values are: "srgb".

string format = 1;

Returns
Type Description
String

The format.

getFormatBytes()

public ByteString getFormatBytes()

Raw image format. Its possible values are: "srgb".

string format = 1;

Returns
Type Description
ByteString

The bytes for format.

getHeight()

public int getHeight()

The height of the image.

int32 height = 2;

Returns
Type Description
int

The height.

getWidth()

public int getWidth()

The width of the image.

int32 width = 3;

Returns
Type Description
int

The width.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(RawImageDescriptor other)

public RawImageDescriptor.Builder mergeFrom(RawImageDescriptor other)
Parameter
Name Description
other RawImageDescriptor
Returns
Type Description
RawImageDescriptor.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public RawImageDescriptor.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
RawImageDescriptor.Builder
Overrides

setFormat(String value)

public RawImageDescriptor.Builder setFormat(String value)

Raw image format. Its possible values are: "srgb".

string format = 1;

Parameter
Name Description
value String

The format to set.

Returns
Type Description
RawImageDescriptor.Builder

This builder for chaining.

setFormatBytes(ByteString value)

public RawImageDescriptor.Builder setFormatBytes(ByteString value)

Raw image format. Its possible values are: "srgb".

string format = 1;

Parameter
Name Description
value ByteString

The bytes for format to set.

Returns
Type Description
RawImageDescriptor.Builder

This builder for chaining.

setHeight(int value)

public RawImageDescriptor.Builder setHeight(int value)

The height of the image.

int32 height = 2;

Parameter
Name Description
value int

The height to set.

Returns
Type Description
RawImageDescriptor.Builder

This builder for chaining.

setWidth(int value)

public RawImageDescriptor.Builder setWidth(int value)

The width of the image.

int32 width = 3;

Parameter
Name Description
value int

The width to set.

Returns
Type Description
RawImageDescriptor.Builder

This builder for chaining.