Google Cloud Native is in preview. Google Cloud Classic is fully supported.
Google Cloud Native v0.32.0 published on Wednesday, Nov 29, 2023 by Pulumi
google-native.retail/v2alpha.getServingConfig
Explore with Pulumi AI
Google Cloud Native is in preview. Google Cloud Classic is fully supported.
Google Cloud Native v0.32.0 published on Wednesday, Nov 29, 2023 by Pulumi
Gets a ServingConfig. Returns a NotFound error if the ServingConfig does not exist.
Using getServingConfig
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getServingConfig(args: GetServingConfigArgs, opts?: InvokeOptions): Promise<GetServingConfigResult>
function getServingConfigOutput(args: GetServingConfigOutputArgs, opts?: InvokeOptions): Output<GetServingConfigResult>def get_serving_config(catalog_id: Optional[str] = None,
                       location: Optional[str] = None,
                       project: Optional[str] = None,
                       serving_config_id: Optional[str] = None,
                       opts: Optional[InvokeOptions] = None) -> GetServingConfigResult
def get_serving_config_output(catalog_id: Optional[pulumi.Input[str]] = None,
                       location: Optional[pulumi.Input[str]] = None,
                       project: Optional[pulumi.Input[str]] = None,
                       serving_config_id: Optional[pulumi.Input[str]] = None,
                       opts: Optional[InvokeOptions] = None) -> Output[GetServingConfigResult]func LookupServingConfig(ctx *Context, args *LookupServingConfigArgs, opts ...InvokeOption) (*LookupServingConfigResult, error)
