Class SearchResponse.Summary.BlobAttachment (0.90.0)

public static final class SearchResponse.Summary.BlobAttachment extends GeneratedMessage implements SearchResponse.Summary.BlobAttachmentOrBuilder

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

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

Inheritance

Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessage > SearchResponse.Summary.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 SearchResponse.Summary.BlobAttachment getDefaultInstance()
Returns
Type Description
SearchResponse.Summary.BlobAttachment

getDescriptor()

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

newBuilder()

public static SearchResponse.Summary.BlobAttachment.Builder newBuilder()
Returns
Type Description
SearchResponse.Summary.BlobAttachment.Builder

newBuilder(SearchResponse.Summary.BlobAttachment prototype)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

public static Parser<SearchResponse.Summary.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 SearchResponse.Summary.BlobAttachment.AttributionType getAttributionType()

Output only. The attribution type of the blob.

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

Returns
Type Description
SearchResponse.Summary.BlobAttachment.AttributionType

The attributionType.

getAttributionTypeValue()

public int getAttributionTypeValue()

Output only. The attribution type of the blob.

.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.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 SearchResponse.Summary.BlobAttachment.Blob getData()

Output only. The blob data.

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

Returns
Type Description
SearchResponse.Summary.BlobAttachment.Blob

The data.

getDataOrBuilder()

public SearchResponse.Summary.BlobAttachment.BlobOrBuilder getDataOrBuilder()

Output only. The blob data.

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

Returns
Type Description
SearchResponse.Summary.BlobAttachment.BlobOrBuilder

getDefaultInstanceForType()

public SearchResponse.Summary.BlobAttachment getDefaultInstanceForType()
Returns
Type Description
SearchResponse.Summary.BlobAttachment

getParserForType()

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

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

hasData()

public boolean hasData()

Output only. The blob data.

.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.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 SearchResponse.Summary.BlobAttachment.Builder newBuilderForType()
Returns
Type Description
SearchResponse.Summary.BlobAttachment.Builder

newBuilderForType(AbstractMessage.BuilderParent parent)

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

toBuilder()

public SearchResponse.Summary.BlobAttachment.Builder toBuilder()
Returns
Type Description
SearchResponse.Summary.BlobAttachment.Builder

writeTo(CodedOutputStream output)

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