public static enum PolicySpec.PolicyRule.KindCase extends Enum<PolicySpec.PolicyRule.KindCase> implements Internal.EnumLite, AbstractMessageLite.InternalOneOfEnum
Enum Constant and Description |
---|
ALLOW_ALL |
DENY_ALL |
ENFORCE |
KIND_NOT_SET |
VALUES |
Modifier and Type | Method and Description |
---|---|
static PolicySpec.PolicyRule.KindCase |
forNumber(int value) |
int |
getNumber() |
static PolicySpec.PolicyRule.KindCase |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static PolicySpec.PolicyRule.KindCase |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static PolicySpec.PolicyRule.KindCase[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PolicySpec.PolicyRule.KindCase VALUES
public static final PolicySpec.PolicyRule.KindCase ALLOW_ALL
public static final PolicySpec.PolicyRule.KindCase DENY_ALL
public static final PolicySpec.PolicyRule.KindCase ENFORCE
public static final PolicySpec.PolicyRule.KindCase KIND_NOT_SET
public static PolicySpec.PolicyRule.KindCase[] values()
for (PolicySpec.PolicyRule.KindCase c : PolicySpec.PolicyRule.KindCase.values()) System.out.println(c);
public static PolicySpec.PolicyRule.KindCase 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 null@Deprecated public static PolicySpec.PolicyRule.KindCase valueOf(int value)
forNumber(int)
instead.value
- The number of the enum to look for.public static PolicySpec.PolicyRule.KindCase forNumber(int value)
public int getNumber()
getNumber
in interface AbstractMessageLite.InternalOneOfEnum
getNumber
in interface Internal.EnumLite
Copyright © 2021 Google LLC. All rights reserved.