Table of Contents

Struct ApiSpec

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

The API spec that the external API implements. This enum is not supported in Gemini API.

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

Properties

AllValues

public static IReadOnlyList<ApiSpec> AllValues { get; }

Property Value

IReadOnlyList<ApiSpec>

ApiSpecUnspecified

Unspecified API spec. This value should not be used.

public static ApiSpec ApiSpecUnspecified { get; }

Property Value

ApiSpec

ElasticSearch

Elastic search API spec.

public static ApiSpec ElasticSearch { get; }

Property Value

ApiSpec

SimpleSearch

Simple search API spec.

public static ApiSpec SimpleSearch { get; }

Property Value

ApiSpec

Value

public string Value { get; }

Property Value

string

Methods

Equals(ApiSpec)

public bool Equals(ApiSpec other)

Parameters

other ApiSpec

Returns

bool

FromString(string)

public static ApiSpec FromString(string value)

Parameters

value string

Returns

ApiSpec

GetHashCode()

public override int GetHashCode()

Returns

int

ToString()

public override string ToString()

Returns

string

Operators

implicit operator ApiSpec(string)

public static implicit operator ApiSpec(string value)

Parameters

value string

Returns

ApiSpec