Class Control.BoostAction.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Control.BoostAction.Builder>
com.google.cloud.discoveryengine.v1.Control.BoostAction.Builder
- All Implemented Interfaces:
Control.BoostActionOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- Control.BoostAction
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.BoostAction-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()Deprecated.google.cloud.discoveryengine.v1.Control.BoostAction.boost is deprecated.Required.Required.Optional.Optional.floatgetBoost()Deprecated.google.cloud.discoveryengine.v1.Control.BoostAction.boost is deprecated.Required.com.google.protobuf.ByteStringRequired.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorRequired.com.google.protobuf.ByteStringRequired.floatOptional.Optional.Optional.Optional.booleanOptional.booleanOptional.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(Control.BoostAction other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) Optional.setBoost(float value) Deprecated.google.cloud.discoveryengine.v1.Control.BoostAction.boost is deprecated.setDataStore(String value) Required.setDataStoreBytes(com.google.protobuf.ByteString value) Required.Required.setFilterBytes(com.google.protobuf.ByteString value) Required.setFixedBoost(float value) Optional.Optional.Optional.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, 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, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<Control.BoostAction.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<Control.BoostAction.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<Control.BoostAction.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Control.BoostAction.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<Control.BoostAction.Builder>
-
mergeFrom
public Control.BoostAction.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Control.BoostAction.Builder>- Throws:
IOException
-
getBoostSpecCase
- Specified by:
getBoostSpecCasein interfaceControl.BoostActionOrBuilder
-
clearBoostSpec
-
hasFixedBoost
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];- Specified by:
hasFixedBoostin interfaceControl.BoostActionOrBuilder- Returns:
- Whether the fixedBoost field is set.
-
getFixedBoost
public 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];- Specified by:
getFixedBoostin interfaceControl.BoostActionOrBuilder- Returns:
- The fixedBoost.
-
setFixedBoost
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];- Parameters:
value- The fixedBoost to set.- Returns:
- This builder for chaining.
-
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];- Returns:
- This builder for chaining.
-
hasInterpolationBoostSpec
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];- Specified by:
hasInterpolationBoostSpecin interfaceControl.BoostActionOrBuilder- Returns:
- Whether the interpolationBoostSpec field is set.
-
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];- Specified by:
getInterpolationBoostSpecin interfaceControl.BoostActionOrBuilder- Returns:
- The interpolationBoostSpec.
-
setInterpolationBoostSpec
public 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]; -
setInterpolationBoostSpec
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]; -
mergeInterpolationBoostSpec
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]; -
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]; -
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]; -
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];- Specified by:
getInterpolationBoostSpecOrBuilderin interfaceControl.BoostActionOrBuilder
-
getBoost
Deprecated.google.cloud.discoveryengine.v1.Control.BoostAction.boost is deprecated. See google/cloud/discoveryengine/v1/control.proto;l=187Strength of the boost, which should be in [-1, 1]. Negative boost means demotion. Default is 0.0 (No-op).
float boost = 1 [deprecated = true];- Specified by:
getBoostin interfaceControl.BoostActionOrBuilder- Returns:
- The boost.
-
setBoost
Deprecated.google.cloud.discoveryengine.v1.Control.BoostAction.boost is deprecated. See google/cloud/discoveryengine/v1/control.proto;l=187Strength of the boost, which should be in [-1, 1]. Negative boost means demotion. Default is 0.0 (No-op).
float boost = 1 [deprecated = true];- Parameters:
value- The boost to set.- Returns:
- This builder for chaining.
-
clearBoost
Deprecated.google.cloud.discoveryengine.v1.Control.BoostAction.boost is deprecated. See google/cloud/discoveryengine/v1/control.proto;l=187Strength of the boost, which should be in [-1, 1]. Negative boost means demotion. Default is 0.0 (No-op).
float boost = 1 [deprecated = true];- Returns:
- This builder for chaining.
-
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];- Specified by:
getFilterin interfaceControl.BoostActionOrBuilder- Returns:
- The filter.
-
getFilterBytes
public 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];- Specified by:
getFilterBytesin interfaceControl.BoostActionOrBuilder- Returns:
- The bytes for filter.
-
setFilter
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];- Parameters:
value- The filter to set.- Returns:
- This builder for chaining.
-
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];- Returns:
- This builder for chaining.
-
setFilterBytes
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];- Parameters:
value- The bytes for filter to set.- Returns:
- This builder for chaining.
-
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) = { ... }- Specified by:
getDataStorein interfaceControl.BoostActionOrBuilder- Returns:
- The dataStore.
-
getDataStoreBytes
public 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) = { ... }- Specified by:
getDataStoreBytesin interfaceControl.BoostActionOrBuilder- Returns:
- The bytes for dataStore.
-
setDataStore
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) = { ... }- Parameters:
value- The dataStore to set.- Returns:
- This builder for chaining.
-
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) = { ... }- Returns:
- This builder for chaining.
-
setDataStoreBytes
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) = { ... }- Parameters:
value- The bytes for dataStore to set.- Returns:
- This builder for chaining.
-