Package com.google.genai.types
Enum TrafficType.Known
- All Implemented Interfaces:
Serializable
,Comparable<TrafficType.Known>
- Enclosing class:
- TrafficType
Enum representing the known values for TrafficType.
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionType for Pay-As-You-Go traffic.Type for Provisioned Throughput traffic.Unspecified request traffic type. -
Method Summary
Modifier and TypeMethodDescriptionstatic TrafficType.Known
Returns the enum constant of this type with the specified name.static TrafficType.Known[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
TRAFFIC_TYPE_UNSPECIFIED
Unspecified request traffic type. -
ON_DEMAND
Type for Pay-As-You-Go traffic. -
PROVISIONED_THROUGHPUT
Type for Provisioned Throughput traffic.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-