public static final class SearchRequest.BoostSpec.Builder extends GeneratedMessageV3.Builder<SearchRequest.BoostSpec.Builder> implements SearchRequest.BoostSpecOrBuilder
Boost specification to boost certain documents.
Protobuf type google.cloud.discoveryengine.v1alpha.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()
Methods
addAllConditionBoostSpecs(Iterable<? extends SearchRequest.BoostSpec.ConditionBoostSpec> values)
public SearchRequest.BoostSpec.Builder addAllConditionBoostSpecs(Iterable<? extends SearchRequest.BoostSpec.ConditionBoostSpec> values)
Condition boost specifications. If a document 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.discoveryengine.v1alpha.SearchRequest.BoostSpec.ConditionBoostSpec condition_boost_specs = 1;
Parameter |
---|
Name | Description |
values | Iterable<? extends com.google.cloud.discoveryengine.v1alpha.SearchRequest.BoostSpec.ConditionBoostSpec>
|
addConditionBoostSpecs(SearchRequest.BoostSpec.ConditionBoostSpec value)
public SearchRequest.BoostSpec.Builder addConditionBoostSpecs(SearchRequest.BoostSpec.ConditionBoostSpec value)
Condition boost specifications. If a document 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.discoveryengine.v1alpha.SearchRequest.BoostSpec.ConditionBoostSpec condition_boost_specs = 1;
addConditionBoostSpecs(SearchRequest.BoostSpec.ConditionBoostSpec.Builder builderForValue)
public SearchRequest.BoostSpec.Builder addConditionBoostSpecs(SearchRequest.BoostSpec.ConditionBoostSpec.Builder builderForValue)
Condition boost specifications. If a document 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.discoveryengine.v1alpha.SearchRequest.BoostSpec.ConditionBoostSpec condition_boost_specs = 1;
addConditionBoostSpecs(int index, SearchRequest.BoostSpec.ConditionBoostSpec value)
public SearchRequest.BoostSpec.Builder addConditionBoostSpecs(int index, SearchRequest.BoostSpec.ConditionBoostSpec value)
Condition boost specifications. If a document 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.discoveryengine.v1alpha.SearchRequest.BoostSpec.ConditionBoostSpec condition_boost_specs = 1;
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 document 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.discoveryengine.v1alpha.SearchRequest.BoostSpec.ConditionBoostSpec condition_boost_specs = 1;
addConditionBoostSpecsBuilder()
public SearchRequest.BoostSpec.ConditionBoostSpec.Builder addConditionBoostSpecsBuilder()
Condition boost specifications. If a document 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.discoveryengine.v1alpha.SearchRequest.BoostSpec.ConditionBoostSpec condition_boost_specs = 1;
addConditionBoostSpecsBuilder(int index)
public SearchRequest.BoostSpec.ConditionBoostSpec.Builder addConditionBoostSpecsBuilder(int index)
Condition boost specifications. If a document 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.discoveryengine.v1alpha.SearchRequest.BoostSpec.ConditionBoostSpec condition_boost_specs = 1;
Parameter |
---|
Name | Description |
index | int
|
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public SearchRequest.BoostSpec.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public SearchRequest.BoostSpec build()
buildPartial()
public SearchRequest.BoostSpec buildPartial()
clear()
public SearchRequest.BoostSpec.Builder clear()
Overrides
clearConditionBoostSpecs()
public SearchRequest.BoostSpec.Builder clearConditionBoostSpecs()
Condition boost specifications. If a document 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.discoveryengine.v1alpha.SearchRequest.BoostSpec.ConditionBoostSpec condition_boost_specs = 1;
clearField(Descriptors.FieldDescriptor field)
public SearchRequest.BoostSpec.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public SearchRequest.BoostSpec.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clone()
public SearchRequest.BoostSpec.Builder clone()
Overrides
getConditionBoostSpecs(int index)
public SearchRequest.BoostSpec.ConditionBoostSpec getConditionBoostSpecs(int index)
Condition boost specifications. If a document 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.discoveryengine.v1alpha.SearchRequest.BoostSpec.ConditionBoostSpec condition_boost_specs = 1;
Parameter |
---|
Name | Description |
index | int
|
getConditionBoostSpecsBuilder(int index)
public SearchRequest.BoostSpec.ConditionBoostSpec.Builder getConditionBoostSpecsBuilder(int index)
Condition boost specifications. If a document 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.discoveryengine.v1alpha.SearchRequest.BoostSpec.ConditionBoostSpec condition_boost_specs = 1;
Parameter |
---|
Name | Description |
index | int
|
getConditionBoostSpecsBuilderList()
public List<SearchRequest.BoostSpec.ConditionBoostSpec.Builder> getConditionBoostSpecsBuilderList()
Condition boost specifications. If a document 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.discoveryengine.v1alpha.SearchRequest.BoostSpec.ConditionBoostSpec condition_boost_specs = 1;
getConditionBoostSpecsCount()
public int getConditionBoostSpecsCount()
Condition boost specifications. If a document 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.discoveryengine.v1alpha.SearchRequest.BoostSpec.ConditionBoostSpec condition_boost_specs = 1;
Returns |
---|
Type | Description |
int | |
getConditionBoostSpecsList()
public List<SearchRequest.BoostSpec.ConditionBoostSpec> getConditionBoostSpecsList()
Condition boost specifications. If a document 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.discoveryengine.v1alpha.SearchRequest.BoostSpec.ConditionBoostSpec condition_boost_specs = 1;
getConditionBoostSpecsOrBuilder(int index)
public SearchRequest.BoostSpec.ConditionBoostSpecOrBuilder getConditionBoostSpecsOrBuilder(int index)
Condition boost specifications. If a document 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.discoveryengine.v1alpha.SearchRequest.BoostSpec.ConditionBoostSpec condition_boost_specs = 1;
Parameter |
---|
Name | Description |
index | int
|
getConditionBoostSpecsOrBuilderList()
public List<? extends SearchRequest.BoostSpec.ConditionBoostSpecOrBuilder> getConditionBoostSpecsOrBuilderList()
Condition boost specifications. If a document 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.discoveryengine.v1alpha.SearchRequest.BoostSpec.ConditionBoostSpec condition_boost_specs = 1;
Returns |
---|
Type | Description |
List<? extends com.google.cloud.discoveryengine.v1alpha.SearchRequest.BoostSpec.ConditionBoostSpecOrBuilder> | |
getDefaultInstanceForType()
public SearchRequest.BoostSpec getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(SearchRequest.BoostSpec other)
public SearchRequest.BoostSpec.Builder mergeFrom(SearchRequest.BoostSpec other)
public SearchRequest.BoostSpec.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public SearchRequest.BoostSpec.Builder mergeFrom(Message other)
Parameter |
---|
Name | Description |
other | Message
|
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final SearchRequest.BoostSpec.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
removeConditionBoostSpecs(int index)
public SearchRequest.BoostSpec.Builder removeConditionBoostSpecs(int index)
Condition boost specifications. If a document 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.discoveryengine.v1alpha.SearchRequest.BoostSpec.ConditionBoostSpec condition_boost_specs = 1;
Parameter |
---|
Name | Description |
index | int
|
setConditionBoostSpecs(int index, SearchRequest.BoostSpec.ConditionBoostSpec value)
public SearchRequest.BoostSpec.Builder setConditionBoostSpecs(int index, SearchRequest.BoostSpec.ConditionBoostSpec value)
Condition boost specifications. If a document 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.discoveryengine.v1alpha.SearchRequest.BoostSpec.ConditionBoostSpec condition_boost_specs = 1;
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 document 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.discoveryengine.v1alpha.SearchRequest.BoostSpec.ConditionBoostSpec condition_boost_specs = 1;
setField(Descriptors.FieldDescriptor field, Object value)
public SearchRequest.BoostSpec.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public SearchRequest.BoostSpec.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final SearchRequest.BoostSpec.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides