1.0.0-beta87 (latest) 1.0.0-beta86

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

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

Spec for pairwise metric.

## Inheritance

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

## Implements

[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[PairwiseMetricSpec](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.PairwiseMetricSpec), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[PairwiseMetricSpec](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.PairwiseMetricSpec), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[PairwiseMetricSpec](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.PairwiseMetricSpec), [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

### PairwiseMetricSpec()

    public PairwiseMetricSpec()

### PairwiseMetricSpec(PairwiseMetricSpec)

    public PairwiseMetricSpec(PairwiseMetricSpec other)

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

## Properties

### BaselineResponseFieldName

    public string BaselineResponseFieldName { get; set; }

Optional. The field name of the baseline response.

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

### CandidateResponseFieldName

    public string CandidateResponseFieldName { get; set; }

Optional. The field name of the candidate response.

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

### CustomOutputFormatConfig

    public CustomOutputFormatConfig CustomOutputFormatConfig { get; set; }

Optional. CustomOutputFormatConfig allows customization of metric output.
When this config is set, the default output is replaced with
the raw output string.
If a custom format is chosen, the `pairwise_choice` and `explanation`
fields in the corresponding metric result will be empty.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.CustomOutputFormatConfig` |   |

### HasMetricPromptTemplate

    public bool HasMetricPromptTemplate { get; }

Gets whether the "metric_prompt_template" field is set

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

### HasSystemInstruction

    public bool HasSystemInstruction { get; }

Gets whether the "system_instruction" field is set

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

### MetricPromptTemplate

    public string MetricPromptTemplate { get; set; }

Required. Metric prompt template for pairwise metric.

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

### SystemInstruction

    public string SystemInstruction { get; set; }

Optional. System instructions for pairwise metric.

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