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
Modifier and TypeMethodDescriptionbooleanWhether the facet is dynamically generated.getKey()The key for this facet.com.google.protobuf.ByteStringThe key for this facet.getValues(int index) The facet values for this field.intThe facet values for this field.The facet values for this field.getValuesOrBuilder(int index) The facet values for this field.List<? extends SearchResponse.Facet.FacetValueOrBuilder>The facet values for this field.Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitializedMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getKey
String getKey()The key for this facet. For example, `"colors"` or `"price"`. It matches [SearchRequest.FacetSpec.FacetKey.key][google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec.FacetKey.key].
string key = 1;- Returns:
- The key.
-
getKeyBytes
com.google.protobuf.ByteString getKeyBytes()The key for this facet. For example, `"colors"` or `"price"`. It matches [SearchRequest.FacetSpec.FacetKey.key][google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec.FacetKey.key].
string key = 1;- Returns:
- The bytes for key.
-
getValuesList
List<SearchResponse.Facet.FacetValue> getValuesList()The facet values for this field.
repeated .google.cloud.discoveryengine.v1beta.SearchResponse.Facet.FacetValue values = 2; -
getValues
The facet values for this field.
repeated .google.cloud.discoveryengine.v1beta.SearchResponse.Facet.FacetValue values = 2; -
getValuesCount
int getValuesCount()The facet values for this field.
repeated .google.cloud.discoveryengine.v1beta.SearchResponse.Facet.FacetValue values = 2; -
getValuesOrBuilderList
List<? extends SearchResponse.Facet.FacetValueOrBuilder> getValuesOrBuilderList()The facet values for this field.
repeated .google.cloud.discoveryengine.v1beta.SearchResponse.Facet.FacetValue values = 2; -
getValuesOrBuilder
The facet values for this field.
repeated .google.cloud.discoveryengine.v1beta.SearchResponse.Facet.FacetValue values = 2; -
getDynamicFacet
boolean getDynamicFacet()Whether the facet is dynamically generated.
bool dynamic_facet = 3;- Returns:
- The dynamicFacet.
-