public static final class Control.BoostAction.Builder extends com.google.protobuf.GeneratedMessage.Builder<Control.BoostAction.Builder> implements Control.BoostActionOrBuilder
Adjusts order of products in returned list.Protobuf type
google.cloud.discoveryengine.v1.Control.BoostActionaddRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitfindInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<Control.BoostAction.Builder>public Control.BoostAction.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessage.Builder<Control.BoostAction.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<Control.BoostAction.Builder>public Control.BoostAction getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic Control.BoostAction build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic Control.BoostAction buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic Control.BoostAction.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<Control.BoostAction.Builder>public Control.BoostAction.Builder mergeFrom(Control.BoostAction other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessage.Builder<Control.BoostAction.Builder>public Control.BoostAction.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<Control.BoostAction.Builder>IOExceptionpublic Control.BoostAction.BoostSpecCase getBoostSpecCase()
getBoostSpecCase in interface Control.BoostActionOrBuilderpublic Control.BoostAction.Builder clearBoostSpec()
public boolean hasFixedBoost()
Optional. Strength of the boost, which should be in [-1, 1]. Negative boost means demotion. Default is 0.0 (No-op).
float fixed_boost = 4 [(.google.api.field_behavior) = OPTIONAL];hasFixedBoost in interface Control.BoostActionOrBuilderpublic float getFixedBoost()
Optional. Strength of the boost, which should be in [-1, 1]. Negative boost means demotion. Default is 0.0 (No-op).
float fixed_boost = 4 [(.google.api.field_behavior) = OPTIONAL];getFixedBoost in interface Control.BoostActionOrBuilderpublic Control.BoostAction.Builder setFixedBoost(float value)
Optional. Strength of the boost, which should be in [-1, 1]. Negative boost means demotion. Default is 0.0 (No-op).
float fixed_boost = 4 [(.google.api.field_behavior) = OPTIONAL];value - The fixedBoost to set.public Control.BoostAction.Builder clearFixedBoost()
Optional. Strength of the boost, which should be in [-1, 1]. Negative boost means demotion. Default is 0.0 (No-op).
float fixed_boost = 4 [(.google.api.field_behavior) = OPTIONAL];public boolean hasInterpolationBoostSpec()
Optional. Complex specification for custom ranking based on customer defined attribute value.
.google.cloud.discoveryengine.v1.Control.BoostAction.InterpolationBoostSpec interpolation_boost_spec = 5 [(.google.api.field_behavior) = OPTIONAL];
hasInterpolationBoostSpec in interface Control.BoostActionOrBuilderpublic Control.BoostAction.InterpolationBoostSpec getInterpolationBoostSpec()
Optional. Complex specification for custom ranking based on customer defined attribute value.
.google.cloud.discoveryengine.v1.Control.BoostAction.InterpolationBoostSpec interpolation_boost_spec = 5 [(.google.api.field_behavior) = OPTIONAL];
getInterpolationBoostSpec in interface Control.BoostActionOrBuilderpublic Control.BoostAction.Builder setInterpolationBoostSpec(Control.BoostAction.InterpolationBoostSpec value)
Optional. Complex specification for custom ranking based on customer defined attribute value.
.google.cloud.discoveryengine.v1.Control.BoostAction.InterpolationBoostSpec interpolation_boost_spec = 5 [(.google.api.field_behavior) = OPTIONAL];
public Control.BoostAction.Builder setInterpolationBoostSpec(Control.BoostAction.InterpolationBoostSpec.Builder builderForValue)
Optional. Complex specification for custom ranking based on customer defined attribute value.
.google.cloud.discoveryengine.v1.Control.BoostAction.InterpolationBoostSpec interpolation_boost_spec = 5 [(.google.api.field_behavior) = OPTIONAL];
public Control.BoostAction.Builder mergeInterpolationBoostSpec(Control.BoostAction.InterpolationBoostSpec value)
Optional. Complex specification for custom ranking based on customer defined attribute value.
.google.cloud.discoveryengine.v1.Control.BoostAction.InterpolationBoostSpec interpolation_boost_spec = 5 [(.google.api.field_behavior) = OPTIONAL];
public Control.BoostAction.Builder clearInterpolationBoostSpec()
Optional. Complex specification for custom ranking based on customer defined attribute value.
.google.cloud.discoveryengine.v1.Control.BoostAction.InterpolationBoostSpec interpolation_boost_spec = 5 [(.google.api.field_behavior) = OPTIONAL];
public Control.BoostAction.InterpolationBoostSpec.Builder getInterpolationBoostSpecBuilder()
Optional. Complex specification for custom ranking based on customer defined attribute value.
.google.cloud.discoveryengine.v1.Control.BoostAction.InterpolationBoostSpec interpolation_boost_spec = 5 [(.google.api.field_behavior) = OPTIONAL];
public Control.BoostAction.InterpolationBoostSpecOrBuilder getInterpolationBoostSpecOrBuilder()
Optional. Complex specification for custom ranking based on customer defined attribute value.
.google.cloud.discoveryengine.v1.Control.BoostAction.InterpolationBoostSpec interpolation_boost_spec = 5 [(.google.api.field_behavior) = OPTIONAL];
getInterpolationBoostSpecOrBuilder in interface Control.BoostActionOrBuilder@Deprecated public float getBoost()
Strength of the boost, which should be in [-1, 1]. Negative boost means demotion. Default is 0.0 (No-op).
float boost = 1 [deprecated = true];getBoost in interface Control.BoostActionOrBuilder@Deprecated public Control.BoostAction.Builder setBoost(float value)
Strength of the boost, which should be in [-1, 1]. Negative boost means demotion. Default is 0.0 (No-op).
float boost = 1 [deprecated = true];value - The boost to set.@Deprecated public Control.BoostAction.Builder clearBoost()
Strength of the boost, which should be in [-1, 1]. Negative boost means demotion. Default is 0.0 (No-op).
float boost = 1 [deprecated = true];public String getFilter()
Required. Specifies which products to apply the boost to. If no filter is provided all products will be boosted (No-op). Syntax documentation: https://cloud.google.com/retail/docs/filter-and-order Maximum length is 5000 characters. Otherwise an INVALID ARGUMENT error is thrown.
string filter = 2 [(.google.api.field_behavior) = REQUIRED];getFilter in interface Control.BoostActionOrBuilderpublic com.google.protobuf.ByteString getFilterBytes()
Required. Specifies which products to apply the boost to. If no filter is provided all products will be boosted (No-op). Syntax documentation: https://cloud.google.com/retail/docs/filter-and-order Maximum length is 5000 characters. Otherwise an INVALID ARGUMENT error is thrown.
string filter = 2 [(.google.api.field_behavior) = REQUIRED];getFilterBytes in interface Control.BoostActionOrBuilderpublic Control.BoostAction.Builder setFilter(String value)
Required. Specifies which products to apply the boost to. If no filter is provided all products will be boosted (No-op). Syntax documentation: https://cloud.google.com/retail/docs/filter-and-order Maximum length is 5000 characters. Otherwise an INVALID ARGUMENT error is thrown.
string filter = 2 [(.google.api.field_behavior) = REQUIRED];value - The filter to set.public Control.BoostAction.Builder clearFilter()
Required. Specifies which products to apply the boost to. If no filter is provided all products will be boosted (No-op). Syntax documentation: https://cloud.google.com/retail/docs/filter-and-order Maximum length is 5000 characters. Otherwise an INVALID ARGUMENT error is thrown.
string filter = 2 [(.google.api.field_behavior) = REQUIRED];public Control.BoostAction.Builder setFilterBytes(com.google.protobuf.ByteString value)
Required. Specifies which products to apply the boost to. If no filter is provided all products will be boosted (No-op). Syntax documentation: https://cloud.google.com/retail/docs/filter-and-order Maximum length is 5000 characters. Otherwise an INVALID ARGUMENT error is thrown.
string filter = 2 [(.google.api.field_behavior) = REQUIRED];value - The bytes for filter to set.public String getDataStore()
Required. Specifies which data store's documents can be boosted by this control. Full data store name e.g. projects/123/locations/global/collections/default_collection/dataStores/default_data_store
string data_store = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
getDataStore in interface Control.BoostActionOrBuilderpublic com.google.protobuf.ByteString getDataStoreBytes()
Required. Specifies which data store's documents can be boosted by this control. Full data store name e.g. projects/123/locations/global/collections/default_collection/dataStores/default_data_store
string data_store = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
getDataStoreBytes in interface Control.BoostActionOrBuilderpublic Control.BoostAction.Builder setDataStore(String value)
Required. Specifies which data store's documents can be boosted by this control. Full data store name e.g. projects/123/locations/global/collections/default_collection/dataStores/default_data_store
string data_store = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
value - The dataStore to set.public Control.BoostAction.Builder clearDataStore()
Required. Specifies which data store's documents can be boosted by this control. Full data store name e.g. projects/123/locations/global/collections/default_collection/dataStores/default_data_store
string data_store = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
public Control.BoostAction.Builder setDataStoreBytes(com.google.protobuf.ByteString value)
Required. Specifies which data store's documents can be boosted by this control. Full data store name e.g. projects/123/locations/global/collections/default_collection/dataStores/default_data_store
string data_store = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
value - The bytes for dataStore to set.Copyright © 2026 Google LLC. All rights reserved.