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 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

       The facet values for this field.
       
      repeated .google.cloud.discoveryengine.v1beta.SearchResponse.Facet.FacetValue values = 2;
    • getValues

      SearchResponse.Facet.FacetValue getValues(int index)
       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

      SearchResponse.Facet.FacetValueOrBuilder getValuesOrBuilder(int index)
       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.