Class CreateCloudBackupAction.Builder (6.62.0)

public static final class CreateCloudBackupAction.Builder extends GeneratedMessageV3.Builder<CreateCloudBackupAction.Builder> implements CreateCloudBackupActionOrBuilder

Action that creates a Cloud Spanner database backup.

Protobuf type google.spanner.executor.v1.CreateCloudBackupAction

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public CreateCloudBackupAction build()
Returns
TypeDescription
CreateCloudBackupAction

buildPartial()

public CreateCloudBackupAction buildPartial()
Returns
TypeDescription
CreateCloudBackupAction

clear()

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

clearBackupId()

public CreateCloudBackupAction.Builder clearBackupId()

The id of the backup to be created, e.g. "test-backup".

string backup_id = 3;

Returns
TypeDescription
CreateCloudBackupAction.Builder

This builder for chaining.

clearDatabaseId()

public CreateCloudBackupAction.Builder clearDatabaseId()

The id of the database from which this backup was created, e.g. "db0". Note that this needs to be in the same instance as the backup.

string database_id = 4;

Returns
TypeDescription
CreateCloudBackupAction.Builder

This builder for chaining.

clearExpireTime()

public CreateCloudBackupAction.Builder clearExpireTime()

Output only. The expiration time of the backup, which must be at least 6 hours and at most 366 days from the time the request is received.

.google.protobuf.Timestamp expire_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
CreateCloudBackupAction.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearInstanceId()

public CreateCloudBackupAction.Builder clearInstanceId()

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

string instance_id = 2;

Returns
TypeDescription
CreateCloudBackupAction.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearProjectId()

public CreateCloudBackupAction.Builder clearProjectId()

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

string project_id = 1;

Returns
TypeDescription
CreateCloudBackupAction.Builder

This builder for chaining.

clearVersionTime()

public CreateCloudBackupAction.Builder clearVersionTime()

The version time of the backup, which must be within the time range of [earliest_version_time, NOW], where earliest_version_time is retrieved by cloud spanner frontend API (See details: go/cs-pitr-lite-design).

optional .google.protobuf.Timestamp version_time = 6;

Returns
TypeDescription
CreateCloudBackupAction.Builder

clone()

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

getBackupId()

public String getBackupId()

The id of the backup to be created, e.g. "test-backup".

string backup_id = 3;

Returns
TypeDescription
String

The backupId.

getBackupIdBytes()

public ByteString getBackupIdBytes()

The id of the backup to be created, e.g. "test-backup".

string backup_id = 3;

Returns
TypeDescription
ByteString

The bytes for backupId.

getDatabaseId()

public String getDatabaseId()

The id of the database from which this backup was created, e.g. "db0". Note that this needs to be in the same instance as the backup.

string database_id = 4;

Returns
TypeDescription
String

The databaseId.

getDatabaseIdBytes()

public ByteString getDatabaseIdBytes()

The id of the database from which this backup was created, e.g. "db0". Note that this needs to be in the same instance as the backup.

string database_id = 4;

Returns
TypeDescription
ByteString

The bytes for databaseId.

getDefaultInstanceForType()

public CreateCloudBackupAction getDefaultInstanceForType()
Returns
TypeDescription
CreateCloudBackupAction

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getExpireTime()

public Timestamp getExpireTime()

Output only. The expiration time of the backup, which must be at least 6 hours and at most 366 days from the time the request is received.

.google.protobuf.Timestamp expire_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Timestamp

The expireTime.

getExpireTimeBuilder()

public Timestamp.Builder getExpireTimeBuilder()

Output only. The expiration time of the backup, which must be at least 6 hours and at most 366 days from the time the request is received.

.google.protobuf.Timestamp expire_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Builder

getExpireTimeOrBuilder()

public TimestampOrBuilder getExpireTimeOrBuilder()

Output only. The expiration time of the backup, which must be at least 6 hours and at most 366 days from the time the request is received.

.google.protobuf.Timestamp expire_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
TimestampOrBuilder

getInstanceId()

public String getInstanceId()

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

string instance_id = 2;

Returns
TypeDescription
String

The instanceId.

getInstanceIdBytes()

public ByteString getInstanceIdBytes()

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

string instance_id = 2;

Returns
TypeDescription
ByteString

The bytes for instanceId.

getProjectId()

public String getProjectId()

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

string project_id = 1;

Returns
TypeDescription
String

The projectId.

getProjectIdBytes()

public ByteString getProjectIdBytes()

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

string project_id = 1;

Returns
TypeDescription
ByteString

The bytes for projectId.

getVersionTime()

public Timestamp getVersionTime()

The version time of the backup, which must be within the time range of [earliest_version_time, NOW], where earliest_version_time is retrieved by cloud spanner frontend API (See details: go/cs-pitr-lite-design).

optional .google.protobuf.Timestamp version_time = 6;

Returns
TypeDescription
Timestamp

The versionTime.

getVersionTimeBuilder()

public Timestamp.Builder getVersionTimeBuilder()

The version time of the backup, which must be within the time range of [earliest_version_time, NOW], where earliest_version_time is retrieved by cloud spanner frontend API (See details: go/cs-pitr-lite-design).

optional .google.protobuf.Timestamp version_time = 6;

Returns
TypeDescription
Builder

getVersionTimeOrBuilder()

public TimestampOrBuilder getVersionTimeOrBuilder()

The version time of the backup, which must be within the time range of [earliest_version_time, NOW], where earliest_version_time is retrieved by cloud spanner frontend API (See details: go/cs-pitr-lite-design).

optional .google.protobuf.Timestamp version_time = 6;

Returns
TypeDescription
TimestampOrBuilder

hasExpireTime()

