Class Answer.BlobAttachment.Blob.Builder (0.90.0)

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

The media type and data of the blob.

Protobuf type google.cloud.discoveryengine.v1beta.Answer.BlobAttachment.Blob

Static Methods

getDescriptor()

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

Methods

build()

public Answer.BlobAttachment.Blob build()
Returns
Type Description
Answer.BlobAttachment.Blob

buildPartial()

public Answer.BlobAttachment.Blob buildPartial()
Returns
Type Description
Answer.BlobAttachment.Blob

clear()

public Answer.BlobAttachment.Blob.Builder clear()
Returns
Type Description
Answer.BlobAttachment.Blob.Builder
Overrides

clearData()

public Answer.BlobAttachment.Blob.Builder clearData()

Output only. Raw bytes.

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

Returns
Type Description
Answer.BlobAttachment.Blob.Builder

This builder for chaining.

clearMimeType()

public Answer.BlobAttachment.Blob.Builder clearMimeType()

Output only. The media type (MIME type) of the generated or retrieved data.

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

Returns
Type Description
Answer.BlobAttachment.Blob.Builder

This builder for chaining.

getData()

public ByteString getData()

Output only. Raw bytes.

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

Returns
Type Description
ByteString

The data.

getDefaultInstanceForType()

public Answer.BlobAttachment.Blob getDefaultInstanceForType()
Returns
Type Description
Answer.BlobAttachment.Blob

getDescriptorForType()

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

getMimeType()

public String getMimeType()

Output only. The media type (MIME type) of the generated or retrieved data.

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

Returns
Type Description
String

The mimeType.

getMimeTypeBytes()

public ByteString getMimeTypeBytes()

Output only. The media type (MIME type) of the generated or retrieved data.

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

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(Answer.BlobAttachment.Blob other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setData(ByteString value)

public Answer.BlobAttachment.Blob.Builder setData(ByteString value)

Output only. Raw bytes.

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

Parameter
Name Description
value ByteString

The data to set.

Returns
Type Description
Answer.BlobAttachment.Blob.Builder

This builder for chaining.

setMimeType(String value)

public Answer.BlobAttachment.Blob.Builder setMimeType(String value)

Output only. The media type (MIME type) of the generated or retrieved data.

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

Parameter
Name Description
value String

The mimeType to set.

Returns
Type Description
Answer.BlobAttachment.Blob.Builder

This builder for chaining.

setMimeTypeBytes(ByteString value)

public Answer.BlobAttachment.Blob.Builder setMimeTypeBytes(ByteString value)

Output only. The media type (MIME type) of the generated or retrieved data.

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

Parameter
Name Description
value ByteString

The bytes for mimeType to set.

Returns
Type Description
Answer.BlobAttachment.Blob.Builder

This builder for chaining.