Class QueryTestablePermissionsResponse.Builder (3.35.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
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.iam.admin.v1.Permission>
Returns
TypeDescription
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
NameDescription
valuePermission
Returns
TypeDescription
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
NameDescription
builderForValuePermission.Builder
Returns
TypeDescription
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
NameDescription
indexint
valuePermission
Returns
TypeDescription
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
NameDescription
indexint
builderForValuePermission.Builder
Returns
TypeDescription
QueryTestablePermissionsResponse.Builder

addPermissionsBuilder()

public Permission.Builder addPermissionsBuilder()

The Permissions testable on the requested resource.

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

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

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public QueryTestablePermissionsResponse build()
Returns
TypeDescription
QueryTestablePermissionsResponse

buildPartial()

public QueryTestablePermissionsResponse buildPartial()
Returns
TypeDescription
QueryTestablePermissionsResponse

clear()

public QueryTestablePermissionsResponse.Builder clear()
Returns
TypeDescription
QueryTestablePermissionsResponse.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public QueryTestablePermissionsResponse.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
QueryTestablePermissionsResponse.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearPermissions()

public QueryTestablePermissionsResponse.Builder clearPermissions()

The Permissions testable on the requested resource.

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

Returns
TypeDescription
QueryTestablePermissionsResponse.Builder

clone()

public QueryTestablePermissionsResponse.Builder clone()
Returns
TypeDescription
QueryTestablePermissionsResponse.Builder
Overrides

getDefaultInstanceForType()

public QueryTestablePermissionsResponse getDefaultInstanceForType()
Returns
TypeDescription
QueryTestablePermissionsResponse

getDescriptorForType()

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

getPermissionsBuilderList()

public List<Permission.Builder> getPermissionsBuilderList()

The Permissions testable on the requested resource.

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

Returns
TypeDescription
List<Builder>

getPermissionsCount()

public int getPermissionsCount()

The Permissions testable on the requested resource.

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

Returns
TypeDescription
int

getPermissionsList()

public List<Permission> getPermissionsList()

The Permissions testable on the requested resource.

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

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

getPermissionsOrBuilderList()

public List<? extends PermissionOrBuilder> getPermissionsOrBuilderList()

The Permissions testable on the requested resource.

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

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

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(QueryTestablePermissionsResponse other)

public QueryTestablePermissionsResponse.Builder mergeFrom(QueryTestablePermissionsResponse other)
Parameter
NameDescription
otherQueryTestablePermissionsResponse
Returns
TypeDescription
QueryTestablePermissionsResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final QueryTestablePermissionsResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
QueryTestablePermissionsResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

The nextPageToken to set.

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

The bytes for nextPageToken to set.

Returns
TypeDescription
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
NameDescription
indexint
valuePermission
Returns
TypeDescription
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
NameDescription
indexint
builderForValuePermission.Builder
Returns
TypeDescription
QueryTestablePermissionsResponse.Builder

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

public QueryTestablePermissionsResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
QueryTestablePermissionsResponse.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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