Enum TrafficType.Known

java.lang.Object
java.lang.Enum<TrafficType.Known>
com.google.genai.types.TrafficType.Known
All Implemented Interfaces:
Serializable, Comparable<TrafficType.Known>
Enclosing class:
TrafficType

public static enum TrafficType.Known extends Enum<TrafficType.Known>
Enum representing the known values for TrafficType.
  • Enum Constant Details

    • TRAFFIC_TYPE_UNSPECIFIED

      public static final TrafficType.Known TRAFFIC_TYPE_UNSPECIFIED
      Unspecified request traffic type.
    • ON_DEMAND

      public static final TrafficType.Known ON_DEMAND
      Type for Pay-As-You-Go traffic.
    • PROVISIONED_THROUGHPUT

      public static final TrafficType.Known PROVISIONED_THROUGHPUT
      Type for Provisioned Throughput traffic.
  • Method Details

    • values

      public static TrafficType.Known[] 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

      public static TrafficType.Known valueOf(String name)
      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 name
      NullPointerException - if the argument is null