Class Answer.BlobAttachment (0.90.0)

public static final class Answer.BlobAttachment extends GeneratedMessage implements Answer.BlobAttachmentOrBuilder

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

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

Static Fields

ATTRIBUTION_TYPE_FIELD_NUMBER

public static final int ATTRIBUTION_TYPE_FIELD_NUMBER
Field Value
Type Description
int

DATA_FIELD_NUMBER

public static final int DATA_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static Answer.BlobAttachment getDefaultInstance()
Returns
Type Description
Answer.BlobAttachment

getDescriptor()

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

newBuilder()

public static Answer.BlobAttachment.Builder newBuilder()
Returns
Type Description
Answer.BlobAttachment.Builder

newBuilder(Answer.BlobAttachment prototype)

public static Answer.BlobAttachment.Builder newBuilder(Answer.BlobAttachment prototype)
Parameter
Name Description
prototype Answer.BlobAttachment
Returns
Type Description
Answer.BlobAttachment.Builder

parseDelimitedFrom(InputStream input)

public static Answer.BlobAttachment parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
Answer.BlobAttachment
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Answer.BlobAttachment parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Answer.BlobAttachment
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static Answer.BlobAttachment parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
Answer.BlobAttachment
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static Answer.BlobAttachment parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Answer.BlobAttachment
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static Answer.BlobAttachment parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
Answer.BlobAttachment
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static Answer.BlobAttachment parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Answer.BlobAttachment
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static Answer.BlobAttachment parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
Answer.BlobAttachment
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static Answer.BlobAttachment parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Answer.BlobAttachment
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static Answer.BlobAttachment parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
Answer.BlobAttachment
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Answer.BlobAttachment parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Answer.BlobAttachment
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static Answer.BlobAttachment parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
Answer.BlobAttachment
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static Answer.BlobAttachment parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Answer.BlobAttachment
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<Answer.BlobAttachment> parser()
Returns
Type Description
Parser<BlobAttachment>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

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.

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

getParserForType()

public Parser<Answer.BlobAttachment> getParserForType()
Returns
Type Description
Parser<BlobAttachment>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
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.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public Answer.BlobAttachment.Builder newBuilderForType()
Returns
Type Description
Answer.BlobAttachment.Builder

newBuilderForType(AbstractMessage.BuilderParent parent)

protected Answer.BlobAttachment.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
Answer.BlobAttachment.Builder
Overrides

toBuilder()

public Answer.BlobAttachment.Builder toBuilder()
Returns
Type Description
Answer.BlobAttachment.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException