Class ExplainedDenyResource (1.38.0)

public final class ExplainedDenyResource extends GeneratedMessageV3 implements ExplainedDenyResourceOrBuilder

Details about how a specific resource contributed to the deny policy evaluation.

Protobuf type google.cloud.policytroubleshooter.iam.v3.ExplainedDenyResource

Static Fields

DENY_ACCESS_STATE_FIELD_NUMBER

public static final int DENY_ACCESS_STATE_FIELD_NUMBER
Field Value
TypeDescription
int

EXPLAINED_POLICIES_FIELD_NUMBER

public static final int EXPLAINED_POLICIES_FIELD_NUMBER
Field Value
TypeDescription
int

FULL_RESOURCE_NAME_FIELD_NUMBER

public static final int FULL_RESOURCE_NAME_FIELD_NUMBER
Field Value
TypeDescription
int

RELEVANCE_FIELD_NUMBER

public static final int RELEVANCE_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static ExplainedDenyResource getDefaultInstance()
Returns
TypeDescription
ExplainedDenyResource

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static ExplainedDenyResource.Builder newBuilder()
Returns
TypeDescription
ExplainedDenyResource.Builder

newBuilder(ExplainedDenyResource prototype)

public static ExplainedDenyResource.Builder newBuilder(ExplainedDenyResource prototype)
Parameter
NameDescription
prototypeExplainedDenyResource
Returns
TypeDescription
ExplainedDenyResource.Builder

parseDelimitedFrom(InputStream input)

public static ExplainedDenyResource parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
ExplainedDenyResource
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ExplainedDenyResource parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ExplainedDenyResource
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static ExplainedDenyResource parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
ExplainedDenyResource
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static ExplainedDenyResource parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ExplainedDenyResource
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static ExplainedDenyResource parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
ExplainedDenyResource
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static ExplainedDenyResource parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ExplainedDenyResource
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static ExplainedDenyResource parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
ExplainedDenyResource
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static ExplainedDenyResource parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ExplainedDenyResource
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static ExplainedDenyResource parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
ExplainedDenyResource
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ExplainedDenyResource parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ExplainedDenyResource
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static ExplainedDenyResource parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
ExplainedDenyResource
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static ExplainedDenyResource parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ExplainedDenyResource
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<ExplainedDenyResource> parser()
Returns
TypeDescription
Parser<ExplainedDenyResource>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

public ExplainedDenyResource getDefaultInstanceForType()
Returns
TypeDescription
ExplainedDenyResource

getDenyAccessState()

public DenyAccessState getDenyAccessState()

Required. Indicates whether any policies attached to this resource deny the specific 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 overall_access_state field in the TroubleshootIamPolicyResponse.

.google.cloud.policytroubleshooter.iam.v3.DenyAccessState deny_access_state = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
DenyAccessState

The denyAccessState.

getDenyAccessStateValue()

public int getDenyAccessStateValue()

Required. Indicates whether any policies attached to this resource deny the specific 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 overall_access_state field in the TroubleshootIamPolicyResponse.

.google.cloud.policytroubleshooter.iam.v3.DenyAccessState deny_access_state = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
int

The enum numeric value on the wire for denyAccessState.

getExplainedPolicies(int index)

public ExplainedDenyPolicy getExplainedPolicies(int index)

List of IAM deny policies that were evaluated to check the principal's denied permissions, with annotations to indicate how each policy contributed to the final result.

repeated .google.cloud.policytroubleshooter.iam.v3.ExplainedDenyPolicy explained_policies = 3;

Parameter
NameDescription
indexint
Returns
TypeDescription
ExplainedDenyPolicy

getExplainedPoliciesCount()

public int getExplainedPoliciesCount()

List of IAM deny policies that were evaluated to check the principal's denied permissions, with annotations to indicate how each policy contributed to the final result.

repeated .google.cloud.policytroubleshooter.iam.v3.ExplainedDenyPolicy explained_policies = 3;

Returns
TypeDescription
int

getExplainedPoliciesList()

public List<ExplainedDenyPolicy> getExplainedPoliciesList()

List of IAM deny policies that were evaluated to check the principal's denied permissions, with annotations to indicate how each policy contributed to the final result.

repeated .google.cloud.policytroubleshooter.iam.v3.ExplainedDenyPolicy explained_policies = 3;

Returns
TypeDescription
List<ExplainedDenyPolicy>

getExplainedPoliciesOrBuilder(int index)

public ExplainedDenyPolicyOrBuilder getExplainedPoliciesOrBuilder(int index)

List of IAM deny policies that were evaluated to check the principal's denied permissions, with annotations to indicate how each policy contributed to the final result.

repeated .google.cloud.policytroubleshooter.iam.v3.ExplainedDenyPolicy explained_policies = 3;

Parameter
NameDescription
indexint
Returns
TypeDescription
ExplainedDenyPolicyOrBuilder

getExplainedPoliciesOrBuilderList()

public List<? extends ExplainedDenyPolicyOrBuilder> getExplainedPoliciesOrBuilderList()

List of IAM deny policies that were evaluated to check the principal's denied permissions, with annotations to indicate how each policy contributed to the final result.

repeated .google.cloud.policytroubleshooter.iam.v3.ExplainedDenyPolicy explained_policies = 3;

Returns
TypeDescription
List<? extends com.google.cloud.policytroubleshooter.iam.v3.ExplainedDenyPolicyOrBuilder>

getFullResourceName()

public 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 sender of the request 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;

Returns
TypeDescription
String

The fullResourceName.

getFullResourceNameBytes()

public 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 sender of the request 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;

Returns
TypeDescription
ByteString

The bytes for fullResourceName.

getParserForType()

public Parser<ExplainedDenyResource> getParserForType()
Returns
TypeDescription
Parser<ExplainedDenyResource>
Overrides

getRelevance()

public HeuristicRelevance getRelevance()

The relevance of this policy to the overall access state in the TroubleshootIamPolicyResponse.

If the sender of the request does not have access to the policy, this field is omitted.

.google.cloud.policytroubleshooter.iam.v3.HeuristicRelevance relevance = 4;

Returns
TypeDescription
HeuristicRelevance

The relevance.

getRelevanceValue()

public int getRelevanceValue()

The relevance of this policy to the overall access state in the TroubleshootIamPolicyResponse.

If the sender of the request does not have access to the policy, this field is omitted.

.google.cloud.policytroubleshooter.iam.v3.HeuristicRelevance relevance = 4;

Returns
TypeDescription
int

The enum numeric value on the wire for relevance.

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public ExplainedDenyResource.Builder newBuilderForType()
Returns
TypeDescription
ExplainedDenyResource.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected ExplainedDenyResource.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
ExplainedDenyResource.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public ExplainedDenyResource.Builder toBuilder()
Returns
TypeDescription
ExplainedDenyResource.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException