Class Blob.Builder (3.46.0)

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

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

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.

clearField(Descriptors.FieldDescriptor field)

public Blob.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
Blob.Builder
Overrides

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.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Blob.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
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.

setField(Descriptors.FieldDescriptor field, Object value)

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

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.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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