Package com.google.cloud.retail.v2beta
Interface SearchResponse.FacetOrBuilder
-
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
SearchResponse.Facet
,SearchResponse.Facet.Builder
- Enclosing class:
- SearchResponse
public static interface SearchResponse.FacetOrBuilder extends com.google.protobuf.MessageOrBuilder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description 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.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.-
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
-
-
-
Method Detail
-
getKey
String getKey()
The key for this facet. E.g., "colorFamilies" or "price" or "attributes.attr1".
string key = 1;
- Returns:
- The key.
-
getKeyBytes
com.google.protobuf.ByteString getKeyBytes()
The key for this facet. E.g., "colorFamilies" or "price" or "attributes.attr1".
string key = 1;
- Returns:
- The bytes for key.
-
getValuesList
List<SearchResponse.Facet.FacetValue> getValuesList()
The facet values for this field.
repeated .google.cloud.retail.v2beta.SearchResponse.Facet.FacetValue values = 2;
-
getValues
SearchResponse.Facet.FacetValue getValues(int index)
The facet values for this field.
repeated .google.cloud.retail.v2beta.SearchResponse.Facet.FacetValue values = 2;
-
getValuesCount
int getValuesCount()
The facet values for this field.
repeated .google.cloud.retail.v2beta.SearchResponse.Facet.FacetValue values = 2;
-
getValuesOrBuilderList
List<? extends SearchResponse.Facet.FacetValueOrBuilder> getValuesOrBuilderList()
The facet values for this field.
repeated .google.cloud.retail.v2beta.SearchResponse.Facet.FacetValue values = 2;
-
getValuesOrBuilder
SearchResponse.Facet.FacetValueOrBuilder getValuesOrBuilder(int index)
The facet values for this field.
repeated .google.cloud.retail.v2beta.SearchResponse.Facet.FacetValue values = 2;
-
getDynamicFacet
boolean getDynamicFacet()
Whether the facet is dynamically generated.
bool dynamic_facet = 3;
- Returns:
- The dynamicFacet.
-
-