public interface ControlOrBuilder
extends com.google.protobuf.MessageOrBuilder
| Modifier and Type | Method and Description |
|---|---|
String |
getAssociatedServingConfigIds(int index)
Output only.
|
com.google.protobuf.ByteString |
getAssociatedServingConfigIdsBytes(int index)
Output only.
|
int |
getAssociatedServingConfigIdsCount()
Output only.
|
List<String> |
getAssociatedServingConfigIdsList()
Output only.
|
Control.ControlCase |
getControlCase() |
String |
getDisplayName()
Required.
|
com.google.protobuf.ByteString |
getDisplayNameBytes()
Required.
|
SearchRequest.FacetSpec |
getFacetSpec()
Deprecated.
google.cloud.retail.v2alpha.Control.facet_spec is deprecated. See
google/cloud/retail/v2alpha/control.proto;l=51
|
SearchRequest.FacetSpecOrBuilder |
getFacetSpecOrBuilder()
Deprecated.
|
String |
getName()
Immutable.
|
com.google.protobuf.ByteString |
getNameBytes()
Immutable.
|
Rule |
getRule()
A rule control - a condition-action pair.
|
RuleOrBuilder |
getRuleOrBuilder()
A rule control - a condition-action pair.
|
SearchSolutionUseCase |
getSearchSolutionUseCase(int index)
Specifies the use case for the control.
|
int |
getSearchSolutionUseCaseCount()
Specifies the use case for the control.
|
List<SearchSolutionUseCase> |
getSearchSolutionUseCaseList()
Specifies the use case for the control.
|
int |
getSearchSolutionUseCaseValue(int index)
Specifies the use case for the control.
|
List<Integer> |
getSearchSolutionUseCaseValueList()
Specifies the use case for the control.
|
SolutionType |
getSolutionTypes(int index)
Required.
|
int |
getSolutionTypesCount()
Required.
|
List<SolutionType> |
getSolutionTypesList()
Required.
|
int |
getSolutionTypesValue(int index)
Required.
|
List<Integer> |
getSolutionTypesValueList()
Required.
|
boolean |
hasFacetSpec()
Deprecated.
google.cloud.retail.v2alpha.Control.facet_spec is deprecated. See
google/cloud/retail/v2alpha/control.proto;l=51
|
boolean |
hasRule()
A rule control - a condition-action pair.
|
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof@Deprecated boolean hasFacetSpec()
A facet specification to perform faceted search. Note that this field is deprecated and will throw NOT_IMPLEMENTED if used for creating a control.
.google.cloud.retail.v2alpha.SearchRequest.FacetSpec facet_spec = 3 [deprecated = true];
@Deprecated SearchRequest.FacetSpec getFacetSpec()
A facet specification to perform faceted search. Note that this field is deprecated and will throw NOT_IMPLEMENTED if used for creating a control.
.google.cloud.retail.v2alpha.SearchRequest.FacetSpec facet_spec = 3 [deprecated = true];
@Deprecated SearchRequest.FacetSpecOrBuilder getFacetSpecOrBuilder()
A facet specification to perform faceted search. Note that this field is deprecated and will throw NOT_IMPLEMENTED if used for creating a control.
.google.cloud.retail.v2alpha.SearchRequest.FacetSpec facet_spec = 3 [deprecated = true];
boolean hasRule()
A rule control - a condition-action pair. Enacts a set action when the condition is triggered. For example: Boost "gShoe" when query full matches "Running Shoes".
.google.cloud.retail.v2alpha.Rule rule = 4;Rule getRule()
A rule control - a condition-action pair. Enacts a set action when the condition is triggered. For example: Boost "gShoe" when query full matches "Running Shoes".
.google.cloud.retail.v2alpha.Rule rule = 4;RuleOrBuilder getRuleOrBuilder()
A rule control - a condition-action pair. Enacts a set action when the condition is triggered. For example: Boost "gShoe" when query full matches "Running Shoes".
.google.cloud.retail.v2alpha.Rule rule = 4;String getName()
Immutable. Fully qualified name `projects/*/locations/global/catalogs/*/controls/*`
string name = 1 [(.google.api.field_behavior) = IMMUTABLE];com.google.protobuf.ByteString getNameBytes()
Immutable. Fully qualified name `projects/*/locations/global/catalogs/*/controls/*`
string name = 1 [(.google.api.field_behavior) = IMMUTABLE];String getDisplayName()
Required. The human readable control display name. Used in Retail UI. This field must be a UTF-8 encoded string with a length limit of 128 characters. Otherwise, an INVALID_ARGUMENT error is thrown.
string display_name = 2 [(.google.api.field_behavior) = REQUIRED];com.google.protobuf.ByteString getDisplayNameBytes()
Required. The human readable control display name. Used in Retail UI. This field must be a UTF-8 encoded string with a length limit of 128 characters. Otherwise, an INVALID_ARGUMENT error is thrown.
string display_name = 2 [(.google.api.field_behavior) = REQUIRED];List<String> getAssociatedServingConfigIdsList()
Output only. List of [serving config][google.cloud.retail.v2alpha.ServingConfig] ids that are associated with this control in the same [Catalog][google.cloud.retail.v2alpha.Catalog]. Note the association is managed via the [ServingConfig][google.cloud.retail.v2alpha.ServingConfig], this is an output only denormalized view.
repeated string associated_serving_config_ids = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
int getAssociatedServingConfigIdsCount()
Output only. List of [serving config][google.cloud.retail.v2alpha.ServingConfig] ids that are associated with this control in the same [Catalog][google.cloud.retail.v2alpha.Catalog]. Note the association is managed via the [ServingConfig][google.cloud.retail.v2alpha.ServingConfig], this is an output only denormalized view.
repeated string associated_serving_config_ids = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
String getAssociatedServingConfigIds(int index)
Output only. List of [serving config][google.cloud.retail.v2alpha.ServingConfig] ids that are associated with this control in the same [Catalog][google.cloud.retail.v2alpha.Catalog]. Note the association is managed via the [ServingConfig][google.cloud.retail.v2alpha.ServingConfig], this is an output only denormalized view.
repeated string associated_serving_config_ids = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
index - The index of the element to return.com.google.protobuf.ByteString getAssociatedServingConfigIdsBytes(int index)
Output only. List of [serving config][google.cloud.retail.v2alpha.ServingConfig] ids that are associated with this control in the same [Catalog][google.cloud.retail.v2alpha.Catalog]. Note the association is managed via the [ServingConfig][google.cloud.retail.v2alpha.ServingConfig], this is an output only denormalized view.
repeated string associated_serving_config_ids = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
index - The index of the value to return.List<SolutionType> getSolutionTypesList()
Required. Immutable. The solution types that the control is used for. Currently we support setting only one type of solution at creation time. Only `SOLUTION_TYPE_SEARCH` value is supported at the moment. If no solution type is provided at creation time, will default to [SOLUTION_TYPE_SEARCH][google.cloud.retail.v2alpha.SolutionType.SOLUTION_TYPE_SEARCH].
repeated .google.cloud.retail.v2alpha.SolutionType solution_types = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
int getSolutionTypesCount()
Required. Immutable. The solution types that the control is used for. Currently we support setting only one type of solution at creation time. Only `SOLUTION_TYPE_SEARCH` value is supported at the moment. If no solution type is provided at creation time, will default to [SOLUTION_TYPE_SEARCH][google.cloud.retail.v2alpha.SolutionType.SOLUTION_TYPE_SEARCH].
repeated .google.cloud.retail.v2alpha.SolutionType solution_types = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
SolutionType getSolutionTypes(int index)
Required. Immutable. The solution types that the control is used for. Currently we support setting only one type of solution at creation time. Only `SOLUTION_TYPE_SEARCH` value is supported at the moment. If no solution type is provided at creation time, will default to [SOLUTION_TYPE_SEARCH][google.cloud.retail.v2alpha.SolutionType.SOLUTION_TYPE_SEARCH].
repeated .google.cloud.retail.v2alpha.SolutionType solution_types = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
index - The index of the element to return.List<Integer> getSolutionTypesValueList()
Required. Immutable. The solution types that the control is used for. Currently we support setting only one type of solution at creation time. Only `SOLUTION_TYPE_SEARCH` value is supported at the moment. If no solution type is provided at creation time, will default to [SOLUTION_TYPE_SEARCH][google.cloud.retail.v2alpha.SolutionType.SOLUTION_TYPE_SEARCH].
repeated .google.cloud.retail.v2alpha.SolutionType solution_types = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
int getSolutionTypesValue(int index)
Required. Immutable. The solution types that the control is used for. Currently we support setting only one type of solution at creation time. Only `SOLUTION_TYPE_SEARCH` value is supported at the moment. If no solution type is provided at creation time, will default to [SOLUTION_TYPE_SEARCH][google.cloud.retail.v2alpha.SolutionType.SOLUTION_TYPE_SEARCH].
repeated .google.cloud.retail.v2alpha.SolutionType solution_types = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
index - The index of the value to return.List<SearchSolutionUseCase> getSearchSolutionUseCaseList()
Specifies the use case for the control. Affects what condition fields can be set. Only settable by search controls. Will default to [SEARCH_SOLUTION_USE_CASE_SEARCH][google.cloud.retail.v2alpha.SearchSolutionUseCase.SEARCH_SOLUTION_USE_CASE_SEARCH] if not specified. Currently only allow one search_solution_use_case per control.
repeated .google.cloud.retail.v2alpha.SearchSolutionUseCase search_solution_use_case = 7;
int getSearchSolutionUseCaseCount()
Specifies the use case for the control. Affects what condition fields can be set. Only settable by search controls. Will default to [SEARCH_SOLUTION_USE_CASE_SEARCH][google.cloud.retail.v2alpha.SearchSolutionUseCase.SEARCH_SOLUTION_USE_CASE_SEARCH] if not specified. Currently only allow one search_solution_use_case per control.
repeated .google.cloud.retail.v2alpha.SearchSolutionUseCase search_solution_use_case = 7;
SearchSolutionUseCase getSearchSolutionUseCase(int index)
Specifies the use case for the control. Affects what condition fields can be set. Only settable by search controls. Will default to [SEARCH_SOLUTION_USE_CASE_SEARCH][google.cloud.retail.v2alpha.SearchSolutionUseCase.SEARCH_SOLUTION_USE_CASE_SEARCH] if not specified. Currently only allow one search_solution_use_case per control.
repeated .google.cloud.retail.v2alpha.SearchSolutionUseCase search_solution_use_case = 7;
index - The index of the element to return.List<Integer> getSearchSolutionUseCaseValueList()
Specifies the use case for the control. Affects what condition fields can be set. Only settable by search controls. Will default to [SEARCH_SOLUTION_USE_CASE_SEARCH][google.cloud.retail.v2alpha.SearchSolutionUseCase.SEARCH_SOLUTION_USE_CASE_SEARCH] if not specified. Currently only allow one search_solution_use_case per control.
repeated .google.cloud.retail.v2alpha.SearchSolutionUseCase search_solution_use_case = 7;
int getSearchSolutionUseCaseValue(int index)
Specifies the use case for the control. Affects what condition fields can be set. Only settable by search controls. Will default to [SEARCH_SOLUTION_USE_CASE_SEARCH][google.cloud.retail.v2alpha.SearchSolutionUseCase.SEARCH_SOLUTION_USE_CASE_SEARCH] if not specified. Currently only allow one search_solution_use_case per control.
repeated .google.cloud.retail.v2alpha.SearchSolutionUseCase search_solution_use_case = 7;
index - The index of the value to return.Control.ControlCase getControlCase()
Copyright © 2024 Google LLC. All rights reserved.