Class AccessStateDiff (0.10.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
TypeDescription
int

BASELINE_FIELD_NUMBER

public static final int BASELINE_FIELD_NUMBER
Field Value
TypeDescription
int

SIMULATED_FIELD_NUMBER

public static final int SIMULATED_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static AccessStateDiff getDefaultInstance()
Returns
TypeDescription
AccessStateDiff

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static AccessStateDiff.Builder newBuilder()
Returns
TypeDescription
AccessStateDiff.Builder

newBuilder(AccessStateDiff prototype)

public static AccessStateDiff.Builder newBuilder(AccessStateDiff prototype)
Parameter
NameDescription
prototypeAccessStateDiff
Returns
TypeDescription
AccessStateDiff.Builder

parseDelimitedFrom(InputStream input)

public static AccessStateDiff parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
AccessStateDiff
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static AccessStateDiff parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
AccessStateDiff
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static AccessStateDiff parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
AccessStateDiff
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static AccessStateDiff parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
AccessStateDiff
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static AccessStateDiff parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
AccessStateDiff
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static AccessStateDiff parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
AccessStateDiff
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static AccessStateDiff parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
AccessStateDiff
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static AccessStateDiff parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
AccessStateDiff
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static AccessStateDiff parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
AccessStateDiff
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static AccessStateDiff parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
AccessStateDiff
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static AccessStateDiff parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
AccessStateDiff
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static AccessStateDiff parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
AccessStateDiff
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<AccessStateDiff> parser()
Returns
TypeDescription
Parser<AccessStateDiff>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
ExplainedAccessOrBuilder

getDefaultInstanceForType()

public AccessStateDiff getDefaultInstanceForType()
Returns
TypeDescription
AccessStateDiff

getParserForType()

public Parser<AccessStateDiff> getParserForType()
Returns
TypeDescription
Parser<AccessStateDiff>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the simulated field is set.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public AccessStateDiff.Builder newBuilderForType()
Returns
TypeDescription
AccessStateDiff.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected AccessStateDiff.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
AccessStateDiff.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public AccessStateDiff.Builder toBuilder()
Returns
TypeDescription
AccessStateDiff.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException