Class ReplayResult.Builder (0.21.0)

public static final class ReplayResult.Builder extends GeneratedMessageV3.Builder<ReplayResult.Builder> implements ReplayResultOrBuilder

The result of replaying a single access tuple against a simulated state.

Protobuf type google.cloud.policysimulator.v1.ReplayResult

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ReplayResult.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ReplayResult.Builder
Overrides

build()

public ReplayResult build()
Returns
Type Description
ReplayResult

buildPartial()

public ReplayResult buildPartial()
Returns
Type Description
ReplayResult

clear()

public ReplayResult.Builder clear()
Returns
Type Description
ReplayResult.Builder
Overrides

clearAccessTuple()

public ReplayResult.Builder clearAccessTuple()

The access tuple that was replayed. This field includes information about the principal, resource, and permission that were involved in the access attempt.

.google.cloud.policysimulator.v1.AccessTuple access_tuple = 3;

Returns
Type Description
ReplayResult.Builder

clearDiff()

public ReplayResult.Builder clearDiff()

The difference between the principal's access under the current (baseline) policies and the principal's access under the proposed (simulated) policies.

This field is only included for access tuples that were successfully replayed and had different results under the current policies and the proposed policies.

.google.cloud.policysimulator.v1.ReplayDiff diff = 5;

Returns
Type Description
ReplayResult.Builder

clearError()

public ReplayResult.Builder clearError()

The error that caused the access tuple replay to fail.

This field is only included for access tuples that were not replayed successfully.

.google.rpc.Status error = 6;

Returns
Type Description
ReplayResult.Builder

clearField(Descriptors.FieldDescriptor field)

public ReplayResult.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
ReplayResult.Builder
Overrides

clearLastSeenDate()

public ReplayResult.Builder clearLastSeenDate()

The latest date this access tuple was seen in the logs.

.google.type.Date last_seen_date = 4;

Returns
Type Description
ReplayResult.Builder

clearName()

public ReplayResult.Builder clearName()

The resource name of the ReplayResult, in the following format:

{projects|folders|organizations}/{resource-id}/locations/global/replays/{replay-id}/results/{replay-result-id}, where {resource-id} is the ID of the project, folder, or organization that owns the Replay.

Example: projects/my-example-project/locations/global/replays/506a5f7f-38ce-4d7d-8e03-479ce1833c36/results/1234

string name = 1;

Returns
Type Description
ReplayResult.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public ReplayResult.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
ReplayResult.Builder
Overrides

clearParent()

public ReplayResult.Builder clearParent()

The Replay that the access tuple was included in.

