Enum PreviewState

java.lang.Object
java.lang.Enum<PreviewState>
com.google.cloud.policysimulator.v1.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 Details

    • PREVIEW_STATE_UNSPECIFIED

      public static final PreviewState PREVIEW_STATE_UNSPECIFIED
       The state is unspecified.
       
      PREVIEW_STATE_UNSPECIFIED = 0;
    • PREVIEW_PENDING

      public static final PreviewState PREVIEW_PENDING
       The
       [OrgPolicyViolationsPreview][google.cloud.policysimulator.v1.OrgPolicyViolationsPreview]
       has not been created yet.
       
      PREVIEW_PENDING = 1;
    • PREVIEW_RUNNING

      public static final PreviewState PREVIEW_RUNNING
       The
       [OrgPolicyViolationsPreview][google.cloud.policysimulator.v1.OrgPolicyViolationsPreview]
       is currently being created.
       
      PREVIEW_RUNNING = 2;
    • PREVIEW_SUCCEEDED

      public static final PreviewState PREVIEW_SUCCEEDED
       The
       [OrgPolicyViolationsPreview][google.cloud.policysimulator.v1.OrgPolicyViolationsPreview]
       creation finished successfully.
       
      PREVIEW_SUCCEEDED = 3;
    • PREVIEW_FAILED

      public static final PreviewState PREVIEW_FAILED
       The
       [OrgPolicyViolationsPreview][google.cloud.policysimulator.v1.OrgPolicyViolationsPreview]
       creation failed with an error.
       
      PREVIEW_FAILED = 4;
    • UNRECOGNIZED

      public static final PreviewState UNRECOGNIZED
  • Field Details

    • PREVIEW_STATE_UNSPECIFIED_VALUE

      public static final int PREVIEW_STATE_UNSPECIFIED_VALUE
       The state is unspecified.
       
      PREVIEW_STATE_UNSPECIFIED = 0;
      See Also:
    • PREVIEW_PENDING_VALUE

      public static final int PREVIEW_PENDING_VALUE
       The
       [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_VALUE
       The
       [OrgPolicyViolationsPreview][google.cloud.policysimulator.v1.OrgPolicyViolationsPreview]
       is currently being created.
       
      PREVIEW_RUNNING = 2;
      See Also:
    • PREVIEW_SUCCEEDED_VALUE

      public static final int PREVIEW_SUCCEEDED_VALUE
       The
       [OrgPolicyViolationsPreview][google.cloud.policysimulator.v1.OrgPolicyViolationsPreview]
       creation finished successfully.
       
      PREVIEW_SUCCEEDED = 3;
      See Also:
    • PREVIEW_FAILED_VALUE

      public static final int PREVIEW_FAILED_VALUE
       The
       [OrgPolicyViolationsPreview][google.cloud.policysimulator.v1.OrgPolicyViolationsPreview]
       creation failed with an error.
       
      PREVIEW_FAILED = 4;
      See Also:
  • Method Details

    • values

      public static PreviewState[] 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

      public static PreviewState 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 name
      NullPointerException - if the argument is null
    • getNumber

      public final int getNumber()
      Specified by:
      getNumber in interface com.google.protobuf.Internal.EnumLite
      Specified by:
      getNumber in interface com.google.protobuf.ProtocolMessageEnum
    • valueOf

      @Deprecated public static PreviewState valueOf(int value)
      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 name
      NullPointerException - if the argument is null
    • forNumber

      public static PreviewState forNumber(int value)
      Parameters:
      value - The numeric wire value of the corresponding enum entry.
      Returns:
      The enum associated with the given numeric wire value.
    • internalGetValueMap

      public static com.google.protobuf.Internal.EnumLiteMap<PreviewState> internalGetValueMap()
    • getValueDescriptor

      public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
      Specified by:
      getValueDescriptor in interface com.google.protobuf.ProtocolMessageEnum
    • getDescriptorForType

      public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.ProtocolMessageEnum
    • getDescriptor

      public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
    • valueOf

      public static PreviewState valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
      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 name
      NullPointerException - if the argument is null