public static final class SearchResponse.Facet.FacetValue extends com.google.protobuf.GeneratedMessageV3 implements SearchResponse.Facet.FacetValueOrBuilder
A facet value which contains value names and their count.Protobuf type
google.cloud.retail.v2beta.SearchResponse.Facet.FacetValue| Modifier and Type | Class and Description |
|---|---|
static class |
SearchResponse.Facet.FacetValue.Builder
A facet value which contains value names and their count.
|
static class |
SearchResponse.Facet.FacetValue.FacetValueCase |
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 |
COUNT_FIELD_NUMBER |
static int |
INTERVAL_FIELD_NUMBER |
static int |
MAX_VALUE_FIELD_NUMBER |
static int |
MIN_VALUE_FIELD_NUMBER |
static int |
VALUE_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
long |
getCount()
Number of items that have this facet value.
|
static SearchResponse.Facet.FacetValue |
getDefaultInstance() |
SearchResponse.Facet.FacetValue |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
SearchResponse.Facet.FacetValue.FacetValueCase |
getFacetValueCase() |
Interval |
getInterval()
Interval value for a facet, such as [10, 20) for facet "price".
|
IntervalOrBuilder |
getIntervalOrBuilder()
Interval value for a facet, such as [10, 20) for facet "price".
|
double |
getMaxValue()
The maximum value in the
[FacetValue.interval][google.cloud.retail.v2beta.SearchResponse.Facet.FacetValue.interval].
|
double |
getMinValue()
The minimum value in the
[FacetValue.interval][google.cloud.retail.v2beta.SearchResponse.Facet.FacetValue.interval].
|
com.google.protobuf.Parser<SearchResponse.Facet.FacetValue> |
getParserForType() |
int |
getSerializedSize() |
String |
getValue()
Text value of a facet, such as "Black" for facet "colorFamilies".
|
com.google.protobuf.ByteString |
getValueBytes()
Text value of a facet, such as "Black" for facet "colorFamilies".
|
int |
hashCode() |
boolean |
hasInterval()
Interval value for a facet, such as [10, 20) for facet "price".
|
boolean |
hasValue()
Text value of a facet, such as "Black" for facet "colorFamilies".
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static SearchResponse.Facet.FacetValue.Builder |
newBuilder() |
static SearchResponse.Facet.FacetValue.Builder |
newBuilder(SearchResponse.Facet.FacetValue prototype) |
SearchResponse.Facet.FacetValue.Builder |
newBuilderForType() |
protected SearchResponse.Facet.FacetValue.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static SearchResponse.Facet.FacetValue |
parseDelimitedFrom(InputStream input) |
static SearchResponse.Facet.FacetValue |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static SearchResponse.Facet.FacetValue |
parseFrom(byte[] data) |
static SearchResponse.Facet.FacetValue |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static SearchResponse.Facet.FacetValue |
parseFrom(ByteBuffer data) |
static SearchResponse.Facet.FacetValue |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static SearchResponse.Facet.FacetValue |
parseFrom(com.google.protobuf.ByteString data) |
static SearchResponse.Facet.FacetValue |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static SearchResponse.Facet.FacetValue |
parseFrom(com.google.protobuf.CodedInputStream input) |
static SearchResponse.Facet.FacetValue |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static SearchResponse.Facet.FacetValue |
parseFrom(InputStream input) |
static SearchResponse.Facet.FacetValue |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<SearchResponse.Facet.FacetValue> |
parser() |
SearchResponse.Facet.FacetValue.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 VALUE_FIELD_NUMBER
public static final int INTERVAL_FIELD_NUMBER
public static final int COUNT_FIELD_NUMBER
public static final int MIN_VALUE_FIELD_NUMBER
public static final int MAX_VALUE_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 SearchResponse.Facet.FacetValue.FacetValueCase getFacetValueCase()
getFacetValueCase in interface SearchResponse.Facet.FacetValueOrBuilderpublic boolean hasValue()
Text value of a facet, such as "Black" for facet "colorFamilies".
string value = 1;hasValue in interface SearchResponse.Facet.FacetValueOrBuilderpublic String getValue()
Text value of a facet, such as "Black" for facet "colorFamilies".
string value = 1;getValue in interface SearchResponse.Facet.FacetValueOrBuilderpublic com.google.protobuf.ByteString getValueBytes()
Text value of a facet, such as "Black" for facet "colorFamilies".
string value = 1;getValueBytes in interface SearchResponse.Facet.FacetValueOrBuilderpublic boolean hasInterval()
Interval value for a facet, such as [10, 20) for facet "price".
.google.cloud.retail.v2beta.Interval interval = 2;hasInterval in interface SearchResponse.Facet.FacetValueOrBuilderpublic Interval getInterval()
Interval value for a facet, such as [10, 20) for facet "price".
.google.cloud.retail.v2beta.Interval interval = 2;getInterval in interface SearchResponse.Facet.FacetValueOrBuilderpublic IntervalOrBuilder getIntervalOrBuilder()
Interval value for a facet, such as [10, 20) for facet "price".
.google.cloud.retail.v2beta.Interval interval = 2;getIntervalOrBuilder in interface SearchResponse.Facet.FacetValueOrBuilderpublic long getCount()
Number of items that have this facet value.
int64 count = 3;getCount in interface SearchResponse.Facet.FacetValueOrBuilderpublic double getMinValue()
The minimum value in the [FacetValue.interval][google.cloud.retail.v2beta.SearchResponse.Facet.FacetValue.interval]. Only supported on numerical facets and returned if [SearchRequest.FacetSpec.FacetKey.return_min_max][google.cloud.retail.v2beta.SearchRequest.FacetSpec.FacetKey.return_min_max] is true.
double min_value = 5;getMinValue in interface SearchResponse.Facet.FacetValueOrBuilderpublic double getMaxValue()
The maximum value in the [FacetValue.interval][google.cloud.retail.v2beta.SearchResponse.Facet.FacetValue.interval]. Only supported on numerical facets and returned if [SearchRequest.FacetSpec.FacetKey.return_min_max][google.cloud.retail.v2beta.SearchRequest.FacetSpec.FacetKey.return_min_max] is true.
double max_value = 6;getMaxValue in interface SearchResponse.Facet.FacetValueOrBuilderpublic 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.FacetValue parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static SearchResponse.Facet.FacetValue parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static SearchResponse.Facet.FacetValue parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static SearchResponse.Facet.FacetValue parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static SearchResponse.Facet.FacetValue parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static SearchResponse.Facet.FacetValue parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static SearchResponse.Facet.FacetValue parseFrom(InputStream input) throws IOException
IOExceptionpublic static SearchResponse.Facet.FacetValue parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static SearchResponse.Facet.FacetValue parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static SearchResponse.Facet.FacetValue parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static SearchResponse.Facet.FacetValue parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static SearchResponse.Facet.FacetValue parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic SearchResponse.Facet.FacetValue.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static SearchResponse.Facet.FacetValue.Builder newBuilder()
public static SearchResponse.Facet.FacetValue.Builder newBuilder(SearchResponse.Facet.FacetValue prototype)
public SearchResponse.Facet.FacetValue.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected SearchResponse.Facet.FacetValue.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static SearchResponse.Facet.FacetValue getDefaultInstance()
public static com.google.protobuf.Parser<SearchResponse.Facet.FacetValue> parser()
public com.google.protobuf.Parser<SearchResponse.Facet.FacetValue> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public SearchResponse.Facet.FacetValue getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2024 Google LLC. All rights reserved.