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 Summary
Enum ConstantsEnum ConstantDescriptionDefault value.The principal did not have access under the current policies (`NOT_GRANTED`), but will have access after the proposed changes (`GRANTED`).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`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 had access under the current policies (`GRANTED`), but will no longer have access after the proposed changes (`NOT_GRANTED`).The principal's access did not change.The principal's access under both the current policies and the proposed policies is `UNKNOWN`, but the unknown information differs between them. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intDefault value.static final intThe principal did not have access under the current policies (`NOT_GRANTED`), but will have access after the proposed changes (`GRANTED`).static final intThis 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`static final intThis 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`static final intThe principal had access under the current policies (`GRANTED`), but will no longer have access after the proposed changes (`NOT_GRANTED`).static final intThe principal's access did not change.static final intThe principal's access under both the current policies and the proposed policies is `UNKNOWN`, but the unknown information differs between them. -
Method Summary
Modifier and TypeMethodDescriptionforNumber(int value) static com.google.protobuf.Descriptors.EnumDescriptorfinal com.google.protobuf.Descriptors.EnumDescriptorfinal intfinal com.google.protobuf.Descriptors.EnumValueDescriptorstatic com.google.protobuf.Internal.EnumLiteMap<AccessStateDiff.AccessChangeType>valueOf(int value) Deprecated.valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) Returns the enum constant of this type with the specified name.Returns the enum constant of this type with the specified name.static AccessStateDiff.AccessChangeType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
ACCESS_CHANGE_TYPE_UNSPECIFIED
Default value. This value is unused.
ACCESS_CHANGE_TYPE_UNSPECIFIED = 0; -
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
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
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
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
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
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
-
-
Field Details
-
ACCESS_CHANGE_TYPE_UNSPECIFIED_VALUE
public static final int ACCESS_CHANGE_TYPE_UNSPECIFIED_VALUEDefault value. This value is unused.
ACCESS_CHANGE_TYPE_UNSPECIFIED = 0;- See Also:
-
NO_CHANGE_VALUE
public static final int NO_CHANGE_VALUEThe 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_VALUEThe 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_VALUEThe 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_VALUEThe 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_VALUEThis 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_VALUEThis 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
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
public static com.google.protobuf.Internal.EnumLiteMap<AccessStateDiff.AccessChangeType> 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
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 nameNullPointerException- if the argument is null
-