Package com.google.cloud.dns
Enum Dns.ProjectField
- java.lang.Object
-
- java.lang.Enum<Dns.ProjectField>
-
- com.google.cloud.dns.Dns.ProjectField
-
- All Implemented Interfaces:
com.google.cloud.FieldSelector
,Serializable
,Comparable<Dns.ProjectField>
- Enclosing interface:
- Dns
public static enum Dns.ProjectField extends Enum<Dns.ProjectField> implements com.google.cloud.FieldSelector
The fields of a project.These values can be used to specify the fields to include in a partial response when calling
Dns.getProject(ProjectOption...)
. Project ID is always returned, even if not specified.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description PROJECT_ID
PROJECT_NUMBER
QUOTA
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getSelector()
static Dns.ProjectField
valueOf(String name)
Returns the enum constant of this type with the specified name.static Dns.ProjectField[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
PROJECT_ID
public static final Dns.ProjectField PROJECT_ID
-
PROJECT_NUMBER
public static final Dns.ProjectField PROJECT_NUMBER
-
QUOTA
public static final Dns.ProjectField QUOTA
-
-
Method Detail
-
values
public static Dns.ProjectField[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (Dns.ProjectField c : Dns.ProjectField.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Dns.ProjectField 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 nameNullPointerException
- if the argument is null
-
getSelector
public String getSelector()
- Specified by:
getSelector
in interfacecom.google.cloud.FieldSelector
-
-