Class IamPolicySearchResult.Explanation.Builder (3.10.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.v1p1beta1.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 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
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,Permissions> getMatchedPermissions()
Returns
Type Description
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
Type Description
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
Type Description
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
Name Description
key String
defaultValue Permissions
Returns
Type Description
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
Name Description
key String
Returns
Type Description
Permissions

getMutableMatchedPermissions()

public Map<String,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,Permissions> values)

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

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

putMatchedPermissions(String key, Permissions value)

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

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

removeMatchedPermissions(String key)

public IamPolicySearchResult.Explanation.Builder removeMatchedPermissions(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
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