Table of Contents

Struct TrafficType

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

Output only. The traffic type for this request. This enum is not supported in Gemini API.

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

Properties

AllValues

public static IReadOnlyList<TrafficType> AllValues { get; }

Property Value

IReadOnlyList<TrafficType>

OnDemand

The request was processed using Pay-As-You-Go quota.

public static TrafficType OnDemand { get; }

Property Value

TrafficType

OnDemandFlex

Type for Flex traffic.

public static TrafficType OnDemandFlex { get; }

Property Value

TrafficType

OnDemandPriority

Type for Priority Pay-As-You-Go traffic.

public static TrafficType OnDemandPriority { get; }

Property Value

TrafficType

ProvisionedThroughput

Type for Provisioned Throughput traffic.

public static TrafficType ProvisionedThroughput { get; }

Property Value

TrafficType

TrafficTypeUnspecified

Unspecified request traffic type.

public static TrafficType TrafficTypeUnspecified { get; }

Property Value

TrafficType

Value

public string Value { get; }

Property Value

string

Methods

Equals(TrafficType)

public bool Equals(TrafficType other)

Parameters

other TrafficType

Returns

bool

FromString(string)

public static TrafficType FromString(string value)

Parameters

value string

Returns

TrafficType

GetHashCode()

public override int GetHashCode()

Returns

int

ToString()

public override string ToString()

Returns

string

Operators

implicit operator TrafficType(string)

public static implicit operator TrafficType(string value)

Parameters

value string

Returns

TrafficType