Class IamPolicySearchResult.Explanation (3.4.0)

public static final class IamPolicySearchResult.Explanation extends GeneratedMessageV3 implements IamPolicySearchResult.ExplanationOrBuilder

Explanation about the IAM policy search result.

Protobuf type google.cloud.asset.v1p1beta1.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 permission matching the permission query (e.g. containing policy.role.permissions:). A sample role string: "roles/compute.instanceAdmin". The roles can also be found in the returned policy bindings. Note that the map is populated only if requesting with a permission query.

map<string, .google.cloud.asset.v1p1beta1.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,Permissions> getMatchedPermissions()
Returns
TypeDescription
Map<String,Permissions>

getMatchedPermissionsCount()

public int getMatchedPermissionsCount()

The map from roles to their included permission matching the permission query (e.g. containing policy.role.permissions:). A sample role string: "roles/compute.instanceAdmin". The roles can also be found in the returned policy bindings. Note that the map is populated only if requesting with a permission query.

map<string, .google.cloud.asset.v1p1beta1.Permissions> matched_permissions = 1;

Returns
TypeDescription
int

getMatchedPermissionsMap()

public Map<String,Permissions> getMatchedPermissionsMap()

The map from roles to their included permission matching the permission query (e.g. containing policy.role.permissions:). A sample role string: "roles/compute.instanceAdmin". The roles can also be found in the returned policy bindings. Note that the map is populated only if requesting with a permission query.

map<string, .google.cloud.asset.v1p1beta1.Permissions> matched_permissions = 1;

Returns
TypeDescription
Map<String,Permissions>

getMatchedPermissionsOrDefault(String key, Permissions defaultValue)

public Permissions getMatchedPermissionsOrDefault(String key, Permissions defaultValue)

The map from roles to their included permission matching the permission query (e.g. containing policy.role.permissions:). A sample role string: "roles/compute.instanceAdmin". The roles can also be found in the returned policy bindings. Note that the map is populated only if requesting with a permission query.

map<string, .google.cloud.asset.v1p1beta1.Permissions> matched_permissions = 1;

Parameters
NameDescription
keyString
defaultValuePermissions
Returns
TypeDescription
Permissions

getMatchedPermissionsOrThrow(String key)

public Permissions getMatchedPermissionsOrThrow(String key)

The map from roles to their included permission matching the permission query (e.g. containing policy.role.permissions:). A sample role string: "roles/compute.instanceAdmin". The roles can also be found in the returned policy bindings. Note that the map is populated only if requesting with a permission query.

map<string, .google.cloud.asset.v1p1beta1.Permissions> matched_permissions = 1;

Parameter
NameDescription
keyString
Returns
TypeDescription
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