public static final class SearchResponse.Facet extends com.google.protobuf.GeneratedMessageV3 implements SearchResponse.FacetOrBuilder
A facet result.Protobuf type
google.cloud.retail.v2alpha.SearchResponse.Facet| Modifier and Type | Class and Description |
|---|---|
static class |
SearchResponse.Facet.Builder
A facet result.
|
static class |
SearchResponse.Facet.FacetValue
A facet value which contains value names and their count.
|
static interface |
SearchResponse.Facet.FacetValueOrBuilder |
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter| Modifier and Type | Field and Description |
|---|---|
static int |
DYNAMIC_FACET_FIELD_NUMBER |
static int |
KEY_FIELD_NUMBER |
static int |
VALUES_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
static SearchResponse.Facet |
getDefaultInstance() |
SearchResponse.Facet |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
boolean |
getDynamicFacet()
Whether the facet is dynamically generated.
|
String |
getKey()
The key for this facet.
|
com.google.protobuf.ByteString |
getKeyBytes()
The key for this facet.
|
com.google.protobuf.Parser<SearchResponse.Facet> |
getParserForType() |
int |
getSerializedSize() |
SearchResponse.Facet.FacetValue |
getValues(int index)
The facet values for this field.
|
int |
getValuesCount()
The facet values for this field.
|
List<SearchResponse.Facet.FacetValue> |
getValuesList()
The facet values for this field.
|
SearchResponse.Facet.FacetValueOrBuilder |
getValuesOrBuilder(int index)
The facet values for this field.
|
List<? extends SearchResponse.Facet.FacetValueOrBuilder> |
getValuesOrBuilderList()
The facet values for this field.
|
int |
hashCode() |
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static SearchResponse.Facet.Builder |
newBuilder() |
static SearchResponse.Facet.Builder |
newBuilder(SearchResponse.Facet prototype) |
SearchResponse.Facet.Builder |
newBuilderForType() |
protected SearchResponse.Facet.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static SearchResponse.Facet |
parseDelimitedFrom(InputStream input) |
static SearchResponse.Facet |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static SearchResponse.Facet |
parseFrom(byte[] data) |
static SearchResponse.Facet |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static SearchResponse.Facet |
parseFrom(ByteBuffer data) |
static SearchResponse.Facet |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static SearchResponse.Facet |
parseFrom(com.google.protobuf.ByteString data) |
static SearchResponse.Facet |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static SearchResponse.Facet |
parseFrom(com.google.protobuf.CodedInputStream input) |
static SearchResponse.Facet |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static SearchResponse.Facet |
parseFrom(InputStream input) |
static SearchResponse.Facet |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<SearchResponse.Facet> |
parser() |
SearchResponse.Facet.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int KEY_FIELD_NUMBER
public static final int VALUES_FIELD_NUMBER
public static final int DYNAMIC_FACET_FIELD_NUMBER
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public String getKey()
The key for this facet. E.g., "colorFamilies" or "price" or "attributes.attr1".
string key = 1;getKey in interface SearchResponse.FacetOrBuilderpublic com.google.protobuf.ByteString getKeyBytes()
The key for this facet. E.g., "colorFamilies" or "price" or "attributes.attr1".
string key = 1;getKeyBytes in interface SearchResponse.FacetOrBuilderpublic List<SearchResponse.Facet.FacetValue> getValuesList()
The facet values for this field.
repeated .google.cloud.retail.v2alpha.SearchResponse.Facet.FacetValue values = 2;
getValuesList in interface SearchResponse.FacetOrBuilderpublic List<? extends SearchResponse.Facet.FacetValueOrBuilder> getValuesOrBuilderList()
The facet values for this field.
repeated .google.cloud.retail.v2alpha.SearchResponse.Facet.FacetValue values = 2;
getValuesOrBuilderList in interface SearchResponse.FacetOrBuilderpublic int getValuesCount()
The facet values for this field.
repeated .google.cloud.retail.v2alpha.SearchResponse.Facet.FacetValue values = 2;
getValuesCount in interface SearchResponse.FacetOrBuilderpublic SearchResponse.Facet.FacetValue getValues(int index)
The facet values for this field.
repeated .google.cloud.retail.v2alpha.SearchResponse.Facet.FacetValue values = 2;
getValues in interface SearchResponse.FacetOrBuilderpublic SearchResponse.Facet.FacetValueOrBuilder getValuesOrBuilder(int index)
The facet values for this field.
repeated .google.cloud.retail.v2alpha.SearchResponse.Facet.FacetValue values = 2;
getValuesOrBuilder in interface SearchResponse.FacetOrBuilderpublic boolean getDynamicFacet()
Whether the facet is dynamically generated.
bool dynamic_facet = 3;getDynamicFacet in interface SearchResponse.FacetOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static SearchResponse.Facet parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static SearchResponse.Facet parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static SearchResponse.Facet parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static SearchResponse.Facet parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static SearchResponse.Facet parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static SearchResponse.Facet parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static SearchResponse.Facet parseFrom(InputStream input) throws IOException
IOExceptionpublic static SearchResponse.Facet parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static SearchResponse.Facet parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static SearchResponse.Facet parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static SearchResponse.Facet parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static SearchResponse.Facet parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic SearchResponse.Facet.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static SearchResponse.Facet.Builder newBuilder()
public static SearchResponse.Facet.Builder newBuilder(SearchResponse.Facet prototype)
public SearchResponse.Facet.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected SearchResponse.Facet.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static SearchResponse.Facet getDefaultInstance()
public static com.google.protobuf.Parser<SearchResponse.Facet> parser()
public com.google.protobuf.Parser<SearchResponse.Facet> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public SearchResponse.Facet getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2024 Google LLC. All rights reserved.