Class SearchKnowledgeRequest.SearchConfig.BoostSpecs.BoostSpec.Builder (4.60.0)

public static final class SearchKnowledgeRequest.SearchConfig.BoostSpecs.BoostSpec.Builder extends GeneratedMessageV3.Builder<SearchKnowledgeRequest.SearchConfig.BoostSpecs.BoostSpec.Builder> implements SearchKnowledgeRequest.SearchConfig.BoostSpecs.BoostSpecOrBuilder

Boost specification to boost certain documents. A copy of google.cloud.discoveryengine.v1main.BoostSpec, field documentation is available at https://cloud.google.com/generative-ai-app-builder/docs/reference/rest/v1alpha/BoostSpec

Protobuf type google.cloud.dialogflow.v2.SearchKnowledgeRequest.SearchConfig.BoostSpecs.BoostSpec

Inheritance

Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > SearchKnowledgeRequest.SearchConfig.BoostSpecs.BoostSpec.Builder

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addAllConditionBoostSpecs(Iterable<? extends SearchKnowledgeRequest.SearchConfig.BoostSpecs.BoostSpec.ConditionBoostSpec> values)

public SearchKnowledgeRequest.SearchConfig.BoostSpecs.BoostSpec.Builder addAllConditionBoostSpecs(Iterable<? extends SearchKnowledgeRequest.SearchConfig.BoostSpecs.BoostSpec.ConditionBoostSpec> values)

Optional. 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.dialogflow.v2.SearchKnowledgeRequest.SearchConfig.BoostSpecs.BoostSpec.ConditionBoostSpec condition_boost_specs = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
values Iterable<? extends com.google.cloud.dialogflow.v2.SearchKnowledgeRequest.SearchConfig.BoostSpecs.BoostSpec.ConditionBoostSpec>
Returns
Type Description
SearchKnowledgeRequest.SearchConfig.BoostSpecs.BoostSpec.Builder

addConditionBoostSpecs(SearchKnowledgeRequest.SearchConfig.BoostSpecs.BoostSpec.ConditionBoostSpec value)

public SearchKnowledgeRequest.SearchConfig.BoostSpecs.BoostSpec.Builder addConditionBoostSpecs(SearchKnowledgeRequest.SearchConfig.BoostSpecs.BoostSpec.ConditionBoostSpec value)

Optional. 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.dialogflow.v2.SearchKnowledgeRequest.SearchConfig.BoostSpecs.BoostSpec.ConditionBoostSpec condition_boost_specs = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value SearchKnowledgeRequest.SearchConfig.BoostSpecs.BoostSpec.ConditionBoostSpec
Returns
Type Description
SearchKnowledgeRequest.SearchConfig.BoostSpecs.BoostSpec.Builder

addConditionBoostSpecs(SearchKnowledgeRequest.SearchConfig.BoostSpecs.BoostSpec.ConditionBoostSpec.Builder builderForValue)

public SearchKnowledgeRequest.SearchConfig.BoostSpecs.BoostSpec.Builder addConditionBoostSpecs(SearchKnowledgeRequest.SearchConfig.BoostSpecs.BoostSpec.ConditionBoostSpec.Builder builderForValue)

Optional. 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.dialogflow.v2.SearchKnowledgeRequest.SearchConfig.BoostSpecs.BoostSpec.ConditionBoostSpec condition_boost_specs = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue SearchKnowledgeRequest.SearchConfig.BoostSpecs.BoostSpec.ConditionBoostSpec.Builder
Returns
Type Description
SearchKnowledgeRequest.SearchConfig.BoostSpecs.BoostSpec.Builder

addConditionBoostSpecs(int index, SearchKnowledgeRequest.SearchConfig.BoostSpecs.BoostSpec.ConditionBoostSpec value)

public SearchKnowledgeRequest.SearchConfig.BoostSpecs.BoostSpec.Builder addConditionBoostSpecs(int index, SearchKnowledgeRequest.SearchConfig.BoostSpecs.BoostSpec.ConditionBoostSpec value)

