Package com.google.cloud.retail.v2beta
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.v2beta.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.v2beta.ServingConfig] and affect search or recommendation results at serving time.
Protobuf typegoogle.cloud.retail.v2beta.Control
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description Control.BuilderaddAllAssociatedServingConfigIds(Iterable<String> values)Output only.Control.BuilderaddAllSearchSolutionUseCase(Iterable<? extends SearchSolutionUseCase> values)Specifies the use case for the control.Control.BuilderaddAllSearchSolutionUseCaseValue(Iterable<Integer> values)Specifies the use case for the control.Control.BuilderaddAllSolutionTypes(Iterable<? extends SolutionType> values)Required.Control.BuilderaddAllSolutionTypesValue(Iterable<Integer> values)Required.Control.BuilderaddAssociatedServingConfigIds(String value)Output only.Control.BuilderaddAssociatedServingConfigIdsBytes(com.google.protobuf.ByteString value)Output only.Control.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)Control.BuilderaddSearchSolutionUseCase(SearchSolutionUseCase value)Specifies the use case for the control.Control.BuilderaddSearchSolutionUseCaseValue(int value)Specifies the use case for the control.Control.BuilderaddSolutionTypes(SolutionType value)Required.Control.BuilderaddSolutionTypesValue(int value)Required.Controlbuild()ControlbuildPartial()Control.Builderclear()Control.BuilderclearAssociatedServingConfigIds()Output only.Control.BuilderclearControl()Control.BuilderclearDisplayName()Required.Control.BuilderclearFacetSpec()Deprecated.Control.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)Control.BuilderclearName()Immutable.Control.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)Control.BuilderclearRule()A rule control - a condition-action pair.Control.BuilderclearSearchSolutionUseCase()Specifies the use case for the control.Control.BuilderclearSolutionTypes()Required.Control.Builderclone()StringgetAssociatedServingConfigIds(int index)Output only.com.google.protobuf.ByteStringgetAssociatedServingConfigIdsBytes(int index)Output only.intgetAssociatedServingConfigIdsCount()Output only.com.google.protobuf.ProtocolStringListgetAssociatedServingConfigIdsList()Output only.Control.ControlCasegetControlCase()ControlgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()StringgetDisplayName()Required.com.google.protobuf.ByteStringgetDisplayNameBytes()Required.SearchRequest.FacetSpecgetFacetSpec()Deprecated.google.cloud.retail.v2beta.Control.facet_spec is deprecated.SearchRequest.FacetSpec.BuildergetFacetSpecBuilder()Deprecated.SearchRequest.FacetSpecOrBuildergetFacetSpecOrBuilder()Deprecated.StringgetName()Immutable.com.google.protobuf.ByteStringgetNameBytes()Immutable.RulegetRule()A rule control - a condition-action pair.Rule.BuildergetRuleBuilder()A rule control - a condition-action pair.RuleOrBuildergetRuleOrBuilder()A rule control - a condition-action pair.SearchSolutionUseCasegetSearchSolutionUseCase(int index)Specifies the use case for the control.intgetSearchSolutionUseCaseCount()Specifies the use case for the control.List<SearchSolutionUseCase>getSearchSolutionUseCaseList()Specifies the use case for the control.intgetSearchSolutionUseCaseValue(int index)Specifies the use case for the control.List<Integer>getSearchSolutionUseCaseValueList()Specifies the use case for the control.SolutionTypegetSolutionTypes(int index)Required.intgetSolutionTypesCount()Required.List<SolutionType>getSolutionTypesList()Required.intgetSolutionTypesValue(int index)Required.List<Integer>getSolutionTypesValueList()Required.booleanhasFacetSpec()Deprecated.google.cloud.retail.v2beta.Control.facet_spec is deprecated.booleanhasRule()A rule control - a condition-action pair.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()Control.BuildermergeFacetSpec(SearchRequest.FacetSpec value)Deprecated.Control.BuildermergeFrom(Control other)Control.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)Control.BuildermergeFrom(com.google.protobuf.Message other)Control.BuildermergeRule(Rule value)A rule control - a condition-action pair.Control.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)Control.BuildersetAssociatedServingConfigIds(int index, String value)Output only.Control.BuildersetDisplayName(String value)Required.Control.BuildersetDisplayNameBytes(com.google.protobuf.ByteString value)Required.Control.BuildersetFacetSpec(SearchRequest.FacetSpec value)Deprecated.Control.BuildersetFacetSpec(SearchRequest.FacetSpec.Builder builderForValue)Deprecated.Control.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)Control.BuildersetName(String value)Immutable.Control.BuildersetNameBytes(com.google.protobuf.ByteString value)Immutable.Control.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)Control.BuildersetRule(Rule value)A rule control - a condition-action pair.Control.BuildersetRule(Rule.Builder builderForValue)A rule control - a condition-action pair.Control.BuildersetSearchSolutionUseCase(int index, SearchSolutionUseCase value)Specifies the use case for the control.Control.BuildersetSearchSolutionUseCaseValue(int index, int value)Specifies the use case for the control.Control.BuildersetSolutionTypes(int index, SolutionType value)Required.Control.BuildersetSolutionTypesValue(int index, int value)Required.Control.BuildersetUnknownFields(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:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<Control.Builder>
-
clear
public Control.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.Builder<Control.Builder>
-
getDefaultInstanceForType
public Control getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public Control build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public Control buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public Control.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<Control.Builder>
-
setField
public Control.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Control.Builder>
-
clearField
public Control.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Control.Builder>
-
clearOneof
public Control.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<Control.Builder>
-
setRepeatedField
public Control.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Control.Builder>
-
addRepeatedField
public Control.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Control.Builder>
-
mergeFrom
public Control.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Control.Builder>
-
mergeFrom
public Control.Builder mergeFrom(Control other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin 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:
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
public Control.ControlCase getControlCase()
- Specified by:
getControlCasein interfaceControlOrBuilder
-
clearControl
public Control.Builder clearControl()
-
hasFacetSpec
@Deprecated public boolean hasFacetSpec()
Deprecated.google.cloud.retail.v2beta.Control.facet_spec is deprecated. See google/cloud/retail/v2beta/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.v2beta.SearchRequest.FacetSpec facet_spec = 3 [deprecated = true];- Specified by:
hasFacetSpecin interfaceControlOrBuilder- Returns:
- Whether the facetSpec field is set.
-
getFacetSpec
@Deprecated public SearchRequest.FacetSpec getFacetSpec()
Deprecated.google.cloud.retail.v2beta.Control.facet_spec is deprecated. See google/cloud/retail/v2beta/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.v2beta.SearchRequest.FacetSpec facet_spec = 3 [deprecated = true];- Specified by:
getFacetSpecin interfaceControlOrBuilder- Returns:
- The facetSpec.
-
setFacetSpec
@Deprecated public Control.Builder setFacetSpec(SearchRequest.FacetSpec value)
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.v2beta.SearchRequest.FacetSpec facet_spec = 3 [deprecated = true];
-
setFacetSpec
@Deprecated public Control.Builder setFacetSpec(SearchRequest.FacetSpec.Builder builderForValue)
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.v2beta.SearchRequest.FacetSpec facet_spec = 3 [deprecated = true];
-
mergeFacetSpec
@Deprecated public Control.Builder mergeFacetSpec(SearchRequest.FacetSpec value)
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.v2beta.SearchRequest.FacetSpec facet_spec = 3 [deprecated = true];
-
clearFacetSpec
@Deprecated public Control.Builder 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.v2beta.SearchRequest.FacetSpec facet_spec = 3 [deprecated = true];
-
getFacetSpecBuilder
@Deprecated public SearchRequest.FacetSpec.Builder 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.v2beta.SearchRequest.FacetSpec facet_spec = 3 [deprecated = true];
-
getFacetSpecOrBuilder
@Deprecated public SearchRequest.FacetSpecOrBuilder 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.v2beta.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.v2beta.Rule rule = 4;- Specified by:
hasRulein 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.v2beta.Rule rule = 4;- Specified by:
getRulein 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.v2beta.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.v2beta.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.v2beta.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.v2beta.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.v2beta.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.v2beta.Rule rule = 4;- Specified by:
getRuleOrBuilderin interfaceControlOrBuilder
-
getName
public String 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
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:
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
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.v2beta.ServingConfig] ids that are associated with this control in the same [Catalog][google.cloud.retail.v2beta.Catalog]. Note the association is managed via the [ServingConfig][google.cloud.retail.v2beta.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.v2beta.ServingConfig] ids that are associated with this control in the same [Catalog][google.cloud.retail.v2beta.Catalog]. Note the association is managed via the [ServingConfig][google.cloud.retail.v2beta.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
public String getAssociatedServingConfigIds(int index)
Output only. List of [serving config][google.cloud.retail.v2beta.ServingConfig] ids that are associated with this control in the same [Catalog][google.cloud.retail.v2beta.Catalog]. Note the association is managed via the [ServingConfig][google.cloud.retail.v2beta.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.v2beta.ServingConfig] ids that are associated with this control in the same [Catalog][google.cloud.retail.v2beta.Catalog]. Note the association is managed via the [ServingConfig][google.cloud.retail.v2beta.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
public Control.Builder setAssociatedServingConfigIds(int index, String value)
Output only. List of [serving config][google.cloud.retail.v2beta.ServingConfig] ids that are associated with this control in the same [Catalog][google.cloud.retail.v2beta.Catalog]. Note the association is managed via the [ServingConfig][google.cloud.retail.v2beta.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.v2beta.ServingConfig] ids that are associated with this control in the same [Catalog][google.cloud.retail.v2beta.Catalog]. Note the association is managed via the [ServingConfig][google.cloud.retail.v2beta.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.v2beta.ServingConfig] ids that are associated with this control in the same [Catalog][google.cloud.retail.v2beta.Catalog]. Note the association is managed via the [ServingConfig][google.cloud.retail.v2beta.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.v2beta.ServingConfig] ids that are associated with this control in the same [Catalog][google.cloud.retail.v2beta.Catalog]. Note the association is managed via the [ServingConfig][google.cloud.retail.v2beta.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.v2beta.ServingConfig] ids that are associated with this control in the same [Catalog][google.cloud.retail.v2beta.Catalog]. Note the association is managed via the [ServingConfig][google.cloud.retail.v2beta.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.v2beta.SolutionType.SOLUTION_TYPE_SEARCH].
repeated .google.cloud.retail.v2beta.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.v2beta.SolutionType.SOLUTION_TYPE_SEARCH].
repeated .google.cloud.retail.v2beta.SolutionType solution_types = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];- Specified by:
getSolutionTypesCountin 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.v2beta.SolutionType.SOLUTION_TYPE_SEARCH].
repeated .google.cloud.retail.v2beta.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
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.v2beta.SolutionType.SOLUTION_TYPE_SEARCH].
repeated .google.cloud.retail.v2beta.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.v2beta.SolutionType.SOLUTION_TYPE_SEARCH].
repeated .google.cloud.retail.v2beta.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.v2beta.SolutionType.SOLUTION_TYPE_SEARCH].
repeated .google.cloud.retail.v2beta.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.v2beta.SolutionType.SOLUTION_TYPE_SEARCH].
repeated .google.cloud.retail.v2beta.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.v2beta.SolutionType.SOLUTION_TYPE_SEARCH].
repeated .google.cloud.retail.v2beta.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.v2beta.SolutionType.SOLUTION_TYPE_SEARCH].
repeated .google.cloud.retail.v2beta.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
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.v2beta.SolutionType.SOLUTION_TYPE_SEARCH].
repeated .google.cloud.retail.v2beta.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.v2beta.SolutionType.SOLUTION_TYPE_SEARCH].
repeated .google.cloud.retail.v2beta.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.v2beta.SolutionType.SOLUTION_TYPE_SEARCH].
repeated .google.cloud.retail.v2beta.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.v2beta.SearchSolutionUseCase.SEARCH_SOLUTION_USE_CASE_SEARCH] if not specified. Currently only allow one search_solution_use_case per control.
repeated .google.cloud.retail.v2beta.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.v2beta.SearchSolutionUseCase.SEARCH_SOLUTION_USE_CASE_SEARCH] if not specified. Currently only allow one search_solution_use_case per control.
repeated .google.cloud.retail.v2beta.SearchSolutionUseCase search_solution_use_case = 7;- Specified by:
getSearchSolutionUseCaseCountin 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.v2beta.SearchSolutionUseCase.SEARCH_SOLUTION_USE_CASE_SEARCH] if not specified. Currently only allow one search_solution_use_case per control.
repeated .google.cloud.retail.v2beta.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
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.v2beta.SearchSolutionUseCase.SEARCH_SOLUTION_USE_CASE_SEARCH] if not specified. Currently only allow one search_solution_use_case per control.
repeated .google.cloud.retail.v2beta.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.v2beta.SearchSolutionUseCase.SEARCH_SOLUTION_USE_CASE_SEARCH] if not specified. Currently only allow one search_solution_use_case per control.
repeated .google.cloud.retail.v2beta.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.v2beta.SearchSolutionUseCase.SEARCH_SOLUTION_USE_CASE_SEARCH] if not specified. Currently only allow one search_solution_use_case per control.
repeated .google.cloud.retail.v2beta.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.v2beta.SearchSolutionUseCase.SEARCH_SOLUTION_USE_CASE_SEARCH] if not specified. Currently only allow one search_solution_use_case per control.
repeated .google.cloud.retail.v2beta.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.v2beta.SearchSolutionUseCase.SEARCH_SOLUTION_USE_CASE_SEARCH] if not specified. Currently only allow one search_solution_use_case per control.
repeated .google.cloud.retail.v2beta.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.v2beta.SearchSolutionUseCase.SEARCH_SOLUTION_USE_CASE_SEARCH] if not specified. Currently only allow one search_solution_use_case per control.
repeated .google.cloud.retail.v2beta.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
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.v2beta.SearchSolutionUseCase.SEARCH_SOLUTION_USE_CASE_SEARCH] if not specified. Currently only allow one search_solution_use_case per control.
repeated .google.cloud.retail.v2beta.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.v2beta.SearchSolutionUseCase.SEARCH_SOLUTION_USE_CASE_SEARCH] if not specified. Currently only allow one search_solution_use_case per control.
repeated .google.cloud.retail.v2beta.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.v2beta.SearchSolutionUseCase.SEARCH_SOLUTION_USE_CASE_SEARCH] if not specified. Currently only allow one search_solution_use_case per control.
repeated .google.cloud.retail.v2beta.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:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Control.Builder>
-
mergeUnknownFields
public final Control.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Control.Builder>
-
-