string parent = 2 [(.google.api.resource_reference) = { ... }

Returns
Type Description
ReplayResult.Builder

This builder for chaining.

clearResult()

public ReplayResult.Builder clearResult()
Returns
Type Description
ReplayResult.Builder

clone()

public ReplayResult.Builder clone()
Returns
Type Description
ReplayResult.Builder
Overrides

getAccessTuple()

public AccessTuple getAccessTuple()

The access tuple that was replayed. This field includes information about the principal, resource, and permission that were involved in the access attempt.

.google.cloud.policysimulator.v1.AccessTuple access_tuple = 3;

Returns
Type Description
AccessTuple

The accessTuple.

getAccessTupleBuilder()

public AccessTuple.Builder getAccessTupleBuilder()

The access tuple that was replayed. This field includes information about the principal, resource, and permission that were involved in the access attempt.

.google.cloud.policysimulator.v1.AccessTuple access_tuple = 3;

Returns
Type Description
AccessTuple.Builder

getAccessTupleOrBuilder()

public AccessTupleOrBuilder getAccessTupleOrBuilder()

The access tuple that was replayed. This field includes information about the principal, resource, and permission that were involved in the access attempt.

.google.cloud.policysimulator.v1.AccessTuple access_tuple = 3;

Returns
Type Description
AccessTupleOrBuilder

getDefaultInstanceForType()

public ReplayResult getDefaultInstanceForType()
Returns
Type Description
ReplayResult

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getDiff()

public ReplayDiff getDiff()

The difference between the principal's access under the current (baseline) policies and the principal's access under the proposed (simulated) policies.

This field is only included for access tuples that were successfully replayed and had different results under the current policies and the proposed policies.

.google.cloud.policysimulator.v1.ReplayDiff diff = 5;

Returns
Type Description
ReplayDiff

The diff.

getDiffBuilder()

public ReplayDiff.Builder getDiffBuilder()

The difference between the principal's access under the current (baseline) policies and the principal's access under the proposed (simulated) policies.

This field is only included for access tuples that were successfully replayed and had different results under the current policies and the proposed policies.

.google.cloud.policysimulator.v1.ReplayDiff diff = 5;

Returns
Type Description
ReplayDiff.Builder

getDiffOrBuilder()

public ReplayDiffOrBuilder getDiffOrBuilder()

The difference between the principal's access under the current (baseline) policies and the principal's access under the proposed (simulated) policies.

This field is only included for access tuples that were successfully replayed and had different results under the current policies and the proposed policies.

.google.cloud.policysimulator.v1.ReplayDiff diff = 5;

Returns
Type Description
ReplayDiffOrBuilder

getError()

public Status getError()

The error that caused the access tuple replay to fail.

This field is only included for access tuples that were not replayed successfully.

.google.rpc.Status error = 6;

Returns
Type Description
com.google.rpc.Status

The error.

getErrorBuilder()

public Status.Builder getErrorBuilder()

The error that caused the access tuple replay to fail.

This field is only included for access tuples that were not replayed successfully.

.google.rpc.Status error = 6;

Returns
Type Description
com.google.rpc.Status.Builder

getErrorOrBuilder()

public StatusOrBuilder getErrorOrBuilder()

The error that caused the access tuple replay to fail.

This field is only included for access tuples that were not replayed successfully.

.google.rpc.Status error = 6;

Returns
Type Description
com.google.rpc.StatusOrBuilder

getLastSeenDate()

public Date getLastSeenDate()

The latest date this access tuple was seen in the logs.

.google.type.Date last_seen_date = 4;

Returns
Type Description
com.google.type.Date

The lastSeenDate.

getLastSeenDateBuilder()

public Date.Builder getLastSeenDateBuilder()

The latest date this access tuple was seen in the logs.

.google.type.Date last_seen_date = 4;

Returns
Type Description
com.google.type.Date.Builder

getLastSeenDateOrBuilder()

public DateOrBuilder getLastSeenDateOrBuilder()

The latest date this access tuple was seen in the logs.

.google.type.Date last_seen_date = 4;

Returns
Type Description
com.google.type.DateOrBuilder

getName()

public String getName()

The resource name of the ReplayResult, in the following format:

{projects|folders|organizations}/{resource-id}/locations/global/replays/{replay-id}/results/{replay-result-id}, where {resource-id} is the ID of the project, folder, or organization that owns the Replay.

Example: projects/my-example-project/locations/global/replays/506a5f7f-38ce-4d7d-8e03-479ce1833c36/results/1234

string name = 1;

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

The resource name of the ReplayResult, in the following format:

{projects|folders|organizations}/{resource-id}/locations/global/replays/{replay-id}/results/{replay-result-id}, where {resource-id} is the ID of the project, folder, or organization that owns the Replay.

Example: projects/my-example-project/locations/global/replays/506a5f7f-38ce-4d7d-8e03-479ce1833c36/results/1234

string name = 1;

Returns
Type Description
ByteString

The bytes for name.

getParent()

public String getParent()

The Replay that the access tuple was included in.

string parent = 2 [(.google.api.resource_reference) = { ... }

Returns
Type Description
String

The parent.

getParentBytes()

public ByteString getParentBytes()

The Replay that the access tuple was included in.

string parent = 2 [(.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for parent.

getResultCase()

public ReplayResult.ResultCase getResultCase()
Returns
Type Description
ReplayResult.ResultCase

hasAccessTuple()

public boolean hasAccessTuple()

The access tuple that was replayed. This field includes information about the principal, resource, and permission that were involved in the access attempt.

.google.cloud.policysimulator.v1.AccessTuple access_tuple = 3;

Returns
Type Description
boolean

Whether the accessTuple field is set.

hasDiff()

public boolean hasDiff()

The difference between the principal's access under the current (baseline) policies and the principal's access under the proposed (simulated) policies.

This field is only included for access tuples that were successfully replayed and had different results under the current policies and the proposed policies.

.google.cloud.policysimulator.v1.ReplayDiff diff = 5;

Returns
Type Description
boolean

Whether the diff field is set.

hasError()

public boolean hasError()

The error that caused the access tuple replay to fail.

This field is only included for access tuples that were not replayed successfully.

.google.rpc.Status error = 6;

Returns
Type Description
boolean

Whether the error field is set.

hasLastSeenDate()

public boolean hasLastSeenDate()

The latest date this access tuple was seen in the logs.

.google.type.Date last_seen_date = 4;

Returns
Type Description
boolean

Whether the lastSeenDate field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeAccessTuple(AccessTuple value)

public ReplayResult.Builder mergeAccessTuple(AccessTuple value)

The access tuple that was replayed. This field includes information about the principal, resource, and permission that were involved in the access attempt.

.google.cloud.policysimulator.v1.AccessTuple access_tuple = 3;

Parameter
Name Description
value AccessTuple
Returns
Type Description
ReplayResult.Builder

mergeDiff(ReplayDiff value)

public ReplayResult.Builder mergeDiff(ReplayDiff value)

The difference between the principal's access under the current (baseline) policies and the principal's access under the proposed (simulated) policies.

This field is only included for access tuples that were successfully replayed and had different results under the current policies and the proposed policies.

.google.cloud.policysimulator.v1.ReplayDiff diff = 5;

Parameter
Name Description
value ReplayDiff
Returns
Type Description
ReplayResult.Builder

mergeError(Status value)

public ReplayResult.Builder mergeError(Status value)

The error that caused the access tuple replay to fail.

This field is only included for access tuples that were not replayed successfully.

.google.rpc.Status error = 6;

Parameter
Name Description
value com.google.rpc.Status
Returns
Type Description
ReplayResult.Builder

mergeFrom(ReplayResult other)

public ReplayResult.Builder mergeFrom(ReplayResult other)
Parameter
Name Description
other ReplayResult
Returns
Type Description
ReplayResult.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ReplayResult.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ReplayResult.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public ReplayResult.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
ReplayResult.Builder
Overrides

mergeLastSeenDate(Date value)

public ReplayResult.Builder mergeLastSeenDate(Date value)

The latest date this access tuple was seen in the logs.

.google.type.Date last_seen_date = 4;

Parameter
Name Description
value com.google.type.Date
Returns
Type Description
ReplayResult.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ReplayResult.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ReplayResult.Builder
Overrides

setAccessTuple(AccessTuple value)

public ReplayResult.Builder setAccessTuple(AccessTuple value)

The access tuple that was replayed. This field includes information about the principal, resource, and permission that were involved in the access attempt.

.google.cloud.policysimulator.v1.AccessTuple access_tuple = 3;

Parameter
Name Description
value AccessTuple
Returns
Type Description
ReplayResult.Builder

setAccessTuple(AccessTuple.Builder builderForValue)

public ReplayResult.Builder setAccessTuple(AccessTuple.Builder builderForValue)

The access tuple that was replayed. This field includes information about the principal, resource, and permission that were involved in the access attempt.

.google.cloud.policysimulator.v1.AccessTuple access_tuple = 3;

Parameter
Name Description
builderForValue AccessTuple.Builder
Returns
Type Description
ReplayResult.Builder

setDiff(ReplayDiff value)

public ReplayResult.Builder setDiff(ReplayDiff value)

The difference between the principal's access under the current (baseline) policies and the principal's access under the proposed (simulated) policies.

This field is only included for access tuples that were successfully replayed and had different results under the current policies and the proposed policies.

.google.cloud.policysimulator.v1.ReplayDiff diff = 5;

Parameter
Name Description
value ReplayDiff
Returns
Type Description
ReplayResult.Builder

setDiff(ReplayDiff.Builder builderForValue)

public ReplayResult.Builder setDiff(ReplayDiff.Builder builderForValue)

The difference between the principal's access under the current (baseline) policies and the principal's access under the proposed (simulated) policies.

This field is only included for access tuples that were successfully replayed and had different results under the current policies and the proposed policies.

.google.cloud.policysimulator.v1.ReplayDiff diff = 5;

Parameter
Name Description
builderForValue ReplayDiff.Builder
Returns
Type Description
ReplayResult.Builder

setError(Status value)

public ReplayResult.Builder setError(Status value)

The error that caused the access tuple replay to fail.

This field is only included for access tuples that were not replayed successfully.

.google.rpc.Status error = 6;

Parameter
Name Description
value com.google.rpc.Status
Returns
Type Description
ReplayResult.Builder

setError(Status.Builder builderForValue)

public ReplayResult.Builder setError(Status.Builder builderForValue)

The error that caused the access tuple replay to fail.

This field is only included for access tuples that were not replayed successfully.

.google.rpc.Status error = 6;

Parameter
Name Description
builderForValue com.google.rpc.Status.Builder
Returns
Type Description
ReplayResult.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public ReplayResult.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ReplayResult.Builder
Overrides

setLastSeenDate(Date value)

public ReplayResult.Builder setLastSeenDate(Date value)

The latest date this access tuple was seen in the logs.

.google.type.Date last_seen_date = 4;

Parameter
Name Description
value com.google.type.Date
Returns
Type Description
ReplayResult.Builder

setLastSeenDate(Date.Builder builderForValue)

public ReplayResult.Builder setLastSeenDate(Date.Builder builderForValue)

The latest date this access tuple was seen in the logs.

.google.type.Date last_seen_date = 4;

Parameter
Name Description
builderForValue com.google.type.Date.Builder
Returns
Type Description
ReplayResult.Builder

setName(String value)

public ReplayResult.Builder setName(String value)

The resource name of the ReplayResult, in the following format:

{projects|folders|organizations}/{resource-id}/locations/global/replays/{replay-id}/results/{replay-result-id}, where {resource-id} is the ID of the project, folder, or organization that owns the Replay.

Example: projects/my-example-project/locations/global/replays/506a5f7f-38ce-4d7d-8e03-479ce1833c36/results/1234

string name = 1;

Parameter
Name Description
value String

The name to set.

Returns
Type Description
ReplayResult.Builder

This builder for chaining.

setNameBytes(ByteString value)

public ReplayResult.Builder setNameBytes(ByteString value)

The resource name of the ReplayResult, in the following format:

{projects|folders|organizations}/{resource-id}/locations/global/replays/{replay-id}/results/{replay-result-id}, where {resource-id} is the ID of the project, folder, or organization that owns the Replay.

Example: projects/my-example-project/locations/global/replays/506a5f7f-38ce-4d7d-8e03-479ce1833c36/results/1234

string name = 1;

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
ReplayResult.Builder

This builder for chaining.

setParent(String value)

public ReplayResult.Builder setParent(String value)

The Replay that the access tuple was included in.

string parent = 2 [(.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The parent to set.

Returns
Type Description
ReplayResult.Builder

This builder for chaining.

setParentBytes(ByteString value)

public ReplayResult.Builder setParentBytes(ByteString value)

The Replay that the access tuple was included in.

string parent = 2 [(.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for parent to set.

Returns
Type Description
ReplayResult.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public ReplayResult.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
ReplayResult.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final ReplayResult.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ReplayResult.Builder
Overrides