Class AssistantContent.Blob.Builder (0.79.0)

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

Inline blob.

Protobuf type google.cloud.discoveryengine.v1.AssistantContent.Blob

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

build()

public AssistantContent.Blob build()
Returns
Type Description
AssistantContent.Blob

buildPartial()

public AssistantContent.Blob buildPartial()
Returns
Type Description
AssistantContent.Blob

clear()

public AssistantContent.Blob.Builder clear()
Returns
Type Description
AssistantContent.Blob.Builder
Overrides

clearData()

public AssistantContent.Blob.Builder clearData()

Required. Raw bytes.

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

Returns
Type Description
AssistantContent.Blob.Builder

This builder for chaining.

clearMimeType()

public AssistantContent.Blob.Builder clearMimeType()

Required. The media type (MIME type) of the generated data.

string mime_type = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
AssistantContent.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 AssistantContent.Blob getDefaultInstanceForType()
Returns
Type Description
AssistantContent.Blob

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getMimeType()

public String getMimeType()

Required. The media type (MIME type) of the generated data.

string mime_type = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The mimeType.

getMimeTypeBytes()

public ByteString getMimeTypeBytes()

Required. The media type (MIME type) of the generated 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(AssistantContent.Blob other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public AssistantContent.Blob.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AssistantContent.Blob.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

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

setData(ByteString value)

public AssistantContent.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
AssistantContent.Blob.Builder

This builder for chaining.

setMimeType(String value)

public AssistantContent.Blob.Builder setMimeType(String value)

Required. The media type (MIME type) of the generated data.

string mime_type = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The mimeType to set.

Returns
Type Description
AssistantContent.Blob.Builder

This builder for chaining.

setMimeTypeBytes(ByteString value)

public AssistantContent.Blob.Builder setMimeTypeBytes(ByteString value)

Required. The media type (MIME type) of the generated data.

string mime_type = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for mimeType to set.

Returns
Type Description
AssistantContent.Blob.Builder

This builder for chaining.