Class IamPolicySearchResult.Explanation.Builder (3.87.0)

public static final class IamPolicySearchResult.Explanation.Builder extends GeneratedMessage.Builder<IamPolicySearchResult.Explanation.Builder> implements IamPolicySearchResult.ExplanationOrBuilder

Explanation about the IAM policy search result.

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

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

build()

public IamPolicySearchResult.Explanation build()
Returns
Type Description
IamPolicySearchResult.Explanation

buildPartial()

public IamPolicySearchResult.Explanation buildPartial()
Returns
Type Description
IamPolicySearchResult.Explanation

clear()

public IamPolicySearchResult.Explanation.Builder clear()
Returns
Type Description
IamPolicySearchResult.Explanation.Builder
Overrides

clearMatchedPermissions()

public IamPolicySearchResult.Explanation.Builder clearMatchedPermissions()
Returns
Type Description
IamPolicySearchResult.Explanation.Builder

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
Name Description
key String
Returns
Type Description
boolean

getDefaultInstanceForType()

public IamPolicySearchResult.Explanation getDefaultInstanceForType()
Returns
Type Description
IamPolicySearchResult.Explanation

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getMatchedPermissions() (deprecated)

public Map<String,IamPolicySearchResult.Explanation.Permissions> getMatchedPermissions()
Returns
Type Description
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
Type Description
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
Type Description
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
Name Description
key String
defaultValue IamPolicySearchResult.Explanation.Permissions
Returns
Type Description
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
Name Description
key String
Returns
Type Description
IamPolicySearchResult.Explanation.Permissions

getMutableMatchedPermissions() (deprecated)

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

Use alternate mutation accessors instead.

Returns
Type Description
Map<String,Permissions>

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

internalGetMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessage.Builder.internalGetMapFieldReflection(int)

internalGetMutableMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessage.Builder.internalGetMutableMapFieldReflection(int)

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(IamPolicySearchResult.Explanation other)

public IamPolicySearchResult.Explanation.Builder mergeFrom(IamPolicySearchResult.Explanation other)
Parameter
Name Description
other IamPolicySearchResult.Explanation
Returns
Type Description
IamPolicySearchResult.Explanation.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public IamPolicySearchResult.Explanation.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
IamPolicySearchResult.Explanation.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public IamPolicySearchResult.Explanation.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
IamPolicySearchResult.Explanation.Builder
Overrides

putAllMatchedPermissions(Map<String,IamPolicySearchResult.Explanation.Permissions> values)

public IamPolicySearchResult.Explanation.Builder putAllMatchedPermissions(Map<String,IamPolicySearchResult.Explanation.Permissions> values)

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
Name Description
values Map<String,Permissions>
Returns
Type Description
IamPolicySearchResult.Explanation.Builder

putMatchedPermissions(String key, IamPolicySearchResult.Explanation.Permissions value)

public IamPolicySearchResult.Explanation.Builder putMatchedPermissions(String key, IamPolicySearchResult.Explanation.Permissions value)

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
Name Description
key String
value IamPolicySearchResult.Explanation.Permissions
Returns
Type Description
IamPolicySearchResult.Explanation.Builder

putMatchedPermissionsBuilderIfAbsent(String key)

public IamPolicySearchResult.Explanation.Permissions.Builder putMatchedPermissionsBuilderIfAbsent(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
Name Description
key String
Returns
Type Description
IamPolicySearchResult.Explanation.Permissions.Builder

removeMatchedPermissions(String key)

public IamPolicySearchResult.Explanation.Builder removeMatchedPermissions(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
Name Description
key String
Returns
Type Description
IamPolicySearchResult.Explanation.Builder