Class IamPolicyAnalysisQuery.AccessSelector.Builder (3.4.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 identities and resources matching any of them.

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

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
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
NameDescription
valuesIterable<String>

The permissions to add.

Returns
TypeDescription
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
NameDescription
valuesIterable<String>

The roles to add.

Returns
TypeDescription
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
NameDescription
valueString

The permissions to add.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes of the permissions to add.

Returns
TypeDescription
IamPolicyAnalysisQuery.AccessSelector.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public IamPolicyAnalysisQuery.AccessSelector.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The roles to add.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes of the roles to add.

Returns
TypeDescription
IamPolicyAnalysisQuery.AccessSelector.Builder

This builder for chaining.

build()

public IamPolicyAnalysisQuery.AccessSelector build()
Returns
TypeDescription
IamPolicyAnalysisQuery.AccessSelector

buildPartial()

public IamPolicyAnalysisQuery.AccessSelector buildPartial()
Returns
TypeDescription
IamPolicyAnalysisQuery.AccessSelector

clear()

public IamPolicyAnalysisQuery.AccessSelector.Builder clear()
Returns
TypeDescription
IamPolicyAnalysisQuery.AccessSelector.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public IamPolicyAnalysisQuery.AccessSelector.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
IamPolicyAnalysisQuery.AccessSelector.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public IamPolicyAnalysisQuery.AccessSelector.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
IamPolicyAnalysisQuery.AccessSelector.Builder

This builder for chaining.

clone()

public IamPolicyAnalysisQuery.AccessSelector.Builder clone()
Returns
TypeDescription
IamPolicyAnalysisQuery.AccessSelector.Builder
Overrides

getDefaultInstanceForType()

public IamPolicyAnalysisQuery.AccessSelector getDefaultInstanceForType()
Returns
TypeDescription
IamPolicyAnalysisQuery.AccessSelector

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
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
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
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
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ProtocolStringList

A list containing the roles.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(IamPolicyAnalysisQuery.AccessSelector other)

public IamPolicyAnalysisQuery.AccessSelector.Builder mergeFrom(IamPolicyAnalysisQuery.AccessSelector other)
Parameter
NameDescription
otherIamPolicyAnalysisQuery.AccessSelector
Returns
TypeDescription
IamPolicyAnalysisQuery.AccessSelector.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public IamPolicyAnalysisQuery.AccessSelector.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
IamPolicyAnalysisQuery.AccessSelector.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final IamPolicyAnalysisQuery.AccessSelector.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
IamPolicyAnalysisQuery.AccessSelector.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

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

The index to set the value at.

valueString

The permissions to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
indexint

The index to set the value at.

valueString

The roles to set.

Returns
TypeDescription
IamPolicyAnalysisQuery.AccessSelector.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final IamPolicyAnalysisQuery.AccessSelector.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
IamPolicyAnalysisQuery.AccessSelector.Builder
Overrides