ControlRetailV2alphaArgs class

The set of arguments for Control. The set of arguments for Control.

Constructors

ControlRetailV2alphaArgs({required Input<String> catalogId, required Input<String> controlId, required Input<String> displayName, Input<GoogleCloudRetailV2alphaSearchRequestFacetSpec>? facetSpec, Input<String>? location, Input<String>? name, Input<String>? project, Input<GoogleCloudRetailV2alphaRule>? rule, Input<List<ControlSearchSolutionUseCaseItemRetailV2alpha>>? searchSolutionUseCase, required Input<List<ControlSolutionTypesItemRetailV2alpha>> solutionTypes})
Creates a new ControlRetailV2alphaArgs. catalogId Required. controlId Required. The ID to use for the Control, which will become the final component of the Control's resource name. This value should be 4-63 characters, and valid characters are /a-z-_/. displayName 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. facetSpec A facet specification to perform faceted search. Note that this field is deprecated and will throw NOT_IMPLEMENTED if used for creating a control. location Optional. name Immutable. Fully qualified name projects/*/locations/global/catalogs/*/controls/* project Optional. rule 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". searchSolutionUseCase 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 if not specified. Currently only allow one search_solution_use_case per control. solutionTypes 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.
const
ControlRetailV2alphaArgs.fromMap(Map<String, dynamic> map)
factory

Properties

catalogId → Input<String>
final
controlId → Input<String>
Required. The ID to use for the Control, which will become the final component of the Control's resource name. This value should be 4-63 characters, and valid characters are /a-z-_/.
final
displayName → Input<String>
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.
final
facetSpec → Input<GoogleCloudRetailV2alphaSearchRequestFacetSpec>?
A facet specification to perform faceted search. Note that this field is deprecated and will throw NOT_IMPLEMENTED if used for creating a control.
final
hashCode → int
The hash code for this object.
no setterinherited
location → Input<String>?
final
name → Input<String>?
Immutable. Fully qualified name projects/*/locations/global/catalogs/*/controls/*
final
project → Input<String>?
final
rule → Input<GoogleCloudRetailV2alphaRule>?
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".
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
searchSolutionUseCase → Input<List<ControlSearchSolutionUseCaseItemRetailV2alpha>>?
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 if not specified. Currently only allow one search_solution_use_case per control.
final
solutionTypes → Input<List<ControlSolutionTypesItemRetailV2alpha>>
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.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMap() → Map<String, dynamic>
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited