Class RpoConfig.Builder (0.52.0)

public static final class RpoConfig.Builder extends GeneratedMessageV3.Builder<RpoConfig.Builder> implements RpoConfigOrBuilder

Defines RPO scheduling configuration for automatically creating Backups via this BackupPlan.

Protobuf type google.cloud.gkebackup.v1.RpoConfig

Implements

RpoConfigOrBuilder

Static Methods

getDescriptor()

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

Methods

addAllExclusionWindows(Iterable<? extends ExclusionWindow> values)

public RpoConfig.Builder addAllExclusionWindows(Iterable<? extends ExclusionWindow> values)

Optional. User specified time windows during which backup can NOT happen for this BackupPlan - backups should start and finish outside of any given exclusion window. Note: backup jobs will be scheduled to start and finish outside the duration of the window as much as possible, but running jobs will not get canceled when it runs into the window. All the time and date values in exclusion_windows entry in the API are in UTC. We only allow <=1 recurrence (daily or weekly) exclusion window for a BackupPlan while no restriction on number of single occurrence windows.

repeated .google.cloud.gkebackup.v1.ExclusionWindow exclusion_windows = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
values Iterable<? extends com.google.cloud.gkebackup.v1.ExclusionWindow>
Returns
Type Description
RpoConfig.Builder

addExclusionWindows(ExclusionWindow value)

public RpoConfig.Builder addExclusionWindows(ExclusionWindow value)

Optional. User specified time windows during which backup can NOT happen for this BackupPlan - backups should start and finish outside of any given exclusion window. Note: backup jobs will be scheduled to start and finish outside the duration of the window as much as possible, but running jobs will not get canceled when it runs into the window. All the time and date values in exclusion_windows entry in the API are in UTC. We only allow <=1 recurrence (daily or weekly) exclusion window for a BackupPlan while no restriction on number of single occurrence windows.

repeated .google.cloud.gkebackup.v1.ExclusionWindow exclusion_windows = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ExclusionWindow
Returns
Type Description
RpoConfig.Builder

addExclusionWindows(ExclusionWindow.Builder builderForValue)

public RpoConfig.Builder addExclusionWindows(ExclusionWindow.Builder builderForValue)

Optional. User specified time windows during which backup can NOT happen for this BackupPlan - backups should start and finish outside of any given exclusion window. Note: backup jobs will be scheduled to start and finish outside the duration of the window as much as possible, but running jobs will not get canceled when it runs into the window. All the time and date values in exclusion_windows entry in the API are in UTC. We only allow <=1 recurrence (daily or weekly) exclusion window for a BackupPlan while no restriction on number of single occurrence windows.

repeated .google.cloud.gkebackup.v1.ExclusionWindow exclusion_windows = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue ExclusionWindow.Builder
Returns
Type Description
RpoConfig.Builder

addExclusionWindows(int index, ExclusionWindow value)

public RpoConfig.Builder addExclusionWindows(int index, ExclusionWindow value)

Optional. User specified time windows during which backup can NOT happen for this BackupPlan - backups should start and finish outside of any given exclusion window. Note: backup jobs will be scheduled to start and finish outside the duration of the window as much as possible, but running jobs will not get canceled when it runs into the window. All the time and date values in exclusion_windows entry in the API are in UTC. We only allow <=1 recurrence (daily or weekly) exclusion window for a BackupPlan while no restriction on number of single occurrence windows.

repeated .google.cloud.gkebackup.v1.ExclusionWindow exclusion_windows = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int
value ExclusionWindow
Returns
Type Description
RpoConfig.Builder

addExclusionWindows(int index, ExclusionWindow.Builder builderForValue)

public RpoConfig.Builder addExclusionWindows(int index, ExclusionWindow.Builder builderForValue)

Optional. User specified time windows during which backup can NOT happen for this BackupPlan - backups should start and finish outside of any given exclusion window. Note: backup jobs will be scheduled to start and finish outside the duration of the window as much as possible, but running jobs will not get canceled when it runs into the window. All the time and date values in exclusion_windows entry in the API are in UTC. We only allow <=1 recurrence (daily or weekly) exclusion window for a BackupPlan while no restriction on number of single occurrence windows.

repeated .google.cloud.gkebackup.v1.ExclusionWindow exclusion_windows = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int
builderForValue ExclusionWindow.Builder
Returns
Type Description
RpoConfig.Builder

addExclusionWindowsBuilder()

public ExclusionWindow.Builder addExclusionWindowsBuilder()

Optional. User specified time windows during which backup can NOT happen for this BackupPlan - backups should start and finish outside of any given exclusion window. Note: backup jobs will be scheduled to start and finish outside the duration of the window as much as possible, but running jobs will not get canceled when it runs into the window. All the time and date values in exclusion_windows entry in the API are in UTC. We only allow <=1 recurrence (daily or weekly) exclusion window for a BackupPlan while no restriction on number of single occurrence windows.

