public sealed class BoostSpec : IMessage<SearchRequest.Types.BoostSpec>, IEquatable<SearchRequest.Types.BoostSpec>, IDeepCloneable<SearchRequest.Types.BoostSpec>, IBufferMessage, IMessage
Boost specification to boost certain items.
Implements
IMessage<SearchRequest.Types.BoostSpec>, IEquatable<SearchRequest.Types.BoostSpec>, IDeepCloneable<SearchRequest.Types.BoostSpec>, IBufferMessage, IMessageNamespace
Google.Cloud.Retail.V2Assembly
Google.Cloud.Retail.V2.dll
Constructors
BoostSpec()
public BoostSpec()
BoostSpec(SearchRequest.Types.BoostSpec)
public BoostSpec(SearchRequest.Types.BoostSpec other)
Parameter | |
---|---|
Name | Description |
other | SearchRequest.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 10.
Property Value | |
---|---|
Type | Description |
RepeatedField<SearchRequest.Types.BoostSpec.Types.ConditionBoostSpec> |
HasSkipBoostSpecValidation
public bool HasSkipBoostSpecValidation { get; }
Gets whether the "skip_boost_spec_validation" field is set
Property Value | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
Boolean |