public static final class AutomatedBackupConfig.Builder extends GeneratedMessage.Builder<AutomatedBackupConfig.Builder> implements AutomatedBackupConfigOrBuilderThe automated backup config for an instance.
Protobuf type google.cloud.memorystore.v1.AutomatedBackupConfig
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > AutomatedBackupConfig.BuilderImplements
AutomatedBackupConfigOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public AutomatedBackupConfig build()| Returns | |
|---|---|
| Type | Description |
AutomatedBackupConfig |
|
buildPartial()
public AutomatedBackupConfig buildPartial()| Returns | |
|---|---|
| Type | Description |
AutomatedBackupConfig |
|
clear()
public AutomatedBackupConfig.Builder clear()| Returns | |
|---|---|
| Type | Description |
AutomatedBackupConfig.Builder |
|
clearAutomatedBackupMode()
public AutomatedBackupConfig.Builder clearAutomatedBackupMode()Optional. The automated backup mode. If the mode is disabled, the other fields will be ignored.
.google.cloud.memorystore.v1.AutomatedBackupConfig.AutomatedBackupMode automated_backup_mode = 1 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
AutomatedBackupConfig.Builder |
This builder for chaining. |
clearFixedFrequencySchedule()
public AutomatedBackupConfig.Builder clearFixedFrequencySchedule()Optional. Trigger automated backups at a fixed frequency.
.google.cloud.memorystore.v1.AutomatedBackupConfig.FixedFrequencySchedule fixed_frequency_schedule = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
AutomatedBackupConfig.Builder |
|
clearRetention()
public AutomatedBackupConfig.Builder clearRetention()Optional. How long to keep automated backups before the backups are deleted. The value should be between 1 day and 365 days. If not specified, the default value is 35 days.
.google.protobuf.Duration retention = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
AutomatedBackupConfig.Builder |
|
clearSchedule()
public AutomatedBackupConfig.Builder clearSchedule()| Returns | |
|---|---|
| Type | Description |
AutomatedBackupConfig.Builder |
|
getAutomatedBackupMode()
public AutomatedBackupConfig.AutomatedBackupMode getAutomatedBackupMode()Optional. The automated backup mode. If the mode is disabled, the other fields will be ignored.
.google.cloud.memorystore.v1.AutomatedBackupConfig.AutomatedBackupMode automated_backup_mode = 1 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
AutomatedBackupConfig.AutomatedBackupMode |
The automatedBackupMode. |
getAutomatedBackupModeValue()
public int getAutomatedBackupModeValue()Optional. The automated backup mode. If the mode is disabled, the other fields will be ignored.
.google.cloud.memorystore.v1.AutomatedBackupConfig.AutomatedBackupMode automated_backup_mode = 1 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
int |
The enum numeric value on the wire for automatedBackupMode. |
getDefaultInstanceForType()
public AutomatedBackupConfig getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
AutomatedBackupConfig |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getFixedFrequencySchedule()
public AutomatedBackupConfig.FixedFrequencySchedule getFixedFrequencySchedule()Optional. Trigger automated backups at a fixed frequency.
.google.cloud.memorystore.v1.AutomatedBackupConfig.FixedFrequencySchedule fixed_frequency_schedule = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
AutomatedBackupConfig.FixedFrequencySchedule |
The fixedFrequencySchedule. |
getFixedFrequencyScheduleBuilder()
public AutomatedBackupConfig.FixedFrequencySchedule.Builder getFixedFrequencyScheduleBuilder()Optional. Trigger automated backups at a fixed frequency.
.google.cloud.memorystore.v1.AutomatedBackupConfig.FixedFrequencySchedule fixed_frequency_schedule = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
AutomatedBackupConfig.FixedFrequencySchedule.Builder |
|
getFixedFrequencyScheduleOrBuilder()
public AutomatedBackupConfig.FixedFrequencyScheduleOrBuilder getFixedFrequencyScheduleOrBuilder()Optional. Trigger automated backups at a fixed frequency.
.google.cloud.memorystore.v1.AutomatedBackupConfig.FixedFrequencySchedule fixed_frequency_schedule = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
AutomatedBackupConfig.FixedFrequencyScheduleOrBuilder |
|
getRetention()
public Duration getRetention()Optional. How long to keep automated backups before the backups are deleted. The value should be between 1 day and 365 days. If not specified, the default value is 35 days.
.google.protobuf.Duration retention = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
Duration |
The retention. |
getRetentionBuilder()
public Duration.Builder getRetentionBuilder()Optional. How long to keep automated backups before the backups are deleted. The value should be between 1 day and 365 days. If not specified, the default value is 35 days.
.google.protobuf.Duration retention = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
Builder |
|
getRetentionOrBuilder()
public DurationOrBuilder getRetentionOrBuilder()Optional. How long to keep automated backups before the backups are deleted. The value should be between 1 day and 365 days. If not specified, the default value is 35 days.
.google.protobuf.Duration retention = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
DurationOrBuilder |
|
getScheduleCase()
public AutomatedBackupConfig.ScheduleCase getScheduleCase()| Returns | |
|---|---|
| Type | Description |
AutomatedBackupConfig.ScheduleCase |
|
hasFixedFrequencySchedule()
public boolean hasFixedFrequencySchedule()Optional. Trigger automated backups at a fixed frequency.
.google.cloud.memorystore.v1.AutomatedBackupConfig.FixedFrequencySchedule fixed_frequency_schedule = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the fixedFrequencySchedule field is set. |
hasRetention()
public boolean hasRetention()Optional. How long to keep automated backups before the backups are deleted. The value should be between 1 day and 365 days. If not specified, the default value is 35 days.
.google.protobuf.Duration retention = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the retention field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFixedFrequencySchedule(AutomatedBackupConfig.FixedFrequencySchedule value)
public AutomatedBackupConfig.Builder mergeFixedFrequencySchedule(AutomatedBackupConfig.FixedFrequencySchedule value)Optional. Trigger automated backups at a fixed frequency.
.google.cloud.memorystore.v1.AutomatedBackupConfig.FixedFrequencySchedule fixed_frequency_schedule = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
AutomatedBackupConfig.FixedFrequencySchedule |
| Returns | |
|---|---|
| Type | Description |
AutomatedBackupConfig.Builder |
|
mergeFrom(AutomatedBackupConfig other)
public AutomatedBackupConfig.Builder mergeFrom(AutomatedBackupConfig other)| Parameter | |
|---|---|
| Name | Description |
other |
AutomatedBackupConfig |
| Returns | |
|---|---|
| Type | Description |
AutomatedBackupConfig.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public AutomatedBackupConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
AutomatedBackupConfig.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public AutomatedBackupConfig.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
AutomatedBackupConfig.Builder |
|
mergeRetention(Duration value)
public AutomatedBackupConfig.Builder mergeRetention(Duration value)Optional. How long to keep automated backups before the backups are deleted. The value should be between 1 day and 365 days. If not specified, the default value is 35 days.
.google.protobuf.Duration retention = 3 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
Duration |
| Returns | |
|---|---|
| Type | Description |
AutomatedBackupConfig.Builder |
|
setAutomatedBackupMode(AutomatedBackupConfig.AutomatedBackupMode value)
public AutomatedBackupConfig.Builder setAutomatedBackupMode(AutomatedBackupConfig.AutomatedBackupMode value)Optional. The automated backup mode. If the mode is disabled, the other fields will be ignored.
.google.cloud.memorystore.v1.AutomatedBackupConfig.AutomatedBackupMode automated_backup_mode = 1 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
AutomatedBackupConfig.AutomatedBackupModeThe automatedBackupMode to set. |
| Returns | |
|---|---|
| Type | Description |
AutomatedBackupConfig.Builder |
This builder for chaining. |
setAutomatedBackupModeValue(int value)
public AutomatedBackupConfig.Builder setAutomatedBackupModeValue(int value)Optional. The automated backup mode. If the mode is disabled, the other fields will be ignored.
.google.cloud.memorystore.v1.AutomatedBackupConfig.AutomatedBackupMode automated_backup_mode = 1 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
intThe enum numeric value on the wire for automatedBackupMode to set. |
| Returns | |
|---|---|
| Type | Description |
AutomatedBackupConfig.Builder |
This builder for chaining. |
setFixedFrequencySchedule(AutomatedBackupConfig.FixedFrequencySchedule value)
public AutomatedBackupConfig.Builder setFixedFrequencySchedule(AutomatedBackupConfig.FixedFrequencySchedule value)Optional. Trigger automated backups at a fixed frequency.
.google.cloud.memorystore.v1.AutomatedBackupConfig.FixedFrequencySchedule fixed_frequency_schedule = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
AutomatedBackupConfig.FixedFrequencySchedule |
| Returns | |
|---|---|
| Type | Description |
AutomatedBackupConfig.Builder |
|
setFixedFrequencySchedule(AutomatedBackupConfig.FixedFrequencySchedule.Builder builderForValue)
public AutomatedBackupConfig.Builder setFixedFrequencySchedule(AutomatedBackupConfig.FixedFrequencySchedule.Builder builderForValue)Optional. Trigger automated backups at a fixed frequency.
.google.cloud.memorystore.v1.AutomatedBackupConfig.FixedFrequencySchedule fixed_frequency_schedule = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
AutomatedBackupConfig.FixedFrequencySchedule.Builder |
| Returns | |
|---|---|
| Type | Description |
AutomatedBackupConfig.Builder |
|
setRetention(Duration value)
public AutomatedBackupConfig.Builder setRetention(Duration value)Optional. How long to keep automated backups before the backups are deleted. The value should be between 1 day and 365 days. If not specified, the default value is 35 days.
.google.protobuf.Duration retention = 3 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
Duration |
| Returns | |
|---|---|
| Type | Description |
AutomatedBackupConfig.Builder |
|
setRetention(Duration.Builder builderForValue)
public AutomatedBackupConfig.Builder setRetention(Duration.Builder builderForValue)Optional. How long to keep automated backups before the backups are deleted. The value should be between 1 day and 365 days. If not specified, the default value is 35 days.
.google.protobuf.Duration retention = 3 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
Builder |
| Returns | |
|---|---|
| Type | Description |
AutomatedBackupConfig.Builder |
|