Class CloudDatabaseResponse.Builder (6.77.0)

public static final class CloudDatabaseResponse.Builder extends GeneratedMessageV3.Builder<CloudDatabaseResponse.Builder> implements CloudDatabaseResponseOrBuilder

CloudDatabaseResponse contains results returned by cloud database related actions.

Protobuf type google.spanner.executor.v1.CloudDatabaseResponse

Static Methods

getDescriptor()

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

Methods

addAllListedDatabaseOperations(Iterable<? extends Operation> values)

public CloudDatabaseResponse.Builder addAllListedDatabaseOperations(Iterable<? extends Operation> values)

List of operations returned by ListCloudDatabaseOperationsAction.

repeated .google.longrunning.Operation listed_database_operations = 2;

Parameter
Name Description
values Iterable<? extends com.google.longrunning.Operation>
Returns
Type Description
CloudDatabaseResponse.Builder

addAllListedDatabases(Iterable<? extends Database> values)

public CloudDatabaseResponse.Builder addAllListedDatabases(Iterable<? extends Database> values)

List of databases returned by ListCloudDatabasesAction.

repeated .google.spanner.admin.database.v1.Database listed_databases = 1;

Parameter
Name Description
values Iterable<? extends com.google.spanner.admin.database.v1.Database>
Returns
Type Description
CloudDatabaseResponse.Builder

addListedDatabaseOperations(Operation value)

public CloudDatabaseResponse.Builder addListedDatabaseOperations(Operation value)

List of operations returned by ListCloudDatabaseOperationsAction.

repeated .google.longrunning.Operation listed_database_operations = 2;

Parameter
Name Description
value Operation
Returns
Type Description
CloudDatabaseResponse.Builder

addListedDatabaseOperations(Operation.Builder builderForValue)

public CloudDatabaseResponse.Builder addListedDatabaseOperations(Operation.Builder builderForValue)

List of operations returned by ListCloudDatabaseOperationsAction.

repeated .google.longrunning.Operation listed_database_operations = 2;

Parameter
Name Description
builderForValue Builder
Returns
Type Description
CloudDatabaseResponse.Builder

addListedDatabaseOperations(int index, Operation value)

public CloudDatabaseResponse.Builder addListedDatabaseOperations(int index, Operation value)

List of operations returned by ListCloudDatabaseOperationsAction.

repeated .google.longrunning.Operation listed_database_operations = 2;

Parameters
Name Description
index int
value Operation
Returns
Type Description
CloudDatabaseResponse.Builder

addListedDatabaseOperations(int index, Operation.Builder builderForValue)

public CloudDatabaseResponse.Builder addListedDatabaseOperations(int index, Operation.Builder builderForValue)

List of operations returned by ListCloudDatabaseOperationsAction.

repeated .google.longrunning.Operation listed_database_operations = 2;

Parameters
Name Description
index int
builderForValue Builder
Returns
Type Description
CloudDatabaseResponse.Builder

addListedDatabaseOperationsBuilder()

public Operation.Builder addListedDatabaseOperationsBuilder()

List of operations returned by ListCloudDatabaseOperationsAction.

repeated .google.longrunning.Operation listed_database_operations = 2;

Returns
Type Description
Builder

addListedDatabaseOperationsBuilder(int index)

public Operation.Builder addListedDatabaseOperationsBuilder(int index)

List of operations returned by ListCloudDatabaseOperationsAction.

repeated .google.longrunning.Operation listed_database_operations = 2;

Parameter
Name Description
index int
Returns
Type Description
Builder

addListedDatabases(Database value)

public CloudDatabaseResponse.Builder addListedDatabases(Database value)

List of databases returned by ListCloudDatabasesAction.

repeated .google.spanner.admin.database.v1.Database listed_databases = 1;

Parameter
Name Description
value Database
Returns
Type Description
CloudDatabaseResponse.Builder

addListedDatabases(Database.Builder builderForValue)

public CloudDatabaseResponse.Builder addListedDatabases(Database.Builder builderForValue)

List of databases returned by ListCloudDatabasesAction.

repeated .google.spanner.admin.database.v1.Database listed_databases = 1;

