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 Summary
Modifier and TypeMethodDescriptionOutput only.addAllConditions(Iterable<? extends Condition> values) Determines when the associated action will trigger.addAllUseCases(Iterable<? extends SearchUseCase> values) Specifies the use case for the control.addAllUseCasesValue(Iterable<Integer> values) Specifies the use case for the control.Output only.addAssociatedServingConfigIdsBytes(com.google.protobuf.ByteString value) Output only.addConditions(int index, Condition value) Determines when the associated action will trigger.addConditions(int index, Condition.Builder builderForValue) Determines when the associated action will trigger.addConditions(Condition value) Determines when the associated action will trigger.addConditions(Condition.Builder builderForValue) Determines when the associated action will trigger.Determines when the associated action will trigger.addConditionsBuilder(int index) Determines when the associated action will trigger.addUseCases(SearchUseCase value) Specifies the use case for the control.addUseCasesValue(int value) Specifies the use case for the control.build()clear()Output only.Defines a boost-type controlDetermines when the associated action will trigger.Required.Defines a filter-type control Currently not supported by RecommendationImmutable.Defines a redirect-type control.Required.Treats a group of terms as synonyms of one another.Specifies the use case for the control.getAssociatedServingConfigIds(int index) Output only.com.google.protobuf.ByteStringgetAssociatedServingConfigIdsBytes(int index) Output only.intOutput only.com.google.protobuf.ProtocolStringListOutput only.Defines a boost-type controlDefines a boost-type controlDefines a boost-type controlgetConditions(int index) Determines when the associated action will trigger.getConditionsBuilder(int index) Determines when the associated action will trigger.Determines when the associated action will trigger.intDetermines when the associated action will trigger.Determines when the associated action will trigger.getConditionsOrBuilder(int index) Determines when the associated action will trigger.List<? extends ConditionOrBuilder>Determines when the associated action will trigger.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorRequired.com.google.protobuf.ByteStringRequired.Defines a filter-type control Currently not supported by RecommendationDefines a filter-type control Currently not supported by RecommendationDefines a filter-type control Currently not supported by RecommendationgetName()Immutable.com.google.protobuf.ByteStringImmutable.Defines a redirect-type control.Defines a redirect-type control.Defines a redirect-type control.Required.intRequired.Treats a group of terms as synonyms of one another.Treats a group of terms as synonyms of one another.Treats a group of terms as synonyms of one another.getUseCases(int index) Specifies the use case for the control.intSpecifies the use case for the control.Specifies the use case for the control.intgetUseCasesValue(int index) Specifies the use case for the control.Specifies the use case for the control.booleanDefines a boost-type controlbooleanDefines a filter-type control Currently not supported by RecommendationbooleanDefines a redirect-type control.booleanTreats a group of terms as synonyms of one another.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanDefines a boost-type controlDefines a filter-type control Currently not supported by RecommendationmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) Defines a redirect-type control.Treats a group of terms as synonyms of one another.removeConditions(int index) Determines when the associated action will trigger.setAssociatedServingConfigIds(int index, String value) Output only.Defines a boost-type controlsetBoostAction(Control.BoostAction.Builder builderForValue) Defines a boost-type controlsetConditions(int index, Condition value) Determines when the associated action will trigger.setConditions(int index, Condition.Builder builderForValue) Determines when the associated action will trigger.setDisplayName(String value) Required.setDisplayNameBytes(com.google.protobuf.ByteString value) Required.Defines a filter-type control Currently not supported by RecommendationsetFilterAction(Control.FilterAction.Builder builderForValue) Defines a filter-type control Currently not supported by RecommendationImmutable.setNameBytes(com.google.protobuf.ByteString value) Immutable.Defines a redirect-type control.setRedirectAction(Control.RedirectAction.Builder builderForValue) Defines a redirect-type control.setSolutionType(SolutionType value) Required.setSolutionTypeValue(int value) Required.Treats a group of terms as synonyms of one another.setSynonymsAction(Control.SynonymsAction.Builder builderForValue) Treats a group of terms as synonyms of one another.setUseCases(int index, SearchUseCase value) Specifies the use case for the control.setUseCasesValue(int index, int value) Specifies the use case for the control.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<Control.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<Control.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<Control.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Control.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Control.Builder>- Throws:
IOException
-
getActionCase
- Specified by:
getActionCasein interfaceControlOrBuilder
-
clearAction
-
hasBoostAction
public boolean hasBoostAction()Defines a boost-type control
.google.cloud.discoveryengine.v1beta.Control.BoostAction boost_action = 6;- Specified by:
hasBoostActionin interfaceControlOrBuilder- Returns:
- Whether the boostAction field is set.
-
getBoostAction
Defines a boost-type control
.google.cloud.discoveryengine.v1beta.Control.BoostAction boost_action = 6;- Specified by:
getBoostActionin interfaceControlOrBuilder- Returns:
- The boostAction.
-
setBoostAction
Defines a boost-type control
.google.cloud.discoveryengine.v1beta.Control.BoostAction boost_action = 6; -
setBoostAction
Defines a boost-type control
.google.cloud.discoveryengine.v1beta.Control.BoostAction boost_action = 6; -
mergeBoostAction
Defines a boost-type control
.google.cloud.discoveryengine.v1beta.Control.BoostAction boost_action = 6; -
clearBoostAction
Defines a boost-type control
.google.cloud.discoveryengine.v1beta.Control.BoostAction boost_action = 6; -
getBoostActionBuilder
Defines a boost-type control
.google.cloud.discoveryengine.v1beta.Control.BoostAction boost_action = 6; -
getBoostActionOrBuilder
Defines a boost-type control
.google.cloud.discoveryengine.v1beta.Control.BoostAction boost_action = 6;- Specified by:
getBoostActionOrBuilderin interfaceControlOrBuilder
-
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:
hasFilterActionin interfaceControlOrBuilder- Returns:
- Whether the filterAction field is set.
-
getFilterAction
Defines a filter-type control Currently not supported by Recommendation
.google.cloud.discoveryengine.v1beta.Control.FilterAction filter_action = 7;- Specified by:
getFilterActionin interfaceControlOrBuilder- Returns:
- The filterAction.
-
setFilterAction
Defines a filter-type control Currently not supported by Recommendation
.google.cloud.discoveryengine.v1beta.Control.FilterAction filter_action = 7; -
setFilterAction
Defines a filter-type control Currently not supported by Recommendation
.google.cloud.discoveryengine.v1beta.Control.FilterAction filter_action = 7; -
mergeFilterAction
Defines a filter-type control Currently not supported by Recommendation
.google.cloud.discoveryengine.v1beta.Control.FilterAction filter_action = 7; -
clearFilterAction
Defines a filter-type control Currently not supported by Recommendation
.google.cloud.discoveryengine.v1beta.Control.FilterAction filter_action = 7; -
getFilterActionBuilder
Defines a filter-type control Currently not supported by Recommendation
.google.cloud.discoveryengine.v1beta.Control.FilterAction filter_action = 7; -
getFilterActionOrBuilder
Defines a filter-type control Currently not supported by Recommendation
.google.cloud.discoveryengine.v1beta.Control.FilterAction filter_action = 7;- Specified by:
getFilterActionOrBuilderin interfaceControlOrBuilder
-
hasRedirectAction
public boolean hasRedirectAction()Defines a redirect-type control.
.google.cloud.discoveryengine.v1beta.Control.RedirectAction redirect_action = 9;- Specified by:
hasRedirectActionin interfaceControlOrBuilder- Returns:
- Whether the redirectAction field is set.
-
getRedirectAction
Defines a redirect-type control.
.google.cloud.discoveryengine.v1beta.Control.RedirectAction redirect_action = 9;- Specified by:
getRedirectActionin interfaceControlOrBuilder- Returns:
- The redirectAction.
-
setRedirectAction
Defines a redirect-type control.
.google.cloud.discoveryengine.v1beta.Control.RedirectAction redirect_action = 9; -
setRedirectAction
Defines a redirect-type control.
.google.cloud.discoveryengine.v1beta.Control.RedirectAction redirect_action = 9; -
mergeRedirectAction
Defines a redirect-type control.
.google.cloud.discoveryengine.v1beta.Control.RedirectAction redirect_action = 9; -
clearRedirectAction
Defines a redirect-type control.
.google.cloud.discoveryengine.v1beta.Control.RedirectAction redirect_action = 9; -
getRedirectActionBuilder
Defines a redirect-type control.
.google.cloud.discoveryengine.v1beta.Control.RedirectAction redirect_action = 9; -
getRedirectActionOrBuilder
Defines a redirect-type control.
.google.cloud.discoveryengine.v1beta.Control.RedirectAction redirect_action = 9;- Specified by:
getRedirectActionOrBuilderin interfaceControlOrBuilder
-
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:
hasSynonymsActionin interfaceControlOrBuilder- Returns:
- Whether the synonymsAction field is set.
-
getSynonymsAction
Treats a group of terms as synonyms of one another.
.google.cloud.discoveryengine.v1beta.Control.SynonymsAction synonyms_action = 10;- Specified by:
getSynonymsActionin interfaceControlOrBuilder- Returns:
- The synonymsAction.
-
setSynonymsAction
Treats a group of terms as synonyms of one another.
.google.cloud.discoveryengine.v1beta.Control.SynonymsAction synonyms_action = 10; -
setSynonymsAction
Treats a group of terms as synonyms of one another.
.google.cloud.discoveryengine.v1beta.Control.SynonymsAction synonyms_action = 10; -
mergeSynonymsAction
Treats a group of terms as synonyms of one another.
.google.cloud.discoveryengine.v1beta.Control.SynonymsAction synonyms_action = 10; -
clearSynonymsAction
Treats a group of terms as synonyms of one another.
.google.cloud.discoveryengine.v1beta.Control.SynonymsAction synonyms_action = 10; -
getSynonymsActionBuilder
Treats a group of terms as synonyms of one another.
.google.cloud.discoveryengine.v1beta.Control.SynonymsAction synonyms_action = 10; -
getSynonymsActionOrBuilder
Treats a group of terms as synonyms of one another.
.google.cloud.discoveryengine.v1beta.Control.SynonymsAction synonyms_action = 10;- Specified by:
getSynonymsActionOrBuilderin interfaceControlOrBuilder
-
getName
Immutable. Fully qualified name `projects/*/locations/global/dataStore/*/controls/*`
string name = 1 [(.google.api.field_behavior) = IMMUTABLE];- Specified by:
getNamein interfaceControlOrBuilder- 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:
getNameBytesin interfaceControlOrBuilder- Returns:
- The bytes for name.
-
setName
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
Immutable. Fully qualified name `projects/*/locations/global/dataStore/*/controls/*`
string name = 1 [(.google.api.field_behavior) = IMMUTABLE];- Returns:
- This builder for chaining.
-
setNameBytes
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
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:
getDisplayNamein interfaceControlOrBuilder- 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:
getDisplayNameBytesin interfaceControlOrBuilder- Returns:
- The bytes for displayName.
-
setDisplayName
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
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
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:
getAssociatedServingConfigIdsListin interfaceControlOrBuilder- 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:
getAssociatedServingConfigIdsCountin interfaceControlOrBuilder- Returns:
- The count of associatedServingConfigIds.
-
getAssociatedServingConfigIds
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:
getAssociatedServingConfigIdsin interfaceControlOrBuilder- 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:
getAssociatedServingConfigIdsBytesin interfaceControlOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the associatedServingConfigIds at the given index.
-
setAssociatedServingConfigIds
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
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
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
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
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:
getSolutionTypeValuein interfaceControlOrBuilder- Returns:
- The enum numeric value on the wire for solutionType.
-
setSolutionTypeValue
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
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:
getSolutionTypein interfaceControlOrBuilder- Returns:
- The solutionType.
-
setSolutionType
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
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
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:
getUseCasesListin interfaceControlOrBuilder- 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:
getUseCasesCountin interfaceControlOrBuilder- Returns:
- The count of useCases.
-
getUseCases
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:
getUseCasesin interfaceControlOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The useCases at the given index.
-
setUseCases
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
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
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
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
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:
getUseCasesValueListin interfaceControlOrBuilder- 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:
getUseCasesValuein interfaceControlOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The enum numeric value on the wire of useCases at the given index.
-
setUseCasesValue
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
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
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
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:
getConditionsListin interfaceControlOrBuilder
-
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:
getConditionsCountin interfaceControlOrBuilder
-
getConditions
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:
getConditionsin interfaceControlOrBuilder
-
setConditions
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
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
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
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
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
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
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
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
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
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
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:
getConditionsOrBuilderin interfaceControlOrBuilder
-
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:
getConditionsOrBuilderListin interfaceControlOrBuilder
-
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
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
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;
-