Class BackupPlan.BackupConfig.Builder

    • Method Detail

      • getDescriptor

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

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<BackupPlan.BackupConfig.Builder>
      • clear

        public 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.GeneratedMessageV3.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.GeneratedMessageV3.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
      • clone

        public BackupPlan.BackupConfig.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<BackupPlan.BackupConfig.Builder>
      • clearField

        public BackupPlan.BackupConfig.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<BackupPlan.BackupConfig.Builder>
      • clearOneof

        public BackupPlan.BackupConfig.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<BackupPlan.BackupConfig.Builder>
      • setRepeatedField

        public BackupPlan.BackupConfig.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                                int index,
                                                                Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<BackupPlan.BackupConfig.Builder>
      • addRepeatedField

        public BackupPlan.BackupConfig.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                                Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<BackupPlan.BackupConfig.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.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
      • 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.
      • 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.
      • 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;
      • 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;
      • getIncludeVolumeData

        public boolean getIncludeVolumeData()
         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;
        Specified by:
        getIncludeVolumeData in interface BackupPlan.BackupConfigOrBuilder
        Returns:
        The includeVolumeData.
      • setIncludeVolumeData

        public BackupPlan.BackupConfig.Builder setIncludeVolumeData​(boolean value)
         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;
        Parameters:
        value - The includeVolumeData to set.
        Returns:
        This builder for chaining.
      • clearIncludeVolumeData

        public BackupPlan.BackupConfig.Builder clearIncludeVolumeData()
         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;
        Returns:
        This builder for chaining.
      • getIncludeSecrets

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

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

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

        public boolean hasEncryptionKey()
         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;
        Specified by:
        hasEncryptionKey in interface BackupPlan.BackupConfigOrBuilder
        Returns:
        Whether the encryptionKey field is set.
      • getEncryptionKey

        public EncryptionKey getEncryptionKey()
         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;
        Specified by:
        getEncryptionKey in interface BackupPlan.BackupConfigOrBuilder
        Returns:
        The encryptionKey.
      • setEncryptionKey

        public BackupPlan.BackupConfig.Builder setEncryptionKey​(EncryptionKey value)
         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;
      • setEncryptionKey

        public BackupPlan.BackupConfig.Builder setEncryptionKey​(EncryptionKey.Builder builderForValue)
         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;
      • mergeEncryptionKey

        public BackupPlan.BackupConfig.Builder mergeEncryptionKey​(EncryptionKey value)
         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;
      • clearEncryptionKey

        public BackupPlan.BackupConfig.Builder clearEncryptionKey()
         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;
      • getEncryptionKeyBuilder

        public EncryptionKey.Builder getEncryptionKeyBuilder()
         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;
      • getEncryptionKeyOrBuilder

        public EncryptionKeyOrBuilder getEncryptionKeyOrBuilder()
         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;
        Specified by:
        getEncryptionKeyOrBuilder in interface BackupPlan.BackupConfigOrBuilder
      • setUnknownFields

        public final BackupPlan.BackupConfig.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<BackupPlan.BackupConfig.Builder>
      • mergeUnknownFields

        public final BackupPlan.BackupConfig.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<BackupPlan.BackupConfig.Builder>