Parameter
Name Description
builderForValue Database.Builder
Returns
Type Description
CloudDatabaseResponse.Builder

addListedDatabases(int index, Database value)

public CloudDatabaseResponse.Builder addListedDatabases(int index, Database value)

List of databases returned by ListCloudDatabasesAction.

repeated .google.spanner.admin.database.v1.Database listed_databases = 1;

Parameters
Name Description
index int
value Database
Returns
Type Description
CloudDatabaseResponse.Builder

addListedDatabases(int index, Database.Builder builderForValue)

public CloudDatabaseResponse.Builder addListedDatabases(int index, Database.Builder builderForValue)

List of databases returned by ListCloudDatabasesAction.

repeated .google.spanner.admin.database.v1.Database listed_databases = 1;

Parameters
Name Description
index int
builderForValue Database.Builder
Returns
Type Description
CloudDatabaseResponse.Builder

addListedDatabasesBuilder()

public Database.Builder addListedDatabasesBuilder()

List of databases returned by ListCloudDatabasesAction.

repeated .google.spanner.admin.database.v1.Database listed_databases = 1;

Returns
Type Description
Database.Builder

addListedDatabasesBuilder(int index)

public Database.Builder addListedDatabasesBuilder(int index)

List of databases returned by ListCloudDatabasesAction.

repeated .google.spanner.admin.database.v1.Database listed_databases = 1;

Parameter
Name Description
index int
Returns
Type Description
Database.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public CloudDatabaseResponse build()
Returns
Type Description
CloudDatabaseResponse

buildPartial()

public CloudDatabaseResponse buildPartial()
Returns
Type Description
CloudDatabaseResponse

clear()

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

clearDatabase()

public CloudDatabaseResponse.Builder clearDatabase()

Database returned by GetCloudDatabaseAction

.google.spanner.admin.database.v1.Database database = 4;

Returns
Type Description
CloudDatabaseResponse.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearListedDatabaseOperations()

public CloudDatabaseResponse.Builder clearListedDatabaseOperations()

List of operations returned by ListCloudDatabaseOperationsAction.

repeated .google.longrunning.Operation listed_database_operations = 2;

Returns
Type Description
CloudDatabaseResponse.Builder

clearListedDatabases()

public CloudDatabaseResponse.Builder clearListedDatabases()

List of databases returned by ListCloudDatabasesAction.

repeated .google.spanner.admin.database.v1.Database listed_databases = 1;

Returns
Type Description
CloudDatabaseResponse.Builder

clearNextPageToken()

public CloudDatabaseResponse.Builder clearNextPageToken()

"next_page_token" can be sent in a subsequent list action to fetch more of the matching data.

string next_page_token = 3;

Returns
Type Description
CloudDatabaseResponse.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDatabase()

public Database getDatabase()

Database returned by GetCloudDatabaseAction

.google.spanner.admin.database.v1.Database database = 4;

Returns
Type Description
Database

The database.

getDatabaseBuilder()

public Database.Builder getDatabaseBuilder()

Database returned by GetCloudDatabaseAction

.google.spanner.admin.database.v1.Database database = 4;

Returns
Type Description
Database.Builder

getDatabaseOrBuilder()

public DatabaseOrBuilder getDatabaseOrBuilder()

Database returned by GetCloudDatabaseAction

.google.spanner.admin.database.v1.Database database = 4;

Returns
Type Description
DatabaseOrBuilder

getDefaultInstanceForType()

public CloudDatabaseResponse getDefaultInstanceForType()
Returns
Type Description
CloudDatabaseResponse

getDescriptorForType()

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

getListedDatabaseOperations(int index)

public Operation getListedDatabaseOperations(int index)

List of operations returned by ListCloudDatabaseOperationsAction.

repeated .google.longrunning.Operation listed_database_operations = 2;

Parameter
Name Description
index int
Returns
Type Description
Operation

getListedDatabaseOperationsBuilder(int index)

public Operation.Builder getListedDatabaseOperationsBuilder(int index)

List of operations returned by ListCloudDatabaseOperationsAction.

repeated .google.longrunning.Operation listed_database_operations = 2;

