Class TroubleshootIamPolicyResponse.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<TroubleshootIamPolicyResponse.Builder>
com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyResponse.Builder
- All Implemented Interfaces:
TroubleshootIamPolicyResponseOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- TroubleshootIamPolicyResponse
public static final class TroubleshootIamPolicyResponse.Builder
extends com.google.protobuf.GeneratedMessage.Builder<TroubleshootIamPolicyResponse.Builder>
implements TroubleshootIamPolicyResponseOrBuilder
Response for [TroubleshootIamPolicy][google.cloud.policytroubleshooter.v1.IamChecker.TroubleshootIamPolicy].Protobuf type
google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyResponse-
Method Summary
Modifier and TypeMethodDescriptionaddAllErrors(Iterable<? extends Status> values) The general errors contained in the troubleshooting response.addAllExplainedPolicies(Iterable<? extends Explanations.ExplainedPolicy> values) List of IAM policies that were evaluated to check the principal's permissions, with annotations to indicate how each policy contributed to the final result.The general errors contained in the troubleshooting response.addErrors(int index, Status.Builder builderForValue) The general errors contained in the troubleshooting response.The general errors contained in the troubleshooting response.addErrors(Status.Builder builderForValue) The general errors contained in the troubleshooting response.The general errors contained in the troubleshooting response.addErrorsBuilder(int index) The general errors contained in the troubleshooting response.addExplainedPolicies(int index, Explanations.ExplainedPolicy value) List of IAM 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, Explanations.ExplainedPolicy.Builder builderForValue) List of IAM 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 policies that were evaluated to check the principal's permissions, with annotations to indicate how each policy contributed to the final result.addExplainedPolicies(Explanations.ExplainedPolicy.Builder builderForValue) List of IAM 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 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 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 of the applicable IAM policies.The general errors contained in the troubleshooting response.List of IAM 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 of the applicable IAM policies.intIndicates whether the principal has the specified permission for the specified resource, based on evaluating all of the applicable IAM policies.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetErrors(int index) The general errors contained in the troubleshooting response.getErrorsBuilder(int index) The general errors contained in the troubleshooting response.The general errors contained in the troubleshooting response.intThe general errors contained in the troubleshooting response.The general errors contained in the troubleshooting response.getErrorsOrBuilder(int index) The general errors contained in the troubleshooting response.List<? extends StatusOrBuilder>The general errors contained in the troubleshooting response.getExplainedPolicies(int index) List of IAM 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 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 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 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 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 policies that were evaluated to check the principal's permissions, with annotations to indicate how each policy contributed to the final result.List<? extends Explanations.ExplainedPolicyOrBuilder>List of IAM policies that were evaluated to check the principal's permissions, with annotations to indicate how each policy contributed to the final result.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) removeErrors(int index) The general errors contained in the troubleshooting response.removeExplainedPolicies(int index) List of IAM 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 of the applicable IAM policies.setAccessValue(int value) Indicates whether the principal has the specified permission for the specified resource, based on evaluating all of the applicable IAM policies.The general errors contained in the troubleshooting response.setErrors(int index, Status.Builder builderForValue) The general errors contained in the troubleshooting response.setExplainedPolicies(int index, Explanations.ExplainedPolicy value) List of IAM 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, Explanations.ExplainedPolicy.Builder builderForValue) List of IAM policies that were evaluated to check the principal's permissions, with annotations to indicate how each policy contributed to the final result.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<TroubleshootIamPolicyResponse.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<TroubleshootIamPolicyResponse.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<TroubleshootIamPolicyResponse.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<TroubleshootIamPolicyResponse.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<TroubleshootIamPolicyResponse.Builder>
-
mergeFrom
public TroubleshootIamPolicyResponse.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<TroubleshootIamPolicyResponse.Builder>- Throws:
IOException
-
getAccessValue
public int getAccessValue()Indicates whether the principal has the specified permission for the specified resource, based on evaluating all of the applicable IAM policies.
.google.cloud.policytroubleshooter.v1.AccessState access = 1;- Specified by:
getAccessValuein interfaceTroubleshootIamPolicyResponseOrBuilder- Returns:
- The enum numeric value on the wire for access.
-
setAccessValue
Indicates whether the principal has the specified permission for the specified resource, based on evaluating all of the applicable IAM policies.
.google.cloud.policytroubleshooter.v1.AccessState access = 1;- Parameters:
value- The enum numeric value on the wire for access to set.- Returns:
- This builder for chaining.
-
getAccess
Indicates whether the principal has the specified permission for the specified resource, based on evaluating all of the applicable IAM policies.
.google.cloud.policytroubleshooter.v1.AccessState access = 1;- Specified by:
getAccessin interfaceTroubleshootIamPolicyResponseOrBuilder- Returns:
- The access.
-
setAccess
Indicates whether the principal has the specified permission for the specified resource, based on evaluating all of the applicable IAM policies.
.google.cloud.policytroubleshooter.v1.AccessState access = 1;- Parameters:
value- The access to set.- Returns:
- This builder for chaining.
-
clearAccess
Indicates whether the principal has the specified permission for the specified resource, based on evaluating all of the applicable IAM policies.
.google.cloud.policytroubleshooter.v1.AccessState access = 1;- Returns:
- This builder for chaining.
-
getExplainedPoliciesList
List of IAM 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 can include the policy for the resource itself. It can also include 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.v1.ExplainedPolicy explained_policies = 2;- Specified by:
getExplainedPoliciesListin interfaceTroubleshootIamPolicyResponseOrBuilder
-
getExplainedPoliciesCount
public int getExplainedPoliciesCount()List of IAM 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 can include the policy for the resource itself. It can also include 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.v1.ExplainedPolicy explained_policies = 2;- Specified by:
getExplainedPoliciesCountin interfaceTroubleshootIamPolicyResponseOrBuilder
-
getExplainedPolicies
List of IAM 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 can include the policy for the resource itself. It can also include 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.v1.ExplainedPolicy explained_policies = 2;- Specified by:
getExplainedPoliciesin interfaceTroubleshootIamPolicyResponseOrBuilder
-
setExplainedPolicies
public TroubleshootIamPolicyResponse.Builder setExplainedPolicies(int index, Explanations.ExplainedPolicy value) List of IAM 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 can include the policy for the resource itself. It can also include 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.v1.ExplainedPolicy explained_policies = 2; -
setExplainedPolicies
public TroubleshootIamPolicyResponse.Builder setExplainedPolicies(int index, Explanations.ExplainedPolicy.Builder builderForValue) List of IAM 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 can include the policy for the resource itself. It can also include 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.v1.ExplainedPolicy explained_policies = 2; -
addExplainedPolicies
public TroubleshootIamPolicyResponse.Builder addExplainedPolicies(Explanations.ExplainedPolicy value) List of IAM 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 can include the policy for the resource itself. It can also include 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.v1.ExplainedPolicy explained_policies = 2; -
addExplainedPolicies
public TroubleshootIamPolicyResponse.Builder addExplainedPolicies(int index, Explanations.ExplainedPolicy value) List of IAM 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 can include the policy for the resource itself. It can also include 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.v1.ExplainedPolicy explained_policies = 2; -
addExplainedPolicies
public TroubleshootIamPolicyResponse.Builder addExplainedPolicies(Explanations.ExplainedPolicy.Builder builderForValue) List of IAM 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 can include the policy for the resource itself. It can also include 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.v1.ExplainedPolicy explained_policies = 2; -
addExplainedPolicies
public TroubleshootIamPolicyResponse.Builder addExplainedPolicies(int index, Explanations.ExplainedPolicy.Builder builderForValue) List of IAM 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 can include the policy for the resource itself. It can also include 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.v1.ExplainedPolicy explained_policies = 2; -
addAllExplainedPolicies
public TroubleshootIamPolicyResponse.Builder addAllExplainedPolicies(Iterable<? extends Explanations.ExplainedPolicy> values) List of IAM 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 can include the policy for the resource itself. It can also include 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.v1.ExplainedPolicy explained_policies = 2; -
clearExplainedPolicies
List of IAM 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 can include the policy for the resource itself. It can also include 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.v1.ExplainedPolicy explained_policies = 2; -
removeExplainedPolicies
List of IAM 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 can include the policy for the resource itself. It can also include 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.v1.ExplainedPolicy explained_policies = 2; -
getExplainedPoliciesBuilder
List of IAM 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 can include the policy for the resource itself. It can also include 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.v1.ExplainedPolicy explained_policies = 2; -
getExplainedPoliciesOrBuilder
List of IAM 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 can include the policy for the resource itself. It can also include 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.v1.ExplainedPolicy explained_policies = 2;- Specified by:
getExplainedPoliciesOrBuilderin interfaceTroubleshootIamPolicyResponseOrBuilder
-
getExplainedPoliciesOrBuilderList
List of IAM 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 can include the policy for the resource itself. It can also include 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.v1.ExplainedPolicy explained_policies = 2;- Specified by:
getExplainedPoliciesOrBuilderListin interfaceTroubleshootIamPolicyResponseOrBuilder
-
addExplainedPoliciesBuilder
List of IAM 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 can include the policy for the resource itself. It can also include 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.v1.ExplainedPolicy explained_policies = 2; -
addExplainedPoliciesBuilder
List of IAM 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 can include the policy for the resource itself. It can also include 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.v1.ExplainedPolicy explained_policies = 2; -
getExplainedPoliciesBuilderList
List of IAM 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 can include the policy for the resource itself. It can also include 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.v1.ExplainedPolicy explained_policies = 2; -
getErrorsList
The general errors contained in the troubleshooting response.
repeated .google.rpc.Status errors = 3;- Specified by:
getErrorsListin interfaceTroubleshootIamPolicyResponseOrBuilder
-
getErrorsCount
public int getErrorsCount()The general errors contained in the troubleshooting response.
repeated .google.rpc.Status errors = 3;- Specified by:
getErrorsCountin interfaceTroubleshootIamPolicyResponseOrBuilder
-
getErrors
The general errors contained in the troubleshooting response.
repeated .google.rpc.Status errors = 3;- Specified by:
getErrorsin interfaceTroubleshootIamPolicyResponseOrBuilder
-
setErrors
The general errors contained in the troubleshooting response.
repeated .google.rpc.Status errors = 3; -
setErrors
The general errors contained in the troubleshooting response.
repeated .google.rpc.Status errors = 3; -
addErrors
The general errors contained in the troubleshooting response.
repeated .google.rpc.Status errors = 3; -
addErrors
The general errors contained in the troubleshooting response.
repeated .google.rpc.Status errors = 3; -
addErrors
The general errors contained in the troubleshooting response.
repeated .google.rpc.Status errors = 3; -
addErrors
The general errors contained in the troubleshooting response.
repeated .google.rpc.Status errors = 3; -
addAllErrors
The general errors contained in the troubleshooting response.
repeated .google.rpc.Status errors = 3; -
clearErrors
The general errors contained in the troubleshooting response.
repeated .google.rpc.Status errors = 3; -
removeErrors
The general errors contained in the troubleshooting response.
repeated .google.rpc.Status errors = 3; -
getErrorsBuilder
The general errors contained in the troubleshooting response.
repeated .google.rpc.Status errors = 3; -
getErrorsOrBuilder
The general errors contained in the troubleshooting response.
repeated .google.rpc.Status errors = 3;- Specified by:
getErrorsOrBuilderin interfaceTroubleshootIamPolicyResponseOrBuilder
-
getErrorsOrBuilderList
The general errors contained in the troubleshooting response.
repeated .google.rpc.Status errors = 3;- Specified by:
getErrorsOrBuilderListin interfaceTroubleshootIamPolicyResponseOrBuilder
-
addErrorsBuilder
The general errors contained in the troubleshooting response.
repeated .google.rpc.Status errors = 3; -
addErrorsBuilder
The general errors contained in the troubleshooting response.
repeated .google.rpc.Status errors = 3; -
getErrorsBuilderList
The general errors contained in the troubleshooting response.
repeated .google.rpc.Status errors = 3;
-