public static final class BackupSchedule.Builder extends GeneratedMessageV3.Builder<BackupSchedule.Builder> implements BackupScheduleOrBuilder
BackupSchedule expresses the automated backup creation specification for a Spanner database. Next ID: 10
Protobuf type google.spanner.admin.database.v1.BackupSchedule
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > BackupSchedule.BuilderImplements
BackupScheduleOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns | |
---|---|
Type | Description |
Descriptor |
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public BackupSchedule.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
value |
Object |
Returns | |
---|---|
Type | Description |
BackupSchedule.Builder |
build()
public BackupSchedule build()
Returns | |
---|---|
Type | Description |
BackupSchedule |
buildPartial()
public BackupSchedule buildPartial()
Returns | |
---|---|
Type | Description |
BackupSchedule |
clear()
public BackupSchedule.Builder clear()
Returns | |
---|---|
Type | Description |
BackupSchedule.Builder |
clearBackupTypeSpec()
public BackupSchedule.Builder clearBackupTypeSpec()
Returns | |
---|---|
Type | Description |
BackupSchedule.Builder |
clearEncryptionConfig()
public BackupSchedule.Builder clearEncryptionConfig()
Optional. The encryption configuration that will be used to encrypt the backup. If this field is not specified, the backup will use the same encryption configuration as the database.
.google.spanner.admin.database.v1.CreateBackupEncryptionConfig encryption_config = 4 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
BackupSchedule.Builder |
clearField(Descriptors.FieldDescriptor field)
public BackupSchedule.Builder clearField(Descriptors.FieldDescriptor field)
Parameter | |
---|---|
Name | Description |
field |
FieldDescriptor |
Returns | |
---|---|
Type | Description |
BackupSchedule.Builder |
clearFullBackupSpec()
public BackupSchedule.Builder clearFullBackupSpec()
The schedule creates only full backups.
.google.spanner.admin.database.v1.FullBackupSpec full_backup_spec = 7;
Returns | |
---|---|
Type | Description |
BackupSchedule.Builder |
clearIncrementalBackupSpec()
public BackupSchedule.Builder clearIncrementalBackupSpec()
The schedule creates incremental backup chains.
.google.spanner.admin.database.v1.IncrementalBackupSpec incremental_backup_spec = 8;
Returns | |
---|---|
Type | Description |
BackupSchedule.Builder |
clearName()
public BackupSchedule.Builder clearName()
Identifier. Output only for the
CreateBackupSchedule operation.
Required for the
UpdateBackupSchedule
operation. A globally unique identifier for the backup schedule which
cannot be changed. Values are of the form
projects/<project>/instances/<instance>/databases/<database>/backupSchedules/a-z*[a-z0-9]
The final segment of the name must be between 2 and 60 characters in
length.
string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
Returns | |
---|---|
Type | Description |
BackupSchedule.Builder |
This builder for chaining. |
clearOneof(Descriptors.OneofDescriptor oneof)
public BackupSchedule.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter | |
---|---|
Name | Description |
oneof |
OneofDescriptor |
Returns | |
---|---|
Type | Description |
BackupSchedule.Builder |
clearRetentionDuration()
public BackupSchedule.Builder clearRetentionDuration()
Optional. The retention duration of a backup that must be at least 6 hours and at most 366 days. The backup is eligible to be automatically deleted once the retention period has elapsed.
.google.protobuf.Duration retention_duration = 3 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
BackupSchedule.Builder |
clearSpec()
public BackupSchedule.Builder clearSpec()
Optional. The schedule specification based on which the backup creations are triggered.
.google.spanner.admin.database.v1.BackupScheduleSpec spec = 6 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
BackupSchedule.Builder |
clearUpdateTime()
public BackupSchedule.Builder clearUpdateTime()
Output only. The timestamp at which the schedule was last updated. If the schedule has never been updated, this field contains the timestamp when the schedule was first created.
.google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
BackupSchedule.Builder |
clone()
public BackupSchedule.Builder clone()
Returns | |
---|---|
Type | Description |
BackupSchedule.Builder |
getBackupTypeSpecCase()
public BackupSchedule.BackupTypeSpecCase getBackupTypeSpecCase()
Returns | |
---|---|
Type | Description |
BackupSchedule.BackupTypeSpecCase |
getDefaultInstanceForType()
public BackupSchedule getDefaultInstanceForType()
Returns | |
---|---|
Type | Description |
BackupSchedule |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns | |
---|---|
Type | Description |
Descriptor |
getEncryptionConfig()
public CreateBackupEncryptionConfig getEncryptionConfig()
Optional. The encryption configuration that will be used to encrypt the backup. If this field is not specified, the backup will use the same encryption configuration as the database.
.google.spanner.admin.database.v1.CreateBackupEncryptionConfig encryption_config = 4 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
CreateBackupEncryptionConfig |
The encryptionConfig. |
getEncryptionConfigBuilder()
public CreateBackupEncryptionConfig.Builder getEncryptionConfigBuilder()
Optional. The encryption configuration that will be used to encrypt the backup. If this field is not specified, the backup will use the same encryption configuration as the database.
.google.spanner.admin.database.v1.CreateBackupEncryptionConfig encryption_config = 4 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
CreateBackupEncryptionConfig.Builder |
getEncryptionConfigOrBuilder()
public CreateBackupEncryptionConfigOrBuilder getEncryptionConfigOrBuilder()
Optional. The encryption configuration that will be used to encrypt the backup. If this field is not specified, the backup will use the same encryption configuration as the database.
.google.spanner.admin.database.v1.CreateBackupEncryptionConfig encryption_config = 4 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
CreateBackupEncryptionConfigOrBuilder |
getFullBackupSpec()
public FullBackupSpec getFullBackupSpec()
The schedule creates only full backups.
.google.spanner.admin.database.v1.FullBackupSpec full_backup_spec = 7;
Returns | |
---|---|
Type | Description |
FullBackupSpec |
The fullBackupSpec. |
getFullBackupSpecBuilder()
public FullBackupSpec.Builder getFullBackupSpecBuilder()
The schedule creates only full backups.
.google.spanner.admin.database.v1.FullBackupSpec full_backup_spec = 7;
Returns | |
---|---|
Type | Description |
FullBackupSpec.Builder |
getFullBackupSpecOrBuilder()
public FullBackupSpecOrBuilder getFullBackupSpecOrBuilder()
The schedule creates only full backups.
.google.spanner.admin.database.v1.FullBackupSpec full_backup_spec = 7;
Returns | |
---|---|
Type | Description |
FullBackupSpecOrBuilder |
getIncrementalBackupSpec()
public IncrementalBackupSpec getIncrementalBackupSpec()
The schedule creates incremental backup chains.
.google.spanner.admin.database.v1.IncrementalBackupSpec incremental_backup_spec = 8;
Returns | |
---|---|
Type | Description |
IncrementalBackupSpec |
The incrementalBackupSpec. |
getIncrementalBackupSpecBuilder()
public IncrementalBackupSpec.Builder getIncrementalBackupSpecBuilder()
The schedule creates incremental backup chains.
.google.spanner.admin.database.v1.IncrementalBackupSpec incremental_backup_spec = 8;
Returns | |
---|---|
Type | Description |
IncrementalBackupSpec.Builder |
getIncrementalBackupSpecOrBuilder()
public IncrementalBackupSpecOrBuilder getIncrementalBackupSpecOrBuilder()
The schedule creates incremental backup chains.
.google.spanner.admin.database.v1.IncrementalBackupSpec incremental_backup_spec = 8;
Returns | |
---|---|
Type | Description |
IncrementalBackupSpecOrBuilder |
getName()
public String getName()
Identifier. Output only for the
CreateBackupSchedule operation.
Required for the
UpdateBackupSchedule
operation. A globally unique identifier for the backup schedule which
cannot be changed. Values are of the form
projects/<project>/instances/<instance>/databases/<database>/backupSchedules/a-z*[a-z0-9]
The final segment of the name must be between 2 and 60 characters in
length.
string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
Returns | |
---|---|
Type | Description |
String |
The name. |
getNameBytes()
public ByteString getNameBytes()
Identifier. Output only for the
CreateBackupSchedule operation.
Required for the
UpdateBackupSchedule
operation. A globally unique identifier for the backup schedule which
cannot be changed. Values are of the form
projects/<project>/instances/<instance>/databases/<database>/backupSchedules/a-z*[a-z0-9]
The final segment of the name must be between 2 and 60 characters in
length.
string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
Returns | |
---|---|
Type | Description |
ByteString |
The bytes for name. |
getRetentionDuration()
public Duration getRetentionDuration()
Optional. The retention duration of a backup that must be at least 6 hours and at most 366 days. The backup is eligible to be automatically deleted once the retention period has elapsed.
.google.protobuf.Duration retention_duration = 3 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
Duration |
The retentionDuration. |
getRetentionDurationBuilder()
public Duration.Builder getRetentionDurationBuilder()
Optional. The retention duration of a backup that must be at least 6 hours and at most 366 days. The backup is eligible to be automatically deleted once the retention period has elapsed.
.google.protobuf.Duration retention_duration = 3 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
Builder |
getRetentionDurationOrBuilder()
public DurationOrBuilder getRetentionDurationOrBuilder()
Optional. The retention duration of a backup that must be at least 6 hours and at most 366 days. The backup is eligible to be automatically deleted once the retention period has elapsed.
.google.protobuf.Duration retention_duration = 3 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
DurationOrBuilder |
getSpec()
public BackupScheduleSpec getSpec()
Optional. The schedule specification based on which the backup creations are triggered.
.google.spanner.admin.database.v1.BackupScheduleSpec spec = 6 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
BackupScheduleSpec |
The spec. |
getSpecBuilder()
public BackupScheduleSpec.Builder getSpecBuilder()
Optional. The schedule specification based on which the backup creations are triggered.
.google.spanner.admin.database.v1.BackupScheduleSpec spec = 6 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
BackupScheduleSpec.Builder |
getSpecOrBuilder()
public BackupScheduleSpecOrBuilder getSpecOrBuilder()
Optional. The schedule specification based on which the backup creations are triggered.
.google.spanner.admin.database.v1.BackupScheduleSpec spec = 6 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
BackupScheduleSpecOrBuilder |
getUpdateTime()
public Timestamp getUpdateTime()
Output only. The timestamp at which the schedule was last updated. If the schedule has never been updated, this field contains the timestamp when the schedule was first created.
.google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
Timestamp |
The updateTime. |
getUpdateTimeBuilder()
public Timestamp.Builder getUpdateTimeBuilder()
Output only. The timestamp at which the schedule was last updated. If the schedule has never been updated, this field contains the timestamp when the schedule was first created.
.google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
Builder |
getUpdateTimeOrBuilder()
public TimestampOrBuilder getUpdateTimeOrBuilder()
Output only. The timestamp at which the schedule was last updated. If the schedule has never been updated, this field contains the timestamp when the schedule was first created.
.google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
TimestampOrBuilder |
hasEncryptionConfig()
public boolean hasEncryptionConfig()
Optional. The encryption configuration that will be used to encrypt the backup. If this field is not specified, the backup will use the same encryption configuration as the database.
.google.spanner.admin.database.v1.CreateBackupEncryptionConfig encryption_config = 4 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
boolean |
Whether the encryptionConfig field is set. |
hasFullBackupSpec()
public boolean hasFullBackupSpec()
The schedule creates only full backups.
.google.spanner.admin.database.v1.FullBackupSpec full_backup_spec = 7;
Returns | |
---|---|
Type | Description |
boolean |
Whether the fullBackupSpec field is set. |
hasIncrementalBackupSpec()
public boolean hasIncrementalBackupSpec()
The schedule creates incremental backup chains.
.google.spanner.admin.database.v1.IncrementalBackupSpec incremental_backup_spec = 8;
Returns | |
---|---|
Type | Description |
boolean |
Whether the incrementalBackupSpec field is set. |
hasRetentionDuration()
public boolean hasRetentionDuration()
Optional. The retention duration of a backup that must be at least 6 hours and at most 366 days. The backup is eligible to be automatically deleted once the retention period has elapsed.
.google.protobuf.Duration retention_duration = 3 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
boolean |
Whether the retentionDuration field is set. |
hasSpec()
public boolean hasSpec()
Optional. The schedule specification based on which the backup creations are triggered.
.google.spanner.admin.database.v1.BackupScheduleSpec spec = 6 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
boolean |
Whether the spec field is set. |
hasUpdateTime()
public boolean hasUpdateTime()
Output only. The timestamp at which the schedule was last updated. If the schedule has never been updated, this field contains the timestamp when the schedule was first created.
.google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
boolean |
Whether the updateTime field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns | |
---|---|
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Returns | |
---|---|
Type | Description |
boolean |
mergeEncryptionConfig(CreateBackupEncryptionConfig value)
public BackupSchedule.Builder mergeEncryptionConfig(CreateBackupEncryptionConfig value)
Optional. The encryption configuration that will be used to encrypt the backup. If this field is not specified, the backup will use the same encryption configuration as the database.
.google.spanner.admin.database.v1.CreateBackupEncryptionConfig encryption_config = 4 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
value |
CreateBackupEncryptionConfig |
Returns | |
---|---|
Type | Description |
BackupSchedule.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public BackupSchedule.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
BackupSchedule.Builder |
Exceptions | |
---|---|
Type | Description |
IOException |
mergeFrom(Message other)
public BackupSchedule.Builder mergeFrom(Message other)
Parameter | |
---|---|
Name | Description |
other |
Message |
Returns | |
---|---|
Type | Description |
BackupSchedule.Builder |
mergeFrom(BackupSchedule other)
public BackupSchedule.Builder mergeFrom(BackupSchedule other)
Parameter | |
---|---|
Name | Description |
other |
BackupSchedule |
Returns | |
---|---|
Type | Description |
BackupSchedule.Builder |
mergeFullBackupSpec(FullBackupSpec value)
public BackupSchedule.Builder mergeFullBackupSpec(FullBackupSpec value)
The schedule creates only full backups.
.google.spanner.admin.database.v1.FullBackupSpec full_backup_spec = 7;
Parameter | |
---|---|
Name | Description |
value |
FullBackupSpec |
Returns | |
---|---|
Type | Description |
BackupSchedule.Builder |
mergeIncrementalBackupSpec(IncrementalBackupSpec value)
public BackupSchedule.Builder mergeIncrementalBackupSpec(IncrementalBackupSpec value)
The schedule creates incremental backup chains.
.google.spanner.admin.database.v1.IncrementalBackupSpec incremental_backup_spec = 8;
Parameter | |
---|---|
Name | Description |
value |
IncrementalBackupSpec |
Returns | |
---|---|
Type | Description |
BackupSchedule.Builder |
mergeRetentionDuration(Duration value)
public BackupSchedule.Builder mergeRetentionDuration(Duration value)
Optional. The retention duration of a backup that must be at least 6 hours and at most 366 days. The backup is eligible to be automatically deleted once the retention period has elapsed.
.google.protobuf.Duration retention_duration = 3 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
value |
Duration |
Returns | |
---|---|
Type | Description |
BackupSchedule.Builder |
mergeSpec(BackupScheduleSpec value)
public BackupSchedule.Builder mergeSpec(BackupScheduleSpec value)
Optional. The schedule specification based on which the backup creations are triggered.
.google.spanner.admin.database.v1.BackupScheduleSpec spec = 6 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
value |
BackupScheduleSpec |
Returns | |
---|---|
Type | Description |
BackupSchedule.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final BackupSchedule.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields |
UnknownFieldSet |
Returns | |
---|---|
Type | Description |
BackupSchedule.Builder |
mergeUpdateTime(Timestamp value)
public BackupSchedule.Builder mergeUpdateTime(Timestamp value)
Output only. The timestamp at which the schedule was last updated. If the schedule has never been updated, this field contains the timestamp when the schedule was first created.
.google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter | |
---|---|
Name | Description |
value |
Timestamp |
Returns | |
---|---|
Type | Description |
BackupSchedule.Builder |
setEncryptionConfig(CreateBackupEncryptionConfig value)
public BackupSchedule.Builder setEncryptionConfig(CreateBackupEncryptionConfig value)
Optional. The encryption configuration that will be used to encrypt the backup. If this field is not specified, the backup will use the same encryption configuration as the database.
.google.spanner.admin.database.v1.CreateBackupEncryptionConfig encryption_config = 4 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
value |
CreateBackupEncryptionConfig |
Returns | |
---|---|
Type | Description |
BackupSchedule.Builder |
setEncryptionConfig(CreateBackupEncryptionConfig.Builder builderForValue)
public BackupSchedule.Builder setEncryptionConfig(CreateBackupEncryptionConfig.Builder builderForValue)
Optional. The encryption configuration that will be used to encrypt the backup. If this field is not specified, the backup will use the same encryption configuration as the database.
.google.spanner.admin.database.v1.CreateBackupEncryptionConfig encryption_config = 4 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
builderForValue |
CreateBackupEncryptionConfig.Builder |
Returns | |
---|---|
Type | Description |
BackupSchedule.Builder |
setField(Descriptors.FieldDescriptor field, Object value)
public BackupSchedule.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
value |
Object |
Returns | |
---|---|
Type | Description |
BackupSchedule.Builder |
setFullBackupSpec(FullBackupSpec value)
public BackupSchedule.Builder setFullBackupSpec(FullBackupSpec value)
The schedule creates only full backups.
.google.spanner.admin.database.v1.FullBackupSpec full_backup_spec = 7;
Parameter | |
---|---|
Name | Description |
value |
FullBackupSpec |
Returns | |
---|---|
Type | Description |
BackupSchedule.Builder |
setFullBackupSpec(FullBackupSpec.Builder builderForValue)
public BackupSchedule.Builder setFullBackupSpec(FullBackupSpec.Builder builderForValue)
The schedule creates only full backups.
.google.spanner.admin.database.v1.FullBackupSpec full_backup_spec = 7;
Parameter | |
---|---|
Name | Description |
builderForValue |
FullBackupSpec.Builder |
Returns | |
---|---|
Type | Description |
BackupSchedule.Builder |
setIncrementalBackupSpec(IncrementalBackupSpec value)
public BackupSchedule.Builder setIncrementalBackupSpec(IncrementalBackupSpec value)
The schedule creates incremental backup chains.
.google.spanner.admin.database.v1.IncrementalBackupSpec incremental_backup_spec = 8;
Parameter | |
---|---|
Name | Description |
value |
IncrementalBackupSpec |
Returns | |
---|---|
Type | Description |
BackupSchedule.Builder |
setIncrementalBackupSpec(IncrementalBackupSpec.Builder builderForValue)
public BackupSchedule.Builder setIncrementalBackupSpec(IncrementalBackupSpec.Builder builderForValue)
The schedule creates incremental backup chains.
.google.spanner.admin.database.v1.IncrementalBackupSpec incremental_backup_spec = 8;
Parameter | |
---|---|
Name | Description |
builderForValue |
IncrementalBackupSpec.Builder |
Returns | |
---|---|
Type | Description |
BackupSchedule.Builder |
setName(String value)
public BackupSchedule.Builder setName(String value)
Identifier. Output only for the
CreateBackupSchedule operation.
Required for the
UpdateBackupSchedule
operation. A globally unique identifier for the backup schedule which
cannot be changed. Values are of the form
projects/<project>/instances/<instance>/databases/<database>/backupSchedules/a-z*[a-z0-9]
The final segment of the name must be between 2 and 60 characters in
length.
string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
Parameter | |
---|---|
Name | Description |
value |
String The name to set. |
Returns | |
---|---|
Type | Description |
BackupSchedule.Builder |
This builder for chaining. |
setNameBytes(ByteString value)
public BackupSchedule.Builder setNameBytes(ByteString value)
Identifier. Output only for the
CreateBackupSchedule operation.
Required for the
UpdateBackupSchedule
operation. A globally unique identifier for the backup schedule which
cannot be changed. Values are of the form
projects/<project>/instances/<instance>/databases/<database>/backupSchedules/a-z*[a-z0-9]
The final segment of the name must be between 2 and 60 characters in
length.
string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
Parameter | |
---|---|
Name | Description |
value |
ByteString The bytes for name to set. |
Returns | |
---|---|
Type | Description |
BackupSchedule.Builder |
This builder for chaining. |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public BackupSchedule.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
index |
int |
value |
Object |
Returns | |
---|---|
Type | Description |
BackupSchedule.Builder |
setRetentionDuration(Duration value)
public BackupSchedule.Builder setRetentionDuration(Duration value)
Optional. The retention duration of a backup that must be at least 6 hours and at most 366 days. The backup is eligible to be automatically deleted once the retention period has elapsed.
.google.protobuf.Duration retention_duration = 3 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
value |
Duration |
Returns | |
---|---|
Type | Description |
BackupSchedule.Builder |
setRetentionDuration(Duration.Builder builderForValue)
public BackupSchedule.Builder setRetentionDuration(Duration.Builder builderForValue)
Optional. The retention duration of a backup that must be at least 6 hours and at most 366 days. The backup is eligible to be automatically deleted once the retention period has elapsed.
.google.protobuf.Duration retention_duration = 3 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
builderForValue |
Builder |
Returns | |
---|---|
Type | Description |
BackupSchedule.Builder |
setSpec(BackupScheduleSpec value)
public BackupSchedule.Builder setSpec(BackupScheduleSpec value)
Optional. The schedule specification based on which the backup creations are triggered.
.google.spanner.admin.database.v1.BackupScheduleSpec spec = 6 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
value |
BackupScheduleSpec |
Returns | |
---|---|
Type | Description |
BackupSchedule.Builder |
setSpec(BackupScheduleSpec.Builder builderForValue)
public BackupSchedule.Builder setSpec(BackupScheduleSpec.Builder builderForValue)
Optional. The schedule specification based on which the backup creations are triggered.
.google.spanner.admin.database.v1.BackupScheduleSpec spec = 6 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
builderForValue |
BackupScheduleSpec.Builder |
Returns | |
---|---|
Type | Description |
BackupSchedule.Builder |
setUnknownFields(UnknownFieldSet unknownFields)
public final BackupSchedule.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields |
UnknownFieldSet |
Returns | |
---|---|
Type | Description |
BackupSchedule.Builder |
setUpdateTime(Timestamp value)
public BackupSchedule.Builder setUpdateTime(Timestamp value)
Output only. The timestamp at which the schedule was last updated. If the schedule has never been updated, this field contains the timestamp when the schedule was first created.
.google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter | |
---|---|
Name | Description |
value |
Timestamp |
Returns | |
---|---|
Type | Description |
BackupSchedule.Builder |
setUpdateTime(Timestamp.Builder builderForValue)
public BackupSchedule.Builder setUpdateTime(Timestamp.Builder builderForValue)
Output only. The timestamp at which the schedule was last updated. If the schedule has never been updated, this field contains the timestamp when the schedule was first created.
.google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter | |
---|---|
Name | Description |
builderForValue |
Builder |
Returns | |
---|---|
Type | Description |
BackupSchedule.Builder |