func LookupServingConfigOutput(ctx *Context, args *LookupServingConfigOutputArgs, opts ...InvokeOption) LookupServingConfigResultOutput> Note: This function is named LookupServingConfig in the Go SDK.
public static class GetServingConfig 
{
    public static Task<GetServingConfigResult> InvokeAsync(GetServingConfigArgs args, InvokeOptions? opts = null)
    public static Output<GetServingConfigResult> Invoke(GetServingConfigInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetServingConfigResult> getServingConfig(GetServingConfigArgs args, InvokeOptions options)
public static Output<GetServingConfigResult> getServingConfig(GetServingConfigArgs args, InvokeOptions options)
fn::invoke:
  function: google-native:retail/v2alpha:getServingConfig
  arguments:
    # arguments dictionaryThe following arguments are supported:
- CatalogId string
- Location string
- ServingConfig stringId 
- Project string
- CatalogId string
- Location string
- ServingConfig stringId 
- Project string
- catalogId String
- location String
- servingConfig StringId 
- project String
- catalogId string
- location string
- servingConfig stringId 
- project string
- catalog_id str
- location str
- serving_config_ strid 
- project str
- catalogId String
- location String
- servingConfig StringId 
- project String
getServingConfig Result
The following output properties are available:
- BoostControl List<string>Ids 
- 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 and 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 is SOLUTION_TYPE_SEARCH.
- DisplayName string
- 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.
- DiversityLevel string
- How much diversity to use in recommendation model results e.g. medium-diversityorhigh-diversity. Currently supported values: *no-diversity*low-diversity*medium-diversity*high-diversity*auto-diversityIf not specified, we choose default based on recommendation model type. Default value:no-diversity. Can only be set if solution_types is SOLUTION_TYPE_RECOMMENDATION.
- DiversityType string
- What kind of diversity to use - data driven or rule based. If unset, the server behavior defaults to RULE_BASED_DIVERSITY.
- DoNot List<string>Associate Control Ids 
- 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 is SOLUTION_TYPE_SEARCH.
- DynamicFacet Pulumi.Spec Google Native. Retail. V2Alpha. Outputs. Google Cloud Retail V2alpha Search Request Dynamic Facet Spec Response 
- The specification for dynamically generated facets. Notice that only textual facets can be dynamically generated. Can only be set if solution_types is SOLUTION_TYPE_SEARCH.
- EnableCategory stringFilter Level 
- Whether to add additional category filters on the similar-itemsmodel. 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 is SOLUTION_TYPE_RECOMMENDATION.
- FacetControl List<string>Ids 
- Facet specifications for faceted search. If empty, no facets are returned. The ids refer to the ids of Control resources with only the Facet control set. These controls are assumed to be in the same Catalog as the ServingConfig. A maximum of 100 values are allowed. Otherwise, an INVALID_ARGUMENT error is returned. Can only be set if solution_types is SOLUTION_TYPE_SEARCH.
- FilterControl List<string>Ids 
- 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 is SOLUTION_TYPE_SEARCH.
- IgnoreControl List<string>Ids 
- 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 is SOLUTION_TYPE_SEARCH.
- ModelId string
- The id of the model in the same 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 is SOLUTION_TYPE_RECOMMENDATION.
- Name string
- Immutable. Fully qualified name projects/*/locations/global/catalogs/*/servingConfig/*
- OnewaySynonyms List<string>Control Ids 
- 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 is SOLUTION_TYPE_SEARCH.
- PersonalizationSpec Pulumi.Google Native. Retail. V2Alpha. Outputs. Google Cloud Retail V2alpha Search Request Personalization Spec Response 
- The specification for personalization spec. Can only be set if solution_types is SOLUTION_TYPE_SEARCH. Notice that if both ServingConfig.personalization_spec and SearchRequest.personalization_spec are set. SearchRequest.personalization_spec will override ServingConfig.personalization_spec.
- PriceReranking stringLevel 
- 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-rerankingIf not specified, we choose default based on model type. Default value:no-price-reranking. Can only be set if solution_types is SOLUTION_TYPE_RECOMMENDATION.
- RedirectControl List<string>Ids 
- 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 is SOLUTION_TYPE_SEARCH.
- ReplacementControl List<string>Ids 
- 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 is SOLUTION_TYPE_SEARCH.
- SolutionTypes List<string>
- Immutable. Specifies the solution types that a serving config can be associated with. Currently we support setting only one type of solution.
- TwowaySynonyms List<string>Control Ids 
- 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 is SOLUTION_TYPE_SEARCH.
- BoostControl []stringIds 
- 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 and 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 is SOLUTION_TYPE_SEARCH.
- DisplayName string
- 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.
- DiversityLevel string
- How much diversity to use in recommendation model results e.g. medium-diversityorhigh-diversity. Currently supported values: *no-diversity*low-diversity*medium-diversity*high-diversity*auto-diversityIf not specified, we choose default based on recommendation model type. Default value:no-diversity. Can only be set if solution_types is SOLUTION_TYPE_RECOMMENDATION.
- DiversityType string
- What kind of diversity to use - data driven or rule based. If unset, the server behavior defaults to RULE_BASED_DIVERSITY.
- DoNot []stringAssociate Control Ids 
- 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 is SOLUTION_TYPE_SEARCH.
- DynamicFacet GoogleSpec Cloud Retail V2alpha Search Request Dynamic Facet Spec Response 
- The specification for dynamically generated facets. Notice that only textual facets can be dynamically generated. Can only be set if solution_types is SOLUTION_TYPE_SEARCH.
- EnableCategory stringFilter Level 
- Whether to add additional category filters on the similar-itemsmodel. 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 is SOLUTION_TYPE_RECOMMENDATION.
- FacetControl []stringIds 
- Facet specifications for faceted search. If empty, no facets are returned. The ids refer to the ids of Control resources with only the Facet control set. These controls are assumed to be in the same Catalog as the ServingConfig. A maximum of 100 values are allowed. Otherwise, an INVALID_ARGUMENT error is returned. Can only be set if solution_types is SOLUTION_TYPE_SEARCH.
- FilterControl []stringIds 
- 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 is SOLUTION_TYPE_SEARCH.
- IgnoreControl []stringIds 
- 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 is SOLUTION_TYPE_SEARCH.
- ModelId string
- The id of the model in the same 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 is SOLUTION_TYPE_RECOMMENDATION.
- Name string
- Immutable. Fully qualified name projects/*/locations/global/catalogs/*/servingConfig/*
- OnewaySynonyms []stringControl Ids 
- 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 is SOLUTION_TYPE_SEARCH.
- PersonalizationSpec GoogleCloud Retail V2alpha Search Request Personalization Spec Response 
- The specification for personalization spec. Can only be set if solution_types is SOLUTION_TYPE_SEARCH. Notice that if both ServingConfig.personalization_spec and SearchRequest.personalization_spec are set. SearchRequest.personalization_spec will override ServingConfig.personalization_spec.
- PriceReranking stringLevel 
- 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-rerankingIf not specified, we choose default based on model type. Default value:no-price-reranking. Can only be set if solution_types is SOLUTION_TYPE_RECOMMENDATION.
- RedirectControl []stringIds 
- 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 is SOLUTION_TYPE_SEARCH.
- ReplacementControl []stringIds 
- 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 is SOLUTION_TYPE_SEARCH.
- SolutionTypes []string
- Immutable. Specifies the solution types that a serving config can be associated with. Currently we support setting only one type of solution.
- TwowaySynonyms []stringControl Ids 
- 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 is SOLUTION_TYPE_SEARCH.
- boostControl List<String>Ids 
- 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 and 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 is SOLUTION_TYPE_SEARCH.
- displayName String
- 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.
- diversityLevel String
- How much diversity to use in recommendation model results e.g. medium-diversityorhigh-diversity. Currently supported values: *no-diversity*low-diversity*medium-diversity*high-diversity*auto-diversityIf not specified, we choose default based on recommendation model type. Default value:no-diversity. Can only be set if solution_types is SOLUTION_TYPE_RECOMMENDATION.
- diversityType String
- What kind of diversity to use - data driven or rule based. If unset, the server behavior defaults to RULE_BASED_DIVERSITY.
- doNot List<String>Associate Control Ids 
- 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 is SOLUTION_TYPE_SEARCH.
- dynamicFacet GoogleSpec Cloud Retail V2alpha Search Request Dynamic Facet Spec Response 
- The specification for dynamically generated facets. Notice that only textual facets can be dynamically generated. Can only be set if solution_types is SOLUTION_TYPE_SEARCH.
- enableCategory StringFilter Level 
- Whether to add additional category filters on the similar-itemsmodel. 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 is SOLUTION_TYPE_RECOMMENDATION.
- facetControl List<String>Ids 
- Facet specifications for faceted search. If empty, no facets are returned. The ids refer to the ids of Control resources with only the Facet control set. These controls are assumed to be in the same Catalog as the ServingConfig. A maximum of 100 values are allowed. Otherwise, an INVALID_ARGUMENT error is returned. Can only be set if solution_types is SOLUTION_TYPE_SEARCH.
- filterControl List<String>Ids 
- 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 is SOLUTION_TYPE_SEARCH.
- ignoreControl List<String>Ids 
- 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 is SOLUTION_TYPE_SEARCH.
- modelId String
- The id of the model in the same 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 is SOLUTION_TYPE_RECOMMENDATION.
- name String
- Immutable. Fully qualified name projects/*/locations/global/catalogs/*/servingConfig/*
- onewaySynonyms List<String>Control Ids 
- 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 is SOLUTION_TYPE_SEARCH.
- personalizationSpec GoogleCloud Retail V2alpha Search Request Personalization Spec Response 
- The specification for personalization spec. Can only be set if solution_types is SOLUTION_TYPE_SEARCH. Notice that if both ServingConfig.personalization_spec and SearchRequest.personalization_spec are set. SearchRequest.personalization_spec will override ServingConfig.personalization_spec.
- priceReranking StringLevel 
- 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-rerankingIf not specified, we choose default based on model type. Default value:no-price-reranking. Can only be set if solution_types is SOLUTION_TYPE_RECOMMENDATION.
- redirectControl List<String>Ids 
- 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 is SOLUTION_TYPE_SEARCH.
- replacementControl List<String>Ids 
- 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 is SOLUTION_TYPE_SEARCH.
- solutionTypes List<String>
- Immutable. Specifies the solution types that a serving config can be associated with. Currently we support setting only one type of solution.
- twowaySynonyms List<String>Control Ids 
- 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 is SOLUTION_TYPE_SEARCH.
- boostControl string[]Ids 
- 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 and 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 is SOLUTION_TYPE_SEARCH.
- displayName string
- 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.
- diversityLevel string
- How much diversity to use in recommendation model results e.g. medium-diversityorhigh-diversity. Currently supported values: *no-diversity*low-diversity*medium-diversity*high-diversity*auto-diversityIf not specified, we choose default based on recommendation model type. Default value:no-diversity. Can only be set if solution_types is SOLUTION_TYPE_RECOMMENDATION.
- diversityType string
- What kind of diversity to use - data driven or rule based. If unset, the server behavior defaults to RULE_BASED_DIVERSITY.
- doNot string[]Associate Control Ids 
- 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 is SOLUTION_TYPE_SEARCH.
- dynamicFacet GoogleSpec Cloud Retail V2alpha Search Request Dynamic Facet Spec Response 
- The specification for dynamically generated facets. Notice that only textual facets can be dynamically generated. Can only be set if solution_types is SOLUTION_TYPE_SEARCH.
- enableCategory stringFilter Level 
- Whether to add additional category filters on the similar-itemsmodel. 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 is SOLUTION_TYPE_RECOMMENDATION.
- facetControl string[]Ids 
- Facet specifications for faceted search. If empty, no facets are returned. The ids refer to the ids of Control resources with only the Facet control set. These controls are assumed to be in the same Catalog as the ServingConfig. A maximum of 100 values are allowed. Otherwise, an INVALID_ARGUMENT error is returned. Can only be set if solution_types is SOLUTION_TYPE_SEARCH.
- filterControl string[]Ids 
- 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 is SOLUTION_TYPE_SEARCH.
- ignoreControl string[]Ids 
- 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 is SOLUTION_TYPE_SEARCH.
- modelId string
- The id of the model in the same 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 is SOLUTION_TYPE_RECOMMENDATION.
- name string
- Immutable. Fully qualified name projects/*/locations/global/catalogs/*/servingConfig/*
- onewaySynonyms string[]Control Ids 
- 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 is SOLUTION_TYPE_SEARCH.
- personalizationSpec GoogleCloud Retail V2alpha Search Request Personalization Spec Response 
- The specification for personalization spec. Can only be set if solution_types is SOLUTION_TYPE_SEARCH. Notice that if both ServingConfig.personalization_spec and SearchRequest.personalization_spec are set. SearchRequest.personalization_spec will override ServingConfig.personalization_spec.
- priceReranking stringLevel 
- 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-rerankingIf not specified, we choose default based on model type. Default value:no-price-reranking. Can only be set if solution_types is SOLUTION_TYPE_RECOMMENDATION.
- redirectControl string[]Ids 
- 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 is SOLUTION_TYPE_SEARCH.
- replacementControl string[]Ids 
- 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 is SOLUTION_TYPE_SEARCH.
- solutionTypes string[]
- Immutable. Specifies the solution types that a serving config can be associated with. Currently we support setting only one type of solution.
- twowaySynonyms string[]Control Ids 
- 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 is SOLUTION_TYPE_SEARCH.
- boost_control_ Sequence[str]ids 
- 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 and 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 is SOLUTION_TYPE_SEARCH.
- display_name str
- 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.
- diversity_level str
- How much diversity to use in recommendation model results e.g. medium-diversityorhigh-diversity. Currently supported values: *no-diversity*low-diversity*medium-diversity*high-diversity*auto-diversityIf not specified, we choose default based on recommendation model type. Default value:no-diversity. Can only be set if solution_types is SOLUTION_TYPE_RECOMMENDATION.
- diversity_type str
- What kind of diversity to use - data driven or rule based. If unset, the server behavior defaults to RULE_BASED_DIVERSITY.
- do_not_ Sequence[str]associate_ control_ ids 
- 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 is SOLUTION_TYPE_SEARCH.
- dynamic_facet_ Googlespec Cloud Retail V2alpha Search Request Dynamic Facet Spec Response 
- The specification for dynamically generated facets. Notice that only textual facets can be dynamically generated. Can only be set if solution_types is SOLUTION_TYPE_SEARCH.
- enable_category_ strfilter_ level 
- Whether to add additional category filters on the similar-itemsmodel. 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 is SOLUTION_TYPE_RECOMMENDATION.
- facet_control_ Sequence[str]ids 
- Facet specifications for faceted search. If empty, no facets are returned. The ids refer to the ids of Control resources with only the Facet control set. These controls are assumed to be in the same Catalog as the ServingConfig. A maximum of 100 values are allowed. Otherwise, an INVALID_ARGUMENT error is returned. Can only be set if solution_types is SOLUTION_TYPE_SEARCH.
- filter_control_ Sequence[str]ids 
- 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 is SOLUTION_TYPE_SEARCH.
- ignore_control_ Sequence[str]ids 
- 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 is SOLUTION_TYPE_SEARCH.
- model_id str
- The id of the model in the same 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 is SOLUTION_TYPE_RECOMMENDATION.
- name str
- Immutable. Fully qualified name projects/*/locations/global/catalogs/*/servingConfig/*
- oneway_synonyms_ Sequence[str]control_ ids 
- 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 is SOLUTION_TYPE_SEARCH.
- personalization_spec GoogleCloud Retail V2alpha Search Request Personalization Spec Response 
- The specification for personalization spec. Can only be set if solution_types is SOLUTION_TYPE_SEARCH. Notice that if both ServingConfig.personalization_spec and SearchRequest.personalization_spec are set. SearchRequest.personalization_spec will override ServingConfig.personalization_spec.
- price_reranking_ strlevel 
- 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-rerankingIf not specified, we choose default based on model type. Default value:no-price-reranking. Can only be set if solution_types is SOLUTION_TYPE_RECOMMENDATION.
- redirect_control_ Sequence[str]ids 
- 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 is SOLUTION_TYPE_SEARCH.
- replacement_control_ Sequence[str]ids 
- 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 is SOLUTION_TYPE_SEARCH.
- solution_types Sequence[str]
- Immutable. Specifies the solution types that a serving config can be associated with. Currently we support setting only one type of solution.
- twoway_synonyms_ Sequence[str]control_ ids 
- 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 is SOLUTION_TYPE_SEARCH.
- boostControl List<String>Ids 
- 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 and 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 is SOLUTION_TYPE_SEARCH.
- displayName String
- 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.
- diversityLevel String
- How much diversity to use in recommendation model results e.g. medium-diversityorhigh-diversity. Currently supported values: *no-diversity*low-diversity*medium-diversity*high-diversity*auto-diversityIf not specified, we choose default based on recommendation model type. Default value:no-diversity. Can only be set if solution_types is SOLUTION_TYPE_RECOMMENDATION.
- diversityType String
- What kind of diversity to use - data driven or rule based. If unset, the server behavior defaults to RULE_BASED_DIVERSITY.
- doNot List<String>Associate Control Ids 
- 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 is SOLUTION_TYPE_SEARCH.
- dynamicFacet Property MapSpec 
- The specification for dynamically generated facets. Notice that only textual facets can be dynamically generated. Can only be set if solution_types is SOLUTION_TYPE_SEARCH.
- enableCategory StringFilter Level 
- Whether to add additional category filters on the similar-itemsmodel. 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 is SOLUTION_TYPE_RECOMMENDATION.
- facetControl List<String>Ids 
- Facet specifications for faceted search. If empty, no facets are returned. The ids refer to the ids of Control resources with only the Facet control set. These controls are assumed to be in the same Catalog as the ServingConfig. A maximum of 100 values are allowed. Otherwise, an INVALID_ARGUMENT error is returned. Can only be set if solution_types is SOLUTION_TYPE_SEARCH.
- filterControl List<String>Ids 
- 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 is SOLUTION_TYPE_SEARCH.
- ignoreControl List<String>Ids 
- 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 is SOLUTION_TYPE_SEARCH.
- modelId String
- The id of the model in the same 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 is SOLUTION_TYPE_RECOMMENDATION.
- name String
- Immutable. Fully qualified name projects/*/locations/global/catalogs/*/servingConfig/*
- onewaySynonyms List<String>Control Ids 
- 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 is SOLUTION_TYPE_SEARCH.
- personalizationSpec Property Map
- The specification for personalization spec. Can only be set if solution_types is SOLUTION_TYPE_SEARCH. Notice that if both ServingConfig.personalization_spec and SearchRequest.personalization_spec are set. SearchRequest.personalization_spec will override ServingConfig.personalization_spec.
- priceReranking StringLevel 
- 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-rerankingIf not specified, we choose default based on model type. Default value:no-price-reranking. Can only be set if solution_types is SOLUTION_TYPE_RECOMMENDATION.
- redirectControl List<String>Ids 
- 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 is SOLUTION_TYPE_SEARCH.
- replacementControl List<String>Ids 
- 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 is SOLUTION_TYPE_SEARCH.
- solutionTypes List<String>
- Immutable. Specifies the solution types that a serving config can be associated with. Currently we support setting only one type of solution.
- twowaySynonyms List<String>Control Ids 
- 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 is SOLUTION_TYPE_SEARCH.
Supporting Types
GoogleCloudRetailV2alphaSearchRequestDynamicFacetSpecResponse         
- Mode string
- Mode of the DynamicFacet feature. Defaults to Mode.DISABLED if it's unset.
- Mode string
- Mode of the DynamicFacet feature. Defaults to Mode.DISABLED if it's unset.
- mode String
- Mode of the DynamicFacet feature. Defaults to Mode.DISABLED if it's unset.
- mode string
- Mode of the DynamicFacet feature. Defaults to Mode.DISABLED if it's unset.
- mode str
- Mode of the DynamicFacet feature. Defaults to Mode.DISABLED if it's unset.
- mode String
- Mode of the DynamicFacet feature. Defaults to Mode.DISABLED if it's unset.
GoogleCloudRetailV2alphaSearchRequestPersonalizationSpecResponse        
- Mode string
- Defaults to Mode.AUTO.
- Mode string
- Defaults to Mode.AUTO.
- mode String
- Defaults to Mode.AUTO.
- mode string
- Defaults to Mode.AUTO.
- mode str
- Defaults to Mode.AUTO.
- mode String
- Defaults to Mode.AUTO.
Package Details
- Repository
- Google Cloud Native pulumi/pulumi-google-native
- License
- Apache-2.0
Google Cloud Native is in preview. Google Cloud Classic is fully supported.
Google Cloud Native v0.32.0 published on Wednesday, Nov 29, 2023 by Pulumi