public static final class SearchRequest.BoostSpec.Builder extends GeneratedMessageV3.Builder<SearchRequest.BoostSpec.Builder> implements SearchRequest.BoostSpecOrBuilder
Boost specification to boost certain items.
Protobuf type google.cloud.retail.v2alpha.SearchRequest.BoostSpec
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
Methods
addAllConditionBoostSpecs(Iterable<? extends SearchRequest.BoostSpec.ConditionBoostSpec> values)
public SearchRequest.BoostSpec.Builder addAllConditionBoostSpecs(Iterable<? extends SearchRequest.BoostSpec.ConditionBoostSpec> values)
Condition boost specifications. If a product matches multiple conditions
in the specifictions, boost scores from these specifications are all
applied and combined in a non-linear way. Maximum number of
specifications is 20.
repeated .google.cloud.retail.v2alpha.SearchRequest.BoostSpec.ConditionBoostSpec condition_boost_specs = 1;
Parameter
Name | Description |
values | Iterable<? extends com.google.cloud.retail.v2alpha.SearchRequest.BoostSpec.ConditionBoostSpec>
|
Returns
addConditionBoostSpecs(SearchRequest.BoostSpec.ConditionBoostSpec value)
public SearchRequest.BoostSpec.Builder addConditionBoostSpecs(SearchRequest.BoostSpec.ConditionBoostSpec value)
Condition boost specifications. If a product matches multiple conditions
in the specifictions, boost scores from these specifications are all
applied and combined in a non-linear way. Maximum number of
specifications is 20.
repeated .google.cloud.retail.v2alpha.SearchRequest.BoostSpec.ConditionBoostSpec condition_boost_specs = 1;
Parameter
Returns
addConditionBoostSpecs(SearchRequest.BoostSpec.ConditionBoostSpec.Builder builderForValue)
public SearchRequest.BoostSpec.Builder addConditionBoostSpecs(SearchRequest.BoostSpec.ConditionBoostSpec.Builder builderForValue)
Condition boost specifications. If a product matches multiple conditions
in the specifictions, boost scores from these specifications are all
applied and combined in a non-linear way. Maximum number of
specifications is 20.
repeated .google.cloud.retail.v2alpha.SearchRequest.BoostSpec.ConditionBoostSpec condition_boost_specs = 1;
Parameter
Returns
addConditionBoostSpecs(int index, SearchRequest.BoostSpec.ConditionBoostSpec value)
public SearchRequest.BoostSpec.Builder addConditionBoostSpecs(int index, SearchRequest.BoostSpec.ConditionBoostSpec value)
Condition boost specifications. If a product matches multiple conditions
in the specifictions, boost scores from these specifications are all
applied and combined in a non-linear way. Maximum number of
specifications is 20.
repeated .google.cloud.retail.v2alpha.SearchRequest.BoostSpec.ConditionBoostSpec condition_boost_specs = 1;
Parameters
Returns
addConditionBoostSpecs(int index, SearchRequest.BoostSpec.ConditionBoostSpec.Builder builderForValue)
public SearchRequest.BoostSpec.Builder addConditionBoostSpecs(int index, SearchRequest.BoostSpec.ConditionBoostSpec.Builder builderForValue)
Condition boost specifications. If a product matches multiple conditions
in the specifictions, boost scores from these specifications are all
applied and combined in a non-linear way. Maximum number of
specifications is 20.
repeated .google.cloud.retail.v2alpha.SearchRequest.BoostSpec.ConditionBoostSpec condition_boost_specs = 1;
Parameters
Returns
addConditionBoostSpecsBuilder()
public SearchRequest.BoostSpec.ConditionBoostSpec.Builder addConditionBoostSpecsBuilder()
Condition boost specifications. If a product matches multiple conditions
in the specifictions, boost scores from these specifications are all
applied and combined in a non-linear way. Maximum number of
specifications is 20.
repeated .google.cloud.retail.v2alpha.SearchRequest.BoostSpec.ConditionBoostSpec condition_boost_specs = 1;
Returns
addConditionBoostSpecsBuilder(int index)
public SearchRequest.BoostSpec.ConditionBoostSpec.Builder addConditionBoostSpecsBuilder(int index)
Condition boost specifications. If a product matches multiple conditions
in the specifictions, boost scores from these specifications are all
applied and combined in a non-linear way. Maximum number of
specifications is 20.
repeated .google.cloud.retail.v2alpha.SearchRequest.BoostSpec.ConditionBoostSpec condition_boost_specs = 1;
Parameter
Returns
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public SearchRequest.BoostSpec.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public SearchRequest.BoostSpec build()
Returns
buildPartial()
public SearchRequest.BoostSpec buildPartial()
Returns
clear()
public SearchRequest.BoostSpec.Builder clear()
Returns
Overrides
clearConditionBoostSpecs()
public SearchRequest.BoostSpec.Builder clearConditionBoostSpecs()
Condition boost specifications. If a product matches multiple conditions
in the specifictions, boost scores from these specifications are all
applied and combined in a non-linear way. Maximum number of
specifications is 20.
repeated .google.cloud.retail.v2alpha.SearchRequest.BoostSpec.ConditionBoostSpec condition_boost_specs = 1;
Returns
clearField(Descriptors.FieldDescriptor field)
public SearchRequest.BoostSpec.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public SearchRequest.BoostSpec.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
clearSkipBoostSpecValidation()
public SearchRequest.BoostSpec.Builder clearSkipBoostSpecValidation()
Whether to skip boostspec validation. If this field is set to true,
invalid
BoostSpec.condition_boost_specs
will be ignored and valid
BoostSpec.condition_boost_specs
will still be applied.
optional bool skip_boost_spec_validation = 2;
Returns
clone()
public SearchRequest.BoostSpec.Builder clone()
Returns
Overrides
getConditionBoostSpecs(int index)
public SearchRequest.BoostSpec.ConditionBoostSpec getConditionBoostSpecs(int index)
Condition boost specifications. If a product matches multiple conditions
in the specifictions, boost scores from these specifications are all
applied and combined in a non-linear way. Maximum number of
specifications is 20.
repeated .google.cloud.retail.v2alpha.SearchRequest.BoostSpec.ConditionBoostSpec condition_boost_specs = 1;
Parameter
Returns
getConditionBoostSpecsBuilder(int index)
public SearchRequest.BoostSpec.ConditionBoostSpec.Builder getConditionBoostSpecsBuilder(int index)
Condition boost specifications. If a product matches multiple conditions
in the specifictions, boost scores from these specifications are all
applied and combined in a non-linear way. Maximum number of
specifications is 20.
repeated .google.cloud.retail.v2alpha.SearchRequest.BoostSpec.ConditionBoostSpec condition_boost_specs = 1;
Parameter
Returns
getConditionBoostSpecsBuilderList()
public List<SearchRequest.BoostSpec.ConditionBoostSpec.Builder> getConditionBoostSpecsBuilderList()
Condition boost specifications. If a product matches multiple conditions
in the specifictions, boost scores from these specifications are all
applied and combined in a non-linear way. Maximum number of
specifications is 20.
repeated .google.cloud.retail.v2alpha.SearchRequest.BoostSpec.ConditionBoostSpec condition_boost_specs = 1;
Returns
getConditionBoostSpecsCount()
public int getConditionBoostSpecsCount()
Condition boost specifications. If a product matches multiple conditions
in the specifictions, boost scores from these specifications are all
applied and combined in a non-linear way. Maximum number of
specifications is 20.
repeated .google.cloud.retail.v2alpha.SearchRequest.BoostSpec.ConditionBoostSpec condition_boost_specs = 1;
Returns
getConditionBoostSpecsList()
public List<SearchRequest.BoostSpec.ConditionBoostSpec> getConditionBoostSpecsList()
Condition boost specifications. If a product matches multiple conditions
in the specifictions, boost scores from these specifications are all
applied and combined in a non-linear way. Maximum number of
specifications is 20.
repeated .google.cloud.retail.v2alpha.SearchRequest.BoostSpec.ConditionBoostSpec condition_boost_specs = 1;
Returns
getConditionBoostSpecsOrBuilder(int index)
public SearchRequest.BoostSpec.ConditionBoostSpecOrBuilder getConditionBoostSpecsOrBuilder(int index)
Condition boost specifications. If a product matches multiple conditions
in the specifictions, boost scores from these specifications are all
applied and combined in a non-linear way. Maximum number of
specifications is 20.
repeated .google.cloud.retail.v2alpha.SearchRequest.BoostSpec.ConditionBoostSpec condition_boost_specs = 1;
Parameter
Returns
getConditionBoostSpecsOrBuilderList()
public List<? extends SearchRequest.BoostSpec.ConditionBoostSpecOrBuilder> getConditionBoostSpecsOrBuilderList()
Condition boost specifications. If a product matches multiple conditions
in the specifictions, boost scores from these specifications are all
applied and combined in a non-linear way. Maximum number of
specifications is 20.
repeated .google.cloud.retail.v2alpha.SearchRequest.BoostSpec.ConditionBoostSpec condition_boost_specs = 1;
Returns
Type | Description |
List<? extends com.google.cloud.retail.v2alpha.SearchRequest.BoostSpec.ConditionBoostSpecOrBuilder> | |
getDefaultInstanceForType()
public SearchRequest.BoostSpec getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
getSkipBoostSpecValidation()
public boolean getSkipBoostSpecValidation()
Whether to skip boostspec validation. If this field is set to true,
invalid
BoostSpec.condition_boost_specs
will be ignored and valid
BoostSpec.condition_boost_specs
will still be applied.
optional bool skip_boost_spec_validation = 2;
Returns
Type | Description |
boolean | The skipBoostSpecValidation.
|
hasSkipBoostSpecValidation()
public boolean hasSkipBoostSpecValidation()
Whether to skip boostspec validation. If this field is set to true,
invalid
BoostSpec.condition_boost_specs
will be ignored and valid
BoostSpec.condition_boost_specs
will still be applied.
optional bool skip_boost_spec_validation = 2;
Returns
Type | Description |
boolean | Whether the skipBoostSpecValidation field is set.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeFrom(SearchRequest.BoostSpec other)
public SearchRequest.BoostSpec.Builder mergeFrom(SearchRequest.BoostSpec other)
Parameter
Returns
public SearchRequest.BoostSpec.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public SearchRequest.BoostSpec.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final SearchRequest.BoostSpec.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
removeConditionBoostSpecs(int index)
public SearchRequest.BoostSpec.Builder removeConditionBoostSpecs(int index)
Condition boost specifications. If a product matches multiple conditions
in the specifictions, boost scores from these specifications are all
applied and combined in a non-linear way. Maximum number of
specifications is 20.
repeated .google.cloud.retail.v2alpha.SearchRequest.BoostSpec.ConditionBoostSpec condition_boost_specs = 1;
Parameter
Returns
setConditionBoostSpecs(int index, SearchRequest.BoostSpec.ConditionBoostSpec value)
public SearchRequest.BoostSpec.Builder setConditionBoostSpecs(int index, SearchRequest.BoostSpec.ConditionBoostSpec value)
Condition boost specifications. If a product matches multiple conditions
in the specifictions, boost scores from these specifications are all
applied and combined in a non-linear way. Maximum number of
specifications is 20.
repeated .google.cloud.retail.v2alpha.SearchRequest.BoostSpec.ConditionBoostSpec condition_boost_specs = 1;
Parameters
Returns
setConditionBoostSpecs(int index, SearchRequest.BoostSpec.ConditionBoostSpec.Builder builderForValue)
public SearchRequest.BoostSpec.Builder setConditionBoostSpecs(int index, SearchRequest.BoostSpec.ConditionBoostSpec.Builder builderForValue)
Condition boost specifications. If a product matches multiple conditions
in the specifictions, boost scores from these specifications are all
applied and combined in a non-linear way. Maximum number of
specifications is 20.
repeated .google.cloud.retail.v2alpha.SearchRequest.BoostSpec.ConditionBoostSpec condition_boost_specs = 1;
Parameters
Returns
setField(Descriptors.FieldDescriptor field, Object value)
public SearchRequest.BoostSpec.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public SearchRequest.BoostSpec.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setSkipBoostSpecValidation(boolean value)
public SearchRequest.BoostSpec.Builder setSkipBoostSpecValidation(boolean value)
Whether to skip boostspec validation. If this field is set to true,
invalid
BoostSpec.condition_boost_specs
will be ignored and valid
BoostSpec.condition_boost_specs
will still be applied.
optional bool skip_boost_spec_validation = 2;
Parameter
Name | Description |
value | boolean
The skipBoostSpecValidation to set.
|
Returns
setUnknownFields(UnknownFieldSet unknownFields)
public final SearchRequest.BoostSpec.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides