Class QueryTestablePermissionsResponse.Builder (3.38.0)

public static final class QueryTestablePermissionsResponse.Builder extends GeneratedMessageV3.Builder<QueryTestablePermissionsResponse.Builder> implements QueryTestablePermissionsResponseOrBuilder

The response containing permissions which can be tested on a resource.

Protobuf type google.iam.admin.v1.QueryTestablePermissionsResponse

Static Methods

getDescriptor()

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

Methods

addAllPermissions(Iterable<? extends Permission> values)

public QueryTestablePermissionsResponse.Builder addAllPermissions(Iterable<? extends Permission> values)

The Permissions testable on the requested resource.

repeated .google.iam.admin.v1.Permission permissions = 1;

Parameter
Name Description
values Iterable<? extends com.google.iam.admin.v1.Permission>
Returns
Type Description
QueryTestablePermissionsResponse.Builder

addPermissions(Permission value)

public QueryTestablePermissionsResponse.Builder addPermissions(Permission value)

The Permissions testable on the requested resource.

repeated .google.iam.admin.v1.Permission permissions = 1;

Parameter
Name Description
value Permission
Returns
Type Description
QueryTestablePermissionsResponse.Builder

addPermissions(Permission.Builder builderForValue)

public QueryTestablePermissionsResponse.Builder addPermissions(Permission.Builder builderForValue)

The Permissions testable on the requested resource.

repeated .google.iam.admin.v1.Permission permissions = 1;

Parameter
Name Description
builderForValue Permission.Builder
Returns
Type Description
QueryTestablePermissionsResponse.Builder

addPermissions(int index, Permission value)

public QueryTestablePermissionsResponse.Builder addPermissions(int index, Permission value)

The Permissions testable on the requested resource.

repeated .google.iam.admin.v1.Permission permissions = 1;

Parameters
Name Description
index int
value Permission
Returns
Type Description
QueryTestablePermissionsResponse.Builder

addPermissions(int index, Permission.Builder builderForValue)

public QueryTestablePermissionsResponse.Builder addPermissions(int index, Permission.Builder builderForValue)

The Permissions testable on the requested resource.

repeated .google.iam.admin.v1.Permission permissions = 1;

Parameters
Name Description
index int
builderForValue Permission.Builder
Returns
Type Description
QueryTestablePermissionsResponse.Builder

addPermissionsBuilder()

public Permission.Builder addPermissionsBuilder()

The Permissions testable on the requested resource.

repeated .google.iam.admin.v1.Permission permissions = 1;

Returns
Type Description
Permission.Builder

addPermissionsBuilder(int index)

public Permission.Builder addPermissionsBuilder(int index)

The Permissions testable on the requested resource.

repeated .google.iam.admin.v1.Permission permissions = 1;

Parameter
Name Description
index int
Returns
Type Description
Permission.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public QueryTestablePermissionsResponse build()
Returns
Type Description
QueryTestablePermissionsResponse

buildPartial()

public QueryTestablePermissionsResponse buildPartial()
Returns
Type Description
QueryTestablePermissionsResponse

clear()

public QueryTestablePermissionsResponse.Builder clear()
Returns
Type Description
QueryTestablePermissionsResponse.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

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

clearNextPageToken()

public QueryTestablePermissionsResponse.Builder clearNextPageToken()

To retrieve the next page of results, set QueryTestableRolesRequest.page_token to this value.

string next_page_token = 2;

Returns
Type Description
QueryTestablePermissionsResponse.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearPermissions()

public QueryTestablePermissionsResponse.Builder clearPermissions()

The Permissions testable on the requested resource.

repeated .google.iam.admin.v1.Permission permissions = 1;

Returns
Type Description
QueryTestablePermissionsResponse.Builder

clone()

public QueryTestablePermissionsResponse.Builder clone()
Returns
Type Description
QueryTestablePermissionsResponse.Builder
Overrides

getDefaultInstanceForType()

public QueryTestablePermissionsResponse getDefaultInstanceForType()
Returns
Type Description
QueryTestablePermissionsResponse

getDescriptorForType()

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

getNextPageToken()

