public static final class Blob.Builder extends GeneratedMessage.Builder<Blob.Builder> implements BlobOrBuilderContent blob.
It's preferred to send as text directly rather than raw bytes.
Protobuf type google.cloud.vertexai.v1.Blob
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > Blob.BuilderImplements
BlobOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public Blob build()| Returns | |
|---|---|
| Type | Description |
Blob |
|
buildPartial()
public Blob buildPartial()| Returns | |
|---|---|
| Type | Description |
Blob |
|
clear()
public Blob.Builder clear()| Returns | |
|---|---|
| Type | Description |
Blob.Builder |
|
clearData()
public Blob.Builder clearData()Required. Raw bytes.
bytes data = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
Blob.Builder |
This builder for chaining. |
clearMimeType()
public Blob.Builder clearMimeType()Required. The IANA standard MIME type of the source data.
string mime_type = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
Blob.Builder |
This builder for chaining. |
getData()
public ByteString getData()Required. Raw bytes.
bytes data = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The data. |
getDefaultInstanceForType()
public Blob getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
Blob |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getMimeType()
public String getMimeType()Required. The IANA standard MIME type of the source data.
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.
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(Blob other)
public Blob.Builder mergeFrom(Blob other)| Parameter | |
|---|---|
| Name | Description |
other |
Blob |
| Returns | |
|---|---|
| Type | Description |
Blob.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public Blob.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
Blob.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public Blob.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
Blob.Builder |
|
setData(ByteString value)
public Blob.Builder setData(ByteString value)Required. Raw bytes.
bytes data = 2 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe data to set. |
| Returns | |
|---|---|
| Type | Description |
Blob.Builder |
This builder for chaining. |
setMimeType(String value)
public Blob.Builder setMimeType(String value)Required. The IANA standard MIME type of the source data.
string mime_type = 1 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe mimeType to set. |
| Returns | |
|---|---|
| Type | Description |
Blob.Builder |
This builder for chaining. |
setMimeTypeBytes(ByteString value)
public Blob.Builder setMimeTypeBytes(ByteString value)Required. The IANA standard MIME type of the source data.
string mime_type = 1 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for mimeType to set. |
| Returns | |
|---|---|
| Type | Description |
Blob.Builder |
This builder for chaining. |