public sealed class Control : IMessage<Control>, IEquatable<Control>, IDeepCloneable<Control>, IBufferMessage, IMessageConfigures dynamic metadata that can be linked to a [ServingConfig][google.cloud.retail.v2.ServingConfig] and affect search or recommendation results at serving time.
Implements
IMessage<Control>, IEquatable<Control>, IDeepCloneable<Control>, IBufferMessage, IMessageNamespace
Google.Cloud.Retail.V2Assembly
Google.Cloud.Retail.V2.dll
Constructors
Control()
public Control()Control(Control)
public Control(Control other)| Parameter | |
|---|---|
| Name | Description |
other |
Control |
Properties
AssociatedServingConfigIds
public RepeatedField<string> AssociatedServingConfigIds { get; }Output only. List of [serving configuration][google.cloud.retail.v2.ServingConfig] ids that are associated with this control in the same [Catalog][google.cloud.retail.v2.Catalog].
Note the association is managed via the [ServingConfig][google.cloud.retail.v2.ServingConfig], this is an output only denormalized view.
| Property Value | |
|---|---|
| Type | Description |
RepeatedField<String> |
|
ControlCase
public Control.ControlOneofCase ControlCase { get; }| Property Value | |
|---|---|
| Type | Description |
Control.ControlOneofCase |
|
ControlName
public ControlName ControlName { get; set; }ControlName-typed view over the Name resource name property.
| Property Value | |
|---|---|
| Type | Description |
ControlName |
|
DisplayName
public string DisplayName { get; set; }Required. The human readable control display name. Used in Retail UI.
This field must be a UTF-8 encoded string with a length limit of 128 characters. Otherwise, an INVALID_ARGUMENT error is thrown.
| Property Value | |
|---|---|
| Type | Description |
String |
|
Name
public string Name { get; set; }Immutable. Fully qualified name
projects/*/locations/global/catalogs/*/controls/*
| Property Value | |
|---|---|
| Type | Description |
String |
|
Rule
public Rule Rule { get; set; }A rule control - a condition-action pair. Enacts a set action when the condition is triggered. For example: Boost "gShoe" when query full matches "Running Shoes".
| Property Value | |
|---|---|
| Type | Description |
Rule |
|
SearchSolutionUseCase
public RepeatedField<SearchSolutionUseCase> SearchSolutionUseCase { get; }Specifies the use case for the control. Affects what condition fields can be set. Only settable by search controls. Will default to [SEARCH_SOLUTION_USE_CASE_SEARCH][google.cloud.retail.v2.SearchSolutionUseCase.SEARCH_SOLUTION_USE_CASE_SEARCH] if not specified. Currently only allow one search_solution_use_case per control.
| Property Value | |
|---|---|
| Type | Description |
RepeatedField<SearchSolutionUseCase> |
|
SolutionTypes
public RepeatedField<SolutionType> SolutionTypes { get; }Required. Immutable. The solution types that the control is used for. Currently we support setting only one type of solution at creation time.
Only SOLUTION_TYPE_SEARCH value is supported at the moment.
If no solution type is provided at creation time, will default to
[SOLUTION_TYPE_SEARCH][google.cloud.retail.v2.SolutionType.SOLUTION_TYPE_SEARCH].
| Property Value | |
|---|---|
| Type | Description |
RepeatedField<SolutionType> |
|