Enum AccessStateDiff.AccessChangeType

java.lang.Object
java.lang.Enum<AccessStateDiff.AccessChangeType>
com.google.cloud.policysimulator.v1.AccessStateDiff.AccessChangeType
All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite, com.google.protobuf.ProtocolMessageEnum, Serializable, Comparable<AccessStateDiff.AccessChangeType>
Enclosing class:
AccessStateDiff

public static enum AccessStateDiff.AccessChangeType extends Enum<AccessStateDiff.AccessChangeType> implements com.google.protobuf.ProtocolMessageEnum
 How the principal's access, specified in the AccessState field, changed
 between the current (baseline) policies and proposed (simulated) policies.
 
Protobuf enum google.cloud.policysimulator.v1.AccessStateDiff.AccessChangeType
  • Enum Constant Details

    • ACCESS_CHANGE_TYPE_UNSPECIFIED

      public static final AccessStateDiff.AccessChangeType ACCESS_CHANGE_TYPE_UNSPECIFIED
       Default value. This value is unused.
       
      ACCESS_CHANGE_TYPE_UNSPECIFIED = 0;
    • NO_CHANGE

      public static final AccessStateDiff.AccessChangeType NO_CHANGE
       The principal's access did not change.
       This includes the case where both baseline and simulated are UNKNOWN,
       but the unknown information is equivalent.
       
      NO_CHANGE = 1;
    • UNKNOWN_CHANGE

      public static final AccessStateDiff.AccessChangeType UNKNOWN_CHANGE
       The principal's access under both the current policies and the proposed
       policies is `UNKNOWN`, but the unknown information differs between them.
       
      UNKNOWN_CHANGE = 2;
    • ACCESS_REVOKED

      public static final AccessStateDiff.AccessChangeType ACCESS_REVOKED
       The principal had access under the current policies (`GRANTED`), but will
       no longer have access after the proposed changes (`NOT_GRANTED`).
       
      ACCESS_REVOKED = 3;
    • ACCESS_GAINED

      public static final AccessStateDiff.AccessChangeType ACCESS_GAINED
       The principal did not have access under the current policies
       (`NOT_GRANTED`), but will have access after the proposed changes
       (`GRANTED`).
       
      ACCESS_GAINED = 4;
    • ACCESS_MAYBE_REVOKED

      public static final AccessStateDiff.AccessChangeType ACCESS_MAYBE_REVOKED
       This result can occur for the following reasons:
      
       * The principal had access under the current policies (`GRANTED`), but
       their access after the proposed changes is `UNKNOWN`.
      
       * The principal's access under the current policies is `UNKNOWN`, but
       they
       will not have access after the proposed changes (`NOT_GRANTED`).
       
      ACCESS_MAYBE_REVOKED = 5;
    • ACCESS_MAYBE_GAINED

      public static final AccessStateDiff.AccessChangeType ACCESS_MAYBE_GAINED
       This result can occur for the following reasons:
      
       * The principal did not have access under the current policies
       (`NOT_GRANTED`), but their access after the proposed changes is
       `UNKNOWN`.
      
       * The principal's access under the current policies is `UNKNOWN`, but
       they will have access after the proposed changes (`GRANTED`).
       
      ACCESS_MAYBE_GAINED = 6;
    • UNRECOGNIZED

      public static final AccessStateDiff.AccessChangeType UNRECOGNIZED
  • Field Details

    • ACCESS_CHANGE_TYPE_UNSPECIFIED_VALUE

      public static final int ACCESS_CHANGE_TYPE_UNSPECIFIED_VALUE
       Default value. This value is unused.
       
      ACCESS_CHANGE_TYPE_UNSPECIFIED = 0;
      See Also:
    • NO_CHANGE_VALUE

      public static final int NO_CHANGE_VALUE
       The principal's access did not change.
       This includes the case where both baseline and simulated are UNKNOWN,
       but the unknown information is equivalent.
       
      NO_CHANGE = 1;
      See Also:
    • UNKNOWN_CHANGE_VALUE

      public static final int UNKNOWN_CHANGE_VALUE
       The principal's access under both the current policies and the proposed
       policies is `UNKNOWN`, but the unknown information differs between them.
       
      UNKNOWN_CHANGE = 2;
      See Also:
    • ACCESS_REVOKED_VALUE

      public static final int ACCESS_REVOKED_VALUE
       The principal had access under the current policies (`GRANTED`), but will
       no longer have access after the proposed changes (`NOT_GRANTED`).
       
      ACCESS_REVOKED = 3;
      See Also:
    • ACCESS_GAINED_VALUE

      public static final int ACCESS_GAINED_VALUE
       The principal did not have access under the current policies
       (`NOT_GRANTED`), but will have access after the proposed changes
       (`GRANTED`).
       
      ACCESS_GAINED = 4;
      See Also:
    • ACCESS_MAYBE_REVOKED_VALUE

      public static final int ACCESS_MAYBE_REVOKED_VALUE
       This result can occur for the following reasons:
      
       * The principal had access under the current policies (`GRANTED`), but
       their access after the proposed changes is `UNKNOWN`.
      
       * The principal's access under the current policies is `UNKNOWN`, but
       they
       will not have access after the proposed changes (`NOT_GRANTED`).
       
      ACCESS_MAYBE_REVOKED = 5;
      See Also:
    • ACCESS_MAYBE_GAINED_VALUE

      public static final int ACCESS_MAYBE_GAINED_VALUE
       This result can occur for the following reasons:
      
       * The principal did not have access under the current policies
       (`NOT_GRANTED`), but their access after the proposed changes is
       `UNKNOWN`.
      
       * The principal's access under the current policies is `UNKNOWN`, but
       they will have access after the proposed changes (`GRANTED`).
       
      ACCESS_MAYBE_GAINED = 6;
      See Also:
  • Method Details

    • values

      public static AccessStateDiff.AccessChangeType[] 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 AccessStateDiff.AccessChangeType 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 AccessStateDiff.AccessChangeType 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 AccessStateDiff.AccessChangeType 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<AccessStateDiff.AccessChangeType> 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 AccessStateDiff.AccessChangeType 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