public static final class BackupPlan.BackupConfig.Builder extends GeneratedMessageV3.Builder<BackupPlan.BackupConfig.Builder> implements BackupPlan.BackupConfigOrBuilderBackupConfig defines the configuration of Backups created via this BackupPlan.
Protobuf type google.events.cloud.gkebackup.v1.BackupPlan.BackupConfig
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > BackupPlan.BackupConfig.BuilderImplements
BackupPlan.BackupConfigOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public BackupPlan.BackupConfig.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)| Parameters | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
value |
Object |
| Returns | |
|---|---|
| Type | Description |
BackupPlan.BackupConfig.Builder |
|
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()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.events.cloud.gkebackup.v1.EncryptionKey encryption_key = 6;
| Returns | |
|---|---|
| Type | Description |
BackupPlan.BackupConfig.Builder |
|
clearField(Descriptors.FieldDescriptor field)
public BackupPlan.BackupConfig.Builder clearField(Descriptors.FieldDescriptor field)| Parameter | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
| Returns | |
|---|---|
| Type | Description |
BackupPlan.BackupConfig.Builder |
|
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 | |
|---|---|
| Type | Description |
BackupPlan.BackupConfig.Builder |
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 | |
|---|---|
| Type | Description |
BackupPlan.BackupConfig.Builder |
This builder for chaining. |
clearOneof(Descriptors.OneofDescriptor oneof)
public BackupPlan.BackupConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)| Parameter | |
|---|---|
| Name | Description |
oneof |
OneofDescriptor |
| Returns | |
|---|---|
| Type | Description |
BackupPlan.BackupConfig.Builder |
|
clearSelectedApplications()
public BackupPlan.BackupConfig.Builder clearSelectedApplications()If set, include just the resources referenced by the listed ProtectedApplications.
.google.events.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.events.cloud.gkebackup.v1.Namespaces selected_namespaces = 2;
| Returns | |
|---|---|
| Type | Description |
BackupPlan.BackupConfig.Builder |
|
clone()
public BackupPlan.BackupConfig.Builder clone()| 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()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.events.cloud.gkebackup.v1.EncryptionKey encryption_key = 6;
| Returns | |
|---|---|
| Type | Description |
EncryptionKey |
The encryptionKey. |
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.events.cloud.gkebackup.v1.EncryptionKey encryption_key = 6;
| Returns | |
|---|---|
| Type | Description |
EncryptionKey.Builder |
|
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.events.cloud.gkebackup.v1.EncryptionKey encryption_key = 6;
| Returns | |
|---|---|
| Type | Description |
EncryptionKeyOrBuilder |
|
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;
| Returns | |
|---|---|
| Type | Description |
boolean |
The includeSecrets. |
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;
| Returns | |
|---|---|
| Type | Description |
boolean |
The includeVolumeData. |
getSelectedApplications()
public NamespacedNames getSelectedApplications()If set, include just the resources referenced by the listed ProtectedApplications.
.google.events.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.events.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.events.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.events.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.events.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.events.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()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.events.cloud.gkebackup.v1.EncryptionKey encryption_key = 6;
| 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.events.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.events.cloud.gkebackup.v1.Namespaces selected_namespaces = 2;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the selectedNamespaces field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.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)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.events.cloud.gkebackup.v1.EncryptionKey encryption_key = 6;
| 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.events.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.events.cloud.gkebackup.v1.Namespaces selected_namespaces = 2;
| Parameter | |
|---|---|
| Name | Description |
value |
Namespaces |
| Returns | |
|---|---|
| Type | Description |
BackupPlan.BackupConfig.Builder |
|
mergeUnknownFields(UnknownFieldSet unknownFields)
public final BackupPlan.BackupConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)| Parameter | |
|---|---|
| Name | Description |
unknownFields |
UnknownFieldSet |
| 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)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.events.cloud.gkebackup.v1.EncryptionKey encryption_key = 6;
| Parameter | |
|---|---|
| Name | Description |
value |
EncryptionKey |
| Returns | |
|---|---|
| Type | Description |
BackupPlan.BackupConfig.Builder |
|
setEncryptionKey(EncryptionKey.Builder builderForValue)
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.events.cloud.gkebackup.v1.EncryptionKey encryption_key = 6;
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
EncryptionKey.Builder |
| Returns | |
|---|---|
| Type | Description |
BackupPlan.BackupConfig.Builder |
|
setField(Descriptors.FieldDescriptor field, Object value)
public BackupPlan.BackupConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)| Parameters | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
value |
Object |
| Returns | |
|---|---|
| Type | Description |
BackupPlan.BackupConfig.Builder |
|
setIncludeSecrets(boolean value)
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;
| 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)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;
| Parameter | |
|---|---|
| Name | Description |
value |
booleanThe includeVolumeData to set. |
| Returns | |
|---|---|
| Type | Description |
BackupPlan.BackupConfig.Builder |
This builder for chaining. |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public BackupPlan.BackupConfig.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)| Parameters | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
index |
int |
value |
Object |
| Returns | |
|---|---|
| Type | Description |
BackupPlan.BackupConfig.Builder |
|
setSelectedApplications(NamespacedNames value)
public BackupPlan.BackupConfig.Builder setSelectedApplications(NamespacedNames value)If set, include just the resources referenced by the listed ProtectedApplications.
.google.events.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.events.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.events.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.events.cloud.gkebackup.v1.Namespaces selected_namespaces = 2;
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
Namespaces.Builder |
| Returns | |
|---|---|
| Type | Description |
BackupPlan.BackupConfig.Builder |
|
setUnknownFields(UnknownFieldSet unknownFields)
public final BackupPlan.BackupConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)| Parameter | |
|---|---|
| Name | Description |
unknownFields |
UnknownFieldSet |
| Returns | |
|---|---|
| Type | Description |
BackupPlan.BackupConfig.Builder |
|