public static final class Explanations.ExplainedPolicy extends GeneratedMessageV3 implements Explanations.ExplainedPolicyOrBuilder
Details about how a specific IAM Policy contributed
to the access check.
Protobuf type google.cloud.policytroubleshooter.v1.ExplainedPolicy
Fields
ACCESS_FIELD_NUMBER
public static final int ACCESS_FIELD_NUMBER
Field Value
BINDING_EXPLANATIONS_FIELD_NUMBER
public static final int BINDING_EXPLANATIONS_FIELD_NUMBER
Field Value
FULL_RESOURCE_NAME_FIELD_NUMBER
public static final int FULL_RESOURCE_NAME_FIELD_NUMBER
Field Value
POLICY_FIELD_NUMBER
public static final int POLICY_FIELD_NUMBER
Field Value
RELEVANCE_FIELD_NUMBER
public static final int RELEVANCE_FIELD_NUMBER
Field Value
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter
Returns
Overrides
getAccess()
public Explanations.AccessState getAccess()
Indicates whether this policy provides the specified permission to the
specified member for the specified resource.
This field does not indicate whether the member actually has the
permission for the resource. There might be another policy that overrides
this policy. To determine whether the member actually has the permission,
use the access
field in the
TroubleshootIamPolicyResponse.
.google.cloud.policytroubleshooter.v1.AccessState access = 1;
Returns
getAccessValue()
public int getAccessValue()
Indicates whether this policy provides the specified permission to the
specified member for the specified resource.
This field does not indicate whether the member actually has the
permission for the resource. There might be another policy that overrides
this policy. To determine whether the member actually has the permission,
use the access
field in the
TroubleshootIamPolicyResponse.
.google.cloud.policytroubleshooter.v1.AccessState access = 1;
Returns
Type | Description |
int | The enum numeric value on the wire for access.
|
getBindingExplanations(int index)
public Explanations.BindingExplanation getBindingExplanations(int index)
Details about how each binding in the policy affects the member's ability,
or inability, to use the permission for the resource.
If the sender of the request does not have access to the policy, this field
is omitted.
repeated .google.cloud.policytroubleshooter.v1.BindingExplanation binding_explanations = 4;
Parameter
Returns
getBindingExplanationsCount()
public int getBindingExplanationsCount()
Details about how each binding in the policy affects the member's ability,
or inability, to use the permission for the resource.
If the sender of the request does not have access to the policy, this field
is omitted.
repeated .google.cloud.policytroubleshooter.v1.BindingExplanation binding_explanations = 4;
Returns
getBindingExplanationsList()
public List<Explanations.BindingExplanation> getBindingExplanationsList()
Details about how each binding in the policy affects the member's ability,
or inability, to use the permission for the resource.
If the sender of the request does not have access to the policy, this field
is omitted.
repeated .google.cloud.policytroubleshooter.v1.BindingExplanation binding_explanations = 4;
Returns
getBindingExplanationsOrBuilder(int index)
public Explanations.BindingExplanationOrBuilder getBindingExplanationsOrBuilder(int index)
Details about how each binding in the policy affects the member's ability,
or inability, to use the permission for the resource.
If the sender of the request does not have access to the policy, this field
is omitted.
repeated .google.cloud.policytroubleshooter.v1.BindingExplanation binding_explanations = 4;
Parameter
Returns
getBindingExplanationsOrBuilderList()
public List<? extends Explanations.BindingExplanationOrBuilder> getBindingExplanationsOrBuilderList()
Details about how each binding in the policy affects the member's ability,
or inability, to use the permission for the resource.
If the sender of the request does not have access to the policy, this field
is omitted.
repeated .google.cloud.policytroubleshooter.v1.BindingExplanation binding_explanations = 4;
Returns
Type | Description |
List<? extends google.cloud.policytroubleshooter.v1.Explanations.BindingExplanationOrBuilder> | |
getDefaultInstance()
public static Explanations.ExplainedPolicy getDefaultInstance()
Returns
getDefaultInstanceForType()
public Explanations.ExplainedPolicy getDefaultInstanceForType()
Returns
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
getFullResourceName()
public String getFullResourceName()
The full resource name that identifies the resource. For example,
//compute.googleapis.com/projects/my-project/zones/us-central1-a/instances/my-instance
.
If the sender of the request does not have access to the policy, this field
is omitted.
For examples of full resource names for Google Cloud services, see
https://cloud.google.com/iam/help/troubleshooter/full-resource-names.
string full_resource_name = 2;
Returns
Type | Description |
String | The fullResourceName.
|
getFullResourceNameBytes()
public ByteString getFullResourceNameBytes()
The full resource name that identifies the resource. For example,
//compute.googleapis.com/projects/my-project/zones/us-central1-a/instances/my-instance
.
If the sender of the request does not have access to the policy, this field
is omitted.
For examples of full resource names for Google Cloud services, see
https://cloud.google.com/iam/help/troubleshooter/full-resource-names.
string full_resource_name = 2;
Returns
Type | Description |
ByteString | The bytes for fullResourceName.
|
getParserForType()
public Parser<Explanations.ExplainedPolicy> getParserForType()
Returns
Overrides
getPolicy()
public Policy getPolicy()
The IAM policy attached to the resource.
If the sender of the request does not have access to the policy, this field
is empty.
.google.iam.v1.Policy policy = 3;
Returns
Type | Description |
com.google.iam.v1.Policy | The policy.
|
getPolicyOrBuilder()
public PolicyOrBuilder getPolicyOrBuilder()
The IAM policy attached to the resource.
If the sender of the request does not have access to the policy, this field
is empty.
.google.iam.v1.Policy policy = 3;
Returns
Type | Description |
com.google.iam.v1.PolicyOrBuilder | |
getRelevance()
public Explanations.HeuristicRelevance getRelevance()
The relevance of this policy to the overall determination in the
TroubleshootIamPolicyResponse.
If the sender of the request does not have access to the policy, this field
is omitted.
.google.cloud.policytroubleshooter.v1.HeuristicRelevance relevance = 5;
Returns
getRelevanceValue()
public int getRelevanceValue()
The relevance of this policy to the overall determination in the
TroubleshootIamPolicyResponse.
If the sender of the request does not have access to the policy, this field
is omitted.
.google.cloud.policytroubleshooter.v1.HeuristicRelevance relevance = 5;
Returns
Type | Description |
int | The enum numeric value on the wire for relevance.
|
getSerializedSize()
public int getSerializedSize()
Returns
Overrides
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Returns
Overrides
hasPolicy()
public boolean hasPolicy()
The IAM policy attached to the resource.
If the sender of the request does not have access to the policy, this field
is empty.
.google.iam.v1.Policy policy = 3;
Returns
Type | Description |
boolean | Whether the policy field is set.
|
hashCode()
Returns
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
newBuilder()
public static Explanations.ExplainedPolicy.Builder newBuilder()
Returns
newBuilder(Explanations.ExplainedPolicy prototype)
public static Explanations.ExplainedPolicy.Builder newBuilder(Explanations.ExplainedPolicy prototype)
Parameter
Returns
newBuilderForType()
public Explanations.ExplainedPolicy.Builder newBuilderForType()
Returns
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected Explanations.ExplainedPolicy.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
public static Explanations.ExplainedPolicy parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static Explanations.ExplainedPolicy parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(byte[] data)
public static Explanations.ExplainedPolicy parseFrom(byte[] data)
Parameter
Name | Description |
data | byte[]
|
Returns
Exceptions
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static Explanations.ExplainedPolicy parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteString data)
public static Explanations.ExplainedPolicy parseFrom(ByteString data)
Parameter
Returns
Exceptions
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static Explanations.ExplainedPolicy parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static Explanations.ExplainedPolicy parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static Explanations.ExplainedPolicy parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static Explanations.ExplainedPolicy parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static Explanations.ExplainedPolicy parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteBuffer data)
public static Explanations.ExplainedPolicy parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static Explanations.ExplainedPolicy parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parser()
public static Parser<Explanations.ExplainedPolicy> parser()
Returns
toBuilder()
public Explanations.ExplainedPolicy.Builder toBuilder()
Returns
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions