Class ReplayDiff (0.2.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
TypeDescription
int

Static Methods

getDefaultInstance()

public static ReplayDiff getDefaultInstance()
Returns
TypeDescription
ReplayDiff

getDescriptor()

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

newBuilder()

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

newBuilder(ReplayDiff prototype)

public static ReplayDiff.Builder newBuilder(ReplayDiff prototype)
Parameter
NameDescription
prototypeReplayDiff
Returns
TypeDescription
ReplayDiff.Builder

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getDefaultInstanceForType()

public ReplayDiff getDefaultInstanceForType()
Returns
TypeDescription
ReplayDiff

getParserForType()

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

getSerializedSize()

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

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

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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