Class Rule.Builder

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

public static final class Rule.Builder extends com.google.protobuf.GeneratedMessage.Builder<Rule.Builder> implements RuleOrBuilder
 A rule is a condition-action pair

 * A condition defines when a rule is to be triggered.
 * An action specifies what occurs on that trigger.
 Currently rules only work for [controls][google.cloud.retail.v2alpha.Control]
 with
 [SOLUTION_TYPE_SEARCH][google.cloud.retail.v2alpha.SolutionType.SOLUTION_TYPE_SEARCH].
 
Protobuf type google.cloud.retail.v2alpha.Rule
  • 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<Rule.Builder>
    • clear

      public Rule.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<Rule.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<Rule.Builder>
    • getDefaultInstanceForType

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

      public Rule build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

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

      public Rule.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<Rule.Builder>
    • mergeFrom

      public Rule.Builder mergeFrom(Rule other)
    • isInitialized

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

      public Rule.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<Rule.Builder>
      Throws:
      IOException
    • getActionCase

      public Rule.ActionCase getActionCase()
      Specified by:
      getActionCase in interface RuleOrBuilder
    • clearAction

      public Rule.Builder clearAction()
    • hasBoostAction

      public boolean hasBoostAction()
       A boost action.
       
      .google.cloud.retail.v2alpha.Rule.BoostAction boost_action = 2;
      Specified by:
      hasBoostAction in interface RuleOrBuilder
      Returns:
      Whether the boostAction field is set.
    • getBoostAction

      public Rule.BoostAction getBoostAction()
       A boost action.
       
      .google.cloud.retail.v2alpha.Rule.BoostAction boost_action = 2;
      Specified by:
      getBoostAction in interface RuleOrBuilder
      Returns:
      The boostAction.
    • setBoostAction

      public Rule.Builder setBoostAction(Rule.BoostAction value)
       A boost action.
       
      .google.cloud.retail.v2alpha.Rule.BoostAction boost_action = 2;
    • setBoostAction

      public Rule.Builder setBoostAction(Rule.BoostAction.Builder builderForValue)
       A boost action.
       
      .google.cloud.retail.v2alpha.Rule.BoostAction boost_action = 2;
    • mergeBoostAction

      public Rule.Builder mergeBoostAction(Rule.BoostAction value)
       A boost action.
       
      .google.cloud.retail.v2alpha.Rule.BoostAction boost_action = 2;
    • clearBoostAction

      public Rule.Builder clearBoostAction()
       A boost action.
       
      .google.cloud.retail.v2alpha.Rule.BoostAction boost_action = 2;
    • getBoostActionBuilder

      public Rule.BoostAction.Builder getBoostActionBuilder()
       A boost action.
       
      .google.cloud.retail.v2alpha.Rule.BoostAction boost_action = 2;
    • getBoostActionOrBuilder

      public Rule.BoostActionOrBuilder getBoostActionOrBuilder()
       A boost action.
       
      .google.cloud.retail.v2alpha.Rule.BoostAction boost_action = 2;
      Specified by:
      getBoostActionOrBuilder in interface RuleOrBuilder
    • hasRedirectAction

      public boolean hasRedirectAction()
       Redirects a shopper to a specific page.
       
      .google.cloud.retail.v2alpha.Rule.RedirectAction redirect_action = 3;
      Specified by:
      hasRedirectAction in interface RuleOrBuilder
      Returns:
      Whether the redirectAction field is set.
    • getRedirectAction

      public Rule.RedirectAction getRedirectAction()
       Redirects a shopper to a specific page.
       
      .google.cloud.retail.v2alpha.Rule.RedirectAction redirect_action = 3;
      Specified by:
      getRedirectAction in interface RuleOrBuilder
      Returns:
      The redirectAction.
    • setRedirectAction

      public Rule.Builder setRedirectAction(Rule.RedirectAction value)
       Redirects a shopper to a specific page.
       
      .google.cloud.retail.v2alpha.Rule.RedirectAction redirect_action = 3;
    • setRedirectAction

      public Rule.Builder setRedirectAction(Rule.RedirectAction.Builder builderForValue)
       Redirects a shopper to a specific page.
       
      .google.cloud.retail.v2alpha.Rule.RedirectAction redirect_action = 3;
    • mergeRedirectAction

      public Rule.Builder mergeRedirectAction(Rule.RedirectAction value)
       Redirects a shopper to a specific page.
       
      .google.cloud.retail.v2alpha.Rule.RedirectAction redirect_action = 3;
    • clearRedirectAction

      public Rule.Builder clearRedirectAction()
       Redirects a shopper to a specific page.
       
      .google.cloud.retail.v2alpha.Rule.RedirectAction redirect_action = 3;
    • getRedirectActionBuilder

      public Rule.RedirectAction.Builder getRedirectActionBuilder()
       Redirects a shopper to a specific page.
       
      .google.cloud.retail.v2alpha.Rule.RedirectAction redirect_action = 3;
    • getRedirectActionOrBuilder

      public Rule.RedirectActionOrBuilder getRedirectActionOrBuilder()
       Redirects a shopper to a specific page.
       
      .google.cloud.retail.v2alpha.Rule.RedirectAction redirect_action = 3;
      Specified by:
      getRedirectActionOrBuilder in interface RuleOrBuilder
    • hasOnewaySynonymsAction

      public boolean hasOnewaySynonymsAction()
       Treats specific term as a synonym with a group of terms.
       Group of terms will not be treated as synonyms with the specific term.
       
      .google.cloud.retail.v2alpha.Rule.OnewaySynonymsAction oneway_synonyms_action = 6;
      Specified by:
      hasOnewaySynonymsAction in interface RuleOrBuilder
      Returns:
      Whether the onewaySynonymsAction field is set.
    • getOnewaySynonymsAction

      public Rule.OnewaySynonymsAction getOnewaySynonymsAction()
       Treats specific term as a synonym with a group of terms.
       Group of terms will not be treated as synonyms with the specific term.
       
      .google.cloud.retail.v2alpha.Rule.OnewaySynonymsAction oneway_synonyms_action = 6;
      Specified by:
      getOnewaySynonymsAction in interface RuleOrBuilder
      Returns:
      The onewaySynonymsAction.
    • setOnewaySynonymsAction

      public Rule.Builder setOnewaySynonymsAction(Rule.OnewaySynonymsAction value)
       Treats specific term as a synonym with a group of terms.
       Group of terms will not be treated as synonyms with the specific term.
       
      .google.cloud.retail.v2alpha.Rule.OnewaySynonymsAction oneway_synonyms_action = 6;
    • setOnewaySynonymsAction

      public Rule.Builder setOnewaySynonymsAction(Rule.OnewaySynonymsAction.Builder builderForValue)
       Treats specific term as a synonym with a group of terms.
       Group of terms will not be treated as synonyms with the specific term.
       
      .google.cloud.retail.v2alpha.Rule.OnewaySynonymsAction oneway_synonyms_action = 6;
    • mergeOnewaySynonymsAction

      public Rule.Builder mergeOnewaySynonymsAction(Rule.OnewaySynonymsAction value)
       Treats specific term as a synonym with a group of terms.
       Group of terms will not be treated as synonyms with the specific term.
       
      .google.cloud.retail.v2alpha.Rule.OnewaySynonymsAction oneway_synonyms_action = 6;
    • clearOnewaySynonymsAction

      public Rule.Builder clearOnewaySynonymsAction()
       Treats specific term as a synonym with a group of terms.
       Group of terms will not be treated as synonyms with the specific term.
       
      .google.cloud.retail.v2alpha.Rule.OnewaySynonymsAction oneway_synonyms_action = 6;
    • getOnewaySynonymsActionBuilder

      public Rule.OnewaySynonymsAction.Builder getOnewaySynonymsActionBuilder()
       Treats specific term as a synonym with a group of terms.
       Group of terms will not be treated as synonyms with the specific term.
       
      .google.cloud.retail.v2alpha.Rule.OnewaySynonymsAction oneway_synonyms_action = 6;
    • getOnewaySynonymsActionOrBuilder

      public Rule.OnewaySynonymsActionOrBuilder getOnewaySynonymsActionOrBuilder()
       Treats specific term as a synonym with a group of terms.
       Group of terms will not be treated as synonyms with the specific term.
       
      .google.cloud.retail.v2alpha.Rule.OnewaySynonymsAction oneway_synonyms_action = 6;
      Specified by:
      getOnewaySynonymsActionOrBuilder in interface RuleOrBuilder
    • hasDoNotAssociateAction

      public boolean hasDoNotAssociateAction()
       Prevents term from being associated with other terms.
       
      .google.cloud.retail.v2alpha.Rule.DoNotAssociateAction do_not_associate_action = 7;
      Specified by:
      hasDoNotAssociateAction in interface RuleOrBuilder
      Returns:
      Whether the doNotAssociateAction field is set.
    • getDoNotAssociateAction

      public Rule.DoNotAssociateAction getDoNotAssociateAction()
       Prevents term from being associated with other terms.
       
      .google.cloud.retail.v2alpha.Rule.DoNotAssociateAction do_not_associate_action = 7;
      Specified by:
      getDoNotAssociateAction in interface RuleOrBuilder
      Returns:
      The doNotAssociateAction.
    • setDoNotAssociateAction

      public Rule.Builder setDoNotAssociateAction(Rule.DoNotAssociateAction value)
       Prevents term from being associated with other terms.
       
      .google.cloud.retail.v2alpha.Rule.DoNotAssociateAction do_not_associate_action = 7;
    • setDoNotAssociateAction

      public Rule.Builder setDoNotAssociateAction(Rule.DoNotAssociateAction.Builder builderForValue)
       Prevents term from being associated with other terms.
       
      .google.cloud.retail.v2alpha.Rule.DoNotAssociateAction do_not_associate_action = 7;
    • mergeDoNotAssociateAction

      public Rule.Builder mergeDoNotAssociateAction(Rule.DoNotAssociateAction value)
       Prevents term from being associated with other terms.
       
      .google.cloud.retail.v2alpha.Rule.DoNotAssociateAction do_not_associate_action = 7;
    • clearDoNotAssociateAction

      public Rule.Builder clearDoNotAssociateAction()
       Prevents term from being associated with other terms.
       
      .google.cloud.retail.v2alpha.Rule.DoNotAssociateAction do_not_associate_action = 7;
    • getDoNotAssociateActionBuilder

      public Rule.DoNotAssociateAction.Builder getDoNotAssociateActionBuilder()
       Prevents term from being associated with other terms.
       
      .google.cloud.retail.v2alpha.Rule.DoNotAssociateAction do_not_associate_action = 7;
    • getDoNotAssociateActionOrBuilder

      public Rule.DoNotAssociateActionOrBuilder getDoNotAssociateActionOrBuilder()
       Prevents term from being associated with other terms.
       
      .google.cloud.retail.v2alpha.Rule.DoNotAssociateAction do_not_associate_action = 7;
      Specified by:
      getDoNotAssociateActionOrBuilder in interface RuleOrBuilder
    • hasReplacementAction

      public boolean hasReplacementAction()
       Replaces specific terms in the query.
       
      .google.cloud.retail.v2alpha.Rule.ReplacementAction replacement_action = 8;
      Specified by:
      hasReplacementAction in interface RuleOrBuilder
      Returns:
      Whether the replacementAction field is set.
    • getReplacementAction

      public Rule.ReplacementAction getReplacementAction()
       Replaces specific terms in the query.
       
      .google.cloud.retail.v2alpha.Rule.ReplacementAction replacement_action = 8;
      Specified by:
      getReplacementAction in interface RuleOrBuilder
      Returns:
      The replacementAction.
    • setReplacementAction

      public Rule.Builder setReplacementAction(Rule.ReplacementAction value)
       Replaces specific terms in the query.
       
      .google.cloud.retail.v2alpha.Rule.ReplacementAction replacement_action = 8;
    • setReplacementAction

      public Rule.Builder setReplacementAction(Rule.ReplacementAction.Builder builderForValue)
       Replaces specific terms in the query.
       
      .google.cloud.retail.v2alpha.Rule.ReplacementAction replacement_action = 8;
    • mergeReplacementAction

      public Rule.Builder mergeReplacementAction(Rule.ReplacementAction value)
       Replaces specific terms in the query.
       
      .google.cloud.retail.v2alpha.Rule.ReplacementAction replacement_action = 8;
    • clearReplacementAction

      public Rule.Builder clearReplacementAction()
       Replaces specific terms in the query.
       
      .google.cloud.retail.v2alpha.Rule.ReplacementAction replacement_action = 8;
    • getReplacementActionBuilder

      public Rule.ReplacementAction.Builder getReplacementActionBuilder()
       Replaces specific terms in the query.
       
      .google.cloud.retail.v2alpha.Rule.ReplacementAction replacement_action = 8;
    • getReplacementActionOrBuilder

      public Rule.ReplacementActionOrBuilder getReplacementActionOrBuilder()
       Replaces specific terms in the query.
       
      .google.cloud.retail.v2alpha.Rule.ReplacementAction replacement_action = 8;
      Specified by:
      getReplacementActionOrBuilder in interface RuleOrBuilder
    • hasIgnoreAction

      public boolean hasIgnoreAction()
       Ignores specific terms from query during search.
       
      .google.cloud.retail.v2alpha.Rule.IgnoreAction ignore_action = 9;
      Specified by:
      hasIgnoreAction in interface RuleOrBuilder
      Returns:
      Whether the ignoreAction field is set.
    • getIgnoreAction

      public Rule.IgnoreAction getIgnoreAction()
       Ignores specific terms from query during search.
       
      .google.cloud.retail.v2alpha.Rule.IgnoreAction ignore_action = 9;
      Specified by:
      getIgnoreAction in interface RuleOrBuilder
      Returns:
      The ignoreAction.
    • setIgnoreAction

      public Rule.Builder setIgnoreAction(Rule.IgnoreAction value)
       Ignores specific terms from query during search.
       
      .google.cloud.retail.v2alpha.Rule.IgnoreAction ignore_action = 9;
    • setIgnoreAction

      public Rule.Builder setIgnoreAction(Rule.IgnoreAction.Builder builderForValue)
       Ignores specific terms from query during search.
       
      .google.cloud.retail.v2alpha.Rule.IgnoreAction ignore_action = 9;
    • mergeIgnoreAction

      public Rule.Builder mergeIgnoreAction(Rule.IgnoreAction value)
       Ignores specific terms from query during search.
       
      .google.cloud.retail.v2alpha.Rule.IgnoreAction ignore_action = 9;
    • clearIgnoreAction

      public Rule.Builder clearIgnoreAction()
       Ignores specific terms from query during search.
       
      .google.cloud.retail.v2alpha.Rule.IgnoreAction ignore_action = 9;
    • getIgnoreActionBuilder

      public Rule.IgnoreAction.Builder getIgnoreActionBuilder()
       Ignores specific terms from query during search.
       
      .google.cloud.retail.v2alpha.Rule.IgnoreAction ignore_action = 9;
    • getIgnoreActionOrBuilder

      public Rule.IgnoreActionOrBuilder getIgnoreActionOrBuilder()
       Ignores specific terms from query during search.
       
      .google.cloud.retail.v2alpha.Rule.IgnoreAction ignore_action = 9;
      Specified by:
      getIgnoreActionOrBuilder in interface RuleOrBuilder
    • hasFilterAction

      public boolean hasFilterAction()
       Filters results.
       
      .google.cloud.retail.v2alpha.Rule.FilterAction filter_action = 10;
      Specified by:
      hasFilterAction in interface RuleOrBuilder
      Returns:
      Whether the filterAction field is set.
    • getFilterAction

      public Rule.FilterAction getFilterAction()
       Filters results.
       
      .google.cloud.retail.v2alpha.Rule.FilterAction filter_action = 10;
      Specified by:
      getFilterAction in interface RuleOrBuilder
      Returns:
      The filterAction.
    • setFilterAction

      public Rule.Builder setFilterAction(Rule.FilterAction value)
       Filters results.
       
      .google.cloud.retail.v2alpha.Rule.FilterAction filter_action = 10;
    • setFilterAction

      public Rule.Builder setFilterAction(Rule.FilterAction.Builder builderForValue)
       Filters results.
       
      .google.cloud.retail.v2alpha.Rule.FilterAction filter_action = 10;
    • mergeFilterAction

      public Rule.Builder mergeFilterAction(Rule.FilterAction value)
       Filters results.
       
      .google.cloud.retail.v2alpha.Rule.FilterAction filter_action = 10;
    • clearFilterAction

      public Rule.Builder clearFilterAction()
       Filters results.
       
      .google.cloud.retail.v2alpha.Rule.FilterAction filter_action = 10;
    • getFilterActionBuilder

      public Rule.FilterAction.Builder getFilterActionBuilder()
       Filters results.
       
      .google.cloud.retail.v2alpha.Rule.FilterAction filter_action = 10;
    • getFilterActionOrBuilder

      public Rule.FilterActionOrBuilder getFilterActionOrBuilder()
       Filters results.
       
      .google.cloud.retail.v2alpha.Rule.FilterAction filter_action = 10;
      Specified by:
      getFilterActionOrBuilder in interface RuleOrBuilder
    • hasTwowaySynonymsAction

      public boolean hasTwowaySynonymsAction()
       Treats a set of terms as synonyms of one another.
       
      .google.cloud.retail.v2alpha.Rule.TwowaySynonymsAction twoway_synonyms_action = 11;
      Specified by:
      hasTwowaySynonymsAction in interface RuleOrBuilder
      Returns:
      Whether the twowaySynonymsAction field is set.
    • getTwowaySynonymsAction

      public Rule.TwowaySynonymsAction getTwowaySynonymsAction()
       Treats a set of terms as synonyms of one another.
       
      .google.cloud.retail.v2alpha.Rule.TwowaySynonymsAction twoway_synonyms_action = 11;
      Specified by:
      getTwowaySynonymsAction in interface RuleOrBuilder
      Returns:
      The twowaySynonymsAction.
    • setTwowaySynonymsAction

      public Rule.Builder setTwowaySynonymsAction(Rule.TwowaySynonymsAction value)
       Treats a set of terms as synonyms of one another.
       
      .google.cloud.retail.v2alpha.Rule.TwowaySynonymsAction twoway_synonyms_action = 11;
    • setTwowaySynonymsAction

      public Rule.Builder setTwowaySynonymsAction(Rule.TwowaySynonymsAction.Builder builderForValue)
       Treats a set of terms as synonyms of one another.
       
      .google.cloud.retail.v2alpha.Rule.TwowaySynonymsAction twoway_synonyms_action = 11;
    • mergeTwowaySynonymsAction

      public Rule.Builder mergeTwowaySynonymsAction(Rule.TwowaySynonymsAction value)
       Treats a set of terms as synonyms of one another.
       
      .google.cloud.retail.v2alpha.Rule.TwowaySynonymsAction twoway_synonyms_action = 11;
    • clearTwowaySynonymsAction

      public Rule.Builder clearTwowaySynonymsAction()
       Treats a set of terms as synonyms of one another.
       
      .google.cloud.retail.v2alpha.Rule.TwowaySynonymsAction twoway_synonyms_action = 11;
    • getTwowaySynonymsActionBuilder

      public Rule.TwowaySynonymsAction.Builder getTwowaySynonymsActionBuilder()
       Treats a set of terms as synonyms of one another.
       
      .google.cloud.retail.v2alpha.Rule.TwowaySynonymsAction twoway_synonyms_action = 11;
    • getTwowaySynonymsActionOrBuilder

      public Rule.TwowaySynonymsActionOrBuilder getTwowaySynonymsActionOrBuilder()
       Treats a set of terms as synonyms of one another.
       
      .google.cloud.retail.v2alpha.Rule.TwowaySynonymsAction twoway_synonyms_action = 11;
      Specified by:
      getTwowaySynonymsActionOrBuilder in interface RuleOrBuilder
    • hasForceReturnFacetAction

      public boolean hasForceReturnFacetAction()
       Force returns an attribute as a facet in the request.
       
      .google.cloud.retail.v2alpha.Rule.ForceReturnFacetAction force_return_facet_action = 12;
      Specified by:
      hasForceReturnFacetAction in interface RuleOrBuilder
      Returns:
      Whether the forceReturnFacetAction field is set.
    • getForceReturnFacetAction

      public Rule.ForceReturnFacetAction getForceReturnFacetAction()
       Force returns an attribute as a facet in the request.
       
      .google.cloud.retail.v2alpha.Rule.ForceReturnFacetAction force_return_facet_action = 12;
      Specified by:
      getForceReturnFacetAction in interface RuleOrBuilder
      Returns:
      The forceReturnFacetAction.
    • setForceReturnFacetAction

      public Rule.Builder setForceReturnFacetAction(Rule.ForceReturnFacetAction value)
       Force returns an attribute as a facet in the request.
       
      .google.cloud.retail.v2alpha.Rule.ForceReturnFacetAction force_return_facet_action = 12;
    • setForceReturnFacetAction

      public Rule.Builder setForceReturnFacetAction(Rule.ForceReturnFacetAction.Builder builderForValue)
       Force returns an attribute as a facet in the request.
       
      .google.cloud.retail.v2alpha.Rule.ForceReturnFacetAction force_return_facet_action = 12;
    • mergeForceReturnFacetAction

      public Rule.Builder mergeForceReturnFacetAction(Rule.ForceReturnFacetAction value)
       Force returns an attribute as a facet in the request.
       
      .google.cloud.retail.v2alpha.Rule.ForceReturnFacetAction force_return_facet_action = 12;
    • clearForceReturnFacetAction

      public Rule.Builder clearForceReturnFacetAction()
       Force returns an attribute as a facet in the request.
       
      .google.cloud.retail.v2alpha.Rule.ForceReturnFacetAction force_return_facet_action = 12;
    • getForceReturnFacetActionBuilder

      public Rule.ForceReturnFacetAction.Builder getForceReturnFacetActionBuilder()
       Force returns an attribute as a facet in the request.
       
      .google.cloud.retail.v2alpha.Rule.ForceReturnFacetAction force_return_facet_action = 12;
    • getForceReturnFacetActionOrBuilder

      public Rule.ForceReturnFacetActionOrBuilder getForceReturnFacetActionOrBuilder()
       Force returns an attribute as a facet in the request.
       
      .google.cloud.retail.v2alpha.Rule.ForceReturnFacetAction force_return_facet_action = 12;
      Specified by:
      getForceReturnFacetActionOrBuilder in interface RuleOrBuilder
    • hasRemoveFacetAction

      public boolean hasRemoveFacetAction()
       Remove an attribute as a facet in the request (if present).
       
      .google.cloud.retail.v2alpha.Rule.RemoveFacetAction remove_facet_action = 13;
      Specified by:
      hasRemoveFacetAction in interface RuleOrBuilder
      Returns:
      Whether the removeFacetAction field is set.
    • getRemoveFacetAction

      public Rule.RemoveFacetAction getRemoveFacetAction()
       Remove an attribute as a facet in the request (if present).
       
      .google.cloud.retail.v2alpha.Rule.RemoveFacetAction remove_facet_action = 13;
      Specified by:
      getRemoveFacetAction in interface RuleOrBuilder
      Returns:
      The removeFacetAction.
    • setRemoveFacetAction

      public Rule.Builder setRemoveFacetAction(Rule.RemoveFacetAction value)
       Remove an attribute as a facet in the request (if present).
       
      .google.cloud.retail.v2alpha.Rule.RemoveFacetAction remove_facet_action = 13;
    • setRemoveFacetAction

      public Rule.Builder setRemoveFacetAction(Rule.RemoveFacetAction.Builder builderForValue)
       Remove an attribute as a facet in the request (if present).
       
      .google.cloud.retail.v2alpha.Rule.RemoveFacetAction remove_facet_action = 13;
    • mergeRemoveFacetAction

      public Rule.Builder mergeRemoveFacetAction(Rule.RemoveFacetAction value)
       Remove an attribute as a facet in the request (if present).
       
      .google.cloud.retail.v2alpha.Rule.RemoveFacetAction remove_facet_action = 13;
    • clearRemoveFacetAction

      public Rule.Builder clearRemoveFacetAction()
       Remove an attribute as a facet in the request (if present).
       
      .google.cloud.retail.v2alpha.Rule.RemoveFacetAction remove_facet_action = 13;
    • getRemoveFacetActionBuilder

      public Rule.RemoveFacetAction.Builder getRemoveFacetActionBuilder()
       Remove an attribute as a facet in the request (if present).
       
      .google.cloud.retail.v2alpha.Rule.RemoveFacetAction remove_facet_action = 13;
    • getRemoveFacetActionOrBuilder

      public Rule.RemoveFacetActionOrBuilder getRemoveFacetActionOrBuilder()
       Remove an attribute as a facet in the request (if present).
       
      .google.cloud.retail.v2alpha.Rule.RemoveFacetAction remove_facet_action = 13;
      Specified by:
      getRemoveFacetActionOrBuilder in interface RuleOrBuilder
    • hasPinAction

      public boolean hasPinAction()
       Pins one or more specified products to a specific position in the
       results.
       
      .google.cloud.retail.v2alpha.Rule.PinAction pin_action = 14;
      Specified by:
      hasPinAction in interface RuleOrBuilder
      Returns:
      Whether the pinAction field is set.
    • getPinAction

      public Rule.PinAction getPinAction()
       Pins one or more specified products to a specific position in the
       results.
       
      .google.cloud.retail.v2alpha.Rule.PinAction pin_action = 14;
      Specified by:
      getPinAction in interface RuleOrBuilder
      Returns:
      The pinAction.
    • setPinAction

      public Rule.Builder setPinAction(Rule.PinAction value)
       Pins one or more specified products to a specific position in the
       results.
       
      .google.cloud.retail.v2alpha.Rule.PinAction pin_action = 14;
    • setPinAction

      public Rule.Builder setPinAction(Rule.PinAction.Builder builderForValue)
       Pins one or more specified products to a specific position in the
       results.
       
      .google.cloud.retail.v2alpha.Rule.PinAction pin_action = 14;
    • mergePinAction

      public Rule.Builder mergePinAction(Rule.PinAction value)
       Pins one or more specified products to a specific position in the
       results.
       
      .google.cloud.retail.v2alpha.Rule.PinAction pin_action = 14;
    • clearPinAction

      public Rule.Builder clearPinAction()
       Pins one or more specified products to a specific position in the
       results.
       
      .google.cloud.retail.v2alpha.Rule.PinAction pin_action = 14;
    • getPinActionBuilder

      public Rule.PinAction.Builder getPinActionBuilder()
       Pins one or more specified products to a specific position in the
       results.
       
      .google.cloud.retail.v2alpha.Rule.PinAction pin_action = 14;
    • getPinActionOrBuilder

      public Rule.PinActionOrBuilder getPinActionOrBuilder()
       Pins one or more specified products to a specific position in the
       results.
       
      .google.cloud.retail.v2alpha.Rule.PinAction pin_action = 14;
      Specified by:
      getPinActionOrBuilder in interface RuleOrBuilder
    • hasCondition

      public boolean hasCondition()
       Required. The condition that triggers the rule.
       If the condition is empty, the rule will always apply.
       
      .google.cloud.retail.v2alpha.Condition condition = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      hasCondition in interface RuleOrBuilder
      Returns:
      Whether the condition field is set.
    • getCondition

      public Condition getCondition()
       Required. The condition that triggers the rule.
       If the condition is empty, the rule will always apply.
       
      .google.cloud.retail.v2alpha.Condition condition = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getCondition in interface RuleOrBuilder
      Returns:
      The condition.
    • setCondition

      public Rule.Builder setCondition(Condition value)
       Required. The condition that triggers the rule.
       If the condition is empty, the rule will always apply.
       
      .google.cloud.retail.v2alpha.Condition condition = 1 [(.google.api.field_behavior) = REQUIRED];
    • setCondition

      public Rule.Builder setCondition(Condition.Builder builderForValue)
       Required. The condition that triggers the rule.
       If the condition is empty, the rule will always apply.
       
      .google.cloud.retail.v2alpha.Condition condition = 1 [(.google.api.field_behavior) = REQUIRED];
    • mergeCondition

      public Rule.Builder mergeCondition(Condition value)
       Required. The condition that triggers the rule.
       If the condition is empty, the rule will always apply.
       
      .google.cloud.retail.v2alpha.Condition condition = 1 [(.google.api.field_behavior) = REQUIRED];
    • clearCondition

      public Rule.Builder clearCondition()
       Required. The condition that triggers the rule.
       If the condition is empty, the rule will always apply.
       
      .google.cloud.retail.v2alpha.Condition condition = 1 [(.google.api.field_behavior) = REQUIRED];
    • getConditionBuilder

      public Condition.Builder getConditionBuilder()
       Required. The condition that triggers the rule.
       If the condition is empty, the rule will always apply.
       
      .google.cloud.retail.v2alpha.Condition condition = 1 [(.google.api.field_behavior) = REQUIRED];
    • getConditionOrBuilder

      public ConditionOrBuilder getConditionOrBuilder()
       Required. The condition that triggers the rule.
       If the condition is empty, the rule will always apply.
       
      .google.cloud.retail.v2alpha.Condition condition = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getConditionOrBuilder in interface RuleOrBuilder