Class ListDatabaseRolesResponse.Builder (6.52.0)

public static final class ListDatabaseRolesResponse.Builder extends GeneratedMessageV3.Builder<ListDatabaseRolesResponse.Builder> implements ListDatabaseRolesResponseOrBuilder

The response for ListDatabaseRoles.

Protobuf type google.spanner.admin.database.v1.ListDatabaseRolesResponse

Static Methods

getDescriptor()

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

Methods

addAllDatabaseRoles(Iterable<? extends DatabaseRole> values)

public ListDatabaseRolesResponse.Builder addAllDatabaseRoles(Iterable<? extends DatabaseRole> values)

Database roles that matched the request.

repeated .google.spanner.admin.database.v1.DatabaseRole database_roles = 1;

Parameter
NameDescription
valuesIterable<? extends com.google.spanner.admin.database.v1.DatabaseRole>
Returns
TypeDescription
ListDatabaseRolesResponse.Builder

addDatabaseRoles(DatabaseRole value)

public ListDatabaseRolesResponse.Builder addDatabaseRoles(DatabaseRole value)

Database roles that matched the request.

repeated .google.spanner.admin.database.v1.DatabaseRole database_roles = 1;

Parameter
NameDescription
valueDatabaseRole
Returns
TypeDescription
ListDatabaseRolesResponse.Builder

addDatabaseRoles(DatabaseRole.Builder builderForValue)

public ListDatabaseRolesResponse.Builder addDatabaseRoles(DatabaseRole.Builder builderForValue)

Database roles that matched the request.

repeated .google.spanner.admin.database.v1.DatabaseRole database_roles = 1;

Parameter
NameDescription
builderForValueDatabaseRole.Builder
Returns
TypeDescription
ListDatabaseRolesResponse.Builder

addDatabaseRoles(int index, DatabaseRole value)

public ListDatabaseRolesResponse.Builder addDatabaseRoles(int index, DatabaseRole value)

Database roles that matched the request.

repeated .google.spanner.admin.database.v1.DatabaseRole database_roles = 1;

Parameters
NameDescription
indexint
valueDatabaseRole
Returns
TypeDescription
ListDatabaseRolesResponse.Builder

addDatabaseRoles(int index, DatabaseRole.Builder builderForValue)

public ListDatabaseRolesResponse.Builder addDatabaseRoles(int index, DatabaseRole.Builder builderForValue)

Database roles that matched the request.

repeated .google.spanner.admin.database.v1.DatabaseRole database_roles = 1;

Parameters
NameDescription
indexint
builderForValueDatabaseRole.Builder
Returns
TypeDescription
ListDatabaseRolesResponse.Builder

addDatabaseRolesBuilder()

public DatabaseRole.Builder addDatabaseRolesBuilder()

Database roles that matched the request.

repeated .google.spanner.admin.database.v1.DatabaseRole database_roles = 1;

Returns
TypeDescription
DatabaseRole.Builder

addDatabaseRolesBuilder(int index)

public DatabaseRole.Builder addDatabaseRolesBuilder(int index)

Database roles that matched the request.

repeated .google.spanner.admin.database.v1.DatabaseRole database_roles = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
DatabaseRole.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ListDatabaseRolesResponse build()
Returns
TypeDescription
ListDatabaseRolesResponse

buildPartial()

public ListDatabaseRolesResponse buildPartial()
Returns
TypeDescription
ListDatabaseRolesResponse

clear()

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

clearDatabaseRoles()

public ListDatabaseRolesResponse.Builder clearDatabaseRoles()

Database roles that matched the request.

repeated .google.spanner.admin.database.v1.DatabaseRole database_roles = 1;

Returns
TypeDescription
ListDatabaseRolesResponse.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearNextPageToken()

public ListDatabaseRolesResponse.Builder clearNextPageToken()

next_page_token can be sent in a subsequent ListDatabaseRoles call to fetch more of the matching roles.

string next_page_token = 2;

Returns
TypeDescription
ListDatabaseRolesResponse.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDatabaseRoles(int index)

public DatabaseRole getDatabaseRoles(int index)

Database roles that matched the request.

repeated .google.spanner.admin.database.v1.DatabaseRole database_roles = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
DatabaseRole

getDatabaseRolesBuilder(int index)

public DatabaseRole.Builder getDatabaseRolesBuilder(int index)

Database roles that matched the request.

