Class IamPolicySearchResult.Explanation.Builder (3.27.0)

public static final class IamPolicySearchResult.Explanation.Builder extends GeneratedMessageV3.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

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public IamPolicySearchResult.Explanation.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
IamPolicySearchResult.Explanation.Builder
Overrides

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

clearField(Descriptors.FieldDescriptor field)

public IamPolicySearchResult.Explanation.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
IamPolicySearchResult.Explanation.Builder
Overrides

clearMatchedPermissions()

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

clearOneof(Descriptors.OneofDescriptor oneof)

public IamPolicySearchResult.Explanation.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
IamPolicySearchResult.Explanation.Builder
Overrides

clone()

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

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()

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()

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

Use alternate mutation accessors instead.

Returns
Type Description
Map<String,Permissions>

internalGetFieldAccessorTable()

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

internalGetMapField(int number)

protected MapField internalGetMapField(int number)
Parameter
Name Description
number int
Returns
Type Description
MapField
Overrides

internalGetMutableMapField(int number)

protected MapField internalGetMutableMapField(int number)
Parameter
Name Description
number int
Returns
Type Description
MapField
Overrides

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final IamPolicySearchResult.Explanation.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
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

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

setField(Descriptors.FieldDescriptor field, Object value)

public IamPolicySearchResult.Explanation.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
IamPolicySearchResult.Explanation.Builder
Overrides

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public IamPolicySearchResult.Explanation.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
IamPolicySearchResult.Explanation.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final IamPolicySearchResult.Explanation.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
IamPolicySearchResult.Explanation.Builder
Overrides