Class Blob.Builder (3.35.0)

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

Raw media bytes.

Text should not be sent as raw bytes, use the 'text' field.

Protobuf type google.cloud.aiplatform.v1beta1.Blob

Implements

BlobOrBuilder

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Blob.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
Blob.Builder
Overrides

build()

public Blob build()
Returns
TypeDescription
Blob

buildPartial()

public Blob buildPartial()
Returns
TypeDescription
Blob

clear()

public Blob.Builder clear()
Returns
TypeDescription
Blob.Builder
Overrides

clearData()

public Blob.Builder clearData()

Required. Raw bytes for media formats.

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

Returns
TypeDescription
Blob.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public Blob.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
Blob.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public Blob.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
Blob.Builder
Overrides

clone()

public Blob.Builder clone()
Returns
TypeDescription
Blob.Builder
Overrides

getData()

public ByteString getData()

Required. Raw bytes for media formats.

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

Returns
TypeDescription
ByteString

The data.

getDefaultInstanceForType()

public Blob getDefaultInstanceForType()
Returns
TypeDescription
Blob

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for mimeType.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(Blob other)

public Blob.Builder mergeFrom(Blob other)
Parameter
NameDescription
otherBlob
Returns
TypeDescription
Blob.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Blob.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Blob.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public Blob.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
Blob.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Blob.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Blob.Builder
Overrides

setData(ByteString value)

public Blob.Builder setData(ByteString value)

Required. Raw bytes for media formats.

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

Parameter
NameDescription
valueByteString

The data to set.

Returns
TypeDescription
Blob.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public Blob.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The mimeType to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for mimeType to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
Blob.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final Blob.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Blob.Builder
Overrides