1.0.0-beta87 (latest) 1.0.0-beta86

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

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

Spec for pointwise metric.

## Inheritance

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

## Implements

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

### PointwiseMetricSpec()

    public PointwiseMetricSpec()

### PointwiseMetricSpec(PointwiseMetricSpec)

    public PointwiseMetricSpec(PointwiseMetricSpec other)

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

## Properties

### CustomOutputFormatConfig

    public CustomOutputFormatConfig CustomOutputFormatConfig { get; set; }

Optional. CustomOutputFormatConfig allows customization of metric output.
By default, metrics return a score and explanation.
When this config is set, the default output is replaced with either:

- The raw output string.
- A parsed output based on a user-defined schema. If a custom format is chosen, the `score` 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 pointwise metric.

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

### SystemInstruction

    public string SystemInstruction { get; set; }

Optional. System instructions for pointwise metric.

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