Optional. 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.dialogflow.v2.SearchKnowledgeRequest.SearchConfig.BoostSpecs.BoostSpec.ConditionBoostSpec condition_boost_specs = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int
value SearchKnowledgeRequest.SearchConfig.BoostSpecs.BoostSpec.ConditionBoostSpec
Returns
Type Description
SearchKnowledgeRequest.SearchConfig.BoostSpecs.BoostSpec.Builder

addConditionBoostSpecs(int index, SearchKnowledgeRequest.SearchConfig.BoostSpecs.BoostSpec.ConditionBoostSpec.Builder builderForValue)

public SearchKnowledgeRequest.SearchConfig.BoostSpecs.BoostSpec.Builder addConditionBoostSpecs(int index, SearchKnowledgeRequest.SearchConfig.BoostSpecs.BoostSpec.ConditionBoostSpec.Builder builderForValue)

Optional. 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.dialogflow.v2.SearchKnowledgeRequest.SearchConfig.BoostSpecs.BoostSpec.ConditionBoostSpec condition_boost_specs = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int
builderForValue SearchKnowledgeRequest.SearchConfig.BoostSpecs.BoostSpec.ConditionBoostSpec.Builder
Returns
Type Description
SearchKnowledgeRequest.SearchConfig.BoostSpecs.BoostSpec.Builder

addConditionBoostSpecsBuilder()

public SearchKnowledgeRequest.SearchConfig.BoostSpecs.BoostSpec.ConditionBoostSpec.Builder addConditionBoostSpecsBuilder()

Optional. 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.dialogflow.v2.SearchKnowledgeRequest.SearchConfig.BoostSpecs.BoostSpec.ConditionBoostSpec condition_boost_specs = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
SearchKnowledgeRequest.SearchConfig.BoostSpecs.BoostSpec.ConditionBoostSpec.Builder

addConditionBoostSpecsBuilder(int index)

public SearchKnowledgeRequest.SearchConfig.BoostSpecs.BoostSpec.ConditionBoostSpec.Builder addConditionBoostSpecsBuilder(int index)

Optional. 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.dialogflow.v2.SearchKnowledgeRequest.SearchConfig.BoostSpecs.BoostSpec.ConditionBoostSpec condition_boost_specs = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
SearchKnowledgeRequest.SearchConfig.BoostSpecs.BoostSpec.ConditionBoostSpec.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public SearchKnowledgeRequest.SearchConfig.BoostSpecs.BoostSpec.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
SearchKnowledgeRequest.SearchConfig.BoostSpecs.BoostSpec.Builder
Overrides

build()

public SearchKnowledgeRequest.SearchConfig.BoostSpecs.BoostSpec build()
Returns
Type Description
SearchKnowledgeRequest.SearchConfig.BoostSpecs.BoostSpec

buildPartial()

public SearchKnowledgeRequest.SearchConfig.BoostSpecs.BoostSpec buildPartial()
Returns
Type Description
SearchKnowledgeRequest.SearchConfig.BoostSpecs.BoostSpec

clear()

public SearchKnowledgeRequest.SearchConfig.BoostSpecs.BoostSpec.Builder clear()
Returns
Type Description
SearchKnowledgeRequest.SearchConfig.BoostSpecs.BoostSpec.Builder
Overrides

clearConditionBoostSpecs()

public SearchKnowledgeRequest.SearchConfig.BoostSpecs.BoostSpec.Builder clearConditionBoostSpecs()

Optional. 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.dialogflow.v2.SearchKnowledgeRequest.SearchConfig.BoostSpecs.BoostSpec.ConditionBoostSpec condition_boost_specs = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
SearchKnowledgeRequest.SearchConfig.BoostSpecs.BoostSpec.Builder

clearField(Descriptors.FieldDescriptor field)

