Class RpoConfig.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<RpoConfig.Builder>
com.google.cloud.gkebackup.v1.RpoConfig.Builder
All Implemented Interfaces:
RpoConfigOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
RpoConfig

public static final class RpoConfig.Builder extends com.google.protobuf.GeneratedMessage.Builder<RpoConfig.Builder> implements RpoConfigOrBuilder
 Defines RPO scheduling configuration for automatically creating
 Backups via this BackupPlan.
 
Protobuf type google.cloud.gkebackup.v1.RpoConfig
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<RpoConfig.Builder>
    • clear

      public RpoConfig.Builder clear()
      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<RpoConfig.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<RpoConfig.Builder>
    • getDefaultInstanceForType

      public RpoConfig getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public RpoConfig build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public RpoConfig buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public RpoConfig.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<RpoConfig.Builder>
    • mergeFrom

      public RpoConfig.Builder mergeFrom(RpoConfig other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<RpoConfig.Builder>
    • mergeFrom

      public RpoConfig.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<RpoConfig.Builder>
      Throws:
      IOException
    • 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];
      Specified by:
      getTargetRpoMinutes in interface RpoConfigOrBuilder
      Returns:
      The targetRpoMinutes.
    • setTargetRpoMinutes

      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];
      Parameters:
      value - The targetRpoMinutes to set.
      Returns:
      This builder for chaining.
    • 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:
      This builder for chaining.
    • 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];
      Specified by:
      getExclusionWindowsList in interface RpoConfigOrBuilder
    • 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];
      Specified by:
      getExclusionWindowsCount in interface RpoConfigOrBuilder
    • getExclusionWindows

      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];
      Specified by:
      getExclusionWindows in interface RpoConfigOrBuilder
    • setExclusionWindows

      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];
    • setExclusionWindows

      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];
    • addExclusionWindows

      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];
    • addExclusionWindows

      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];
    • addExclusionWindows

      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];
    • addExclusionWindows

      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];
    • addAllExclusionWindows

      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];
    • 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];
    • removeExclusionWindows

      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];
    • getExclusionWindowsBuilder

      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];
    • getExclusionWindowsOrBuilder

      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];
      Specified by:
      getExclusionWindowsOrBuilder in interface RpoConfigOrBuilder
    • 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];
      Specified by:
      getExclusionWindowsOrBuilderList in interface RpoConfigOrBuilder
    • 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];
    • addExclusionWindowsBuilder

      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];
    • 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];