Package com.google.cloud.gkebackup.v1
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 Summary
Modifier and TypeMethodDescriptionbuild()clear()If True, include all namespaced resourcesOptional.Optional.Optional.Optional.If set, include just the resources referenced by the listed ProtectedApplications.If set, include just the resources in the listed namespaces.booleanIf True, include all namespaced resourcesstatic final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorOptional.Optional.Optional.booleanOptional.booleanOptional.booleanOptional.If set, include just the resources referenced by the listed ProtectedApplications.If set, include just the resources referenced by the listed ProtectedApplications.If set, include just the resources referenced by the listed ProtectedApplications.If set, include just the resources in the listed namespaces.If set, include just the resources in the listed namespaces.If set, include just the resources in the listed namespaces.booleanIf True, include all namespaced resourcesbooleanOptional.booleanIf set, include just the resources referenced by the listed ProtectedApplications.booleanIf set, include just the resources in the listed namespaces.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeEncryptionKey(EncryptionKey value) Optional.mergeFrom(BackupPlan.BackupConfig other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) If set, include just the resources referenced by the listed ProtectedApplications.If set, include just the resources in the listed namespaces.setAllNamespaces(boolean value) If True, include all namespaced resourcessetEncryptionKey(EncryptionKey value) Optional.setEncryptionKey(EncryptionKey.Builder builderForValue) Optional.setIncludeSecrets(boolean value) Optional.setIncludeVolumeData(boolean value) Optional.setPermissiveMode(boolean value) Optional.If set, include just the resources referenced by the listed ProtectedApplications.setSelectedApplications(NamespacedNames.Builder builderForValue) If set, include just the resources referenced by the listed ProtectedApplications.setSelectedNamespaces(Namespaces value) If set, include just the resources in the listed namespaces.setSelectedNamespaces(Namespaces.Builder builderForValue) If set, include just the resources in the listed namespaces.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<BackupPlan.BackupConfig.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<BackupPlan.BackupConfig.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<BackupPlan.BackupConfig.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<BackupPlan.BackupConfig.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<BackupPlan.BackupConfig.Builder>- Throws:
IOException
-
getBackupScopeCase
- Specified by:
getBackupScopeCasein interfaceBackupPlan.BackupConfigOrBuilder
-
clearBackupScope
-
hasAllNamespaces
public boolean hasAllNamespaces()If True, include all namespaced resources
bool all_namespaces = 1;- Specified by:
hasAllNamespacesin interfaceBackupPlan.BackupConfigOrBuilder- Returns:
- Whether the allNamespaces field is set.
-
getAllNamespaces
public boolean getAllNamespaces()If True, include all namespaced resources
bool all_namespaces = 1;- Specified by:
getAllNamespacesin interfaceBackupPlan.BackupConfigOrBuilder- Returns:
- The allNamespaces.
-
setAllNamespaces
If True, include all namespaced resources
bool all_namespaces = 1;- Parameters:
value- The allNamespaces to set.- Returns:
- This builder for chaining.
-
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:
hasSelectedNamespacesin interfaceBackupPlan.BackupConfigOrBuilder- Returns:
- Whether the selectedNamespaces field is set.
-
getSelectedNamespaces
If set, include just the resources in the listed namespaces.
.google.cloud.gkebackup.v1.Namespaces selected_namespaces = 2;- Specified by:
getSelectedNamespacesin interfaceBackupPlan.BackupConfigOrBuilder- Returns:
- The selectedNamespaces.
-
setSelectedNamespaces
If set, include just the resources in the listed namespaces.
.google.cloud.gkebackup.v1.Namespaces selected_namespaces = 2; -
setSelectedNamespaces
If set, include just the resources in the listed namespaces.
.google.cloud.gkebackup.v1.Namespaces selected_namespaces = 2; -
mergeSelectedNamespaces
If set, include just the resources in the listed namespaces.
.google.cloud.gkebackup.v1.Namespaces selected_namespaces = 2; -
clearSelectedNamespaces
If set, include just the resources in the listed namespaces.
.google.cloud.gkebackup.v1.Namespaces selected_namespaces = 2; -
getSelectedNamespacesBuilder
If set, include just the resources in the listed namespaces.
.google.cloud.gkebackup.v1.Namespaces selected_namespaces = 2; -
getSelectedNamespacesOrBuilder
If set, include just the resources in the listed namespaces.
.google.cloud.gkebackup.v1.Namespaces selected_namespaces = 2;- Specified by:
getSelectedNamespacesOrBuilderin interfaceBackupPlan.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:
hasSelectedApplicationsin interfaceBackupPlan.BackupConfigOrBuilder- Returns:
- Whether the selectedApplications field is set.
-
getSelectedApplications
If set, include just the resources referenced by the listed ProtectedApplications.
.google.cloud.gkebackup.v1.NamespacedNames selected_applications = 3;- Specified by:
getSelectedApplicationsin interfaceBackupPlan.BackupConfigOrBuilder- Returns:
- The selectedApplications.
-
setSelectedApplications
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
If set, include just the resources referenced by the listed ProtectedApplications.
.google.cloud.gkebackup.v1.NamespacedNames selected_applications = 3; -
clearSelectedApplications
If set, include just the resources referenced by the listed ProtectedApplications.
.google.cloud.gkebackup.v1.NamespacedNames selected_applications = 3; -
getSelectedApplicationsBuilder
If set, include just the resources referenced by the listed ProtectedApplications.
.google.cloud.gkebackup.v1.NamespacedNames selected_applications = 3; -
getSelectedApplicationsOrBuilder
If set, include just the resources referenced by the listed ProtectedApplications.
.google.cloud.gkebackup.v1.NamespacedNames selected_applications = 3;- Specified by:
getSelectedApplicationsOrBuilderin interfaceBackupPlan.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:
getIncludeVolumeDatain interfaceBackupPlan.BackupConfigOrBuilder- Returns:
- The includeVolumeData.
-
setIncludeVolumeData
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
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:
getIncludeSecretsin interfaceBackupPlan.BackupConfigOrBuilder- Returns:
- The includeSecrets.
-
setIncludeSecrets
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
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:
hasEncryptionKeyin interfaceBackupPlan.BackupConfigOrBuilder- Returns:
- Whether the encryptionKey field is set.
-
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:
getEncryptionKeyin interfaceBackupPlan.BackupConfigOrBuilder- Returns:
- The encryptionKey.
-
setEncryptionKey
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
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
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
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
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
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:
getEncryptionKeyOrBuilderin interfaceBackupPlan.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:
getPermissiveModein interfaceBackupPlan.BackupConfigOrBuilder- Returns:
- The permissiveMode.
-
setPermissiveMode
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
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.
-