Class Blob.Builder (3.84.0)

public static final class Blob.Builder extends GeneratedMessage.Builder<Blob.Builder> implements BlobOrBuilder

Content blob.

It's preferred to send as text directly rather than raw bytes.

Protobuf type google.cloud.aiplatform.v1beta1.Blob

Implements

BlobOrBuilder

Static 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
Overrides

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
Overrides

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
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

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
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

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

setData(ByteString value)

public Blob.Builder setData(ByteString value)

Required. Raw bytes.

bytes data = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The 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 String

The 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 ByteString

The bytes for mimeType to set.

Returns
Type Description
Blob.Builder

This builder for chaining.