Class IamPolicyAnalysisQuery.AccessSelector.Builder (3.34.0)

public static final class IamPolicyAnalysisQuery.AccessSelector.Builder extends GeneratedMessageV3.Builder<IamPolicyAnalysisQuery.AccessSelector.Builder> implements IamPolicyAnalysisQuery.AccessSelectorOrBuilder

Specifies roles and/or permissions to analyze, to determine both the identities possessing them and the resources they control. If multiple values are specified, results will include roles or permissions matching any of them. The total number of roles and permissions should be equal or less than 10.

Protobuf type google.cloud.asset.v1.IamPolicyAnalysisQuery.AccessSelector

Static Methods

getDescriptor()

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

Methods

addAllPermissions(Iterable<String> values)

public IamPolicyAnalysisQuery.AccessSelector.Builder addAllPermissions(Iterable<String> values)

Optional. The permissions to appear in result.

repeated string permissions = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
values Iterable<String>

The permissions to add.

Returns
Type Description
IamPolicyAnalysisQuery.AccessSelector.Builder

This builder for chaining.

addAllRoles(Iterable<String> values)

public IamPolicyAnalysisQuery.AccessSelector.Builder addAllRoles(Iterable<String> values)

Optional. The roles to appear in result.

repeated string roles = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
values Iterable<String>

The roles to add.

Returns
Type Description
IamPolicyAnalysisQuery.AccessSelector.Builder

This builder for chaining.

addPermissions(String value)

public IamPolicyAnalysisQuery.AccessSelector.Builder addPermissions(String value)

Optional. The permissions to appear in result.

repeated string permissions = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The permissions to add.

Returns
Type Description
IamPolicyAnalysisQuery.AccessSelector.Builder

This builder for chaining.

addPermissionsBytes(ByteString value)

public IamPolicyAnalysisQuery.AccessSelector.Builder addPermissionsBytes(ByteString value)

Optional. The permissions to appear in result.

repeated string permissions = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes of the permissions to add.

Returns
Type Description
IamPolicyAnalysisQuery.AccessSelector.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addRoles(String value)

public IamPolicyAnalysisQuery.AccessSelector.Builder addRoles(String value)

Optional. The roles to appear in result.

repeated string roles = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The roles to add.

Returns
Type Description
IamPolicyAnalysisQuery.AccessSelector.Builder

This builder for chaining.

addRolesBytes(ByteString value)

public IamPolicyAnalysisQuery.AccessSelector.Builder addRolesBytes(ByteString value)

Optional. The roles to appear in result.

repeated string roles = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes of the roles to add.

Returns
Type Description
IamPolicyAnalysisQuery.AccessSelector.Builder

This builder for chaining.

build()

public IamPolicyAnalysisQuery.AccessSelector build()
Returns
Type Description
IamPolicyAnalysisQuery.AccessSelector

buildPartial()

public IamPolicyAnalysisQuery.AccessSelector buildPartial()
Returns
Type Description
IamPolicyAnalysisQuery.AccessSelector

clear()

public IamPolicyAnalysisQuery.AccessSelector.Builder clear()
Returns
Type Description
IamPolicyAnalysisQuery.AccessSelector.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public IamPolicyAnalysisQuery.AccessSelector.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
IamPolicyAnalysisQuery.AccessSelector.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public IamPolicyAnalysisQuery.AccessSelector.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
IamPolicyAnalysisQuery.AccessSelector.Builder
Overrides

clearPermissions()

public IamPolicyAnalysisQuery.AccessSelector.Builder clearPermissions()

Optional. The permissions to appear in result.

repeated string permissions = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
IamPolicyAnalysisQuery.AccessSelector.Builder

This builder for chaining.

clearRoles()

public IamPolicyAnalysisQuery.AccessSelector.Builder clearRoles()

Optional. The roles to appear in result.

repeated string roles = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
IamPolicyAnalysisQuery.AccessSelector.Builder

This builder for chaining.

clone()

public IamPolicyAnalysisQuery.AccessSelector.Builder clone()
Returns
Type Description
IamPolicyAnalysisQuery.AccessSelector.Builder
Overrides

getDefaultInstanceForType()

public IamPolicyAnalysisQuery.AccessSelector getDefaultInstanceForType()
Returns
Type Description
IamPolicyAnalysisQuery.AccessSelector

getDescriptorForType()

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

getPermissions(int index)

public String getPermissions(int index)

Optional. The permissions to appear in result.

repeated string permissions = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The permissions at the given index.

getPermissionsBytes(int index)

public ByteString getPermissionsBytes(int index)

Optional. The permissions to appear in result.

repeated string permissions = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the permissions at the given index.

getPermissionsCount()

public int getPermissionsCount()

Optional. The permissions to appear in result.

repeated string permissions = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The count of permissions.

getPermissionsList()

public ProtocolStringList getPermissionsList()

Optional. The permissions to appear in result.

repeated string permissions = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ProtocolStringList

A list containing the permissions.

getRoles(int index)

public String getRoles(int index)

Optional. The roles to appear in result.

repeated string roles = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The roles at the given index.

getRolesBytes(int index)

public ByteString getRolesBytes(int index)

Optional. The roles to appear in result.

repeated string roles = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the roles at the given index.

getRolesCount()

public int getRolesCount()

Optional. The roles to appear in result.

repeated string roles = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The count of roles.

getRolesList()

public ProtocolStringList getRolesList()

Optional. The roles to appear in result.

repeated string roles = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ProtocolStringList

A list containing the roles.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(IamPolicyAnalysisQuery.AccessSelector other)

public IamPolicyAnalysisQuery.AccessSelector.Builder mergeFrom(IamPolicyAnalysisQuery.AccessSelector other)
Parameter
Name Description
other IamPolicyAnalysisQuery.AccessSelector
Returns
Type Description
IamPolicyAnalysisQuery.AccessSelector.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public IamPolicyAnalysisQuery.AccessSelector.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
IamPolicyAnalysisQuery.AccessSelector.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final IamPolicyAnalysisQuery.AccessSelector.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
IamPolicyAnalysisQuery.AccessSelector.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

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

setPermissions(int index, String value)

public IamPolicyAnalysisQuery.AccessSelector.Builder setPermissions(int index, String value)

Optional. The permissions to appear in result.

repeated string permissions = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int

The index to set the value at.

value String

The permissions to set.

Returns
Type Description
IamPolicyAnalysisQuery.AccessSelector.Builder

This builder for chaining.

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

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

setRoles(int index, String value)

public IamPolicyAnalysisQuery.AccessSelector.Builder setRoles(int index, String value)

Optional. The roles to appear in result.

repeated string roles = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int

The index to set the value at.

value String

The roles to set.

Returns
Type Description
IamPolicyAnalysisQuery.AccessSelector.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final IamPolicyAnalysisQuery.AccessSelector.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
IamPolicyAnalysisQuery.AccessSelector.Builder
Overrides