public boolean hasExpireTime()

Output only. The expiration time of the backup, which must be at least 6 hours and at most 366 days from the time the request is received.

.google.protobuf.Timestamp expire_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
boolean

Whether the expireTime field is set.

hasVersionTime()

public boolean hasVersionTime()

The version time of the backup, which must be within the time range of [earliest_version_time, NOW], where earliest_version_time is retrieved by cloud spanner frontend API (See details: go/cs-pitr-lite-design).

optional .google.protobuf.Timestamp version_time = 6;

Returns
TypeDescription
boolean

Whether the versionTime field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeExpireTime(Timestamp value)

public CreateCloudBackupAction.Builder mergeExpireTime(Timestamp value)

Output only. The expiration time of the backup, which must be at least 6 hours and at most 366 days from the time the request is received.

.google.protobuf.Timestamp expire_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
CreateCloudBackupAction.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeFrom(CreateCloudBackupAction other)

public CreateCloudBackupAction.Builder mergeFrom(CreateCloudBackupAction other)
Parameter
NameDescription
otherCreateCloudBackupAction
Returns
TypeDescription
CreateCloudBackupAction.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

mergeVersionTime(Timestamp value)

public CreateCloudBackupAction.Builder mergeVersionTime(Timestamp value)

The version time of the backup, which must be within the time range of [earliest_version_time, NOW], where earliest_version_time is retrieved by cloud spanner frontend API (See details: go/cs-pitr-lite-design).

optional .google.protobuf.Timestamp version_time = 6;

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
CreateCloudBackupAction.Builder

setBackupId(String value)

public CreateCloudBackupAction.Builder setBackupId(String value)

The id of the backup to be created, e.g. "test-backup".

string backup_id = 3;

Parameter
NameDescription
valueString

The backupId to set.

Returns
TypeDescription
CreateCloudBackupAction.Builder

This builder for chaining.

setBackupIdBytes(ByteString value)

public CreateCloudBackupAction.Builder setBackupIdBytes(ByteString value)

The id of the backup to be created, e.g. "test-backup".

string backup_id = 3;

Parameter
NameDescription
valueByteString

The bytes for backupId to set.

Returns
TypeDescription
CreateCloudBackupAction.Builder

This builder for chaining.

setDatabaseId(String value)

public CreateCloudBackupAction.Builder setDatabaseId(String value)

The id of the database from which this backup was created, e.g. "db0". Note that this needs to be in the same instance as the backup.

string database_id = 4;

Parameter
NameDescription
valueString

The databaseId to set.

Returns
TypeDescription
CreateCloudBackupAction.Builder

This builder for chaining.

setDatabaseIdBytes(ByteString value)

public CreateCloudBackupAction.Builder setDatabaseIdBytes(ByteString value)

The id of the database from which this backup was created, e.g. "db0". Note that this needs to be in the same instance as the backup.

string database_id = 4;

Parameter
NameDescription
valueByteString

The bytes for databaseId to set.

Returns
TypeDescription
CreateCloudBackupAction.Builder

This builder for chaining.

setExpireTime(Timestamp value)

public CreateCloudBackupAction.Builder setExpireTime(Timestamp value)

Output only. The expiration time of the backup, which must be at least 6 hours and at most 366 days from the time the request is received.

.google.protobuf.Timestamp expire_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
CreateCloudBackupAction.Builder

setExpireTime(Timestamp.Builder builderForValue)

public CreateCloudBackupAction.Builder setExpireTime(Timestamp.Builder builderForValue)

Output only. The expiration time of the backup, which must be at least 6 hours and at most 366 days from the time the request is received.

.google.protobuf.Timestamp expire_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
CreateCloudBackupAction.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setInstanceId(String value)

public CreateCloudBackupAction.Builder setInstanceId(String value)

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

string instance_id = 2;

Parameter
NameDescription
valueString

The instanceId to set.

Returns
TypeDescription
CreateCloudBackupAction.Builder

This builder for chaining.

setInstanceIdBytes(ByteString value)

public CreateCloudBackupAction.Builder setInstanceIdBytes(ByteString value)

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

string instance_id = 2;

Parameter
NameDescription
valueByteString

The bytes for instanceId to set.

Returns
TypeDescription
CreateCloudBackupAction.Builder

This builder for chaining.

setProjectId(String value)

public CreateCloudBackupAction.Builder setProjectId(String value)

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

string project_id = 1;

Parameter
NameDescription
valueString

The projectId to set.

Returns
TypeDescription
CreateCloudBackupAction.Builder

This builder for chaining.

setProjectIdBytes(ByteString value)

public CreateCloudBackupAction.Builder setProjectIdBytes(ByteString value)

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

string project_id = 1;

Parameter
NameDescription
valueByteString

The bytes for projectId to set.

Returns
TypeDescription
CreateCloudBackupAction.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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

setVersionTime(Timestamp value)

public CreateCloudBackupAction.Builder setVersionTime(Timestamp value)

The version time of the backup, which must be within the time range of [earliest_version_time, NOW], where earliest_version_time is retrieved by cloud spanner frontend API (See details: go/cs-pitr-lite-design).

optional .google.protobuf.Timestamp version_time = 6;

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
CreateCloudBackupAction.Builder

setVersionTime(Timestamp.Builder builderForValue)

public CreateCloudBackupAction.Builder setVersionTime(Timestamp.Builder builderForValue)

The version time of the backup, which must be within the time range of [earliest_version_time, NOW], where earliest_version_time is retrieved by cloud spanner frontend API (See details: go/cs-pitr-lite-design).

optional .google.protobuf.Timestamp version_time = 6;

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
CreateCloudBackupAction.Builder