- 2.56.0 (latest)
- 2.55.0
- 2.54.0
- 2.53.0
- 2.51.0
- 2.50.0
- 2.49.0
- 2.48.0
- 2.47.0
- 2.46.0
- 2.45.0
- 2.44.0
- 2.43.0
- 2.42.0
- 2.41.0
- 2.39.0
- 2.38.0
- 2.37.0
- 2.36.0
- 2.35.0
- 2.34.0
- 2.33.0
- 2.32.0
- 2.31.0
- 2.30.0
- 2.29.0
- 2.26.0
- 2.25.0
- 2.24.0
- 2.23.0
- 2.22.0
- 2.21.0
- 2.20.0
- 2.19.0
- 2.18.0
- 2.17.0
- 2.16.0
- 2.15.0
- 2.14.0
- 2.13.0
- 2.11.0
- 2.10.0
- 2.9.0
- 2.8.0
- 2.7.0
- 2.6.0
- 2.5.1
- 2.4.0
- 2.3.0
- 2.2.3
- 2.1.0
- 2.0.19
public static final class Control.Builder extends GeneratedMessageV3.Builder<Control.Builder> implements ControlOrBuilder
Configures dynamic serving time metadata that is used to pre and post process search/recommendation model results.
Protobuf type google.cloud.retail.v2alpha.Control
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > Control.BuilderImplements
ControlOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Type | Description |
Descriptor |
Methods
addAllAssociatedServingConfigIds(Iterable<String> values)
public Control.Builder addAllAssociatedServingConfigIds(Iterable<String> values)
Output only. List of serving configuration ids that that are associated with this control. Note the association is managed via the ServingConfig, this is an output only denormalizeed view. Assumed to be in the same catalog.
repeated string associated_serving_config_ids = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
Name | Description |
values | Iterable<String> The associatedServingConfigIds to add. |
Type | Description |
Control.Builder | This builder for chaining. |
addAllSearchSolutionUseCase(Iterable<? extends SearchSolutionUseCase> values)
public Control.Builder addAllSearchSolutionUseCase(Iterable<? extends SearchSolutionUseCase> values)
Required. 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.
repeated .google.cloud.retail.v2alpha.SearchSolutionUseCase search_solution_use_case = 7 [(.google.api.field_behavior) = REQUIRED];
Name | Description |
values | Iterable<? extends com.google.cloud.retail.v2alpha.SearchSolutionUseCase> The searchSolutionUseCase to add. |
Type | Description |
Control.Builder | This builder for chaining. |
addAllSearchSolutionUseCaseValue(Iterable<Integer> values)
public Control.Builder addAllSearchSolutionUseCaseValue(Iterable<Integer> values)
Required. 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.
repeated .google.cloud.retail.v2alpha.SearchSolutionUseCase search_solution_use_case = 7 [(.google.api.field_behavior) = REQUIRED];
Name | Description |
values | Iterable<Integer> The enum numeric values on the wire for searchSolutionUseCase to add. |
Type | Description |
Control.Builder | This builder for chaining. |
addAllSolutionTypes(Iterable<? extends SolutionType> values)
public Control.Builder addAllSolutionTypes(Iterable<? extends SolutionType> values)
Required. Immutable. The solution types that the serving config 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.
repeated .google.cloud.retail.v2alpha.SolutionType solution_types = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
Name | Description |
values | Iterable<? extends com.google.cloud.retail.v2alpha.SolutionType> The solutionTypes to add. |
Type | Description |
Control.Builder | This builder for chaining. |
addAllSolutionTypesValue(Iterable<Integer> values)
public Control.Builder addAllSolutionTypesValue(Iterable<Integer> values)
Required. Immutable. The solution types that the serving config 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.
repeated .google.cloud.retail.v2alpha.SolutionType solution_types = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
Name | Description |
values | Iterable<Integer> The enum numeric values on the wire for solutionTypes to add. |
Type | Description |
Control.Builder | This builder for chaining. |
addAssociatedServingConfigIds(String value)
public Control.Builder addAssociatedServingConfigIds(String value)
Output only. List of serving configuration ids that that are associated with this control. Note the association is managed via the ServingConfig, this is an output only denormalizeed view. Assumed to be in the same catalog.
repeated string associated_serving_config_ids = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
Name | Description |
value | String The associatedServingConfigIds to add. |
Type | Description |
Control.Builder | This builder for chaining. |
addAssociatedServingConfigIdsBytes(ByteString value)
public Control.Builder addAssociatedServingConfigIdsBytes(ByteString value)
Output only. List of serving configuration ids that that are associated with this control. Note the association is managed via the ServingConfig, this is an output only denormalizeed view. Assumed to be in the same catalog.
repeated string associated_serving_config_ids = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
Name | Description |
value | ByteString The bytes of the associatedServingConfigIds to add. |
Type | Description |
Control.Builder | This builder for chaining. |
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public Control.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
Control.Builder |
addSearchSolutionUseCase(SearchSolutionUseCase value)
public Control.Builder addSearchSolutionUseCase(SearchSolutionUseCase value)
Required. 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.
repeated .google.cloud.retail.v2alpha.SearchSolutionUseCase search_solution_use_case = 7 [(.google.api.field_behavior) = REQUIRED];
Name | Description |
value | SearchSolutionUseCase The searchSolutionUseCase to add. |
Type | Description |
Control.Builder | This builder for chaining. |
addSearchSolutionUseCaseValue(int value)
public Control.Builder addSearchSolutionUseCaseValue(int value)
Required. 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.
repeated .google.cloud.retail.v2alpha.SearchSolutionUseCase search_solution_use_case = 7 [(.google.api.field_behavior) = REQUIRED];
Name | Description |
value | int The enum numeric value on the wire for searchSolutionUseCase to add. |
Type | Description |
Control.Builder | This builder for chaining. |
addSolutionTypes(SolutionType value)
public Control.Builder addSolutionTypes(SolutionType value)
Required. Immutable. The solution types that the serving config 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.
repeated .google.cloud.retail.v2alpha.SolutionType solution_types = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
Name | Description |
value | SolutionType The solutionTypes to add. |
Type | Description |
Control.Builder | This builder for chaining. |
addSolutionTypesValue(int value)
public Control.Builder addSolutionTypesValue(int value)
Required. Immutable. The solution types that the serving config 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.
repeated .google.cloud.retail.v2alpha.SolutionType solution_types = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
Name | Description |
value | int The enum numeric value on the wire for solutionTypes to add. |
Type | Description |
Control.Builder | This builder for chaining. |
build()
public Control build()
Type | Description |
Control |
buildPartial()
public Control buildPartial()
Type | Description |
Control |
clear()
public Control.Builder clear()
Type | Description |
Control.Builder |
clearAssociatedServingConfigIds()
public Control.Builder clearAssociatedServingConfigIds()
Output only. List of serving configuration ids that that are associated with this control. Note the association is managed via the ServingConfig, this is an output only denormalizeed view. Assumed to be in the same catalog.
repeated string associated_serving_config_ids = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
Type | Description |
Control.Builder | This builder for chaining. |
clearControl()
public Control.Builder clearControl()
Type | Description |
Control.Builder |
clearDisplayName()
public Control.Builder clearDisplayName()
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];
Type | Description |
Control.Builder | This builder for chaining. |
clearFacetSpec()
public Control.Builder clearFacetSpec()
A facet specification to perform faceted search.
.google.cloud.retail.v2alpha.SearchRequest.FacetSpec facet_spec = 3;
Type | Description |
Control.Builder |
clearField(Descriptors.FieldDescriptor field)
public Control.Builder clearField(Descriptors.FieldDescriptor field)
Name | Description |
field | FieldDescriptor |
Type | Description |
Control.Builder |
clearName()
public Control.Builder clearName()
Immutable. Fully qualified name
projects/*/locations/global/catalogs/*/controls/*
string name = 1 [(.google.api.field_behavior) = IMMUTABLE];
Type | Description |
Control.Builder | This builder for chaining. |
clearOneof(Descriptors.OneofDescriptor oneof)
public Control.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Name | Description |
oneof | OneofDescriptor |
Type | Description |
Control.Builder |
clearRule()
public Control.Builder clearRule()
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;
Type | Description |
Control.Builder |
clearSearchSolutionUseCase()
public Control.Builder clearSearchSolutionUseCase()
Required. 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.
repeated .google.cloud.retail.v2alpha.SearchSolutionUseCase search_solution_use_case = 7 [(.google.api.field_behavior) = REQUIRED];
Type | Description |
Control.Builder | This builder for chaining. |
clearSolutionTypes()
public Control.Builder clearSolutionTypes()
Required. Immutable. The solution types that the serving config 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.
repeated .google.cloud.retail.v2alpha.SolutionType solution_types = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
Type | Description |
Control.Builder | This builder for chaining. |
clone()
public Control.Builder clone()
Type | Description |
Control.Builder |
getAssociatedServingConfigIds(int index)
public String getAssociatedServingConfigIds(int index)
Output only. List of serving configuration ids that that are associated with this control. Note the association is managed via the ServingConfig, this is an output only denormalizeed view. Assumed to be in the same catalog.
repeated string associated_serving_config_ids = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
Name | Description |
index | int The index of the element to return. |
Type | Description |
String | The associatedServingConfigIds at the given index. |
getAssociatedServingConfigIdsBytes(int index)
public ByteString getAssociatedServingConfigIdsBytes(int index)
Output only. List of serving configuration ids that that are associated with this control. Note the association is managed via the ServingConfig, this is an output only denormalizeed view. Assumed to be in the same catalog.
repeated string associated_serving_config_ids = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
Name | Description |
index | int The index of the value to return. |
Type | Description |
ByteString | The bytes of the associatedServingConfigIds at the given index. |
getAssociatedServingConfigIdsCount()
public int getAssociatedServingConfigIdsCount()
Output only. List of serving configuration ids that that are associated with this control. Note the association is managed via the ServingConfig, this is an output only denormalizeed view. Assumed to be in the same catalog.
repeated string associated_serving_config_ids = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
Type | Description |
int | The count of associatedServingConfigIds. |
getAssociatedServingConfigIdsList()
public ProtocolStringList getAssociatedServingConfigIdsList()
Output only. List of serving configuration ids that that are associated with this control. Note the association is managed via the ServingConfig, this is an output only denormalizeed view. Assumed to be in the same catalog.
repeated string associated_serving_config_ids = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
Type | Description |
ProtocolStringList | A list containing the associatedServingConfigIds. |
getControlCase()
public Control.ControlCase getControlCase()
Type | Description |
Control.ControlCase |
getDefaultInstanceForType()
public Control getDefaultInstanceForType()
Type | Description |
Control |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Type | Description |
Descriptor |
getDisplayName()
public 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];
Type | Description |
String | The displayName. |
getDisplayNameBytes()
public 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];
Type | Description |
ByteString | The bytes for displayName. |
getFacetSpec()
public SearchRequest.FacetSpec getFacetSpec()
A facet specification to perform faceted search.
.google.cloud.retail.v2alpha.SearchRequest.FacetSpec facet_spec = 3;
Type | Description |
SearchRequest.FacetSpec | The facetSpec. |
getFacetSpecBuilder()
public SearchRequest.FacetSpec.Builder getFacetSpecBuilder()
A facet specification to perform faceted search.
.google.cloud.retail.v2alpha.SearchRequest.FacetSpec facet_spec = 3;
Type | Description |
SearchRequest.FacetSpec.Builder |
getFacetSpecOrBuilder()
public SearchRequest.FacetSpecOrBuilder getFacetSpecOrBuilder()
A facet specification to perform faceted search.
.google.cloud.retail.v2alpha.SearchRequest.FacetSpec facet_spec = 3;
Type | Description |
SearchRequest.FacetSpecOrBuilder |
getName()
public String getName()
Immutable. Fully qualified name
projects/*/locations/global/catalogs/*/controls/*
string name = 1 [(.google.api.field_behavior) = IMMUTABLE];
Type | Description |
String | The name. |
getNameBytes()
public ByteString getNameBytes()
Immutable. Fully qualified name
projects/*/locations/global/catalogs/*/controls/*
string name = 1 [(.google.api.field_behavior) = IMMUTABLE];
Type | Description |
ByteString | The bytes for name. |
getRule()
public 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;
Type | Description |
Rule | The rule. |
getRuleBuilder()
public Rule.Builder getRuleBuilder()
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;
Type | Description |
Rule.Builder |
getRuleOrBuilder()
public 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;
Type | Description |
RuleOrBuilder |
getSearchSolutionUseCase(int index)
public SearchSolutionUseCase getSearchSolutionUseCase(int index)
Required. 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.
repeated .google.cloud.retail.v2alpha.SearchSolutionUseCase search_solution_use_case = 7 [(.google.api.field_behavior) = REQUIRED];
Name | Description |
index | int The index of the element to return. |
Type | Description |
SearchSolutionUseCase | The searchSolutionUseCase at the given index. |
getSearchSolutionUseCaseCount()
public int getSearchSolutionUseCaseCount()
Required. 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.
repeated .google.cloud.retail.v2alpha.SearchSolutionUseCase search_solution_use_case = 7 [(.google.api.field_behavior) = REQUIRED];
Type | Description |
int | The count of searchSolutionUseCase. |
getSearchSolutionUseCaseList()
public List<SearchSolutionUseCase> getSearchSolutionUseCaseList()
Required. 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.
repeated .google.cloud.retail.v2alpha.SearchSolutionUseCase search_solution_use_case = 7 [(.google.api.field_behavior) = REQUIRED];
Type | Description |
List<SearchSolutionUseCase> | A list containing the searchSolutionUseCase. |
getSearchSolutionUseCaseValue(int index)
public int getSearchSolutionUseCaseValue(int index)
Required. 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.
repeated .google.cloud.retail.v2alpha.SearchSolutionUseCase search_solution_use_case = 7 [(.google.api.field_behavior) = REQUIRED];
Name | Description |
index | int The index of the value to return. |
Type | Description |
int | The enum numeric value on the wire of searchSolutionUseCase at the given index. |
getSearchSolutionUseCaseValueList()
public List<Integer> getSearchSolutionUseCaseValueList()
Required. 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.
repeated .google.cloud.retail.v2alpha.SearchSolutionUseCase search_solution_use_case = 7 [(.google.api.field_behavior) = REQUIRED];
Type | Description |
List<Integer> | A list containing the enum numeric values on the wire for searchSolutionUseCase. |
getSolutionTypes(int index)
public SolutionType getSolutionTypes(int index)
Required. Immutable. The solution types that the serving config 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.
repeated .google.cloud.retail.v2alpha.SolutionType solution_types = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
Name | Description |
index | int The index of the element to return. |
Type | Description |
SolutionType | The solutionTypes at the given index. |
getSolutionTypesCount()
public int getSolutionTypesCount()
Required. Immutable. The solution types that the serving config 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.
repeated .google.cloud.retail.v2alpha.SolutionType solution_types = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
Type | Description |
int | The count of solutionTypes. |
getSolutionTypesList()
public List<SolutionType> getSolutionTypesList()
Required. Immutable. The solution types that the serving config 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.
repeated .google.cloud.retail.v2alpha.SolutionType solution_types = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
Type | Description |
List<SolutionType> | A list containing the solutionTypes. |
getSolutionTypesValue(int index)
public int getSolutionTypesValue(int index)
Required. Immutable. The solution types that the serving config 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.
repeated .google.cloud.retail.v2alpha.SolutionType solution_types = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
Name | Description |
index | int The index of the value to return. |
Type | Description |
int | The enum numeric value on the wire of solutionTypes at the given index. |
getSolutionTypesValueList()
public List<Integer> getSolutionTypesValueList()
Required. Immutable. The solution types that the serving config 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.
repeated .google.cloud.retail.v2alpha.SolutionType solution_types = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
Type | Description |
List<Integer> | A list containing the enum numeric values on the wire for solutionTypes. |
hasFacetSpec()
public boolean hasFacetSpec()
A facet specification to perform faceted search.
.google.cloud.retail.v2alpha.SearchRequest.FacetSpec facet_spec = 3;
Type | Description |
boolean | Whether the facetSpec field is set. |
hasRule()
public 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;
Type | Description |
boolean | Whether the rule field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Type | Description |
boolean |
mergeFacetSpec(SearchRequest.FacetSpec value)
public Control.Builder mergeFacetSpec(SearchRequest.FacetSpec value)
A facet specification to perform faceted search.
.google.cloud.retail.v2alpha.SearchRequest.FacetSpec facet_spec = 3;
Name | Description |
value | SearchRequest.FacetSpec |
Type | Description |
Control.Builder |
mergeFrom(Control other)
public Control.Builder mergeFrom(Control other)
Name | Description |
other | Control |
Type | Description |
Control.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public Control.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
Control.Builder |
Type | Description |
IOException |
mergeFrom(Message other)
public Control.Builder mergeFrom(Message other)
Name | Description |
other | Message |
Type | Description |
Control.Builder |
mergeRule(Rule value)
public Control.Builder mergeRule(Rule value)
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;
Name | Description |
value | Rule |
Type | Description |
Control.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final Control.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
Control.Builder |
setAssociatedServingConfigIds(int index, String value)
public Control.Builder setAssociatedServingConfigIds(int index, String value)
Output only. List of serving configuration ids that that are associated with this control. Note the association is managed via the ServingConfig, this is an output only denormalizeed view. Assumed to be in the same catalog.
repeated string associated_serving_config_ids = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
Name | Description |
index | int The index to set the value at. |
value | String The associatedServingConfigIds to set. |
Type | Description |
Control.Builder | This builder for chaining. |
setDisplayName(String value)
public Control.Builder setDisplayName(String value)
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];
Name | Description |
value | String The displayName to set. |
Type | Description |
Control.Builder | This builder for chaining. |
setDisplayNameBytes(ByteString value)
public Control.Builder setDisplayNameBytes(ByteString value)
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];
Name | Description |
value | ByteString The bytes for displayName to set. |
Type | Description |
Control.Builder | This builder for chaining. |
setFacetSpec(SearchRequest.FacetSpec value)
public Control.Builder setFacetSpec(SearchRequest.FacetSpec value)
A facet specification to perform faceted search.
.google.cloud.retail.v2alpha.SearchRequest.FacetSpec facet_spec = 3;
Name | Description |
value | SearchRequest.FacetSpec |
Type | Description |
Control.Builder |
setFacetSpec(SearchRequest.FacetSpec.Builder builderForValue)
public Control.Builder setFacetSpec(SearchRequest.FacetSpec.Builder builderForValue)
A facet specification to perform faceted search.
.google.cloud.retail.v2alpha.SearchRequest.FacetSpec facet_spec = 3;
Name | Description |
builderForValue | SearchRequest.FacetSpec.Builder |
Type | Description |
Control.Builder |
setField(Descriptors.FieldDescriptor field, Object value)
public Control.Builder setField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
Control.Builder |
setName(String value)
public Control.Builder setName(String value)
Immutable. Fully qualified name
projects/*/locations/global/catalogs/*/controls/*
string name = 1 [(.google.api.field_behavior) = IMMUTABLE];
Name | Description |
value | String The name to set. |
Type | Description |
Control.Builder | This builder for chaining. |
setNameBytes(ByteString value)
public Control.Builder setNameBytes(ByteString value)
Immutable. Fully qualified name
projects/*/locations/global/catalogs/*/controls/*
string name = 1 [(.google.api.field_behavior) = IMMUTABLE];
Name | Description |
value | ByteString The bytes for name to set. |
Type | Description |
Control.Builder | This builder for chaining. |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public Control.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Name | Description |
field | FieldDescriptor |
index | int |
value | Object |
Type | Description |
Control.Builder |
setRule(Rule value)
public Control.Builder setRule(Rule value)
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;
Name | Description |
value | Rule |
Type | Description |
Control.Builder |
setRule(Rule.Builder builderForValue)
public Control.Builder setRule(Rule.Builder builderForValue)
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;
Name | Description |
builderForValue | Rule.Builder |
Type | Description |
Control.Builder |
setSearchSolutionUseCase(int index, SearchSolutionUseCase value)
public Control.Builder setSearchSolutionUseCase(int index, SearchSolutionUseCase value)
Required. 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.
repeated .google.cloud.retail.v2alpha.SearchSolutionUseCase search_solution_use_case = 7 [(.google.api.field_behavior) = REQUIRED];
Name | Description |
index | int The index to set the value at. |
value | SearchSolutionUseCase The searchSolutionUseCase to set. |
Type | Description |
Control.Builder | This builder for chaining. |
setSearchSolutionUseCaseValue(int index, int value)
public Control.Builder setSearchSolutionUseCaseValue(int index, int value)
Required. 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.
repeated .google.cloud.retail.v2alpha.SearchSolutionUseCase search_solution_use_case = 7 [(.google.api.field_behavior) = REQUIRED];
Name | Description |
index | int The index to set the value at. |
value | int The enum numeric value on the wire for searchSolutionUseCase to set. |
Type | Description |
Control.Builder | This builder for chaining. |
setSolutionTypes(int index, SolutionType value)
public Control.Builder setSolutionTypes(int index, SolutionType value)
Required. Immutable. The solution types that the serving config 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.
repeated .google.cloud.retail.v2alpha.SolutionType solution_types = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
Name | Description |
index | int The index to set the value at. |
value | SolutionType The solutionTypes to set. |
Type | Description |
Control.Builder | This builder for chaining. |
setSolutionTypesValue(int index, int value)
public Control.Builder setSolutionTypesValue(int index, int value)
Required. Immutable. The solution types that the serving config 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.
repeated .google.cloud.retail.v2alpha.SolutionType solution_types = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
Name | Description |
index | int The index to set the value at. |
value | int The enum numeric value on the wire for solutionTypes to set. |
Type | Description |
Control.Builder | This builder for chaining. |
setUnknownFields(UnknownFieldSet unknownFields)
public final Control.Builder setUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
Control.Builder |