Class AllowPolicyExplanation.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<AllowPolicyExplanation.Builder>
com.google.cloud.policytroubleshooter.iam.v3.AllowPolicyExplanation.Builder
- All Implemented Interfaces:
AllowPolicyExplanationOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- AllowPolicyExplanation
public static final class AllowPolicyExplanation.Builder
extends com.google.protobuf.GeneratedMessage.Builder<AllowPolicyExplanation.Builder>
implements AllowPolicyExplanationOrBuilder
Details about how the relevant IAM allow policies affect the final access state.Protobuf type
google.cloud.policytroubleshooter.iam.v3.AllowPolicyExplanation-
Method Summary
Modifier and TypeMethodDescriptionaddAllExplainedPolicies(Iterable<? extends ExplainedAllowPolicy> values) List of IAM allow policies that were evaluated to check the principal's permissions, with annotations to indicate how each policy contributed to the final result.addExplainedPolicies(int index, ExplainedAllowPolicy value) List of IAM allow policies that were evaluated to check the principal's permissions, with annotations to indicate how each policy contributed to the final result.addExplainedPolicies(int index, ExplainedAllowPolicy.Builder builderForValue) List of IAM allow policies that were evaluated to check the principal's permissions, with annotations to indicate how each policy contributed to the final result.List of IAM allow policies that were evaluated to check the principal's permissions, with annotations to indicate how each policy contributed to the final result.addExplainedPolicies(ExplainedAllowPolicy.Builder builderForValue) List of IAM allow policies that were evaluated to check the principal's permissions, with annotations to indicate how each policy contributed to the final result.List of IAM allow policies that were evaluated to check the principal's permissions, with annotations to indicate how each policy contributed to the final result.addExplainedPoliciesBuilder(int index) List of IAM allow policies that were evaluated to check the principal's permissions, with annotations to indicate how each policy contributed to the final result.build()clear()Indicates whether the principal has the specified permission for the specified resource, based on evaluating all applicable IAM allow policies.List of IAM allow policies that were evaluated to check the principal's permissions, with annotations to indicate how each policy contributed to the final result.The relevance of the allow policy type to the overall access state.Indicates whether the principal has the specified permission for the specified resource, based on evaluating all applicable IAM allow policies.intIndicates whether the principal has the specified permission for the specified resource, based on evaluating all applicable IAM allow policies.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetExplainedPolicies(int index) List of IAM allow policies that were evaluated to check the principal's permissions, with annotations to indicate how each policy contributed to the final result.getExplainedPoliciesBuilder(int index) List of IAM allow policies that were evaluated to check the principal's permissions, with annotations to indicate how each policy contributed to the final result.List of IAM allow policies that were evaluated to check the principal's permissions, with annotations to indicate how each policy contributed to the final result.intList of IAM allow policies that were evaluated to check the principal's permissions, with annotations to indicate how each policy contributed to the final result.List of IAM allow policies that were evaluated to check the principal's permissions, with annotations to indicate how each policy contributed to the final result.getExplainedPoliciesOrBuilder(int index) List of IAM allow policies that were evaluated to check the principal's permissions, with annotations to indicate how each policy contributed to the final result.List<? extends ExplainedAllowPolicyOrBuilder>List of IAM allow policies that were evaluated to check the principal's permissions, with annotations to indicate how each policy contributed to the final result.The relevance of the allow policy type to the overall access state.intThe relevance of the allow policy type to the overall access state.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(AllowPolicyExplanation other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) removeExplainedPolicies(int index) List of IAM allow policies that were evaluated to check the principal's permissions, with annotations to indicate how each policy contributed to the final result.Indicates whether the principal has the specified permission for the specified resource, based on evaluating all applicable IAM allow policies.setAllowAccessStateValue(int value) Indicates whether the principal has the specified permission for the specified resource, based on evaluating all applicable IAM allow policies.setExplainedPolicies(int index, ExplainedAllowPolicy value) List of IAM allow policies that were evaluated to check the principal's permissions, with annotations to indicate how each policy contributed to the final result.setExplainedPolicies(int index, ExplainedAllowPolicy.Builder builderForValue) List of IAM allow policies that were evaluated to check the principal's permissions, with annotations to indicate how each policy contributed to the final result.setRelevance(HeuristicRelevance value) The relevance of the allow policy type to the overall access state.setRelevanceValue(int value) The relevance of the allow policy type 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<AllowPolicyExplanation.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<AllowPolicyExplanation.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<AllowPolicyExplanation.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<AllowPolicyExplanation.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<AllowPolicyExplanation.Builder>
-
mergeFrom
public AllowPolicyExplanation.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<AllowPolicyExplanation.Builder>- Throws:
IOException
-
getAllowAccessStateValue
public int getAllowAccessStateValue()Indicates whether the principal has the specified permission for the specified resource, based on evaluating all applicable IAM allow policies.
.google.cloud.policytroubleshooter.iam.v3.AllowAccessState allow_access_state = 1;- Specified by:
getAllowAccessStateValuein interfaceAllowPolicyExplanationOrBuilder- Returns:
- The enum numeric value on the wire for allowAccessState.
-
setAllowAccessStateValue
Indicates whether the principal has the specified permission for the specified resource, based on evaluating all applicable IAM allow policies.
.google.cloud.policytroubleshooter.iam.v3.AllowAccessState allow_access_state = 1;- Parameters:
value- The enum numeric value on the wire for allowAccessState to set.- Returns:
- This builder for chaining.
-
getAllowAccessState
Indicates whether the principal has the specified permission for the specified resource, based on evaluating all applicable IAM allow policies.
.google.cloud.policytroubleshooter.iam.v3.AllowAccessState allow_access_state = 1;- Specified by:
getAllowAccessStatein interfaceAllowPolicyExplanationOrBuilder- Returns:
- The allowAccessState.
-
setAllowAccessState
Indicates whether the principal has the specified permission for the specified resource, based on evaluating all applicable IAM allow policies.
.google.cloud.policytroubleshooter.iam.v3.AllowAccessState allow_access_state = 1;- Parameters:
value- The allowAccessState to set.- Returns:
- This builder for chaining.
-
clearAllowAccessState
Indicates whether the principal has the specified permission for the specified resource, based on evaluating all applicable IAM allow policies.
.google.cloud.policytroubleshooter.iam.v3.AllowAccessState allow_access_state = 1;- Returns:
- This builder for chaining.
-
getExplainedPoliciesList
List of IAM allow policies that were evaluated to check the principal's permissions, with annotations to indicate how each policy contributed to the final result. The list of policies includes the policy for the resource itself, as well as allow policies that are inherited from higher levels of the resource hierarchy, including the organization, the folder, and the project. To learn more about the resource hierarchy, see https://cloud.google.com/iam/help/resource-hierarchy.
repeated .google.cloud.policytroubleshooter.iam.v3.ExplainedAllowPolicy explained_policies = 2;- Specified by:
getExplainedPoliciesListin interfaceAllowPolicyExplanationOrBuilder
-
getExplainedPoliciesCount
public int getExplainedPoliciesCount()List of IAM allow policies that were evaluated to check the principal's permissions, with annotations to indicate how each policy contributed to the final result. The list of policies includes the policy for the resource itself, as well as allow policies that are inherited from higher levels of the resource hierarchy, including the organization, the folder, and the project. To learn more about the resource hierarchy, see https://cloud.google.com/iam/help/resource-hierarchy.
repeated .google.cloud.policytroubleshooter.iam.v3.ExplainedAllowPolicy explained_policies = 2;- Specified by:
getExplainedPoliciesCountin interfaceAllowPolicyExplanationOrBuilder
-
getExplainedPolicies
List of IAM allow policies that were evaluated to check the principal's permissions, with annotations to indicate how each policy contributed to the final result. The list of policies includes the policy for the resource itself, as well as allow policies that are inherited from higher levels of the resource hierarchy, including the organization, the folder, and the project. To learn more about the resource hierarchy, see https://cloud.google.com/iam/help/resource-hierarchy.
repeated .google.cloud.policytroubleshooter.iam.v3.ExplainedAllowPolicy explained_policies = 2;- Specified by:
getExplainedPoliciesin interfaceAllowPolicyExplanationOrBuilder
-
setExplainedPolicies
List of IAM allow policies that were evaluated to check the principal's permissions, with annotations to indicate how each policy contributed to the final result. The list of policies includes the policy for the resource itself, as well as allow policies that are inherited from higher levels of the resource hierarchy, including the organization, the folder, and the project. To learn more about the resource hierarchy, see https://cloud.google.com/iam/help/resource-hierarchy.
repeated .google.cloud.policytroubleshooter.iam.v3.ExplainedAllowPolicy explained_policies = 2; -
setExplainedPolicies
public AllowPolicyExplanation.Builder setExplainedPolicies(int index, ExplainedAllowPolicy.Builder builderForValue) List of IAM allow policies that were evaluated to check the principal's permissions, with annotations to indicate how each policy contributed to the final result. The list of policies includes the policy for the resource itself, as well as allow policies that are inherited from higher levels of the resource hierarchy, including the organization, the folder, and the project. To learn more about the resource hierarchy, see https://cloud.google.com/iam/help/resource-hierarchy.
repeated .google.cloud.policytroubleshooter.iam.v3.ExplainedAllowPolicy explained_policies = 2; -
addExplainedPolicies
List of IAM allow policies that were evaluated to check the principal's permissions, with annotations to indicate how each policy contributed to the final result. The list of policies includes the policy for the resource itself, as well as allow policies that are inherited from higher levels of the resource hierarchy, including the organization, the folder, and the project. To learn more about the resource hierarchy, see https://cloud.google.com/iam/help/resource-hierarchy.
repeated .google.cloud.policytroubleshooter.iam.v3.ExplainedAllowPolicy explained_policies = 2; -
addExplainedPolicies
List of IAM allow policies that were evaluated to check the principal's permissions, with annotations to indicate how each policy contributed to the final result. The list of policies includes the policy for the resource itself, as well as allow policies that are inherited from higher levels of the resource hierarchy, including the organization, the folder, and the project. To learn more about the resource hierarchy, see https://cloud.google.com/iam/help/resource-hierarchy.
repeated .google.cloud.policytroubleshooter.iam.v3.ExplainedAllowPolicy explained_policies = 2; -
addExplainedPolicies
public AllowPolicyExplanation.Builder addExplainedPolicies(ExplainedAllowPolicy.Builder builderForValue) List of IAM allow policies that were evaluated to check the principal's permissions, with annotations to indicate how each policy contributed to the final result. The list of policies includes the policy for the resource itself, as well as allow policies that are inherited from higher levels of the resource hierarchy, including the organization, the folder, and the project. To learn more about the resource hierarchy, see https://cloud.google.com/iam/help/resource-hierarchy.
repeated .google.cloud.policytroubleshooter.iam.v3.ExplainedAllowPolicy explained_policies = 2; -
addExplainedPolicies
public AllowPolicyExplanation.Builder addExplainedPolicies(int index, ExplainedAllowPolicy.Builder builderForValue) List of IAM allow policies that were evaluated to check the principal's permissions, with annotations to indicate how each policy contributed to the final result. The list of policies includes the policy for the resource itself, as well as allow policies that are inherited from higher levels of the resource hierarchy, including the organization, the folder, and the project. To learn more about the resource hierarchy, see https://cloud.google.com/iam/help/resource-hierarchy.
repeated .google.cloud.policytroubleshooter.iam.v3.ExplainedAllowPolicy explained_policies = 2; -
addAllExplainedPolicies
public AllowPolicyExplanation.Builder addAllExplainedPolicies(Iterable<? extends ExplainedAllowPolicy> values) List of IAM allow policies that were evaluated to check the principal's permissions, with annotations to indicate how each policy contributed to the final result. The list of policies includes the policy for the resource itself, as well as allow policies that are inherited from higher levels of the resource hierarchy, including the organization, the folder, and the project. To learn more about the resource hierarchy, see https://cloud.google.com/iam/help/resource-hierarchy.
repeated .google.cloud.policytroubleshooter.iam.v3.ExplainedAllowPolicy explained_policies = 2; -
clearExplainedPolicies
List of IAM allow policies that were evaluated to check the principal's permissions, with annotations to indicate how each policy contributed to the final result. The list of policies includes the policy for the resource itself, as well as allow policies that are inherited from higher levels of the resource hierarchy, including the organization, the folder, and the project. To learn more about the resource hierarchy, see https://cloud.google.com/iam/help/resource-hierarchy.
repeated .google.cloud.policytroubleshooter.iam.v3.ExplainedAllowPolicy explained_policies = 2; -
removeExplainedPolicies
List of IAM allow policies that were evaluated to check the principal's permissions, with annotations to indicate how each policy contributed to the final result. The list of policies includes the policy for the resource itself, as well as allow policies that are inherited from higher levels of the resource hierarchy, including the organization, the folder, and the project. To learn more about the resource hierarchy, see https://cloud.google.com/iam/help/resource-hierarchy.
repeated .google.cloud.policytroubleshooter.iam.v3.ExplainedAllowPolicy explained_policies = 2; -
getExplainedPoliciesBuilder
List of IAM allow policies that were evaluated to check the principal's permissions, with annotations to indicate how each policy contributed to the final result. The list of policies includes the policy for the resource itself, as well as allow policies that are inherited from higher levels of the resource hierarchy, including the organization, the folder, and the project. To learn more about the resource hierarchy, see https://cloud.google.com/iam/help/resource-hierarchy.
repeated .google.cloud.policytroubleshooter.iam.v3.ExplainedAllowPolicy explained_policies = 2; -
getExplainedPoliciesOrBuilder
List of IAM allow policies that were evaluated to check the principal's permissions, with annotations to indicate how each policy contributed to the final result. The list of policies includes the policy for the resource itself, as well as allow policies that are inherited from higher levels of the resource hierarchy, including the organization, the folder, and the project. To learn more about the resource hierarchy, see https://cloud.google.com/iam/help/resource-hierarchy.
repeated .google.cloud.policytroubleshooter.iam.v3.ExplainedAllowPolicy explained_policies = 2;- Specified by:
getExplainedPoliciesOrBuilderin interfaceAllowPolicyExplanationOrBuilder
-
getExplainedPoliciesOrBuilderList
List of IAM allow policies that were evaluated to check the principal's permissions, with annotations to indicate how each policy contributed to the final result. The list of policies includes the policy for the resource itself, as well as allow policies that are inherited from higher levels of the resource hierarchy, including the organization, the folder, and the project. To learn more about the resource hierarchy, see https://cloud.google.com/iam/help/resource-hierarchy.
repeated .google.cloud.policytroubleshooter.iam.v3.ExplainedAllowPolicy explained_policies = 2;- Specified by:
getExplainedPoliciesOrBuilderListin interfaceAllowPolicyExplanationOrBuilder
-
addExplainedPoliciesBuilder
List of IAM allow policies that were evaluated to check the principal's permissions, with annotations to indicate how each policy contributed to the final result. The list of policies includes the policy for the resource itself, as well as allow policies that are inherited from higher levels of the resource hierarchy, including the organization, the folder, and the project. To learn more about the resource hierarchy, see https://cloud.google.com/iam/help/resource-hierarchy.
repeated .google.cloud.policytroubleshooter.iam.v3.ExplainedAllowPolicy explained_policies = 2; -
addExplainedPoliciesBuilder
List of IAM allow policies that were evaluated to check the principal's permissions, with annotations to indicate how each policy contributed to the final result. The list of policies includes the policy for the resource itself, as well as allow policies that are inherited from higher levels of the resource hierarchy, including the organization, the folder, and the project. To learn more about the resource hierarchy, see https://cloud.google.com/iam/help/resource-hierarchy.
repeated .google.cloud.policytroubleshooter.iam.v3.ExplainedAllowPolicy explained_policies = 2; -
getExplainedPoliciesBuilderList
List of IAM allow policies that were evaluated to check the principal's permissions, with annotations to indicate how each policy contributed to the final result. The list of policies includes the policy for the resource itself, as well as allow policies that are inherited from higher levels of the resource hierarchy, including the organization, the folder, and the project. To learn more about the resource hierarchy, see https://cloud.google.com/iam/help/resource-hierarchy.
repeated .google.cloud.policytroubleshooter.iam.v3.ExplainedAllowPolicy explained_policies = 2; -
getRelevanceValue
public int getRelevanceValue()The relevance of the allow policy type to the overall access state.
.google.cloud.policytroubleshooter.iam.v3.HeuristicRelevance relevance = 3;- Specified by:
getRelevanceValuein interfaceAllowPolicyExplanationOrBuilder- Returns:
- The enum numeric value on the wire for relevance.
-
setRelevanceValue
The relevance of the allow policy type 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 allow policy type to the overall access state.
.google.cloud.policytroubleshooter.iam.v3.HeuristicRelevance relevance = 3;- Specified by:
getRelevancein interfaceAllowPolicyExplanationOrBuilder- Returns:
- The relevance.
-
setRelevance
The relevance of the allow policy type 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 allow policy type to the overall access state.
.google.cloud.policytroubleshooter.iam.v3.HeuristicRelevance relevance = 3;- Returns:
- This builder for chaining.
-