Table of Contents

Struct PairwiseChoice

Namespace
Google.GenAI.Types
Assembly
Google.GenAI.dll

Output only. Pairwise metric choice. This enum is not supported in Gemini API.

[JsonConverter(typeof(PairwiseChoiceConverter))]
public readonly record struct PairwiseChoice : IEquatable<PairwiseChoice>
Implements
Inherited Members

Properties

AllValues

public static IReadOnlyList<PairwiseChoice> AllValues { get; }

Property Value

IReadOnlyList<PairwiseChoice>

Baseline

Baseline prediction wins

public static PairwiseChoice Baseline { get; }

Property Value

PairwiseChoice

Candidate

Candidate prediction wins

public static PairwiseChoice Candidate { get; }

Property Value

PairwiseChoice

PairwiseChoiceUnspecified

Unspecified prediction choice.

public static PairwiseChoice PairwiseChoiceUnspecified { get; }

Property Value

PairwiseChoice

Tie

Winner cannot be determined

public static PairwiseChoice Tie { get; }

Property Value

PairwiseChoice

Value

public string Value { get; }

Property Value

string

Methods

Equals(PairwiseChoice)

public bool Equals(PairwiseChoice other)

Parameters

other PairwiseChoice

Returns

bool

FromString(string)

public static PairwiseChoice FromString(string value)

Parameters

value string

Returns

PairwiseChoice

GetHashCode()

public override int GetHashCode()

Returns

int

ToString()

public override string ToString()

Returns

string

Operators

implicit operator PairwiseChoice(string)

public static implicit operator PairwiseChoice(string value)

Parameters

value string

Returns

PairwiseChoice