repeated .google.spanner.admin.database.v1.DatabaseRole database_roles = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
DatabaseRole.Builder

getDatabaseRolesBuilderList()

public List<DatabaseRole.Builder> getDatabaseRolesBuilderList()

Database roles that matched the request.

repeated .google.spanner.admin.database.v1.DatabaseRole database_roles = 1;

Returns
TypeDescription
List<Builder>

getDatabaseRolesCount()

public int getDatabaseRolesCount()

Database roles that matched the request.

repeated .google.spanner.admin.database.v1.DatabaseRole database_roles = 1;

Returns
TypeDescription
int

getDatabaseRolesList()

public List<DatabaseRole> getDatabaseRolesList()

Database roles that matched the request.

repeated .google.spanner.admin.database.v1.DatabaseRole database_roles = 1;

Returns
TypeDescription
List<DatabaseRole>

getDatabaseRolesOrBuilder(int index)

public DatabaseRoleOrBuilder getDatabaseRolesOrBuilder(int index)

Database roles that matched the request.

repeated .google.spanner.admin.database.v1.DatabaseRole database_roles = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
DatabaseRoleOrBuilder

getDatabaseRolesOrBuilderList()

public List<? extends DatabaseRoleOrBuilder> getDatabaseRolesOrBuilderList()

Database roles that matched the request.

repeated .google.spanner.admin.database.v1.DatabaseRole database_roles = 1;

Returns
TypeDescription
List<? extends com.google.spanner.admin.database.v1.DatabaseRoleOrBuilder>

getDefaultInstanceForType()

public ListDatabaseRolesResponse getDefaultInstanceForType()
Returns
TypeDescription
ListDatabaseRolesResponse

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getNextPageToken()

public String getNextPageToken()

next_page_token can be sent in a subsequent ListDatabaseRoles call to fetch more of the matching roles.

string next_page_token = 2;

Returns
TypeDescription
String

The nextPageToken.

getNextPageTokenBytes()

public ByteString getNextPageTokenBytes()

next_page_token can be sent in a subsequent ListDatabaseRoles call to fetch more of the matching roles.

string next_page_token = 2;

Returns
TypeDescription
ByteString

The bytes for nextPageToken.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeFrom(ListDatabaseRolesResponse other)

public ListDatabaseRolesResponse.Builder mergeFrom(ListDatabaseRolesResponse other)
Parameter
NameDescription
otherListDatabaseRolesResponse
Returns
TypeDescription
ListDatabaseRolesResponse.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeDatabaseRoles(int index)

public ListDatabaseRolesResponse.Builder removeDatabaseRoles(int index)

Database roles that matched the request.

repeated .google.spanner.admin.database.v1.DatabaseRole database_roles = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
ListDatabaseRolesResponse.Builder

setDatabaseRoles(int index, DatabaseRole value)

public ListDatabaseRolesResponse.Builder setDatabaseRoles(int index, DatabaseRole value)

Database roles that matched the request.

repeated .google.spanner.admin.database.v1.DatabaseRole database_roles = 1;

Parameters
NameDescription
indexint
valueDatabaseRole
Returns
TypeDescription
ListDatabaseRolesResponse.Builder

setDatabaseRoles(int index, DatabaseRole.Builder builderForValue)

public ListDatabaseRolesResponse.Builder setDatabaseRoles(int index, DatabaseRole.Builder builderForValue)

Database roles that matched the request.

repeated .google.spanner.admin.database.v1.DatabaseRole database_roles = 1;

Parameters
NameDescription
indexint
builderForValueDatabaseRole.Builder
Returns
TypeDescription
ListDatabaseRolesResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setNextPageToken(String value)

public ListDatabaseRolesResponse.Builder setNextPageToken(String value)

next_page_token can be sent in a subsequent ListDatabaseRoles call to fetch more of the matching roles.

string next_page_token = 2;

Parameter
NameDescription
valueString

The nextPageToken to set.

Returns
TypeDescription
ListDatabaseRolesResponse.Builder

This builder for chaining.

setNextPageTokenBytes(ByteString value)

public ListDatabaseRolesResponse.Builder setNextPageTokenBytes(ByteString value)

next_page_token can be sent in a subsequent ListDatabaseRoles call to fetch more of the matching roles.

string next_page_token = 2;

Parameter
NameDescription
valueByteString

The bytes for nextPageToken to set.

Returns
TypeDescription
ListDatabaseRolesResponse.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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