repeated .google.cloud.gkebackup.v1.ExclusionWindow exclusion_windows = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ExclusionWindow.Builder

addExclusionWindowsBuilder(int index)

public ExclusionWindow.Builder addExclusionWindowsBuilder(int index)

Optional. User specified time windows during which backup can NOT happen for this BackupPlan - backups should start and finish outside of any given exclusion window. Note: backup jobs will be scheduled to start and finish outside the duration of the window as much as possible, but running jobs will not get canceled when it runs into the window. All the time and date values in exclusion_windows entry in the API are in UTC. We only allow <=1 recurrence (daily or weekly) exclusion window for a BackupPlan while no restriction on number of single occurrence windows.

repeated .google.cloud.gkebackup.v1.ExclusionWindow exclusion_windows = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
ExclusionWindow.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public RpoConfig build()
Returns
Type Description
RpoConfig

buildPartial()

public RpoConfig buildPartial()
Returns
Type Description
RpoConfig

clear()

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

clearExclusionWindows()

public RpoConfig.Builder clearExclusionWindows()

Optional. User specified time windows during which backup can NOT happen for this BackupPlan - backups should start and finish outside of any given exclusion window. Note: backup jobs will be scheduled to start and finish outside the duration of the window as much as possible, but running jobs will not get canceled when it runs into the window. All the time and date values in exclusion_windows entry in the API are in UTC. We only allow <=1 recurrence (daily or weekly) exclusion window for a BackupPlan while no restriction on number of single occurrence windows.

repeated .google.cloud.gkebackup.v1.ExclusionWindow exclusion_windows = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
RpoConfig.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearTargetRpoMinutes()

public RpoConfig.Builder clearTargetRpoMinutes()

Required. Defines the target RPO for the BackupPlan in minutes, which means the target maximum data loss in time that is acceptable for this BackupPlan. This must be at least 60, i.e., 1 hour, and at most 86400, i.e., 60 days.

int32 target_rpo_minutes = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
RpoConfig.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public RpoConfig getDefaultInstanceForType()
Returns
Type Description
RpoConfig

getDescriptorForType()

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

getExclusionWindows(int index)

public ExclusionWindow getExclusionWindows(int index)

Optional. User specified time windows during which backup can NOT happen for this BackupPlan - backups should start and finish outside of any given exclusion window. Note: backup jobs will be scheduled to start and finish outside the duration of the window as much as possible, but running jobs will not get canceled when it runs into the window. All the time and date values in exclusion_windows entry in the API are in UTC. We only allow <=1 recurrence (daily or weekly) exclusion window for a BackupPlan while no restriction on number of single occurrence windows.

repeated .google.cloud.gkebackup.v1.ExclusionWindow exclusion_windows = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
ExclusionWindow

getExclusionWindowsBuilder(int index)

public ExclusionWindow.Builder getExclusionWindowsBuilder(int index)

Optional. User specified time windows during which backup can NOT happen for this BackupPlan - backups should start and finish outside of any given exclusion window. Note: backup jobs will be scheduled to start and finish outside the duration of the window as much as possible, but running jobs will not get canceled when it runs into the window. All the time and date values in exclusion_windows entry in the API are in UTC. We only allow <=1 recurrence (daily or weekly) exclusion window for a BackupPlan while no restriction on number of single occurrence windows.

repeated .google.cloud.gkebackup.v1.ExclusionWindow exclusion_windows = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
ExclusionWindow.Builder

getExclusionWindowsBuilderList()

public List<ExclusionWindow.Builder> getExclusionWindowsBuilderList()

Optional. User specified time windows during which backup can NOT happen for this BackupPlan - backups should start and finish outside of any given exclusion window. Note: backup jobs will be scheduled to start and finish outside the duration of the window as much as possible, but running jobs will not get canceled when it runs into the window. All the time and date values in exclusion_windows entry in the API are in UTC. We only allow <=1 recurrence (daily or weekly) exclusion window for a BackupPlan while no restriction on number of single occurrence windows.

repeated .google.cloud.gkebackup.v1.ExclusionWindow exclusion_windows = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<Builder>

getExclusionWindowsCount()

public int getExclusionWindowsCount()

Optional. User specified time windows during which backup can NOT happen for this BackupPlan - backups should start and finish outside of any given exclusion window. Note: backup jobs will be scheduled to start and finish outside the duration of the window as much as possible, but running jobs will not get canceled when it runs into the window. All the time and date values in exclusion_windows entry in the API are in UTC. We only allow <=1 recurrence (daily or weekly) exclusion window for a BackupPlan while no restriction on number of single occurrence windows.

repeated .google.cloud.gkebackup.v1.ExclusionWindow exclusion_windows = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

getExclusionWindowsList()

public List<ExclusionWindow> getExclusionWindowsList()

