Package com.google.cloud.retail.v2alpha
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.retail.v2alpha.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
Configures dynamic metadata that can be linked to a [ServingConfig][google.cloud.retail.v2alpha.ServingConfig] and affect search or recommendation results at serving time.Protobuf type
google.cloud.retail.v2alpha.Control-
Method Summary
Modifier and TypeMethodDescriptionOutput only.addAllSearchSolutionUseCase(Iterable<? extends SearchSolutionUseCase> values) Specifies the use case for the control.Specifies the use case for the control.addAllSolutionTypes(Iterable<? extends SolutionType> values) Required.addAllSolutionTypesValue(Iterable<Integer> values) Required.Output only.addAssociatedServingConfigIdsBytes(com.google.protobuf.ByteString value) Output only.Specifies the use case for the control.addSearchSolutionUseCaseValue(int value) Specifies the use case for the control.addSolutionTypes(SolutionType value) Required.addSolutionTypesValue(int value) Required.build()clear()Output only.Required.Deprecated.Immutable.A rule control - a condition-action pair.Specifies the use case for the control.Required.getAssociatedServingConfigIds(int index) Output only.com.google.protobuf.ByteStringgetAssociatedServingConfigIdsBytes(int index) Output only.intOutput only.com.google.protobuf.ProtocolStringListOutput only.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorRequired.com.google.protobuf.ByteStringRequired.Deprecated.google.cloud.retail.v2alpha.Control.facet_spec is deprecated.Deprecated.Deprecated.getName()Immutable.com.google.protobuf.ByteStringImmutable.getRule()A rule control - a condition-action pair.A rule control - a condition-action pair.A rule control - a condition-action pair.getSearchSolutionUseCase(int index) Specifies the use case for the control.intSpecifies the use case for the control.Specifies the use case for the control.intgetSearchSolutionUseCaseValue(int index) Specifies the use case for the control.Specifies the use case for the control.getSolutionTypes(int index) Required.intRequired.Required.intgetSolutionTypesValue(int index) Required.Required.booleanDeprecated.google.cloud.retail.v2alpha.Control.facet_spec is deprecated.booleanhasRule()A rule control - a condition-action pair.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanDeprecated.mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) A rule control - a condition-action pair.setAssociatedServingConfigIds(int index, String value) Output only.setDisplayName(String value) Required.setDisplayNameBytes(com.google.protobuf.ByteString value) Required.Deprecated.setFacetSpec(SearchRequest.FacetSpec.Builder builderForValue) Deprecated.Immutable.setNameBytes(com.google.protobuf.ByteString value) Immutable.A rule control - a condition-action pair.setRule(Rule.Builder builderForValue) A rule control - a condition-action pair.setSearchSolutionUseCase(int index, SearchSolutionUseCase value) Specifies the use case for the control.setSearchSolutionUseCaseValue(int index, int value) Specifies the use case for the control.setSolutionTypes(int index, SolutionType value) Required.setSolutionTypesValue(int index, int value) Required.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
-
getControlCase
- Specified by:
getControlCasein interfaceControlOrBuilder
-
clearControl
-
hasFacetSpec
Deprecated.google.cloud.retail.v2alpha.Control.facet_spec is deprecated. See google/cloud/retail/v2alpha/control.proto;l=51A facet specification to perform faceted search. Note that this field is deprecated and will throw NOT_IMPLEMENTED if used for creating a control.
.google.cloud.retail.v2alpha.SearchRequest.FacetSpec facet_spec = 3 [deprecated = true];- Specified by:
hasFacetSpecin interfaceControlOrBuilder- Returns:
- Whether the facetSpec field is set.
-
getFacetSpec
Deprecated.google.cloud.retail.v2alpha.Control.facet_spec is deprecated. See google/cloud/retail/v2alpha/control.proto;l=51A facet specification to perform faceted search. Note that this field is deprecated and will throw NOT_IMPLEMENTED if used for creating a control.
.google.cloud.retail.v2alpha.SearchRequest.FacetSpec facet_spec = 3 [deprecated = true];- Specified by:
getFacetSpecin interfaceControlOrBuilder- Returns:
- The facetSpec.
-
setFacetSpec
Deprecated.A facet specification to perform faceted search. Note that this field is deprecated and will throw NOT_IMPLEMENTED if used for creating a control.
.google.cloud.retail.v2alpha.SearchRequest.FacetSpec facet_spec = 3 [deprecated = true]; -
setFacetSpec
Deprecated.A facet specification to perform faceted search. Note that this field is deprecated and will throw NOT_IMPLEMENTED if used for creating a control.
.google.cloud.retail.v2alpha.SearchRequest.FacetSpec facet_spec = 3 [deprecated = true]; -
mergeFacetSpec
Deprecated.A facet specification to perform faceted search. Note that this field is deprecated and will throw NOT_IMPLEMENTED if used for creating a control.
.google.cloud.retail.v2alpha.SearchRequest.FacetSpec facet_spec = 3 [deprecated = true]; -
clearFacetSpec
Deprecated.A facet specification to perform faceted search. Note that this field is deprecated and will throw NOT_IMPLEMENTED if used for creating a control.
.google.cloud.retail.v2alpha.SearchRequest.FacetSpec facet_spec = 3 [deprecated = true]; -
getFacetSpecBuilder
Deprecated.A facet specification to perform faceted search. Note that this field is deprecated and will throw NOT_IMPLEMENTED if used for creating a control.
.google.cloud.retail.v2alpha.SearchRequest.FacetSpec facet_spec = 3 [deprecated = true]; -
getFacetSpecOrBuilder
Deprecated.A facet specification to perform faceted search. Note that this field is deprecated and will throw NOT_IMPLEMENTED if used for creating a control.
.google.cloud.retail.v2alpha.SearchRequest.FacetSpec facet_spec = 3 [deprecated = true];- Specified by:
getFacetSpecOrBuilderin interfaceControlOrBuilder
-
hasRule
public boolean hasRule()A rule control - a condition-action pair. Enacts a set action when the condition is triggered. For example: Boost "gShoe" when query full matches "Running Shoes".
.google.cloud.retail.v2alpha.Rule rule = 4;- Specified by:
hasRulein interfaceControlOrBuilder- Returns:
- Whether the rule field is set.
-
getRule
A rule control - a condition-action pair. Enacts a set action when the condition is triggered. For example: Boost "gShoe" when query full matches "Running Shoes".
.google.cloud.retail.v2alpha.Rule rule = 4;- Specified by:
getRulein interfaceControlOrBuilder- Returns:
- The rule.
-
setRule
A rule control - a condition-action pair. Enacts a set action when the condition is triggered. For example: Boost "gShoe" when query full matches "Running Shoes".
.google.cloud.retail.v2alpha.Rule rule = 4; -
setRule
A rule control - a condition-action pair. Enacts a set action when the condition is triggered. For example: Boost "gShoe" when query full matches "Running Shoes".
.google.cloud.retail.v2alpha.Rule rule = 4; -
mergeRule
A rule control - a condition-action pair. Enacts a set action when the condition is triggered. For example: Boost "gShoe" when query full matches "Running Shoes".
.google.cloud.retail.v2alpha.Rule rule = 4; -
clearRule
A rule control - a condition-action pair. Enacts a set action when the condition is triggered. For example: Boost "gShoe" when query full matches "Running Shoes".
.google.cloud.retail.v2alpha.Rule rule = 4; -
getRuleBuilder
A rule control - a condition-action pair. Enacts a set action when the condition is triggered. For example: Boost "gShoe" when query full matches "Running Shoes".
.google.cloud.retail.v2alpha.Rule rule = 4; -
getRuleOrBuilder
A rule control - a condition-action pair. Enacts a set action when the condition is triggered. For example: Boost "gShoe" when query full matches "Running Shoes".
.google.cloud.retail.v2alpha.Rule rule = 4;- Specified by:
getRuleOrBuilderin interfaceControlOrBuilder
-
getName
Immutable. Fully qualified name `projects/*/locations/global/catalogs/*/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/catalogs/*/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/catalogs/*/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/catalogs/*/controls/*`
string name = 1 [(.google.api.field_behavior) = IMMUTABLE];- Returns:
- This builder for chaining.
-
setNameBytes
Immutable. Fully qualified name `projects/*/locations/global/catalogs/*/controls/*`
string name = 1 [(.google.api.field_behavior) = IMMUTABLE];- Parameters:
value- The bytes for name to set.- Returns:
- This builder for chaining.
-
getDisplayName
Required. The human readable control display name. Used in Retail UI. This field must be a UTF-8 encoded string with a length limit of 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. The human readable control display name. Used in Retail UI. This field must be a UTF-8 encoded string with a length limit of 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. The human readable control display name. Used in Retail UI. This field must be a UTF-8 encoded string with a length limit of 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. The human readable control display name. Used in Retail UI. This field must be a UTF-8 encoded string with a length limit of 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. The human readable control display name. Used in Retail UI. This field must be a UTF-8 encoded string with a length limit of 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 [serving config][google.cloud.retail.v2alpha.ServingConfig] ids that are associated with this control in the same [Catalog][google.cloud.retail.v2alpha.Catalog]. Note the association is managed via the [ServingConfig][google.cloud.retail.v2alpha.ServingConfig], this is an output only denormalized view.
repeated string associated_serving_config_ids = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getAssociatedServingConfigIdsListin interfaceControlOrBuilder- Returns:
- A list containing the associatedServingConfigIds.
-
getAssociatedServingConfigIdsCount
public int getAssociatedServingConfigIdsCount()Output only. List of [serving config][google.cloud.retail.v2alpha.ServingConfig] ids that are associated with this control in the same [Catalog][google.cloud.retail.v2alpha.Catalog]. Note the association is managed via the [ServingConfig][google.cloud.retail.v2alpha.ServingConfig], this is an output only denormalized view.
repeated string associated_serving_config_ids = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getAssociatedServingConfigIdsCountin interfaceControlOrBuilder- Returns:
- The count of associatedServingConfigIds.
-
getAssociatedServingConfigIds
Output only. List of [serving config][google.cloud.retail.v2alpha.ServingConfig] ids that are associated with this control in the same [Catalog][google.cloud.retail.v2alpha.Catalog]. Note the association is managed via the [ServingConfig][google.cloud.retail.v2alpha.ServingConfig], this is an output only denormalized view.
repeated string associated_serving_config_ids = 5 [(.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 [serving config][google.cloud.retail.v2alpha.ServingConfig] ids that are associated with this control in the same [Catalog][google.cloud.retail.v2alpha.Catalog]. Note the association is managed via the [ServingConfig][google.cloud.retail.v2alpha.ServingConfig], this is an output only denormalized view.
repeated string associated_serving_config_ids = 5 [(.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 [serving config][google.cloud.retail.v2alpha.ServingConfig] ids that are associated with this control in the same [Catalog][google.cloud.retail.v2alpha.Catalog]. Note the association is managed via the [ServingConfig][google.cloud.retail.v2alpha.ServingConfig], this is an output only denormalized view.
repeated string associated_serving_config_ids = 5 [(.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 [serving config][google.cloud.retail.v2alpha.ServingConfig] ids that are associated with this control in the same [Catalog][google.cloud.retail.v2alpha.Catalog]. Note the association is managed via the [ServingConfig][google.cloud.retail.v2alpha.ServingConfig], this is an output only denormalized view.
repeated string associated_serving_config_ids = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The associatedServingConfigIds to add.- Returns:
- This builder for chaining.
-
addAllAssociatedServingConfigIds
Output only. List of [serving config][google.cloud.retail.v2alpha.ServingConfig] ids that are associated with this control in the same [Catalog][google.cloud.retail.v2alpha.Catalog]. Note the association is managed via the [ServingConfig][google.cloud.retail.v2alpha.ServingConfig], this is an output only denormalized view.
repeated string associated_serving_config_ids = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
values- The associatedServingConfigIds to add.- Returns:
- This builder for chaining.
-
clearAssociatedServingConfigIds
Output only. List of [serving config][google.cloud.retail.v2alpha.ServingConfig] ids that are associated with this control in the same [Catalog][google.cloud.retail.v2alpha.Catalog]. Note the association is managed via the [ServingConfig][google.cloud.retail.v2alpha.ServingConfig], this is an output only denormalized view.
repeated string associated_serving_config_ids = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
addAssociatedServingConfigIdsBytes
Output only. List of [serving config][google.cloud.retail.v2alpha.ServingConfig] ids that are associated with this control in the same [Catalog][google.cloud.retail.v2alpha.Catalog]. Note the association is managed via the [ServingConfig][google.cloud.retail.v2alpha.ServingConfig], this is an output only denormalized view.
repeated string associated_serving_config_ids = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The bytes of the associatedServingConfigIds to add.- Returns:
- This builder for chaining.
-
getSolutionTypesList
Required. Immutable. The solution types that the control is used for. Currently we support setting only one type of solution at creation time. Only `SOLUTION_TYPE_SEARCH` value is supported at the moment. If no solution type is provided at creation time, will default to [SOLUTION_TYPE_SEARCH][google.cloud.retail.v2alpha.SolutionType.SOLUTION_TYPE_SEARCH].
repeated .google.cloud.retail.v2alpha.SolutionType solution_types = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];- Specified by:
getSolutionTypesListin interfaceControlOrBuilder- Returns:
- A list containing the solutionTypes.
-
getSolutionTypesCount
public int getSolutionTypesCount()Required. Immutable. The solution types that the control is used for. Currently we support setting only one type of solution at creation time. Only `SOLUTION_TYPE_SEARCH` value is supported at the moment. If no solution type is provided at creation time, will default to [SOLUTION_TYPE_SEARCH][google.cloud.retail.v2alpha.SolutionType.SOLUTION_TYPE_SEARCH].
repeated .google.cloud.retail.v2alpha.SolutionType solution_types = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];- Specified by:
getSolutionTypesCountin interfaceControlOrBuilder- Returns:
- The count of solutionTypes.
-
getSolutionTypes
Required. Immutable. The solution types that the control is used for. Currently we support setting only one type of solution at creation time. Only `SOLUTION_TYPE_SEARCH` value is supported at the moment. If no solution type is provided at creation time, will default to [SOLUTION_TYPE_SEARCH][google.cloud.retail.v2alpha.SolutionType.SOLUTION_TYPE_SEARCH].
repeated .google.cloud.retail.v2alpha.SolutionType solution_types = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];- Specified by:
getSolutionTypesin interfaceControlOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The solutionTypes at the given index.
-
setSolutionTypes
Required. Immutable. The solution types that the control is used for. Currently we support setting only one type of solution at creation time. Only `SOLUTION_TYPE_SEARCH` value is supported at the moment. If no solution type is provided at creation time, will default to [SOLUTION_TYPE_SEARCH][google.cloud.retail.v2alpha.SolutionType.SOLUTION_TYPE_SEARCH].
repeated .google.cloud.retail.v2alpha.SolutionType solution_types = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];- Parameters:
index- The index to set the value at.value- The solutionTypes to set.- Returns:
- This builder for chaining.
-
addSolutionTypes
Required. Immutable. The solution types that the control is used for. Currently we support setting only one type of solution at creation time. Only `SOLUTION_TYPE_SEARCH` value is supported at the moment. If no solution type is provided at creation time, will default to [SOLUTION_TYPE_SEARCH][google.cloud.retail.v2alpha.SolutionType.SOLUTION_TYPE_SEARCH].
repeated .google.cloud.retail.v2alpha.SolutionType solution_types = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];- Parameters:
value- The solutionTypes to add.- Returns:
- This builder for chaining.
-
addAllSolutionTypes
Required. Immutable. The solution types that the control is used for. Currently we support setting only one type of solution at creation time. Only `SOLUTION_TYPE_SEARCH` value is supported at the moment. If no solution type is provided at creation time, will default to [SOLUTION_TYPE_SEARCH][google.cloud.retail.v2alpha.SolutionType.SOLUTION_TYPE_SEARCH].
repeated .google.cloud.retail.v2alpha.SolutionType solution_types = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];- Parameters:
values- The solutionTypes to add.- Returns:
- This builder for chaining.
-
clearSolutionTypes
Required. Immutable. The solution types that the control is used for. Currently we support setting only one type of solution at creation time. Only `SOLUTION_TYPE_SEARCH` value is supported at the moment. If no solution type is provided at creation time, will default to [SOLUTION_TYPE_SEARCH][google.cloud.retail.v2alpha.SolutionType.SOLUTION_TYPE_SEARCH].
repeated .google.cloud.retail.v2alpha.SolutionType solution_types = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];- Returns:
- This builder for chaining.
-
getSolutionTypesValueList
Required. Immutable. The solution types that the control is used for. Currently we support setting only one type of solution at creation time. Only `SOLUTION_TYPE_SEARCH` value is supported at the moment. If no solution type is provided at creation time, will default to [SOLUTION_TYPE_SEARCH][google.cloud.retail.v2alpha.SolutionType.SOLUTION_TYPE_SEARCH].
repeated .google.cloud.retail.v2alpha.SolutionType solution_types = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];- Specified by:
getSolutionTypesValueListin interfaceControlOrBuilder- Returns:
- A list containing the enum numeric values on the wire for solutionTypes.
-
getSolutionTypesValue
public int getSolutionTypesValue(int index) Required. Immutable. The solution types that the control is used for. Currently we support setting only one type of solution at creation time. Only `SOLUTION_TYPE_SEARCH` value is supported at the moment. If no solution type is provided at creation time, will default to [SOLUTION_TYPE_SEARCH][google.cloud.retail.v2alpha.SolutionType.SOLUTION_TYPE_SEARCH].
repeated .google.cloud.retail.v2alpha.SolutionType solution_types = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];- Specified by:
getSolutionTypesValuein interfaceControlOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The enum numeric value on the wire of solutionTypes at the given index.
-
setSolutionTypesValue
Required. Immutable. The solution types that the control is used for. Currently we support setting only one type of solution at creation time. Only `SOLUTION_TYPE_SEARCH` value is supported at the moment. If no solution type is provided at creation time, will default to [SOLUTION_TYPE_SEARCH][google.cloud.retail.v2alpha.SolutionType.SOLUTION_TYPE_SEARCH].
repeated .google.cloud.retail.v2alpha.SolutionType solution_types = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];- Parameters:
index- The index to set the value at.value- The enum numeric value on the wire for solutionTypes to set.- Returns:
- This builder for chaining.
-
addSolutionTypesValue
Required. Immutable. The solution types that the control is used for. Currently we support setting only one type of solution at creation time. Only `SOLUTION_TYPE_SEARCH` value is supported at the moment. If no solution type is provided at creation time, will default to [SOLUTION_TYPE_SEARCH][google.cloud.retail.v2alpha.SolutionType.SOLUTION_TYPE_SEARCH].
repeated .google.cloud.retail.v2alpha.SolutionType solution_types = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];- Parameters:
value- The enum numeric value on the wire for solutionTypes to add.- Returns:
- This builder for chaining.
-
addAllSolutionTypesValue
Required. Immutable. The solution types that the control is used for. Currently we support setting only one type of solution at creation time. Only `SOLUTION_TYPE_SEARCH` value is supported at the moment. If no solution type is provided at creation time, will default to [SOLUTION_TYPE_SEARCH][google.cloud.retail.v2alpha.SolutionType.SOLUTION_TYPE_SEARCH].
repeated .google.cloud.retail.v2alpha.SolutionType solution_types = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];- Parameters:
values- The enum numeric values on the wire for solutionTypes to add.- Returns:
- This builder for chaining.
-
getSearchSolutionUseCaseList
Specifies the use case for the control. Affects what condition fields can be set. Only settable by search controls. Will default to [SEARCH_SOLUTION_USE_CASE_SEARCH][google.cloud.retail.v2alpha.SearchSolutionUseCase.SEARCH_SOLUTION_USE_CASE_SEARCH] if not specified. Currently only allow one search_solution_use_case per control.
repeated .google.cloud.retail.v2alpha.SearchSolutionUseCase search_solution_use_case = 7;- Specified by:
getSearchSolutionUseCaseListin interfaceControlOrBuilder- Returns:
- A list containing the searchSolutionUseCase.
-
getSearchSolutionUseCaseCount
public int getSearchSolutionUseCaseCount()Specifies the use case for the control. Affects what condition fields can be set. Only settable by search controls. Will default to [SEARCH_SOLUTION_USE_CASE_SEARCH][google.cloud.retail.v2alpha.SearchSolutionUseCase.SEARCH_SOLUTION_USE_CASE_SEARCH] if not specified. Currently only allow one search_solution_use_case per control.
repeated .google.cloud.retail.v2alpha.SearchSolutionUseCase search_solution_use_case = 7;- Specified by:
getSearchSolutionUseCaseCountin interfaceControlOrBuilder- Returns:
- The count of searchSolutionUseCase.
-
getSearchSolutionUseCase
Specifies the use case for the control. Affects what condition fields can be set. Only settable by search controls. Will default to [SEARCH_SOLUTION_USE_CASE_SEARCH][google.cloud.retail.v2alpha.SearchSolutionUseCase.SEARCH_SOLUTION_USE_CASE_SEARCH] if not specified. Currently only allow one search_solution_use_case per control.
repeated .google.cloud.retail.v2alpha.SearchSolutionUseCase search_solution_use_case = 7;- Specified by:
getSearchSolutionUseCasein interfaceControlOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The searchSolutionUseCase at the given index.
-
setSearchSolutionUseCase
Specifies the use case for the control. Affects what condition fields can be set. Only settable by search controls. Will default to [SEARCH_SOLUTION_USE_CASE_SEARCH][google.cloud.retail.v2alpha.SearchSolutionUseCase.SEARCH_SOLUTION_USE_CASE_SEARCH] if not specified. Currently only allow one search_solution_use_case per control.
repeated .google.cloud.retail.v2alpha.SearchSolutionUseCase search_solution_use_case = 7;- Parameters:
index- The index to set the value at.value- The searchSolutionUseCase to set.- Returns:
- This builder for chaining.
-
addSearchSolutionUseCase
Specifies the use case for the control. Affects what condition fields can be set. Only settable by search controls. Will default to [SEARCH_SOLUTION_USE_CASE_SEARCH][google.cloud.retail.v2alpha.SearchSolutionUseCase.SEARCH_SOLUTION_USE_CASE_SEARCH] if not specified. Currently only allow one search_solution_use_case per control.
repeated .google.cloud.retail.v2alpha.SearchSolutionUseCase search_solution_use_case = 7;- Parameters:
value- The searchSolutionUseCase to add.- Returns:
- This builder for chaining.
-
addAllSearchSolutionUseCase
public Control.Builder addAllSearchSolutionUseCase(Iterable<? extends SearchSolutionUseCase> values) Specifies the use case for the control. Affects what condition fields can be set. Only settable by search controls. Will default to [SEARCH_SOLUTION_USE_CASE_SEARCH][google.cloud.retail.v2alpha.SearchSolutionUseCase.SEARCH_SOLUTION_USE_CASE_SEARCH] if not specified. Currently only allow one search_solution_use_case per control.
repeated .google.cloud.retail.v2alpha.SearchSolutionUseCase search_solution_use_case = 7;- Parameters:
values- The searchSolutionUseCase to add.- Returns:
- This builder for chaining.
-
clearSearchSolutionUseCase
Specifies the use case for the control. Affects what condition fields can be set. Only settable by search controls. Will default to [SEARCH_SOLUTION_USE_CASE_SEARCH][google.cloud.retail.v2alpha.SearchSolutionUseCase.SEARCH_SOLUTION_USE_CASE_SEARCH] if not specified. Currently only allow one search_solution_use_case per control.
repeated .google.cloud.retail.v2alpha.SearchSolutionUseCase search_solution_use_case = 7;- Returns:
- This builder for chaining.
-
getSearchSolutionUseCaseValueList
Specifies the use case for the control. Affects what condition fields can be set. Only settable by search controls. Will default to [SEARCH_SOLUTION_USE_CASE_SEARCH][google.cloud.retail.v2alpha.SearchSolutionUseCase.SEARCH_SOLUTION_USE_CASE_SEARCH] if not specified. Currently only allow one search_solution_use_case per control.
repeated .google.cloud.retail.v2alpha.SearchSolutionUseCase search_solution_use_case = 7;- Specified by:
getSearchSolutionUseCaseValueListin interfaceControlOrBuilder- Returns:
- A list containing the enum numeric values on the wire for searchSolutionUseCase.
-
getSearchSolutionUseCaseValue
public int getSearchSolutionUseCaseValue(int index) Specifies the use case for the control. Affects what condition fields can be set. Only settable by search controls. Will default to [SEARCH_SOLUTION_USE_CASE_SEARCH][google.cloud.retail.v2alpha.SearchSolutionUseCase.SEARCH_SOLUTION_USE_CASE_SEARCH] if not specified. Currently only allow one search_solution_use_case per control.
repeated .google.cloud.retail.v2alpha.SearchSolutionUseCase search_solution_use_case = 7;- Specified by:
getSearchSolutionUseCaseValuein interfaceControlOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The enum numeric value on the wire of searchSolutionUseCase at the given index.
-
setSearchSolutionUseCaseValue
Specifies the use case for the control. Affects what condition fields can be set. Only settable by search controls. Will default to [SEARCH_SOLUTION_USE_CASE_SEARCH][google.cloud.retail.v2alpha.SearchSolutionUseCase.SEARCH_SOLUTION_USE_CASE_SEARCH] if not specified. Currently only allow one search_solution_use_case per control.
repeated .google.cloud.retail.v2alpha.SearchSolutionUseCase search_solution_use_case = 7;- Parameters:
index- The index to set the value at.value- The enum numeric value on the wire for searchSolutionUseCase to set.- Returns:
- This builder for chaining.
-
addSearchSolutionUseCaseValue
Specifies the use case for the control. Affects what condition fields can be set. Only settable by search controls. Will default to [SEARCH_SOLUTION_USE_CASE_SEARCH][google.cloud.retail.v2alpha.SearchSolutionUseCase.SEARCH_SOLUTION_USE_CASE_SEARCH] if not specified. Currently only allow one search_solution_use_case per control.
repeated .google.cloud.retail.v2alpha.SearchSolutionUseCase search_solution_use_case = 7;- Parameters:
value- The enum numeric value on the wire for searchSolutionUseCase to add.- Returns:
- This builder for chaining.
-
addAllSearchSolutionUseCaseValue
Specifies the use case for the control. Affects what condition fields can be set. Only settable by search controls. Will default to [SEARCH_SOLUTION_USE_CASE_SEARCH][google.cloud.retail.v2alpha.SearchSolutionUseCase.SEARCH_SOLUTION_USE_CASE_SEARCH] if not specified. Currently only allow one search_solution_use_case per control.
repeated .google.cloud.retail.v2alpha.SearchSolutionUseCase search_solution_use_case = 7;- Parameters:
values- The enum numeric values on the wire for searchSolutionUseCase to add.- Returns:
- This builder for chaining.
-