Class CompleteQueryResponse.AttributeResult (2.22.0)

public static final class CompleteQueryResponse.AttributeResult extends GeneratedMessageV3 implements CompleteQueryResponse.AttributeResultOrBuilder

Resource that represents attribute results.

Protobuf type google.cloud.retail.v2alpha.CompleteQueryResponse.AttributeResult

Inheritance

Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > CompleteQueryResponse.AttributeResult

Static Fields

SUGGESTIONS_FIELD_NUMBER

public static final int SUGGESTIONS_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static CompleteQueryResponse.AttributeResult getDefaultInstance()
Returns
TypeDescription
CompleteQueryResponse.AttributeResult

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static CompleteQueryResponse.AttributeResult.Builder newBuilder()
Returns
TypeDescription
CompleteQueryResponse.AttributeResult.Builder

newBuilder(CompleteQueryResponse.AttributeResult prototype)

public static CompleteQueryResponse.AttributeResult.Builder newBuilder(CompleteQueryResponse.AttributeResult prototype)
Parameter
NameDescription
prototypeCompleteQueryResponse.AttributeResult
Returns
TypeDescription
CompleteQueryResponse.AttributeResult.Builder

parseDelimitedFrom(InputStream input)

public static CompleteQueryResponse.AttributeResult parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
CompleteQueryResponse.AttributeResult
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static CompleteQueryResponse.AttributeResult parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CompleteQueryResponse.AttributeResult
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static CompleteQueryResponse.AttributeResult parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
CompleteQueryResponse.AttributeResult
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static CompleteQueryResponse.AttributeResult parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CompleteQueryResponse.AttributeResult
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static CompleteQueryResponse.AttributeResult parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
CompleteQueryResponse.AttributeResult
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static CompleteQueryResponse.AttributeResult parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CompleteQueryResponse.AttributeResult
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static CompleteQueryResponse.AttributeResult parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
CompleteQueryResponse.AttributeResult
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static CompleteQueryResponse.AttributeResult parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CompleteQueryResponse.AttributeResult
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static CompleteQueryResponse.AttributeResult parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
CompleteQueryResponse.AttributeResult
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static CompleteQueryResponse.AttributeResult parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CompleteQueryResponse.AttributeResult
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static CompleteQueryResponse.AttributeResult parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
CompleteQueryResponse.AttributeResult
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static CompleteQueryResponse.AttributeResult parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CompleteQueryResponse.AttributeResult
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<CompleteQueryResponse.AttributeResult> parser()
Returns
TypeDescription
Parser<AttributeResult>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

public CompleteQueryResponse.AttributeResult getDefaultInstanceForType()
Returns
TypeDescription
CompleteQueryResponse.AttributeResult

getParserForType()

public Parser<CompleteQueryResponse.AttributeResult> getParserForType()
Returns
TypeDescription
Parser<AttributeResult>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getSuggestions(int index)

public String getSuggestions(int index)

The list of suggestions for the attribute.

repeated string suggestions = 1;

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
String

The suggestions at the given index.

getSuggestionsBytes(int index)

public ByteString getSuggestionsBytes(int index)

The list of suggestions for the attribute.

repeated string suggestions = 1;

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
ByteString

The bytes of the suggestions at the given index.

getSuggestionsCount()

public int getSuggestionsCount()

The list of suggestions for the attribute.

repeated string suggestions = 1;

Returns
TypeDescription
int

The count of suggestions.

getSuggestionsList()

public ProtocolStringList getSuggestionsList()

The list of suggestions for the attribute.

repeated string suggestions = 1;

Returns
TypeDescription
ProtocolStringList

A list containing the suggestions.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public CompleteQueryResponse.AttributeResult.Builder newBuilderForType()
Returns
TypeDescription
CompleteQueryResponse.AttributeResult.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected CompleteQueryResponse.AttributeResult.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
CompleteQueryResponse.AttributeResult.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public CompleteQueryResponse.AttributeResult.Builder toBuilder()
Returns
TypeDescription
CompleteQueryResponse.AttributeResult.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException