Enum ResourceScope.Known

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

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

    • COLLECTION

      public static final ResourceScope.Known COLLECTION
      When setting base_url, this value configures resource scope to be the collection. The resource name will not include api version, project, or location. For example, if base_url is set to "https://aiplatform.googleapis.com", then the resource name for a Model would be "https://aiplatform.googleapis.com/publishers/google/models/gemini-3-pro-preview
    • RESOURCE_SCOPE_UNSPECIFIED

      public static final ResourceScope.Known RESOURCE_SCOPE_UNSPECIFIED
  • Method Details

    • values

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