Table of Contents

Struct MatchOperation

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

Match operation to use for evaluation.

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

Properties

AllValues

public static IReadOnlyList<MatchOperation> AllValues { get; }

Property Value

IReadOnlyList<MatchOperation>

ExactMatch

expression is an exact match of target.

public static MatchOperation ExactMatch { get; }

Property Value

MatchOperation

MatchOperationUnspecified

Default value. This value is unused.

public static MatchOperation MatchOperationUnspecified { get; }

Property Value

MatchOperation

PartialMatch

expression is a substring of target.

public static MatchOperation PartialMatch { get; }

Property Value

MatchOperation

RegexContains

Equivalent to GoogleSQL REGEX_CONTAINS(target, expression).

public static MatchOperation RegexContains { get; }

Property Value

MatchOperation

Value

public string Value { get; }

Property Value

string

Methods

Equals(MatchOperation)

public bool Equals(MatchOperation other)

Parameters

other MatchOperation

Returns

bool

FromString(string)

public static MatchOperation FromString(string value)

Parameters

value string

Returns

MatchOperation

GetHashCode()

public override int GetHashCode()

Returns

int

ToString()

public override string ToString()

Returns

string

Operators

implicit operator MatchOperation(string)

public static implicit operator MatchOperation(string value)

Parameters

value string

Returns

MatchOperation