Struct TrafficType
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
OnDemand
The request was processed using Pay-As-You-Go quota.
public static TrafficType OnDemand { get; }
Property Value
OnDemandFlex
Type for Flex traffic.
public static TrafficType OnDemandFlex { get; }
Property Value
OnDemandPriority
Type for Priority Pay-As-You-Go traffic.
public static TrafficType OnDemandPriority { get; }
Property Value
ProvisionedThroughput
Type for Provisioned Throughput traffic.
public static TrafficType ProvisionedThroughput { get; }
Property Value
TrafficTypeUnspecified
Unspecified request traffic type.
public static TrafficType TrafficTypeUnspecified { get; }
Property Value
Value
public string Value { get; }
Property Value
Methods
Equals(TrafficType)
public bool Equals(TrafficType other)
Parameters
otherTrafficType
Returns
FromString(string)
public static TrafficType FromString(string value)
Parameters
valuestring
Returns
GetHashCode()
public override int GetHashCode()
Returns
ToString()
public override string ToString()
Returns
Operators
implicit operator TrafficType(string)
public static implicit operator TrafficType(string value)
Parameters
valuestring