Parameter
Name Description
index int
Returns
Type Description
Builder

getListedDatabaseOperationsBuilderList()

public List<Operation.Builder> getListedDatabaseOperationsBuilderList()

List of operations returned by ListCloudDatabaseOperationsAction.

repeated .google.longrunning.Operation listed_database_operations = 2;

Returns
Type Description
List<Builder>

getListedDatabaseOperationsCount()

public int getListedDatabaseOperationsCount()

List of operations returned by ListCloudDatabaseOperationsAction.

repeated .google.longrunning.Operation listed_database_operations = 2;

Returns
Type Description
int

getListedDatabaseOperationsList()

public List<Operation> getListedDatabaseOperationsList()

List of operations returned by ListCloudDatabaseOperationsAction.

repeated .google.longrunning.Operation listed_database_operations = 2;

Returns
Type Description
List<Operation>

getListedDatabaseOperationsOrBuilder(int index)

public OperationOrBuilder getListedDatabaseOperationsOrBuilder(int index)

List of operations returned by ListCloudDatabaseOperationsAction.

repeated .google.longrunning.Operation listed_database_operations = 2;

Parameter
Name Description
index int
Returns
Type Description
OperationOrBuilder

getListedDatabaseOperationsOrBuilderList()

public List<? extends OperationOrBuilder> getListedDatabaseOperationsOrBuilderList()

List of operations returned by ListCloudDatabaseOperationsAction.

repeated .google.longrunning.Operation listed_database_operations = 2;

Returns
Type Description
List<? extends com.google.longrunning.OperationOrBuilder>

getListedDatabases(int index)

public Database getListedDatabases(int index)

List of databases returned by ListCloudDatabasesAction.

repeated .google.spanner.admin.database.v1.Database listed_databases = 1;

Parameter
Name Description
index int
Returns
Type Description
Database

getListedDatabasesBuilder(int index)

public Database.Builder getListedDatabasesBuilder(int index)

List of databases returned by ListCloudDatabasesAction.

repeated .google.spanner.admin.database.v1.Database listed_databases = 1;

Parameter
Name Description
index int
Returns
Type Description
Database.Builder

getListedDatabasesBuilderList()

public List<Database.Builder> getListedDatabasesBuilderList()

List of databases returned by ListCloudDatabasesAction.

repeated .google.spanner.admin.database.v1.Database listed_databases = 1;

Returns
Type Description
List<Builder>

getListedDatabasesCount()

public int getListedDatabasesCount()

List of databases returned by ListCloudDatabasesAction.

repeated .google.spanner.admin.database.v1.Database listed_databases = 1;

Returns
Type Description
int

getListedDatabasesList()

public List<Database> getListedDatabasesList()

List of databases returned by ListCloudDatabasesAction.

repeated .google.spanner.admin.database.v1.Database listed_databases = 1;

Returns
Type Description
List<Database>

getListedDatabasesOrBuilder(int index)

public DatabaseOrBuilder getListedDatabasesOrBuilder(int index)

List of databases returned by ListCloudDatabasesAction.

repeated .google.spanner.admin.database.v1.Database listed_databases = 1;

Parameter
Name Description
index int
Returns
Type Description
DatabaseOrBuilder

getListedDatabasesOrBuilderList()

public List<? extends DatabaseOrBuilder> getListedDatabasesOrBuilderList()

List of databases returned by ListCloudDatabasesAction.

repeated .google.spanner.admin.database.v1.Database listed_databases = 1;

Returns
Type Description
List<? extends com.google.spanner.admin.database.v1.DatabaseOrBuilder>

getNextPageToken()

public String getNextPageToken()

"next_page_token" can be sent in a subsequent list action to fetch more of the matching data.

string next_page_token = 3;

Returns
Type Description
String

The nextPageToken.

getNextPageTokenBytes()

public ByteString getNextPageTokenBytes()

"next_page_token" can be sent in a subsequent list action to fetch more of the matching data.

string next_page_token = 3;

Returns
Type Description
ByteString

The bytes for nextPageToken.

hasDatabase()

public boolean hasDatabase()

