Class GetCloudDatabaseAction.Builder (6.71.0)

public static final class GetCloudDatabaseAction.Builder extends GeneratedMessageV3.Builder<GetCloudDatabaseAction.Builder> implements GetCloudDatabaseActionOrBuilder

Action that gets a Cloud Spanner database.

Protobuf type google.spanner.executor.v1.GetCloudDatabaseAction

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public GetCloudDatabaseAction build()
Returns
Type Description
GetCloudDatabaseAction

buildPartial()

public GetCloudDatabaseAction buildPartial()
Returns
Type Description
GetCloudDatabaseAction

clear()

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

clearDatabaseId()

public GetCloudDatabaseAction.Builder clearDatabaseId()

The id of the database to get, e.g. "db0".

string database_id = 3;

Returns
Type Description
GetCloudDatabaseAction.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearInstanceId()

public GetCloudDatabaseAction.Builder clearInstanceId()

Cloud instance ID (not path), e.g. "test-instance".

string instance_id = 2;

Returns
Type Description
GetCloudDatabaseAction.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearProjectId()

public GetCloudDatabaseAction.Builder clearProjectId()

Cloud project ID, e.g. "spanner-cloud-systest".

string project_id = 1;

Returns
Type Description
GetCloudDatabaseAction.Builder

This builder for chaining.

clone()

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

getDatabaseId()

public String getDatabaseId()

The id of the database to get, e.g. "db0".

string database_id = 3;

Returns
Type Description
String

The databaseId.

getDatabaseIdBytes()

public ByteString getDatabaseIdBytes()

The id of the database to get, e.g. "db0".

string database_id = 3;

Returns
Type Description
ByteString

The bytes for databaseId.

getDefaultInstanceForType()

public GetCloudDatabaseAction getDefaultInstanceForType()
Returns
Type Description
GetCloudDatabaseAction

getDescriptorForType()

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

getInstanceId()

public String getInstanceId()

Cloud instance ID (not path), e.g. "test-instance".

string instance_id = 2;

Returns
Type Description
String

The instanceId.

getInstanceIdBytes()

public ByteString getInstanceIdBytes()

Cloud instance ID (not path), e.g. "test-instance".

string instance_id = 2;

Returns
Type Description
ByteString

The bytes for instanceId.

getProjectId()

public String getProjectId()

Cloud project ID, e.g. "spanner-cloud-systest".

string project_id = 1;

Returns
Type Description
String

The projectId.

getProjectIdBytes()

public ByteString getProjectIdBytes()

Cloud project ID, e.g. "spanner-cloud-systest".

string project_id = 1;

Returns
Type Description
ByteString

The bytes for projectId.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeFrom(GetCloudDatabaseAction other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setDatabaseId(String value)

public GetCloudDatabaseAction.Builder setDatabaseId(String value)

The id of the database to get, e.g. "db0".

string database_id = 3;

Parameter
Name Description
value String

The databaseId to set.

Returns
Type Description
GetCloudDatabaseAction.Builder

This builder for chaining.

setDatabaseIdBytes(ByteString value)

public GetCloudDatabaseAction.Builder setDatabaseIdBytes(ByteString value)

The id of the database to get, e.g. "db0".

string database_id = 3;

Parameter
Name Description
value ByteString

The bytes for databaseId to set.

Returns
Type Description
GetCloudDatabaseAction.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setInstanceId(String value)

public GetCloudDatabaseAction.Builder setInstanceId(String value)

Cloud instance ID (not path), e.g. "test-instance".

string instance_id = 2;

Parameter
Name Description
value String

The instanceId to set.

Returns
Type Description
GetCloudDatabaseAction.Builder

This builder for chaining.

setInstanceIdBytes(ByteString value)

public GetCloudDatabaseAction.Builder setInstanceIdBytes(ByteString value)

Cloud instance ID (not path), e.g. "test-instance".

string instance_id = 2;

Parameter
Name Description
value ByteString

The bytes for instanceId to set.

Returns
Type Description
GetCloudDatabaseAction.Builder

This builder for chaining.

setProjectId(String value)

public GetCloudDatabaseAction.Builder setProjectId(String value)

Cloud project ID, e.g. "spanner-cloud-systest".

string project_id = 1;

Parameter
Name Description
value String

The projectId to set.

Returns
Type Description
GetCloudDatabaseAction.Builder

This builder for chaining.

setProjectIdBytes(ByteString value)

public GetCloudDatabaseAction.Builder setProjectIdBytes(ByteString value)

Cloud project ID, e.g. "spanner-cloud-systest".

string project_id = 1;

Parameter
Name Description
value ByteString

The bytes for projectId to set.

Returns
Type Description
GetCloudDatabaseAction.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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