Class IamPolicySearchResult.Explanation (3.6.0)

Stay organized with collections Save and categorize content based on your preferences.
public static final class IamPolicySearchResult.Explanation extends GeneratedMessageV3 implements IamPolicySearchResult.ExplanationOrBuilder

Explanation about the IAM policy search result.

Protobuf type google.cloud.asset.v1.IamPolicySearchResult.Explanation

Inheritance

Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > IamPolicySearchResult.Explanation

Static Fields

MATCHED_PERMISSIONS_FIELD_NUMBER

public static final int MATCHED_PERMISSIONS_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static IamPolicySearchResult.Explanation getDefaultInstance()
Returns
TypeDescription
IamPolicySearchResult.Explanation

getDescriptor()

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

newBuilder()

public static IamPolicySearchResult.Explanation.Builder newBuilder()
Returns
TypeDescription
IamPolicySearchResult.Explanation.Builder

newBuilder(IamPolicySearchResult.Explanation prototype)

public static IamPolicySearchResult.Explanation.Builder newBuilder(IamPolicySearchResult.Explanation prototype)
Parameter
NameDescription
prototypeIamPolicySearchResult.Explanation
Returns
TypeDescription
IamPolicySearchResult.Explanation.Builder

parseDelimitedFrom(InputStream input)

public static IamPolicySearchResult.Explanation parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
IamPolicySearchResult.Explanation
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static IamPolicySearchResult.Explanation parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
IamPolicySearchResult.Explanation
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static IamPolicySearchResult.Explanation parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
IamPolicySearchResult.Explanation
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static IamPolicySearchResult.Explanation parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
IamPolicySearchResult.Explanation
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static IamPolicySearchResult.Explanation parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
IamPolicySearchResult.Explanation
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static IamPolicySearchResult.Explanation parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
IamPolicySearchResult.Explanation
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static IamPolicySearchResult.Explanation parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
IamPolicySearchResult.Explanation
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static IamPolicySearchResult.Explanation parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
IamPolicySearchResult.Explanation
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static IamPolicySearchResult.Explanation parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
IamPolicySearchResult.Explanation
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static IamPolicySearchResult.Explanation parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
IamPolicySearchResult.Explanation
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static IamPolicySearchResult.Explanation parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
IamPolicySearchResult.Explanation
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static IamPolicySearchResult.Explanation parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
IamPolicySearchResult.Explanation
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<IamPolicySearchResult.Explanation> parser()
Returns
TypeDescription
Parser<Explanation>

Methods

containsMatchedPermissions(String key)

public boolean containsMatchedPermissions(String key)

The map from roles to their included permissions that match the permission query (i.e., a query containing policy.role.permissions:). Example: if query policy.role.permissions:compute.disk.get matches a policy binding that contains owner role, the matched_permissions will be {"roles/owner": ["compute.disk.get"]}. The roles can also be found in the returned policy bindings. Note that the map is populated only for requests with permission queries.

map<string, .google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions> matched_permissions = 1;

Parameter
NameDescription
keyString
Returns
TypeDescription
boolean

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

public IamPolicySearchResult.Explanation getDefaultInstanceForType()
Returns
TypeDescription
IamPolicySearchResult.Explanation

getMatchedPermissions()

public Map<String,IamPolicySearchResult.Explanation.Permissions> getMatchedPermissions()
Returns
TypeDescription
Map<String,Permissions>

getMatchedPermissionsCount()

public int getMatchedPermissionsCount()

The map from roles to their included permissions that match the permission query (i.e., a query containing policy.role.permissions:). Example: if query policy.role.permissions:compute.disk.get matches a policy binding that contains owner role, the matched_permissions will be {"roles/owner": ["compute.disk.get"]}. The roles can also be found in the returned policy bindings. Note that the map is populated only for requests with permission queries.

map<string, .google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions> matched_permissions = 1;

Returns
TypeDescription
int

getMatchedPermissionsMap()

public Map<String,IamPolicySearchResult.Explanation.Permissions> getMatchedPermissionsMap()

The map from roles to their included permissions that match the permission query (i.e., a query containing policy.role.permissions:). Example: if query policy.role.permissions:compute.disk.get matches a policy binding that contains owner role, the matched_permissions will be {"roles/owner": ["compute.disk.get"]}. The roles can also be found in the returned policy bindings. Note that the map is populated only for requests with permission queries.

map<string, .google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions> matched_permissions = 1;

Returns
TypeDescription
Map<String,Permissions>

getMatchedPermissionsOrDefault(String key, IamPolicySearchResult.Explanation.Permissions defaultValue)

public IamPolicySearchResult.Explanation.Permissions getMatchedPermissionsOrDefault(String key, IamPolicySearchResult.Explanation.Permissions defaultValue)

The map from roles to their included permissions that match the permission query (i.e., a query containing policy.role.permissions:). Example: if query policy.role.permissions:compute.disk.get matches a policy binding that contains owner role, the matched_permissions will be {"roles/owner": ["compute.disk.get"]}. The roles can also be found in the returned policy bindings. Note that the map is populated only for requests with permission queries.

map<string, .google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions> matched_permissions = 1;

Parameters
NameDescription
keyString
defaultValueIamPolicySearchResult.Explanation.Permissions
Returns
TypeDescription
IamPolicySearchResult.Explanation.Permissions

getMatchedPermissionsOrThrow(String key)

public IamPolicySearchResult.Explanation.Permissions getMatchedPermissionsOrThrow(String key)

The map from roles to their included permissions that match the permission query (i.e., a query containing policy.role.permissions:). Example: if query policy.role.permissions:compute.disk.get matches a policy binding that contains owner role, the matched_permissions will be {"roles/owner": ["compute.disk.get"]}. The roles can also be found in the returned policy bindings. Note that the map is populated only for requests with permission queries.

map<string, .google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions> matched_permissions = 1;

Parameter
NameDescription
keyString
Returns
TypeDescription
IamPolicySearchResult.Explanation.Permissions

getParserForType()

public Parser<IamPolicySearchResult.Explanation> getParserForType()
Returns
TypeDescription
Parser<Explanation>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

internalGetMapField(int number)

protected MapField internalGetMapField(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
MapField
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public IamPolicySearchResult.Explanation.Builder newBuilderForType()
Returns
TypeDescription
IamPolicySearchResult.Explanation.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected IamPolicySearchResult.Explanation.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
IamPolicySearchResult.Explanation.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public IamPolicySearchResult.Explanation.Builder toBuilder()
Returns
TypeDescription
IamPolicySearchResult.Explanation.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides Exceptions
TypeDescription
IOException