public String getNextPageToken()

To retrieve the next page of results, set QueryTestableRolesRequest.page_token to this value.

string next_page_token = 2;

Returns
Type Description
String

The nextPageToken.

getNextPageTokenBytes()

public ByteString getNextPageTokenBytes()

To retrieve the next page of results, set QueryTestableRolesRequest.page_token to this value.

string next_page_token = 2;

Returns
Type Description
ByteString

The bytes for nextPageToken.

getPermissions(int index)

public Permission getPermissions(int index)

The Permissions testable on the requested resource.

repeated .google.iam.admin.v1.Permission permissions = 1;

Parameter
Name Description
index int
Returns
Type Description
Permission

getPermissionsBuilder(int index)

public Permission.Builder getPermissionsBuilder(int index)

The Permissions testable on the requested resource.

repeated .google.iam.admin.v1.Permission permissions = 1;

Parameter
Name Description
index int
Returns
Type Description
Permission.Builder

getPermissionsBuilderList()

public List<Permission.Builder> getPermissionsBuilderList()

The Permissions testable on the requested resource.

repeated .google.iam.admin.v1.Permission permissions = 1;

Returns
Type Description
List<Builder>

getPermissionsCount()

public int getPermissionsCount()

The Permissions testable on the requested resource.

repeated .google.iam.admin.v1.Permission permissions = 1;

Returns
Type Description
int

getPermissionsList()

public List<Permission> getPermissionsList()

The Permissions testable on the requested resource.

repeated .google.iam.admin.v1.Permission permissions = 1;

Returns
Type Description
List<Permission>

getPermissionsOrBuilder(int index)

public PermissionOrBuilder getPermissionsOrBuilder(int index)

The Permissions testable on the requested resource.

repeated .google.iam.admin.v1.Permission permissions = 1;

Parameter
Name Description
index int
Returns
Type Description
PermissionOrBuilder

getPermissionsOrBuilderList()

public List<? extends PermissionOrBuilder> getPermissionsOrBuilderList()

The Permissions testable on the requested resource.

repeated .google.iam.admin.v1.Permission permissions = 1;

Returns
Type Description
List<? extends com.google.iam.admin.v1.PermissionOrBuilder>

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(QueryTestablePermissionsResponse other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removePermissions(int index)

public QueryTestablePermissionsResponse.Builder removePermissions(int index)

The Permissions testable on the requested resource.

repeated .google.iam.admin.v1.Permission permissions = 1;

Parameter
Name Description
index int
Returns
Type Description
QueryTestablePermissionsResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setNextPageToken(String value)

public QueryTestablePermissionsResponse.Builder setNextPageToken(String value)

To retrieve the next page of results, set QueryTestableRolesRequest.page_token to this value.

string next_page_token = 2;

Parameter
Name Description
value String

The nextPageToken to set.

Returns
Type Description
QueryTestablePermissionsResponse.Builder

This builder for chaining.

setNextPageTokenBytes(ByteString value)

public QueryTestablePermissionsResponse.Builder setNextPageTokenBytes(ByteString value)

To retrieve the next page of results, set QueryTestableRolesRequest.page_token to this value.

string next_page_token = 2;

Parameter
Name Description
value ByteString

The bytes for nextPageToken to set.

Returns
Type Description
QueryTestablePermissionsResponse.Builder

This builder for chaining.

setPermissions(int index, Permission value)

public QueryTestablePermissionsResponse.Builder setPermissions(int index, Permission value)

The Permissions testable on the requested resource.

repeated .google.iam.admin.v1.Permission permissions = 1;

Parameters
Name Description
index int
value Permission
Returns
Type Description
QueryTestablePermissionsResponse.Builder

setPermissions(int index, Permission.Builder builderForValue)

public QueryTestablePermissionsResponse.Builder setPermissions(int index, Permission.Builder builderForValue)

The Permissions testable on the requested resource.

repeated .google.iam.admin.v1.Permission permissions = 1;

Parameters
Name Description
index int
builderForValue Permission.Builder
Returns
Type Description
QueryTestablePermissionsResponse.Builder

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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