Database returned by GetCloudDatabaseAction

.google.spanner.admin.database.v1.Database database = 4;

Returns
Type Description
boolean

Whether the database field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeDatabase(Database value)

public CloudDatabaseResponse.Builder mergeDatabase(Database value)

Database returned by GetCloudDatabaseAction

.google.spanner.admin.database.v1.Database database = 4;

Parameter
Name Description
value Database
Returns
Type Description
CloudDatabaseResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeFrom(CloudDatabaseResponse other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeListedDatabaseOperations(int index)

public CloudDatabaseResponse.Builder removeListedDatabaseOperations(int index)

List of operations returned by ListCloudDatabaseOperationsAction.

repeated .google.longrunning.Operation listed_database_operations = 2;

Parameter
Name Description
index int
Returns
Type Description
CloudDatabaseResponse.Builder

removeListedDatabases(int index)

public CloudDatabaseResponse.Builder removeListedDatabases(int index)

List of databases returned by ListCloudDatabasesAction.

repeated .google.spanner.admin.database.v1.Database listed_databases = 1;

Parameter
Name Description
index int
Returns
Type Description
CloudDatabaseResponse.Builder

setDatabase(Database value)

public CloudDatabaseResponse.Builder setDatabase(Database value)

Database returned by GetCloudDatabaseAction

.google.spanner.admin.database.v1.Database database = 4;

Parameter
Name Description
value Database
Returns
Type Description
CloudDatabaseResponse.Builder

setDatabase(Database.Builder builderForValue)

public CloudDatabaseResponse.Builder setDatabase(Database.Builder builderForValue)

Database returned by GetCloudDatabaseAction

.google.spanner.admin.database.v1.Database database = 4;

Parameter
Name Description
builderForValue Database.Builder
Returns
Type Description
CloudDatabaseResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setListedDatabaseOperations(int index, Operation value)

public CloudDatabaseResponse.Builder setListedDatabaseOperations(int index, Operation value)

List of operations returned by ListCloudDatabaseOperationsAction.

repeated .google.longrunning.Operation listed_database_operations = 2;

Parameters
Name Description
index int
value Operation
Returns
Type Description
CloudDatabaseResponse.Builder

setListedDatabaseOperations(int index, Operation.Builder builderForValue)

public CloudDatabaseResponse.Builder setListedDatabaseOperations(int index, Operation.Builder builderForValue)

List of operations returned by ListCloudDatabaseOperationsAction.

repeated .google.longrunning.Operation listed_database_operations = 2;

Parameters
Name Description
index int
builderForValue Builder
Returns
Type Description
CloudDatabaseResponse.Builder

setListedDatabases(int index, Database value)

public CloudDatabaseResponse.Builder setListedDatabases(int index, Database value)

List of databases returned by ListCloudDatabasesAction.

repeated .google.spanner.admin.database.v1.Database listed_databases = 1;

Parameters
Name Description
index int
value Database
Returns
Type Description
CloudDatabaseResponse.Builder

setListedDatabases(int index, Database.Builder builderForValue)

public CloudDatabaseResponse.Builder setListedDatabases(int index, Database.Builder builderForValue)

List of databases returned by ListCloudDatabasesAction.

repeated .google.spanner.admin.database.v1.Database listed_databases = 1;

Parameters
Name Description
index int
builderForValue Database.Builder
Returns
Type Description
CloudDatabaseResponse.Builder

setNextPageToken(String value)

public CloudDatabaseResponse.Builder setNextPageToken(String value)

"next_page_token" can be sent in a subsequent list action to fetch more of the matching data.

string next_page_token = 3;

Parameter
Name Description
value String

The nextPageToken to set.

Returns
Type Description
CloudDatabaseResponse.Builder

This builder for chaining.

setNextPageTokenBytes(ByteString value)

public CloudDatabaseResponse.Builder setNextPageTokenBytes(ByteString value)

"next_page_token" can be sent in a subsequent list action to fetch more of the matching data.

string next_page_token = 3;

Parameter
Name Description
value ByteString

The bytes for nextPageToken to set.

Returns
Type Description
CloudDatabaseResponse.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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