public static final class BoostSpec.ConditionBoostSpec.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<BoostSpec.ConditionBoostSpec.Builder> implements BoostSpec.ConditionBoostSpecOrBuilder
Boost applies to documents which match a condition.Protobuf type
google.cloud.dialogflow.cx.v3.BoostSpec.ConditionBoostSpecgetAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<BoostSpec.ConditionBoostSpec.Builder>public BoostSpec.ConditionBoostSpec.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<BoostSpec.ConditionBoostSpec.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.GeneratedMessageV3.Builder<BoostSpec.ConditionBoostSpec.Builder>public BoostSpec.ConditionBoostSpec getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic BoostSpec.ConditionBoostSpec build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic BoostSpec.ConditionBoostSpec buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic BoostSpec.ConditionBoostSpec.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<BoostSpec.ConditionBoostSpec.Builder>public BoostSpec.ConditionBoostSpec.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<BoostSpec.ConditionBoostSpec.Builder>public BoostSpec.ConditionBoostSpec.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<BoostSpec.ConditionBoostSpec.Builder>public BoostSpec.ConditionBoostSpec.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<BoostSpec.ConditionBoostSpec.Builder>public BoostSpec.ConditionBoostSpec.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<BoostSpec.ConditionBoostSpec.Builder>public BoostSpec.ConditionBoostSpec.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<BoostSpec.ConditionBoostSpec.Builder>public BoostSpec.ConditionBoostSpec.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<BoostSpec.ConditionBoostSpec.Builder>public BoostSpec.ConditionBoostSpec.Builder mergeFrom(BoostSpec.ConditionBoostSpec other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<BoostSpec.ConditionBoostSpec.Builder>public BoostSpec.ConditionBoostSpec.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<BoostSpec.ConditionBoostSpec.Builder>IOExceptionpublic String getCondition()
Optional. An expression which specifies a boost condition. The syntax and
supported fields are the same as a filter expression.
Examples:
* To boost documents with document ID "doc_1" or "doc_2", and
color
"Red" or "Blue":
* (id: ANY("doc_1", "doc_2")) AND (color: ANY("Red","Blue"))
string condition = 1 [(.google.api.field_behavior) = OPTIONAL];getCondition in interface BoostSpec.ConditionBoostSpecOrBuilderpublic com.google.protobuf.ByteString getConditionBytes()
Optional. An expression which specifies a boost condition. The syntax and
supported fields are the same as a filter expression.
Examples:
* To boost documents with document ID "doc_1" or "doc_2", and
color
"Red" or "Blue":
* (id: ANY("doc_1", "doc_2")) AND (color: ANY("Red","Blue"))
string condition = 1 [(.google.api.field_behavior) = OPTIONAL];getConditionBytes in interface BoostSpec.ConditionBoostSpecOrBuilderpublic BoostSpec.ConditionBoostSpec.Builder setCondition(String value)
Optional. An expression which specifies a boost condition. The syntax and
supported fields are the same as a filter expression.
Examples:
* To boost documents with document ID "doc_1" or "doc_2", and
color
"Red" or "Blue":
* (id: ANY("doc_1", "doc_2")) AND (color: ANY("Red","Blue"))
string condition = 1 [(.google.api.field_behavior) = OPTIONAL];value - The condition to set.public BoostSpec.ConditionBoostSpec.Builder clearCondition()
Optional. An expression which specifies a boost condition. The syntax and
supported fields are the same as a filter expression.
Examples:
* To boost documents with document ID "doc_1" or "doc_2", and
color
"Red" or "Blue":
* (id: ANY("doc_1", "doc_2")) AND (color: ANY("Red","Blue"))
string condition = 1 [(.google.api.field_behavior) = OPTIONAL];public BoostSpec.ConditionBoostSpec.Builder setConditionBytes(com.google.protobuf.ByteString value)
Optional. An expression which specifies a boost condition. The syntax and
supported fields are the same as a filter expression.
Examples:
* To boost documents with document ID "doc_1" or "doc_2", and
color
"Red" or "Blue":
* (id: ANY("doc_1", "doc_2")) AND (color: ANY("Red","Blue"))
string condition = 1 [(.google.api.field_behavior) = OPTIONAL];value - The bytes for condition to set.public float getBoost()
Optional. Strength of the condition boost, which should be in [-1, 1]. Negative boost means demotion. Default is 0.0. Setting to 1.0 gives the document a big promotion. However, it does not necessarily mean that the boosted document will be the top result at all times, nor that other documents will be excluded. Results could still be shown even when none of them matches the condition. And results that are significantly more relevant to the search query can still trump your heavily favored but irrelevant documents. Setting to -1.0 gives the document a big demotion. However, results that are deeply relevant might still be shown. The document will have an upstream battle to get a fairly high ranking, but it is not blocked out completely. Setting to 0.0 means no boost applied. The boosting condition is ignored.
float boost = 2 [(.google.api.field_behavior) = OPTIONAL];getBoost in interface BoostSpec.ConditionBoostSpecOrBuilderpublic BoostSpec.ConditionBoostSpec.Builder setBoost(float value)
Optional. Strength of the condition boost, which should be in [-1, 1]. Negative boost means demotion. Default is 0.0. Setting to 1.0 gives the document a big promotion. However, it does not necessarily mean that the boosted document will be the top result at all times, nor that other documents will be excluded. Results could still be shown even when none of them matches the condition. And results that are significantly more relevant to the search query can still trump your heavily favored but irrelevant documents. Setting to -1.0 gives the document a big demotion. However, results that are deeply relevant might still be shown. The document will have an upstream battle to get a fairly high ranking, but it is not blocked out completely. Setting to 0.0 means no boost applied. The boosting condition is ignored.
float boost = 2 [(.google.api.field_behavior) = OPTIONAL];value - The boost to set.public BoostSpec.ConditionBoostSpec.Builder clearBoost()
Optional. Strength of the condition boost, which should be in [-1, 1]. Negative boost means demotion. Default is 0.0. Setting to 1.0 gives the document a big promotion. However, it does not necessarily mean that the boosted document will be the top result at all times, nor that other documents will be excluded. Results could still be shown even when none of them matches the condition. And results that are significantly more relevant to the search query can still trump your heavily favored but irrelevant documents. Setting to -1.0 gives the document a big demotion. However, results that are deeply relevant might still be shown. The document will have an upstream battle to get a fairly high ranking, but it is not blocked out completely. Setting to 0.0 means no boost applied. The boosting condition is ignored.
float boost = 2 [(.google.api.field_behavior) = OPTIONAL];public boolean hasBoostControlSpec()
Optional. Complex specification for custom ranking based on customer defined attribute value.
.google.cloud.dialogflow.cx.v3.BoostSpec.ConditionBoostSpec.BoostControlSpec boost_control_spec = 4 [(.google.api.field_behavior) = OPTIONAL];
hasBoostControlSpec in interface BoostSpec.ConditionBoostSpecOrBuilderpublic BoostSpec.ConditionBoostSpec.BoostControlSpec getBoostControlSpec()
Optional. Complex specification for custom ranking based on customer defined attribute value.
.google.cloud.dialogflow.cx.v3.BoostSpec.ConditionBoostSpec.BoostControlSpec boost_control_spec = 4 [(.google.api.field_behavior) = OPTIONAL];
getBoostControlSpec in interface BoostSpec.ConditionBoostSpecOrBuilderpublic BoostSpec.ConditionBoostSpec.Builder setBoostControlSpec(BoostSpec.ConditionBoostSpec.BoostControlSpec value)
Optional. Complex specification for custom ranking based on customer defined attribute value.
.google.cloud.dialogflow.cx.v3.BoostSpec.ConditionBoostSpec.BoostControlSpec boost_control_spec = 4 [(.google.api.field_behavior) = OPTIONAL];
public BoostSpec.ConditionBoostSpec.Builder setBoostControlSpec(BoostSpec.ConditionBoostSpec.BoostControlSpec.Builder builderForValue)
Optional. Complex specification for custom ranking based on customer defined attribute value.
.google.cloud.dialogflow.cx.v3.BoostSpec.ConditionBoostSpec.BoostControlSpec boost_control_spec = 4 [(.google.api.field_behavior) = OPTIONAL];
public BoostSpec.ConditionBoostSpec.Builder mergeBoostControlSpec(BoostSpec.ConditionBoostSpec.BoostControlSpec value)
Optional. Complex specification for custom ranking based on customer defined attribute value.
.google.cloud.dialogflow.cx.v3.BoostSpec.ConditionBoostSpec.BoostControlSpec boost_control_spec = 4 [(.google.api.field_behavior) = OPTIONAL];
public BoostSpec.ConditionBoostSpec.Builder clearBoostControlSpec()
Optional. Complex specification for custom ranking based on customer defined attribute value.
.google.cloud.dialogflow.cx.v3.BoostSpec.ConditionBoostSpec.BoostControlSpec boost_control_spec = 4 [(.google.api.field_behavior) = OPTIONAL];
public BoostSpec.ConditionBoostSpec.BoostControlSpec.Builder getBoostControlSpecBuilder()
Optional. Complex specification for custom ranking based on customer defined attribute value.
.google.cloud.dialogflow.cx.v3.BoostSpec.ConditionBoostSpec.BoostControlSpec boost_control_spec = 4 [(.google.api.field_behavior) = OPTIONAL];
public BoostSpec.ConditionBoostSpec.BoostControlSpecOrBuilder getBoostControlSpecOrBuilder()
Optional. Complex specification for custom ranking based on customer defined attribute value.
.google.cloud.dialogflow.cx.v3.BoostSpec.ConditionBoostSpec.BoostControlSpec boost_control_spec = 4 [(.google.api.field_behavior) = OPTIONAL];
getBoostControlSpecOrBuilder in interface BoostSpec.ConditionBoostSpecOrBuilderpublic final BoostSpec.ConditionBoostSpec.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<BoostSpec.ConditionBoostSpec.Builder>public final BoostSpec.ConditionBoostSpec.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<BoostSpec.ConditionBoostSpec.Builder>Copyright © 2025 Google LLC. All rights reserved.