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 and Description |
|---|
ACCESS_CHANGE_TYPE_UNSPECIFIED
Default value.
|
ACCESS_GAINED
The principal did not have access under the current policies
(`NOT_GRANTED`), but will have access after the proposed changes
(`GRANTED`).
|
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`.
|
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`.
|
ACCESS_REVOKED
The principal had access under the current policies (`GRANTED`), but will
no longer have access after the proposed changes (`NOT_GRANTED`).
|
NO_CHANGE
The principal's access did not change.
|
UNKNOWN_CHANGE
The principal's access under both the current policies and the proposed
policies is `UNKNOWN`, but the unknown information differs between them.
|
UNRECOGNIZED |
| Modifier and Type | Field and Description |
|---|---|
static int |
ACCESS_CHANGE_TYPE_UNSPECIFIED_VALUE
Default value.
|
static 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`).
|
static 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`.
|
static 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`.
|
static 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`).
|
static int |
NO_CHANGE_VALUE
The principal's access did not change.
|
static 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.
|
| Modifier and Type | Method and Description |
|---|---|
static AccessStateDiff.AccessChangeType |
forNumber(int value) |
static com.google.protobuf.Descriptors.EnumDescriptor |
getDescriptor() |
com.google.protobuf.Descriptors.EnumDescriptor |
getDescriptorForType() |
int |
getNumber() |
com.google.protobuf.Descriptors.EnumValueDescriptor |
getValueDescriptor() |
static com.google.protobuf.Internal.EnumLiteMap<AccessStateDiff.AccessChangeType> |
internalGetValueMap() |
static AccessStateDiff.AccessChangeType |
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static AccessStateDiff.AccessChangeType |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static AccessStateDiff.AccessChangeType |
valueOf(String 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.
|
public static final AccessStateDiff.AccessChangeType ACCESS_CHANGE_TYPE_UNSPECIFIED
Default value. This value is unused.
ACCESS_CHANGE_TYPE_UNSPECIFIED = 0;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;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;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;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;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;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;public static final AccessStateDiff.AccessChangeType UNRECOGNIZED
public static final int ACCESS_CHANGE_TYPE_UNSPECIFIED_VALUE
Default value. This value is unused.
ACCESS_CHANGE_TYPE_UNSPECIFIED = 0;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;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;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;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;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;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;public static AccessStateDiff.AccessChangeType[] values()
for (AccessStateDiff.AccessChangeType c : AccessStateDiff.AccessChangeType.values()) System.out.println(c);
public static AccessStateDiff.AccessChangeType 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 nullpublic final int getNumber()
getNumber in interface com.google.protobuf.Internal.EnumLitegetNumber in interface com.google.protobuf.ProtocolMessageEnum@Deprecated public static AccessStateDiff.AccessChangeType valueOf(int value)
forNumber(int) instead.value - The numeric wire value of the corresponding enum entry.public static AccessStateDiff.AccessChangeType forNumber(int value)
value - The numeric wire value of the corresponding enum entry.public static com.google.protobuf.Internal.EnumLiteMap<AccessStateDiff.AccessChangeType> internalGetValueMap()
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
getValueDescriptor in interface com.google.protobuf.ProtocolMessageEnumpublic final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.ProtocolMessageEnumpublic static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
public static AccessStateDiff.AccessChangeType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Copyright © 2023 Google LLC. All rights reserved.