Class ReplayResult.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<ReplayResult.Builder>
com.google.cloud.policysimulator.v1.ReplayResult.Builder
- All Implemented Interfaces:
ReplayResultOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- ReplayResult
public static final class ReplayResult.Builder
extends com.google.protobuf.GeneratedMessage.Builder<ReplayResult.Builder>
implements ReplayResultOrBuilder
The result of replaying a single access tuple against a simulated state.Protobuf type
google.cloud.policysimulator.v1.ReplayResult-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()The access tuple that was replayed.The difference between the principal's access under the current (baseline) policies and the principal's access under the proposed (simulated) policies.The error that caused the access tuple replay to fail.The latest date this access tuple was seen in the logs.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][google.cloud.policysimulator.v1.Replay].The [Replay][google.cloud.policysimulator.v1.Replay] that the access tuple was included in.The access tuple that was replayed.The access tuple that was replayed.The access tuple that was replayed.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetDiff()The difference between the principal's access under the current (baseline) policies and the principal's access under the proposed (simulated) policies.The difference between the principal's access under the current (baseline) policies and the principal's access under the proposed (simulated) policies.The difference between the principal's access under the current (baseline) policies and the principal's access under the proposed (simulated) policies.getError()The error that caused the access tuple replay to fail.The error that caused the access tuple replay to fail.The error that caused the access tuple replay to fail.The latest date this access tuple was seen in the logs.The latest date this access tuple was seen in the logs.The latest date this access tuple was seen in the logs.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][google.cloud.policysimulator.v1.Replay].com.google.protobuf.ByteStringThe 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][google.cloud.policysimulator.v1.Replay].The [Replay][google.cloud.policysimulator.v1.Replay] that the access tuple was included in.com.google.protobuf.ByteStringThe [Replay][google.cloud.policysimulator.v1.Replay] that the access tuple was included in.booleanThe access tuple that was replayed.booleanhasDiff()The difference between the principal's access under the current (baseline) policies and the principal's access under the proposed (simulated) policies.booleanhasError()The error that caused the access tuple replay to fail.booleanThe latest date this access tuple was seen in the logs.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeAccessTuple(AccessTuple value) The access tuple that was replayed.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.mergeError(Status value) The error that caused the access tuple replay to fail.mergeFrom(ReplayResult other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeLastSeenDate(Date value) The latest date this access tuple was seen in the logs.setAccessTuple(AccessTuple value) The access tuple that was replayed.setAccessTuple(AccessTuple.Builder builderForValue) The access tuple that was replayed.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.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.The error that caused the access tuple replay to fail.setError(Status.Builder builderForValue) The error that caused the access tuple replay to fail.setLastSeenDate(Date value) The latest date this access tuple was seen in the logs.setLastSeenDate(Date.Builder builderForValue) The latest date this access tuple was seen in the logs.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][google.cloud.policysimulator.v1.Replay].setNameBytes(com.google.protobuf.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][google.cloud.policysimulator.v1.Replay].The [Replay][google.cloud.policysimulator.v1.Replay] that the access tuple was included in.setParentBytes(com.google.protobuf.ByteString value) The [Replay][google.cloud.policysimulator.v1.Replay] that the access tuple was included in.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<ReplayResult.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<ReplayResult.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<ReplayResult.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ReplayResult.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<ReplayResult.Builder>
-
mergeFrom
public ReplayResult.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ReplayResult.Builder>- Throws:
IOException
-
getResultCase
- Specified by:
getResultCasein interfaceReplayResultOrBuilder
-
clearResult
-
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;- Specified by:
hasDiffin interfaceReplayResultOrBuilder- Returns:
- Whether the diff field is set.
-
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;- Specified by:
getDiffin interfaceReplayResultOrBuilder- Returns:
- The diff.
-
setDiff
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; -
setDiff
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; -
mergeDiff
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; -
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; -
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; -
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;- Specified by:
getDiffOrBuilderin interfaceReplayResultOrBuilder
-
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;- Specified by:
hasErrorin interfaceReplayResultOrBuilder- Returns:
- Whether the error field is set.
-
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;- Specified by:
getErrorin interfaceReplayResultOrBuilder- Returns:
- The error.
-
setError
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; -
setError
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; -
mergeError
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; -
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; -
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; -
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;- Specified by:
getErrorOrBuilderin interfaceReplayResultOrBuilder
-
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][google.cloud.policysimulator.v1.Replay]. Example: `projects/my-example-project/locations/global/replays/506a5f7f-38ce-4d7d-8e03-479ce1833c36/results/1234`string name = 1;- Specified by:
getNamein interfaceReplayResultOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.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][google.cloud.policysimulator.v1.Replay]. Example: `projects/my-example-project/locations/global/replays/506a5f7f-38ce-4d7d-8e03-479ce1833c36/results/1234`string name = 1;- Specified by:
getNameBytesin interfaceReplayResultOrBuilder- Returns:
- The bytes for name.
-
setName
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][google.cloud.policysimulator.v1.Replay]. Example: `projects/my-example-project/locations/global/replays/506a5f7f-38ce-4d7d-8e03-479ce1833c36/results/1234`string name = 1;- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
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][google.cloud.policysimulator.v1.Replay]. Example: `projects/my-example-project/locations/global/replays/506a5f7f-38ce-4d7d-8e03-479ce1833c36/results/1234`string name = 1;- Returns:
- This builder for chaining.
-
setNameBytes
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][google.cloud.policysimulator.v1.Replay]. Example: `projects/my-example-project/locations/global/replays/506a5f7f-38ce-4d7d-8e03-479ce1833c36/results/1234`string name = 1;- Parameters:
value- The bytes for name to set.- Returns:
- This builder for chaining.
-
getParent
The [Replay][google.cloud.policysimulator.v1.Replay] that the access tuple was included in.
string parent = 2 [(.google.api.resource_reference) = { ... }- Specified by:
getParentin interfaceReplayResultOrBuilder- Returns:
- The parent.
-
getParentBytes
public com.google.protobuf.ByteString getParentBytes()The [Replay][google.cloud.policysimulator.v1.Replay] that the access tuple was included in.
string parent = 2 [(.google.api.resource_reference) = { ... }- Specified by:
getParentBytesin interfaceReplayResultOrBuilder- Returns:
- The bytes for parent.
-
setParent
The [Replay][google.cloud.policysimulator.v1.Replay] that the access tuple was included in.
string parent = 2 [(.google.api.resource_reference) = { ... }- Parameters:
value- The parent to set.- Returns:
- This builder for chaining.
-
clearParent
The [Replay][google.cloud.policysimulator.v1.Replay] that the access tuple was included in.
string parent = 2 [(.google.api.resource_reference) = { ... }- Returns:
- This builder for chaining.
-
setParentBytes
The [Replay][google.cloud.policysimulator.v1.Replay] that the access tuple was included in.
string parent = 2 [(.google.api.resource_reference) = { ... }- Parameters:
value- The bytes for parent to set.- Returns:
- This builder for chaining.
-
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;- Specified by:
hasAccessTuplein interfaceReplayResultOrBuilder- Returns:
- Whether the accessTuple field is set.
-
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;- Specified by:
getAccessTuplein interfaceReplayResultOrBuilder- Returns:
- The accessTuple.
-
setAccessTuple
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; -
setAccessTuple
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; -
mergeAccessTuple
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; -
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; -
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; -
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;- Specified by:
getAccessTupleOrBuilderin interfaceReplayResultOrBuilder
-
hasLastSeenDate
public boolean hasLastSeenDate()The latest date this access tuple was seen in the logs.
.google.type.Date last_seen_date = 4;- Specified by:
hasLastSeenDatein interfaceReplayResultOrBuilder- Returns:
- Whether the lastSeenDate field is set.
-
getLastSeenDate
The latest date this access tuple was seen in the logs.
.google.type.Date last_seen_date = 4;- Specified by:
getLastSeenDatein interfaceReplayResultOrBuilder- Returns:
- The lastSeenDate.
-
setLastSeenDate
The latest date this access tuple was seen in the logs.
.google.type.Date last_seen_date = 4; -
setLastSeenDate
The latest date this access tuple was seen in the logs.
.google.type.Date last_seen_date = 4; -
mergeLastSeenDate
The latest date this access tuple was seen in the logs.
.google.type.Date last_seen_date = 4; -
clearLastSeenDate
The latest date this access tuple was seen in the logs.
.google.type.Date last_seen_date = 4; -
getLastSeenDateBuilder
The latest date this access tuple was seen in the logs.
.google.type.Date last_seen_date = 4; -
getLastSeenDateOrBuilder
The latest date this access tuple was seen in the logs.
.google.type.Date last_seen_date = 4;- Specified by:
getLastSeenDateOrBuilderin interfaceReplayResultOrBuilder
-