Class TroubleshootIamPolicyResponse.Builder (1.36.0)

public static final class TroubleshootIamPolicyResponse.Builder extends GeneratedMessageV3.Builder<TroubleshootIamPolicyResponse.Builder> implements TroubleshootIamPolicyResponseOrBuilder

Response for TroubleshootIamPolicy.

Protobuf type google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyResponse

com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)

Static Methods

getDescriptor()

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

Methods

addAllErrors(Iterable<? extends Status> values)

public TroubleshootIamPolicyResponse.Builder addAllErrors(Iterable<? extends Status> values)

The general errors contained in the troubleshooting response.

repeated .google.rpc.Status errors = 3;

Parameter
NameDescription
valuesIterable<? extends com.google.rpc.Status>

addAllExplainedPolicies(Iterable<? extends Explanations.ExplainedPolicy> values)

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;

Parameter
NameDescription
valuesIterable<? extends google.cloud.policytroubleshooter.v1.Explanations.ExplainedPolicy>

addErrors(Status value)

public TroubleshootIamPolicyResponse.Builder addErrors(Status value)

The general errors contained in the troubleshooting response.

repeated .google.rpc.Status errors = 3;

Parameter
NameDescription
valuecom.google.rpc.Status

addErrors(Status.Builder builderForValue)

public TroubleshootIamPolicyResponse.Builder addErrors(Status.Builder builderForValue)

The general errors contained in the troubleshooting response.

repeated .google.rpc.Status errors = 3;

Parameter
NameDescription
builderForValuecom.google.rpc.Status.Builder

addErrors(int index, Status value)

public TroubleshootIamPolicyResponse.Builder addErrors(int index, Status value)

The general errors contained in the troubleshooting response.

repeated .google.rpc.Status errors = 3;

Parameters
NameDescription
indexint
valuecom.google.rpc.Status

addErrors(int index, Status.Builder builderForValue)

public TroubleshootIamPolicyResponse.Builder addErrors(int index, Status.Builder builderForValue)

The general errors contained in the troubleshooting response.

repeated .google.rpc.Status errors = 3;

Parameters
NameDescription
indexint
builderForValuecom.google.rpc.Status.Builder

addErrorsBuilder()

public Status.Builder addErrorsBuilder()

The general errors contained in the troubleshooting response.

repeated .google.rpc.Status errors = 3;

Returns
TypeDescription
com.google.rpc.Status.Builder

addErrorsBuilder(int index)

public Status.Builder addErrorsBuilder(int index)

The general errors contained in the troubleshooting response.

repeated .google.rpc.Status errors = 3;

Parameter
NameDescription
indexint
Returns
TypeDescription
com.google.rpc.Status.Builder

addExplainedPolicies(Explanations.ExplainedPolicy value)

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;

Parameter
NameDescription
valueExplanations.ExplainedPolicy

addExplainedPolicies(Explanations.ExplainedPolicy.Builder builderForValue)

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;

Parameter
NameDescription
builderForValueExplanations.ExplainedPolicy.Builder

addExplainedPolicies(int index, Explanations.ExplainedPolicy value)

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;

Parameters
NameDescription
indexint
valueExplanations.ExplainedPolicy

addExplainedPolicies(int index, Explanations.ExplainedPolicy.Builder builderForValue)

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;

Parameters
NameDescription
indexint
builderForValueExplanations.ExplainedPolicy.Builder

addExplainedPoliciesBuilder()

public Explanations.ExplainedPolicy.Builder 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(int index)

public Explanations.ExplainedPolicy.Builder 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.

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;

Parameter
NameDescription
indexint

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public TroubleshootIamPolicyResponse build()
Returns
TypeDescription
TroubleshootIamPolicyResponse

buildPartial()

public TroubleshootIamPolicyResponse buildPartial()
Returns
TypeDescription
TroubleshootIamPolicyResponse

clear()

public TroubleshootIamPolicyResponse.Builder clear()
Overrides

clearAccess()

public TroubleshootIamPolicyResponse.Builder 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
TypeDescription
TroubleshootIamPolicyResponse.Builder

This builder for chaining.

clearErrors()

public TroubleshootIamPolicyResponse.Builder clearErrors()

The general errors contained in the troubleshooting response.

repeated .google.rpc.Status errors = 3;

clearExplainedPolicies()

public TroubleshootIamPolicyResponse.Builder 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;

clearField(Descriptors.FieldDescriptor field)

public TroubleshootIamPolicyResponse.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public TroubleshootIamPolicyResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Overrides

clone()

public TroubleshootIamPolicyResponse.Builder clone()
Overrides

getAccess()

public Explanations.AccessState 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;

Returns
TypeDescription
Explanations.AccessState

The access.

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;

Returns
TypeDescription
int

The enum numeric value on the wire for access.

getDefaultInstanceForType()

public TroubleshootIamPolicyResponse getDefaultInstanceForType()
Returns
TypeDescription
TroubleshootIamPolicyResponse

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getErrors(int index)

public Status getErrors(int index)

The general errors contained in the troubleshooting response.

