Package com.google.cloud.retail.v2alpha
Class ServingConfig.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<ServingConfig.Builder>
-
- com.google.cloud.retail.v2alpha.ServingConfig.Builder
-
- All Implemented Interfaces:
ServingConfigOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- ServingConfig
public static final class ServingConfig.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<ServingConfig.Builder> implements ServingConfigOrBuilder
Configures metadata that is used to generate serving time results (e.g. search results or recommendation predictions).
Protobuf typegoogle.cloud.retail.v2alpha.ServingConfig
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ServingConfig.BuilderaddAllBoostControlIds(Iterable<String> values)Condition boost specifications.ServingConfig.BuilderaddAllDoNotAssociateControlIds(Iterable<String> values)Condition do not associate specifications.ServingConfig.BuilderaddAllFacetControlIds(Iterable<String> values)Facet specifications for faceted search.ServingConfig.BuilderaddAllFilterControlIds(Iterable<String> values)Condition filter specifications.ServingConfig.BuilderaddAllIgnoreControlIds(Iterable<String> values)Condition ignore specifications.ServingConfig.BuilderaddAllOnewaySynonymsControlIds(Iterable<String> values)Condition oneway synonyms specifications.ServingConfig.BuilderaddAllRedirectControlIds(Iterable<String> values)Condition redirect specifications.ServingConfig.BuilderaddAllReplacementControlIds(Iterable<String> values)Condition replacement specifications.ServingConfig.BuilderaddAllSolutionTypes(Iterable<? extends SolutionType> values)Required.ServingConfig.BuilderaddAllSolutionTypesValue(Iterable<Integer> values)Required.ServingConfig.BuilderaddAllTwowaySynonymsControlIds(Iterable<String> values)Condition synonyms specifications.ServingConfig.BuilderaddBoostControlIds(String value)Condition boost specifications.ServingConfig.BuilderaddBoostControlIdsBytes(com.google.protobuf.ByteString value)Condition boost specifications.ServingConfig.BuilderaddDoNotAssociateControlIds(String value)Condition do not associate specifications.ServingConfig.BuilderaddDoNotAssociateControlIdsBytes(com.google.protobuf.ByteString value)Condition do not associate specifications.ServingConfig.BuilderaddFacetControlIds(String value)Facet specifications for faceted search.ServingConfig.BuilderaddFacetControlIdsBytes(com.google.protobuf.ByteString value)Facet specifications for faceted search.ServingConfig.BuilderaddFilterControlIds(String value)Condition filter specifications.ServingConfig.BuilderaddFilterControlIdsBytes(com.google.protobuf.ByteString value)Condition filter specifications.ServingConfig.BuilderaddIgnoreControlIds(String value)Condition ignore specifications.ServingConfig.BuilderaddIgnoreControlIdsBytes(com.google.protobuf.ByteString value)Condition ignore specifications.ServingConfig.BuilderaddOnewaySynonymsControlIds(String value)Condition oneway synonyms specifications.ServingConfig.BuilderaddOnewaySynonymsControlIdsBytes(com.google.protobuf.ByteString value)Condition oneway synonyms specifications.ServingConfig.BuilderaddRedirectControlIds(String value)Condition redirect specifications.ServingConfig.BuilderaddRedirectControlIdsBytes(com.google.protobuf.ByteString value)Condition redirect specifications.ServingConfig.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)ServingConfig.BuilderaddReplacementControlIds(String value)Condition replacement specifications.ServingConfig.BuilderaddReplacementControlIdsBytes(com.google.protobuf.ByteString value)Condition replacement specifications.ServingConfig.BuilderaddSolutionTypes(SolutionType value)Required.ServingConfig.BuilderaddSolutionTypesValue(int value)Required.ServingConfig.BuilderaddTwowaySynonymsControlIds(String value)Condition synonyms specifications.ServingConfig.BuilderaddTwowaySynonymsControlIdsBytes(com.google.protobuf.ByteString value)Condition synonyms specifications.ServingConfigbuild()ServingConfigbuildPartial()ServingConfig.Builderclear()ServingConfig.BuilderclearBoostControlIds()Condition boost specifications.ServingConfig.BuilderclearDisplayName()Required.ServingConfig.BuilderclearDiversityLevel()How much diversity to use in recommendation model results e.g.ServingConfig.BuilderclearDiversityType()What kind of diversity to use - data driven or rule based.ServingConfig.BuilderclearDoNotAssociateControlIds()Condition do not associate specifications.ServingConfig.BuilderclearDynamicFacetSpec()The specification for dynamically generated facets.ServingConfig.BuilderclearEnableCategoryFilterLevel()Whether to add additional category filters on the `similar-items` model.ServingConfig.BuilderclearFacetControlIds()Facet specifications for faceted search.ServingConfig.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)ServingConfig.BuilderclearFilterControlIds()Condition filter specifications.ServingConfig.BuilderclearIgnoreControlIds()Condition ignore specifications.ServingConfig.BuilderclearModelId()The id of the model in the same [Catalog][google.cloud.retail.v2alpha.Catalog] to use at serving time.ServingConfig.BuilderclearName()Immutable.ServingConfig.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)ServingConfig.BuilderclearOnewaySynonymsControlIds()Condition oneway synonyms specifications.ServingConfig.BuilderclearPersonalizationSpec()The specification for personalization spec.ServingConfig.BuilderclearPriceRerankingLevel()How much price ranking we want in serving results.ServingConfig.BuilderclearRedirectControlIds()Condition redirect specifications.ServingConfig.BuilderclearReplacementControlIds()Condition replacement specifications.ServingConfig.BuilderclearSolutionTypes()Required.ServingConfig.BuilderclearTwowaySynonymsControlIds()Condition synonyms specifications.ServingConfig.Builderclone()StringgetBoostControlIds(int index)Condition boost specifications.com.google.protobuf.ByteStringgetBoostControlIdsBytes(int index)Condition boost specifications.intgetBoostControlIdsCount()Condition boost specifications.com.google.protobuf.ProtocolStringListgetBoostControlIdsList()Condition boost specifications.ServingConfiggetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()StringgetDisplayName()Required.com.google.protobuf.ByteStringgetDisplayNameBytes()Required.StringgetDiversityLevel()How much diversity to use in recommendation model results e.g.com.google.protobuf.ByteStringgetDiversityLevelBytes()How much diversity to use in recommendation model results e.g.ServingConfig.DiversityTypegetDiversityType()What kind of diversity to use - data driven or rule based.intgetDiversityTypeValue()What kind of diversity to use - data driven or rule based.StringgetDoNotAssociateControlIds(int index)Condition do not associate specifications.com.google.protobuf.ByteStringgetDoNotAssociateControlIdsBytes(int index)Condition do not associate specifications.intgetDoNotAssociateControlIdsCount()Condition do not associate specifications.com.google.protobuf.ProtocolStringListgetDoNotAssociateControlIdsList()Condition do not associate specifications.SearchRequest.DynamicFacetSpecgetDynamicFacetSpec()The specification for dynamically generated facets.SearchRequest.DynamicFacetSpec.BuildergetDynamicFacetSpecBuilder()The specification for dynamically generated facets.SearchRequest.DynamicFacetSpecOrBuildergetDynamicFacetSpecOrBuilder()The specification for dynamically generated facets.StringgetEnableCategoryFilterLevel()Whether to add additional category filters on the `similar-items` model.com.google.protobuf.ByteStringgetEnableCategoryFilterLevelBytes()Whether to add additional category filters on the `similar-items` model.StringgetFacetControlIds(int index)Facet specifications for faceted search.com.google.protobuf.ByteStringgetFacetControlIdsBytes(int index)Facet specifications for faceted search.intgetFacetControlIdsCount()Facet specifications for faceted search.com.google.protobuf.ProtocolStringListgetFacetControlIdsList()Facet specifications for faceted search.StringgetFilterControlIds(int index)Condition filter specifications.com.google.protobuf.ByteStringgetFilterControlIdsBytes(int index)Condition filter specifications.intgetFilterControlIdsCount()Condition filter specifications.com.google.protobuf.ProtocolStringListgetFilterControlIdsList()Condition filter specifications.StringgetIgnoreControlIds(int index)Condition ignore specifications.com.google.protobuf.ByteStringgetIgnoreControlIdsBytes(int index)Condition ignore specifications.intgetIgnoreControlIdsCount()Condition ignore specifications.com.google.protobuf.ProtocolStringListgetIgnoreControlIdsList()Condition ignore specifications.StringgetModelId()The id of the model in the same [Catalog][google.cloud.retail.v2alpha.Catalog] to use at serving time.com.google.protobuf.ByteStringgetModelIdBytes()The id of the model in the same [Catalog][google.cloud.retail.v2alpha.Catalog] to use at serving time.StringgetName()Immutable.com.google.protobuf.ByteStringgetNameBytes()Immutable.StringgetOnewaySynonymsControlIds(int index)Condition oneway synonyms specifications.com.google.protobuf.ByteStringgetOnewaySynonymsControlIdsBytes(int index)Condition oneway synonyms specifications.intgetOnewaySynonymsControlIdsCount()Condition oneway synonyms specifications.com.google.protobuf.ProtocolStringListgetOnewaySynonymsControlIdsList()Condition oneway synonyms specifications.SearchRequest.PersonalizationSpecgetPersonalizationSpec()The specification for personalization spec.SearchRequest.PersonalizationSpec.BuildergetPersonalizationSpecBuilder()The specification for personalization spec.SearchRequest.PersonalizationSpecOrBuildergetPersonalizationSpecOrBuilder()The specification for personalization spec.StringgetPriceRerankingLevel()How much price ranking we want in serving results.com.google.protobuf.ByteStringgetPriceRerankingLevelBytes()How much price ranking we want in serving results.StringgetRedirectControlIds(int index)Condition redirect specifications.com.google.protobuf.ByteStringgetRedirectControlIdsBytes(int index)Condition redirect specifications.intgetRedirectControlIdsCount()Condition redirect specifications.com.google.protobuf.ProtocolStringListgetRedirectControlIdsList()Condition redirect specifications.StringgetReplacementControlIds(int index)Condition replacement specifications.com.google.protobuf.ByteStringgetReplacementControlIdsBytes(int index)Condition replacement specifications.intgetReplacementControlIdsCount()Condition replacement specifications.com.google.protobuf.ProtocolStringListgetReplacementControlIdsList()Condition replacement specifications.SolutionTypegetSolutionTypes(int index)Required.intgetSolutionTypesCount()Required.List<SolutionType>getSolutionTypesList()Required.intgetSolutionTypesValue(int index)Required.List<Integer>getSolutionTypesValueList()Required.StringgetTwowaySynonymsControlIds(int index)Condition synonyms specifications.com.google.protobuf.ByteStringgetTwowaySynonymsControlIdsBytes(int index)Condition synonyms specifications.intgetTwowaySynonymsControlIdsCount()Condition synonyms specifications.com.google.protobuf.ProtocolStringListgetTwowaySynonymsControlIdsList()Condition synonyms specifications.booleanhasDynamicFacetSpec()The specification for dynamically generated facets.booleanhasPersonalizationSpec()The specification for personalization spec.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()ServingConfig.BuildermergeDynamicFacetSpec(SearchRequest.DynamicFacetSpec value)The specification for dynamically generated facets.ServingConfig.BuildermergeFrom(ServingConfig other)ServingConfig.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)ServingConfig.BuildermergeFrom(com.google.protobuf.Message other)ServingConfig.BuildermergePersonalizationSpec(SearchRequest.PersonalizationSpec value)The specification for personalization spec.ServingConfig.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)ServingConfig.BuildersetBoostControlIds(int index, String value)Condition boost specifications.ServingConfig.BuildersetDisplayName(String value)Required.ServingConfig.BuildersetDisplayNameBytes(com.google.protobuf.ByteString value)Required.ServingConfig.BuildersetDiversityLevel(String value)How much diversity to use in recommendation model results e.g.ServingConfig.BuildersetDiversityLevelBytes(com.google.protobuf.ByteString value)How much diversity to use in recommendation model results e.g.ServingConfig.BuildersetDiversityType(ServingConfig.DiversityType value)What kind of diversity to use - data driven or rule based.ServingConfig.BuildersetDiversityTypeValue(int value)What kind of diversity to use - data driven or rule based.ServingConfig.BuildersetDoNotAssociateControlIds(int index, String value)Condition do not associate specifications.ServingConfig.BuildersetDynamicFacetSpec(SearchRequest.DynamicFacetSpec value)The specification for dynamically generated facets.ServingConfig.BuildersetDynamicFacetSpec(SearchRequest.DynamicFacetSpec.Builder builderForValue)The specification for dynamically generated facets.ServingConfig.BuildersetEnableCategoryFilterLevel(String value)Whether to add additional category filters on the `similar-items` model.ServingConfig.BuildersetEnableCategoryFilterLevelBytes(com.google.protobuf.ByteString value)Whether to add additional category filters on the `similar-items` model.ServingConfig.BuildersetFacetControlIds(int index, String value)Facet specifications for faceted search.ServingConfig.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)ServingConfig.BuildersetFilterControlIds(int index, String value)Condition filter specifications.ServingConfig.BuildersetIgnoreControlIds(int index, String value)Condition ignore specifications.ServingConfig.BuildersetModelId(String value)The id of the model in the same [Catalog][google.cloud.retail.v2alpha.Catalog] to use at serving time.ServingConfig.BuildersetModelIdBytes(com.google.protobuf.ByteString value)The id of the model in the same [Catalog][google.cloud.retail.v2alpha.Catalog] to use at serving time.ServingConfig.BuildersetName(String value)Immutable.ServingConfig.BuildersetNameBytes(com.google.protobuf.ByteString value)Immutable.ServingConfig.BuildersetOnewaySynonymsControlIds(int index, String value)Condition oneway synonyms specifications.ServingConfig.BuildersetPersonalizationSpec(SearchRequest.PersonalizationSpec value)The specification for personalization spec.ServingConfig.BuildersetPersonalizationSpec(SearchRequest.PersonalizationSpec.Builder builderForValue)The specification for personalization spec.ServingConfig.BuildersetPriceRerankingLevel(String value)How much price ranking we want in serving results.ServingConfig.BuildersetPriceRerankingLevelBytes(com.google.protobuf.ByteString value)How much price ranking we want in serving results.ServingConfig.BuildersetRedirectControlIds(int index, String value)Condition redirect specifications.ServingConfig.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)ServingConfig.BuildersetReplacementControlIds(int index, String value)Condition replacement specifications.ServingConfig.BuildersetSolutionTypes(int index, SolutionType value)Required.ServingConfig.BuildersetSolutionTypesValue(int index, int value)Required.ServingConfig.BuildersetTwowaySynonymsControlIds(int index, String value)Condition synonyms specifications.ServingConfig.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<ServingConfig.Builder>
-
clear
public ServingConfig.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<ServingConfig.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<ServingConfig.Builder>
-
getDefaultInstanceForType
public ServingConfig getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public ServingConfig build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public ServingConfig buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public ServingConfig.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<ServingConfig.Builder>
-
setField
public ServingConfig.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<ServingConfig.Builder>
-
clearField
public ServingConfig.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ServingConfig.Builder>
-
clearOneof
public ServingConfig.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<ServingConfig.Builder>
-
setRepeatedField
public ServingConfig.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<ServingConfig.Builder>
-
addRepeatedField
public ServingConfig.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<ServingConfig.Builder>
-
mergeFrom
public ServingConfig.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ServingConfig.Builder>
-
mergeFrom
public ServingConfig.Builder mergeFrom(ServingConfig other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<ServingConfig.Builder>
-
mergeFrom
public ServingConfig.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<ServingConfig.Builder>- Throws:
IOException
-
getName
public String getName()
Immutable. Fully qualified name `projects/*/locations/global/catalogs/*/servingConfig/*`
string name = 1 [(.google.api.field_behavior) = IMMUTABLE];- Specified by:
getNamein interfaceServingConfigOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()
Immutable. Fully qualified name `projects/*/locations/global/catalogs/*/servingConfig/*`
string name = 1 [(.google.api.field_behavior) = IMMUTABLE];- Specified by:
getNameBytesin interfaceServingConfigOrBuilder- Returns:
- The bytes for name.
-
setName
public ServingConfig.Builder setName(String value)
Immutable. Fully qualified name `projects/*/locations/global/catalogs/*/servingConfig/*`
string name = 1 [(.google.api.field_behavior) = IMMUTABLE];- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
clearName
public ServingConfig.Builder clearName()
Immutable. Fully qualified name `projects/*/locations/global/catalogs/*/servingConfig/*`
string name = 1 [(.google.api.field_behavior) = IMMUTABLE];- Returns:
- This builder for chaining.
-
setNameBytes
public ServingConfig.Builder setNameBytes(com.google.protobuf.ByteString value)
Immutable. Fully qualified name `projects/*/locations/global/catalogs/*/servingConfig/*`
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 serving config 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 returned.
string display_name = 2 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getDisplayNamein interfaceServingConfigOrBuilder- Returns:
- The displayName.
-
getDisplayNameBytes
public com.google.protobuf.ByteString getDisplayNameBytes()
Required. The human readable serving config 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 returned.
string display_name = 2 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getDisplayNameBytesin interfaceServingConfigOrBuilder- Returns:
- The bytes for displayName.
-
setDisplayName
public ServingConfig.Builder setDisplayName(String value)
Required. The human readable serving config 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 returned.
string display_name = 2 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The displayName to set.- Returns:
- This builder for chaining.
-
clearDisplayName
public ServingConfig.Builder clearDisplayName()
Required. The human readable serving config 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 returned.
string display_name = 2 [(.google.api.field_behavior) = REQUIRED];- Returns:
- This builder for chaining.
-
setDisplayNameBytes
public ServingConfig.Builder setDisplayNameBytes(com.google.protobuf.ByteString value)
Required. The human readable serving config 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 returned.
string display_name = 2 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The bytes for displayName to set.- Returns:
- This builder for chaining.
-
getModelId
public String getModelId()
The id of the model in the same [Catalog][google.cloud.retail.v2alpha.Catalog] to use at serving time. Currently only RecommendationModels are supported: https://cloud.google.com/retail/recommendations-ai/docs/create-models Can be changed but only to a compatible model (e.g. others-you-may-like CTR to others-you-may-like CVR). Required when [solution_types][google.cloud.retail.v2alpha.ServingConfig.solution_types] is [SOLUTION_TYPE_RECOMMENDATION][google.cloud.retail.v2main.SolutionType.SOLUTION_TYPE_RECOMMENDATION].
string model_id = 3;- Specified by:
getModelIdin interfaceServingConfigOrBuilder- Returns:
- The modelId.
-
getModelIdBytes
public com.google.protobuf.ByteString getModelIdBytes()
The id of the model in the same [Catalog][google.cloud.retail.v2alpha.Catalog] to use at serving time. Currently only RecommendationModels are supported: https://cloud.google.com/retail/recommendations-ai/docs/create-models Can be changed but only to a compatible model (e.g. others-you-may-like CTR to others-you-may-like CVR). Required when [solution_types][google.cloud.retail.v2alpha.ServingConfig.solution_types] is [SOLUTION_TYPE_RECOMMENDATION][google.cloud.retail.v2main.SolutionType.SOLUTION_TYPE_RECOMMENDATION].
string model_id = 3;- Specified by:
getModelIdBytesin interfaceServingConfigOrBuilder- Returns:
- The bytes for modelId.
-
setModelId
public ServingConfig.Builder setModelId(String value)
The id of the model in the same [Catalog][google.cloud.retail.v2alpha.Catalog] to use at serving time. Currently only RecommendationModels are supported: https://cloud.google.com/retail/recommendations-ai/docs/create-models Can be changed but only to a compatible model (e.g. others-you-may-like CTR to others-you-may-like CVR). Required when [solution_types][google.cloud.retail.v2alpha.ServingConfig.solution_types] is [SOLUTION_TYPE_RECOMMENDATION][google.cloud.retail.v2main.SolutionType.SOLUTION_TYPE_RECOMMENDATION].
string model_id = 3;- Parameters:
value- The modelId to set.- Returns:
- This builder for chaining.
-
clearModelId
public ServingConfig.Builder clearModelId()
The id of the model in the same [Catalog][google.cloud.retail.v2alpha.Catalog] to use at serving time. Currently only RecommendationModels are supported: https://cloud.google.com/retail/recommendations-ai/docs/create-models Can be changed but only to a compatible model (e.g. others-you-may-like CTR to others-you-may-like CVR). Required when [solution_types][google.cloud.retail.v2alpha.ServingConfig.solution_types] is [SOLUTION_TYPE_RECOMMENDATION][google.cloud.retail.v2main.SolutionType.SOLUTION_TYPE_RECOMMENDATION].
string model_id = 3;- Returns:
- This builder for chaining.
-
setModelIdBytes
public ServingConfig.Builder setModelIdBytes(com.google.protobuf.ByteString value)
The id of the model in the same [Catalog][google.cloud.retail.v2alpha.Catalog] to use at serving time. Currently only RecommendationModels are supported: https://cloud.google.com/retail/recommendations-ai/docs/create-models Can be changed but only to a compatible model (e.g. others-you-may-like CTR to others-you-may-like CVR). Required when [solution_types][google.cloud.retail.v2alpha.ServingConfig.solution_types] is [SOLUTION_TYPE_RECOMMENDATION][google.cloud.retail.v2main.SolutionType.SOLUTION_TYPE_RECOMMENDATION].
string model_id = 3;- Parameters:
value- The bytes for modelId to set.- Returns:
- This builder for chaining.
-
getPriceRerankingLevel
public String getPriceRerankingLevel()
How much price ranking we want in serving results. Price reranking causes product items with a similar recommendation probability to be ordered by price, with the highest-priced items first. This setting could result in a decrease in click-through and conversion rates. Allowed values are: * `no-price-reranking` * `low-price-reranking` * `medium-price-reranking` * `high-price-reranking` If not specified, we choose default based on model type. Default value: `no-price-reranking`. Can only be set if [solution_types][google.cloud.retail.v2alpha.ServingConfig.solution_types] is [SOLUTION_TYPE_RECOMMENDATION][google.cloud.retail.v2main.SolutionType.SOLUTION_TYPE_RECOMMENDATION].
string price_reranking_level = 4;- Specified by:
getPriceRerankingLevelin interfaceServingConfigOrBuilder- Returns:
- The priceRerankingLevel.
-
getPriceRerankingLevelBytes
public com.google.protobuf.ByteString getPriceRerankingLevelBytes()
How much price ranking we want in serving results. Price reranking causes product items with a similar recommendation probability to be ordered by price, with the highest-priced items first. This setting could result in a decrease in click-through and conversion rates. Allowed values are: * `no-price-reranking` * `low-price-reranking` * `medium-price-reranking` * `high-price-reranking` If not specified, we choose default based on model type. Default value: `no-price-reranking`. Can only be set if [solution_types][google.cloud.retail.v2alpha.ServingConfig.solution_types] is [SOLUTION_TYPE_RECOMMENDATION][google.cloud.retail.v2main.SolutionType.SOLUTION_TYPE_RECOMMENDATION].
string price_reranking_level = 4;- Specified by:
getPriceRerankingLevelBytesin interfaceServingConfigOrBuilder- Returns:
- The bytes for priceRerankingLevel.
-
setPriceRerankingLevel
public ServingConfig.Builder setPriceRerankingLevel(String value)
How much price ranking we want in serving results. Price reranking causes product items with a similar recommendation probability to be ordered by price, with the highest-priced items first. This setting could result in a decrease in click-through and conversion rates. Allowed values are: * `no-price-reranking` * `low-price-reranking` * `medium-price-reranking` * `high-price-reranking` If not specified, we choose default based on model type. Default value: `no-price-reranking`. Can only be set if [solution_types][google.cloud.retail.v2alpha.ServingConfig.solution_types] is [SOLUTION_TYPE_RECOMMENDATION][google.cloud.retail.v2main.SolutionType.SOLUTION_TYPE_RECOMMENDATION].
string price_reranking_level = 4;- Parameters:
value- The priceRerankingLevel to set.- Returns:
- This builder for chaining.
-
clearPriceRerankingLevel
public ServingConfig.Builder clearPriceRerankingLevel()
How much price ranking we want in serving results. Price reranking causes product items with a similar recommendation probability to be ordered by price, with the highest-priced items first. This setting could result in a decrease in click-through and conversion rates. Allowed values are: * `no-price-reranking` * `low-price-reranking` * `medium-price-reranking` * `high-price-reranking` If not specified, we choose default based on model type. Default value: `no-price-reranking`. Can only be set if [solution_types][google.cloud.retail.v2alpha.ServingConfig.solution_types] is [SOLUTION_TYPE_RECOMMENDATION][google.cloud.retail.v2main.SolutionType.SOLUTION_TYPE_RECOMMENDATION].
string price_reranking_level = 4;- Returns:
- This builder for chaining.
-
setPriceRerankingLevelBytes
public ServingConfig.Builder setPriceRerankingLevelBytes(com.google.protobuf.ByteString value)
How much price ranking we want in serving results. Price reranking causes product items with a similar recommendation probability to be ordered by price, with the highest-priced items first. This setting could result in a decrease in click-through and conversion rates. Allowed values are: * `no-price-reranking` * `low-price-reranking` * `medium-price-reranking` * `high-price-reranking` If not specified, we choose default based on model type. Default value: `no-price-reranking`. Can only be set if [solution_types][google.cloud.retail.v2alpha.ServingConfig.solution_types] is [SOLUTION_TYPE_RECOMMENDATION][google.cloud.retail.v2main.SolutionType.SOLUTION_TYPE_RECOMMENDATION].
string price_reranking_level = 4;- Parameters:
value- The bytes for priceRerankingLevel to set.- Returns:
- This builder for chaining.
-
getFacetControlIdsList
public com.google.protobuf.ProtocolStringList getFacetControlIdsList()
Facet specifications for faceted search. If empty, no facets are returned. The ids refer to the ids of [Control][google.cloud.retail.v2alpha.Control] resources with only the Facet control set. These controls are assumed to be in the same [Catalog][google.cloud.retail.v2alpha.Catalog] as the [ServingConfig][google.cloud.retail.v2alpha.ServingConfig]. A maximum of 100 values are allowed. Otherwise, an INVALID_ARGUMENT error is returned. Can only be set if [solution_types][google.cloud.retail.v2alpha.ServingConfig.solution_types] is [SOLUTION_TYPE_SEARCH][google.cloud.retail.v2main.SolutionType.SOLUTION_TYPE_SEARCH].
repeated string facet_control_ids = 5;- Specified by:
getFacetControlIdsListin interfaceServingConfigOrBuilder- Returns:
- A list containing the facetControlIds.
-
getFacetControlIdsCount
public int getFacetControlIdsCount()
Facet specifications for faceted search. If empty, no facets are returned. The ids refer to the ids of [Control][google.cloud.retail.v2alpha.Control] resources with only the Facet control set. These controls are assumed to be in the same [Catalog][google.cloud.retail.v2alpha.Catalog] as the [ServingConfig][google.cloud.retail.v2alpha.ServingConfig]. A maximum of 100 values are allowed. Otherwise, an INVALID_ARGUMENT error is returned. Can only be set if [solution_types][google.cloud.retail.v2alpha.ServingConfig.solution_types] is [SOLUTION_TYPE_SEARCH][google.cloud.retail.v2main.SolutionType.SOLUTION_TYPE_SEARCH].
repeated string facet_control_ids = 5;- Specified by:
getFacetControlIdsCountin interfaceServingConfigOrBuilder- Returns:
- The count of facetControlIds.
-
getFacetControlIds
public String getFacetControlIds(int index)
Facet specifications for faceted search. If empty, no facets are returned. The ids refer to the ids of [Control][google.cloud.retail.v2alpha.Control] resources with only the Facet control set. These controls are assumed to be in the same [Catalog][google.cloud.retail.v2alpha.Catalog] as the [ServingConfig][google.cloud.retail.v2alpha.ServingConfig]. A maximum of 100 values are allowed. Otherwise, an INVALID_ARGUMENT error is returned. Can only be set if [solution_types][google.cloud.retail.v2alpha.ServingConfig.solution_types] is [SOLUTION_TYPE_SEARCH][google.cloud.retail.v2main.SolutionType.SOLUTION_TYPE_SEARCH].
repeated string facet_control_ids = 5;- Specified by:
getFacetControlIdsin interfaceServingConfigOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The facetControlIds at the given index.
-
getFacetControlIdsBytes
public com.google.protobuf.ByteString getFacetControlIdsBytes(int index)
Facet specifications for faceted search. If empty, no facets are returned. The ids refer to the ids of [Control][google.cloud.retail.v2alpha.Control] resources with only the Facet control set. These controls are assumed to be in the same [Catalog][google.cloud.retail.v2alpha.Catalog] as the [ServingConfig][google.cloud.retail.v2alpha.ServingConfig]. A maximum of 100 values are allowed. Otherwise, an INVALID_ARGUMENT error is returned. Can only be set if [solution_types][google.cloud.retail.v2alpha.ServingConfig.solution_types] is [SOLUTION_TYPE_SEARCH][google.cloud.retail.v2main.SolutionType.SOLUTION_TYPE_SEARCH].
repeated string facet_control_ids = 5;- Specified by:
getFacetControlIdsBytesin interfaceServingConfigOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the facetControlIds at the given index.
-
setFacetControlIds
public ServingConfig.Builder setFacetControlIds(int index, String value)
Facet specifications for faceted search. If empty, no facets are returned. The ids refer to the ids of [Control][google.cloud.retail.v2alpha.Control] resources with only the Facet control set. These controls are assumed to be in the same [Catalog][google.cloud.retail.v2alpha.Catalog] as the [ServingConfig][google.cloud.retail.v2alpha.ServingConfig]. A maximum of 100 values are allowed. Otherwise, an INVALID_ARGUMENT error is returned. Can only be set if [solution_types][google.cloud.retail.v2alpha.ServingConfig.solution_types] is [SOLUTION_TYPE_SEARCH][google.cloud.retail.v2main.SolutionType.SOLUTION_TYPE_SEARCH].
repeated string facet_control_ids = 5;- Parameters:
index- The index to set the value at.value- The facetControlIds to set.- Returns:
- This builder for chaining.
-
addFacetControlIds
public ServingConfig.Builder addFacetControlIds(String value)
Facet specifications for faceted search. If empty, no facets are returned. The ids refer to the ids of [Control][google.cloud.retail.v2alpha.Control] resources with only the Facet control set. These controls are assumed to be in the same [Catalog][google.cloud.retail.v2alpha.Catalog] as the [ServingConfig][google.cloud.retail.v2alpha.ServingConfig]. A maximum of 100 values are allowed. Otherwise, an INVALID_ARGUMENT error is returned. Can only be set if [solution_types][google.cloud.retail.v2alpha.ServingConfig.solution_types] is [SOLUTION_TYPE_SEARCH][google.cloud.retail.v2main.SolutionType.SOLUTION_TYPE_SEARCH].
repeated string facet_control_ids = 5;- Parameters:
value- The facetControlIds to add.- Returns:
- This builder for chaining.
-
addAllFacetControlIds
public ServingConfig.Builder addAllFacetControlIds(Iterable<String> values)
Facet specifications for faceted search. If empty, no facets are returned. The ids refer to the ids of [Control][google.cloud.retail.v2alpha.Control] resources with only the Facet control set. These controls are assumed to be in the same [Catalog][google.cloud.retail.v2alpha.Catalog] as the [ServingConfig][google.cloud.retail.v2alpha.ServingConfig]. A maximum of 100 values are allowed. Otherwise, an INVALID_ARGUMENT error is returned. Can only be set if [solution_types][google.cloud.retail.v2alpha.ServingConfig.solution_types] is [SOLUTION_TYPE_SEARCH][google.cloud.retail.v2main.SolutionType.SOLUTION_TYPE_SEARCH].
repeated string facet_control_ids = 5;- Parameters:
values- The facetControlIds to add.- Returns:
- This builder for chaining.
-
clearFacetControlIds
public ServingConfig.Builder clearFacetControlIds()
Facet specifications for faceted search. If empty, no facets are returned. The ids refer to the ids of [Control][google.cloud.retail.v2alpha.Control] resources with only the Facet control set. These controls are assumed to be in the same [Catalog][google.cloud.retail.v2alpha.Catalog] as the [ServingConfig][google.cloud.retail.v2alpha.ServingConfig]. A maximum of 100 values are allowed. Otherwise, an INVALID_ARGUMENT error is returned. Can only be set if [solution_types][google.cloud.retail.v2alpha.ServingConfig.solution_types] is [SOLUTION_TYPE_SEARCH][google.cloud.retail.v2main.SolutionType.SOLUTION_TYPE_SEARCH].
repeated string facet_control_ids = 5;- Returns:
- This builder for chaining.
-
addFacetControlIdsBytes
public ServingConfig.Builder addFacetControlIdsBytes(com.google.protobuf.ByteString value)
Facet specifications for faceted search. If empty, no facets are returned. The ids refer to the ids of [Control][google.cloud.retail.v2alpha.Control] resources with only the Facet control set. These controls are assumed to be in the same [Catalog][google.cloud.retail.v2alpha.Catalog] as the [ServingConfig][google.cloud.retail.v2alpha.ServingConfig]. A maximum of 100 values are allowed. Otherwise, an INVALID_ARGUMENT error is returned. Can only be set if [solution_types][google.cloud.retail.v2alpha.ServingConfig.solution_types] is [SOLUTION_TYPE_SEARCH][google.cloud.retail.v2main.SolutionType.SOLUTION_TYPE_SEARCH].
repeated string facet_control_ids = 5;- Parameters:
value- The bytes of the facetControlIds to add.- Returns:
- This builder for chaining.
-
hasDynamicFacetSpec
public boolean hasDynamicFacetSpec()
The specification for dynamically generated facets. Notice that only textual facets can be dynamically generated. Can only be set if [solution_types][google.cloud.retail.v2alpha.ServingConfig.solution_types] is [SOLUTION_TYPE_SEARCH][google.cloud.retail.v2main.SolutionType.SOLUTION_TYPE_SEARCH].
.google.cloud.retail.v2alpha.SearchRequest.DynamicFacetSpec dynamic_facet_spec = 6;- Specified by:
hasDynamicFacetSpecin interfaceServingConfigOrBuilder- Returns:
- Whether the dynamicFacetSpec field is set.
-
getDynamicFacetSpec
public SearchRequest.DynamicFacetSpec getDynamicFacetSpec()
The specification for dynamically generated facets. Notice that only textual facets can be dynamically generated. Can only be set if [solution_types][google.cloud.retail.v2alpha.ServingConfig.solution_types] is [SOLUTION_TYPE_SEARCH][google.cloud.retail.v2main.SolutionType.SOLUTION_TYPE_SEARCH].
.google.cloud.retail.v2alpha.SearchRequest.DynamicFacetSpec dynamic_facet_spec = 6;- Specified by:
getDynamicFacetSpecin interfaceServingConfigOrBuilder- Returns:
- The dynamicFacetSpec.
-
setDynamicFacetSpec
public ServingConfig.Builder setDynamicFacetSpec(SearchRequest.DynamicFacetSpec value)
The specification for dynamically generated facets. Notice that only textual facets can be dynamically generated. Can only be set if [solution_types][google.cloud.retail.v2alpha.ServingConfig.solution_types] is [SOLUTION_TYPE_SEARCH][google.cloud.retail.v2main.SolutionType.SOLUTION_TYPE_SEARCH].
.google.cloud.retail.v2alpha.SearchRequest.DynamicFacetSpec dynamic_facet_spec = 6;
-
setDynamicFacetSpec
public ServingConfig.Builder setDynamicFacetSpec(SearchRequest.DynamicFacetSpec.Builder builderForValue)
The specification for dynamically generated facets. Notice that only textual facets can be dynamically generated. Can only be set if [solution_types][google.cloud.retail.v2alpha.ServingConfig.solution_types] is [SOLUTION_TYPE_SEARCH][google.cloud.retail.v2main.SolutionType.SOLUTION_TYPE_SEARCH].
.google.cloud.retail.v2alpha.SearchRequest.DynamicFacetSpec dynamic_facet_spec = 6;
-
mergeDynamicFacetSpec
public ServingConfig.Builder mergeDynamicFacetSpec(SearchRequest.DynamicFacetSpec value)
The specification for dynamically generated facets. Notice that only textual facets can be dynamically generated. Can only be set if [solution_types][google.cloud.retail.v2alpha.ServingConfig.solution_types] is [SOLUTION_TYPE_SEARCH][google.cloud.retail.v2main.SolutionType.SOLUTION_TYPE_SEARCH].
.google.cloud.retail.v2alpha.SearchRequest.DynamicFacetSpec dynamic_facet_spec = 6;
-
clearDynamicFacetSpec
public ServingConfig.Builder clearDynamicFacetSpec()
The specification for dynamically generated facets. Notice that only textual facets can be dynamically generated. Can only be set if [solution_types][google.cloud.retail.v2alpha.ServingConfig.solution_types] is [SOLUTION_TYPE_SEARCH][google.cloud.retail.v2main.SolutionType.SOLUTION_TYPE_SEARCH].
.google.cloud.retail.v2alpha.SearchRequest.DynamicFacetSpec dynamic_facet_spec = 6;
-
getDynamicFacetSpecBuilder
public SearchRequest.DynamicFacetSpec.Builder getDynamicFacetSpecBuilder()
The specification for dynamically generated facets. Notice that only textual facets can be dynamically generated. Can only be set if [solution_types][google.cloud.retail.v2alpha.ServingConfig.solution_types] is [SOLUTION_TYPE_SEARCH][google.cloud.retail.v2main.SolutionType.SOLUTION_TYPE_SEARCH].
.google.cloud.retail.v2alpha.SearchRequest.DynamicFacetSpec dynamic_facet_spec = 6;
-
getDynamicFacetSpecOrBuilder
public SearchRequest.DynamicFacetSpecOrBuilder getDynamicFacetSpecOrBuilder()
The specification for dynamically generated facets. Notice that only textual facets can be dynamically generated. Can only be set if [solution_types][google.cloud.retail.v2alpha.ServingConfig.solution_types] is [SOLUTION_TYPE_SEARCH][google.cloud.retail.v2main.SolutionType.SOLUTION_TYPE_SEARCH].
.google.cloud.retail.v2alpha.SearchRequest.DynamicFacetSpec dynamic_facet_spec = 6;- Specified by:
getDynamicFacetSpecOrBuilderin interfaceServingConfigOrBuilder
-
getBoostControlIdsList
public com.google.protobuf.ProtocolStringList getBoostControlIdsList()
Condition boost specifications. If a product matches multiple conditions in the specifications, boost scores from these specifications are all applied and combined in a non-linear way. Maximum number of specifications is 100. Notice that if both [ServingConfig.boost_control_ids][google.cloud.retail.v2alpha.ServingConfig.boost_control_ids] and [SearchRequest.boost_spec][google.cloud.retail.v2alpha.SearchRequest.boost_spec] are set, the boost conditions from both places are evaluated. If a search request matches multiple boost conditions, the final boost score is equal to the sum of the boost scores from all matched boost conditions. Can only be set if [solution_types][google.cloud.retail.v2alpha.ServingConfig.solution_types] is [SOLUTION_TYPE_SEARCH][google.cloud.retail.v2main.SolutionType.SOLUTION_TYPE_SEARCH].
repeated string boost_control_ids = 7;- Specified by:
getBoostControlIdsListin interfaceServingConfigOrBuilder- Returns:
- A list containing the boostControlIds.
-
getBoostControlIdsCount
public int getBoostControlIdsCount()
Condition boost specifications. If a product matches multiple conditions in the specifications, boost scores from these specifications are all applied and combined in a non-linear way. Maximum number of specifications is 100. Notice that if both [ServingConfig.boost_control_ids][google.cloud.retail.v2alpha.ServingConfig.boost_control_ids] and [SearchRequest.boost_spec][google.cloud.retail.v2alpha.SearchRequest.boost_spec] are set, the boost conditions from both places are evaluated. If a search request matches multiple boost conditions, the final boost score is equal to the sum of the boost scores from all matched boost conditions. Can only be set if [solution_types][google.cloud.retail.v2alpha.ServingConfig.solution_types] is [SOLUTION_TYPE_SEARCH][google.cloud.retail.v2main.SolutionType.SOLUTION_TYPE_SEARCH].
repeated string boost_control_ids = 7;- Specified by:
getBoostControlIdsCountin interfaceServingConfigOrBuilder- Returns:
- The count of boostControlIds.
-
getBoostControlIds
public String getBoostControlIds(int index)
Condition boost specifications. If a product matches multiple conditions in the specifications, boost scores from these specifications are all applied and combined in a non-linear way. Maximum number of specifications is 100. Notice that if both [ServingConfig.boost_control_ids][google.cloud.retail.v2alpha.ServingConfig.boost_control_ids] and [SearchRequest.boost_spec][google.cloud.retail.v2alpha.SearchRequest.boost_spec] are set, the boost conditions from both places are evaluated. If a search request matches multiple boost conditions, the final boost score is equal to the sum of the boost scores from all matched boost conditions. Can only be set if [solution_types][google.cloud.retail.v2alpha.ServingConfig.solution_types] is [SOLUTION_TYPE_SEARCH][google.cloud.retail.v2main.SolutionType.SOLUTION_TYPE_SEARCH].
repeated string boost_control_ids = 7;- Specified by:
getBoostControlIdsin interfaceServingConfigOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The boostControlIds at the given index.
-
getBoostControlIdsBytes
public com.google.protobuf.ByteString getBoostControlIdsBytes(int index)
Condition boost specifications. If a product matches multiple conditions in the specifications, boost scores from these specifications are all applied and combined in a non-linear way. Maximum number of specifications is 100. Notice that if both [ServingConfig.boost_control_ids][google.cloud.retail.v2alpha.ServingConfig.boost_control_ids] and [SearchRequest.boost_spec][google.cloud.retail.v2alpha.SearchRequest.boost_spec] are set, the boost conditions from both places are evaluated. If a search request matches multiple boost conditions, the final boost score is equal to the sum of the boost scores from all matched boost conditions. Can only be set if [solution_types][google.cloud.retail.v2alpha.ServingConfig.solution_types] is [SOLUTION_TYPE_SEARCH][google.cloud.retail.v2main.SolutionType.SOLUTION_TYPE_SEARCH].
repeated string boost_control_ids = 7;- Specified by:
getBoostControlIdsBytesin interfaceServingConfigOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the boostControlIds at the given index.
-
setBoostControlIds
public ServingConfig.Builder setBoostControlIds(int index, String value)
Condition boost specifications. If a product matches multiple conditions in the specifications, boost scores from these specifications are all applied and combined in a non-linear way. Maximum number of specifications is 100. Notice that if both [ServingConfig.boost_control_ids][google.cloud.retail.v2alpha.ServingConfig.boost_control_ids] and [SearchRequest.boost_spec][google.cloud.retail.v2alpha.SearchRequest.boost_spec] are set, the boost conditions from both places are evaluated. If a search request matches multiple boost conditions, the final boost score is equal to the sum of the boost scores from all matched boost conditions. Can only be set if [solution_types][google.cloud.retail.v2alpha.ServingConfig.solution_types] is [SOLUTION_TYPE_SEARCH][google.cloud.retail.v2main.SolutionType.SOLUTION_TYPE_SEARCH].
repeated string boost_control_ids = 7;- Parameters:
index- The index to set the value at.value- The boostControlIds to set.- Returns:
- This builder for chaining.
-
addBoostControlIds
public ServingConfig.Builder addBoostControlIds(String value)
Condition boost specifications. If a product matches multiple conditions in the specifications, boost scores from these specifications are all applied and combined in a non-linear way. Maximum number of specifications is 100. Notice that if both [ServingConfig.boost_control_ids][google.cloud.retail.v2alpha.ServingConfig.boost_control_ids] and [SearchRequest.boost_spec][google.cloud.retail.v2alpha.SearchRequest.boost_spec] are set, the boost conditions from both places are evaluated. If a search request matches multiple boost conditions, the final boost score is equal to the sum of the boost scores from all matched boost conditions. Can only be set if [solution_types][google.cloud.retail.v2alpha.ServingConfig.solution_types] is [SOLUTION_TYPE_SEARCH][google.cloud.retail.v2main.SolutionType.SOLUTION_TYPE_SEARCH].
repeated string boost_control_ids = 7;- Parameters:
value- The boostControlIds to add.- Returns:
- This builder for chaining.
-
addAllBoostControlIds
public ServingConfig.Builder addAllBoostControlIds(Iterable<String> values)
Condition boost specifications. If a product matches multiple conditions in the specifications, boost scores from these specifications are all applied and combined in a non-linear way. Maximum number of specifications is 100. Notice that if both [ServingConfig.boost_control_ids][google.cloud.retail.v2alpha.ServingConfig.boost_control_ids] and [SearchRequest.boost_spec][google.cloud.retail.v2alpha.SearchRequest.boost_spec] are set, the boost conditions from both places are evaluated. If a search request matches multiple boost conditions, the final boost score is equal to the sum of the boost scores from all matched boost conditions. Can only be set if [solution_types][google.cloud.retail.v2alpha.ServingConfig.solution_types] is [SOLUTION_TYPE_SEARCH][google.cloud.retail.v2main.SolutionType.SOLUTION_TYPE_SEARCH].
repeated string boost_control_ids = 7;- Parameters:
values- The boostControlIds to add.- Returns:
- This builder for chaining.
-
clearBoostControlIds
public ServingConfig.Builder clearBoostControlIds()
Condition boost specifications. If a product matches multiple conditions in the specifications, boost scores from these specifications are all applied and combined in a non-linear way. Maximum number of specifications is 100. Notice that if both [ServingConfig.boost_control_ids][google.cloud.retail.v2alpha.ServingConfig.boost_control_ids] and [SearchRequest.boost_spec][google.cloud.retail.v2alpha.SearchRequest.boost_spec] are set, the boost conditions from both places are evaluated. If a search request matches multiple boost conditions, the final boost score is equal to the sum of the boost scores from all matched boost conditions. Can only be set if [solution_types][google.cloud.retail.v2alpha.ServingConfig.solution_types] is [SOLUTION_TYPE_SEARCH][google.cloud.retail.v2main.SolutionType.SOLUTION_TYPE_SEARCH].
repeated string boost_control_ids = 7;- Returns:
- This builder for chaining.
-
addBoostControlIdsBytes
public ServingConfig.Builder addBoostControlIdsBytes(com.google.protobuf.ByteString value)
Condition boost specifications. If a product matches multiple conditions in the specifications, boost scores from these specifications are all applied and combined in a non-linear way. Maximum number of specifications is 100. Notice that if both [ServingConfig.boost_control_ids][google.cloud.retail.v2alpha.ServingConfig.boost_control_ids] and [SearchRequest.boost_spec][google.cloud.retail.v2alpha.SearchRequest.boost_spec] are set, the boost conditions from both places are evaluated. If a search request matches multiple boost conditions, the final boost score is equal to the sum of the boost scores from all matched boost conditions. Can only be set if [solution_types][google.cloud.retail.v2alpha.ServingConfig.solution_types] is [SOLUTION_TYPE_SEARCH][google.cloud.retail.v2main.SolutionType.SOLUTION_TYPE_SEARCH].
repeated string boost_control_ids = 7;- Parameters:
value- The bytes of the boostControlIds to add.- Returns:
- This builder for chaining.
-
getFilterControlIdsList
public com.google.protobuf.ProtocolStringList getFilterControlIdsList()
Condition filter specifications. If a product matches multiple conditions in the specifications, filters from these specifications are all applied and combined via the AND operator. Maximum number of specifications is 100. Can only be set if [solution_types][google.cloud.retail.v2alpha.ServingConfig.solution_types] is [SOLUTION_TYPE_SEARCH][google.cloud.retail.v2main.SolutionType.SOLUTION_TYPE_SEARCH].
repeated string filter_control_ids = 9;- Specified by:
getFilterControlIdsListin interfaceServingConfigOrBuilder- Returns:
- A list containing the filterControlIds.
-
getFilterControlIdsCount
public int getFilterControlIdsCount()
Condition filter specifications. If a product matches multiple conditions in the specifications, filters from these specifications are all applied and combined via the AND operator. Maximum number of specifications is 100. Can only be set if [solution_types][google.cloud.retail.v2alpha.ServingConfig.solution_types] is [SOLUTION_TYPE_SEARCH][google.cloud.retail.v2main.SolutionType.SOLUTION_TYPE_SEARCH].
repeated string filter_control_ids = 9;- Specified by:
getFilterControlIdsCountin interfaceServingConfigOrBuilder- Returns:
- The count of filterControlIds.
-
getFilterControlIds
public String getFilterControlIds(int index)
Condition filter specifications. If a product matches multiple conditions in the specifications, filters from these specifications are all applied and combined via the AND operator. Maximum number of specifications is 100. Can only be set if [solution_types][google.cloud.retail.v2alpha.ServingConfig.solution_types] is [SOLUTION_TYPE_SEARCH][google.cloud.retail.v2main.SolutionType.SOLUTION_TYPE_SEARCH].
repeated string filter_control_ids = 9;- Specified by:
getFilterControlIdsin interfaceServingConfigOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The filterControlIds at the given index.
-
getFilterControlIdsBytes
public com.google.protobuf.ByteString getFilterControlIdsBytes(int index)
Condition filter specifications. If a product matches multiple conditions in the specifications, filters from these specifications are all applied and combined via the AND operator. Maximum number of specifications is 100. Can only be set if [solution_types][google.cloud.retail.v2alpha.ServingConfig.solution_types] is [SOLUTION_TYPE_SEARCH][google.cloud.retail.v2main.SolutionType.SOLUTION_TYPE_SEARCH].
repeated string filter_control_ids = 9;- Specified by:
getFilterControlIdsBytesin interfaceServingConfigOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the filterControlIds at the given index.
-
setFilterControlIds
public ServingConfig.Builder setFilterControlIds(int index, String value)
Condition filter specifications. If a product matches multiple conditions in the specifications, filters from these specifications are all applied and combined via the AND operator. Maximum number of specifications is 100. Can only be set if [solution_types][google.cloud.retail.v2alpha.ServingConfig.solution_types] is [SOLUTION_TYPE_SEARCH][google.cloud.retail.v2main.SolutionType.SOLUTION_TYPE_SEARCH].
repeated string filter_control_ids = 9;- Parameters:
index- The index to set the value at.value- The filterControlIds to set.- Returns:
- This builder for chaining.
-
addFilterControlIds
public ServingConfig.Builder addFilterControlIds(String value)
Condition filter specifications. If a product matches multiple conditions in the specifications, filters from these specifications are all applied and combined via the AND operator. Maximum number of specifications is 100. Can only be set if [solution_types][google.cloud.retail.v2alpha.ServingConfig.solution_types] is [SOLUTION_TYPE_SEARCH][google.cloud.retail.v2main.SolutionType.SOLUTION_TYPE_SEARCH].
repeated string filter_control_ids = 9;- Parameters:
value- The filterControlIds to add.- Returns:
- This builder for chaining.
-
addAllFilterControlIds
public ServingConfig.Builder addAllFilterControlIds(Iterable<String> values)
Condition filter specifications. If a product matches multiple conditions in the specifications, filters from these specifications are all applied and combined via the AND operator. Maximum number of specifications is 100. Can only be set if [solution_types][google.cloud.retail.v2alpha.ServingConfig.solution_types] is [SOLUTION_TYPE_SEARCH][google.cloud.retail.v2main.SolutionType.SOLUTION_TYPE_SEARCH].
repeated string filter_control_ids = 9;- Parameters:
values- The filterControlIds to add.- Returns:
- This builder for chaining.
-
clearFilterControlIds
public ServingConfig.Builder clearFilterControlIds()
Condition filter specifications. If a product matches multiple conditions in the specifications, filters from these specifications are all applied and combined via the AND operator. Maximum number of specifications is 100. Can only be set if [solution_types][google.cloud.retail.v2alpha.ServingConfig.solution_types] is [SOLUTION_TYPE_SEARCH][google.cloud.retail.v2main.SolutionType.SOLUTION_TYPE_SEARCH].
repeated string filter_control_ids = 9;- Returns:
- This builder for chaining.
-
addFilterControlIdsBytes
public ServingConfig.Builder addFilterControlIdsBytes(com.google.protobuf.ByteString value)
Condition filter specifications. If a product matches multiple conditions in the specifications, filters from these specifications are all applied and combined via the AND operator. Maximum number of specifications is 100. Can only be set if [solution_types][google.cloud.retail.v2alpha.ServingConfig.solution_types] is [SOLUTION_TYPE_SEARCH][google.cloud.retail.v2main.SolutionType.SOLUTION_TYPE_SEARCH].
repeated string filter_control_ids = 9;- Parameters:
value- The bytes of the filterControlIds to add.- Returns:
- This builder for chaining.
-
getRedirectControlIdsList
public com.google.protobuf.ProtocolStringList getRedirectControlIdsList()
Condition redirect specifications. Only the first triggered redirect action is applied, even if multiple apply. Maximum number of specifications is 1000. Can only be set if [solution_types][google.cloud.retail.v2alpha.ServingConfig.solution_types] is [SOLUTION_TYPE_SEARCH][google.cloud.retail.v2main.SolutionType.SOLUTION_TYPE_SEARCH].
repeated string redirect_control_ids = 10;- Specified by:
getRedirectControlIdsListin interfaceServingConfigOrBuilder- Returns:
- A list containing the redirectControlIds.
-
getRedirectControlIdsCount
public int getRedirectControlIdsCount()
Condition redirect specifications. Only the first triggered redirect action is applied, even if multiple apply. Maximum number of specifications is 1000. Can only be set if [solution_types][google.cloud.retail.v2alpha.ServingConfig.solution_types] is [SOLUTION_TYPE_SEARCH][google.cloud.retail.v2main.SolutionType.SOLUTION_TYPE_SEARCH].
repeated string redirect_control_ids = 10;- Specified by:
getRedirectControlIdsCountin interfaceServingConfigOrBuilder- Returns:
- The count of redirectControlIds.
-
getRedirectControlIds
public String getRedirectControlIds(int index)
Condition redirect specifications. Only the first triggered redirect action is applied, even if multiple apply. Maximum number of specifications is 1000. Can only be set if [solution_types][google.cloud.retail.v2alpha.ServingConfig.solution_types] is [SOLUTION_TYPE_SEARCH][google.cloud.retail.v2main.SolutionType.SOLUTION_TYPE_SEARCH].
repeated string redirect_control_ids = 10;- Specified by:
getRedirectControlIdsin interfaceServingConfigOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The redirectControlIds at the given index.
-
getRedirectControlIdsBytes
public com.google.protobuf.ByteString getRedirectControlIdsBytes(int index)
Condition redirect specifications. Only the first triggered redirect action is applied, even if multiple apply. Maximum number of specifications is 1000. Can only be set if [solution_types][google.cloud.retail.v2alpha.ServingConfig.solution_types] is [SOLUTION_TYPE_SEARCH][google.cloud.retail.v2main.SolutionType.SOLUTION_TYPE_SEARCH].
repeated string redirect_control_ids = 10;- Specified by:
getRedirectControlIdsBytesin interfaceServingConfigOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the redirectControlIds at the given index.
-
setRedirectControlIds
public ServingConfig.Builder setRedirectControlIds(int index, String value)
Condition redirect specifications. Only the first triggered redirect action is applied, even if multiple apply. Maximum number of specifications is 1000. Can only be set if [solution_types][google.cloud.retail.v2alpha.ServingConfig.solution_types] is [SOLUTION_TYPE_SEARCH][google.cloud.retail.v2main.SolutionType.SOLUTION_TYPE_SEARCH].
repeated string redirect_control_ids = 10;- Parameters:
index- The index to set the value at.value- The redirectControlIds to set.- Returns:
- This builder for chaining.
-
addRedirectControlIds
public ServingConfig.Builder addRedirectControlIds(String value)
Condition redirect specifications. Only the first triggered redirect action is applied, even if multiple apply. Maximum number of specifications is 1000. Can only be set if [solution_types][google.cloud.retail.v2alpha.ServingConfig.solution_types] is [SOLUTION_TYPE_SEARCH][google.cloud.retail.v2main.SolutionType.SOLUTION_TYPE_SEARCH].
repeated string redirect_control_ids = 10;- Parameters:
value- The redirectControlIds to add.- Returns:
- This builder for chaining.
-
addAllRedirectControlIds
public ServingConfig.Builder addAllRedirectControlIds(Iterable<String> values)
Condition redirect specifications. Only the first triggered redirect action is applied, even if multiple apply. Maximum number of specifications is 1000. Can only be set if [solution_types][google.cloud.retail.v2alpha.ServingConfig.solution_types] is [SOLUTION_TYPE_SEARCH][google.cloud.retail.v2main.SolutionType.SOLUTION_TYPE_SEARCH].
repeated string redirect_control_ids = 10;- Parameters:
values- The redirectControlIds to add.- Returns:
- This builder for chaining.
-
clearRedirectControlIds
public ServingConfig.Builder clearRedirectControlIds()
Condition redirect specifications. Only the first triggered redirect action is applied, even if multiple apply. Maximum number of specifications is 1000. Can only be set if [solution_types][google.cloud.retail.v2alpha.ServingConfig.solution_types] is [SOLUTION_TYPE_SEARCH][google.cloud.retail.v2main.SolutionType.SOLUTION_TYPE_SEARCH].
repeated string redirect_control_ids = 10;- Returns:
- This builder for chaining.
-
addRedirectControlIdsBytes
public ServingConfig.Builder addRedirectControlIdsBytes(com.google.protobuf.ByteString value)
Condition redirect specifications. Only the first triggered redirect action is applied, even if multiple apply. Maximum number of specifications is 1000. Can only be set if [solution_types][google.cloud.retail.v2alpha.ServingConfig.solution_types] is [SOLUTION_TYPE_SEARCH][google.cloud.retail.v2main.SolutionType.SOLUTION_TYPE_SEARCH].
repeated string redirect_control_ids = 10;- Parameters:
value- The bytes of the redirectControlIds to add.- Returns:
- This builder for chaining.
-
getTwowaySynonymsControlIdsList
public com.google.protobuf.ProtocolStringList getTwowaySynonymsControlIdsList()
Condition synonyms specifications. If multiple syonyms conditions match, all matching synonyms control in the list will execute. Order of controls in the list will not matter. Maximum number of specifications is 100. Can only be set if [solution_types][google.cloud.retail.v2alpha.ServingConfig.solution_types] is [SOLUTION_TYPE_SEARCH][google.cloud.retail.v2main.SolutionType.SOLUTION_TYPE_SEARCH].
repeated string twoway_synonyms_control_ids = 18;- Specified by:
getTwowaySynonymsControlIdsListin interfaceServingConfigOrBuilder- Returns:
- A list containing the twowaySynonymsControlIds.
-
getTwowaySynonymsControlIdsCount
public int getTwowaySynonymsControlIdsCount()
Condition synonyms specifications. If multiple syonyms conditions match, all matching synonyms control in the list will execute. Order of controls in the list will not matter. Maximum number of specifications is 100. Can only be set if [solution_types][google.cloud.retail.v2alpha.ServingConfig.solution_types] is [SOLUTION_TYPE_SEARCH][google.cloud.retail.v2main.SolutionType.SOLUTION_TYPE_SEARCH].
repeated string twoway_synonyms_control_ids = 18;- Specified by:
getTwowaySynonymsControlIdsCountin interfaceServingConfigOrBuilder- Returns:
- The count of twowaySynonymsControlIds.
-
getTwowaySynonymsControlIds
public String getTwowaySynonymsControlIds(int index)
Condition synonyms specifications. If multiple syonyms conditions match, all matching synonyms control in the list will execute. Order of controls in the list will not matter. Maximum number of specifications is 100. Can only be set if [solution_types][google.cloud.retail.v2alpha.ServingConfig.solution_types] is [SOLUTION_TYPE_SEARCH][google.cloud.retail.v2main.SolutionType.SOLUTION_TYPE_SEARCH].
repeated string twoway_synonyms_control_ids = 18;- Specified by:
getTwowaySynonymsControlIdsin interfaceServingConfigOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The twowaySynonymsControlIds at the given index.
-
getTwowaySynonymsControlIdsBytes
public com.google.protobuf.ByteString getTwowaySynonymsControlIdsBytes(int index)
Condition synonyms specifications. If multiple syonyms conditions match, all matching synonyms control in the list will execute. Order of controls in the list will not matter. Maximum number of specifications is 100. Can only be set if [solution_types][google.cloud.retail.v2alpha.ServingConfig.solution_types] is [SOLUTION_TYPE_SEARCH][google.cloud.retail.v2main.SolutionType.SOLUTION_TYPE_SEARCH].
repeated string twoway_synonyms_control_ids = 18;- Specified by:
getTwowaySynonymsControlIdsBytesin interfaceServingConfigOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the twowaySynonymsControlIds at the given index.
-
setTwowaySynonymsControlIds
public ServingConfig.Builder setTwowaySynonymsControlIds(int index, String value)
Condition synonyms specifications. If multiple syonyms conditions match, all matching synonyms control in the list will execute. Order of controls in the list will not matter. Maximum number of specifications is 100. Can only be set if [solution_types][google.cloud.retail.v2alpha.ServingConfig.solution_types] is [SOLUTION_TYPE_SEARCH][google.cloud.retail.v2main.SolutionType.SOLUTION_TYPE_SEARCH].
repeated string twoway_synonyms_control_ids = 18;- Parameters:
index- The index to set the value at.value- The twowaySynonymsControlIds to set.- Returns:
- This builder for chaining.
-
addTwowaySynonymsControlIds
public ServingConfig.Builder addTwowaySynonymsControlIds(String value)
Condition synonyms specifications. If multiple syonyms conditions match, all matching synonyms control in the list will execute. Order of controls in the list will not matter. Maximum number of specifications is 100. Can only be set if [solution_types][google.cloud.retail.v2alpha.ServingConfig.solution_types] is [SOLUTION_TYPE_SEARCH][google.cloud.retail.v2main.SolutionType.SOLUTION_TYPE_SEARCH].
repeated string twoway_synonyms_control_ids = 18;- Parameters:
value- The twowaySynonymsControlIds to add.- Returns:
- This builder for chaining.
-
addAllTwowaySynonymsControlIds
public ServingConfig.Builder addAllTwowaySynonymsControlIds(Iterable<String> values)
Condition synonyms specifications. If multiple syonyms conditions match, all matching synonyms control in the list will execute. Order of controls in the list will not matter. Maximum number of specifications is 100. Can only be set if [solution_types][google.cloud.retail.v2alpha.ServingConfig.solution_types] is [SOLUTION_TYPE_SEARCH][google.cloud.retail.v2main.SolutionType.SOLUTION_TYPE_SEARCH].
repeated string twoway_synonyms_control_ids = 18;- Parameters:
values- The twowaySynonymsControlIds to add.- Returns:
- This builder for chaining.
-
clearTwowaySynonymsControlIds
public ServingConfig.Builder clearTwowaySynonymsControlIds()
Condition synonyms specifications. If multiple syonyms conditions match, all matching synonyms control in the list will execute. Order of controls in the list will not matter. Maximum number of specifications is 100. Can only be set if [solution_types][google.cloud.retail.v2alpha.ServingConfig.solution_types] is [SOLUTION_TYPE_SEARCH][google.cloud.retail.v2main.SolutionType.SOLUTION_TYPE_SEARCH].
repeated string twoway_synonyms_control_ids = 18;- Returns:
- This builder for chaining.
-
addTwowaySynonymsControlIdsBytes
public ServingConfig.Builder addTwowaySynonymsControlIdsBytes(com.google.protobuf.ByteString value)
Condition synonyms specifications. If multiple syonyms conditions match, all matching synonyms control in the list will execute. Order of controls in the list will not matter. Maximum number of specifications is 100. Can only be set if [solution_types][google.cloud.retail.v2alpha.ServingConfig.solution_types] is [SOLUTION_TYPE_SEARCH][google.cloud.retail.v2main.SolutionType.SOLUTION_TYPE_SEARCH].
repeated string twoway_synonyms_control_ids = 18;- Parameters:
value- The bytes of the twowaySynonymsControlIds to add.- Returns:
- This builder for chaining.
-
getOnewaySynonymsControlIdsList
public com.google.protobuf.ProtocolStringList getOnewaySynonymsControlIdsList()
Condition oneway synonyms specifications. If multiple oneway synonyms conditions match, all matching oneway synonyms controls in the list will execute. Order of controls in the list will not matter. Maximum number of specifications is 100. Can only be set if [solution_types][google.cloud.retail.v2alpha.ServingConfig.solution_types] is [SOLUTION_TYPE_SEARCH][google.cloud.retail.v2main.SolutionType.SOLUTION_TYPE_SEARCH].
repeated string oneway_synonyms_control_ids = 12;- Specified by:
getOnewaySynonymsControlIdsListin interfaceServingConfigOrBuilder- Returns:
- A list containing the onewaySynonymsControlIds.
-
getOnewaySynonymsControlIdsCount
public int getOnewaySynonymsControlIdsCount()
Condition oneway synonyms specifications. If multiple oneway synonyms conditions match, all matching oneway synonyms controls in the list will execute. Order of controls in the list will not matter. Maximum number of specifications is 100. Can only be set if [solution_types][google.cloud.retail.v2alpha.ServingConfig.solution_types] is [SOLUTION_TYPE_SEARCH][google.cloud.retail.v2main.SolutionType.SOLUTION_TYPE_SEARCH].
repeated string oneway_synonyms_control_ids = 12;- Specified by:
getOnewaySynonymsControlIdsCountin interfaceServingConfigOrBuilder- Returns:
- The count of onewaySynonymsControlIds.
-
getOnewaySynonymsControlIds
public String getOnewaySynonymsControlIds(int index)
Condition oneway synonyms specifications. If multiple oneway synonyms conditions match, all matching oneway synonyms controls in the list will execute. Order of controls in the list will not matter. Maximum number of specifications is 100. Can only be set if [solution_types][google.cloud.retail.v2alpha.ServingConfig.solution_types] is [SOLUTION_TYPE_SEARCH][google.cloud.retail.v2main.SolutionType.SOLUTION_TYPE_SEARCH].
repeated string oneway_synonyms_control_ids = 12;- Specified by:
getOnewaySynonymsControlIdsin interfaceServingConfigOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The onewaySynonymsControlIds at the given index.
-
getOnewaySynonymsControlIdsBytes
public com.google.protobuf.ByteString getOnewaySynonymsControlIdsBytes(int index)
Condition oneway synonyms specifications. If multiple oneway synonyms conditions match, all matching oneway synonyms controls in the list will execute. Order of controls in the list will not matter. Maximum number of specifications is 100. Can only be set if [solution_types][google.cloud.retail.v2alpha.ServingConfig.solution_types] is [SOLUTION_TYPE_SEARCH][google.cloud.retail.v2main.SolutionType.SOLUTION_TYPE_SEARCH].
repeated string oneway_synonyms_control_ids = 12;- Specified by:
getOnewaySynonymsControlIdsBytesin interfaceServingConfigOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the onewaySynonymsControlIds at the given index.
-
setOnewaySynonymsControlIds
public ServingConfig.Builder setOnewaySynonymsControlIds(int index, String value)
Condition oneway synonyms specifications. If multiple oneway synonyms conditions match, all matching oneway synonyms controls in the list will execute. Order of controls in the list will not matter. Maximum number of specifications is 100. Can only be set if [solution_types][google.cloud.retail.v2alpha.ServingConfig.solution_types] is [SOLUTION_TYPE_SEARCH][google.cloud.retail.v2main.SolutionType.SOLUTION_TYPE_SEARCH].
repeated string oneway_synonyms_control_ids = 12;- Parameters:
index- The index to set the value at.value- The onewaySynonymsControlIds to set.- Returns:
- This builder for chaining.
-
addOnewaySynonymsControlIds
public ServingConfig.Builder addOnewaySynonymsControlIds(String value)
Condition oneway synonyms specifications. If multiple oneway synonyms conditions match, all matching oneway synonyms controls in the list will execute. Order of controls in the list will not matter. Maximum number of specifications is 100. Can only be set if [solution_types][google.cloud.retail.v2alpha.ServingConfig.solution_types] is [SOLUTION_TYPE_SEARCH][google.cloud.retail.v2main.SolutionType.SOLUTION_TYPE_SEARCH].
repeated string oneway_synonyms_control_ids = 12;- Parameters:
value- The onewaySynonymsControlIds to add.- Returns:
- This builder for chaining.
-
addAllOnewaySynonymsControlIds
public ServingConfig.Builder addAllOnewaySynonymsControlIds(Iterable<String> values)
Condition oneway synonyms specifications. If multiple oneway synonyms conditions match, all matching oneway synonyms controls in the list will execute. Order of controls in the list will not matter. Maximum number of specifications is 100. Can only be set if [solution_types][google.cloud.retail.v2alpha.ServingConfig.solution_types] is [SOLUTION_TYPE_SEARCH][google.cloud.retail.v2main.SolutionType.SOLUTION_TYPE_SEARCH].
repeated string oneway_synonyms_control_ids = 12;- Parameters:
values- The onewaySynonymsControlIds to add.- Returns:
- This builder for chaining.
-
clearOnewaySynonymsControlIds
public ServingConfig.Builder clearOnewaySynonymsControlIds()
Condition oneway synonyms specifications. If multiple oneway synonyms conditions match, all matching oneway synonyms controls in the list will execute. Order of controls in the list will not matter. Maximum number of specifications is 100. Can only be set if [solution_types][google.cloud.retail.v2alpha.ServingConfig.solution_types] is [SOLUTION_TYPE_SEARCH][google.cloud.retail.v2main.SolutionType.SOLUTION_TYPE_SEARCH].
repeated string oneway_synonyms_control_ids = 12;- Returns:
- This builder for chaining.
-
addOnewaySynonymsControlIdsBytes
public ServingConfig.Builder addOnewaySynonymsControlIdsBytes(com.google.protobuf.ByteString value)
Condition oneway synonyms specifications. If multiple oneway synonyms conditions match, all matching oneway synonyms controls in the list will execute. Order of controls in the list will not matter. Maximum number of specifications is 100. Can only be set if [solution_types][google.cloud.retail.v2alpha.ServingConfig.solution_types] is [SOLUTION_TYPE_SEARCH][google.cloud.retail.v2main.SolutionType.SOLUTION_TYPE_SEARCH].
repeated string oneway_synonyms_control_ids = 12;- Parameters:
value- The bytes of the onewaySynonymsControlIds to add.- Returns:
- This builder for chaining.
-
getDoNotAssociateControlIdsList
public com.google.protobuf.ProtocolStringList getDoNotAssociateControlIdsList()
Condition do not associate specifications. If multiple do not associate conditions match, all matching do not associate controls in the list will execute. - Order does not matter. - Maximum number of specifications is 100. Can only be set if [solution_types][google.cloud.retail.v2alpha.ServingConfig.solution_types] is [SOLUTION_TYPE_SEARCH][google.cloud.retail.v2main.SolutionType.SOLUTION_TYPE_SEARCH].
repeated string do_not_associate_control_ids = 13;- Specified by:
getDoNotAssociateControlIdsListin interfaceServingConfigOrBuilder- Returns:
- A list containing the doNotAssociateControlIds.
-
getDoNotAssociateControlIdsCount
public int getDoNotAssociateControlIdsCount()
Condition do not associate specifications. If multiple do not associate conditions match, all matching do not associate controls in the list will execute. - Order does not matter. - Maximum number of specifications is 100. Can only be set if [solution_types][google.cloud.retail.v2alpha.ServingConfig.solution_types] is [SOLUTION_TYPE_SEARCH][google.cloud.retail.v2main.SolutionType.SOLUTION_TYPE_SEARCH].
repeated string do_not_associate_control_ids = 13;- Specified by:
getDoNotAssociateControlIdsCountin interfaceServingConfigOrBuilder- Returns:
- The count of doNotAssociateControlIds.
-
getDoNotAssociateControlIds
public String getDoNotAssociateControlIds(int index)
Condition do not associate specifications. If multiple do not associate conditions match, all matching do not associate controls in the list will execute. - Order does not matter. - Maximum number of specifications is 100. Can only be set if [solution_types][google.cloud.retail.v2alpha.ServingConfig.solution_types] is [SOLUTION_TYPE_SEARCH][google.cloud.retail.v2main.SolutionType.SOLUTION_TYPE_SEARCH].
repeated string do_not_associate_control_ids = 13;- Specified by:
getDoNotAssociateControlIdsin interfaceServingConfigOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The doNotAssociateControlIds at the given index.
-
getDoNotAssociateControlIdsBytes
public com.google.protobuf.ByteString getDoNotAssociateControlIdsBytes(int index)
Condition do not associate specifications. If multiple do not associate conditions match, all matching do not associate controls in the list will execute. - Order does not matter. - Maximum number of specifications is 100. Can only be set if [solution_types][google.cloud.retail.v2alpha.ServingConfig.solution_types] is [SOLUTION_TYPE_SEARCH][google.cloud.retail.v2main.SolutionType.SOLUTION_TYPE_SEARCH].
repeated string do_not_associate_control_ids = 13;- Specified by:
getDoNotAssociateControlIdsBytesin interfaceServingConfigOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the doNotAssociateControlIds at the given index.
-
setDoNotAssociateControlIds
public ServingConfig.Builder setDoNotAssociateControlIds(int index, String value)
Condition do not associate specifications. If multiple do not associate conditions match, all matching do not associate controls in the list will execute. - Order does not matter. - Maximum number of specifications is 100. Can only be set if [solution_types][google.cloud.retail.v2alpha.ServingConfig.solution_types] is [SOLUTION_TYPE_SEARCH][google.cloud.retail.v2main.SolutionType.SOLUTION_TYPE_SEARCH].
repeated string do_not_associate_control_ids = 13;- Parameters:
index- The index to set the value at.value- The doNotAssociateControlIds to set.- Returns:
- This builder for chaining.
-
addDoNotAssociateControlIds
public ServingConfig.Builder addDoNotAssociateControlIds(String value)
Condition do not associate specifications. If multiple do not associate conditions match, all matching do not associate controls in the list will execute. - Order does not matter. - Maximum number of specifications is 100. Can only be set if [solution_types][google.cloud.retail.v2alpha.ServingConfig.solution_types] is [SOLUTION_TYPE_SEARCH][google.cloud.retail.v2main.SolutionType.SOLUTION_TYPE_SEARCH].
repeated string do_not_associate_control_ids = 13;- Parameters:
value- The doNotAssociateControlIds to add.- Returns:
- This builder for chaining.
-
addAllDoNotAssociateControlIds
public ServingConfig.Builder addAllDoNotAssociateControlIds(Iterable<String> values)
Condition do not associate specifications. If multiple do not associate conditions match, all matching do not associate controls in the list will execute. - Order does not matter. - Maximum number of specifications is 100. Can only be set if [solution_types][google.cloud.retail.v2alpha.ServingConfig.solution_types] is [SOLUTION_TYPE_SEARCH][google.cloud.retail.v2main.SolutionType.SOLUTION_TYPE_SEARCH].
repeated string do_not_associate_control_ids = 13;- Parameters:
values- The doNotAssociateControlIds to add.- Returns:
- This builder for chaining.
-
clearDoNotAssociateControlIds
public ServingConfig.Builder clearDoNotAssociateControlIds()
Condition do not associate specifications. If multiple do not associate conditions match, all matching do not associate controls in the list will execute. - Order does not matter. - Maximum number of specifications is 100. Can only be set if [solution_types][google.cloud.retail.v2alpha.ServingConfig.solution_types] is [SOLUTION_TYPE_SEARCH][google.cloud.retail.v2main.SolutionType.SOLUTION_TYPE_SEARCH].
repeated string do_not_associate_control_ids = 13;- Returns:
- This builder for chaining.
-
addDoNotAssociateControlIdsBytes
public ServingConfig.Builder addDoNotAssociateControlIdsBytes(com.google.protobuf.ByteString value)
Condition do not associate specifications. If multiple do not associate conditions match, all matching do not associate controls in the list will execute. - Order does not matter. - Maximum number of specifications is 100. Can only be set if [solution_types][google.cloud.retail.v2alpha.ServingConfig.solution_types] is [SOLUTION_TYPE_SEARCH][google.cloud.retail.v2main.SolutionType.SOLUTION_TYPE_SEARCH].
repeated string do_not_associate_control_ids = 13;- Parameters:
value- The bytes of the doNotAssociateControlIds to add.- Returns:
- This builder for chaining.
-
getReplacementControlIdsList
public com.google.protobuf.ProtocolStringList getReplacementControlIdsList()
Condition replacement specifications. - Applied according to the order in the list. - A previously replaced term can not be re-replaced. - Maximum number of specifications is 100. Can only be set if [solution_types][google.cloud.retail.v2alpha.ServingConfig.solution_types] is [SOLUTION_TYPE_SEARCH][google.cloud.retail.v2main.SolutionType.SOLUTION_TYPE_SEARCH].
repeated string replacement_control_ids = 14;- Specified by:
getReplacementControlIdsListin interfaceServingConfigOrBuilder- Returns:
- A list containing the replacementControlIds.
-
getReplacementControlIdsCount
public int getReplacementControlIdsCount()
Condition replacement specifications. - Applied according to the order in the list. - A previously replaced term can not be re-replaced. - Maximum number of specifications is 100. Can only be set if [solution_types][google.cloud.retail.v2alpha.ServingConfig.solution_types] is [SOLUTION_TYPE_SEARCH][google.cloud.retail.v2main.SolutionType.SOLUTION_TYPE_SEARCH].
repeated string replacement_control_ids = 14;- Specified by:
getReplacementControlIdsCountin interfaceServingConfigOrBuilder- Returns:
- The count of replacementControlIds.
-
getReplacementControlIds
public String getReplacementControlIds(int index)
Condition replacement specifications. - Applied according to the order in the list. - A previously replaced term can not be re-replaced. - Maximum number of specifications is 100. Can only be set if [solution_types][google.cloud.retail.v2alpha.ServingConfig.solution_types] is [SOLUTION_TYPE_SEARCH][google.cloud.retail.v2main.SolutionType.SOLUTION_TYPE_SEARCH].
repeated string replacement_control_ids = 14;- Specified by:
getReplacementControlIdsin interfaceServingConfigOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The replacementControlIds at the given index.
-
getReplacementControlIdsBytes
public com.google.protobuf.ByteString getReplacementControlIdsBytes(int index)
Condition replacement specifications. - Applied according to the order in the list. - A previously replaced term can not be re-replaced. - Maximum number of specifications is 100. Can only be set if [solution_types][google.cloud.retail.v2alpha.ServingConfig.solution_types] is [SOLUTION_TYPE_SEARCH][google.cloud.retail.v2main.SolutionType.SOLUTION_TYPE_SEARCH].
repeated string replacement_control_ids = 14;- Specified by:
getReplacementControlIdsBytesin interfaceServingConfigOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the replacementControlIds at the given index.
-
setReplacementControlIds
public ServingConfig.Builder setReplacementControlIds(int index, String value)
Condition replacement specifications. - Applied according to the order in the list. - A previously replaced term can not be re-replaced. - Maximum number of specifications is 100. Can only be set if [solution_types][google.cloud.retail.v2alpha.ServingConfig.solution_types] is [SOLUTION_TYPE_SEARCH][google.cloud.retail.v2main.SolutionType.SOLUTION_TYPE_SEARCH].
repeated string replacement_control_ids = 14;- Parameters:
index- The index to set the value at.value- The replacementControlIds to set.- Returns:
- This builder for chaining.
-
addReplacementControlIds
public ServingConfig.Builder addReplacementControlIds(String value)
Condition replacement specifications. - Applied according to the order in the list. - A previously replaced term can not be re-replaced. - Maximum number of specifications is 100. Can only be set if [solution_types][google.cloud.retail.v2alpha.ServingConfig.solution_types] is [SOLUTION_TYPE_SEARCH][google.cloud.retail.v2main.SolutionType.SOLUTION_TYPE_SEARCH].
repeated string replacement_control_ids = 14;- Parameters:
value- The replacementControlIds to add.- Returns:
- This builder for chaining.
-
addAllReplacementControlIds
public ServingConfig.Builder addAllReplacementControlIds(Iterable<String> values)
Condition replacement specifications. - Applied according to the order in the list. - A previously replaced term can not be re-replaced. - Maximum number of specifications is 100. Can only be set if [solution_types][google.cloud.retail.v2alpha.ServingConfig.solution_types] is [SOLUTION_TYPE_SEARCH][google.cloud.retail.v2main.SolutionType.SOLUTION_TYPE_SEARCH].
repeated string replacement_control_ids = 14;- Parameters:
values- The replacementControlIds to add.- Returns:
- This builder for chaining.
-
clearReplacementControlIds
public ServingConfig.Builder clearReplacementControlIds()
Condition replacement specifications. - Applied according to the order in the list. - A previously replaced term can not be re-replaced. - Maximum number of specifications is 100. Can only be set if [solution_types][google.cloud.retail.v2alpha.ServingConfig.solution_types] is [SOLUTION_TYPE_SEARCH][google.cloud.retail.v2main.SolutionType.SOLUTION_TYPE_SEARCH].
repeated string replacement_control_ids = 14;- Returns:
- This builder for chaining.
-
addReplacementControlIdsBytes
public ServingConfig.Builder addReplacementControlIdsBytes(com.google.protobuf.ByteString value)
Condition replacement specifications. - Applied according to the order in the list. - A previously replaced term can not be re-replaced. - Maximum number of specifications is 100. Can only be set if [solution_types][google.cloud.retail.v2alpha.ServingConfig.solution_types] is [SOLUTION_TYPE_SEARCH][google.cloud.retail.v2main.SolutionType.SOLUTION_TYPE_SEARCH].
repeated string replacement_control_ids = 14;- Parameters:
value- The bytes of the replacementControlIds to add.- Returns:
- This builder for chaining.
-
getIgnoreControlIdsList
public com.google.protobuf.ProtocolStringList getIgnoreControlIdsList()
Condition ignore specifications. If multiple ignore conditions match, all matching ignore controls in the list will execute. - Order does not matter. - Maximum number of specifications is 100. Can only be set if [solution_types][google.cloud.retail.v2alpha.ServingConfig.solution_types] is [SOLUTION_TYPE_SEARCH][google.cloud.retail.v2main.SolutionType.SOLUTION_TYPE_SEARCH].
repeated string ignore_control_ids = 15;- Specified by:
getIgnoreControlIdsListin interfaceServingConfigOrBuilder- Returns:
- A list containing the ignoreControlIds.
-
getIgnoreControlIdsCount
public int getIgnoreControlIdsCount()
Condition ignore specifications. If multiple ignore conditions match, all matching ignore controls in the list will execute. - Order does not matter. - Maximum number of specifications is 100. Can only be set if [solution_types][google.cloud.retail.v2alpha.ServingConfig.solution_types] is [SOLUTION_TYPE_SEARCH][google.cloud.retail.v2main.SolutionType.SOLUTION_TYPE_SEARCH].
repeated string ignore_control_ids = 15;- Specified by:
getIgnoreControlIdsCountin interfaceServingConfigOrBuilder- Returns:
- The count of ignoreControlIds.
-
getIgnoreControlIds
public String getIgnoreControlIds(int index)
Condition ignore specifications. If multiple ignore conditions match, all matching ignore controls in the list will execute. - Order does not matter. - Maximum number of specifications is 100. Can only be set if [solution_types][google.cloud.retail.v2alpha.ServingConfig.solution_types] is [SOLUTION_TYPE_SEARCH][google.cloud.retail.v2main.SolutionType.SOLUTION_TYPE_SEARCH].
repeated string ignore_control_ids = 15;- Specified by:
getIgnoreControlIdsin interfaceServingConfigOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The ignoreControlIds at the given index.
-
getIgnoreControlIdsBytes
public com.google.protobuf.ByteString getIgnoreControlIdsBytes(int index)
Condition ignore specifications. If multiple ignore conditions match, all matching ignore controls in the list will execute. - Order does not matter. - Maximum number of specifications is 100. Can only be set if [solution_types][google.cloud.retail.v2alpha.ServingConfig.solution_types] is [SOLUTION_TYPE_SEARCH][google.cloud.retail.v2main.SolutionType.SOLUTION_TYPE_SEARCH].
repeated string ignore_control_ids = 15;- Specified by:
getIgnoreControlIdsBytesin interfaceServingConfigOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the ignoreControlIds at the given index.
-
setIgnoreControlIds
public ServingConfig.Builder setIgnoreControlIds(int index, String value)
Condition ignore specifications. If multiple ignore conditions match, all matching ignore controls in the list will execute. - Order does not matter. - Maximum number of specifications is 100. Can only be set if [solution_types][google.cloud.retail.v2alpha.ServingConfig.solution_types] is [SOLUTION_TYPE_SEARCH][google.cloud.retail.v2main.SolutionType.SOLUTION_TYPE_SEARCH].
repeated string ignore_control_ids = 15;- Parameters:
index- The index to set the value at.value- The ignoreControlIds to set.- Returns:
- This builder for chaining.
-
addIgnoreControlIds
public ServingConfig.Builder addIgnoreControlIds(String value)
Condition ignore specifications. If multiple ignore conditions match, all matching ignore controls in the list will execute. - Order does not matter. - Maximum number of specifications is 100. Can only be set if [solution_types][google.cloud.retail.v2alpha.ServingConfig.solution_types] is [SOLUTION_TYPE_SEARCH][google.cloud.retail.v2main.SolutionType.SOLUTION_TYPE_SEARCH].
repeated string ignore_control_ids = 15;- Parameters:
value- The ignoreControlIds to add.- Returns:
- This builder for chaining.
-
addAllIgnoreControlIds
public ServingConfig.Builder addAllIgnoreControlIds(Iterable<String> values)
Condition ignore specifications. If multiple ignore conditions match, all matching ignore controls in the list will execute. - Order does not matter. - Maximum number of specifications is 100. Can only be set if [solution_types][google.cloud.retail.v2alpha.ServingConfig.solution_types] is [SOLUTION_TYPE_SEARCH][google.cloud.retail.v2main.SolutionType.SOLUTION_TYPE_SEARCH].
repeated string ignore_control_ids = 15;- Parameters:
values- The ignoreControlIds to add.- Returns:
- This builder for chaining.
-
clearIgnoreControlIds
public ServingConfig.Builder clearIgnoreControlIds()
Condition ignore specifications. If multiple ignore conditions match, all matching ignore controls in the list will execute. - Order does not matter. - Maximum number of specifications is 100. Can only be set if [solution_types][google.cloud.retail.v2alpha.ServingConfig.solution_types] is [SOLUTION_TYPE_SEARCH][google.cloud.retail.v2main.SolutionType.SOLUTION_TYPE_SEARCH].
repeated string ignore_control_ids = 15;- Returns:
- This builder for chaining.
-
addIgnoreControlIdsBytes
public ServingConfig.Builder addIgnoreControlIdsBytes(com.google.protobuf.ByteString value)
Condition ignore specifications. If multiple ignore conditions match, all matching ignore controls in the list will execute. - Order does not matter. - Maximum number of specifications is 100. Can only be set if [solution_types][google.cloud.retail.v2alpha.ServingConfig.solution_types] is [SOLUTION_TYPE_SEARCH][google.cloud.retail.v2main.SolutionType.SOLUTION_TYPE_SEARCH].
repeated string ignore_control_ids = 15;- Parameters:
value- The bytes of the ignoreControlIds to add.- Returns:
- This builder for chaining.
-
getDiversityLevel
public String getDiversityLevel()
How much diversity to use in recommendation model results e.g. `medium-diversity` or `high-diversity`. Currently supported values: * `no-diversity` * `low-diversity` * `medium-diversity` * `high-diversity` * `auto-diversity` If not specified, we choose default based on recommendation model type. Default value: `no-diversity`. Can only be set if [solution_types][google.cloud.retail.v2alpha.ServingConfig.solution_types] is [SOLUTION_TYPE_RECOMMENDATION][google.cloud.retail.v2main.SolutionType.SOLUTION_TYPE_RECOMMENDATION].
string diversity_level = 8;- Specified by:
getDiversityLevelin interfaceServingConfigOrBuilder- Returns:
- The diversityLevel.
-
getDiversityLevelBytes
public com.google.protobuf.ByteString getDiversityLevelBytes()
How much diversity to use in recommendation model results e.g. `medium-diversity` or `high-diversity`. Currently supported values: * `no-diversity` * `low-diversity` * `medium-diversity` * `high-diversity` * `auto-diversity` If not specified, we choose default based on recommendation model type. Default value: `no-diversity`. Can only be set if [solution_types][google.cloud.retail.v2alpha.ServingConfig.solution_types] is [SOLUTION_TYPE_RECOMMENDATION][google.cloud.retail.v2main.SolutionType.SOLUTION_TYPE_RECOMMENDATION].
string diversity_level = 8;- Specified by:
getDiversityLevelBytesin interfaceServingConfigOrBuilder- Returns:
- The bytes for diversityLevel.
-
setDiversityLevel
public ServingConfig.Builder setDiversityLevel(String value)
How much diversity to use in recommendation model results e.g. `medium-diversity` or `high-diversity`. Currently supported values: * `no-diversity` * `low-diversity` * `medium-diversity` * `high-diversity` * `auto-diversity` If not specified, we choose default based on recommendation model type. Default value: `no-diversity`. Can only be set if [solution_types][google.cloud.retail.v2alpha.ServingConfig.solution_types] is [SOLUTION_TYPE_RECOMMENDATION][google.cloud.retail.v2main.SolutionType.SOLUTION_TYPE_RECOMMENDATION].
string diversity_level = 8;- Parameters:
value- The diversityLevel to set.- Returns:
- This builder for chaining.
-
clearDiversityLevel
public ServingConfig.Builder clearDiversityLevel()
How much diversity to use in recommendation model results e.g. `medium-diversity` or `high-diversity`. Currently supported values: * `no-diversity` * `low-diversity` * `medium-diversity` * `high-diversity` * `auto-diversity` If not specified, we choose default based on recommendation model type. Default value: `no-diversity`. Can only be set if [solution_types][google.cloud.retail.v2alpha.ServingConfig.solution_types] is [SOLUTION_TYPE_RECOMMENDATION][google.cloud.retail.v2main.SolutionType.SOLUTION_TYPE_RECOMMENDATION].
string diversity_level = 8;- Returns:
- This builder for chaining.
-
setDiversityLevelBytes
public ServingConfig.Builder setDiversityLevelBytes(com.google.protobuf.ByteString value)
How much diversity to use in recommendation model results e.g. `medium-diversity` or `high-diversity`. Currently supported values: * `no-diversity` * `low-diversity` * `medium-diversity` * `high-diversity` * `auto-diversity` If not specified, we choose default based on recommendation model type. Default value: `no-diversity`. Can only be set if [solution_types][google.cloud.retail.v2alpha.ServingConfig.solution_types] is [SOLUTION_TYPE_RECOMMENDATION][google.cloud.retail.v2main.SolutionType.SOLUTION_TYPE_RECOMMENDATION].
string diversity_level = 8;- Parameters:
value- The bytes for diversityLevel to set.- Returns:
- This builder for chaining.
-
getDiversityTypeValue
public int getDiversityTypeValue()
What kind of diversity to use - data driven or rule based. If unset, the server behavior defaults to [RULE_BASED_DIVERSITY][google.cloud.retail.v2alpha.ServingConfig.DiversityType.RULE_BASED_DIVERSITY].
.google.cloud.retail.v2alpha.ServingConfig.DiversityType diversity_type = 20;- Specified by:
getDiversityTypeValuein interfaceServingConfigOrBuilder- Returns:
- The enum numeric value on the wire for diversityType.
-
setDiversityTypeValue
public ServingConfig.Builder setDiversityTypeValue(int value)
What kind of diversity to use - data driven or rule based. If unset, the server behavior defaults to [RULE_BASED_DIVERSITY][google.cloud.retail.v2alpha.ServingConfig.DiversityType.RULE_BASED_DIVERSITY].
.google.cloud.retail.v2alpha.ServingConfig.DiversityType diversity_type = 20;- Parameters:
value- The enum numeric value on the wire for diversityType to set.- Returns:
- This builder for chaining.
-
getDiversityType
public ServingConfig.DiversityType getDiversityType()
What kind of diversity to use - data driven or rule based. If unset, the server behavior defaults to [RULE_BASED_DIVERSITY][google.cloud.retail.v2alpha.ServingConfig.DiversityType.RULE_BASED_DIVERSITY].
.google.cloud.retail.v2alpha.ServingConfig.DiversityType diversity_type = 20;- Specified by:
getDiversityTypein interfaceServingConfigOrBuilder- Returns:
- The diversityType.
-
setDiversityType
public ServingConfig.Builder setDiversityType(ServingConfig.DiversityType value)
What kind of diversity to use - data driven or rule based. If unset, the server behavior defaults to [RULE_BASED_DIVERSITY][google.cloud.retail.v2alpha.ServingConfig.DiversityType.RULE_BASED_DIVERSITY].
.google.cloud.retail.v2alpha.ServingConfig.DiversityType diversity_type = 20;- Parameters:
value- The diversityType to set.- Returns:
- This builder for chaining.
-
clearDiversityType
public ServingConfig.Builder clearDiversityType()
What kind of diversity to use - data driven or rule based. If unset, the server behavior defaults to [RULE_BASED_DIVERSITY][google.cloud.retail.v2alpha.ServingConfig.DiversityType.RULE_BASED_DIVERSITY].
.google.cloud.retail.v2alpha.ServingConfig.DiversityType diversity_type = 20;- Returns:
- This builder for chaining.
-
getEnableCategoryFilterLevel
public String getEnableCategoryFilterLevel()
Whether to add additional category filters on the `similar-items` model. If not specified, we enable it by default. Allowed values are: * `no-category-match`: No additional filtering of original results from the model and the customer's filters. * `relaxed-category-match`: Only keep results with categories that match at least one item categories in the PredictRequests's context item. * If customer also sends filters in the PredictRequest, then the results will satisfy both conditions (user given and category match). Can only be set if [solution_types][google.cloud.retail.v2alpha.ServingConfig.solution_types] is [SOLUTION_TYPE_RECOMMENDATION][google.cloud.retail.v2main.SolutionType.SOLUTION_TYPE_RECOMMENDATION].
string enable_category_filter_level = 16;- Specified by:
getEnableCategoryFilterLevelin interfaceServingConfigOrBuilder- Returns:
- The enableCategoryFilterLevel.
-
getEnableCategoryFilterLevelBytes
public com.google.protobuf.ByteString getEnableCategoryFilterLevelBytes()
Whether to add additional category filters on the `similar-items` model. If not specified, we enable it by default. Allowed values are: * `no-category-match`: No additional filtering of original results from the model and the customer's filters. * `relaxed-category-match`: Only keep results with categories that match at least one item categories in the PredictRequests's context item. * If customer also sends filters in the PredictRequest, then the results will satisfy both conditions (user given and category match). Can only be set if [solution_types][google.cloud.retail.v2alpha.ServingConfig.solution_types] is [SOLUTION_TYPE_RECOMMENDATION][google.cloud.retail.v2main.SolutionType.SOLUTION_TYPE_RECOMMENDATION].
string enable_category_filter_level = 16;- Specified by:
getEnableCategoryFilterLevelBytesin interfaceServingConfigOrBuilder- Returns:
- The bytes for enableCategoryFilterLevel.
-
setEnableCategoryFilterLevel
public ServingConfig.Builder setEnableCategoryFilterLevel(String value)
Whether to add additional category filters on the `similar-items` model. If not specified, we enable it by default. Allowed values are: * `no-category-match`: No additional filtering of original results from the model and the customer's filters. * `relaxed-category-match`: Only keep results with categories that match at least one item categories in the PredictRequests's context item. * If customer also sends filters in the PredictRequest, then the results will satisfy both conditions (user given and category match). Can only be set if [solution_types][google.cloud.retail.v2alpha.ServingConfig.solution_types] is [SOLUTION_TYPE_RECOMMENDATION][google.cloud.retail.v2main.SolutionType.SOLUTION_TYPE_RECOMMENDATION].
string enable_category_filter_level = 16;- Parameters:
value- The enableCategoryFilterLevel to set.- Returns:
- This builder for chaining.
-
clearEnableCategoryFilterLevel
public ServingConfig.Builder clearEnableCategoryFilterLevel()
Whether to add additional category filters on the `similar-items` model. If not specified, we enable it by default. Allowed values are: * `no-category-match`: No additional filtering of original results from the model and the customer's filters. * `relaxed-category-match`: Only keep results with categories that match at least one item categories in the PredictRequests's context item. * If customer also sends filters in the PredictRequest, then the results will satisfy both conditions (user given and category match). Can only be set if [solution_types][google.cloud.retail.v2alpha.ServingConfig.solution_types] is [SOLUTION_TYPE_RECOMMENDATION][google.cloud.retail.v2main.SolutionType.SOLUTION_TYPE_RECOMMENDATION].
string enable_category_filter_level = 16;- Returns:
- This builder for chaining.
-
setEnableCategoryFilterLevelBytes
public ServingConfig.Builder setEnableCategoryFilterLevelBytes(com.google.protobuf.ByteString value)
Whether to add additional category filters on the `similar-items` model. If not specified, we enable it by default. Allowed values are: * `no-category-match`: No additional filtering of original results from the model and the customer's filters. * `relaxed-category-match`: Only keep results with categories that match at least one item categories in the PredictRequests's context item. * If customer also sends filters in the PredictRequest, then the results will satisfy both conditions (user given and category match). Can only be set if [solution_types][google.cloud.retail.v2alpha.ServingConfig.solution_types] is [SOLUTION_TYPE_RECOMMENDATION][google.cloud.retail.v2main.SolutionType.SOLUTION_TYPE_RECOMMENDATION].
string enable_category_filter_level = 16;- Parameters:
value- The bytes for enableCategoryFilterLevel to set.- Returns:
- This builder for chaining.
-
hasPersonalizationSpec
public boolean hasPersonalizationSpec()
The specification for personalization spec. Can only be set if [solution_types][google.cloud.retail.v2alpha.ServingConfig.solution_types] is [SOLUTION_TYPE_SEARCH][google.cloud.retail.v2main.SolutionType.SOLUTION_TYPE_SEARCH]. Notice that if both [ServingConfig.personalization_spec][google.cloud.retail.v2alpha.ServingConfig.personalization_spec] and [SearchRequest.personalization_spec][google.cloud.retail.v2alpha.SearchRequest.personalization_spec] are set. [SearchRequest.personalization_spec][google.cloud.retail.v2alpha.SearchRequest.personalization_spec] will override [ServingConfig.personalization_spec][google.cloud.retail.v2alpha.ServingConfig.personalization_spec].
.google.cloud.retail.v2alpha.SearchRequest.PersonalizationSpec personalization_spec = 21;- Specified by:
hasPersonalizationSpecin interfaceServingConfigOrBuilder- Returns:
- Whether the personalizationSpec field is set.
-
getPersonalizationSpec
public SearchRequest.PersonalizationSpec getPersonalizationSpec()
The specification for personalization spec. Can only be set if [solution_types][google.cloud.retail.v2alpha.ServingConfig.solution_types] is [SOLUTION_TYPE_SEARCH][google.cloud.retail.v2main.SolutionType.SOLUTION_TYPE_SEARCH]. Notice that if both [ServingConfig.personalization_spec][google.cloud.retail.v2alpha.ServingConfig.personalization_spec] and [SearchRequest.personalization_spec][google.cloud.retail.v2alpha.SearchRequest.personalization_spec] are set. [SearchRequest.personalization_spec][google.cloud.retail.v2alpha.SearchRequest.personalization_spec] will override [ServingConfig.personalization_spec][google.cloud.retail.v2alpha.ServingConfig.personalization_spec].
.google.cloud.retail.v2alpha.SearchRequest.PersonalizationSpec personalization_spec = 21;- Specified by:
getPersonalizationSpecin interfaceServingConfigOrBuilder- Returns:
- The personalizationSpec.
-
setPersonalizationSpec
public ServingConfig.Builder setPersonalizationSpec(SearchRequest.PersonalizationSpec value)
The specification for personalization spec. Can only be set if [solution_types][google.cloud.retail.v2alpha.ServingConfig.solution_types] is [SOLUTION_TYPE_SEARCH][google.cloud.retail.v2main.SolutionType.SOLUTION_TYPE_SEARCH]. Notice that if both [ServingConfig.personalization_spec][google.cloud.retail.v2alpha.ServingConfig.personalization_spec] and [SearchRequest.personalization_spec][google.cloud.retail.v2alpha.SearchRequest.personalization_spec] are set. [SearchRequest.personalization_spec][google.cloud.retail.v2alpha.SearchRequest.personalization_spec] will override [ServingConfig.personalization_spec][google.cloud.retail.v2alpha.ServingConfig.personalization_spec].
.google.cloud.retail.v2alpha.SearchRequest.PersonalizationSpec personalization_spec = 21;
-
setPersonalizationSpec
public ServingConfig.Builder setPersonalizationSpec(SearchRequest.PersonalizationSpec.Builder builderForValue)
The specification for personalization spec. Can only be set if [solution_types][google.cloud.retail.v2alpha.ServingConfig.solution_types] is [SOLUTION_TYPE_SEARCH][google.cloud.retail.v2main.SolutionType.SOLUTION_TYPE_SEARCH]. Notice that if both [ServingConfig.personalization_spec][google.cloud.retail.v2alpha.ServingConfig.personalization_spec] and [SearchRequest.personalization_spec][google.cloud.retail.v2alpha.SearchRequest.personalization_spec] are set. [SearchRequest.personalization_spec][google.cloud.retail.v2alpha.SearchRequest.personalization_spec] will override [ServingConfig.personalization_spec][google.cloud.retail.v2alpha.ServingConfig.personalization_spec].
.google.cloud.retail.v2alpha.SearchRequest.PersonalizationSpec personalization_spec = 21;
-
mergePersonalizationSpec
public ServingConfig.Builder mergePersonalizationSpec(SearchRequest.PersonalizationSpec value)
The specification for personalization spec. Can only be set if [solution_types][google.cloud.retail.v2alpha.ServingConfig.solution_types] is [SOLUTION_TYPE_SEARCH][google.cloud.retail.v2main.SolutionType.SOLUTION_TYPE_SEARCH]. Notice that if both [ServingConfig.personalization_spec][google.cloud.retail.v2alpha.ServingConfig.personalization_spec] and [SearchRequest.personalization_spec][google.cloud.retail.v2alpha.SearchRequest.personalization_spec] are set. [SearchRequest.personalization_spec][google.cloud.retail.v2alpha.SearchRequest.personalization_spec] will override [ServingConfig.personalization_spec][google.cloud.retail.v2alpha.ServingConfig.personalization_spec].
.google.cloud.retail.v2alpha.SearchRequest.PersonalizationSpec personalization_spec = 21;
-
clearPersonalizationSpec
public ServingConfig.Builder clearPersonalizationSpec()
The specification for personalization spec. Can only be set if [solution_types][google.cloud.retail.v2alpha.ServingConfig.solution_types] is [SOLUTION_TYPE_SEARCH][google.cloud.retail.v2main.SolutionType.SOLUTION_TYPE_SEARCH]. Notice that if both [ServingConfig.personalization_spec][google.cloud.retail.v2alpha.ServingConfig.personalization_spec] and [SearchRequest.personalization_spec][google.cloud.retail.v2alpha.SearchRequest.personalization_spec] are set. [SearchRequest.personalization_spec][google.cloud.retail.v2alpha.SearchRequest.personalization_spec] will override [ServingConfig.personalization_spec][google.cloud.retail.v2alpha.ServingConfig.personalization_spec].
.google.cloud.retail.v2alpha.SearchRequest.PersonalizationSpec personalization_spec = 21;
-
getPersonalizationSpecBuilder
public SearchRequest.PersonalizationSpec.Builder getPersonalizationSpecBuilder()
The specification for personalization spec. Can only be set if [solution_types][google.cloud.retail.v2alpha.ServingConfig.solution_types] is [SOLUTION_TYPE_SEARCH][google.cloud.retail.v2main.SolutionType.SOLUTION_TYPE_SEARCH]. Notice that if both [ServingConfig.personalization_spec][google.cloud.retail.v2alpha.ServingConfig.personalization_spec] and [SearchRequest.personalization_spec][google.cloud.retail.v2alpha.SearchRequest.personalization_spec] are set. [SearchRequest.personalization_spec][google.cloud.retail.v2alpha.SearchRequest.personalization_spec] will override [ServingConfig.personalization_spec][google.cloud.retail.v2alpha.ServingConfig.personalization_spec].
.google.cloud.retail.v2alpha.SearchRequest.PersonalizationSpec personalization_spec = 21;
-
getPersonalizationSpecOrBuilder
public SearchRequest.PersonalizationSpecOrBuilder getPersonalizationSpecOrBuilder()
The specification for personalization spec. Can only be set if [solution_types][google.cloud.retail.v2alpha.ServingConfig.solution_types] is [SOLUTION_TYPE_SEARCH][google.cloud.retail.v2main.SolutionType.SOLUTION_TYPE_SEARCH]. Notice that if both [ServingConfig.personalization_spec][google.cloud.retail.v2alpha.ServingConfig.personalization_spec] and [SearchRequest.personalization_spec][google.cloud.retail.v2alpha.SearchRequest.personalization_spec] are set. [SearchRequest.personalization_spec][google.cloud.retail.v2alpha.SearchRequest.personalization_spec] will override [ServingConfig.personalization_spec][google.cloud.retail.v2alpha.ServingConfig.personalization_spec].
.google.cloud.retail.v2alpha.SearchRequest.PersonalizationSpec personalization_spec = 21;- Specified by:
getPersonalizationSpecOrBuilderin interfaceServingConfigOrBuilder
-
getSolutionTypesList
public List<SolutionType> getSolutionTypesList()
Required. Immutable. Specifies the solution types that a serving config can be associated with. Currently we support setting only one type of solution.
repeated .google.cloud.retail.v2alpha.SolutionType solution_types = 19 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];- Specified by:
getSolutionTypesListin interfaceServingConfigOrBuilder- Returns:
- A list containing the solutionTypes.
-
getSolutionTypesCount
public int getSolutionTypesCount()
Required. Immutable. Specifies the solution types that a serving config can be associated with. Currently we support setting only one type of solution.
repeated .google.cloud.retail.v2alpha.SolutionType solution_types = 19 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];- Specified by:
getSolutionTypesCountin interfaceServingConfigOrBuilder- Returns:
- The count of solutionTypes.
-
getSolutionTypes
public SolutionType getSolutionTypes(int index)
Required. Immutable. Specifies the solution types that a serving config can be associated with. Currently we support setting only one type of solution.
repeated .google.cloud.retail.v2alpha.SolutionType solution_types = 19 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];- Specified by:
getSolutionTypesin interfaceServingConfigOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The solutionTypes at the given index.
-
setSolutionTypes
public ServingConfig.Builder setSolutionTypes(int index, SolutionType value)
Required. Immutable. Specifies the solution types that a serving config can be associated with. Currently we support setting only one type of solution.
repeated .google.cloud.retail.v2alpha.SolutionType solution_types = 19 [(.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 ServingConfig.Builder addSolutionTypes(SolutionType value)
Required. Immutable. Specifies the solution types that a serving config can be associated with. Currently we support setting only one type of solution.
repeated .google.cloud.retail.v2alpha.SolutionType solution_types = 19 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];- Parameters:
value- The solutionTypes to add.- Returns:
- This builder for chaining.
-
addAllSolutionTypes
public ServingConfig.Builder addAllSolutionTypes(Iterable<? extends SolutionType> values)
Required. Immutable. Specifies the solution types that a serving config can be associated with. Currently we support setting only one type of solution.
repeated .google.cloud.retail.v2alpha.SolutionType solution_types = 19 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];- Parameters:
values- The solutionTypes to add.- Returns:
- This builder for chaining.
-
clearSolutionTypes
public ServingConfig.Builder clearSolutionTypes()
Required. Immutable. Specifies the solution types that a serving config can be associated with. Currently we support setting only one type of solution.
repeated .google.cloud.retail.v2alpha.SolutionType solution_types = 19 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];- Returns:
- This builder for chaining.
-
getSolutionTypesValueList
public List<Integer> getSolutionTypesValueList()
Required. Immutable. Specifies the solution types that a serving config can be associated with. Currently we support setting only one type of solution.
repeated .google.cloud.retail.v2alpha.SolutionType solution_types = 19 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];- Specified by:
getSolutionTypesValueListin interfaceServingConfigOrBuilder- Returns:
- A list containing the enum numeric values on the wire for solutionTypes.
-
getSolutionTypesValue
public int getSolutionTypesValue(int index)
Required. Immutable. Specifies the solution types that a serving config can be associated with. Currently we support setting only one type of solution.
repeated .google.cloud.retail.v2alpha.SolutionType solution_types = 19 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];- Specified by:
getSolutionTypesValuein interfaceServingConfigOrBuilder- 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 ServingConfig.Builder setSolutionTypesValue(int index, int value)
Required. Immutable. Specifies the solution types that a serving config can be associated with. Currently we support setting only one type of solution.
repeated .google.cloud.retail.v2alpha.SolutionType solution_types = 19 [(.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 ServingConfig.Builder addSolutionTypesValue(int value)
Required. Immutable. Specifies the solution types that a serving config can be associated with. Currently we support setting only one type of solution.
repeated .google.cloud.retail.v2alpha.SolutionType solution_types = 19 [(.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 ServingConfig.Builder addAllSolutionTypesValue(Iterable<Integer> values)
Required. Immutable. Specifies the solution types that a serving config can be associated with. Currently we support setting only one type of solution.
repeated .google.cloud.retail.v2alpha.SolutionType solution_types = 19 [(.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.
-
setUnknownFields
public final ServingConfig.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<ServingConfig.Builder>
-
mergeUnknownFields
public final ServingConfig.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<ServingConfig.Builder>
-
-