public static interface SearchResponse.Facet.FacetValueOrBuilder
extends com.google.protobuf.MessageOrBuilder
| Modifier and Type | Method and Description |
|---|---|
long |
getCount()
Number of items that have this facet value.
|
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.v2.SearchResponse.Facet.FacetValue.interval].
|
double |
getMinValue()
The minimum value in the
[FacetValue.interval][google.cloud.retail.v2.SearchResponse.Facet.FacetValue.interval].
|
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".
|
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".
|
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofboolean hasValue()
Text value of a facet, such as "Black" for facet "colorFamilies".
string value = 1;String getValue()
Text value of a facet, such as "Black" for facet "colorFamilies".
string value = 1;com.google.protobuf.ByteString getValueBytes()
Text value of a facet, such as "Black" for facet "colorFamilies".
string value = 1;boolean hasInterval()
Interval value for a facet, such as [10, 20) for facet "price".
.google.cloud.retail.v2.Interval interval = 2;Interval getInterval()
Interval value for a facet, such as [10, 20) for facet "price".
.google.cloud.retail.v2.Interval interval = 2;IntervalOrBuilder getIntervalOrBuilder()
Interval value for a facet, such as [10, 20) for facet "price".
.google.cloud.retail.v2.Interval interval = 2;long getCount()
Number of items that have this facet value.
int64 count = 3;double getMinValue()
The minimum value in the [FacetValue.interval][google.cloud.retail.v2.SearchResponse.Facet.FacetValue.interval]. Only supported on numerical facets and returned if [SearchRequest.FacetSpec.FacetKey.return_min_max][google.cloud.retail.v2.SearchRequest.FacetSpec.FacetKey.return_min_max] is true.
double min_value = 5;double getMaxValue()
The maximum value in the [FacetValue.interval][google.cloud.retail.v2.SearchResponse.Facet.FacetValue.interval]. Only supported on numerical facets and returned if [SearchRequest.FacetSpec.FacetKey.return_min_max][google.cloud.retail.v2.SearchRequest.FacetSpec.FacetKey.return_min_max] is true.
double max_value = 6;SearchResponse.Facet.FacetValue.FacetValueCase getFacetValueCase()
Copyright © 2023 Google LLC. All rights reserved.