Package com.google.cloud.retail.v2alpha
Interface CatalogAttribute.FacetConfig.RerankConfigOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
CatalogAttribute.FacetConfig.RerankConfig,CatalogAttribute.FacetConfig.RerankConfig.Builder
- Enclosing class:
- CatalogAttribute.FacetConfig
public static interface CatalogAttribute.FacetConfig.RerankConfigOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptiongetFacetValues(int index) If empty, rerank on all facet values for the current key.com.google.protobuf.ByteStringgetFacetValuesBytes(int index) If empty, rerank on all facet values for the current key.intIf empty, rerank on all facet values for the current key.If empty, rerank on all facet values for the current key.booleanIf set to true, then we also rerank the dynamic facets based on the facet values engaged by the user for the current attribute key during serving.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
-
getRerankFacet
boolean getRerankFacet()If set to true, then we also rerank the dynamic facets based on the facet values engaged by the user for the current attribute key during serving.
bool rerank_facet = 1;- Returns:
- The rerankFacet.
-
getFacetValuesList
If empty, rerank on all facet values for the current key. Otherwise, will rerank on the facet values from this list only.
repeated string facet_values = 2;- Returns:
- A list containing the facetValues.
-
getFacetValuesCount
int getFacetValuesCount()If empty, rerank on all facet values for the current key. Otherwise, will rerank on the facet values from this list only.
repeated string facet_values = 2;- Returns:
- The count of facetValues.
-
getFacetValues
If empty, rerank on all facet values for the current key. Otherwise, will rerank on the facet values from this list only.
repeated string facet_values = 2;- Parameters:
index- The index of the element to return.- Returns:
- The facetValues at the given index.
-
getFacetValuesBytes
com.google.protobuf.ByteString getFacetValuesBytes(int index) If empty, rerank on all facet values for the current key. Otherwise, will rerank on the facet values from this list only.
repeated string facet_values = 2;- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the facetValues at the given index.
-