Class ReplayDiff (0.34.0)

public final class ReplayDiff extends GeneratedMessageV3 implements ReplayDiffOrBuilder

The difference between the results of evaluating an access tuple under the current (baseline) policies and under the proposed (simulated) policies. This difference explains how a principal's access could change if the proposed policies were applied.

Protobuf type google.cloud.policysimulator.v1.ReplayDiff

Implements

ReplayDiffOrBuilder

Static Fields

ACCESS_DIFF_FIELD_NUMBER

public static final int ACCESS_DIFF_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static ReplayDiff getDefaultInstance()
Returns
Type Description
ReplayDiff

getDescriptor()

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

newBuilder()

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

newBuilder(ReplayDiff prototype)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getAccessDiff()

public AccessStateDiff getAccessDiff()

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

The evaluation of the principal's access is reported in the AccessState field.

.google.cloud.policysimulator.v1.AccessStateDiff access_diff = 2;

Returns
Type Description
AccessStateDiff

The accessDiff.

getAccessDiffOrBuilder()

public AccessStateDiffOrBuilder getAccessDiffOrBuilder()

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

The evaluation of the principal's access is reported in the AccessState field.

.google.cloud.policysimulator.v1.AccessStateDiff access_diff = 2;

Returns
Type Description
AccessStateDiffOrBuilder

getDefaultInstanceForType()

public ReplayDiff getDefaultInstanceForType()
Returns
Type Description
ReplayDiff

getParserForType()

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

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

hasAccessDiff()

public boolean hasAccessDiff()

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

The evaluation of the principal's access is reported in the AccessState field.

.google.cloud.policysimulator.v1.AccessStateDiff access_diff = 2;

Returns
Type Description
boolean

Whether the accessDiff 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 ReplayDiff.Builder newBuilderForType()
Returns
Type Description
ReplayDiff.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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