public SearchKnowledgeRequest.SearchConfig.BoostSpecs.BoostSpec.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
SearchKnowledgeRequest.SearchConfig.BoostSpecs.BoostSpec.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public SearchKnowledgeRequest.SearchConfig.BoostSpecs.BoostSpec.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
SearchKnowledgeRequest.SearchConfig.BoostSpecs.BoostSpec.Builder
Overrides

clone()

public SearchKnowledgeRequest.SearchConfig.BoostSpecs.BoostSpec.Builder clone()
Returns
Type Description
SearchKnowledgeRequest.SearchConfig.BoostSpecs.BoostSpec.Builder
Overrides

getConditionBoostSpecs(int index)

public SearchKnowledgeRequest.SearchConfig.BoostSpecs.BoostSpec.ConditionBoostSpec getConditionBoostSpecs(int index)

Optional. 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.dialogflow.v2.SearchKnowledgeRequest.SearchConfig.BoostSpecs.BoostSpec.ConditionBoostSpec condition_boost_specs = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
SearchKnowledgeRequest.SearchConfig.BoostSpecs.BoostSpec.ConditionBoostSpec

getConditionBoostSpecsBuilder(int index)

public SearchKnowledgeRequest.SearchConfig.BoostSpecs.BoostSpec.ConditionBoostSpec.Builder getConditionBoostSpecsBuilder(int index)

Optional. 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.dialogflow.v2.SearchKnowledgeRequest.SearchConfig.BoostSpecs.BoostSpec.ConditionBoostSpec condition_boost_specs = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
SearchKnowledgeRequest.SearchConfig.BoostSpecs.BoostSpec.ConditionBoostSpec.Builder

getConditionBoostSpecsBuilderList()

public List<SearchKnowledgeRequest.SearchConfig.BoostSpecs.BoostSpec.ConditionBoostSpec.Builder> getConditionBoostSpecsBuilderList()

Optional. 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.dialogflow.v2.SearchKnowledgeRequest.SearchConfig.BoostSpecs.BoostSpec.ConditionBoostSpec condition_boost_specs = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<Builder>

getConditionBoostSpecsCount()

public int getConditionBoostSpecsCount()

Optional. 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.dialogflow.v2.SearchKnowledgeRequest.SearchConfig.BoostSpecs.BoostSpec.ConditionBoostSpec condition_boost_specs = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

getConditionBoostSpecsList()

public List<SearchKnowledgeRequest.SearchConfig.BoostSpecs.BoostSpec.ConditionBoostSpec> getConditionBoostSpecsList()

Optional. 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.dialogflow.v2.SearchKnowledgeRequest.SearchConfig.BoostSpecs.BoostSpec.ConditionBoostSpec condition_boost_specs = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<ConditionBoostSpec>

getConditionBoostSpecsOrBuilder(int index)

public SearchKnowledgeRequest.SearchConfig.BoostSpecs.BoostSpec.ConditionBoostSpecOrBuilder getConditionBoostSpecsOrBuilder(int index)

Optional. 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.dialogflow.v2.SearchKnowledgeRequest.SearchConfig.BoostSpecs.BoostSpec.ConditionBoostSpec condition_boost_specs = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
SearchKnowledgeRequest.SearchConfig.BoostSpecs.BoostSpec.ConditionBoostSpecOrBuilder

getConditionBoostSpecsOrBuilderList()

public List<? extends SearchKnowledgeRequest.SearchConfig.BoostSpecs.BoostSpec.ConditionBoostSpecOrBuilder> getConditionBoostSpecsOrBuilderList()

Optional. 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.dialogflow.v2.SearchKnowledgeRequest.SearchConfig.BoostSpecs.BoostSpec.ConditionBoostSpec condition_boost_specs = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<? extends com.google.cloud.dialogflow.v2.SearchKnowledgeRequest.SearchConfig.BoostSpecs.BoostSpec.ConditionBoostSpecOrBuilder>

getDefaultInstanceForType()

public SearchKnowledgeRequest.SearchConfig.BoostSpecs.BoostSpec getDefaultInstanceForType()
Returns
Type Description
SearchKnowledgeRequest.SearchConfig.BoostSpecs.BoostSpec

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(SearchKnowledgeRequest.SearchConfig.BoostSpecs.BoostSpec other)

