Class CatalogAttribute.FacetConfig.IgnoredFacetValues.Builder

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

public static final class CatalogAttribute.FacetConfig.IgnoredFacetValues.Builder extends com.google.protobuf.GeneratedMessage.Builder<CatalogAttribute.FacetConfig.IgnoredFacetValues.Builder> implements CatalogAttribute.FacetConfig.IgnoredFacetValuesOrBuilder
 [Facet values][google.cloud.retail.v2alpha.SearchResponse.Facet.values]
 to ignore on [facets][google.cloud.retail.v2alpha.SearchResponse.Facet]
 during the specified time range for the given
 [SearchResponse.Facet.key][google.cloud.retail.v2alpha.SearchResponse.Facet.key]
 attribute.
 
Protobuf type google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.IgnoredFacetValues
  • 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.IgnoredFacetValues.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.IgnoredFacetValues.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.IgnoredFacetValues.Builder>
    • getDefaultInstanceForType

      public CatalogAttribute.FacetConfig.IgnoredFacetValues 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

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

      public CatalogAttribute.FacetConfig.IgnoredFacetValues.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.IgnoredFacetValues.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.IgnoredFacetValues.Builder>
    • mergeFrom

      public CatalogAttribute.FacetConfig.IgnoredFacetValues.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.IgnoredFacetValues.Builder>
      Throws:
      IOException
    • getValuesList

      public com.google.protobuf.ProtocolStringList getValuesList()
       List of facet values to ignore for the following time range. The facet
       values are the same as the attribute values. There is a limit of 10
       values per instance of IgnoredFacetValues. Each value can have at most
       128 characters.
       
      repeated string values = 1;
      Specified by:
      getValuesList in interface CatalogAttribute.FacetConfig.IgnoredFacetValuesOrBuilder
      Returns:
      A list containing the values.
    • getValuesCount

      public int getValuesCount()
       List of facet values to ignore for the following time range. The facet
       values are the same as the attribute values. There is a limit of 10
       values per instance of IgnoredFacetValues. Each value can have at most
       128 characters.
       
      repeated string values = 1;
      Specified by:
      getValuesCount in interface CatalogAttribute.FacetConfig.IgnoredFacetValuesOrBuilder
      Returns:
      The count of values.
    • getValues

      public String getValues(int index)
       List of facet values to ignore for the following time range. The facet
       values are the same as the attribute values. There is a limit of 10
       values per instance of IgnoredFacetValues. Each value can have at most
       128 characters.
       
      repeated string values = 1;
      Specified by:
      getValues in interface CatalogAttribute.FacetConfig.IgnoredFacetValuesOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The values at the given index.
    • getValuesBytes

      public com.google.protobuf.ByteString getValuesBytes(int index)
       List of facet values to ignore for the following time range. The facet
       values are the same as the attribute values. There is a limit of 10
       values per instance of IgnoredFacetValues. Each value can have at most
       128 characters.
       
      repeated string values = 1;
      Specified by:
      getValuesBytes in interface CatalogAttribute.FacetConfig.IgnoredFacetValuesOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the values at the given index.
    • setValues

       List of facet values to ignore for the following time range. The facet
       values are the same as the attribute values. There is a limit of 10
       values per instance of IgnoredFacetValues. Each value can have at most
       128 characters.
       
      repeated string values = 1;
      Parameters:
      index - The index to set the value at.
      value - The values to set.
      Returns:
      This builder for chaining.
    • addValues

       List of facet values to ignore for the following time range. The facet
       values are the same as the attribute values. There is a limit of 10
       values per instance of IgnoredFacetValues. Each value can have at most
       128 characters.
       
      repeated string values = 1;
      Parameters:
      value - The values to add.
      Returns:
      This builder for chaining.
    • addAllValues

       List of facet values to ignore for the following time range. The facet
       values are the same as the attribute values. There is a limit of 10
       values per instance of IgnoredFacetValues. Each value can have at most
       128 characters.
       
      repeated string values = 1;
      Parameters:
      values - The values to add.
      Returns:
      This builder for chaining.
    • clearValues

       List of facet values to ignore for the following time range. The facet
       values are the same as the attribute values. There is a limit of 10
       values per instance of IgnoredFacetValues. Each value can have at most
       128 characters.
       
      repeated string values = 1;
      Returns:
      This builder for chaining.
    • addValuesBytes

      public CatalogAttribute.FacetConfig.IgnoredFacetValues.Builder addValuesBytes(com.google.protobuf.ByteString value)
       List of facet values to ignore for the following time range. The facet
       values are the same as the attribute values. There is a limit of 10
       values per instance of IgnoredFacetValues. Each value can have at most
       128 characters.
       
      repeated string values = 1;
      Parameters:
      value - The bytes of the values to add.
      Returns:
      This builder for chaining.
    • hasStartTime

      public boolean hasStartTime()
       Time range for the current list of facet values to ignore.
       If multiple time ranges are specified for an facet value for the
       current attribute, consider all of them. If both are empty, ignore
       always. If start time and end time are set, then start time
       must be before end time.
       If start time is not empty and end time is empty, then will ignore
       these facet values after the start time.
       
      .google.protobuf.Timestamp start_time = 2;
      Specified by:
      hasStartTime in interface CatalogAttribute.FacetConfig.IgnoredFacetValuesOrBuilder
      Returns:
      Whether the startTime field is set.
    • getStartTime

      public com.google.protobuf.Timestamp getStartTime()
       Time range for the current list of facet values to ignore.
       If multiple time ranges are specified for an facet value for the
       current attribute, consider all of them. If both are empty, ignore
       always. If start time and end time are set, then start time
       must be before end time.
       If start time is not empty and end time is empty, then will ignore
       these facet values after the start time.
       
      .google.protobuf.Timestamp start_time = 2;
      Specified by:
      getStartTime in interface CatalogAttribute.FacetConfig.IgnoredFacetValuesOrBuilder
      Returns:
      The startTime.
    • setStartTime

      public CatalogAttribute.FacetConfig.IgnoredFacetValues.Builder setStartTime(com.google.protobuf.Timestamp value)
       Time range for the current list of facet values to ignore.
       If multiple time ranges are specified for an facet value for the
       current attribute, consider all of them. If both are empty, ignore
       always. If start time and end time are set, then start time
       must be before end time.
       If start time is not empty and end time is empty, then will ignore
       these facet values after the start time.
       
      .google.protobuf.Timestamp start_time = 2;
    • setStartTime

      public CatalogAttribute.FacetConfig.IgnoredFacetValues.Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValue)
       Time range for the current list of facet values to ignore.
       If multiple time ranges are specified for an facet value for the
       current attribute, consider all of them. If both are empty, ignore
       always. If start time and end time are set, then start time
       must be before end time.
       If start time is not empty and end time is empty, then will ignore
       these facet values after the start time.
       
      .google.protobuf.Timestamp start_time = 2;
    • mergeStartTime

      public CatalogAttribute.FacetConfig.IgnoredFacetValues.Builder mergeStartTime(com.google.protobuf.Timestamp value)
       Time range for the current list of facet values to ignore.
       If multiple time ranges are specified for an facet value for the
       current attribute, consider all of them. If both are empty, ignore
       always. If start time and end time are set, then start time
       must be before end time.
       If start time is not empty and end time is empty, then will ignore
       these facet values after the start time.
       
      .google.protobuf.Timestamp start_time = 2;
    • clearStartTime

       Time range for the current list of facet values to ignore.
       If multiple time ranges are specified for an facet value for the
       current attribute, consider all of them. If both are empty, ignore
       always. If start time and end time are set, then start time
       must be before end time.
       If start time is not empty and end time is empty, then will ignore
       these facet values after the start time.
       
      .google.protobuf.Timestamp start_time = 2;
    • getStartTimeBuilder

      public com.google.protobuf.Timestamp.Builder getStartTimeBuilder()
       Time range for the current list of facet values to ignore.
       If multiple time ranges are specified for an facet value for the
       current attribute, consider all of them. If both are empty, ignore
       always. If start time and end time are set, then start time
       must be before end time.
       If start time is not empty and end time is empty, then will ignore
       these facet values after the start time.
       
      .google.protobuf.Timestamp start_time = 2;
    • getStartTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder()
       Time range for the current list of facet values to ignore.
       If multiple time ranges are specified for an facet value for the
       current attribute, consider all of them. If both are empty, ignore
       always. If start time and end time are set, then start time
       must be before end time.
       If start time is not empty and end time is empty, then will ignore
       these facet values after the start time.
       
      .google.protobuf.Timestamp start_time = 2;
      Specified by:
      getStartTimeOrBuilder in interface CatalogAttribute.FacetConfig.IgnoredFacetValuesOrBuilder
    • hasEndTime

      public boolean hasEndTime()
       If start time is empty and end time is not empty, then ignore these
       facet values before end time.
       
      .google.protobuf.Timestamp end_time = 3;
      Specified by:
      hasEndTime in interface CatalogAttribute.FacetConfig.IgnoredFacetValuesOrBuilder
      Returns:
      Whether the endTime field is set.
    • getEndTime

      public com.google.protobuf.Timestamp getEndTime()
       If start time is empty and end time is not empty, then ignore these
       facet values before end time.
       
      .google.protobuf.Timestamp end_time = 3;
      Specified by:
      getEndTime in interface CatalogAttribute.FacetConfig.IgnoredFacetValuesOrBuilder
      Returns:
      The endTime.
    • setEndTime

      public CatalogAttribute.FacetConfig.IgnoredFacetValues.Builder setEndTime(com.google.protobuf.Timestamp value)
       If start time is empty and end time is not empty, then ignore these
       facet values before end time.
       
      .google.protobuf.Timestamp end_time = 3;
    • setEndTime

      public CatalogAttribute.FacetConfig.IgnoredFacetValues.Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue)
       If start time is empty and end time is not empty, then ignore these
       facet values before end time.
       
      .google.protobuf.Timestamp end_time = 3;
    • mergeEndTime

      public CatalogAttribute.FacetConfig.IgnoredFacetValues.Builder mergeEndTime(com.google.protobuf.Timestamp value)
       If start time is empty and end time is not empty, then ignore these
       facet values before end time.
       
      .google.protobuf.Timestamp end_time = 3;
    • clearEndTime

       If start time is empty and end time is not empty, then ignore these
       facet values before end time.
       
      .google.protobuf.Timestamp end_time = 3;
    • getEndTimeBuilder

      public com.google.protobuf.Timestamp.Builder getEndTimeBuilder()
       If start time is empty and end time is not empty, then ignore these
       facet values before end time.
       
      .google.protobuf.Timestamp end_time = 3;
    • getEndTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder()
       If start time is empty and end time is not empty, then ignore these
       facet values before end time.
       
      .google.protobuf.Timestamp end_time = 3;
      Specified by:
      getEndTimeOrBuilder in interface CatalogAttribute.FacetConfig.IgnoredFacetValuesOrBuilder