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.
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.
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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[],[],null,["# Interface BackupPlan.BackupConfigOrBuilder (0.16.0)\n\nVersion latestkeyboard_arrow_down\n\n- [0.16.0 (latest)](/java/docs/reference/google-cloudevent-types/latest/com.google.events.cloud.gkebackup.v1.BackupPlan.BackupConfigOrBuilder)\n- [0.15.0](/java/docs/reference/google-cloudevent-types/0.15.0/com.google.events.cloud.gkebackup.v1.BackupPlan.BackupConfigOrBuilder)\n- [0.14.1](/java/docs/reference/google-cloudevent-types/0.14.1/com.google.events.cloud.gkebackup.v1.BackupPlan.BackupConfigOrBuilder) \n\n public static interface BackupPlan.BackupConfigOrBuilder extends MessageOrBuilder\n\nImplements\n----------\n\n[MessageOrBuilder](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.MessageOrBuilder.html)\n\nMethods\n-------\n\n### getAllNamespaces()\n\n public abstract boolean getAllNamespaces()\n\nIf True, include all namespaced resources\n\n`bool all_namespaces = 1;`\n\n### getBackupScopeCase()\n\n public abstract BackupPlan.BackupConfig.BackupScopeCase getBackupScopeCase()\n\n### getEncryptionKey()\n\n public abstract EncryptionKey getEncryptionKey()\n\nThis defines a customer managed encryption key that will be used to\nencrypt the \"config\" portion (the Kubernetes resources) of Backups\ncreated via this plan.\nDefault (empty): Config backup artifacts will not be encrypted.\n\n`.google.events.cloud.gkebackup.v1.EncryptionKey encryption_key = 6;`\n\n### getEncryptionKeyOrBuilder()\n\n public abstract EncryptionKeyOrBuilder getEncryptionKeyOrBuilder()\n\nThis defines a customer managed encryption key that will be used to\nencrypt the \"config\" portion (the Kubernetes resources) of Backups\ncreated via this plan.\nDefault (empty): Config backup artifacts will not be encrypted.\n\n`.google.events.cloud.gkebackup.v1.EncryptionKey encryption_key = 6;`\n\n### getIncludeSecrets()\n\n public abstract boolean getIncludeSecrets()\n\nThis flag specifies whether Kubernetes Secret resources should be\nincluded when they fall into the scope of Backups.\nDefault: False\n\n`bool include_secrets = 5;`\n\n### getIncludeVolumeData()\n\n public abstract boolean getIncludeVolumeData()\n\nThis flag specifies whether volume data should be backed up when\nPVCs are included in the scope of a Backup.\nDefault: False\n\n`bool include_volume_data = 4;`\n\n### getSelectedApplications()\n\n public abstract NamespacedNames getSelectedApplications()\n\nIf set, include just the resources referenced by the listed\nProtectedApplications.\n\n`.google.events.cloud.gkebackup.v1.NamespacedNames selected_applications = 3;`\n\n### getSelectedApplicationsOrBuilder()\n\n public abstract NamespacedNamesOrBuilder getSelectedApplicationsOrBuilder()\n\nIf set, include just the resources referenced by the listed\nProtectedApplications.\n\n`.google.events.cloud.gkebackup.v1.NamespacedNames selected_applications = 3;`\n\n### getSelectedNamespaces()\n\n public abstract Namespaces getSelectedNamespaces()\n\nIf set, include just the resources in the listed namespaces.\n\n`.google.events.cloud.gkebackup.v1.Namespaces selected_namespaces = 2;`\n\n### getSelectedNamespacesOrBuilder()\n\n public abstract NamespacesOrBuilder getSelectedNamespacesOrBuilder()\n\nIf set, include just the resources in the listed namespaces.\n\n`.google.events.cloud.gkebackup.v1.Namespaces selected_namespaces = 2;`\n\n### hasAllNamespaces()\n\n public abstract boolean hasAllNamespaces()\n\nIf True, include all namespaced resources\n\n`bool all_namespaces = 1;`\n\n### hasEncryptionKey()\n\n public abstract boolean hasEncryptionKey()\n\nThis defines a customer managed encryption key that will be used to\nencrypt the \"config\" portion (the Kubernetes resources) of Backups\ncreated via this plan.\nDefault (empty): Config backup artifacts will not be encrypted.\n\n`.google.events.cloud.gkebackup.v1.EncryptionKey encryption_key = 6;`\n\n### hasSelectedApplications()\n\n public abstract boolean hasSelectedApplications()\n\nIf set, include just the resources referenced by the listed\nProtectedApplications.\n\n`.google.events.cloud.gkebackup.v1.NamespacedNames selected_applications = 3;`\n\n### hasSelectedNamespaces()\n\n public abstract boolean hasSelectedNamespaces()\n\nIf set, include just the resources in the listed namespaces.\n\n`.google.events.cloud.gkebackup.v1.Namespaces selected_namespaces = 2;`"]]