public static final class Image.Builder extends GeneratedMessage.Builder<Image.Builder> implements ImageOrBuilderRepresents an image input or output in the conversation.
Protobuf type google.cloud.ces.v1.Image
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > Image.BuilderImplements
ImageOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public Image build()| Returns | |
|---|---|
| Type | Description |
Image |
|
buildPartial()
public Image buildPartial()| Returns | |
|---|---|
| Type | Description |
Image |
|
clear()
public Image.Builder clear()| Returns | |
|---|---|
| Type | Description |
Image.Builder |
|
clearData()
public Image.Builder clearData()Required. Raw bytes of the image.
bytes data = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
Image.Builder |
This builder for chaining. |
clearMimeType()
public Image.Builder clearMimeType()Required. The IANA standard MIME type of the source data. Supported image types includes:
- image/png
- image/jpeg
- image/webp
string mime_type = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
Image.Builder |
This builder for chaining. |
getData()
public ByteString getData()Required. Raw bytes of the image.
bytes data = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The data. |
getDefaultInstanceForType()
public Image getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
Image |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getMimeType()
public String getMimeType()Required. The IANA standard MIME type of the source data. Supported image types includes:
- image/png
- image/jpeg
- image/webp
string mime_type = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
String |
The mimeType. |
getMimeTypeBytes()
public ByteString getMimeTypeBytes()Required. The IANA standard MIME type of the source data. Supported image types includes:
- image/png
- image/jpeg
- image/webp
string mime_type = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for mimeType. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(Image other)
public Image.Builder mergeFrom(Image other)| Parameter | |
|---|---|
| Name | Description |
other |
Image |
| Returns | |
|---|---|
| Type | Description |
Image.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public Image.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
Image.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public Image.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
Image.Builder |
|
setData(ByteString value)
public Image.Builder setData(ByteString value)Required. Raw bytes of the image.
bytes data = 2 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe data to set. |
| Returns | |
|---|---|
| Type | Description |
Image.Builder |
This builder for chaining. |
setMimeType(String value)
public Image.Builder setMimeType(String value)Required. The IANA standard MIME type of the source data. Supported image types includes:
- image/png
- image/jpeg
- image/webp
string mime_type = 1 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe mimeType to set. |
| Returns | |
|---|---|
| Type | Description |
Image.Builder |
This builder for chaining. |
setMimeTypeBytes(ByteString value)
public Image.Builder setMimeTypeBytes(ByteString value)Required. The IANA standard MIME type of the source data. Supported image types includes:
- image/png
- image/jpeg
- image/webp
string mime_type = 1 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for mimeType to set. |
| Returns | |
|---|---|
| Type | Description |
Image.Builder |
This builder for chaining. |