public static final class BackupPlan.BackupConfig.Builder extends GeneratedMessage.Builder<BackupPlan.BackupConfig.Builder> implements BackupPlan.BackupConfigOrBuilderBackupConfig defines the configuration of Backups created via this BackupPlan.
Protobuf type google.cloud.gkebackup.v1.BackupPlan.BackupConfig
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > BackupPlan.BackupConfig.BuilderImplements
BackupPlan.BackupConfigOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public BackupPlan.BackupConfig build()| Returns | |
|---|---|
| Type | Description |
BackupPlan.BackupConfig |
|
buildPartial()
public BackupPlan.BackupConfig buildPartial()| Returns | |
|---|---|
| Type | Description |
BackupPlan.BackupConfig |
|
clear()
public BackupPlan.BackupConfig.Builder clear()| Returns | |
|---|---|
| Type | Description |
BackupPlan.BackupConfig.Builder |
|
clearAllNamespaces()
public BackupPlan.BackupConfig.Builder clearAllNamespaces()If True, include all namespaced resources
bool all_namespaces = 1;
| Returns | |
|---|---|
| Type | Description |
BackupPlan.BackupConfig.Builder |
This builder for chaining. |
clearBackupScope()
public BackupPlan.BackupConfig.Builder clearBackupScope()| Returns | |
|---|---|
| Type | Description |
BackupPlan.BackupConfig.Builder |
|
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];
| Returns | |
|---|---|
| Type | Description |
BackupPlan.BackupConfig.Builder |
|
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 | |
|---|---|
| Type | Description |
BackupPlan.BackupConfig.Builder |
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 | |
|---|---|
| Type | Description |
BackupPlan.BackupConfig.Builder |
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 | |
|---|---|
| Type | Description |
BackupPlan.BackupConfig.Builder |
This builder for chaining. |
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;
| Returns | |
|---|---|
| Type | Description |
BackupPlan.BackupConfig.Builder |
|
clearSelectedNamespaces()
public BackupPlan.BackupConfig.Builder clearSelectedNamespaces()If set, include just the resources in the listed namespaces.
.google.cloud.gkebackup.v1.Namespaces selected_namespaces = 2;
| Returns | |
|---|---|
| Type | Description |
BackupPlan.BackupConfig.Builder |
|
getAllNamespaces()
public boolean getAllNamespaces()If True, include all namespaced resources
bool all_namespaces = 1;
| Returns | |
|---|---|
| Type | Description |
boolean |
The allNamespaces. |
getBackupScopeCase()
public BackupPlan.BackupConfig.BackupScopeCase getBackupScopeCase()| Returns | |
|---|---|
| Type | Description |
BackupPlan.BackupConfig.BackupScopeCase |
|
getDefaultInstanceForType()
public BackupPlan.BackupConfig getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
BackupPlan.BackupConfig |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
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];
| Returns | |
|---|---|
| Type | Description |
EncryptionKey |
The encryptionKey. |
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];
| Returns | |
|---|---|
| Type | Description |
EncryptionKey.Builder |
|
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];
| Returns | |
|---|---|
| Type | Description |
EncryptionKeyOrBuilder |
|
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];
| Returns | |
|---|---|
| Type | Description |
boolean |
The includeSecrets. |
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];
| Returns | |
|---|---|
| Type | Description |
boolean |
The includeVolumeData. |
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];
| Returns | |
|---|---|
| Type | Description |
boolean |
The permissiveMode. |
getSelectedApplications()
public NamespacedNames getSelectedApplications()If set, include just the resources referenced by the listed ProtectedApplications.
.google.cloud.gkebackup.v1.NamespacedNames selected_applications = 3;
| Returns | |
|---|---|
| Type | Description |
NamespacedNames |
The selectedApplications. |
getSelectedApplicationsBuilder()
public NamespacedNames.Builder getSelectedApplicationsBuilder()If set, include just the resources referenced by the listed ProtectedApplications.
.google.cloud.gkebackup.v1.NamespacedNames selected_applications = 3;
| Returns | |
|---|---|
| Type | Description |
NamespacedNames.Builder |
|
getSelectedApplicationsOrBuilder()
public NamespacedNamesOrBuilder getSelectedApplicationsOrBuilder()If set, include just the resources referenced by the listed ProtectedApplications.
.google.cloud.gkebackup.v1.NamespacedNames selected_applications = 3;
| Returns | |
|---|---|
| Type | Description |
NamespacedNamesOrBuilder |
|
getSelectedNamespaces()
public Namespaces getSelectedNamespaces()If set, include just the resources in the listed namespaces.
.google.cloud.gkebackup.v1.Namespaces selected_namespaces = 2;
| Returns | |
|---|---|
| Type | Description |
Namespaces |
The selectedNamespaces. |
getSelectedNamespacesBuilder()
public Namespaces.Builder getSelectedNamespacesBuilder()If set, include just the resources in the listed namespaces.
.google.cloud.gkebackup.v1.Namespaces selected_namespaces = 2;
| Returns | |
|---|---|
| Type | Description |
Namespaces.Builder |
|
getSelectedNamespacesOrBuilder()
public NamespacesOrBuilder getSelectedNamespacesOrBuilder()If set, include just the resources in the listed namespaces.
.google.cloud.gkebackup.v1.Namespaces selected_namespaces = 2;
| Returns | |
|---|---|
| Type | Description |
NamespacesOrBuilder |
|
hasAllNamespaces()
public boolean hasAllNamespaces()If True, include all namespaced resources
bool all_namespaces = 1;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the allNamespaces field is set. |
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];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the encryptionKey field is set. |
hasSelectedApplications()
public boolean hasSelectedApplications()If set, include just the resources referenced by the listed ProtectedApplications.
.google.cloud.gkebackup.v1.NamespacedNames selected_applications = 3;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the selectedApplications field is set. |
hasSelectedNamespaces()
public boolean hasSelectedNamespaces()If set, include just the resources in the listed namespaces.
.google.cloud.gkebackup.v1.Namespaces selected_namespaces = 2;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the selectedNamespaces field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeEncryptionKey(EncryptionKey value)
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];
| Parameter | |
|---|---|
| Name | Description |
value |
EncryptionKey |
| Returns | |
|---|---|
| Type | Description |
BackupPlan.BackupConfig.Builder |
|
mergeFrom(BackupPlan.BackupConfig other)
public BackupPlan.BackupConfig.Builder mergeFrom(BackupPlan.BackupConfig other)| Parameter | |
|---|---|
| Name | Description |
other |
BackupPlan.BackupConfig |
| Returns | |
|---|---|
| Type | Description |
BackupPlan.BackupConfig.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public BackupPlan.BackupConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
BackupPlan.BackupConfig.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public BackupPlan.BackupConfig.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
BackupPlan.BackupConfig.Builder |
|
mergeSelectedApplications(NamespacedNames value)
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;
| Parameter | |
|---|---|
| Name | Description |
value |
NamespacedNames |
| Returns | |
|---|---|
| Type | Description |
BackupPlan.BackupConfig.Builder |
|
mergeSelectedNamespaces(Namespaces value)
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;
| Parameter | |
|---|---|
| Name | Description |
value |
Namespaces |
| Returns | |
|---|---|
| Type | Description |
BackupPlan.BackupConfig.Builder |
|
setAllNamespaces(boolean value)
public BackupPlan.BackupConfig.Builder setAllNamespaces(boolean value)If True, include all namespaced resources
bool all_namespaces = 1;
| Parameter | |
|---|---|
| Name | Description |
value |
booleanThe allNamespaces to set. |
| Returns | |
|---|---|
| Type | Description |
BackupPlan.BackupConfig.Builder |
This builder for chaining. |
setEncryptionKey(EncryptionKey value)
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];
| Parameter | |
|---|---|
| Name | Description |
value |
EncryptionKey |
| Returns | |
|---|---|
| Type | Description |
BackupPlan.BackupConfig.Builder |
|
setEncryptionKey(EncryptionKey.Builder builderForValue)
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];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
EncryptionKey.Builder |
| Returns | |
|---|---|
| Type | Description |
BackupPlan.BackupConfig.Builder |
|
setIncludeSecrets(boolean value)
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];
| Parameter | |
|---|---|
| Name | Description |
value |
booleanThe includeSecrets to set. |
| Returns | |
|---|---|
| Type | Description |
BackupPlan.BackupConfig.Builder |
This builder for chaining. |
setIncludeVolumeData(boolean value)
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];
| Parameter | |
|---|---|
| Name | Description |
value |
booleanThe includeVolumeData to set. |
| Returns | |
|---|---|
| Type | Description |
BackupPlan.BackupConfig.Builder |
This builder for chaining. |
setPermissiveMode(boolean value)
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];
| Parameter | |
|---|---|
| Name | Description |
value |
booleanThe permissiveMode to set. |
| Returns | |
|---|---|
| Type | Description |
BackupPlan.BackupConfig.Builder |
This builder for chaining. |
setSelectedApplications(NamespacedNames value)
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;
| Parameter | |
|---|---|
| Name | Description |
value |
NamespacedNames |
| Returns | |
|---|---|
| Type | Description |
BackupPlan.BackupConfig.Builder |
|
setSelectedApplications(NamespacedNames.Builder builderForValue)
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;
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
NamespacedNames.Builder |
| Returns | |
|---|---|
| Type | Description |
BackupPlan.BackupConfig.Builder |
|
setSelectedNamespaces(Namespaces value)
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;
| Parameter | |
|---|---|
| Name | Description |
value |
Namespaces |
| Returns | |
|---|---|
| Type | Description |
BackupPlan.BackupConfig.Builder |
|
setSelectedNamespaces(Namespaces.Builder builderForValue)
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;
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
Namespaces.Builder |
| Returns | |
|---|---|
| Type | Description |
BackupPlan.BackupConfig.Builder |
|