Interface SearchResponse.Facet.FacetValueOrBuilder
-
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
SearchResponse.Facet.FacetValue
,SearchResponse.Facet.FacetValue.Builder
- Enclosing class:
- SearchResponse.Facet
public static interface SearchResponse.Facet.FacetValueOrBuilder extends com.google.protobuf.MessageOrBuilder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method 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".String
getValue()
Text value of a facet, such as "Black" for facet "colors".com.google.protobuf.ByteString
getValueBytes()
Text value of a facet, such as "Black" for facet "colors".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 "colors".-
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
-
-
-
Method Detail
-
hasValue
boolean hasValue()
Text value of a facet, such as "Black" for facet "colors".
string value = 1;
- Returns:
- Whether the value field is set.
-
getValue
String getValue()
Text value of a facet, such as "Black" for facet "colors".
string value = 1;
- Returns:
- The value.
-
getValueBytes
com.google.protobuf.ByteString getValueBytes()
Text value of a facet, such as "Black" for facet "colors".
string value = 1;
- Returns:
- The bytes for value.
-
hasInterval
boolean hasInterval()
Interval value for a facet, such as [10, 20) for facet "price". It matches [SearchRequest.FacetSpec.FacetKey.intervals][google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec.FacetKey.intervals].
.google.cloud.discoveryengine.v1beta.Interval interval = 2;
- Returns:
- Whether the interval field is set.
-
getInterval
Interval getInterval()
Interval value for a facet, such as [10, 20) for facet "price". It matches [SearchRequest.FacetSpec.FacetKey.intervals][google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec.FacetKey.intervals].
.google.cloud.discoveryengine.v1beta.Interval interval = 2;
- Returns:
- The interval.
-
getIntervalOrBuilder
IntervalOrBuilder getIntervalOrBuilder()
Interval value for a facet, such as [10, 20) for facet "price". It matches [SearchRequest.FacetSpec.FacetKey.intervals][google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec.FacetKey.intervals].
.google.cloud.discoveryengine.v1beta.Interval interval = 2;
-
getCount
long getCount()
Number of items that have this facet value.
int64 count = 3;
- Returns:
- The count.
-
getFacetValueCase
SearchResponse.Facet.FacetValue.FacetValueCase getFacetValueCase()
-
-