Enum PreviewState
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite,com.google.protobuf.ProtocolMessageEnum,Serializable,Comparable<PreviewState>
@Generated
public enum PreviewState
extends Enum<PreviewState>
implements com.google.protobuf.ProtocolMessageEnum
The current state of an [OrgPolicyViolationsPreview][google.cloud.policysimulator.v1.OrgPolicyViolationsPreview].Protobuf enum
google.cloud.policysimulator.v1.PreviewState-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe [OrgPolicyViolationsPreview][google.cloud.policysimulator.v1.OrgPolicyViolationsPreview] creation failed with an error.The [OrgPolicyViolationsPreview][google.cloud.policysimulator.v1.OrgPolicyViolationsPreview] has not been created yet.The [OrgPolicyViolationsPreview][google.cloud.policysimulator.v1.OrgPolicyViolationsPreview] is currently being created.The state is unspecified.The [OrgPolicyViolationsPreview][google.cloud.policysimulator.v1.OrgPolicyViolationsPreview] creation finished successfully. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe [OrgPolicyViolationsPreview][google.cloud.policysimulator.v1.OrgPolicyViolationsPreview] creation failed with an error.static final intThe [OrgPolicyViolationsPreview][google.cloud.policysimulator.v1.OrgPolicyViolationsPreview] has not been created yet.static final intThe [OrgPolicyViolationsPreview][google.cloud.policysimulator.v1.OrgPolicyViolationsPreview] is currently being created.static final intThe state is unspecified.static final intThe [OrgPolicyViolationsPreview][google.cloud.policysimulator.v1.OrgPolicyViolationsPreview] creation finished successfully. -
Method Summary
Modifier and TypeMethodDescriptionstatic PreviewStateforNumber(int value) static com.google.protobuf.Descriptors.EnumDescriptorfinal com.google.protobuf.Descriptors.EnumDescriptorfinal intfinal com.google.protobuf.Descriptors.EnumValueDescriptorstatic com.google.protobuf.Internal.EnumLiteMap<PreviewState>static PreviewStatevalueOf(int value) Deprecated.static PreviewStatevalueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) Returns the enum constant of this type with the specified name.static PreviewStateReturns the enum constant of this type with the specified name.static PreviewState[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
PREVIEW_STATE_UNSPECIFIED
The state is unspecified.
PREVIEW_STATE_UNSPECIFIED = 0; -
PREVIEW_PENDING
The [OrgPolicyViolationsPreview][google.cloud.policysimulator.v1.OrgPolicyViolationsPreview] has not been created yet.
PREVIEW_PENDING = 1; -
PREVIEW_RUNNING
The [OrgPolicyViolationsPreview][google.cloud.policysimulator.v1.OrgPolicyViolationsPreview] is currently being created.
PREVIEW_RUNNING = 2; -
PREVIEW_SUCCEEDED
The [OrgPolicyViolationsPreview][google.cloud.policysimulator.v1.OrgPolicyViolationsPreview] creation finished successfully.
PREVIEW_SUCCEEDED = 3; -
PREVIEW_FAILED
The [OrgPolicyViolationsPreview][google.cloud.policysimulator.v1.OrgPolicyViolationsPreview] creation failed with an error.
PREVIEW_FAILED = 4; -
UNRECOGNIZED
-
-
Field Details
-
PREVIEW_STATE_UNSPECIFIED_VALUE
public static final int PREVIEW_STATE_UNSPECIFIED_VALUEThe state is unspecified.
PREVIEW_STATE_UNSPECIFIED = 0;- See Also:
-
PREVIEW_PENDING_VALUE
public static final int PREVIEW_PENDING_VALUEThe [OrgPolicyViolationsPreview][google.cloud.policysimulator.v1.OrgPolicyViolationsPreview] has not been created yet.
PREVIEW_PENDING = 1;- See Also:
-
PREVIEW_RUNNING_VALUE
public static final int PREVIEW_RUNNING_VALUEThe [OrgPolicyViolationsPreview][google.cloud.policysimulator.v1.OrgPolicyViolationsPreview] is currently being created.
PREVIEW_RUNNING = 2;- See Also:
-
PREVIEW_SUCCEEDED_VALUE
public static final int PREVIEW_SUCCEEDED_VALUEThe [OrgPolicyViolationsPreview][google.cloud.policysimulator.v1.OrgPolicyViolationsPreview] creation finished successfully.
PREVIEW_SUCCEEDED = 3;- See Also:
-
PREVIEW_FAILED_VALUE
public static final int PREVIEW_FAILED_VALUEThe [OrgPolicyViolationsPreview][google.cloud.policysimulator.v1.OrgPolicyViolationsPreview] creation failed with an error.
PREVIEW_FAILED = 4;- See Also:
-
-
Method Details
-
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
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
-
getNumber
public final int getNumber()- Specified by:
getNumberin interfacecom.google.protobuf.Internal.EnumLite- Specified by:
getNumberin interfacecom.google.protobuf.ProtocolMessageEnum
-
valueOf
Deprecated.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:
value- 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
-
forNumber
- Parameters:
value- The numeric wire value of the corresponding enum entry.- Returns:
- The enum associated with the given numeric wire value.
-
internalGetValueMap
-
getValueDescriptor
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()- Specified by:
getValueDescriptorin interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptorForType
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptor
public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() -
valueOf
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:
desc- 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
-