public static final class TroubleshootIamPolicyResponse.Builder extends GeneratedMessageV3.Builder<TroubleshootIamPolicyResponse.Builder> implements TroubleshootIamPolicyResponseOrBuilder
Response for TroubleshootIamPolicy.
Protobuf type google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyResponse
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
Methods
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 member'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
Name | Description |
values | Iterable<? extends google.cloud.policytroubleshooter.v1.Explanations.ExplainedPolicy>
|
Returns
addExplainedPolicies(Explanations.ExplainedPolicy value)
public TroubleshootIamPolicyResponse.Builder addExplainedPolicies(Explanations.ExplainedPolicy value)
List of IAM policies that were evaluated to check the member'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
Returns
addExplainedPolicies(Explanations.ExplainedPolicy.Builder builderForValue)
public TroubleshootIamPolicyResponse.Builder addExplainedPolicies(Explanations.ExplainedPolicy.Builder builderForValue)
List of IAM policies that were evaluated to check the member'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
Returns
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 member'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
Returns
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 member'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
Returns
addExplainedPoliciesBuilder()
public Explanations.ExplainedPolicy.Builder addExplainedPoliciesBuilder()
List of IAM policies that were evaluated to check the member'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
addExplainedPoliciesBuilder(int index)
public Explanations.ExplainedPolicy.Builder addExplainedPoliciesBuilder(int index)
List of IAM policies that were evaluated to check the member'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
Returns
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public TroubleshootIamPolicyResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public TroubleshootIamPolicyResponse build()
Returns
buildPartial()
public TroubleshootIamPolicyResponse buildPartial()
Returns
clear()
public TroubleshootIamPolicyResponse.Builder clear()
Returns
Overrides
clearAccess()
public TroubleshootIamPolicyResponse.Builder clearAccess()
Indicates whether the member 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
clearExplainedPolicies()
public TroubleshootIamPolicyResponse.Builder clearExplainedPolicies()
List of IAM policies that were evaluated to check the member'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
clearField(Descriptors.FieldDescriptor field)
public TroubleshootIamPolicyResponse.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public TroubleshootIamPolicyResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
clone()
public TroubleshootIamPolicyResponse.Builder clone()
Returns
Overrides
getAccess()
public Explanations.AccessState getAccess()
Indicates whether the member 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
getAccessValue()
public int getAccessValue()
Indicates whether the member 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
Type | Description |
int | The enum numeric value on the wire for access.
|
getDefaultInstanceForType()
public TroubleshootIamPolicyResponse getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
getExplainedPolicies(int index)
public Explanations.ExplainedPolicy getExplainedPolicies(int index)
List of IAM policies that were evaluated to check the member'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
Returns
getExplainedPoliciesBuilder(int index)
public Explanations.ExplainedPolicy.Builder getExplainedPoliciesBuilder(int index)
List of IAM policies that were evaluated to check the member'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
Returns
getExplainedPoliciesBuilderList()
public List<Explanations.ExplainedPolicy.Builder> getExplainedPoliciesBuilderList()
List of IAM policies that were evaluated to check the member'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
getExplainedPoliciesCount()
public int getExplainedPoliciesCount()
List of IAM policies that were evaluated to check the member'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
getExplainedPoliciesList()
public List<Explanations.ExplainedPolicy> getExplainedPoliciesList()
List of IAM policies that were evaluated to check the member'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
getExplainedPoliciesOrBuilder(int index)
public Explanations.ExplainedPolicyOrBuilder getExplainedPoliciesOrBuilder(int index)
List of IAM policies that were evaluated to check the member'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
Returns
getExplainedPoliciesOrBuilderList()
public List<? extends Explanations.ExplainedPolicyOrBuilder> getExplainedPoliciesOrBuilderList()
List of IAM policies that were evaluated to check the member'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
Type | Description |
List<? extends google.cloud.policytroubleshooter.v1.Explanations.ExplainedPolicyOrBuilder> | |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeFrom(TroubleshootIamPolicyResponse other)
public TroubleshootIamPolicyResponse.Builder mergeFrom(TroubleshootIamPolicyResponse other)
Parameter
Returns
public TroubleshootIamPolicyResponse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public TroubleshootIamPolicyResponse.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final TroubleshootIamPolicyResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
removeExplainedPolicies(int index)
public TroubleshootIamPolicyResponse.Builder removeExplainedPolicies(int index)
List of IAM policies that were evaluated to check the member'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
Returns
setAccess(Explanations.AccessState value)
public TroubleshootIamPolicyResponse.Builder setAccess(Explanations.AccessState value)
Indicates whether the member 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
Returns
setAccessValue(int value)
public TroubleshootIamPolicyResponse.Builder setAccessValue(int value)
Indicates whether the member 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
Name | Description |
value | int
The enum numeric value on the wire for access to set.
|
Returns
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 member'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
Returns
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 member'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
Returns
setField(Descriptors.FieldDescriptor field, Object value)
public TroubleshootIamPolicyResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public TroubleshootIamPolicyResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final TroubleshootIamPolicyResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides