Class IamPolicySearchResult.Explanation.Builder

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public IamPolicySearchResult.Explanation.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
IamPolicySearchResult.Explanation.Builder
Overrides

build()

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

buildPartial()

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

clear()

public IamPolicySearchResult.Explanation.Builder clear()
Returns
TypeDescription
IamPolicySearchResult.Explanation.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public IamPolicySearchResult.Explanation.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
IamPolicySearchResult.Explanation.Builder
Overrides

clearMatchedPermissions()

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

clearOneof(Descriptors.OneofDescriptor oneof)

public IamPolicySearchResult.Explanation.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
IamPolicySearchResult.Explanation.Builder
Overrides

clone()

public IamPolicySearchResult.Explanation.Builder clone()
Returns
TypeDescription
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
NameDescription
keyString
Returns
TypeDescription
boolean

getDefaultInstanceForType()

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

getDescriptor()

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

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

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

getMutableMatchedPermissions()

public Map<String,Permissions> getMutableMatchedPermissions()

Use alternate mutation accessors instead.

Returns
TypeDescription
Map<String,Permissions>

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

internalGetMapField(int number)

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

internalGetMutableMapField(int number)

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

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(IamPolicySearchResult.Explanation other)

public IamPolicySearchResult.Explanation.Builder mergeFrom(IamPolicySearchResult.Explanation other)
Parameter
NameDescription
otherIamPolicySearchResult.Explanation
Returns
TypeDescription
IamPolicySearchResult.Explanation.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public IamPolicySearchResult.Explanation.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
IamPolicySearchResult.Explanation.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public IamPolicySearchResult.Explanation.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
IamPolicySearchResult.Explanation.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final IamPolicySearchResult.Explanation.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valuesMap<String,Permissions>
Returns
TypeDescription
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
NameDescription
keyString
valuePermissions
Returns
TypeDescription
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
NameDescription
keyString
Returns
TypeDescription
IamPolicySearchResult.Explanation.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public IamPolicySearchResult.Explanation.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
IamPolicySearchResult.Explanation.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final IamPolicySearchResult.Explanation.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
IamPolicySearchResult.Explanation.Builder
Overrides