Class BackupPlan.BackupConfig.Builder

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

public static final class BackupPlan.BackupConfig.Builder extends com.google.protobuf.GeneratedMessage.Builder<BackupPlan.BackupConfig.Builder> implements BackupPlan.BackupConfigOrBuilder
 BackupConfig defines the configuration of Backups created via this
 BackupPlan.
 
Protobuf type google.cloud.gkebackup.v1.BackupPlan.BackupConfig
  • 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<BackupPlan.BackupConfig.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<BackupPlan.BackupConfig.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<BackupPlan.BackupConfig.Builder>
    • getDefaultInstanceForType

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

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

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

      public BackupPlan.BackupConfig.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<BackupPlan.BackupConfig.Builder>
    • mergeFrom

    • isInitialized

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

      public BackupPlan.BackupConfig.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<BackupPlan.BackupConfig.Builder>
      Throws:
      IOException
    • getBackupScopeCase

      public BackupPlan.BackupConfig.BackupScopeCase getBackupScopeCase()
      Specified by:
      getBackupScopeCase in interface BackupPlan.BackupConfigOrBuilder
    • clearBackupScope

      public BackupPlan.BackupConfig.Builder clearBackupScope()
    • hasAllNamespaces

      public boolean hasAllNamespaces()
       If True, include all namespaced resources
       
      bool all_namespaces = 1;
      Specified by:
      hasAllNamespaces in interface BackupPlan.BackupConfigOrBuilder
      Returns:
      Whether the allNamespaces field is set.
    • getAllNamespaces

      public boolean getAllNamespaces()
       If True, include all namespaced resources
       
      bool all_namespaces = 1;
      Specified by:
      getAllNamespaces in interface BackupPlan.BackupConfigOrBuilder
      Returns:
      The allNamespaces.
    • setAllNamespaces

      public BackupPlan.BackupConfig.Builder setAllNamespaces(boolean value)
       If True, include all namespaced resources
       
      bool all_namespaces = 1;
      Parameters:
      value - The allNamespaces to set.
      Returns:
      This builder for chaining.
    • clearAllNamespaces

      public BackupPlan.BackupConfig.Builder clearAllNamespaces()
       If True, include all namespaced resources
       
      bool all_namespaces = 1;
      Returns:
      This builder for chaining.
    • hasSelectedNamespaces

      public boolean hasSelectedNamespaces()
       If set, include just the resources in the listed namespaces.
       
      .google.cloud.gkebackup.v1.Namespaces selected_namespaces = 2;
      Specified by:
      hasSelectedNamespaces in interface BackupPlan.BackupConfigOrBuilder
      Returns:
      Whether the selectedNamespaces field is set.
    • getSelectedNamespaces

      public Namespaces getSelectedNamespaces()
       If set, include just the resources in the listed namespaces.
       
      .google.cloud.gkebackup.v1.Namespaces selected_namespaces = 2;
      Specified by:
      getSelectedNamespaces in interface BackupPlan.BackupConfigOrBuilder
      Returns:
      The selectedNamespaces.
    • setSelectedNamespaces

      public BackupPlan.BackupConfig.Builder setSelectedNamespaces(Namespaces value)
       If set, include just the resources in the listed namespaces.
       
      .google.cloud.gkebackup.v1.Namespaces selected_namespaces = 2;
    • setSelectedNamespaces

      public BackupPlan.BackupConfig.Builder setSelectedNamespaces(Namespaces.Builder builderForValue)
       If set, include just the resources in the listed namespaces.
       
      .google.cloud.gkebackup.v1.Namespaces selected_namespaces = 2;
    • mergeSelectedNamespaces

      public BackupPlan.BackupConfig.Builder mergeSelectedNamespaces(Namespaces value)
       If set, include just the resources in the listed namespaces.
       
      .google.cloud.gkebackup.v1.Namespaces selected_namespaces = 2;
    • clearSelectedNamespaces

      public BackupPlan.BackupConfig.Builder clearSelectedNamespaces()
       If set, include just the resources in the listed namespaces.
       
      .google.cloud.gkebackup.v1.Namespaces selected_namespaces = 2;
    • getSelectedNamespacesBuilder

      public Namespaces.Builder getSelectedNamespacesBuilder()
       If set, include just the resources in the listed namespaces.
       
      .google.cloud.gkebackup.v1.Namespaces selected_namespaces = 2;
    • getSelectedNamespacesOrBuilder

      public NamespacesOrBuilder getSelectedNamespacesOrBuilder()
       If set, include just the resources in the listed namespaces.
       
      .google.cloud.gkebackup.v1.Namespaces selected_namespaces = 2;
      Specified by:
      getSelectedNamespacesOrBuilder in interface BackupPlan.BackupConfigOrBuilder
    • hasSelectedApplications

      public boolean hasSelectedApplications()
       If set, include just the resources referenced by the listed
       ProtectedApplications.
       
      .google.cloud.gkebackup.v1.NamespacedNames selected_applications = 3;
      Specified by:
      hasSelectedApplications in interface BackupPlan.BackupConfigOrBuilder
      Returns:
      Whether the selectedApplications field is set.
    • getSelectedApplications

      public NamespacedNames getSelectedApplications()
       If set, include just the resources referenced by the listed
       ProtectedApplications.
       
      .google.cloud.gkebackup.v1.NamespacedNames selected_applications = 3;
      Specified by:
      getSelectedApplications in interface BackupPlan.BackupConfigOrBuilder
      Returns:
      The selectedApplications.
    • setSelectedApplications

      public BackupPlan.BackupConfig.Builder setSelectedApplications(NamespacedNames value)
       If set, include just the resources referenced by the listed
       ProtectedApplications.
       
      .google.cloud.gkebackup.v1.NamespacedNames selected_applications = 3;
    • setSelectedApplications

      public BackupPlan.BackupConfig.Builder setSelectedApplications(NamespacedNames.Builder builderForValue)
       If set, include just the resources referenced by the listed
       ProtectedApplications.
       
      .google.cloud.gkebackup.v1.NamespacedNames selected_applications = 3;
    • mergeSelectedApplications

      public BackupPlan.BackupConfig.Builder mergeSelectedApplications(NamespacedNames value)
       If set, include just the resources referenced by the listed
       ProtectedApplications.
       
      .google.cloud.gkebackup.v1.NamespacedNames selected_applications = 3;
    • clearSelectedApplications

      public BackupPlan.BackupConfig.Builder clearSelectedApplications()
       If set, include just the resources referenced by the listed
       ProtectedApplications.
       
      .google.cloud.gkebackup.v1.NamespacedNames selected_applications = 3;
    • getSelectedApplicationsBuilder

      public NamespacedNames.Builder getSelectedApplicationsBuilder()
       If set, include just the resources referenced by the listed
       ProtectedApplications.
       
      .google.cloud.gkebackup.v1.NamespacedNames selected_applications = 3;
    • getSelectedApplicationsOrBuilder

      public NamespacedNamesOrBuilder getSelectedApplicationsOrBuilder()
       If set, include just the resources referenced by the listed
       ProtectedApplications.
       
      .google.cloud.gkebackup.v1.NamespacedNames selected_applications = 3;
      Specified by:
      getSelectedApplicationsOrBuilder in interface BackupPlan.BackupConfigOrBuilder
    • getIncludeVolumeData

      public boolean getIncludeVolumeData()
       Optional. This flag specifies whether volume data should be backed up
       when PVCs are included in the scope of a Backup.
      
       Default: False
       
      bool include_volume_data = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getIncludeVolumeData in interface BackupPlan.BackupConfigOrBuilder
      Returns:
      The includeVolumeData.
    • setIncludeVolumeData

      public BackupPlan.BackupConfig.Builder setIncludeVolumeData(boolean value)
       Optional. This flag specifies whether volume data should be backed up
       when PVCs are included in the scope of a Backup.
      
       Default: False
       
      bool include_volume_data = 4 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The includeVolumeData to set.
      Returns:
      This builder for chaining.
    • clearIncludeVolumeData

      public BackupPlan.BackupConfig.Builder clearIncludeVolumeData()
       Optional. This flag specifies whether volume data should be backed up
       when PVCs are included in the scope of a Backup.
      
       Default: False
       
      bool include_volume_data = 4 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • getIncludeSecrets

      public boolean getIncludeSecrets()
       Optional. This flag specifies whether Kubernetes Secret resources should
       be included when they fall into the scope of Backups.
      
       Default: False
       
      bool include_secrets = 5 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getIncludeSecrets in interface BackupPlan.BackupConfigOrBuilder
      Returns:
      The includeSecrets.
    • setIncludeSecrets

      public BackupPlan.BackupConfig.Builder setIncludeSecrets(boolean value)
       Optional. This flag specifies whether Kubernetes Secret resources should
       be included when they fall into the scope of Backups.
      
       Default: False
       
      bool include_secrets = 5 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The includeSecrets to set.
      Returns:
      This builder for chaining.
    • clearIncludeSecrets

      public BackupPlan.BackupConfig.Builder clearIncludeSecrets()
       Optional. This flag specifies whether Kubernetes Secret resources should
       be included when they fall into the scope of Backups.
      
       Default: False
       
      bool include_secrets = 5 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • hasEncryptionKey

      public boolean hasEncryptionKey()
       Optional. This defines a customer managed encryption key that will be
       used to encrypt the "config" portion (the Kubernetes resources) of
       Backups created via this plan.
      
       Default (empty): Config backup artifacts will not be encrypted.
       
      .google.cloud.gkebackup.v1.EncryptionKey encryption_key = 6 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasEncryptionKey in interface BackupPlan.BackupConfigOrBuilder
      Returns:
      Whether the encryptionKey field is set.
    • getEncryptionKey

      public EncryptionKey getEncryptionKey()
       Optional. This defines a customer managed encryption key that will be
       used to encrypt the "config" portion (the Kubernetes resources) of
       Backups created via this plan.
      
       Default (empty): Config backup artifacts will not be encrypted.
       
      .google.cloud.gkebackup.v1.EncryptionKey encryption_key = 6 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getEncryptionKey in interface BackupPlan.BackupConfigOrBuilder
      Returns:
      The encryptionKey.
    • setEncryptionKey

      public BackupPlan.BackupConfig.Builder setEncryptionKey(EncryptionKey value)
       Optional. This defines a customer managed encryption key that will be
       used to encrypt the "config" portion (the Kubernetes resources) of
       Backups created via this plan.
      
       Default (empty): Config backup artifacts will not be encrypted.
       
      .google.cloud.gkebackup.v1.EncryptionKey encryption_key = 6 [(.google.api.field_behavior) = OPTIONAL];
    • setEncryptionKey

      public BackupPlan.BackupConfig.Builder setEncryptionKey(EncryptionKey.Builder builderForValue)
       Optional. This defines a customer managed encryption key that will be
       used to encrypt the "config" portion (the Kubernetes resources) of
       Backups created via this plan.
      
       Default (empty): Config backup artifacts will not be encrypted.
       
      .google.cloud.gkebackup.v1.EncryptionKey encryption_key = 6 [(.google.api.field_behavior) = OPTIONAL];
    • mergeEncryptionKey

      public BackupPlan.BackupConfig.Builder mergeEncryptionKey(EncryptionKey value)
       Optional. This defines a customer managed encryption key that will be
       used to encrypt the "config" portion (the Kubernetes resources) of
       Backups created via this plan.
      
       Default (empty): Config backup artifacts will not be encrypted.
       
      .google.cloud.gkebackup.v1.EncryptionKey encryption_key = 6 [(.google.api.field_behavior) = OPTIONAL];
    • clearEncryptionKey

      public BackupPlan.BackupConfig.Builder clearEncryptionKey()
       Optional. This defines a customer managed encryption key that will be
       used to encrypt the "config" portion (the Kubernetes resources) of
       Backups created via this plan.
      
       Default (empty): Config backup artifacts will not be encrypted.
       
      .google.cloud.gkebackup.v1.EncryptionKey encryption_key = 6 [(.google.api.field_behavior) = OPTIONAL];
    • getEncryptionKeyBuilder

      public EncryptionKey.Builder getEncryptionKeyBuilder()
       Optional. This defines a customer managed encryption key that will be
       used to encrypt the "config" portion (the Kubernetes resources) of
       Backups created via this plan.
      
       Default (empty): Config backup artifacts will not be encrypted.
       
      .google.cloud.gkebackup.v1.EncryptionKey encryption_key = 6 [(.google.api.field_behavior) = OPTIONAL];
    • getEncryptionKeyOrBuilder

      public EncryptionKeyOrBuilder getEncryptionKeyOrBuilder()
       Optional. This defines a customer managed encryption key that will be
       used to encrypt the "config" portion (the Kubernetes resources) of
       Backups created via this plan.
      
       Default (empty): Config backup artifacts will not be encrypted.
       
      .google.cloud.gkebackup.v1.EncryptionKey encryption_key = 6 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getEncryptionKeyOrBuilder in interface BackupPlan.BackupConfigOrBuilder
    • getPermissiveMode

      public boolean getPermissiveMode()
       Optional. If false, Backups will fail when Backup for GKE detects
       Kubernetes configuration that is non-standard or
       requires additional setup to restore.
      
       Default: False
       
      bool permissive_mode = 7 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getPermissiveMode in interface BackupPlan.BackupConfigOrBuilder
      Returns:
      The permissiveMode.
    • setPermissiveMode

      public BackupPlan.BackupConfig.Builder setPermissiveMode(boolean value)
       Optional. If false, Backups will fail when Backup for GKE detects
       Kubernetes configuration that is non-standard or
       requires additional setup to restore.
      
       Default: False
       
      bool permissive_mode = 7 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The permissiveMode to set.
      Returns:
      This builder for chaining.
    • clearPermissiveMode

      public BackupPlan.BackupConfig.Builder clearPermissiveMode()
       Optional. If false, Backups will fail when Backup for GKE detects
       Kubernetes configuration that is non-standard or
       requires additional setup to restore.
      
       Default: False
       
      bool permissive_mode = 7 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.