public final class ExplainedPolicy extends com.google.protobuf.GeneratedMessageV3 implements ExplainedPolicyOrBuilder
Details about how a specific IAM [Policy][google.iam.v1.Policy] contributed to the access check.Protobuf type
google.cloud.policysimulator.v1.ExplainedPolicy| Modifier and Type | Class and Description |
|---|---|
static class |
ExplainedPolicy.Builder
Details about how a specific IAM [Policy][google.iam.v1.Policy] contributed
to the access check.
|
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_FIELD_NUMBER |
static int |
BINDING_EXPLANATIONS_FIELD_NUMBER |
static int |
FULL_RESOURCE_NAME_FIELD_NUMBER |
static int |
POLICY_FIELD_NUMBER |
static int |
RELEVANCE_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
AccessState |
getAccess()
Indicates whether _this policy_ provides the specified permission to the
specified principal for the specified resource.
|
int |
getAccessValue()
Indicates whether _this policy_ provides the specified permission to the
specified principal for the specified resource.
|
BindingExplanation |
getBindingExplanations(int index)
Details about how each binding in the policy affects the principal's
ability, or inability, to use the permission for the resource.
|
int |
getBindingExplanationsCount()
Details about how each binding in the policy affects the principal's
ability, or inability, to use the permission for the resource.
|
List<BindingExplanation> |
getBindingExplanationsList()
Details about how each binding in the policy affects the principal's
ability, or inability, to use the permission for the resource.
|
BindingExplanationOrBuilder |
getBindingExplanationsOrBuilder(int index)
Details about how each binding in the policy affects the principal's
ability, or inability, to use the permission for the resource.
|
List<? extends BindingExplanationOrBuilder> |
getBindingExplanationsOrBuilderList()
Details about how each binding in the policy affects the principal's
ability, or inability, to use the permission for the resource.
|
static ExplainedPolicy |
getDefaultInstance() |
ExplainedPolicy |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
String |
getFullResourceName()
The full resource name that identifies the resource.
|
com.google.protobuf.ByteString |
getFullResourceNameBytes()
The full resource name that identifies the resource.
|
com.google.protobuf.Parser<ExplainedPolicy> |
getParserForType() |
com.google.iam.v1.Policy |
getPolicy()
The IAM policy attached to the resource.
|
com.google.iam.v1.PolicyOrBuilder |
getPolicyOrBuilder()
The IAM policy attached to the resource.
|
HeuristicRelevance |
getRelevance()
The relevance of this policy to the overall determination in the
[TroubleshootIamPolicyResponse][IamChecker.TroubleshootIamPolicyResponse].
|
int |
getRelevanceValue()
The relevance of this policy to the overall determination in the
[TroubleshootIamPolicyResponse][IamChecker.TroubleshootIamPolicyResponse].
|
int |
getSerializedSize() |
int |
hashCode() |
boolean |
hasPolicy()
The IAM policy attached to the resource.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static ExplainedPolicy.Builder |
newBuilder() |
static ExplainedPolicy.Builder |
newBuilder(ExplainedPolicy prototype) |
ExplainedPolicy.Builder |
newBuilderForType() |
protected ExplainedPolicy.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static ExplainedPolicy |
parseDelimitedFrom(InputStream input) |
static ExplainedPolicy |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static ExplainedPolicy |
parseFrom(byte[] data) |
static ExplainedPolicy |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static ExplainedPolicy |
parseFrom(ByteBuffer data) |
static ExplainedPolicy |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static ExplainedPolicy |
parseFrom(com.google.protobuf.ByteString data) |
static ExplainedPolicy |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static ExplainedPolicy |
parseFrom(com.google.protobuf.CodedInputStream input) |
static ExplainedPolicy |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static ExplainedPolicy |
parseFrom(InputStream input) |
static ExplainedPolicy |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<ExplainedPolicy> |
parser() |
ExplainedPolicy.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 ACCESS_FIELD_NUMBER
public static final int FULL_RESOURCE_NAME_FIELD_NUMBER
public static final int POLICY_FIELD_NUMBER
public static final int BINDING_EXPLANATIONS_FIELD_NUMBER
public static final int RELEVANCE_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 int getAccessValue()
Indicates whether _this policy_ provides the specified permission to the specified principal for the specified resource. This field does _not_ indicate whether the principal actually has the permission for the resource. There might be another policy that overrides this policy. To determine whether the principal actually has the permission, use the `access` field in the [TroubleshootIamPolicyResponse][IamChecker.TroubleshootIamPolicyResponse].
.google.cloud.policysimulator.v1.AccessState access = 1;getAccessValue in interface ExplainedPolicyOrBuilderpublic AccessState getAccess()
Indicates whether _this policy_ provides the specified permission to the specified principal for the specified resource. This field does _not_ indicate whether the principal actually has the permission for the resource. There might be another policy that overrides this policy. To determine whether the principal actually has the permission, use the `access` field in the [TroubleshootIamPolicyResponse][IamChecker.TroubleshootIamPolicyResponse].
.google.cloud.policysimulator.v1.AccessState access = 1;getAccess in interface ExplainedPolicyOrBuilderpublic String getFullResourceName()
The full resource name that identifies the resource. For example, `//compute.googleapis.com/projects/my-project/zones/us-central1-a/instances/my-instance`. If the user who created the [Replay][google.cloud.policysimulator.v1.Replay] does not have access to the policy, this field is omitted. For examples of full resource names for Google Cloud services, see https://cloud.google.com/iam/help/troubleshooter/full-resource-names.
string full_resource_name = 2;getFullResourceName in interface ExplainedPolicyOrBuilderpublic com.google.protobuf.ByteString getFullResourceNameBytes()
The full resource name that identifies the resource. For example, `//compute.googleapis.com/projects/my-project/zones/us-central1-a/instances/my-instance`. If the user who created the [Replay][google.cloud.policysimulator.v1.Replay] does not have access to the policy, this field is omitted. For examples of full resource names for Google Cloud services, see https://cloud.google.com/iam/help/troubleshooter/full-resource-names.
string full_resource_name = 2;getFullResourceNameBytes in interface ExplainedPolicyOrBuilderpublic boolean hasPolicy()
The IAM policy attached to the resource. If the user who created the [Replay][google.cloud.policysimulator.v1.Replay] does not have access to the policy, this field is empty.
.google.iam.v1.Policy policy = 3;hasPolicy in interface ExplainedPolicyOrBuilderpublic com.google.iam.v1.Policy getPolicy()
The IAM policy attached to the resource. If the user who created the [Replay][google.cloud.policysimulator.v1.Replay] does not have access to the policy, this field is empty.
.google.iam.v1.Policy policy = 3;getPolicy in interface ExplainedPolicyOrBuilderpublic com.google.iam.v1.PolicyOrBuilder getPolicyOrBuilder()
The IAM policy attached to the resource. If the user who created the [Replay][google.cloud.policysimulator.v1.Replay] does not have access to the policy, this field is empty.
.google.iam.v1.Policy policy = 3;getPolicyOrBuilder in interface ExplainedPolicyOrBuilderpublic List<BindingExplanation> getBindingExplanationsList()
Details about how each binding in the policy affects the principal's ability, or inability, to use the permission for the resource. If the user who created the [Replay][google.cloud.policysimulator.v1.Replay] does not have access to the policy, this field is omitted.
repeated .google.cloud.policysimulator.v1.BindingExplanation binding_explanations = 4;
getBindingExplanationsList in interface ExplainedPolicyOrBuilderpublic List<? extends BindingExplanationOrBuilder> getBindingExplanationsOrBuilderList()
Details about how each binding in the policy affects the principal's ability, or inability, to use the permission for the resource. If the user who created the [Replay][google.cloud.policysimulator.v1.Replay] does not have access to the policy, this field is omitted.
repeated .google.cloud.policysimulator.v1.BindingExplanation binding_explanations = 4;
getBindingExplanationsOrBuilderList in interface ExplainedPolicyOrBuilderpublic int getBindingExplanationsCount()
Details about how each binding in the policy affects the principal's ability, or inability, to use the permission for the resource. If the user who created the [Replay][google.cloud.policysimulator.v1.Replay] does not have access to the policy, this field is omitted.
repeated .google.cloud.policysimulator.v1.BindingExplanation binding_explanations = 4;
getBindingExplanationsCount in interface ExplainedPolicyOrBuilderpublic BindingExplanation getBindingExplanations(int index)
Details about how each binding in the policy affects the principal's ability, or inability, to use the permission for the resource. If the user who created the [Replay][google.cloud.policysimulator.v1.Replay] does not have access to the policy, this field is omitted.
repeated .google.cloud.policysimulator.v1.BindingExplanation binding_explanations = 4;
getBindingExplanations in interface ExplainedPolicyOrBuilderpublic BindingExplanationOrBuilder getBindingExplanationsOrBuilder(int index)
Details about how each binding in the policy affects the principal's ability, or inability, to use the permission for the resource. If the user who created the [Replay][google.cloud.policysimulator.v1.Replay] does not have access to the policy, this field is omitted.
repeated .google.cloud.policysimulator.v1.BindingExplanation binding_explanations = 4;
getBindingExplanationsOrBuilder in interface ExplainedPolicyOrBuilderpublic int getRelevanceValue()
The relevance of this policy to the overall determination in the [TroubleshootIamPolicyResponse][IamChecker.TroubleshootIamPolicyResponse]. If the user who created the [Replay][google.cloud.policysimulator.v1.Replay] does not have access to the policy, this field is omitted.
.google.cloud.policysimulator.v1.HeuristicRelevance relevance = 5;getRelevanceValue in interface ExplainedPolicyOrBuilderpublic HeuristicRelevance getRelevance()
The relevance of this policy to the overall determination in the [TroubleshootIamPolicyResponse][IamChecker.TroubleshootIamPolicyResponse]. If the user who created the [Replay][google.cloud.policysimulator.v1.Replay] does not have access to the policy, this field is omitted.
.google.cloud.policysimulator.v1.HeuristicRelevance relevance = 5;getRelevance in interface ExplainedPolicyOrBuilderpublic 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 ExplainedPolicy parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ExplainedPolicy parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ExplainedPolicy parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ExplainedPolicy parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ExplainedPolicy parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ExplainedPolicy parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ExplainedPolicy parseFrom(InputStream input) throws IOException
IOExceptionpublic static ExplainedPolicy parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static ExplainedPolicy parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static ExplainedPolicy parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static ExplainedPolicy parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static ExplainedPolicy parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic ExplainedPolicy.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static ExplainedPolicy.Builder newBuilder()
public static ExplainedPolicy.Builder newBuilder(ExplainedPolicy prototype)
public ExplainedPolicy.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected ExplainedPolicy.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static ExplainedPolicy getDefaultInstance()
public static com.google.protobuf.Parser<ExplainedPolicy> parser()
public com.google.protobuf.Parser<ExplainedPolicy> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public ExplainedPolicy getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2023 Google LLC. All rights reserved.