Class ReplayResult.Builder (0.3.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ReplayResult.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
ReplayResult.Builder
Overrides

build()

public ReplayResult build()
Returns
TypeDescription
ReplayResult

buildPartial()

public ReplayResult buildPartial()
Returns
TypeDescription
ReplayResult

clear()

public ReplayResult.Builder clear()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
ReplayResult.Builder

clearField(Descriptors.FieldDescriptor field)

public ReplayResult.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ReplayResult.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public ReplayResult.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
ReplayResult.Builder

This builder for chaining.

clearResult()

public ReplayResult.Builder clearResult()
Returns
TypeDescription
ReplayResult.Builder

clone()

public ReplayResult.Builder clone()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
AccessTupleOrBuilder

getDefaultInstanceForType()

public ReplayResult getDefaultInstanceForType()
Returns
TypeDescription
ReplayResult

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
String

The parent.

getParentBytes()

public ByteString getParentBytes()

The Replay that the access tuple was included in.

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

Returns
TypeDescription
ByteString

The bytes for parent.

getResultCase()

public ReplayResult.ResultCase getResultCase()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the lastSeenDate field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
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
NameDescription
valueAccessTuple
Returns
TypeDescription
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
NameDescription
valueReplayDiff
Returns
TypeDescription
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
NameDescription
valuecom.google.rpc.Status
Returns
TypeDescription
ReplayResult.Builder

mergeFrom(ReplayResult other)

public ReplayResult.Builder mergeFrom(ReplayResult other)
Parameter
NameDescription
otherReplayResult
Returns
TypeDescription
ReplayResult.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ReplayResult.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ReplayResult.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public ReplayResult.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
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
NameDescription
valuecom.google.type.Date
Returns
TypeDescription
ReplayResult.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ReplayResult.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueAccessTuple
Returns
TypeDescription
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
NameDescription
builderForValueAccessTuple.Builder
Returns
TypeDescription
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
NameDescription
valueReplayDiff
Returns
TypeDescription
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
NameDescription
builderForValueReplayDiff.Builder
Returns
TypeDescription
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
NameDescription
valuecom.google.rpc.Status
Returns
TypeDescription
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
NameDescription
builderForValuecom.google.rpc.Status.Builder
Returns
TypeDescription
ReplayResult.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public ReplayResult.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valuecom.google.type.Date
Returns
TypeDescription
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
NameDescription
builderForValuecom.google.type.Date.Builder
Returns
TypeDescription
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
NameDescription
valueString

The name to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
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
NameDescription
valueString

The parent to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for parent to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
ReplayResult.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final ReplayResult.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ReplayResult.Builder
Overrides