Class CatalogAttribute.FacetConfig.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<CatalogAttribute.FacetConfig.Builder>
com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.Builder
All Implemented Interfaces:
CatalogAttribute.FacetConfigOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
CatalogAttribute.FacetConfig

public static final class CatalogAttribute.FacetConfig.Builder extends com.google.protobuf.GeneratedMessage.Builder<CatalogAttribute.FacetConfig.Builder> implements CatalogAttribute.FacetConfigOrBuilder
 Possible options for the facet that corresponds to the current attribute
 config.
 
Protobuf type google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<CatalogAttribute.FacetConfig.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<CatalogAttribute.FacetConfig.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<CatalogAttribute.FacetConfig.Builder>
    • getDefaultInstanceForType

      public CatalogAttribute.FacetConfig getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public CatalogAttribute.FacetConfig buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public CatalogAttribute.FacetConfig.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<CatalogAttribute.FacetConfig.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<CatalogAttribute.FacetConfig.Builder>
    • mergeFrom

      public CatalogAttribute.FacetConfig.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<CatalogAttribute.FacetConfig.Builder>
      Throws:
      IOException
    • getFacetIntervalsList

      public List<Interval> getFacetIntervalsList()
       If you don't set the facet
       [SearchRequest.FacetSpec.FacetKey.intervals][google.cloud.retail.v2alpha.SearchRequest.FacetSpec.FacetKey.intervals]
       in the request to a numerical attribute, then we use the computed
       intervals with rounded bounds obtained from all its product numerical
       attribute values. The computed intervals might not be ideal for some
       attributes. Therefore, we give you the option to overwrite them with the
       facet_intervals field. The maximum of facet intervals per
       [CatalogAttribute][google.cloud.retail.v2alpha.CatalogAttribute] is 40.
       Each interval must have a lower bound or an upper bound. If both bounds
       are provided, then the lower bound must be smaller or equal than the
       upper bound.
       
      repeated .google.cloud.retail.v2alpha.Interval facet_intervals = 1;
      Specified by:
      getFacetIntervalsList in interface CatalogAttribute.FacetConfigOrBuilder
    • getFacetIntervalsCount

      public int getFacetIntervalsCount()
       If you don't set the facet
       [SearchRequest.FacetSpec.FacetKey.intervals][google.cloud.retail.v2alpha.SearchRequest.FacetSpec.FacetKey.intervals]
       in the request to a numerical attribute, then we use the computed
       intervals with rounded bounds obtained from all its product numerical
       attribute values. The computed intervals might not be ideal for some
       attributes. Therefore, we give you the option to overwrite them with the
       facet_intervals field. The maximum of facet intervals per
       [CatalogAttribute][google.cloud.retail.v2alpha.CatalogAttribute] is 40.
       Each interval must have a lower bound or an upper bound. If both bounds
       are provided, then the lower bound must be smaller or equal than the
       upper bound.
       
      repeated .google.cloud.retail.v2alpha.Interval facet_intervals = 1;
      Specified by:
      getFacetIntervalsCount in interface CatalogAttribute.FacetConfigOrBuilder
    • getFacetIntervals

      public Interval getFacetIntervals(int index)
       If you don't set the facet
       [SearchRequest.FacetSpec.FacetKey.intervals][google.cloud.retail.v2alpha.SearchRequest.FacetSpec.FacetKey.intervals]
       in the request to a numerical attribute, then we use the computed
       intervals with rounded bounds obtained from all its product numerical
       attribute values. The computed intervals might not be ideal for some
       attributes. Therefore, we give you the option to overwrite them with the
       facet_intervals field. The maximum of facet intervals per
       [CatalogAttribute][google.cloud.retail.v2alpha.CatalogAttribute] is 40.
       Each interval must have a lower bound or an upper bound. If both bounds
       are provided, then the lower bound must be smaller or equal than the
       upper bound.
       
      repeated .google.cloud.retail.v2alpha.Interval facet_intervals = 1;
      Specified by:
      getFacetIntervals in interface CatalogAttribute.FacetConfigOrBuilder
    • setFacetIntervals

      public CatalogAttribute.FacetConfig.Builder setFacetIntervals(int index, Interval value)
       If you don't set the facet
       [SearchRequest.FacetSpec.FacetKey.intervals][google.cloud.retail.v2alpha.SearchRequest.FacetSpec.FacetKey.intervals]
       in the request to a numerical attribute, then we use the computed
       intervals with rounded bounds obtained from all its product numerical
       attribute values. The computed intervals might not be ideal for some
       attributes. Therefore, we give you the option to overwrite them with the
       facet_intervals field. The maximum of facet intervals per
       [CatalogAttribute][google.cloud.retail.v2alpha.CatalogAttribute] is 40.
       Each interval must have a lower bound or an upper bound. If both bounds
       are provided, then the lower bound must be smaller or equal than the
       upper bound.
       
      repeated .google.cloud.retail.v2alpha.Interval facet_intervals = 1;
    • setFacetIntervals

      public CatalogAttribute.FacetConfig.Builder setFacetIntervals(int index, Interval.Builder builderForValue)
       If you don't set the facet
       [SearchRequest.FacetSpec.FacetKey.intervals][google.cloud.retail.v2alpha.SearchRequest.FacetSpec.FacetKey.intervals]
       in the request to a numerical attribute, then we use the computed
       intervals with rounded bounds obtained from all its product numerical
       attribute values. The computed intervals might not be ideal for some
       attributes. Therefore, we give you the option to overwrite them with the
       facet_intervals field. The maximum of facet intervals per
       [CatalogAttribute][google.cloud.retail.v2alpha.CatalogAttribute] is 40.
       Each interval must have a lower bound or an upper bound. If both bounds
       are provided, then the lower bound must be smaller or equal than the
       upper bound.
       
      repeated .google.cloud.retail.v2alpha.Interval facet_intervals = 1;
    • addFacetIntervals

      public CatalogAttribute.FacetConfig.Builder addFacetIntervals(Interval value)
       If you don't set the facet
       [SearchRequest.FacetSpec.FacetKey.intervals][google.cloud.retail.v2alpha.SearchRequest.FacetSpec.FacetKey.intervals]
       in the request to a numerical attribute, then we use the computed
       intervals with rounded bounds obtained from all its product numerical
       attribute values. The computed intervals might not be ideal for some
       attributes. Therefore, we give you the option to overwrite them with the
       facet_intervals field. The maximum of facet intervals per
       [CatalogAttribute][google.cloud.retail.v2alpha.CatalogAttribute] is 40.
       Each interval must have a lower bound or an upper bound. If both bounds
       are provided, then the lower bound must be smaller or equal than the
       upper bound.
       
      repeated .google.cloud.retail.v2alpha.Interval facet_intervals = 1;
    • addFacetIntervals

      public CatalogAttribute.FacetConfig.Builder addFacetIntervals(int index, Interval value)
       If you don't set the facet
       [SearchRequest.FacetSpec.FacetKey.intervals][google.cloud.retail.v2alpha.SearchRequest.FacetSpec.FacetKey.intervals]
       in the request to a numerical attribute, then we use the computed
       intervals with rounded bounds obtained from all its product numerical
       attribute values. The computed intervals might not be ideal for some
       attributes. Therefore, we give you the option to overwrite them with the
       facet_intervals field. The maximum of facet intervals per
       [CatalogAttribute][google.cloud.retail.v2alpha.CatalogAttribute] is 40.
       Each interval must have a lower bound or an upper bound. If both bounds
       are provided, then the lower bound must be smaller or equal than the
       upper bound.
       
      repeated .google.cloud.retail.v2alpha.Interval facet_intervals = 1;
    • addFacetIntervals

      public CatalogAttribute.FacetConfig.Builder addFacetIntervals(Interval.Builder builderForValue)
       If you don't set the facet
       [SearchRequest.FacetSpec.FacetKey.intervals][google.cloud.retail.v2alpha.SearchRequest.FacetSpec.FacetKey.intervals]
       in the request to a numerical attribute, then we use the computed
       intervals with rounded bounds obtained from all its product numerical
       attribute values. The computed intervals might not be ideal for some
       attributes. Therefore, we give you the option to overwrite them with the
       facet_intervals field. The maximum of facet intervals per
       [CatalogAttribute][google.cloud.retail.v2alpha.CatalogAttribute] is 40.
       Each interval must have a lower bound or an upper bound. If both bounds
       are provided, then the lower bound must be smaller or equal than the
       upper bound.
       
      repeated .google.cloud.retail.v2alpha.Interval facet_intervals = 1;
    • addFacetIntervals

      public CatalogAttribute.FacetConfig.Builder addFacetIntervals(int index, Interval.Builder builderForValue)
       If you don't set the facet
       [SearchRequest.FacetSpec.FacetKey.intervals][google.cloud.retail.v2alpha.SearchRequest.FacetSpec.FacetKey.intervals]
       in the request to a numerical attribute, then we use the computed
       intervals with rounded bounds obtained from all its product numerical
       attribute values. The computed intervals might not be ideal for some
       attributes. Therefore, we give you the option to overwrite them with the
       facet_intervals field. The maximum of facet intervals per
       [CatalogAttribute][google.cloud.retail.v2alpha.CatalogAttribute] is 40.
       Each interval must have a lower bound or an upper bound. If both bounds
       are provided, then the lower bound must be smaller or equal than the
       upper bound.
       
      repeated .google.cloud.retail.v2alpha.Interval facet_intervals = 1;
    • addAllFacetIntervals

      public CatalogAttribute.FacetConfig.Builder addAllFacetIntervals(Iterable<? extends Interval> values)
       If you don't set the facet
       [SearchRequest.FacetSpec.FacetKey.intervals][google.cloud.retail.v2alpha.SearchRequest.FacetSpec.FacetKey.intervals]
       in the request to a numerical attribute, then we use the computed
       intervals with rounded bounds obtained from all its product numerical
       attribute values. The computed intervals might not be ideal for some
       attributes. Therefore, we give you the option to overwrite them with the
       facet_intervals field. The maximum of facet intervals per
       [CatalogAttribute][google.cloud.retail.v2alpha.CatalogAttribute] is 40.
       Each interval must have a lower bound or an upper bound. If both bounds
       are provided, then the lower bound must be smaller or equal than the
       upper bound.
       
      repeated .google.cloud.retail.v2alpha.Interval facet_intervals = 1;
    • clearFacetIntervals

      public CatalogAttribute.FacetConfig.Builder clearFacetIntervals()
       If you don't set the facet
       [SearchRequest.FacetSpec.FacetKey.intervals][google.cloud.retail.v2alpha.SearchRequest.FacetSpec.FacetKey.intervals]
       in the request to a numerical attribute, then we use the computed
       intervals with rounded bounds obtained from all its product numerical
       attribute values. The computed intervals might not be ideal for some
       attributes. Therefore, we give you the option to overwrite them with the
       facet_intervals field. The maximum of facet intervals per
       [CatalogAttribute][google.cloud.retail.v2alpha.CatalogAttribute] is 40.
       Each interval must have a lower bound or an upper bound. If both bounds
       are provided, then the lower bound must be smaller or equal than the
       upper bound.
       
      repeated .google.cloud.retail.v2alpha.Interval facet_intervals = 1;
    • removeFacetIntervals

      public CatalogAttribute.FacetConfig.Builder removeFacetIntervals(int index)
       If you don't set the facet
       [SearchRequest.FacetSpec.FacetKey.intervals][google.cloud.retail.v2alpha.SearchRequest.FacetSpec.FacetKey.intervals]
       in the request to a numerical attribute, then we use the computed
       intervals with rounded bounds obtained from all its product numerical
       attribute values. The computed intervals might not be ideal for some
       attributes. Therefore, we give you the option to overwrite them with the
       facet_intervals field. The maximum of facet intervals per
       [CatalogAttribute][google.cloud.retail.v2alpha.CatalogAttribute] is 40.
       Each interval must have a lower bound or an upper bound. If both bounds
       are provided, then the lower bound must be smaller or equal than the
       upper bound.
       
      repeated .google.cloud.retail.v2alpha.Interval facet_intervals = 1;
    • getFacetIntervalsBuilder

      public Interval.Builder getFacetIntervalsBuilder(int index)
       If you don't set the facet
       [SearchRequest.FacetSpec.FacetKey.intervals][google.cloud.retail.v2alpha.SearchRequest.FacetSpec.FacetKey.intervals]
       in the request to a numerical attribute, then we use the computed
       intervals with rounded bounds obtained from all its product numerical
       attribute values. The computed intervals might not be ideal for some
       attributes. Therefore, we give you the option to overwrite them with the
       facet_intervals field. The maximum of facet intervals per
       [CatalogAttribute][google.cloud.retail.v2alpha.CatalogAttribute] is 40.
       Each interval must have a lower bound or an upper bound. If both bounds
       are provided, then the lower bound must be smaller or equal than the
       upper bound.
       
      repeated .google.cloud.retail.v2alpha.Interval facet_intervals = 1;
    • getFacetIntervalsOrBuilder

      public IntervalOrBuilder getFacetIntervalsOrBuilder(int index)
       If you don't set the facet
       [SearchRequest.FacetSpec.FacetKey.intervals][google.cloud.retail.v2alpha.SearchRequest.FacetSpec.FacetKey.intervals]
       in the request to a numerical attribute, then we use the computed
       intervals with rounded bounds obtained from all its product numerical
       attribute values. The computed intervals might not be ideal for some
       attributes. Therefore, we give you the option to overwrite them with the
       facet_intervals field. The maximum of facet intervals per
       [CatalogAttribute][google.cloud.retail.v2alpha.CatalogAttribute] is 40.
       Each interval must have a lower bound or an upper bound. If both bounds
       are provided, then the lower bound must be smaller or equal than the
       upper bound.
       
      repeated .google.cloud.retail.v2alpha.Interval facet_intervals = 1;
      Specified by:
      getFacetIntervalsOrBuilder in interface CatalogAttribute.FacetConfigOrBuilder
    • getFacetIntervalsOrBuilderList

      public List<? extends IntervalOrBuilder> getFacetIntervalsOrBuilderList()
       If you don't set the facet
       [SearchRequest.FacetSpec.FacetKey.intervals][google.cloud.retail.v2alpha.SearchRequest.FacetSpec.FacetKey.intervals]
       in the request to a numerical attribute, then we use the computed
       intervals with rounded bounds obtained from all its product numerical
       attribute values. The computed intervals might not be ideal for some
       attributes. Therefore, we give you the option to overwrite them with the
       facet_intervals field. The maximum of facet intervals per
       [CatalogAttribute][google.cloud.retail.v2alpha.CatalogAttribute] is 40.
       Each interval must have a lower bound or an upper bound. If both bounds
       are provided, then the lower bound must be smaller or equal than the
       upper bound.
       
      repeated .google.cloud.retail.v2alpha.Interval facet_intervals = 1;
      Specified by:
      getFacetIntervalsOrBuilderList in interface CatalogAttribute.FacetConfigOrBuilder
    • addFacetIntervalsBuilder

      public Interval.Builder addFacetIntervalsBuilder()
       If you don't set the facet
       [SearchRequest.FacetSpec.FacetKey.intervals][google.cloud.retail.v2alpha.SearchRequest.FacetSpec.FacetKey.intervals]
       in the request to a numerical attribute, then we use the computed
       intervals with rounded bounds obtained from all its product numerical
       attribute values. The computed intervals might not be ideal for some
       attributes. Therefore, we give you the option to overwrite them with the
       facet_intervals field. The maximum of facet intervals per
       [CatalogAttribute][google.cloud.retail.v2alpha.CatalogAttribute] is 40.
       Each interval must have a lower bound or an upper bound. If both bounds
       are provided, then the lower bound must be smaller or equal than the
       upper bound.
       
      repeated .google.cloud.retail.v2alpha.Interval facet_intervals = 1;
    • addFacetIntervalsBuilder

      public Interval.Builder addFacetIntervalsBuilder(int index)
       If you don't set the facet
       [SearchRequest.FacetSpec.FacetKey.intervals][google.cloud.retail.v2alpha.SearchRequest.FacetSpec.FacetKey.intervals]
       in the request to a numerical attribute, then we use the computed
       intervals with rounded bounds obtained from all its product numerical
       attribute values. The computed intervals might not be ideal for some
       attributes. Therefore, we give you the option to overwrite them with the
       facet_intervals field. The maximum of facet intervals per
       [CatalogAttribute][google.cloud.retail.v2alpha.CatalogAttribute] is 40.
       Each interval must have a lower bound or an upper bound. If both bounds
       are provided, then the lower bound must be smaller or equal than the
       upper bound.
       
      repeated .google.cloud.retail.v2alpha.Interval facet_intervals = 1;
    • getFacetIntervalsBuilderList

      public List<Interval.Builder> getFacetIntervalsBuilderList()
       If you don't set the facet
       [SearchRequest.FacetSpec.FacetKey.intervals][google.cloud.retail.v2alpha.SearchRequest.FacetSpec.FacetKey.intervals]
       in the request to a numerical attribute, then we use the computed
       intervals with rounded bounds obtained from all its product numerical
       attribute values. The computed intervals might not be ideal for some
       attributes. Therefore, we give you the option to overwrite them with the
       facet_intervals field. The maximum of facet intervals per
       [CatalogAttribute][google.cloud.retail.v2alpha.CatalogAttribute] is 40.
       Each interval must have a lower bound or an upper bound. If both bounds
       are provided, then the lower bound must be smaller or equal than the
       upper bound.
       
      repeated .google.cloud.retail.v2alpha.Interval facet_intervals = 1;
    • getIgnoredFacetValuesList

      public List<CatalogAttribute.FacetConfig.IgnoredFacetValues> getIgnoredFacetValuesList()
       Each instance represents a list of attribute values to ignore as facet
       values for a specific time range. The maximum number of instances per
       [CatalogAttribute][google.cloud.retail.v2alpha.CatalogAttribute] is 25.
       
      repeated .google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.IgnoredFacetValues ignored_facet_values = 2;
      Specified by:
      getIgnoredFacetValuesList in interface CatalogAttribute.FacetConfigOrBuilder
    • getIgnoredFacetValuesCount

      public int getIgnoredFacetValuesCount()
       Each instance represents a list of attribute values to ignore as facet
       values for a specific time range. The maximum number of instances per
       [CatalogAttribute][google.cloud.retail.v2alpha.CatalogAttribute] is 25.
       
      repeated .google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.IgnoredFacetValues ignored_facet_values = 2;
      Specified by:
      getIgnoredFacetValuesCount in interface CatalogAttribute.FacetConfigOrBuilder
    • getIgnoredFacetValues

      public CatalogAttribute.FacetConfig.IgnoredFacetValues getIgnoredFacetValues(int index)
       Each instance represents a list of attribute values to ignore as facet
       values for a specific time range. The maximum number of instances per
       [CatalogAttribute][google.cloud.retail.v2alpha.CatalogAttribute] is 25.
       
      repeated .google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.IgnoredFacetValues ignored_facet_values = 2;
      Specified by:
      getIgnoredFacetValues in interface CatalogAttribute.FacetConfigOrBuilder
    • setIgnoredFacetValues

       Each instance represents a list of attribute values to ignore as facet
       values for a specific time range. The maximum number of instances per
       [CatalogAttribute][google.cloud.retail.v2alpha.CatalogAttribute] is 25.
       
      repeated .google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.IgnoredFacetValues ignored_facet_values = 2;
    • setIgnoredFacetValues

      public CatalogAttribute.FacetConfig.Builder setIgnoredFacetValues(int index, CatalogAttribute.FacetConfig.IgnoredFacetValues.Builder builderForValue)
       Each instance represents a list of attribute values to ignore as facet
       values for a specific time range. The maximum number of instances per
       [CatalogAttribute][google.cloud.retail.v2alpha.CatalogAttribute] is 25.
       
      repeated .google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.IgnoredFacetValues ignored_facet_values = 2;
    • addIgnoredFacetValues

       Each instance represents a list of attribute values to ignore as facet
       values for a specific time range. The maximum number of instances per
       [CatalogAttribute][google.cloud.retail.v2alpha.CatalogAttribute] is 25.
       
      repeated .google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.IgnoredFacetValues ignored_facet_values = 2;
    • addIgnoredFacetValues

       Each instance represents a list of attribute values to ignore as facet
       values for a specific time range. The maximum number of instances per
       [CatalogAttribute][google.cloud.retail.v2alpha.CatalogAttribute] is 25.
       
      repeated .google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.IgnoredFacetValues ignored_facet_values = 2;
    • addIgnoredFacetValues

       Each instance represents a list of attribute values to ignore as facet
       values for a specific time range. The maximum number of instances per
       [CatalogAttribute][google.cloud.retail.v2alpha.CatalogAttribute] is 25.
       
      repeated .google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.IgnoredFacetValues ignored_facet_values = 2;
    • addIgnoredFacetValues

      public CatalogAttribute.FacetConfig.Builder addIgnoredFacetValues(int index, CatalogAttribute.FacetConfig.IgnoredFacetValues.Builder builderForValue)
       Each instance represents a list of attribute values to ignore as facet
       values for a specific time range. The maximum number of instances per
       [CatalogAttribute][google.cloud.retail.v2alpha.CatalogAttribute] is 25.
       
      repeated .google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.IgnoredFacetValues ignored_facet_values = 2;
    • addAllIgnoredFacetValues

       Each instance represents a list of attribute values to ignore as facet
       values for a specific time range. The maximum number of instances per
       [CatalogAttribute][google.cloud.retail.v2alpha.CatalogAttribute] is 25.
       
      repeated .google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.IgnoredFacetValues ignored_facet_values = 2;
    • clearIgnoredFacetValues

      public CatalogAttribute.FacetConfig.Builder clearIgnoredFacetValues()
       Each instance represents a list of attribute values to ignore as facet
       values for a specific time range. The maximum number of instances per
       [CatalogAttribute][google.cloud.retail.v2alpha.CatalogAttribute] is 25.
       
      repeated .google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.IgnoredFacetValues ignored_facet_values = 2;
    • removeIgnoredFacetValues

      public CatalogAttribute.FacetConfig.Builder removeIgnoredFacetValues(int index)
       Each instance represents a list of attribute values to ignore as facet
       values for a specific time range. The maximum number of instances per
       [CatalogAttribute][google.cloud.retail.v2alpha.CatalogAttribute] is 25.
       
      repeated .google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.IgnoredFacetValues ignored_facet_values = 2;
    • getIgnoredFacetValuesBuilder

      public CatalogAttribute.FacetConfig.IgnoredFacetValues.Builder getIgnoredFacetValuesBuilder(int index)
       Each instance represents a list of attribute values to ignore as facet
       values for a specific time range. The maximum number of instances per
       [CatalogAttribute][google.cloud.retail.v2alpha.CatalogAttribute] is 25.
       
      repeated .google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.IgnoredFacetValues ignored_facet_values = 2;
    • getIgnoredFacetValuesOrBuilder

      public CatalogAttribute.FacetConfig.IgnoredFacetValuesOrBuilder getIgnoredFacetValuesOrBuilder(int index)
       Each instance represents a list of attribute values to ignore as facet
       values for a specific time range. The maximum number of instances per
       [CatalogAttribute][google.cloud.retail.v2alpha.CatalogAttribute] is 25.
       
      repeated .google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.IgnoredFacetValues ignored_facet_values = 2;
      Specified by:
      getIgnoredFacetValuesOrBuilder in interface CatalogAttribute.FacetConfigOrBuilder
    • getIgnoredFacetValuesOrBuilderList

      public List<? extends CatalogAttribute.FacetConfig.IgnoredFacetValuesOrBuilder> getIgnoredFacetValuesOrBuilderList()
       Each instance represents a list of attribute values to ignore as facet
       values for a specific time range. The maximum number of instances per
       [CatalogAttribute][google.cloud.retail.v2alpha.CatalogAttribute] is 25.
       
      repeated .google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.IgnoredFacetValues ignored_facet_values = 2;
      Specified by:
      getIgnoredFacetValuesOrBuilderList in interface CatalogAttribute.FacetConfigOrBuilder
    • addIgnoredFacetValuesBuilder

      public CatalogAttribute.FacetConfig.IgnoredFacetValues.Builder addIgnoredFacetValuesBuilder()
       Each instance represents a list of attribute values to ignore as facet
       values for a specific time range. The maximum number of instances per
       [CatalogAttribute][google.cloud.retail.v2alpha.CatalogAttribute] is 25.
       
      repeated .google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.IgnoredFacetValues ignored_facet_values = 2;
    • addIgnoredFacetValuesBuilder

      public CatalogAttribute.FacetConfig.IgnoredFacetValues.Builder addIgnoredFacetValuesBuilder(int index)
       Each instance represents a list of attribute values to ignore as facet
       values for a specific time range. The maximum number of instances per
       [CatalogAttribute][google.cloud.retail.v2alpha.CatalogAttribute] is 25.
       
      repeated .google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.IgnoredFacetValues ignored_facet_values = 2;
    • getIgnoredFacetValuesBuilderList

      public List<CatalogAttribute.FacetConfig.IgnoredFacetValues.Builder> getIgnoredFacetValuesBuilderList()
       Each instance represents a list of attribute values to ignore as facet
       values for a specific time range. The maximum number of instances per
       [CatalogAttribute][google.cloud.retail.v2alpha.CatalogAttribute] is 25.
       
      repeated .google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.IgnoredFacetValues ignored_facet_values = 2;
    • getMergedFacetValuesList

      public List<CatalogAttribute.FacetConfig.MergedFacetValue> getMergedFacetValuesList()
       Each instance replaces a list of facet values by a merged facet
       value. If a facet value is not in any list, then it will stay the same.
       To avoid conflicts, only paths of length 1 are accepted. In other words,
       if "dark_blue" merged into "BLUE", then the latter can't merge into
       "blues" because this would create a path of length 2. The maximum number
       of instances of MergedFacetValue per
       [CatalogAttribute][google.cloud.retail.v2alpha.CatalogAttribute] is 100.
       This feature is available only for textual custom attributes.
       
      repeated .google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.MergedFacetValue merged_facet_values = 3;
      Specified by:
      getMergedFacetValuesList in interface CatalogAttribute.FacetConfigOrBuilder
    • getMergedFacetValuesCount

      public int getMergedFacetValuesCount()
       Each instance replaces a list of facet values by a merged facet
       value. If a facet value is not in any list, then it will stay the same.
       To avoid conflicts, only paths of length 1 are accepted. In other words,
       if "dark_blue" merged into "BLUE", then the latter can't merge into
       "blues" because this would create a path of length 2. The maximum number
       of instances of MergedFacetValue per
       [CatalogAttribute][google.cloud.retail.v2alpha.CatalogAttribute] is 100.
       This feature is available only for textual custom attributes.
       
      repeated .google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.MergedFacetValue merged_facet_values = 3;
      Specified by:
      getMergedFacetValuesCount in interface CatalogAttribute.FacetConfigOrBuilder
    • getMergedFacetValues

      public CatalogAttribute.FacetConfig.MergedFacetValue getMergedFacetValues(int index)
       Each instance replaces a list of facet values by a merged facet
       value. If a facet value is not in any list, then it will stay the same.
       To avoid conflicts, only paths of length 1 are accepted. In other words,
       if "dark_blue" merged into "BLUE", then the latter can't merge into
       "blues" because this would create a path of length 2. The maximum number
       of instances of MergedFacetValue per
       [CatalogAttribute][google.cloud.retail.v2alpha.CatalogAttribute] is 100.
       This feature is available only for textual custom attributes.
       
      repeated .google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.MergedFacetValue merged_facet_values = 3;
      Specified by:
      getMergedFacetValues in interface CatalogAttribute.FacetConfigOrBuilder
    • setMergedFacetValues

       Each instance replaces a list of facet values by a merged facet
       value. If a facet value is not in any list, then it will stay the same.
       To avoid conflicts, only paths of length 1 are accepted. In other words,
       if "dark_blue" merged into "BLUE", then the latter can't merge into
       "blues" because this would create a path of length 2. The maximum number
       of instances of MergedFacetValue per
       [CatalogAttribute][google.cloud.retail.v2alpha.CatalogAttribute] is 100.
       This feature is available only for textual custom attributes.
       
      repeated .google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.MergedFacetValue merged_facet_values = 3;
    • setMergedFacetValues

      public CatalogAttribute.FacetConfig.Builder setMergedFacetValues(int index, CatalogAttribute.FacetConfig.MergedFacetValue.Builder builderForValue)
       Each instance replaces a list of facet values by a merged facet
       value. If a facet value is not in any list, then it will stay the same.
       To avoid conflicts, only paths of length 1 are accepted. In other words,
       if "dark_blue" merged into "BLUE", then the latter can't merge into
       "blues" because this would create a path of length 2. The maximum number
       of instances of MergedFacetValue per
       [CatalogAttribute][google.cloud.retail.v2alpha.CatalogAttribute] is 100.
       This feature is available only for textual custom attributes.
       
      repeated .google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.MergedFacetValue merged_facet_values = 3;
    • addMergedFacetValues

       Each instance replaces a list of facet values by a merged facet
       value. If a facet value is not in any list, then it will stay the same.
       To avoid conflicts, only paths of length 1 are accepted. In other words,
       if "dark_blue" merged into "BLUE", then the latter can't merge into
       "blues" because this would create a path of length 2. The maximum number
       of instances of MergedFacetValue per
       [CatalogAttribute][google.cloud.retail.v2alpha.CatalogAttribute] is 100.
       This feature is available only for textual custom attributes.
       
      repeated .google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.MergedFacetValue merged_facet_values = 3;
    • addMergedFacetValues

       Each instance replaces a list of facet values by a merged facet
       value. If a facet value is not in any list, then it will stay the same.
       To avoid conflicts, only paths of length 1 are accepted. In other words,
       if "dark_blue" merged into "BLUE", then the latter can't merge into
       "blues" because this would create a path of length 2. The maximum number
       of instances of MergedFacetValue per
       [CatalogAttribute][google.cloud.retail.v2alpha.CatalogAttribute] is 100.
       This feature is available only for textual custom attributes.
       
      repeated .google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.MergedFacetValue merged_facet_values = 3;
    • addMergedFacetValues

       Each instance replaces a list of facet values by a merged facet
       value. If a facet value is not in any list, then it will stay the same.
       To avoid conflicts, only paths of length 1 are accepted. In other words,
       if "dark_blue" merged into "BLUE", then the latter can't merge into
       "blues" because this would create a path of length 2. The maximum number
       of instances of MergedFacetValue per
       [CatalogAttribute][google.cloud.retail.v2alpha.CatalogAttribute] is 100.
       This feature is available only for textual custom attributes.
       
      repeated .google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.MergedFacetValue merged_facet_values = 3;
    • addMergedFacetValues

      public CatalogAttribute.FacetConfig.Builder addMergedFacetValues(int index, CatalogAttribute.FacetConfig.MergedFacetValue.Builder builderForValue)
       Each instance replaces a list of facet values by a merged facet
       value. If a facet value is not in any list, then it will stay the same.
       To avoid conflicts, only paths of length 1 are accepted. In other words,
       if "dark_blue" merged into "BLUE", then the latter can't merge into
       "blues" because this would create a path of length 2. The maximum number
       of instances of MergedFacetValue per
       [CatalogAttribute][google.cloud.retail.v2alpha.CatalogAttribute] is 100.
       This feature is available only for textual custom attributes.
       
      repeated .google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.MergedFacetValue merged_facet_values = 3;
    • addAllMergedFacetValues

       Each instance replaces a list of facet values by a merged facet
       value. If a facet value is not in any list, then it will stay the same.
       To avoid conflicts, only paths of length 1 are accepted. In other words,
       if "dark_blue" merged into "BLUE", then the latter can't merge into
       "blues" because this would create a path of length 2. The maximum number
       of instances of MergedFacetValue per
       [CatalogAttribute][google.cloud.retail.v2alpha.CatalogAttribute] is 100.
       This feature is available only for textual custom attributes.
       
      repeated .google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.MergedFacetValue merged_facet_values = 3;
    • clearMergedFacetValues

      public CatalogAttribute.FacetConfig.Builder clearMergedFacetValues()
       Each instance replaces a list of facet values by a merged facet
       value. If a facet value is not in any list, then it will stay the same.
       To avoid conflicts, only paths of length 1 are accepted. In other words,
       if "dark_blue" merged into "BLUE", then the latter can't merge into
       "blues" because this would create a path of length 2. The maximum number
       of instances of MergedFacetValue per
       [CatalogAttribute][google.cloud.retail.v2alpha.CatalogAttribute] is 100.
       This feature is available only for textual custom attributes.
       
      repeated .google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.MergedFacetValue merged_facet_values = 3;
    • removeMergedFacetValues

      public CatalogAttribute.FacetConfig.Builder removeMergedFacetValues(int index)
       Each instance replaces a list of facet values by a merged facet
       value. If a facet value is not in any list, then it will stay the same.
       To avoid conflicts, only paths of length 1 are accepted. In other words,
       if "dark_blue" merged into "BLUE", then the latter can't merge into
       "blues" because this would create a path of length 2. The maximum number
       of instances of MergedFacetValue per
       [CatalogAttribute][google.cloud.retail.v2alpha.CatalogAttribute] is 100.
       This feature is available only for textual custom attributes.
       
      repeated .google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.MergedFacetValue merged_facet_values = 3;
    • getMergedFacetValuesBuilder

      public CatalogAttribute.FacetConfig.MergedFacetValue.Builder getMergedFacetValuesBuilder(int index)
       Each instance replaces a list of facet values by a merged facet
       value. If a facet value is not in any list, then it will stay the same.
       To avoid conflicts, only paths of length 1 are accepted. In other words,
       if "dark_blue" merged into "BLUE", then the latter can't merge into
       "blues" because this would create a path of length 2. The maximum number
       of instances of MergedFacetValue per
       [CatalogAttribute][google.cloud.retail.v2alpha.CatalogAttribute] is 100.
       This feature is available only for textual custom attributes.
       
      repeated .google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.MergedFacetValue merged_facet_values = 3;
    • getMergedFacetValuesOrBuilder

      public CatalogAttribute.FacetConfig.MergedFacetValueOrBuilder getMergedFacetValuesOrBuilder(int index)
       Each instance replaces a list of facet values by a merged facet
       value. If a facet value is not in any list, then it will stay the same.
       To avoid conflicts, only paths of length 1 are accepted. In other words,
       if "dark_blue" merged into "BLUE", then the latter can't merge into
       "blues" because this would create a path of length 2. The maximum number
       of instances of MergedFacetValue per
       [CatalogAttribute][google.cloud.retail.v2alpha.CatalogAttribute] is 100.
       This feature is available only for textual custom attributes.
       
      repeated .google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.MergedFacetValue merged_facet_values = 3;
      Specified by:
      getMergedFacetValuesOrBuilder in interface CatalogAttribute.FacetConfigOrBuilder
    • getMergedFacetValuesOrBuilderList

      public List<? extends CatalogAttribute.FacetConfig.MergedFacetValueOrBuilder> getMergedFacetValuesOrBuilderList()
       Each instance replaces a list of facet values by a merged facet
       value. If a facet value is not in any list, then it will stay the same.
       To avoid conflicts, only paths of length 1 are accepted. In other words,
       if "dark_blue" merged into "BLUE", then the latter can't merge into
       "blues" because this would create a path of length 2. The maximum number
       of instances of MergedFacetValue per
       [CatalogAttribute][google.cloud.retail.v2alpha.CatalogAttribute] is 100.
       This feature is available only for textual custom attributes.
       
      repeated .google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.MergedFacetValue merged_facet_values = 3;
      Specified by:
      getMergedFacetValuesOrBuilderList in interface CatalogAttribute.FacetConfigOrBuilder
    • addMergedFacetValuesBuilder

      public CatalogAttribute.FacetConfig.MergedFacetValue.Builder addMergedFacetValuesBuilder()
       Each instance replaces a list of facet values by a merged facet
       value. If a facet value is not in any list, then it will stay the same.
       To avoid conflicts, only paths of length 1 are accepted. In other words,
       if "dark_blue" merged into "BLUE", then the latter can't merge into
       "blues" because this would create a path of length 2. The maximum number
       of instances of MergedFacetValue per
       [CatalogAttribute][google.cloud.retail.v2alpha.CatalogAttribute] is 100.
       This feature is available only for textual custom attributes.
       
      repeated .google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.MergedFacetValue merged_facet_values = 3;
    • addMergedFacetValuesBuilder

      public CatalogAttribute.FacetConfig.MergedFacetValue.Builder addMergedFacetValuesBuilder(int index)
       Each instance replaces a list of facet values by a merged facet
       value. If a facet value is not in any list, then it will stay the same.
       To avoid conflicts, only paths of length 1 are accepted. In other words,
       if "dark_blue" merged into "BLUE", then the latter can't merge into
       "blues" because this would create a path of length 2. The maximum number
       of instances of MergedFacetValue per
       [CatalogAttribute][google.cloud.retail.v2alpha.CatalogAttribute] is 100.
       This feature is available only for textual custom attributes.
       
      repeated .google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.MergedFacetValue merged_facet_values = 3;
    • getMergedFacetValuesBuilderList

      public List<CatalogAttribute.FacetConfig.MergedFacetValue.Builder> getMergedFacetValuesBuilderList()
       Each instance replaces a list of facet values by a merged facet
       value. If a facet value is not in any list, then it will stay the same.
       To avoid conflicts, only paths of length 1 are accepted. In other words,
       if "dark_blue" merged into "BLUE", then the latter can't merge into
       "blues" because this would create a path of length 2. The maximum number
       of instances of MergedFacetValue per
       [CatalogAttribute][google.cloud.retail.v2alpha.CatalogAttribute] is 100.
       This feature is available only for textual custom attributes.
       
      repeated .google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.MergedFacetValue merged_facet_values = 3;
    • hasMergedFacet

      public boolean hasMergedFacet()
       Use this field only if you want to merge a facet key into another facet
       key.
       
      .google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.MergedFacet merged_facet = 4;
      Specified by:
      hasMergedFacet in interface CatalogAttribute.FacetConfigOrBuilder
      Returns:
      Whether the mergedFacet field is set.
    • getMergedFacet

       Use this field only if you want to merge a facet key into another facet
       key.
       
      .google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.MergedFacet merged_facet = 4;
      Specified by:
      getMergedFacet in interface CatalogAttribute.FacetConfigOrBuilder
      Returns:
      The mergedFacet.
    • setMergedFacet

       Use this field only if you want to merge a facet key into another facet
       key.
       
      .google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.MergedFacet merged_facet = 4;
    • setMergedFacet

       Use this field only if you want to merge a facet key into another facet
       key.
       
      .google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.MergedFacet merged_facet = 4;
    • mergeMergedFacet

       Use this field only if you want to merge a facet key into another facet
       key.
       
      .google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.MergedFacet merged_facet = 4;
    • clearMergedFacet

      public CatalogAttribute.FacetConfig.Builder clearMergedFacet()
       Use this field only if you want to merge a facet key into another facet
       key.
       
      .google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.MergedFacet merged_facet = 4;
    • getMergedFacetBuilder

      public CatalogAttribute.FacetConfig.MergedFacet.Builder getMergedFacetBuilder()
       Use this field only if you want to merge a facet key into another facet
       key.
       
      .google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.MergedFacet merged_facet = 4;
    • getMergedFacetOrBuilder

      public CatalogAttribute.FacetConfig.MergedFacetOrBuilder getMergedFacetOrBuilder()
       Use this field only if you want to merge a facet key into another facet
       key.
       
      .google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.MergedFacet merged_facet = 4;
      Specified by:
      getMergedFacetOrBuilder in interface CatalogAttribute.FacetConfigOrBuilder
    • hasRerankConfig

      public boolean hasRerankConfig()
       Set this field only if you want to rerank based on facet values engaged
       by the user for the current key. This option is only possible for custom
       facetable textual keys.
       
      .google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.RerankConfig rerank_config = 5;
      Specified by:
      hasRerankConfig in interface CatalogAttribute.FacetConfigOrBuilder
      Returns:
      Whether the rerankConfig field is set.
    • getRerankConfig

       Set this field only if you want to rerank based on facet values engaged
       by the user for the current key. This option is only possible for custom
       facetable textual keys.
       
      .google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.RerankConfig rerank_config = 5;
      Specified by:
      getRerankConfig in interface CatalogAttribute.FacetConfigOrBuilder
      Returns:
      The rerankConfig.
    • setRerankConfig

       Set this field only if you want to rerank based on facet values engaged
       by the user for the current key. This option is only possible for custom
       facetable textual keys.
       
      .google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.RerankConfig rerank_config = 5;
    • setRerankConfig

       Set this field only if you want to rerank based on facet values engaged
       by the user for the current key. This option is only possible for custom
       facetable textual keys.
       
      .google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.RerankConfig rerank_config = 5;
    • mergeRerankConfig

       Set this field only if you want to rerank based on facet values engaged
       by the user for the current key. This option is only possible for custom
       facetable textual keys.
       
      .google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.RerankConfig rerank_config = 5;
    • clearRerankConfig

      public CatalogAttribute.FacetConfig.Builder clearRerankConfig()
       Set this field only if you want to rerank based on facet values engaged
       by the user for the current key. This option is only possible for custom
       facetable textual keys.
       
      .google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.RerankConfig rerank_config = 5;
    • getRerankConfigBuilder

      public CatalogAttribute.FacetConfig.RerankConfig.Builder getRerankConfigBuilder()
       Set this field only if you want to rerank based on facet values engaged
       by the user for the current key. This option is only possible for custom
       facetable textual keys.
       
      .google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.RerankConfig rerank_config = 5;
    • getRerankConfigOrBuilder

      public CatalogAttribute.FacetConfig.RerankConfigOrBuilder getRerankConfigOrBuilder()
       Set this field only if you want to rerank based on facet values engaged
       by the user for the current key. This option is only possible for custom
       facetable textual keys.
       
      .google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.RerankConfig rerank_config = 5;
      Specified by:
      getRerankConfigOrBuilder in interface CatalogAttribute.FacetConfigOrBuilder