Table of Contents

Struct AdapterSize

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

Adapter size for tuning. This enum is not supported in Gemini API.

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

Properties

AdapterSizeEight

Adapter size 8.

public static AdapterSize AdapterSizeEight { get; }

Property Value

AdapterSize

AdapterSizeFour

Adapter size 4.

public static AdapterSize AdapterSizeFour { get; }

Property Value

AdapterSize

AdapterSizeOne

Adapter size 1.

public static AdapterSize AdapterSizeOne { get; }

Property Value

AdapterSize

AdapterSizeSixteen

Adapter size 16.

public static AdapterSize AdapterSizeSixteen { get; }

Property Value

AdapterSize

AdapterSizeThirtyTwo

Adapter size 32.

public static AdapterSize AdapterSizeThirtyTwo { get; }

Property Value

AdapterSize

AdapterSizeTwo

Adapter size 2.

public static AdapterSize AdapterSizeTwo { get; }

Property Value

AdapterSize

AdapterSizeUnspecified

Adapter size is unspecified.

public static AdapterSize AdapterSizeUnspecified { get; }

Property Value

AdapterSize

AllValues

public static IReadOnlyList<AdapterSize> AllValues { get; }

Property Value

IReadOnlyList<AdapterSize>

Value

public string Value { get; }

Property Value

string

Methods

Equals(AdapterSize)

public bool Equals(AdapterSize other)

Parameters

other AdapterSize

Returns

bool

FromString(string)

public static AdapterSize FromString(string value)

Parameters

value string

Returns

AdapterSize

GetHashCode()

public override int GetHashCode()

Returns

int

ToString()

public override string ToString()

Returns

string

Operators

implicit operator AdapterSize(string)

public static implicit operator AdapterSize(string value)

Parameters

value string

Returns

AdapterSize