Enum ProxyType.Known

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

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

    • HTTP

      public static final ProxyType.Known HTTP
      Represents an HTTP proxy.
    • SOCKS

      public static final ProxyType.Known SOCKS
      Represents a SOCKS proxy.
    • DIRECT

      public static final ProxyType.Known DIRECT
      Direct connection without any proxy. This enforces a proxy-free connection, even if one is configured at the system level.
    • PROXY_TYPE_UNSPECIFIED

      public static final ProxyType.Known PROXY_TYPE_UNSPECIFIED
  • Method Details

    • values

      public static ProxyType.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 ProxyType.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