public static final class RawImageDescriptor.Builder extends GeneratedMessage.Builder<RawImageDescriptor.Builder> implements RawImageDescriptorOrBuilderThe descriptor for a raw image.
Protobuf type google.cloud.visionai.v1.RawImageDescriptor
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > RawImageDescriptor.BuilderImplements
RawImageDescriptorOrBuilderStatic 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 |
|
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 |
|
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 |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
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 |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public RawImageDescriptor.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
RawImageDescriptor.Builder |
|
setFormat(String value)
public RawImageDescriptor.Builder setFormat(String value)Raw image format. Its possible values are: "srgb".
string format = 1;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe 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 |
ByteStringThe 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 |
intThe 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 |
intThe width to set. |
| Returns | |
|---|---|
| Type | Description |
RawImageDescriptor.Builder |
This builder for chaining. |