Class Answer.BlobAttachment.Builder (0.90.0)

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

Stores binarydata attached to text answer, e.g. image, video, audio, etc.

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

Static Methods

getDescriptor()

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

Methods

build()

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

buildPartial()

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

clear()

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

clearAttributionType()

public Answer.BlobAttachment.Builder clearAttributionType()

Output only. The attribution type of the blob.

.google.cloud.discoveryengine.v1beta.Answer.BlobAttachment.AttributionType attribution_type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Answer.BlobAttachment.Builder

This builder for chaining.

clearData()

public Answer.BlobAttachment.Builder clearData()

Output only. The mime type and data of the blob.

.google.cloud.discoveryengine.v1beta.Answer.BlobAttachment.Blob data = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Answer.BlobAttachment.Builder

getAttributionType()

public Answer.BlobAttachment.AttributionType getAttributionType()

Output only. The attribution type of the blob.

.google.cloud.discoveryengine.v1beta.Answer.BlobAttachment.AttributionType attribution_type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Answer.BlobAttachment.AttributionType

The attributionType.

getAttributionTypeValue()

public int getAttributionTypeValue()

Output only. The attribution type of the blob.

.google.cloud.discoveryengine.v1beta.Answer.BlobAttachment.AttributionType attribution_type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

The enum numeric value on the wire for attributionType.

getData()

public Answer.BlobAttachment.Blob getData()

Output only. The mime type and data of the blob.

.google.cloud.discoveryengine.v1beta.Answer.BlobAttachment.Blob data = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Answer.BlobAttachment.Blob

The data.

getDataBuilder()

public Answer.BlobAttachment.Blob.Builder getDataBuilder()

Output only. The mime type and data of the blob.

.google.cloud.discoveryengine.v1beta.Answer.BlobAttachment.Blob data = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Answer.BlobAttachment.Blob.Builder

getDataOrBuilder()

public Answer.BlobAttachment.BlobOrBuilder getDataOrBuilder()

Output only. The mime type and data of the blob.

.google.cloud.discoveryengine.v1beta.Answer.BlobAttachment.Blob data = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Answer.BlobAttachment.BlobOrBuilder

getDefaultInstanceForType()

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

getDescriptorForType()

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

hasData()

public boolean hasData()

Output only. The mime type and data of the blob.

.google.cloud.discoveryengine.v1beta.Answer.BlobAttachment.Blob data = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the data field is set.

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeData(Answer.BlobAttachment.Blob value)

public Answer.BlobAttachment.Builder mergeData(Answer.BlobAttachment.Blob value)

Output only. The mime type and data of the blob.

.google.cloud.discoveryengine.v1beta.Answer.BlobAttachment.Blob data = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Answer.BlobAttachment.Blob
Returns
Type Description
Answer.BlobAttachment.Builder

mergeFrom(Answer.BlobAttachment other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setAttributionType(Answer.BlobAttachment.AttributionType value)

public Answer.BlobAttachment.Builder setAttributionType(Answer.BlobAttachment.AttributionType value)

Output only. The attribution type of the blob.

.google.cloud.discoveryengine.v1beta.Answer.BlobAttachment.AttributionType attribution_type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Answer.BlobAttachment.AttributionType

The attributionType to set.

Returns
Type Description
Answer.BlobAttachment.Builder

This builder for chaining.

setAttributionTypeValue(int value)

public Answer.BlobAttachment.Builder setAttributionTypeValue(int value)

Output only. The attribution type of the blob.

.google.cloud.discoveryengine.v1beta.Answer.BlobAttachment.AttributionType attribution_type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value int

The enum numeric value on the wire for attributionType to set.

Returns
Type Description
Answer.BlobAttachment.Builder

This builder for chaining.

setData(Answer.BlobAttachment.Blob value)

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

Output only. The mime type and data of the blob.

.google.cloud.discoveryengine.v1beta.Answer.BlobAttachment.Blob data = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Answer.BlobAttachment.Blob
Returns
Type Description
Answer.BlobAttachment.Builder

setData(Answer.BlobAttachment.Blob.Builder builderForValue)

public Answer.BlobAttachment.Builder setData(Answer.BlobAttachment.Blob.Builder builderForValue)

Output only. The mime type and data of the blob.

.google.cloud.discoveryengine.v1beta.Answer.BlobAttachment.Blob data = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue Answer.BlobAttachment.Blob.Builder
Returns
Type Description
Answer.BlobAttachment.Builder