Class BoostSpec.Builder (0.52.0)

public static final class BoostSpec.Builder extends GeneratedMessageV3.Builder<BoostSpec.Builder> implements 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.cx.v3beta1.BoostSpec

Implements

BoostSpecOrBuilder

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

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

public BoostSpec.Builder addAllConditionBoostSpecs(Iterable<? extends 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.cx.v3beta1.BoostSpec.ConditionBoostSpec condition_boost_specs = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.dialogflow.cx.v3beta1.BoostSpec.ConditionBoostSpec>
Returns
TypeDescription
BoostSpec.Builder

addConditionBoostSpecs(BoostSpec.ConditionBoostSpec value)

public BoostSpec.Builder addConditionBoostSpecs(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.cx.v3beta1.BoostSpec.ConditionBoostSpec condition_boost_specs = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueBoostSpec.ConditionBoostSpec
Returns
TypeDescription
BoostSpec.Builder

addConditionBoostSpecs(BoostSpec.ConditionBoostSpec.Builder builderForValue)

public BoostSpec.Builder addConditionBoostSpecs(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.cx.v3beta1.BoostSpec.ConditionBoostSpec condition_boost_specs = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
builderForValueBoostSpec.ConditionBoostSpec.Builder
Returns
TypeDescription
BoostSpec.Builder

addConditionBoostSpecs(int index, BoostSpec.ConditionBoostSpec value)

public BoostSpec.Builder addConditionBoostSpecs(int index, 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.cx.v3beta1.BoostSpec.ConditionBoostSpec condition_boost_specs = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameters
NameDescription
indexint
valueBoostSpec.ConditionBoostSpec
Returns
TypeDescription
BoostSpec.Builder

addConditionBoostSpecs(int index, BoostSpec.ConditionBoostSpec.Builder builderForValue)

public BoostSpec.Builder addConditionBoostSpecs(int index, 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.cx.v3beta1.BoostSpec.ConditionBoostSpec condition_boost_specs = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameters
NameDescription
indexint
builderForValueBoostSpec.ConditionBoostSpec.Builder
Returns
TypeDescription
BoostSpec.Builder

addConditionBoostSpecsBuilder()

public 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.cx.v3beta1.BoostSpec.ConditionBoostSpec condition_boost_specs = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
BoostSpec.ConditionBoostSpec.Builder

addConditionBoostSpecsBuilder(int index)

public 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.cx.v3beta1.BoostSpec.ConditionBoostSpec condition_boost_specs = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
indexint
Returns
TypeDescription
BoostSpec.ConditionBoostSpec.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public BoostSpec.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
BoostSpec.Builder
Overrides

build()

public BoostSpec build()
Returns
TypeDescription
BoostSpec

buildPartial()

public BoostSpec buildPartial()
Returns
TypeDescription
BoostSpec

clear()

public BoostSpec.Builder clear()
Returns
TypeDescription
BoostSpec.Builder
Overrides

clearConditionBoostSpecs()

public 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.cx.v3beta1.BoostSpec.ConditionBoostSpec condition_boost_specs = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
BoostSpec.Builder

clearField(Descriptors.FieldDescriptor field)

public BoostSpec.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
BoostSpec.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public BoostSpec.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
BoostSpec.Builder
Overrides

clone()

public BoostSpec.Builder clone()
Returns
TypeDescription
BoostSpec.Builder
Overrides

getConditionBoostSpecs(int index)

public 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.cx.v3beta1.BoostSpec.ConditionBoostSpec condition_boost_specs = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
indexint
Returns
TypeDescription
BoostSpec.ConditionBoostSpec

getConditionBoostSpecsBuilder(int index)

public 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.cx.v3beta1.BoostSpec.ConditionBoostSpec condition_boost_specs = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
indexint
Returns
TypeDescription
BoostSpec.ConditionBoostSpec.Builder

getConditionBoostSpecsBuilderList()

public List<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.cx.v3beta1.BoostSpec.ConditionBoostSpec condition_boost_specs = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
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.cx.v3beta1.BoostSpec.ConditionBoostSpec condition_boost_specs = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
int

getConditionBoostSpecsList()

public List<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.cx.v3beta1.BoostSpec.ConditionBoostSpec condition_boost_specs = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
List<ConditionBoostSpec>

getConditionBoostSpecsOrBuilder(int index)

public 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.cx.v3beta1.BoostSpec.ConditionBoostSpec condition_boost_specs = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
indexint
Returns
TypeDescription
BoostSpec.ConditionBoostSpecOrBuilder

getConditionBoostSpecsOrBuilderList()

public List<? extends 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.cx.v3beta1.BoostSpec.ConditionBoostSpec condition_boost_specs = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
List<? extends com.google.cloud.dialogflow.cx.v3beta1.BoostSpec.ConditionBoostSpecOrBuilder>

getDefaultInstanceForType()

public BoostSpec getDefaultInstanceForType()
Returns
TypeDescription
BoostSpec

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(BoostSpec other)

public BoostSpec.Builder mergeFrom(BoostSpec other)
Parameter
NameDescription
otherBoostSpec
Returns
TypeDescription
BoostSpec.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public BoostSpec.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
BoostSpec.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public BoostSpec.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
BoostSpec.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final BoostSpec.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
BoostSpec.Builder
Overrides

removeConditionBoostSpecs(int index)

public 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.cx.v3beta1.BoostSpec.ConditionBoostSpec condition_boost_specs = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
indexint
Returns
TypeDescription
BoostSpec.Builder

setConditionBoostSpecs(int index, BoostSpec.ConditionBoostSpec value)

public BoostSpec.Builder setConditionBoostSpecs(int index, 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.cx.v3beta1.BoostSpec.ConditionBoostSpec condition_boost_specs = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameters
NameDescription
indexint
valueBoostSpec.ConditionBoostSpec
Returns
TypeDescription
BoostSpec.Builder

setConditionBoostSpecs(int index, BoostSpec.ConditionBoostSpec.Builder builderForValue)

public BoostSpec.Builder setConditionBoostSpecs(int index, 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.cx.v3beta1.BoostSpec.ConditionBoostSpec condition_boost_specs = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameters
NameDescription
indexint
builderForValueBoostSpec.ConditionBoostSpec.Builder
Returns
TypeDescription
BoostSpec.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public BoostSpec.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
BoostSpec.Builder
Overrides

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

public BoostSpec.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
BoostSpec.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final BoostSpec.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
BoostSpec.Builder
Overrides