1.0.0-beta87 (latest) 1.0.0-beta86

    public sealed class QuestionAnsweringRelevanceSpec : IMessage<QuestionAnsweringRelevanceSpec>, IEquatable<QuestionAnsweringRelevanceSpec>, IDeepCloneable<QuestionAnsweringRelevanceSpec>, IBufferMessage, IMessage

Reference documentation and code samples for the Vertex AI v1beta1 API class QuestionAnsweringRelevanceSpec.

Spec for question answering relevance metric.

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) \> QuestionAnsweringRelevanceSpec

## Implements

[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[QuestionAnsweringRelevanceSpec](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.QuestionAnsweringRelevanceSpec), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[QuestionAnsweringRelevanceSpec](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.QuestionAnsweringRelevanceSpec), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[QuestionAnsweringRelevanceSpec](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.QuestionAnsweringRelevanceSpec), [IBufferMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.html), [IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.html)

## Inherited Members

[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) [object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) [object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

## Namespace

[Google.Cloud.AIPlatform.V1Beta1](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1)

## Assembly

Google.Cloud.AIPlatform.V1Beta1.dll

## Constructors

### QuestionAnsweringRelevanceSpec()

    public QuestionAnsweringRelevanceSpec()

### QuestionAnsweringRelevanceSpec(QuestionAnsweringRelevanceSpec)

    public QuestionAnsweringRelevanceSpec(QuestionAnsweringRelevanceSpec other)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `other` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.QuestionAnsweringRelevanceSpec` |

## Properties

### UseReference

    public bool UseReference { get; set; }

Optional. Whether to use instance.reference to compute question answering
relevance.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.boolean` |   |

### Version

    public int Version { get; set; }

Optional. Which version to use for evaluation.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.int32` |   |