Class AdvancedCompleteQueryRequest.BoostSpec.Builder (0.50.0)

public static final class AdvancedCompleteQueryRequest.BoostSpec.Builder extends GeneratedMessageV3.Builder<AdvancedCompleteQueryRequest.BoostSpec.Builder> implements AdvancedCompleteQueryRequest.BoostSpecOrBuilder

Specification to boost suggestions based on the condtion of the suggestion.

Protobuf type google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest.BoostSpec

Static Methods

getDescriptor()

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

Methods

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

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

Condition boost specifications. If a suggestion matches multiple conditions in the specifictions, boost values from these specifications are all applied and combined in a non-linear way. Maximum number of specifications is 20.

Note: Currently only support language condition boost.

repeated .google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest.BoostSpec.ConditionBoostSpec condition_boost_specs = 1;

Parameter
Name Description
values Iterable<? extends com.google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest.BoostSpec.ConditionBoostSpec>
Returns
Type Description
AdvancedCompleteQueryRequest.BoostSpec.Builder

addConditionBoostSpecs(AdvancedCompleteQueryRequest.BoostSpec.ConditionBoostSpec value)

public AdvancedCompleteQueryRequest.BoostSpec.Builder addConditionBoostSpecs(AdvancedCompleteQueryRequest.BoostSpec.ConditionBoostSpec value)

Condition boost specifications. If a suggestion matches multiple conditions in the specifictions, boost values from these specifications are all applied and combined in a non-linear way. Maximum number of specifications is 20.

Note: Currently only support language condition boost.

repeated .google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest.BoostSpec.ConditionBoostSpec condition_boost_specs = 1;

Parameter
Name Description
value AdvancedCompleteQueryRequest.BoostSpec.ConditionBoostSpec
Returns
Type Description
AdvancedCompleteQueryRequest.BoostSpec.Builder

addConditionBoostSpecs(AdvancedCompleteQueryRequest.BoostSpec.ConditionBoostSpec.Builder builderForValue)

public AdvancedCompleteQueryRequest.BoostSpec.Builder addConditionBoostSpecs(AdvancedCompleteQueryRequest.BoostSpec.ConditionBoostSpec.Builder builderForValue)

Condition boost specifications. If a suggestion matches multiple conditions in the specifictions, boost values from these specifications are all applied and combined in a non-linear way. Maximum number of specifications is 20.

Note: Currently only support language condition boost.

repeated .google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest.BoostSpec.ConditionBoostSpec condition_boost_specs = 1;

Parameter
Name Description
builderForValue AdvancedCompleteQueryRequest.BoostSpec.ConditionBoostSpec.Builder
Returns
Type Description
AdvancedCompleteQueryRequest.BoostSpec.Builder

addConditionBoostSpecs(int index, AdvancedCompleteQueryRequest.BoostSpec.ConditionBoostSpec value)

public AdvancedCompleteQueryRequest.BoostSpec.Builder addConditionBoostSpecs(int index, AdvancedCompleteQueryRequest.BoostSpec.ConditionBoostSpec value)

Condition boost specifications. If a suggestion matches multiple conditions in the specifictions, boost values from these specifications are all applied and combined in a non-linear way. Maximum number of specifications is 20.

Note: Currently only support language condition boost.

repeated .google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest.BoostSpec.ConditionBoostSpec condition_boost_specs = 1;

Parameters
Name Description
index int
value AdvancedCompleteQueryRequest.BoostSpec.ConditionBoostSpec
Returns
Type Description
AdvancedCompleteQueryRequest.BoostSpec.Builder

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

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

Condition boost specifications. If a suggestion matches multiple conditions in the specifictions, boost values from these specifications are all applied and combined in a non-linear way. Maximum number of specifications is 20.

Note: Currently only support language condition boost.

repeated .google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest.BoostSpec.ConditionBoostSpec condition_boost_specs = 1;

Parameters
Name Description
index int
builderForValue AdvancedCompleteQueryRequest.BoostSpec.ConditionBoostSpec.Builder
Returns
Type Description
AdvancedCompleteQueryRequest.BoostSpec.Builder

addConditionBoostSpecsBuilder()

public AdvancedCompleteQueryRequest.BoostSpec.ConditionBoostSpec.Builder addConditionBoostSpecsBuilder()

Condition boost specifications. If a suggestion matches multiple conditions in the specifictions, boost values from these specifications are all applied and combined in a non-linear way. Maximum number of specifications is 20.