Optional. User specified time windows during which backup can NOT happen for this BackupPlan - backups should start and finish outside of any given exclusion window. Note: backup jobs will be scheduled to start and finish outside the duration of the window as much as possible, but running jobs will not get canceled when it runs into the window. All the time and date values in exclusion_windows entry in the API are in UTC. We only allow <=1 recurrence (daily or weekly) exclusion window for a BackupPlan while no restriction on number of single occurrence windows.

repeated .google.cloud.gkebackup.v1.ExclusionWindow exclusion_windows = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<ExclusionWindow>

getExclusionWindowsOrBuilder(int index)

public ExclusionWindowOrBuilder getExclusionWindowsOrBuilder(int index)

Optional. User specified time windows during which backup can NOT happen for this BackupPlan - backups should start and finish outside of any given exclusion window. Note: backup jobs will be scheduled to start and finish outside the duration of the window as much as possible, but running jobs will not get canceled when it runs into the window. All the time and date values in exclusion_windows entry in the API are in UTC. We only allow <=1 recurrence (daily or weekly) exclusion window for a BackupPlan while no restriction on number of single occurrence windows.

repeated .google.cloud.gkebackup.v1.ExclusionWindow exclusion_windows = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
ExclusionWindowOrBuilder

getExclusionWindowsOrBuilderList()

public List<? extends ExclusionWindowOrBuilder> getExclusionWindowsOrBuilderList()

Optional. User specified time windows during which backup can NOT happen for this BackupPlan - backups should start and finish outside of any given exclusion window. Note: backup jobs will be scheduled to start and finish outside the duration of the window as much as possible, but running jobs will not get canceled when it runs into the window. All the time and date values in exclusion_windows entry in the API are in UTC. We only allow <=1 recurrence (daily or weekly) exclusion window for a BackupPlan while no restriction on number of single occurrence windows.

repeated .google.cloud.gkebackup.v1.ExclusionWindow exclusion_windows = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<? extends com.google.cloud.gkebackup.v1.ExclusionWindowOrBuilder>

getTargetRpoMinutes()

public int getTargetRpoMinutes()

Required. Defines the target RPO for the BackupPlan in minutes, which means the target maximum data loss in time that is acceptable for this BackupPlan. This must be at least 60, i.e., 1 hour, and at most 86400, i.e., 60 days.

int32 target_rpo_minutes = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
int

The targetRpoMinutes.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(RpoConfig other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeExclusionWindows(int index)

public RpoConfig.Builder removeExclusionWindows(int index)

Optional. User specified time windows during which backup can NOT happen for this BackupPlan - backups should start and finish outside of any given exclusion window. Note: backup jobs will be scheduled to start and finish outside the duration of the window as much as possible, but running jobs will not get canceled when it runs into the window. All the time and date values in exclusion_windows entry in the API are in UTC. We only allow <=1 recurrence (daily or weekly) exclusion window for a BackupPlan while no restriction on number of single occurrence windows.

repeated .google.cloud.gkebackup.v1.ExclusionWindow exclusion_windows = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
RpoConfig.Builder

setExclusionWindows(int index, ExclusionWindow value)

public RpoConfig.Builder setExclusionWindows(int index, ExclusionWindow value)

Optional. User specified time windows during which backup can NOT happen for this BackupPlan - backups should start and finish outside of any given exclusion window. Note: backup jobs will be scheduled to start and finish outside the duration of the window as much as possible, but running jobs will not get canceled when it runs into the window. All the time and date values in exclusion_windows entry in the API are in UTC. We only allow <=1 recurrence (daily or weekly) exclusion window for a BackupPlan while no restriction on number of single occurrence windows.

repeated .google.cloud.gkebackup.v1.ExclusionWindow exclusion_windows = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int
value ExclusionWindow
Returns
Type Description
RpoConfig.Builder

setExclusionWindows(int index, ExclusionWindow.Builder builderForValue)

public RpoConfig.Builder setExclusionWindows(int index, ExclusionWindow.Builder builderForValue)

Optional. User specified time windows during which backup can NOT happen for this BackupPlan - backups should start and finish outside of any given exclusion window. Note: backup jobs will be scheduled to start and finish outside the duration of the window as much as possible, but running jobs will not get canceled when it runs into the window. All the time and date values in exclusion_windows entry in the API are in UTC. We only allow <=1 recurrence (daily or weekly) exclusion window for a BackupPlan while no restriction on number of single occurrence windows.

repeated .google.cloud.gkebackup.v1.ExclusionWindow exclusion_windows = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int
builderForValue ExclusionWindow.Builder
Returns
Type Description
RpoConfig.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setTargetRpoMinutes(int value)

public RpoConfig.Builder setTargetRpoMinutes(int value)

Required. Defines the target RPO for the BackupPlan in minutes, which means the target maximum data loss in time that is acceptable for this BackupPlan. This must be at least 60, i.e., 1 hour, and at most 86400, i.e., 60 days.

int32 target_rpo_minutes = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value int

The targetRpoMinutes to set.

Returns
Type Description
RpoConfig.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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