Discovery Engine v1beta API - Class SearchRequest.Types.RelevanceFilterSpec.Types.RelevanceThresholdSpec (1.0.0-beta24)

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

Reference documentation and code samples for the Discovery Engine v1beta API class SearchRequest.Types.RelevanceFilterSpec.Types.RelevanceThresholdSpec.

Specification for relevance filtering on a specific sub-search.

Inheritance

object > SearchRequest.Types.RelevanceFilterSpec.Types.RelevanceThresholdSpec

Namespace

Google.Cloud.DiscoveryEngine.V1Beta

Assembly

Google.Cloud.DiscoveryEngine.V1Beta.dll

Constructors

RelevanceThresholdSpec()

public RelevanceThresholdSpec()

RelevanceThresholdSpec(RelevanceThresholdSpec)

public RelevanceThresholdSpec(SearchRequest.Types.RelevanceFilterSpec.Types.RelevanceThresholdSpec other)
Parameter
Name Description
other SearchRequestTypesRelevanceFilterSpecTypesRelevanceThresholdSpec

Properties

HasRelevanceThreshold

public bool HasRelevanceThreshold { get; }

Gets whether the "relevance_threshold" field is set

Property Value
Type Description
bool

HasSemanticRelevanceThreshold

public bool HasSemanticRelevanceThreshold { get; }

Gets whether the "semantic_relevance_threshold" field is set

Property Value
Type Description
bool

RelevanceThreshold

public SearchRequest.Types.RelevanceThreshold RelevanceThreshold { get; set; }

Pre-defined relevance threshold for the sub-search.

Property Value
Type Description
SearchRequestTypesRelevanceThreshold

RelevanceThresholdSpecCase

public SearchRequest.Types.RelevanceFilterSpec.Types.RelevanceThresholdSpec.RelevanceThresholdSpecOneofCase RelevanceThresholdSpecCase { get; }
Property Value
Type Description
SearchRequestTypesRelevanceFilterSpecTypesRelevanceThresholdSpecRelevanceThresholdSpecOneofCase

SemanticRelevanceThreshold

public float SemanticRelevanceThreshold { get; set; }

Custom relevance threshold for the sub-search. The value must be in [0.0, 1.0].

Property Value
Type Description
float