Note: Currently only support language condition boost.

repeated .google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest.BoostSpec.ConditionBoostSpec condition_boost_specs = 1;

Returns
Type Description
AdvancedCompleteQueryRequest.BoostSpec.ConditionBoostSpec.Builder

addConditionBoostSpecsBuilder(int index)

public AdvancedCompleteQueryRequest.BoostSpec.ConditionBoostSpec.Builder addConditionBoostSpecsBuilder(int index)

Condition boost specifications. If a suggestion matches multiple conditions in the specifictions, boost values from these specifications are all applied and combined in a non-linear way. Maximum number of specifications is 20.

Note: Currently only support language condition boost.

repeated .google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest.BoostSpec.ConditionBoostSpec condition_boost_specs = 1;

Parameter
Name Description
index int
Returns
Type Description
AdvancedCompleteQueryRequest.BoostSpec.ConditionBoostSpec.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public AdvancedCompleteQueryRequest.BoostSpec build()
Returns
Type Description
AdvancedCompleteQueryRequest.BoostSpec

buildPartial()

public AdvancedCompleteQueryRequest.BoostSpec buildPartial()
Returns
Type Description
AdvancedCompleteQueryRequest.BoostSpec

clear()

public AdvancedCompleteQueryRequest.BoostSpec.Builder clear()
Returns
Type Description
AdvancedCompleteQueryRequest.BoostSpec.Builder
Overrides

clearConditionBoostSpecs()

public AdvancedCompleteQueryRequest.BoostSpec.Builder clearConditionBoostSpecs()

Condition boost specifications. If a suggestion matches multiple conditions in the specifictions, boost values from these specifications are all applied and combined in a non-linear way. Maximum number of specifications is 20.

Note: Currently only support language condition boost.

repeated .google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest.BoostSpec.ConditionBoostSpec condition_boost_specs = 1;

Returns
Type Description
AdvancedCompleteQueryRequest.BoostSpec.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

public AdvancedCompleteQueryRequest.BoostSpec.Builder clone()
Returns
Type Description
AdvancedCompleteQueryRequest.BoostSpec.Builder
Overrides

getConditionBoostSpecs(int index)

public AdvancedCompleteQueryRequest.BoostSpec.ConditionBoostSpec getConditionBoostSpecs(int index)

Condition boost specifications. If a suggestion matches multiple conditions in the specifictions, boost values from these specifications are all applied and combined in a non-linear way. Maximum number of specifications is 20.

Note: Currently only support language condition boost.

repeated .google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest.BoostSpec.ConditionBoostSpec condition_boost_specs = 1;

Parameter
Name Description
index int
Returns
Type Description
AdvancedCompleteQueryRequest.BoostSpec.ConditionBoostSpec

getConditionBoostSpecsBuilder(int index)

public AdvancedCompleteQueryRequest.BoostSpec.ConditionBoostSpec.Builder getConditionBoostSpecsBuilder(int index)

Condition boost specifications. If a suggestion matches multiple conditions in the specifictions, boost values from these specifications are all applied and combined in a non-linear way. Maximum number of specifications is 20.

Note: Currently only support language condition boost.

repeated .google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest.BoostSpec.ConditionBoostSpec condition_boost_specs = 1;

Parameter
Name Description
index int
Returns
Type Description
AdvancedCompleteQueryRequest.BoostSpec.ConditionBoostSpec.Builder

getConditionBoostSpecsBuilderList()

public List<AdvancedCompleteQueryRequest.BoostSpec.ConditionBoostSpec.Builder> getConditionBoostSpecsBuilderList()

Condition boost specifications. If a suggestion matches multiple conditions in the specifictions, boost values from these specifications are all applied and combined in a non-linear way. Maximum number of specifications is 20.

Note: Currently only support language condition boost.

repeated .google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest.BoostSpec.ConditionBoostSpec condition_boost_specs = 1;

Returns
Type Description
List<Builder>

getConditionBoostSpecsCount()

public int getConditionBoostSpecsCount()

Condition boost specifications. If a suggestion matches multiple conditions in the specifictions, boost values from these specifications are all applied and combined in a non-linear way. Maximum number of specifications is 20.

Note: Currently only support language condition boost.

repeated .google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest.BoostSpec.ConditionBoostSpec condition_boost_specs = 1;

Returns
Type Description
int

getConditionBoostSpecsList()

