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 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.v2.SearchResponse.Facet.FacetValue values = 2;
      • getValues

        SearchResponse.Facet.FacetValue getValues​(int index)
         The facet values for this field.
         
        repeated .google.cloud.retail.v2.SearchResponse.Facet.FacetValue values = 2;
      • getValuesCount

        int getValuesCount()
         The facet values for this field.
         
        repeated .google.cloud.retail.v2.SearchResponse.Facet.FacetValue values = 2;
      • getValuesOrBuilder

        SearchResponse.Facet.FacetValueOrBuilder getValuesOrBuilder​(int index)
         The facet values for this field.
         
        repeated .google.cloud.retail.v2.SearchResponse.Facet.FacetValue values = 2;
      • getDynamicFacet

        boolean getDynamicFacet()
         Whether the facet is dynamically generated.
         
        bool dynamic_facet = 3;
        Returns:
        The dynamicFacet.