Class CloudDatabaseResponse.Builder (6.62.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
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.longrunning.Operation>
Returns
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.spanner.admin.database.v1.Database>
Returns
TypeDescription
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
NameDescription
valueOperation
Returns
TypeDescription
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
NameDescription
builderForValueBuilder
Returns
TypeDescription
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
NameDescription
indexint
valueOperation
Returns
TypeDescription
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
NameDescription
indexint
builderForValueBuilder
Returns
TypeDescription
CloudDatabaseResponse.Builder

addListedDatabaseOperationsBuilder()

public Operation.Builder addListedDatabaseOperationsBuilder()

List of operations returned by ListCloudDatabaseOperationsAction.

repeated .google.longrunning.Operation listed_database_operations = 2;

Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
valueDatabase
Returns
TypeDescription
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
NameDescription
builderForValueDatabase.Builder
Returns
TypeDescription
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
NameDescription
indexint
valueDatabase
Returns
TypeDescription
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
NameDescription
indexint
builderForValueDatabase.Builder
Returns
TypeDescription
CloudDatabaseResponse.Builder

addListedDatabasesBuilder()

public Database.Builder addListedDatabasesBuilder()

List of databases returned by ListCloudDatabasesAction.

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

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

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public CloudDatabaseResponse build()
Returns
TypeDescription
CloudDatabaseResponse

buildPartial()

public CloudDatabaseResponse buildPartial()
Returns
TypeDescription
CloudDatabaseResponse

clear()

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

clearDatabase()

public CloudDatabaseResponse.Builder clearDatabase()

Database returned by GetCloudDatabaseAction

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

Returns
TypeDescription
CloudDatabaseResponse.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearListedDatabaseOperations()

public CloudDatabaseResponse.Builder clearListedDatabaseOperations()

List of operations returned by ListCloudDatabaseOperationsAction.

repeated .google.longrunning.Operation listed_database_operations = 2;

Returns
TypeDescription
CloudDatabaseResponse.Builder

clearListedDatabases()

public CloudDatabaseResponse.Builder clearListedDatabases()

List of databases returned by ListCloudDatabasesAction.

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

Returns
TypeDescription
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
TypeDescription
CloudDatabaseResponse.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDatabase()

public Database getDatabase()

Database returned by GetCloudDatabaseAction

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

Returns
TypeDescription
Database

The database.

getDatabaseBuilder()

public Database.Builder getDatabaseBuilder()

Database returned by GetCloudDatabaseAction

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

Returns
TypeDescription
Database.Builder

getDatabaseOrBuilder()

public DatabaseOrBuilder getDatabaseOrBuilder()

Database returned by GetCloudDatabaseAction

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

Returns
TypeDescription
DatabaseOrBuilder

getDefaultInstanceForType()

public CloudDatabaseResponse getDefaultInstanceForType()
Returns
TypeDescription
CloudDatabaseResponse

getDescriptorForType()

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

getListedDatabaseOperationsBuilderList()

public List<Operation.Builder> getListedDatabaseOperationsBuilderList()

List of operations returned by ListCloudDatabaseOperationsAction.

repeated .google.longrunning.Operation listed_database_operations = 2;

Returns
TypeDescription
List<Builder>

getListedDatabaseOperationsCount()

public int getListedDatabaseOperationsCount()

List of operations returned by ListCloudDatabaseOperationsAction.

repeated .google.longrunning.Operation listed_database_operations = 2;

Returns
TypeDescription
int

getListedDatabaseOperationsList()

public List<Operation> getListedDatabaseOperationsList()

List of operations returned by ListCloudDatabaseOperationsAction.

repeated .google.longrunning.Operation listed_database_operations = 2;

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

getListedDatabaseOperationsOrBuilderList()

public List<? extends OperationOrBuilder> getListedDatabaseOperationsOrBuilderList()

List of operations returned by ListCloudDatabaseOperationsAction.

repeated .google.longrunning.Operation listed_database_operations = 2;

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

getListedDatabasesCount()

public int getListedDatabasesCount()

List of databases returned by ListCloudDatabasesAction.

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

Returns
TypeDescription
int

getListedDatabasesList()

public List<Database> getListedDatabasesList()

List of databases returned by ListCloudDatabasesAction.

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

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

getListedDatabasesOrBuilderList()

public List<? extends DatabaseOrBuilder> getListedDatabasesOrBuilderList()

List of databases returned by ListCloudDatabasesAction.

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

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

The bytes for nextPageToken.

hasDatabase()

public boolean hasDatabase()

Database returned by GetCloudDatabaseAction

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

Returns
TypeDescription
boolean

Whether the database field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeDatabase(Database value)

public CloudDatabaseResponse.Builder mergeDatabase(Database value)

Database returned by GetCloudDatabaseAction

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

Parameter
NameDescription
valueDatabase
Returns
TypeDescription
CloudDatabaseResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeFrom(CloudDatabaseResponse other)

public CloudDatabaseResponse.Builder mergeFrom(CloudDatabaseResponse other)
Parameter
NameDescription
otherCloudDatabaseResponse
Returns
TypeDescription
CloudDatabaseResponse.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setDatabase(Database value)

public CloudDatabaseResponse.Builder setDatabase(Database value)

Database returned by GetCloudDatabaseAction

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

Parameter
NameDescription
valueDatabase
Returns
TypeDescription
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
NameDescription
builderForValueDatabase.Builder
Returns
TypeDescription
CloudDatabaseResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public CloudDatabaseResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
indexint
valueOperation
Returns
TypeDescription
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
NameDescription
indexint
builderForValueBuilder
Returns
TypeDescription
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
NameDescription
indexint
valueDatabase
Returns
TypeDescription
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
NameDescription
indexint
builderForValueDatabase.Builder
Returns
TypeDescription
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
NameDescription
valueString

The nextPageToken to set.

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

The bytes for nextPageToken to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
CloudDatabaseResponse.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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