public List<AdvancedCompleteQueryRequest.BoostSpec.ConditionBoostSpec> getConditionBoostSpecsList()

Condition boost specifications. If a suggestion matches multiple conditions in the specifictions, boost values from these specifications are all applied and combined in a non-linear way. Maximum number of specifications is 20.

Note: Currently only support language condition boost.

repeated .google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest.BoostSpec.ConditionBoostSpec condition_boost_specs = 1;

Returns
Type Description
List<ConditionBoostSpec>

getConditionBoostSpecsOrBuilder(int index)

public AdvancedCompleteQueryRequest.BoostSpec.ConditionBoostSpecOrBuilder getConditionBoostSpecsOrBuilder(int index)

Condition boost specifications. If a suggestion matches multiple conditions in the specifictions, boost values from these specifications are all applied and combined in a non-linear way. Maximum number of specifications is 20.

Note: Currently only support language condition boost.

repeated .google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest.BoostSpec.ConditionBoostSpec condition_boost_specs = 1;

Parameter
Name Description
index int
Returns
Type Description
AdvancedCompleteQueryRequest.BoostSpec.ConditionBoostSpecOrBuilder

getConditionBoostSpecsOrBuilderList()

public List<? extends AdvancedCompleteQueryRequest.BoostSpec.ConditionBoostSpecOrBuilder> getConditionBoostSpecsOrBuilderList()

Condition boost specifications. If a suggestion matches multiple conditions in the specifictions, boost values from these specifications are all applied and combined in a non-linear way. Maximum number of specifications is 20.

Note: Currently only support language condition boost.

repeated .google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest.BoostSpec.ConditionBoostSpec condition_boost_specs = 1;

Returns
Type Description
List<? extends com.google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest.BoostSpec.ConditionBoostSpecOrBuilder>

getDefaultInstanceForType()

public AdvancedCompleteQueryRequest.BoostSpec getDefaultInstanceForType()
Returns
Type Description
AdvancedCompleteQueryRequest.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(AdvancedCompleteQueryRequest.BoostSpec other)

public AdvancedCompleteQueryRequest.BoostSpec.Builder mergeFrom(AdvancedCompleteQueryRequest.BoostSpec other)
Parameter
Name Description
other AdvancedCompleteQueryRequest.BoostSpec
Returns
Type Description
AdvancedCompleteQueryRequest.BoostSpec.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public AdvancedCompleteQueryRequest.BoostSpec.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
AdvancedCompleteQueryRequest.BoostSpec.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeConditionBoostSpecs(int index)

public AdvancedCompleteQueryRequest.BoostSpec.Builder removeConditionBoostSpecs(int index)

Condition boost specifications. If a suggestion matches multiple conditions in the specifictions, boost values from these specifications are all applied and combined in a non-linear way. Maximum number of specifications is 20.

Note: Currently only support language condition boost.

repeated .google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest.BoostSpec.ConditionBoostSpec condition_boost_specs = 1;

Parameter
Name Description
index int
Returns
Type Description
AdvancedCompleteQueryRequest.BoostSpec.Builder

setConditionBoostSpecs(int index, AdvancedCompleteQueryRequest.BoostSpec.ConditionBoostSpec value)

public AdvancedCompleteQueryRequest.BoostSpec.Builder setConditionBoostSpecs(int index, AdvancedCompleteQueryRequest.BoostSpec.ConditionBoostSpec value)

Condition boost specifications. If a suggestion matches multiple conditions in the specifictions, boost values from these specifications are all applied and combined in a non-linear way. Maximum number of specifications is 20.

Note: Currently only support language condition boost.

repeated .google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest.BoostSpec.ConditionBoostSpec condition_boost_specs = 1;

Parameters
Name Description
index int
value AdvancedCompleteQueryRequest.BoostSpec.ConditionBoostSpec
Returns
Type Description
AdvancedCompleteQueryRequest.BoostSpec.Builder

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

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

Condition boost specifications. If a suggestion matches multiple conditions in the specifictions, boost values from these specifications are all applied and combined in a non-linear way. Maximum number of specifications is 20.

Note: Currently only support language condition boost.

repeated .google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest.BoostSpec.ConditionBoostSpec condition_boost_specs = 1;

Parameters
Name Description
index int
builderForValue AdvancedCompleteQueryRequest.BoostSpec.ConditionBoostSpec.Builder
Returns
Type Description
AdvancedCompleteQueryRequest.BoostSpec.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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