Class SearchRequest.Types.BoostSpec (2.0.0)

public sealed class BoostSpec : IMessage<SearchRequest.Types.BoostSpec>, IEquatable<SearchRequest.Types.BoostSpec>, IDeepCloneable<SearchRequest.Types.BoostSpec>, IBufferMessage, IMessage

Boost specification to boost certain items.

Inheritance

Object > SearchRequest.Types.BoostSpec

Namespace

Google.Cloud.Retail.V2

Assembly

Google.Cloud.Retail.V2.dll

Constructors

BoostSpec()

public BoostSpec()

BoostSpec(SearchRequest.Types.BoostSpec)

public BoostSpec(SearchRequest.Types.BoostSpec other)
Parameter
NameDescription
otherSearchRequest.Types.BoostSpec

Properties

ConditionBoostSpecs

public RepeatedField<SearchRequest.Types.BoostSpec.Types.ConditionBoostSpec> ConditionBoostSpecs { get; }

Condition boost specifications. If a product 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.

Property Value
TypeDescription
RepeatedField<SearchRequest.Types.BoostSpec.Types.ConditionBoostSpec>

HasSkipBoostSpecValidation

public bool HasSkipBoostSpecValidation { get; }

Gets whether the "skip_boost_spec_validation" field is set

Property Value
TypeDescription
Boolean

SkipBoostSpecValidation

public bool SkipBoostSpecValidation { get; set; }

Whether to skip boostspec validation. If this field is set to true, invalid [BoostSpec.condition_boost_specs][google.cloud.retail.v2.SearchRequest.BoostSpec.condition_boost_specs] will be ignored and valid [BoostSpec.condition_boost_specs][google.cloud.retail.v2.SearchRequest.BoostSpec.condition_boost_specs] will still be applied.

Property Value
TypeDescription
Boolean