Class AccessStateDiff (0.25.0)

public final class AccessStateDiff extends GeneratedMessageV3 implements AccessStateDiffOrBuilder

A summary and comparison of the principal's access under the current (baseline) policies and the proposed (simulated) policies for a single access tuple.

Protobuf type google.cloud.policysimulator.v1.AccessStateDiff

Static Fields

ACCESS_CHANGE_FIELD_NUMBER

public static final int ACCESS_CHANGE_FIELD_NUMBER
Field Value
Type Description
int

BASELINE_FIELD_NUMBER

public static final int BASELINE_FIELD_NUMBER
Field Value
Type Description
int

SIMULATED_FIELD_NUMBER

public static final int SIMULATED_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static AccessStateDiff getDefaultInstance()
Returns
Type Description
AccessStateDiff

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static AccessStateDiff.Builder newBuilder()
Returns
Type Description
AccessStateDiff.Builder

newBuilder(AccessStateDiff prototype)

public static AccessStateDiff.Builder newBuilder(AccessStateDiff prototype)
Parameter
Name Description
prototype AccessStateDiff
Returns
Type Description
AccessStateDiff.Builder

parseDelimitedFrom(InputStream input)

public static AccessStateDiff parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
AccessStateDiff
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static AccessStateDiff parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AccessStateDiff
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static AccessStateDiff parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
AccessStateDiff
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static AccessStateDiff parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AccessStateDiff
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static AccessStateDiff parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
AccessStateDiff
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static AccessStateDiff parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AccessStateDiff
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static AccessStateDiff parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
AccessStateDiff
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static AccessStateDiff parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AccessStateDiff
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static AccessStateDiff parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
AccessStateDiff
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static AccessStateDiff parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AccessStateDiff
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static AccessStateDiff parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
AccessStateDiff
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static AccessStateDiff parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AccessStateDiff
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<AccessStateDiff> parser()
Returns
Type Description
Parser<AccessStateDiff>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getAccessChange()

public AccessStateDiff.AccessChangeType getAccessChange()

How the principal's access, specified in the AccessState field, changed between the current (baseline) policies and proposed (simulated) policies.

.google.cloud.policysimulator.v1.AccessStateDiff.AccessChangeType access_change = 3;

Returns
Type Description
AccessStateDiff.AccessChangeType

The accessChange.

getAccessChangeValue()

public int getAccessChangeValue()

How the principal's access, specified in the AccessState field, changed between the current (baseline) policies and proposed (simulated) policies.

.google.cloud.policysimulator.v1.AccessStateDiff.AccessChangeType access_change = 3;

Returns
Type Description
int

The enum numeric value on the wire for accessChange.

getBaseline()

public ExplainedAccess getBaseline()

The results of evaluating the access tuple under the current (baseline) policies.

If the AccessState couldn't be fully evaluated, this field explains why.

.google.cloud.policysimulator.v1.ExplainedAccess baseline = 1;

Returns
Type Description
ExplainedAccess

The baseline.

getBaselineOrBuilder()

public ExplainedAccessOrBuilder getBaselineOrBuilder()

The results of evaluating the access tuple under the current (baseline) policies.

If the AccessState couldn't be fully evaluated, this field explains why.

.google.cloud.policysimulator.v1.ExplainedAccess baseline = 1;

Returns
Type Description
ExplainedAccessOrBuilder

getDefaultInstanceForType()

public AccessStateDiff getDefaultInstanceForType()
Returns
Type Description
AccessStateDiff

getParserForType()

public Parser<AccessStateDiff> getParserForType()
Returns
Type Description
Parser<AccessStateDiff>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getSimulated()

public ExplainedAccess getSimulated()

The results of evaluating the access tuple under the proposed (simulated) policies.

If the AccessState couldn't be fully evaluated, this field explains why.

.google.cloud.policysimulator.v1.ExplainedAccess simulated = 2;

Returns
Type Description
ExplainedAccess

The simulated.

getSimulatedOrBuilder()

public ExplainedAccessOrBuilder getSimulatedOrBuilder()

The results of evaluating the access tuple under the proposed (simulated) policies.

If the AccessState couldn't be fully evaluated, this field explains why.

.google.cloud.policysimulator.v1.ExplainedAccess simulated = 2;

Returns
Type Description
ExplainedAccessOrBuilder

hasBaseline()

public boolean hasBaseline()

The results of evaluating the access tuple under the current (baseline) policies.

If the AccessState couldn't be fully evaluated, this field explains why.

.google.cloud.policysimulator.v1.ExplainedAccess baseline = 1;

Returns
Type Description
boolean

Whether the baseline field is set.

hasSimulated()

public boolean hasSimulated()

The results of evaluating the access tuple under the proposed (simulated) policies.

If the AccessState couldn't be fully evaluated, this field explains why.

.google.cloud.policysimulator.v1.ExplainedAccess simulated = 2;

Returns
Type Description
boolean

Whether the simulated field is set.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public AccessStateDiff.Builder newBuilderForType()
Returns
Type Description
AccessStateDiff.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected AccessStateDiff.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
AccessStateDiff.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public AccessStateDiff.Builder toBuilder()
Returns
Type Description
AccessStateDiff.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException