Class DenyPolicyExplanation.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<DenyPolicyExplanation.Builder>
com.google.cloud.policytroubleshooter.iam.v3.DenyPolicyExplanation.Builder
- All Implemented Interfaces:
DenyPolicyExplanationOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- DenyPolicyExplanation
public static final class DenyPolicyExplanation.Builder
extends com.google.protobuf.GeneratedMessage.Builder<DenyPolicyExplanation.Builder>
implements DenyPolicyExplanationOrBuilder
Details about how the relevant IAM deny policies affect the final access state.Protobuf type
google.cloud.policytroubleshooter.iam.v3.DenyPolicyExplanation-
Method Summary
Modifier and TypeMethodDescriptionaddAllExplainedResources(Iterable<? extends ExplainedDenyResource> values) List of resources with 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.addExplainedResources(int index, ExplainedDenyResource value) List of resources with 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.addExplainedResources(int index, ExplainedDenyResource.Builder builderForValue) List of resources with 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.List of resources with 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.addExplainedResources(ExplainedDenyResource.Builder builderForValue) List of resources with 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.List of resources with 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.addExplainedResourcesBuilder(int index) List of resources with 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.build()clear()Indicates whether the principal is denied the specified permission for the specified resource, based on evaluating all applicable IAM deny policies.List of resources with 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.Indicates whether the permission to troubleshoot is supported in deny policies.The relevance of the deny policy result to the overall access state.Indicates whether the principal is denied the specified permission for the specified resource, based on evaluating all applicable IAM deny policies.intIndicates whether the principal is denied the specified permission for the specified resource, based on evaluating all applicable IAM deny policies.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetExplainedResources(int index) List of resources with 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.getExplainedResourcesBuilder(int index) List of resources with 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.List of resources with 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.intList of resources with 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.List of resources with 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.getExplainedResourcesOrBuilder(int index) List of resources with 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.List<? extends ExplainedDenyResourceOrBuilder>List of resources with 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.booleanIndicates whether the permission to troubleshoot is supported in deny policies.The relevance of the deny policy result to the overall access state.intThe relevance of the deny policy result to the overall access state.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(DenyPolicyExplanation other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) removeExplainedResources(int index) List of resources with 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.Indicates whether the principal is denied the specified permission for the specified resource, based on evaluating all applicable IAM deny policies.setDenyAccessStateValue(int value) Indicates whether the principal is denied the specified permission for the specified resource, based on evaluating all applicable IAM deny policies.setExplainedResources(int index, ExplainedDenyResource value) List of resources with 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.setExplainedResources(int index, ExplainedDenyResource.Builder builderForValue) List of resources with 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.setPermissionDeniable(boolean value) Indicates whether the permission to troubleshoot is supported in deny policies.setRelevance(HeuristicRelevance value) The relevance of the deny policy result to the overall access state.setRelevanceValue(int value) The relevance of the deny policy result to the overall access state.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<DenyPolicyExplanation.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<DenyPolicyExplanation.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<DenyPolicyExplanation.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<DenyPolicyExplanation.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<DenyPolicyExplanation.Builder>
-
mergeFrom
public DenyPolicyExplanation.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<DenyPolicyExplanation.Builder>- Throws:
IOException
-
getDenyAccessStateValue
public int getDenyAccessStateValue()Indicates whether the principal is denied the specified permission for the specified resource, based on evaluating all applicable IAM deny policies.
.google.cloud.policytroubleshooter.iam.v3.DenyAccessState deny_access_state = 1;- Specified by:
getDenyAccessStateValuein interfaceDenyPolicyExplanationOrBuilder- Returns:
- The enum numeric value on the wire for denyAccessState.
-
setDenyAccessStateValue
Indicates whether the principal is denied the specified permission for the specified resource, based on evaluating all applicable IAM deny policies.
.google.cloud.policytroubleshooter.iam.v3.DenyAccessState deny_access_state = 1;- Parameters:
value- The enum numeric value on the wire for denyAccessState to set.- Returns:
- This builder for chaining.
-
getDenyAccessState
Indicates whether the principal is denied the specified permission for the specified resource, based on evaluating all applicable IAM deny policies.
.google.cloud.policytroubleshooter.iam.v3.DenyAccessState deny_access_state = 1;- Specified by:
getDenyAccessStatein interfaceDenyPolicyExplanationOrBuilder- Returns:
- The denyAccessState.
-
setDenyAccessState
Indicates whether the principal is denied the specified permission for the specified resource, based on evaluating all applicable IAM deny policies.
.google.cloud.policytroubleshooter.iam.v3.DenyAccessState deny_access_state = 1;- Parameters:
value- The denyAccessState to set.- Returns:
- This builder for chaining.
-
clearDenyAccessState
Indicates whether the principal is denied the specified permission for the specified resource, based on evaluating all applicable IAM deny policies.
.google.cloud.policytroubleshooter.iam.v3.DenyAccessState deny_access_state = 1;- Returns:
- This builder for chaining.
-
getExplainedResourcesList
List of resources with 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. The list of resources includes the policy for the resource itself, as well as policies that are inherited from higher levels of the resource hierarchy, including the organization, the folder, and the project. The order of the resources starts from the resource and climbs up the resource hierarchy. To learn more about the resource hierarchy, see https://cloud.google.com/iam/help/resource-hierarchy.
repeated .google.cloud.policytroubleshooter.iam.v3.ExplainedDenyResource explained_resources = 2;- Specified by:
getExplainedResourcesListin interfaceDenyPolicyExplanationOrBuilder
-
getExplainedResourcesCount
public int getExplainedResourcesCount()List of resources with 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. The list of resources includes the policy for the resource itself, as well as policies that are inherited from higher levels of the resource hierarchy, including the organization, the folder, and the project. The order of the resources starts from the resource and climbs up the resource hierarchy. To learn more about the resource hierarchy, see https://cloud.google.com/iam/help/resource-hierarchy.
repeated .google.cloud.policytroubleshooter.iam.v3.ExplainedDenyResource explained_resources = 2;- Specified by:
getExplainedResourcesCountin interfaceDenyPolicyExplanationOrBuilder
-
getExplainedResources
List of resources with 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. The list of resources includes the policy for the resource itself, as well as policies that are inherited from higher levels of the resource hierarchy, including the organization, the folder, and the project. The order of the resources starts from the resource and climbs up the resource hierarchy. To learn more about the resource hierarchy, see https://cloud.google.com/iam/help/resource-hierarchy.
repeated .google.cloud.policytroubleshooter.iam.v3.ExplainedDenyResource explained_resources = 2;- Specified by:
getExplainedResourcesin interfaceDenyPolicyExplanationOrBuilder
-
setExplainedResources
List of resources with 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. The list of resources includes the policy for the resource itself, as well as policies that are inherited from higher levels of the resource hierarchy, including the organization, the folder, and the project. The order of the resources starts from the resource and climbs up the resource hierarchy. To learn more about the resource hierarchy, see https://cloud.google.com/iam/help/resource-hierarchy.
repeated .google.cloud.policytroubleshooter.iam.v3.ExplainedDenyResource explained_resources = 2; -
setExplainedResources
public DenyPolicyExplanation.Builder setExplainedResources(int index, ExplainedDenyResource.Builder builderForValue) List of resources with 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. The list of resources includes the policy for the resource itself, as well as policies that are inherited from higher levels of the resource hierarchy, including the organization, the folder, and the project. The order of the resources starts from the resource and climbs up the resource hierarchy. To learn more about the resource hierarchy, see https://cloud.google.com/iam/help/resource-hierarchy.
repeated .google.cloud.policytroubleshooter.iam.v3.ExplainedDenyResource explained_resources = 2; -
addExplainedResources
List of resources with 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. The list of resources includes the policy for the resource itself, as well as policies that are inherited from higher levels of the resource hierarchy, including the organization, the folder, and the project. The order of the resources starts from the resource and climbs up the resource hierarchy. To learn more about the resource hierarchy, see https://cloud.google.com/iam/help/resource-hierarchy.
repeated .google.cloud.policytroubleshooter.iam.v3.ExplainedDenyResource explained_resources = 2; -
addExplainedResources
List of resources with 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. The list of resources includes the policy for the resource itself, as well as policies that are inherited from higher levels of the resource hierarchy, including the organization, the folder, and the project. The order of the resources starts from the resource and climbs up the resource hierarchy. To learn more about the resource hierarchy, see https://cloud.google.com/iam/help/resource-hierarchy.
repeated .google.cloud.policytroubleshooter.iam.v3.ExplainedDenyResource explained_resources = 2; -
addExplainedResources
public DenyPolicyExplanation.Builder addExplainedResources(ExplainedDenyResource.Builder builderForValue) List of resources with 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. The list of resources includes the policy for the resource itself, as well as policies that are inherited from higher levels of the resource hierarchy, including the organization, the folder, and the project. The order of the resources starts from the resource and climbs up the resource hierarchy. To learn more about the resource hierarchy, see https://cloud.google.com/iam/help/resource-hierarchy.
repeated .google.cloud.policytroubleshooter.iam.v3.ExplainedDenyResource explained_resources = 2; -
addExplainedResources
public DenyPolicyExplanation.Builder addExplainedResources(int index, ExplainedDenyResource.Builder builderForValue) List of resources with 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. The list of resources includes the policy for the resource itself, as well as policies that are inherited from higher levels of the resource hierarchy, including the organization, the folder, and the project. The order of the resources starts from the resource and climbs up the resource hierarchy. To learn more about the resource hierarchy, see https://cloud.google.com/iam/help/resource-hierarchy.
repeated .google.cloud.policytroubleshooter.iam.v3.ExplainedDenyResource explained_resources = 2; -
addAllExplainedResources
public DenyPolicyExplanation.Builder addAllExplainedResources(Iterable<? extends ExplainedDenyResource> values) List of resources with 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. The list of resources includes the policy for the resource itself, as well as policies that are inherited from higher levels of the resource hierarchy, including the organization, the folder, and the project. The order of the resources starts from the resource and climbs up the resource hierarchy. To learn more about the resource hierarchy, see https://cloud.google.com/iam/help/resource-hierarchy.
repeated .google.cloud.policytroubleshooter.iam.v3.ExplainedDenyResource explained_resources = 2; -
clearExplainedResources
List of resources with 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. The list of resources includes the policy for the resource itself, as well as policies that are inherited from higher levels of the resource hierarchy, including the organization, the folder, and the project. The order of the resources starts from the resource and climbs up the resource hierarchy. To learn more about the resource hierarchy, see https://cloud.google.com/iam/help/resource-hierarchy.
repeated .google.cloud.policytroubleshooter.iam.v3.ExplainedDenyResource explained_resources = 2; -
removeExplainedResources
List of resources with 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. The list of resources includes the policy for the resource itself, as well as policies that are inherited from higher levels of the resource hierarchy, including the organization, the folder, and the project. The order of the resources starts from the resource and climbs up the resource hierarchy. To learn more about the resource hierarchy, see https://cloud.google.com/iam/help/resource-hierarchy.
repeated .google.cloud.policytroubleshooter.iam.v3.ExplainedDenyResource explained_resources = 2; -
getExplainedResourcesBuilder
List of resources with 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. The list of resources includes the policy for the resource itself, as well as policies that are inherited from higher levels of the resource hierarchy, including the organization, the folder, and the project. The order of the resources starts from the resource and climbs up the resource hierarchy. To learn more about the resource hierarchy, see https://cloud.google.com/iam/help/resource-hierarchy.
repeated .google.cloud.policytroubleshooter.iam.v3.ExplainedDenyResource explained_resources = 2; -
getExplainedResourcesOrBuilder
List of resources with 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. The list of resources includes the policy for the resource itself, as well as policies that are inherited from higher levels of the resource hierarchy, including the organization, the folder, and the project. The order of the resources starts from the resource and climbs up the resource hierarchy. To learn more about the resource hierarchy, see https://cloud.google.com/iam/help/resource-hierarchy.
repeated .google.cloud.policytroubleshooter.iam.v3.ExplainedDenyResource explained_resources = 2;- Specified by:
getExplainedResourcesOrBuilderin interfaceDenyPolicyExplanationOrBuilder
-
getExplainedResourcesOrBuilderList
List of resources with 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. The list of resources includes the policy for the resource itself, as well as policies that are inherited from higher levels of the resource hierarchy, including the organization, the folder, and the project. The order of the resources starts from the resource and climbs up the resource hierarchy. To learn more about the resource hierarchy, see https://cloud.google.com/iam/help/resource-hierarchy.
repeated .google.cloud.policytroubleshooter.iam.v3.ExplainedDenyResource explained_resources = 2;- Specified by:
getExplainedResourcesOrBuilderListin interfaceDenyPolicyExplanationOrBuilder
-
addExplainedResourcesBuilder
List of resources with 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. The list of resources includes the policy for the resource itself, as well as policies that are inherited from higher levels of the resource hierarchy, including the organization, the folder, and the project. The order of the resources starts from the resource and climbs up the resource hierarchy. To learn more about the resource hierarchy, see https://cloud.google.com/iam/help/resource-hierarchy.
repeated .google.cloud.policytroubleshooter.iam.v3.ExplainedDenyResource explained_resources = 2; -
addExplainedResourcesBuilder
List of resources with 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. The list of resources includes the policy for the resource itself, as well as policies that are inherited from higher levels of the resource hierarchy, including the organization, the folder, and the project. The order of the resources starts from the resource and climbs up the resource hierarchy. To learn more about the resource hierarchy, see https://cloud.google.com/iam/help/resource-hierarchy.
repeated .google.cloud.policytroubleshooter.iam.v3.ExplainedDenyResource explained_resources = 2; -
getExplainedResourcesBuilderList
List of resources with 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. The list of resources includes the policy for the resource itself, as well as policies that are inherited from higher levels of the resource hierarchy, including the organization, the folder, and the project. The order of the resources starts from the resource and climbs up the resource hierarchy. To learn more about the resource hierarchy, see https://cloud.google.com/iam/help/resource-hierarchy.
repeated .google.cloud.policytroubleshooter.iam.v3.ExplainedDenyResource explained_resources = 2; -
getRelevanceValue
public int getRelevanceValue()The relevance of the deny policy result to the overall access state.
.google.cloud.policytroubleshooter.iam.v3.HeuristicRelevance relevance = 3;- Specified by:
getRelevanceValuein interfaceDenyPolicyExplanationOrBuilder- Returns:
- The enum numeric value on the wire for relevance.
-
setRelevanceValue
The relevance of the deny policy result to the overall access state.
.google.cloud.policytroubleshooter.iam.v3.HeuristicRelevance relevance = 3;- Parameters:
value- The enum numeric value on the wire for relevance to set.- Returns:
- This builder for chaining.
-
getRelevance
The relevance of the deny policy result to the overall access state.
.google.cloud.policytroubleshooter.iam.v3.HeuristicRelevance relevance = 3;- Specified by:
getRelevancein interfaceDenyPolicyExplanationOrBuilder- Returns:
- The relevance.
-
setRelevance
The relevance of the deny policy result to the overall access state.
.google.cloud.policytroubleshooter.iam.v3.HeuristicRelevance relevance = 3;- Parameters:
value- The relevance to set.- Returns:
- This builder for chaining.
-
clearRelevance
The relevance of the deny policy result to the overall access state.
.google.cloud.policytroubleshooter.iam.v3.HeuristicRelevance relevance = 3;- Returns:
- This builder for chaining.
-
getPermissionDeniable
public boolean getPermissionDeniable()Indicates whether the permission to troubleshoot is supported in deny policies.
bool permission_deniable = 4;- Specified by:
getPermissionDeniablein interfaceDenyPolicyExplanationOrBuilder- Returns:
- The permissionDeniable.
-
setPermissionDeniable
Indicates whether the permission to troubleshoot is supported in deny policies.
bool permission_deniable = 4;- Parameters:
value- The permissionDeniable to set.- Returns:
- This builder for chaining.
-
clearPermissionDeniable
Indicates whether the permission to troubleshoot is supported in deny policies.
bool permission_deniable = 4;- Returns:
- This builder for chaining.
-