repeated .google.rpc.Status errors = 3;

Parameter
NameDescription
indexint
Returns
TypeDescription
com.google.rpc.Status

getErrorsBuilder(int index)

public Status.Builder getErrorsBuilder(int index)

The general errors contained in the troubleshooting response.

repeated .google.rpc.Status errors = 3;

Parameter
NameDescription
indexint
Returns
TypeDescription
com.google.rpc.Status.Builder

getErrorsBuilderList()

public List<Status.Builder> getErrorsBuilderList()

The general errors contained in the troubleshooting response.

repeated .google.rpc.Status errors = 3;

Returns
TypeDescription
List<com.google.rpc.Status.Builder>

getErrorsCount()

public int getErrorsCount()

The general errors contained in the troubleshooting response.

repeated .google.rpc.Status errors = 3;

Returns
TypeDescription
int

getErrorsList()

public List<Status> getErrorsList()

The general errors contained in the troubleshooting response.

repeated .google.rpc.Status errors = 3;

Returns
TypeDescription
List<com.google.rpc.Status>

getErrorsOrBuilder(int index)

public StatusOrBuilder getErrorsOrBuilder(int index)

The general errors contained in the troubleshooting response.

repeated .google.rpc.Status errors = 3;

Parameter
NameDescription
indexint
Returns
TypeDescription
com.google.rpc.StatusOrBuilder

getErrorsOrBuilderList()

public List<? extends StatusOrBuilder> getErrorsOrBuilderList()

The general errors contained in the troubleshooting response.

repeated .google.rpc.Status errors = 3;

Returns
TypeDescription
List<? extends com.google.rpc.StatusOrBuilder>

getExplainedPolicies(int index)

public Explanations.ExplainedPolicy 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.

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;

Parameter
NameDescription
indexint
Returns
TypeDescription
Explanations.ExplainedPolicy

getExplainedPoliciesBuilder(int index)

public Explanations.ExplainedPolicy.Builder 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.

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;

Parameter
NameDescription
indexint

getExplainedPoliciesBuilderList()

public List<Explanations.ExplainedPolicy.Builder> 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;

Returns
TypeDescription
List<Builder>

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;

Returns
TypeDescription
int

getExplainedPoliciesList()

public List<Explanations.ExplainedPolicy> 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;

Returns
TypeDescription
List<ExplainedPolicy>

getExplainedPoliciesOrBuilder(int index)

public Explanations.ExplainedPolicyOrBuilder 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.

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;

Parameter
NameDescription
indexint

getExplainedPoliciesOrBuilderList()

public List<? extends Explanations.ExplainedPolicyOrBuilder> 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;

Returns
TypeDescription
List<? extends google.cloud.policytroubleshooter.v1.Explanations.ExplainedPolicyOrBuilder>

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(TroubleshootIamPolicyResponse other)

public TroubleshootIamPolicyResponse.Builder mergeFrom(TroubleshootIamPolicyResponse other)
Parameter
NameDescription
otherTroubleshootIamPolicyResponse

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public TroubleshootIamPolicyResponse.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final TroubleshootIamPolicyResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Overrides

removeErrors(int index)

public TroubleshootIamPolicyResponse.Builder removeErrors(int index)

The general errors contained in the troubleshooting response.

repeated .google.rpc.Status errors = 3;

Parameter
NameDescription
indexint

removeExplainedPolicies(int index)

public TroubleshootIamPolicyResponse.Builder 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.

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;

Parameter
NameDescription
indexint

setAccess(Explanations.AccessState value)

public TroubleshootIamPolicyResponse.Builder setAccess(Explanations.AccessState value)

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;

Parameter
NameDescription
valueExplanations.AccessState

The access to set.

Returns
TypeDescription
TroubleshootIamPolicyResponse.Builder

This builder for chaining.

setAccessValue(int value)

public TroubleshootIamPolicyResponse.Builder setAccessValue(int value)

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;

Parameter
NameDescription
valueint

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

Returns
TypeDescription
TroubleshootIamPolicyResponse.Builder

This builder for chaining.

setErrors(int index, Status value)

public TroubleshootIamPolicyResponse.Builder setErrors(int index, Status value)

The general errors contained in the troubleshooting response.

repeated .google.rpc.Status errors = 3;

Parameters
NameDescription
indexint
valuecom.google.rpc.Status

setErrors(int index, Status.Builder builderForValue)

public TroubleshootIamPolicyResponse.Builder setErrors(int index, Status.Builder builderForValue)

The general errors contained in the troubleshooting response.

repeated .google.rpc.Status errors = 3;

Parameters
NameDescription
indexint
builderForValuecom.google.rpc.Status.Builder

setExplainedPolicies(int index, Explanations.ExplainedPolicy value)

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;

Parameters
NameDescription
indexint
valueExplanations.ExplainedPolicy

setExplainedPolicies(int index, Explanations.ExplainedPolicy.Builder builderForValue)

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;

Parameters
NameDescription
indexint
builderForValueExplanations.ExplainedPolicy.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

public final TroubleshootIamPolicyResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Overrides