Class SearchResponse.Summary.BlobAttachment.Blob.Builder (0.90.0)

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

Stores type and data of the blob.

Protobuf type google.cloud.discoveryengine.v1beta.SearchResponse.Summary.BlobAttachment.Blob

Static Methods

getDescriptor()

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

Methods

build()

public SearchResponse.Summary.BlobAttachment.Blob build()
Returns
Type Description
SearchResponse.Summary.BlobAttachment.Blob

buildPartial()

public SearchResponse.Summary.BlobAttachment.Blob buildPartial()
Returns
Type Description
SearchResponse.Summary.BlobAttachment.Blob

clear()

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

clearData()

public SearchResponse.Summary.BlobAttachment.Blob.Builder clearData()

Output only. Raw bytes.

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

Returns
Type Description
SearchResponse.Summary.BlobAttachment.Blob.Builder

This builder for chaining.

clearMimeType()

public SearchResponse.Summary.BlobAttachment.Blob.Builder clearMimeType()

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

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

Returns
Type Description
SearchResponse.Summary.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 SearchResponse.Summary.BlobAttachment.Blob getDefaultInstanceForType()
Returns
Type Description
SearchResponse.Summary.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 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 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(SearchResponse.Summary.BlobAttachment.Blob other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setData(ByteString value)

public SearchResponse.Summary.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
SearchResponse.Summary.BlobAttachment.Blob.Builder

This builder for chaining.

setMimeType(String value)

public SearchResponse.Summary.BlobAttachment.Blob.Builder setMimeType(String value)

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

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

Parameter
Name Description
value String

The mimeType to set.

Returns
Type Description
SearchResponse.Summary.BlobAttachment.Blob.Builder

This builder for chaining.

setMimeTypeBytes(ByteString value)

public SearchResponse.Summary.BlobAttachment.Blob.Builder setMimeTypeBytes(ByteString value)

Output only. The media type (MIME type) of the generated 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
SearchResponse.Summary.BlobAttachment.Blob.Builder

This builder for chaining.