Class Control.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Control.Builder>
com.google.cloud.discoveryengine.v1beta.Control.Builder
All Implemented Interfaces:
ControlOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
Control

public static final class Control.Builder extends com.google.protobuf.GeneratedMessage.Builder<Control.Builder> implements ControlOrBuilder
 Defines a conditioned behavior to employ during serving.
 Must be attached to a
 [ServingConfig][google.cloud.discoveryengine.v1beta.ServingConfig] to be
 considered at serving time. Permitted actions dependent on `SolutionType`.
 
Protobuf type google.cloud.discoveryengine.v1beta.Control
  • 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<Control.Builder>
    • clear

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

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

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

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

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

      public Control.Builder mergeFrom(Control other)
    • isInitialized

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

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

      public Control.ActionCase getActionCase()
      Specified by:
      getActionCase in interface ControlOrBuilder
    • clearAction

      public Control.Builder clearAction()
    • hasBoostAction

      public boolean hasBoostAction()
       Defines a boost-type control
       
      .google.cloud.discoveryengine.v1beta.Control.BoostAction boost_action = 6;
      Specified by:
      hasBoostAction in interface ControlOrBuilder
      Returns:
      Whether the boostAction field is set.
    • getBoostAction

      public Control.BoostAction getBoostAction()
       Defines a boost-type control
       
      .google.cloud.discoveryengine.v1beta.Control.BoostAction boost_action = 6;
      Specified by:
      getBoostAction in interface ControlOrBuilder
      Returns:
      The boostAction.
    • setBoostAction

      public Control.Builder setBoostAction(Control.BoostAction value)
       Defines a boost-type control
       
      .google.cloud.discoveryengine.v1beta.Control.BoostAction boost_action = 6;
    • setBoostAction

      public Control.Builder setBoostAction(Control.BoostAction.Builder builderForValue)
       Defines a boost-type control
       
      .google.cloud.discoveryengine.v1beta.Control.BoostAction boost_action = 6;
    • mergeBoostAction

      public Control.Builder mergeBoostAction(Control.BoostAction value)
       Defines a boost-type control
       
      .google.cloud.discoveryengine.v1beta.Control.BoostAction boost_action = 6;
    • clearBoostAction

      public Control.Builder clearBoostAction()
       Defines a boost-type control
       
      .google.cloud.discoveryengine.v1beta.Control.BoostAction boost_action = 6;
    • getBoostActionBuilder

      public Control.BoostAction.Builder getBoostActionBuilder()
       Defines a boost-type control
       
      .google.cloud.discoveryengine.v1beta.Control.BoostAction boost_action = 6;
    • getBoostActionOrBuilder

      public Control.BoostActionOrBuilder getBoostActionOrBuilder()
       Defines a boost-type control
       
      .google.cloud.discoveryengine.v1beta.Control.BoostAction boost_action = 6;
      Specified by:
      getBoostActionOrBuilder in interface ControlOrBuilder
    • hasFilterAction

      public boolean hasFilterAction()
       Defines a filter-type control
       Currently not supported by Recommendation
       
      .google.cloud.discoveryengine.v1beta.Control.FilterAction filter_action = 7;
      Specified by:
      hasFilterAction in interface ControlOrBuilder
      Returns:
      Whether the filterAction field is set.
    • getFilterAction

      public Control.FilterAction getFilterAction()
       Defines a filter-type control
       Currently not supported by Recommendation
       
      .google.cloud.discoveryengine.v1beta.Control.FilterAction filter_action = 7;
      Specified by:
      getFilterAction in interface ControlOrBuilder
      Returns:
      The filterAction.
    • setFilterAction

      public Control.Builder setFilterAction(Control.FilterAction value)
       Defines a filter-type control
       Currently not supported by Recommendation
       
      .google.cloud.discoveryengine.v1beta.Control.FilterAction filter_action = 7;
    • setFilterAction

      public Control.Builder setFilterAction(Control.FilterAction.Builder builderForValue)
       Defines a filter-type control
       Currently not supported by Recommendation
       
      .google.cloud.discoveryengine.v1beta.Control.FilterAction filter_action = 7;
    • mergeFilterAction

      public Control.Builder mergeFilterAction(Control.FilterAction value)
       Defines a filter-type control
       Currently not supported by Recommendation
       
      .google.cloud.discoveryengine.v1beta.Control.FilterAction filter_action = 7;
    • clearFilterAction

      public Control.Builder clearFilterAction()
       Defines a filter-type control
       Currently not supported by Recommendation
       
      .google.cloud.discoveryengine.v1beta.Control.FilterAction filter_action = 7;
    • getFilterActionBuilder

      public Control.FilterAction.Builder getFilterActionBuilder()
       Defines a filter-type control
       Currently not supported by Recommendation
       
      .google.cloud.discoveryengine.v1beta.Control.FilterAction filter_action = 7;
    • getFilterActionOrBuilder

      public Control.FilterActionOrBuilder getFilterActionOrBuilder()
       Defines a filter-type control
       Currently not supported by Recommendation
       
      .google.cloud.discoveryengine.v1beta.Control.FilterAction filter_action = 7;
      Specified by:
      getFilterActionOrBuilder in interface ControlOrBuilder
    • hasRedirectAction

      public boolean hasRedirectAction()
       Defines a redirect-type control.
       
      .google.cloud.discoveryengine.v1beta.Control.RedirectAction redirect_action = 9;
      Specified by:
      hasRedirectAction in interface ControlOrBuilder
      Returns:
      Whether the redirectAction field is set.
    • getRedirectAction

      public Control.RedirectAction getRedirectAction()
       Defines a redirect-type control.
       
      .google.cloud.discoveryengine.v1beta.Control.RedirectAction redirect_action = 9;
      Specified by:
      getRedirectAction in interface ControlOrBuilder
      Returns:
      The redirectAction.
    • setRedirectAction

      public Control.Builder setRedirectAction(Control.RedirectAction value)
       Defines a redirect-type control.
       
      .google.cloud.discoveryengine.v1beta.Control.RedirectAction redirect_action = 9;
    • setRedirectAction

      public Control.Builder setRedirectAction(Control.RedirectAction.Builder builderForValue)
       Defines a redirect-type control.
       
      .google.cloud.discoveryengine.v1beta.Control.RedirectAction redirect_action = 9;
    • mergeRedirectAction

      public Control.Builder mergeRedirectAction(Control.RedirectAction value)
       Defines a redirect-type control.
       
      .google.cloud.discoveryengine.v1beta.Control.RedirectAction redirect_action = 9;
    • clearRedirectAction

      public Control.Builder clearRedirectAction()
       Defines a redirect-type control.
       
      .google.cloud.discoveryengine.v1beta.Control.RedirectAction redirect_action = 9;
    • getRedirectActionBuilder

      public Control.RedirectAction.Builder getRedirectActionBuilder()
       Defines a redirect-type control.
       
      .google.cloud.discoveryengine.v1beta.Control.RedirectAction redirect_action = 9;
    • getRedirectActionOrBuilder

      public Control.RedirectActionOrBuilder getRedirectActionOrBuilder()
       Defines a redirect-type control.
       
      .google.cloud.discoveryengine.v1beta.Control.RedirectAction redirect_action = 9;
      Specified by:
      getRedirectActionOrBuilder in interface ControlOrBuilder
    • hasSynonymsAction

      public boolean hasSynonymsAction()
       Treats a group of terms as synonyms of one another.
       
      .google.cloud.discoveryengine.v1beta.Control.SynonymsAction synonyms_action = 10;
      Specified by:
      hasSynonymsAction in interface ControlOrBuilder
      Returns:
      Whether the synonymsAction field is set.
    • getSynonymsAction

      public Control.SynonymsAction getSynonymsAction()
       Treats a group of terms as synonyms of one another.
       
      .google.cloud.discoveryengine.v1beta.Control.SynonymsAction synonyms_action = 10;
      Specified by:
      getSynonymsAction in interface ControlOrBuilder
      Returns:
      The synonymsAction.
    • setSynonymsAction

      public Control.Builder setSynonymsAction(Control.SynonymsAction value)
       Treats a group of terms as synonyms of one another.
       
      .google.cloud.discoveryengine.v1beta.Control.SynonymsAction synonyms_action = 10;
    • setSynonymsAction

      public Control.Builder setSynonymsAction(Control.SynonymsAction.Builder builderForValue)
       Treats a group of terms as synonyms of one another.
       
      .google.cloud.discoveryengine.v1beta.Control.SynonymsAction synonyms_action = 10;
    • mergeSynonymsAction

      public Control.Builder mergeSynonymsAction(Control.SynonymsAction value)
       Treats a group of terms as synonyms of one another.
       
      .google.cloud.discoveryengine.v1beta.Control.SynonymsAction synonyms_action = 10;
    • clearSynonymsAction

      public Control.Builder clearSynonymsAction()
       Treats a group of terms as synonyms of one another.
       
      .google.cloud.discoveryengine.v1beta.Control.SynonymsAction synonyms_action = 10;
    • getSynonymsActionBuilder

      public Control.SynonymsAction.Builder getSynonymsActionBuilder()
       Treats a group of terms as synonyms of one another.
       
      .google.cloud.discoveryengine.v1beta.Control.SynonymsAction synonyms_action = 10;
    • getSynonymsActionOrBuilder

      public Control.SynonymsActionOrBuilder getSynonymsActionOrBuilder()
       Treats a group of terms as synonyms of one another.
       
      .google.cloud.discoveryengine.v1beta.Control.SynonymsAction synonyms_action = 10;
      Specified by:
      getSynonymsActionOrBuilder in interface ControlOrBuilder
    • getName

      public String getName()
       Immutable. Fully qualified name
       `projects/*/locations/global/dataStore/*/controls/*`
       
      string name = 1 [(.google.api.field_behavior) = IMMUTABLE];
      Specified by:
      getName in interface ControlOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       Immutable. Fully qualified name
       `projects/*/locations/global/dataStore/*/controls/*`
       
      string name = 1 [(.google.api.field_behavior) = IMMUTABLE];
      Specified by:
      getNameBytes in interface ControlOrBuilder
      Returns:
      The bytes for name.
    • setName

      public Control.Builder setName(String value)
       Immutable. Fully qualified name
       `projects/*/locations/global/dataStore/*/controls/*`
       
      string name = 1 [(.google.api.field_behavior) = IMMUTABLE];
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

      public Control.Builder clearName()
       Immutable. Fully qualified name
       `projects/*/locations/global/dataStore/*/controls/*`
       
      string name = 1 [(.google.api.field_behavior) = IMMUTABLE];
      Returns:
      This builder for chaining.
    • setNameBytes

      public Control.Builder setNameBytes(com.google.protobuf.ByteString value)
       Immutable. Fully qualified name
       `projects/*/locations/global/dataStore/*/controls/*`
       
      string name = 1 [(.google.api.field_behavior) = IMMUTABLE];
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • getDisplayName

      public String getDisplayName()
       Required. Human readable name. The identifier used in UI views.
      
       Must be UTF-8 encoded string. Length limit is 128 characters.
       Otherwise an INVALID ARGUMENT error is thrown.
       
      string display_name = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getDisplayName in interface ControlOrBuilder
      Returns:
      The displayName.
    • getDisplayNameBytes

      public com.google.protobuf.ByteString getDisplayNameBytes()
       Required. Human readable name. The identifier used in UI views.
      
       Must be UTF-8 encoded string. Length limit is 128 characters.
       Otherwise an INVALID ARGUMENT error is thrown.
       
      string display_name = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getDisplayNameBytes in interface ControlOrBuilder
      Returns:
      The bytes for displayName.
    • setDisplayName

      public Control.Builder setDisplayName(String value)
       Required. Human readable name. The identifier used in UI views.
      
       Must be UTF-8 encoded string. Length limit is 128 characters.
       Otherwise an INVALID ARGUMENT error is thrown.
       
      string display_name = 2 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The displayName to set.
      Returns:
      This builder for chaining.
    • clearDisplayName

      public Control.Builder clearDisplayName()
       Required. Human readable name. The identifier used in UI views.
      
       Must be UTF-8 encoded string. Length limit is 128 characters.
       Otherwise an INVALID ARGUMENT error is thrown.
       
      string display_name = 2 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • setDisplayNameBytes

      public Control.Builder setDisplayNameBytes(com.google.protobuf.ByteString value)
       Required. Human readable name. The identifier used in UI views.
      
       Must be UTF-8 encoded string. Length limit is 128 characters.
       Otherwise an INVALID ARGUMENT error is thrown.
       
      string display_name = 2 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes for displayName to set.
      Returns:
      This builder for chaining.
    • getAssociatedServingConfigIdsList

      public com.google.protobuf.ProtocolStringList getAssociatedServingConfigIdsList()
       Output only. List of all
       [ServingConfig][google.cloud.discoveryengine.v1beta.ServingConfig] IDs this
       control is attached to. May take up to 10 minutes to update after changes.
       
      repeated string associated_serving_config_ids = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getAssociatedServingConfigIdsList in interface ControlOrBuilder
      Returns:
      A list containing the associatedServingConfigIds.
    • getAssociatedServingConfigIdsCount

      public int getAssociatedServingConfigIdsCount()
       Output only. List of all
       [ServingConfig][google.cloud.discoveryengine.v1beta.ServingConfig] IDs this
       control is attached to. May take up to 10 minutes to update after changes.
       
      repeated string associated_serving_config_ids = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getAssociatedServingConfigIdsCount in interface ControlOrBuilder
      Returns:
      The count of associatedServingConfigIds.
    • getAssociatedServingConfigIds

      public String getAssociatedServingConfigIds(int index)
       Output only. List of all
       [ServingConfig][google.cloud.discoveryengine.v1beta.ServingConfig] IDs this
       control is attached to. May take up to 10 minutes to update after changes.
       
      repeated string associated_serving_config_ids = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getAssociatedServingConfigIds in interface ControlOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The associatedServingConfigIds at the given index.
    • getAssociatedServingConfigIdsBytes

      public com.google.protobuf.ByteString getAssociatedServingConfigIdsBytes(int index)
       Output only. List of all
       [ServingConfig][google.cloud.discoveryengine.v1beta.ServingConfig] IDs this
       control is attached to. May take up to 10 minutes to update after changes.
       
      repeated string associated_serving_config_ids = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getAssociatedServingConfigIdsBytes in interface ControlOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the associatedServingConfigIds at the given index.
    • setAssociatedServingConfigIds

      public Control.Builder setAssociatedServingConfigIds(int index, String value)
       Output only. List of all
       [ServingConfig][google.cloud.discoveryengine.v1beta.ServingConfig] IDs this
       control is attached to. May take up to 10 minutes to update after changes.
       
      repeated string associated_serving_config_ids = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      index - The index to set the value at.
      value - The associatedServingConfigIds to set.
      Returns:
      This builder for chaining.
    • addAssociatedServingConfigIds

      public Control.Builder addAssociatedServingConfigIds(String value)
       Output only. List of all
       [ServingConfig][google.cloud.discoveryengine.v1beta.ServingConfig] IDs this
       control is attached to. May take up to 10 minutes to update after changes.
       
      repeated string associated_serving_config_ids = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The associatedServingConfigIds to add.
      Returns:
      This builder for chaining.
    • addAllAssociatedServingConfigIds

      public Control.Builder addAllAssociatedServingConfigIds(Iterable<String> values)
       Output only. List of all
       [ServingConfig][google.cloud.discoveryengine.v1beta.ServingConfig] IDs this
       control is attached to. May take up to 10 minutes to update after changes.
       
      repeated string associated_serving_config_ids = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      values - The associatedServingConfigIds to add.
      Returns:
      This builder for chaining.
    • clearAssociatedServingConfigIds

      public Control.Builder clearAssociatedServingConfigIds()
       Output only. List of all
       [ServingConfig][google.cloud.discoveryengine.v1beta.ServingConfig] IDs this
       control is attached to. May take up to 10 minutes to update after changes.
       
      repeated string associated_serving_config_ids = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • addAssociatedServingConfigIdsBytes

      public Control.Builder addAssociatedServingConfigIdsBytes(com.google.protobuf.ByteString value)
       Output only. List of all
       [ServingConfig][google.cloud.discoveryengine.v1beta.ServingConfig] IDs this
       control is attached to. May take up to 10 minutes to update after changes.
       
      repeated string associated_serving_config_ids = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The bytes of the associatedServingConfigIds to add.
      Returns:
      This builder for chaining.
    • getSolutionTypeValue

      public int getSolutionTypeValue()
       Required. Immutable. What solution the control belongs to.
      
       Must be compatible with vertical of resource.
       Otherwise an INVALID ARGUMENT error is thrown.
       
      .google.cloud.discoveryengine.v1beta.SolutionType solution_type = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
      Specified by:
      getSolutionTypeValue in interface ControlOrBuilder
      Returns:
      The enum numeric value on the wire for solutionType.
    • setSolutionTypeValue

      public Control.Builder setSolutionTypeValue(int value)
       Required. Immutable. What solution the control belongs to.
      
       Must be compatible with vertical of resource.
       Otherwise an INVALID ARGUMENT error is thrown.
       
      .google.cloud.discoveryengine.v1beta.SolutionType solution_type = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
      Parameters:
      value - The enum numeric value on the wire for solutionType to set.
      Returns:
      This builder for chaining.
    • getSolutionType

      public SolutionType getSolutionType()
       Required. Immutable. What solution the control belongs to.
      
       Must be compatible with vertical of resource.
       Otherwise an INVALID ARGUMENT error is thrown.
       
      .google.cloud.discoveryengine.v1beta.SolutionType solution_type = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
      Specified by:
      getSolutionType in interface ControlOrBuilder
      Returns:
      The solutionType.
    • setSolutionType

      public Control.Builder setSolutionType(SolutionType value)
       Required. Immutable. What solution the control belongs to.
      
       Must be compatible with vertical of resource.
       Otherwise an INVALID ARGUMENT error is thrown.
       
      .google.cloud.discoveryengine.v1beta.SolutionType solution_type = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
      Parameters:
      value - The solutionType to set.
      Returns:
      This builder for chaining.
    • clearSolutionType

      public Control.Builder clearSolutionType()
       Required. Immutable. What solution the control belongs to.
      
       Must be compatible with vertical of resource.
       Otherwise an INVALID ARGUMENT error is thrown.
       
      .google.cloud.discoveryengine.v1beta.SolutionType solution_type = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
      Returns:
      This builder for chaining.
    • getUseCasesList

      public List<SearchUseCase> getUseCasesList()
       Specifies the use case for the control.
       Affects what condition fields can be set.
       Only applies to
       [SOLUTION_TYPE_SEARCH][google.cloud.discoveryengine.v1beta.SolutionType.SOLUTION_TYPE_SEARCH].
       Currently only allow one use case per control.
       Must be set when solution_type is
       [SolutionType.SOLUTION_TYPE_SEARCH][google.cloud.discoveryengine.v1beta.SolutionType.SOLUTION_TYPE_SEARCH].
       
      repeated .google.cloud.discoveryengine.v1beta.SearchUseCase use_cases = 8;
      Specified by:
      getUseCasesList in interface ControlOrBuilder
      Returns:
      A list containing the useCases.
    • getUseCasesCount

      public int getUseCasesCount()
       Specifies the use case for the control.
       Affects what condition fields can be set.
       Only applies to
       [SOLUTION_TYPE_SEARCH][google.cloud.discoveryengine.v1beta.SolutionType.SOLUTION_TYPE_SEARCH].
       Currently only allow one use case per control.
       Must be set when solution_type is
       [SolutionType.SOLUTION_TYPE_SEARCH][google.cloud.discoveryengine.v1beta.SolutionType.SOLUTION_TYPE_SEARCH].
       
      repeated .google.cloud.discoveryengine.v1beta.SearchUseCase use_cases = 8;
      Specified by:
      getUseCasesCount in interface ControlOrBuilder
      Returns:
      The count of useCases.
    • getUseCases

      public SearchUseCase getUseCases(int index)
       Specifies the use case for the control.
       Affects what condition fields can be set.
       Only applies to
       [SOLUTION_TYPE_SEARCH][google.cloud.discoveryengine.v1beta.SolutionType.SOLUTION_TYPE_SEARCH].
       Currently only allow one use case per control.
       Must be set when solution_type is
       [SolutionType.SOLUTION_TYPE_SEARCH][google.cloud.discoveryengine.v1beta.SolutionType.SOLUTION_TYPE_SEARCH].
       
      repeated .google.cloud.discoveryengine.v1beta.SearchUseCase use_cases = 8;
      Specified by:
      getUseCases in interface ControlOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The useCases at the given index.
    • setUseCases

      public Control.Builder setUseCases(int index, SearchUseCase value)
       Specifies the use case for the control.
       Affects what condition fields can be set.
       Only applies to
       [SOLUTION_TYPE_SEARCH][google.cloud.discoveryengine.v1beta.SolutionType.SOLUTION_TYPE_SEARCH].
       Currently only allow one use case per control.
       Must be set when solution_type is
       [SolutionType.SOLUTION_TYPE_SEARCH][google.cloud.discoveryengine.v1beta.SolutionType.SOLUTION_TYPE_SEARCH].
       
      repeated .google.cloud.discoveryengine.v1beta.SearchUseCase use_cases = 8;
      Parameters:
      index - The index to set the value at.
      value - The useCases to set.
      Returns:
      This builder for chaining.
    • addUseCases

      public Control.Builder addUseCases(SearchUseCase value)
       Specifies the use case for the control.
       Affects what condition fields can be set.
       Only applies to
       [SOLUTION_TYPE_SEARCH][google.cloud.discoveryengine.v1beta.SolutionType.SOLUTION_TYPE_SEARCH].
       Currently only allow one use case per control.
       Must be set when solution_type is
       [SolutionType.SOLUTION_TYPE_SEARCH][google.cloud.discoveryengine.v1beta.SolutionType.SOLUTION_TYPE_SEARCH].
       
      repeated .google.cloud.discoveryengine.v1beta.SearchUseCase use_cases = 8;
      Parameters:
      value - The useCases to add.
      Returns:
      This builder for chaining.
    • addAllUseCases

      public Control.Builder addAllUseCases(Iterable<? extends SearchUseCase> values)
       Specifies the use case for the control.
       Affects what condition fields can be set.
       Only applies to
       [SOLUTION_TYPE_SEARCH][google.cloud.discoveryengine.v1beta.SolutionType.SOLUTION_TYPE_SEARCH].
       Currently only allow one use case per control.
       Must be set when solution_type is
       [SolutionType.SOLUTION_TYPE_SEARCH][google.cloud.discoveryengine.v1beta.SolutionType.SOLUTION_TYPE_SEARCH].
       
      repeated .google.cloud.discoveryengine.v1beta.SearchUseCase use_cases = 8;
      Parameters:
      values - The useCases to add.
      Returns:
      This builder for chaining.
    • clearUseCases

      public Control.Builder clearUseCases()
       Specifies the use case for the control.
       Affects what condition fields can be set.
       Only applies to
       [SOLUTION_TYPE_SEARCH][google.cloud.discoveryengine.v1beta.SolutionType.SOLUTION_TYPE_SEARCH].
       Currently only allow one use case per control.
       Must be set when solution_type is
       [SolutionType.SOLUTION_TYPE_SEARCH][google.cloud.discoveryengine.v1beta.SolutionType.SOLUTION_TYPE_SEARCH].
       
      repeated .google.cloud.discoveryengine.v1beta.SearchUseCase use_cases = 8;
      Returns:
      This builder for chaining.
    • getUseCasesValueList

      public List<Integer> getUseCasesValueList()
       Specifies the use case for the control.
       Affects what condition fields can be set.
       Only applies to
       [SOLUTION_TYPE_SEARCH][google.cloud.discoveryengine.v1beta.SolutionType.SOLUTION_TYPE_SEARCH].
       Currently only allow one use case per control.
       Must be set when solution_type is
       [SolutionType.SOLUTION_TYPE_SEARCH][google.cloud.discoveryengine.v1beta.SolutionType.SOLUTION_TYPE_SEARCH].
       
      repeated .google.cloud.discoveryengine.v1beta.SearchUseCase use_cases = 8;
      Specified by:
      getUseCasesValueList in interface ControlOrBuilder
      Returns:
      A list containing the enum numeric values on the wire for useCases.
    • getUseCasesValue

      public int getUseCasesValue(int index)
       Specifies the use case for the control.
       Affects what condition fields can be set.
       Only applies to
       [SOLUTION_TYPE_SEARCH][google.cloud.discoveryengine.v1beta.SolutionType.SOLUTION_TYPE_SEARCH].
       Currently only allow one use case per control.
       Must be set when solution_type is
       [SolutionType.SOLUTION_TYPE_SEARCH][google.cloud.discoveryengine.v1beta.SolutionType.SOLUTION_TYPE_SEARCH].
       
      repeated .google.cloud.discoveryengine.v1beta.SearchUseCase use_cases = 8;
      Specified by:
      getUseCasesValue in interface ControlOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The enum numeric value on the wire of useCases at the given index.
    • setUseCasesValue

      public Control.Builder setUseCasesValue(int index, int value)
       Specifies the use case for the control.
       Affects what condition fields can be set.
       Only applies to
       [SOLUTION_TYPE_SEARCH][google.cloud.discoveryengine.v1beta.SolutionType.SOLUTION_TYPE_SEARCH].
       Currently only allow one use case per control.
       Must be set when solution_type is
       [SolutionType.SOLUTION_TYPE_SEARCH][google.cloud.discoveryengine.v1beta.SolutionType.SOLUTION_TYPE_SEARCH].
       
      repeated .google.cloud.discoveryengine.v1beta.SearchUseCase use_cases = 8;
      Parameters:
      index - The index to set the value at.
      value - The enum numeric value on the wire for useCases to set.
      Returns:
      This builder for chaining.
    • addUseCasesValue

      public Control.Builder addUseCasesValue(int value)
       Specifies the use case for the control.
       Affects what condition fields can be set.
       Only applies to
       [SOLUTION_TYPE_SEARCH][google.cloud.discoveryengine.v1beta.SolutionType.SOLUTION_TYPE_SEARCH].
       Currently only allow one use case per control.
       Must be set when solution_type is
       [SolutionType.SOLUTION_TYPE_SEARCH][google.cloud.discoveryengine.v1beta.SolutionType.SOLUTION_TYPE_SEARCH].
       
      repeated .google.cloud.discoveryengine.v1beta.SearchUseCase use_cases = 8;
      Parameters:
      value - The enum numeric value on the wire for useCases to add.
      Returns:
      This builder for chaining.
    • addAllUseCasesValue

      public Control.Builder addAllUseCasesValue(Iterable<Integer> values)
       Specifies the use case for the control.
       Affects what condition fields can be set.
       Only applies to
       [SOLUTION_TYPE_SEARCH][google.cloud.discoveryengine.v1beta.SolutionType.SOLUTION_TYPE_SEARCH].
       Currently only allow one use case per control.
       Must be set when solution_type is
       [SolutionType.SOLUTION_TYPE_SEARCH][google.cloud.discoveryengine.v1beta.SolutionType.SOLUTION_TYPE_SEARCH].
       
      repeated .google.cloud.discoveryengine.v1beta.SearchUseCase use_cases = 8;
      Parameters:
      values - The enum numeric values on the wire for useCases to add.
      Returns:
      This builder for chaining.
    • getConditionsList

      public List<Condition> getConditionsList()
       Determines when the associated action will trigger.
      
       Omit to always apply the action.
       Currently only a single condition may be specified.
       Otherwise an INVALID ARGUMENT error is thrown.
       
      repeated .google.cloud.discoveryengine.v1beta.Condition conditions = 5;
      Specified by:
      getConditionsList in interface ControlOrBuilder
    • getConditionsCount

      public int getConditionsCount()
       Determines when the associated action will trigger.
      
       Omit to always apply the action.
       Currently only a single condition may be specified.
       Otherwise an INVALID ARGUMENT error is thrown.
       
      repeated .google.cloud.discoveryengine.v1beta.Condition conditions = 5;
      Specified by:
      getConditionsCount in interface ControlOrBuilder
    • getConditions

      public Condition getConditions(int index)
       Determines when the associated action will trigger.
      
       Omit to always apply the action.
       Currently only a single condition may be specified.
       Otherwise an INVALID ARGUMENT error is thrown.
       
      repeated .google.cloud.discoveryengine.v1beta.Condition conditions = 5;
      Specified by:
      getConditions in interface ControlOrBuilder
    • setConditions

      public Control.Builder setConditions(int index, Condition value)
       Determines when the associated action will trigger.
      
       Omit to always apply the action.
       Currently only a single condition may be specified.
       Otherwise an INVALID ARGUMENT error is thrown.
       
      repeated .google.cloud.discoveryengine.v1beta.Condition conditions = 5;
    • setConditions

      public Control.Builder setConditions(int index, Condition.Builder builderForValue)
       Determines when the associated action will trigger.
      
       Omit to always apply the action.
       Currently only a single condition may be specified.
       Otherwise an INVALID ARGUMENT error is thrown.
       
      repeated .google.cloud.discoveryengine.v1beta.Condition conditions = 5;
    • addConditions

      public Control.Builder addConditions(Condition value)
       Determines when the associated action will trigger.
      
       Omit to always apply the action.
       Currently only a single condition may be specified.
       Otherwise an INVALID ARGUMENT error is thrown.
       
      repeated .google.cloud.discoveryengine.v1beta.Condition conditions = 5;
    • addConditions

      public Control.Builder addConditions(int index, Condition value)
       Determines when the associated action will trigger.
      
       Omit to always apply the action.
       Currently only a single condition may be specified.
       Otherwise an INVALID ARGUMENT error is thrown.
       
      repeated .google.cloud.discoveryengine.v1beta.Condition conditions = 5;
    • addConditions

      public Control.Builder addConditions(Condition.Builder builderForValue)
       Determines when the associated action will trigger.
      
       Omit to always apply the action.
       Currently only a single condition may be specified.
       Otherwise an INVALID ARGUMENT error is thrown.
       
      repeated .google.cloud.discoveryengine.v1beta.Condition conditions = 5;
    • addConditions

      public Control.Builder addConditions(int index, Condition.Builder builderForValue)
       Determines when the associated action will trigger.
      
       Omit to always apply the action.
       Currently only a single condition may be specified.
       Otherwise an INVALID ARGUMENT error is thrown.
       
      repeated .google.cloud.discoveryengine.v1beta.Condition conditions = 5;
    • addAllConditions

      public Control.Builder addAllConditions(Iterable<? extends Condition> values)
       Determines when the associated action will trigger.
      
       Omit to always apply the action.
       Currently only a single condition may be specified.
       Otherwise an INVALID ARGUMENT error is thrown.
       
      repeated .google.cloud.discoveryengine.v1beta.Condition conditions = 5;
    • clearConditions

      public Control.Builder clearConditions()
       Determines when the associated action will trigger.
      
       Omit to always apply the action.
       Currently only a single condition may be specified.
       Otherwise an INVALID ARGUMENT error is thrown.
       
      repeated .google.cloud.discoveryengine.v1beta.Condition conditions = 5;
    • removeConditions

      public Control.Builder removeConditions(int index)
       Determines when the associated action will trigger.
      
       Omit to always apply the action.
       Currently only a single condition may be specified.
       Otherwise an INVALID ARGUMENT error is thrown.
       
      repeated .google.cloud.discoveryengine.v1beta.Condition conditions = 5;
    • getConditionsBuilder

      public Condition.Builder getConditionsBuilder(int index)
       Determines when the associated action will trigger.
      
       Omit to always apply the action.
       Currently only a single condition may be specified.
       Otherwise an INVALID ARGUMENT error is thrown.
       
      repeated .google.cloud.discoveryengine.v1beta.Condition conditions = 5;
    • getConditionsOrBuilder

      public ConditionOrBuilder getConditionsOrBuilder(int index)
       Determines when the associated action will trigger.
      
       Omit to always apply the action.
       Currently only a single condition may be specified.
       Otherwise an INVALID ARGUMENT error is thrown.
       
      repeated .google.cloud.discoveryengine.v1beta.Condition conditions = 5;
      Specified by:
      getConditionsOrBuilder in interface ControlOrBuilder
    • getConditionsOrBuilderList

      public List<? extends ConditionOrBuilder> getConditionsOrBuilderList()
       Determines when the associated action will trigger.
      
       Omit to always apply the action.
       Currently only a single condition may be specified.
       Otherwise an INVALID ARGUMENT error is thrown.
       
      repeated .google.cloud.discoveryengine.v1beta.Condition conditions = 5;
      Specified by:
      getConditionsOrBuilderList in interface ControlOrBuilder
    • addConditionsBuilder

      public Condition.Builder addConditionsBuilder()
       Determines when the associated action will trigger.
      
       Omit to always apply the action.
       Currently only a single condition may be specified.
       Otherwise an INVALID ARGUMENT error is thrown.
       
      repeated .google.cloud.discoveryengine.v1beta.Condition conditions = 5;
    • addConditionsBuilder

      public Condition.Builder addConditionsBuilder(int index)
       Determines when the associated action will trigger.
      
       Omit to always apply the action.
       Currently only a single condition may be specified.
       Otherwise an INVALID ARGUMENT error is thrown.
       
      repeated .google.cloud.discoveryengine.v1beta.Condition conditions = 5;
    • getConditionsBuilderList

      public List<Condition.Builder> getConditionsBuilderList()
       Determines when the associated action will trigger.
      
       Omit to always apply the action.
       Currently only a single condition may be specified.
       Otherwise an INVALID ARGUMENT error is thrown.
       
      repeated .google.cloud.discoveryengine.v1beta.Condition conditions = 5;