Class ExplainedDenyResource.Builder (1.32.0)

public static final class ExplainedDenyResource.Builder extends GeneratedMessageV3.Builder<ExplainedDenyResource.Builder> implements ExplainedDenyResourceOrBuilder

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

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

Static Methods

getDescriptor()

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

Methods

addAllExplainedPolicies(Iterable<? extends ExplainedDenyPolicy> values)

public ExplainedDenyResource.Builder addAllExplainedPolicies(Iterable<? extends ExplainedDenyPolicy> values)

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
valuesIterable<? extends com.google.cloud.policytroubleshooter.iam.v3.ExplainedDenyPolicy>
Returns
TypeDescription
ExplainedDenyResource.Builder

addExplainedPolicies(ExplainedDenyPolicy value)

public ExplainedDenyResource.Builder addExplainedPolicies(ExplainedDenyPolicy value)

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
valueExplainedDenyPolicy
Returns
TypeDescription
ExplainedDenyResource.Builder

addExplainedPolicies(ExplainedDenyPolicy.Builder builderForValue)

public ExplainedDenyResource.Builder addExplainedPolicies(ExplainedDenyPolicy.Builder builderForValue)

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
builderForValueExplainedDenyPolicy.Builder
Returns
TypeDescription
ExplainedDenyResource.Builder

addExplainedPolicies(int index, ExplainedDenyPolicy value)

public ExplainedDenyResource.Builder addExplainedPolicies(int index, ExplainedDenyPolicy value)

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;

Parameters
NameDescription
indexint
valueExplainedDenyPolicy
Returns
TypeDescription
ExplainedDenyResource.Builder

addExplainedPolicies(int index, ExplainedDenyPolicy.Builder builderForValue)

public ExplainedDenyResource.Builder addExplainedPolicies(int index, ExplainedDenyPolicy.Builder builderForValue)

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;

Parameters
NameDescription
indexint
builderForValueExplainedDenyPolicy.Builder
Returns
TypeDescription
ExplainedDenyResource.Builder

addExplainedPoliciesBuilder()

public ExplainedDenyPolicy.Builder addExplainedPoliciesBuilder()

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
ExplainedDenyPolicy.Builder

addExplainedPoliciesBuilder(int index)

public ExplainedDenyPolicy.Builder addExplainedPoliciesBuilder(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.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ExplainedDenyResource build()
Returns
TypeDescription
ExplainedDenyResource

buildPartial()

public ExplainedDenyResource buildPartial()
Returns
TypeDescription
ExplainedDenyResource

clear()

public ExplainedDenyResource.Builder clear()
Returns
TypeDescription
ExplainedDenyResource.Builder
Overrides

clearDenyAccessState()

public ExplainedDenyResource.Builder clearDenyAccessState()

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
ExplainedDenyResource.Builder

This builder for chaining.

clearExplainedPolicies()

public ExplainedDenyResource.Builder clearExplainedPolicies()

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
ExplainedDenyResource.Builder

clearField(Descriptors.FieldDescriptor field)

public ExplainedDenyResource.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
ExplainedDenyResource.Builder
Overrides

clearFullResourceName()

public ExplainedDenyResource.Builder clearFullResourceName()

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
ExplainedDenyResource.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public ExplainedDenyResource.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
ExplainedDenyResource.Builder
Overrides

clearRelevance()

public ExplainedDenyResource.Builder clearRelevance()

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
ExplainedDenyResource.Builder

This builder for chaining.

clone()

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

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

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

getExplainedPoliciesBuilder(int index)

public ExplainedDenyPolicy.Builder getExplainedPoliciesBuilder(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.Builder

getExplainedPoliciesBuilderList()

public List<ExplainedDenyPolicy.Builder> getExplainedPoliciesBuilderList()

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<Builder>

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.

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.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ExplainedDenyResource other)

public ExplainedDenyResource.Builder mergeFrom(ExplainedDenyResource other)
Parameter
NameDescription
otherExplainedDenyResource
Returns
TypeDescription
ExplainedDenyResource.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public ExplainedDenyResource.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
ExplainedDenyResource.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ExplainedDenyResource.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ExplainedDenyResource.Builder
Overrides

removeExplainedPolicies(int index)

public ExplainedDenyResource.Builder removeExplainedPolicies(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
ExplainedDenyResource.Builder

setDenyAccessState(DenyAccessState value)

public ExplainedDenyResource.Builder setDenyAccessState(DenyAccessState value)

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];

Parameter
NameDescription
valueDenyAccessState

The denyAccessState to set.

Returns
TypeDescription
ExplainedDenyResource.Builder

This builder for chaining.

setDenyAccessStateValue(int value)

public ExplainedDenyResource.Builder setDenyAccessStateValue(int value)

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];

Parameter
NameDescription
valueint

The enum numeric value on the wire for denyAccessState to set.

Returns
TypeDescription
ExplainedDenyResource.Builder

This builder for chaining.

setExplainedPolicies(int index, ExplainedDenyPolicy value)

public ExplainedDenyResource.Builder setExplainedPolicies(int index, ExplainedDenyPolicy value)

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;

Parameters
NameDescription
indexint
valueExplainedDenyPolicy
Returns
TypeDescription
ExplainedDenyResource.Builder

setExplainedPolicies(int index, ExplainedDenyPolicy.Builder builderForValue)

public ExplainedDenyResource.Builder setExplainedPolicies(int index, ExplainedDenyPolicy.Builder builderForValue)

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;

Parameters
NameDescription
indexint
builderForValueExplainedDenyPolicy.Builder
Returns
TypeDescription
ExplainedDenyResource.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setFullResourceName(String value)

public ExplainedDenyResource.Builder setFullResourceName(String value)

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;

Parameter
NameDescription
valueString

The fullResourceName to set.

Returns
TypeDescription
ExplainedDenyResource.Builder

This builder for chaining.

setFullResourceNameBytes(ByteString value)

public ExplainedDenyResource.Builder setFullResourceNameBytes(ByteString value)

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;

Parameter
NameDescription
valueByteString

The bytes for fullResourceName to set.

Returns
TypeDescription
ExplainedDenyResource.Builder

This builder for chaining.

setRelevance(HeuristicRelevance value)

public ExplainedDenyResource.Builder setRelevance(HeuristicRelevance value)

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;

Parameter
NameDescription
valueHeuristicRelevance

The relevance to set.

Returns
TypeDescription
ExplainedDenyResource.Builder

This builder for chaining.

setRelevanceValue(int value)

public ExplainedDenyResource.Builder setRelevanceValue(int value)

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;

Parameter
NameDescription
valueint

The enum numeric value on the wire for relevance to set.

Returns
TypeDescription
ExplainedDenyResource.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public ExplainedDenyResource.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
ExplainedDenyResource.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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