Package com.google.cloud.retail.v2
Class Control.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<Control.Builder>
-
- com.google.cloud.retail.v2.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.GeneratedMessageV3.Builder<Control.Builder> implements ControlOrBuilder
Configures dynamic metadata that can be linked to a [ServingConfig][google.cloud.retail.v2.ServingConfig] and affect search or recommendation results at serving time.
Protobuf typegoogle.cloud.retail.v2.Control
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Control.Builder
addAllAssociatedServingConfigIds(Iterable<String> values)
Output only.Control.Builder
addAllSearchSolutionUseCase(Iterable<? extends SearchSolutionUseCase> values)
Specifies the use case for the control.Control.Builder
addAllSearchSolutionUseCaseValue(Iterable<Integer> values)
Specifies the use case for the control.Control.Builder
addAllSolutionTypes(Iterable<? extends SolutionType> values)
Required.Control.Builder
addAllSolutionTypesValue(Iterable<Integer> values)
Required.Control.Builder
addAssociatedServingConfigIds(String value)
Output only.Control.Builder
addAssociatedServingConfigIdsBytes(com.google.protobuf.ByteString value)
Output only.Control.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
Control.Builder
addSearchSolutionUseCase(SearchSolutionUseCase value)
Specifies the use case for the control.Control.Builder
addSearchSolutionUseCaseValue(int value)
Specifies the use case for the control.Control.Builder
addSolutionTypes(SolutionType value)
Required.Control.Builder
addSolutionTypesValue(int value)
Required.Control
build()
Control
buildPartial()
Control.Builder
clear()
Control.Builder
clearAssociatedServingConfigIds()
Output only.Control.Builder
clearControl()
Control.Builder
clearDisplayName()
Required.Control.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
Control.Builder
clearName()
Immutable.Control.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
Control.Builder
clearRule()
A rule control - a condition-action pair.Control.Builder
clearSearchSolutionUseCase()
Specifies the use case for the control.Control.Builder
clearSolutionTypes()
Required.Control.Builder
clone()
String
getAssociatedServingConfigIds(int index)
Output only.com.google.protobuf.ByteString
getAssociatedServingConfigIdsBytes(int index)
Output only.int
getAssociatedServingConfigIdsCount()
Output only.com.google.protobuf.ProtocolStringList
getAssociatedServingConfigIdsList()
Output only.Control.ControlCase
getControlCase()
Control
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
String
getDisplayName()
Required.com.google.protobuf.ByteString
getDisplayNameBytes()
Required.String
getName()
Immutable.com.google.protobuf.ByteString
getNameBytes()
Immutable.Rule
getRule()
A rule control - a condition-action pair.Rule.Builder
getRuleBuilder()
A rule control - a condition-action pair.RuleOrBuilder
getRuleOrBuilder()
A rule control - a condition-action pair.SearchSolutionUseCase
getSearchSolutionUseCase(int index)
Specifies the use case for the control.int
getSearchSolutionUseCaseCount()
Specifies the use case for the control.List<SearchSolutionUseCase>
getSearchSolutionUseCaseList()
Specifies the use case for the control.int
getSearchSolutionUseCaseValue(int index)
Specifies the use case for the control.List<Integer>
getSearchSolutionUseCaseValueList()
Specifies the use case for the control.SolutionType
getSolutionTypes(int index)
Required.int
getSolutionTypesCount()
Required.List<SolutionType>
getSolutionTypesList()
Required.int
getSolutionTypesValue(int index)
Required.List<Integer>
getSolutionTypesValueList()
Required.boolean
hasRule()
A rule control - a condition-action pair.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
Control.Builder
mergeFrom(Control other)
Control.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Control.Builder
mergeFrom(com.google.protobuf.Message other)
Control.Builder
mergeRule(Rule value)
A rule control - a condition-action pair.Control.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
Control.Builder
setAssociatedServingConfigIds(int index, String value)
Output only.Control.Builder
setDisplayName(String value)
Required.Control.Builder
setDisplayNameBytes(com.google.protobuf.ByteString value)
Required.Control.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
Control.Builder
setName(String value)
Immutable.Control.Builder
setNameBytes(com.google.protobuf.ByteString value)
Immutable.Control.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
Control.Builder
setRule(Rule value)
A rule control - a condition-action pair.Control.Builder
setRule(Rule.Builder builderForValue)
A rule control - a condition-action pair.Control.Builder
setSearchSolutionUseCase(int index, SearchSolutionUseCase value)
Specifies the use case for the control.Control.Builder
setSearchSolutionUseCaseValue(int index, int value)
Specifies the use case for the control.Control.Builder
setSolutionTypes(int index, SolutionType value)
Required.Control.Builder
setSolutionTypesValue(int index, int value)
Required.Control.Builder
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<Control.Builder>
-
clear
public Control.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<Control.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<Control.Builder>
-
getDefaultInstanceForType
public Control getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public Control build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public Control buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public Control.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<Control.Builder>
-
setField
public Control.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Control.Builder>
-
clearField
public Control.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Control.Builder>
-
clearOneof
public Control.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<Control.Builder>
-
setRepeatedField
public Control.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Control.Builder>
-
addRepeatedField
public Control.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Control.Builder>
-
mergeFrom
public Control.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<Control.Builder>
-
mergeFrom
public Control.Builder mergeFrom(Control other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<Control.Builder>
-
mergeFrom
public Control.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<Control.Builder>
- Throws:
IOException
-
getControlCase
public Control.ControlCase getControlCase()
- Specified by:
getControlCase
in interfaceControlOrBuilder
-
clearControl
public Control.Builder clearControl()
-
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.v2.Rule rule = 4;
- Specified by:
hasRule
in interfaceControlOrBuilder
- Returns:
- Whether the rule field is set.
-
getRule
public Rule 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.v2.Rule rule = 4;
- Specified by:
getRule
in interfaceControlOrBuilder
- Returns:
- The rule.
-
setRule
public Control.Builder setRule(Rule value)
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.v2.Rule rule = 4;
-
setRule
public Control.Builder setRule(Rule.Builder builderForValue)
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.v2.Rule rule = 4;
-
mergeRule
public Control.Builder mergeRule(Rule value)
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.v2.Rule rule = 4;
-
clearRule
public Control.Builder 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.v2.Rule rule = 4;
-
getRuleBuilder
public Rule.Builder 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.v2.Rule rule = 4;
-
getRuleOrBuilder
public RuleOrBuilder 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.v2.Rule rule = 4;
- Specified by:
getRuleOrBuilder
in interfaceControlOrBuilder
-
getName
public String getName()
Immutable. Fully qualified name `projects/*/locations/global/catalogs/*/controls/*`
string name = 1 [(.google.api.field_behavior) = IMMUTABLE];
- Specified by:
getName
in 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:
getNameBytes
in interfaceControlOrBuilder
- Returns:
- The bytes for name.
-
setName
public Control.Builder setName(String value)
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
public Control.Builder clearName()
Immutable. Fully qualified name `projects/*/locations/global/catalogs/*/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/catalogs/*/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. 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:
getDisplayName
in 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:
getDisplayNameBytes
in interfaceControlOrBuilder
- Returns:
- The bytes for displayName.
-
setDisplayName
public Control.Builder setDisplayName(String value)
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
public Control.Builder 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
public Control.Builder setDisplayNameBytes(com.google.protobuf.ByteString value)
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.v2.ServingConfig] ids that are associated with this control in the same [Catalog][google.cloud.retail.v2.Catalog]. Note the association is managed via the [ServingConfig][google.cloud.retail.v2.ServingConfig], this is an output only denormalized view.
repeated string associated_serving_config_ids = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getAssociatedServingConfigIdsList
in interfaceControlOrBuilder
- Returns:
- A list containing the associatedServingConfigIds.
-
getAssociatedServingConfigIdsCount
public int getAssociatedServingConfigIdsCount()
Output only. List of [serving config][google.cloud.retail.v2.ServingConfig] ids that are associated with this control in the same [Catalog][google.cloud.retail.v2.Catalog]. Note the association is managed via the [ServingConfig][google.cloud.retail.v2.ServingConfig], this is an output only denormalized view.
repeated string associated_serving_config_ids = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getAssociatedServingConfigIdsCount
in interfaceControlOrBuilder
- Returns:
- The count of associatedServingConfigIds.
-
getAssociatedServingConfigIds
public String getAssociatedServingConfigIds(int index)
Output only. List of [serving config][google.cloud.retail.v2.ServingConfig] ids that are associated with this control in the same [Catalog][google.cloud.retail.v2.Catalog]. Note the association is managed via the [ServingConfig][google.cloud.retail.v2.ServingConfig], this is an output only denormalized view.
repeated string associated_serving_config_ids = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getAssociatedServingConfigIds
in 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.v2.ServingConfig] ids that are associated with this control in the same [Catalog][google.cloud.retail.v2.Catalog]. Note the association is managed via the [ServingConfig][google.cloud.retail.v2.ServingConfig], this is an output only denormalized view.
repeated string associated_serving_config_ids = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getAssociatedServingConfigIdsBytes
in interfaceControlOrBuilder
- 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 [serving config][google.cloud.retail.v2.ServingConfig] ids that are associated with this control in the same [Catalog][google.cloud.retail.v2.Catalog]. Note the association is managed via the [ServingConfig][google.cloud.retail.v2.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
public Control.Builder addAssociatedServingConfigIds(String value)
Output only. List of [serving config][google.cloud.retail.v2.ServingConfig] ids that are associated with this control in the same [Catalog][google.cloud.retail.v2.Catalog]. Note the association is managed via the [ServingConfig][google.cloud.retail.v2.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
public Control.Builder addAllAssociatedServingConfigIds(Iterable<String> values)
Output only. List of [serving config][google.cloud.retail.v2.ServingConfig] ids that are associated with this control in the same [Catalog][google.cloud.retail.v2.Catalog]. Note the association is managed via the [ServingConfig][google.cloud.retail.v2.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
public Control.Builder clearAssociatedServingConfigIds()
Output only. List of [serving config][google.cloud.retail.v2.ServingConfig] ids that are associated with this control in the same [Catalog][google.cloud.retail.v2.Catalog]. Note the association is managed via the [ServingConfig][google.cloud.retail.v2.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
public Control.Builder addAssociatedServingConfigIdsBytes(com.google.protobuf.ByteString value)
Output only. List of [serving config][google.cloud.retail.v2.ServingConfig] ids that are associated with this control in the same [Catalog][google.cloud.retail.v2.Catalog]. Note the association is managed via the [ServingConfig][google.cloud.retail.v2.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
public List<SolutionType> 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.v2.SolutionType.SOLUTION_TYPE_SEARCH].
repeated .google.cloud.retail.v2.SolutionType solution_types = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
- Specified by:
getSolutionTypesList
in 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.v2.SolutionType.SOLUTION_TYPE_SEARCH].
repeated .google.cloud.retail.v2.SolutionType solution_types = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
- Specified by:
getSolutionTypesCount
in interfaceControlOrBuilder
- Returns:
- The count of solutionTypes.
-
getSolutionTypes
public SolutionType getSolutionTypes(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.v2.SolutionType.SOLUTION_TYPE_SEARCH].
repeated .google.cloud.retail.v2.SolutionType solution_types = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
- Specified by:
getSolutionTypes
in interfaceControlOrBuilder
- Parameters:
index
- The index of the element to return.- Returns:
- The solutionTypes at the given index.
-
setSolutionTypes
public Control.Builder setSolutionTypes(int index, SolutionType value)
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.v2.SolutionType.SOLUTION_TYPE_SEARCH].
repeated .google.cloud.retail.v2.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
public Control.Builder addSolutionTypes(SolutionType value)
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.v2.SolutionType.SOLUTION_TYPE_SEARCH].
repeated .google.cloud.retail.v2.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
public Control.Builder addAllSolutionTypes(Iterable<? extends SolutionType> values)
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.v2.SolutionType.SOLUTION_TYPE_SEARCH].
repeated .google.cloud.retail.v2.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
public Control.Builder 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.v2.SolutionType.SOLUTION_TYPE_SEARCH].
repeated .google.cloud.retail.v2.SolutionType solution_types = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
- Returns:
- This builder for chaining.
-
getSolutionTypesValueList
public List<Integer> 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.v2.SolutionType.SOLUTION_TYPE_SEARCH].
repeated .google.cloud.retail.v2.SolutionType solution_types = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
- Specified by:
getSolutionTypesValueList
in 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.v2.SolutionType.SOLUTION_TYPE_SEARCH].
repeated .google.cloud.retail.v2.SolutionType solution_types = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
- Specified by:
getSolutionTypesValue
in 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
public Control.Builder setSolutionTypesValue(int index, int value)
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.v2.SolutionType.SOLUTION_TYPE_SEARCH].
repeated .google.cloud.retail.v2.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
public Control.Builder addSolutionTypesValue(int value)
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.v2.SolutionType.SOLUTION_TYPE_SEARCH].
repeated .google.cloud.retail.v2.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
public Control.Builder addAllSolutionTypesValue(Iterable<Integer> values)
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.v2.SolutionType.SOLUTION_TYPE_SEARCH].
repeated .google.cloud.retail.v2.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
public List<SearchSolutionUseCase> 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.v2.SearchSolutionUseCase.SEARCH_SOLUTION_USE_CASE_SEARCH] if not specified. Currently only allow one search_solution_use_case per control.
repeated .google.cloud.retail.v2.SearchSolutionUseCase search_solution_use_case = 7;
- Specified by:
getSearchSolutionUseCaseList
in 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.v2.SearchSolutionUseCase.SEARCH_SOLUTION_USE_CASE_SEARCH] if not specified. Currently only allow one search_solution_use_case per control.
repeated .google.cloud.retail.v2.SearchSolutionUseCase search_solution_use_case = 7;
- Specified by:
getSearchSolutionUseCaseCount
in interfaceControlOrBuilder
- Returns:
- The count of searchSolutionUseCase.
-
getSearchSolutionUseCase
public SearchSolutionUseCase getSearchSolutionUseCase(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.v2.SearchSolutionUseCase.SEARCH_SOLUTION_USE_CASE_SEARCH] if not specified. Currently only allow one search_solution_use_case per control.
repeated .google.cloud.retail.v2.SearchSolutionUseCase search_solution_use_case = 7;
- Specified by:
getSearchSolutionUseCase
in interfaceControlOrBuilder
- Parameters:
index
- The index of the element to return.- Returns:
- The searchSolutionUseCase at the given index.
-
setSearchSolutionUseCase
public Control.Builder setSearchSolutionUseCase(int index, SearchSolutionUseCase value)
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.v2.SearchSolutionUseCase.SEARCH_SOLUTION_USE_CASE_SEARCH] if not specified. Currently only allow one search_solution_use_case per control.
repeated .google.cloud.retail.v2.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
public Control.Builder addSearchSolutionUseCase(SearchSolutionUseCase value)
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.v2.SearchSolutionUseCase.SEARCH_SOLUTION_USE_CASE_SEARCH] if not specified. Currently only allow one search_solution_use_case per control.
repeated .google.cloud.retail.v2.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.v2.SearchSolutionUseCase.SEARCH_SOLUTION_USE_CASE_SEARCH] if not specified. Currently only allow one search_solution_use_case per control.
repeated .google.cloud.retail.v2.SearchSolutionUseCase search_solution_use_case = 7;
- Parameters:
values
- The searchSolutionUseCase to add.- Returns:
- This builder for chaining.
-
clearSearchSolutionUseCase
public Control.Builder 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.v2.SearchSolutionUseCase.SEARCH_SOLUTION_USE_CASE_SEARCH] if not specified. Currently only allow one search_solution_use_case per control.
repeated .google.cloud.retail.v2.SearchSolutionUseCase search_solution_use_case = 7;
- Returns:
- This builder for chaining.
-
getSearchSolutionUseCaseValueList
public List<Integer> 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.v2.SearchSolutionUseCase.SEARCH_SOLUTION_USE_CASE_SEARCH] if not specified. Currently only allow one search_solution_use_case per control.
repeated .google.cloud.retail.v2.SearchSolutionUseCase search_solution_use_case = 7;
- Specified by:
getSearchSolutionUseCaseValueList
in 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.v2.SearchSolutionUseCase.SEARCH_SOLUTION_USE_CASE_SEARCH] if not specified. Currently only allow one search_solution_use_case per control.
repeated .google.cloud.retail.v2.SearchSolutionUseCase search_solution_use_case = 7;
- Specified by:
getSearchSolutionUseCaseValue
in 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
public Control.Builder setSearchSolutionUseCaseValue(int index, int value)
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.v2.SearchSolutionUseCase.SEARCH_SOLUTION_USE_CASE_SEARCH] if not specified. Currently only allow one search_solution_use_case per control.
repeated .google.cloud.retail.v2.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
public Control.Builder addSearchSolutionUseCaseValue(int value)
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.v2.SearchSolutionUseCase.SEARCH_SOLUTION_USE_CASE_SEARCH] if not specified. Currently only allow one search_solution_use_case per control.
repeated .google.cloud.retail.v2.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
public Control.Builder addAllSearchSolutionUseCaseValue(Iterable<Integer> 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.v2.SearchSolutionUseCase.SEARCH_SOLUTION_USE_CASE_SEARCH] if not specified. Currently only allow one search_solution_use_case per control.
repeated .google.cloud.retail.v2.SearchSolutionUseCase search_solution_use_case = 7;
- Parameters:
values
- The enum numeric values on the wire for searchSolutionUseCase to add.- Returns:
- This builder for chaining.
-
setUnknownFields
public final Control.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<Control.Builder>
-
mergeUnknownFields
public final Control.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<Control.Builder>
-
-