Package com.google.cloud.resourcemanager
Enum ResourceManager.ProjectField
- java.lang.Object
-
- java.lang.Enum<ResourceManager.ProjectField>
-
- com.google.cloud.resourcemanager.ResourceManager.ProjectField
-
- All Implemented Interfaces:
com.google.cloud.FieldSelector
,Serializable
,Comparable<ResourceManager.ProjectField>
- Enclosing interface:
- ResourceManager
public static enum ResourceManager.ProjectField extends Enum<ResourceManager.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
ResourceManager.get(java.lang.String, com.google.cloud.resourcemanager.ResourceManager.ProjectGetOption...)
orResourceManager.list(com.google.cloud.resourcemanager.ResourceManager.ProjectListOption...)
. Project ID is always returned, even if not specified.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CREATE_TIME
LABELS
NAME
PROJECT_ID
PROJECT_NUMBER
STATE
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getSelector()
static ResourceManager.ProjectField
valueOf(String name)
Returns the enum constant of this type with the specified name.static ResourceManager.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 ResourceManager.ProjectField PROJECT_ID
-
NAME
public static final ResourceManager.ProjectField NAME
-
LABELS
public static final ResourceManager.ProjectField LABELS
-
PROJECT_NUMBER
public static final ResourceManager.ProjectField PROJECT_NUMBER
-
STATE
public static final ResourceManager.ProjectField STATE
-
CREATE_TIME
public static final ResourceManager.ProjectField CREATE_TIME
-
-
Method Detail
-
values
public static ResourceManager.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 (ResourceManager.ProjectField c : ResourceManager.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 ResourceManager.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
-
-