Class RawImageDescriptor.Builder (0.1.0)

public static final class RawImageDescriptor.Builder extends GeneratedMessageV3.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

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

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

clearField(Descriptors.FieldDescriptor field)

public RawImageDescriptor.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
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.

clearOneof(Descriptors.OneofDescriptor oneof)

public RawImageDescriptor.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
RawImageDescriptor.Builder
Overrides

clearWidth()

public RawImageDescriptor.Builder clearWidth()

The width of the image.

int32 width = 3;

Returns
Type Description
RawImageDescriptor.Builder

This builder for chaining.

clone()

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

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 GeneratedMessageV3.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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final RawImageDescriptor.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
RawImageDescriptor.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public RawImageDescriptor.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
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.

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

public RawImageDescriptor.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
RawImageDescriptor.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final RawImageDescriptor.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
RawImageDescriptor.Builder
Overrides

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.