public enum Purpose extends Enum<Purpose> implements com.google.protobuf.ProtocolMessageEnum
A purpose for each policy engine requiring such an integration. A single policy engine may have multiple purposes defined, however a TagKey may only specify a single purpose.Protobuf enum
google.cloud.resourcemanager.v3.Purpose| Enum Constant and Description |
|---|
GCE_FIREWALL
Purpose for Compute Engine firewalls.
|
PURPOSE_UNSPECIFIED
Unspecified purpose.
|
UNRECOGNIZED |
| Modifier and Type | Field and Description |
|---|---|
static int |
GCE_FIREWALL_VALUE
Purpose for Compute Engine firewalls.
|
static int |
PURPOSE_UNSPECIFIED_VALUE
Unspecified purpose.
|
| Modifier and Type | Method and Description |
|---|---|
static Purpose |
forNumber(int value) |
static com.google.protobuf.Descriptors.EnumDescriptor |
getDescriptor() |
com.google.protobuf.Descriptors.EnumDescriptor |
getDescriptorForType() |
int |
getNumber() |
com.google.protobuf.Descriptors.EnumValueDescriptor |
getValueDescriptor() |
static com.google.protobuf.Internal.EnumLiteMap<Purpose> |
internalGetValueMap() |
static Purpose |
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static Purpose |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static Purpose |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Purpose[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Purpose PURPOSE_UNSPECIFIED
Unspecified purpose.
PURPOSE_UNSPECIFIED = 0;public static final Purpose GCE_FIREWALL
Purpose for Compute Engine firewalls.
A corresponding `purpose_data` should be set for the network the tag is
intended for. The key should be `network` and the value should be in
either of these two formats:
-
`https://www.googleapis.com/compute/{compute_version}/projects/{project_id}/global/networks/{network_id}`
- `{project_id}/{network_name}`
Examples:
-
`https://www.googleapis.com/compute/staging_v1/projects/fail-closed-load-testing/global/networks/6992953698831725600`
- `fail-closed-load-testing/load-testing-network`
GCE_FIREWALL = 1;public static final Purpose UNRECOGNIZED
public static final int PURPOSE_UNSPECIFIED_VALUE
Unspecified purpose.
PURPOSE_UNSPECIFIED = 0;public static final int GCE_FIREWALL_VALUE
Purpose for Compute Engine firewalls.
A corresponding `purpose_data` should be set for the network the tag is
intended for. The key should be `network` and the value should be in
either of these two formats:
-
`https://www.googleapis.com/compute/{compute_version}/projects/{project_id}/global/networks/{network_id}`
- `{project_id}/{network_name}`
Examples:
-
`https://www.googleapis.com/compute/staging_v1/projects/fail-closed-load-testing/global/networks/6992953698831725600`
- `fail-closed-load-testing/load-testing-network`
GCE_FIREWALL = 1;public static Purpose[] values()
for (Purpose c : Purpose.values()) System.out.println(c);
public static Purpose valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic final int getNumber()
getNumber in interface com.google.protobuf.Internal.EnumLitegetNumber in interface com.google.protobuf.ProtocolMessageEnum@Deprecated public static Purpose valueOf(int value)
forNumber(int) instead.value - The numeric wire value of the corresponding enum entry.public static Purpose forNumber(int value)
value - The numeric wire value of the corresponding enum entry.public static com.google.protobuf.Internal.EnumLiteMap<Purpose> internalGetValueMap()
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
getValueDescriptor in interface com.google.protobuf.ProtocolMessageEnumpublic final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.ProtocolMessageEnumpublic static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
public static Purpose valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Copyright © 2025 Google LLC. All rights reserved.