public final class ReplayResult extends com.google.protobuf.GeneratedMessageV3 implements ReplayResultOrBuilder
The result of replaying a single access tuple against a simulated state.Protobuf type
google.cloud.policysimulator.v1.ReplayResult| Modifier and Type | Class and Description |
|---|---|
static class |
ReplayResult.Builder
The result of replaying a single access tuple against a simulated state.
|
static class |
ReplayResult.ResultCase |
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter| Modifier and Type | Field and Description |
|---|---|
static int |
ACCESS_TUPLE_FIELD_NUMBER |
static int |
DIFF_FIELD_NUMBER |
static int |
ERROR_FIELD_NUMBER |
static int |
LAST_SEEN_DATE_FIELD_NUMBER |
static int |
NAME_FIELD_NUMBER |
static int |
PARENT_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
AccessTuple |
getAccessTuple()
The access tuple that was replayed.
|
AccessTupleOrBuilder |
getAccessTupleOrBuilder()
The access tuple that was replayed.
|
static ReplayResult |
getDefaultInstance() |
ReplayResult |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
ReplayDiff |
getDiff()
The difference between the principal's access under the current
(baseline) policies and the principal's access under the proposed
(simulated) policies.
|
ReplayDiffOrBuilder |
getDiffOrBuilder()
The difference between the principal's access under the current
(baseline) policies and the principal's access under the proposed
(simulated) policies.
|
com.google.rpc.Status |
getError()
The error that caused the access tuple replay to fail.
|
com.google.rpc.StatusOrBuilder |
getErrorOrBuilder()
The error that caused the access tuple replay to fail.
|
com.google.type.Date |
getLastSeenDate()
The latest date this access tuple was seen in the logs.
|
com.google.type.DateOrBuilder |
getLastSeenDateOrBuilder()
The latest date this access tuple was seen in the logs.
|
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][google.cloud.policysimulator.v1.Replay].
|
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].
|
String |
getParent()
The [Replay][google.cloud.policysimulator.v1.Replay] that the access tuple
was included in.
|
com.google.protobuf.ByteString |
getParentBytes()
The [Replay][google.cloud.policysimulator.v1.Replay] that the access tuple
was included in.
|
com.google.protobuf.Parser<ReplayResult> |
getParserForType() |
ReplayResult.ResultCase |
getResultCase() |
int |
getSerializedSize() |
boolean |
hasAccessTuple()
The access tuple that was replayed.
|
boolean |
hasDiff()
The difference between the principal's access under the current
(baseline) policies and the principal's access under the proposed
(simulated) policies.
|
boolean |
hasError()
The error that caused the access tuple replay to fail.
|
int |
hashCode() |
boolean |
hasLastSeenDate()
The latest date this access tuple was seen in the logs.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static ReplayResult.Builder |
newBuilder() |
static ReplayResult.Builder |
newBuilder(ReplayResult prototype) |
ReplayResult.Builder |
newBuilderForType() |
protected ReplayResult.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static ReplayResult |
parseDelimitedFrom(InputStream input) |
static ReplayResult |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static ReplayResult |
parseFrom(byte[] data) |
static ReplayResult |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static ReplayResult |
parseFrom(ByteBuffer data) |
static ReplayResult |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static ReplayResult |
parseFrom(com.google.protobuf.ByteString data) |
static ReplayResult |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static ReplayResult |
parseFrom(com.google.protobuf.CodedInputStream input) |
static ReplayResult |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static ReplayResult |
parseFrom(InputStream input) |
static ReplayResult |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<ReplayResult> |
parser() |
ReplayResult.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int DIFF_FIELD_NUMBER
public static final int ERROR_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER
public static final int PARENT_FIELD_NUMBER
public static final int ACCESS_TUPLE_FIELD_NUMBER
public static final int LAST_SEEN_DATE_FIELD_NUMBER
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public ReplayResult.ResultCase getResultCase()
getResultCase in interface ReplayResultOrBuilderpublic 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;hasDiff in interface ReplayResultOrBuilderpublic 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;getDiff in interface ReplayResultOrBuilderpublic 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;getDiffOrBuilder in interface ReplayResultOrBuilderpublic 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;hasError in interface ReplayResultOrBuilderpublic com.google.rpc.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;getError in interface ReplayResultOrBuilderpublic com.google.rpc.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;getErrorOrBuilder in interface ReplayResultOrBuilderpublic 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][google.cloud.policysimulator.v1.Replay].
Example:
`projects/my-example-project/locations/global/replays/506a5f7f-38ce-4d7d-8e03-479ce1833c36/results/1234`
string name = 1;getName in interface ReplayResultOrBuilderpublic 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;getNameBytes in interface ReplayResultOrBuilderpublic String getParent()
The [Replay][google.cloud.policysimulator.v1.Replay] that the access tuple was included in.
string parent = 2 [(.google.api.resource_reference) = { ... }getParent in interface ReplayResultOrBuilderpublic 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) = { ... }getParentBytes in interface ReplayResultOrBuilderpublic 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;hasAccessTuple in interface ReplayResultOrBuilderpublic 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;getAccessTuple in interface ReplayResultOrBuilderpublic 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;getAccessTupleOrBuilder in interface ReplayResultOrBuilderpublic boolean hasLastSeenDate()
The latest date this access tuple was seen in the logs.
.google.type.Date last_seen_date = 4;hasLastSeenDate in interface ReplayResultOrBuilderpublic com.google.type.Date getLastSeenDate()
The latest date this access tuple was seen in the logs.
.google.type.Date last_seen_date = 4;getLastSeenDate in interface ReplayResultOrBuilderpublic com.google.type.DateOrBuilder getLastSeenDateOrBuilder()
The latest date this access tuple was seen in the logs.
.google.type.Date last_seen_date = 4;getLastSeenDateOrBuilder in interface ReplayResultOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static ReplayResult parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ReplayResult parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ReplayResult parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ReplayResult parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ReplayResult parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ReplayResult parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ReplayResult parseFrom(InputStream input) throws IOException
IOExceptionpublic static ReplayResult parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static ReplayResult parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static ReplayResult parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static ReplayResult parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static ReplayResult parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic ReplayResult.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static ReplayResult.Builder newBuilder()
public static ReplayResult.Builder newBuilder(ReplayResult prototype)
public ReplayResult.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected ReplayResult.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static ReplayResult getDefaultInstance()
public static com.google.protobuf.Parser<ReplayResult> parser()
public com.google.protobuf.Parser<ReplayResult> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public ReplayResult getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2024 Google LLC. All rights reserved.