public SearchKnowledgeRequest.SearchConfig.BoostSpecs.BoostSpec.Builder mergeFrom(SearchKnowledgeRequest.SearchConfig.BoostSpecs.BoostSpec other)
Parameter
Name Description
other SearchKnowledgeRequest.SearchConfig.BoostSpecs.BoostSpec
Returns
Type Description
SearchKnowledgeRequest.SearchConfig.BoostSpecs.BoostSpec.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public SearchKnowledgeRequest.SearchConfig.BoostSpecs.BoostSpec.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SearchKnowledgeRequest.SearchConfig.BoostSpecs.BoostSpec.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public SearchKnowledgeRequest.SearchConfig.BoostSpecs.BoostSpec.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
SearchKnowledgeRequest.SearchConfig.BoostSpecs.BoostSpec.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final SearchKnowledgeRequest.SearchConfig.BoostSpecs.BoostSpec.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
SearchKnowledgeRequest.SearchConfig.BoostSpecs.BoostSpec.Builder
Overrides

removeConditionBoostSpecs(int index)

public SearchKnowledgeRequest.SearchConfig.BoostSpecs.BoostSpec.Builder removeConditionBoostSpecs(int index)

Optional. 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.dialogflow.v2.SearchKnowledgeRequest.SearchConfig.BoostSpecs.BoostSpec.ConditionBoostSpec condition_boost_specs = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
SearchKnowledgeRequest.SearchConfig.BoostSpecs.BoostSpec.Builder

setConditionBoostSpecs(int index, SearchKnowledgeRequest.SearchConfig.BoostSpecs.BoostSpec.ConditionBoostSpec value)

public SearchKnowledgeRequest.SearchConfig.BoostSpecs.BoostSpec.Builder setConditionBoostSpecs(int index, SearchKnowledgeRequest.SearchConfig.BoostSpecs.BoostSpec.ConditionBoostSpec value)

Optional. 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.dialogflow.v2.SearchKnowledgeRequest.SearchConfig.BoostSpecs.BoostSpec.ConditionBoostSpec condition_boost_specs = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int
value SearchKnowledgeRequest.SearchConfig.BoostSpecs.BoostSpec.ConditionBoostSpec
Returns
Type Description
SearchKnowledgeRequest.SearchConfig.BoostSpecs.BoostSpec.Builder

setConditionBoostSpecs(int index, SearchKnowledgeRequest.SearchConfig.BoostSpecs.BoostSpec.ConditionBoostSpec.Builder builderForValue)

public SearchKnowledgeRequest.SearchConfig.BoostSpecs.BoostSpec.Builder setConditionBoostSpecs(int index, SearchKnowledgeRequest.SearchConfig.BoostSpecs.BoostSpec.ConditionBoostSpec.Builder builderForValue)

Optional. 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.dialogflow.v2.SearchKnowledgeRequest.SearchConfig.BoostSpecs.BoostSpec.ConditionBoostSpec condition_boost_specs = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int
builderForValue SearchKnowledgeRequest.SearchConfig.BoostSpecs.BoostSpec.ConditionBoostSpec.Builder
Returns
Type Description
SearchKnowledgeRequest.SearchConfig.BoostSpecs.BoostSpec.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public SearchKnowledgeRequest.SearchConfig.BoostSpecs.BoostSpec.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
SearchKnowledgeRequest.SearchConfig.BoostSpecs.BoostSpec.Builder
Overrides

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public SearchKnowledgeRequest.SearchConfig.BoostSpecs.BoostSpec.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
SearchKnowledgeRequest.SearchConfig.BoostSpecs.BoostSpec.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final SearchKnowledgeRequest.SearchConfig.BoostSpecs.BoostSpec.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
SearchKnowledgeRequest.SearchConfig.BoostSpecs.BoostSpec.Builder
Overrides