public static final class BackupPlan.BackupConfig extends GeneratedMessageV3 implements BackupPlan.BackupConfigOrBuilder
BackupConfig defines the configuration of Backups created via this
BackupPlan.
Protobuf type google.cloud.gkebackup.v1.BackupPlan.BackupConfig
Static Fields
ALL_NAMESPACES_FIELD_NUMBER
public static final int ALL_NAMESPACES_FIELD_NUMBER
Field Value
ENCRYPTION_KEY_FIELD_NUMBER
public static final int ENCRYPTION_KEY_FIELD_NUMBER
Field Value
INCLUDE_SECRETS_FIELD_NUMBER
public static final int INCLUDE_SECRETS_FIELD_NUMBER
Field Value
INCLUDE_VOLUME_DATA_FIELD_NUMBER
public static final int INCLUDE_VOLUME_DATA_FIELD_NUMBER
Field Value
SELECTED_APPLICATIONS_FIELD_NUMBER
public static final int SELECTED_APPLICATIONS_FIELD_NUMBER
Field Value
SELECTED_NAMESPACES_FIELD_NUMBER
public static final int SELECTED_NAMESPACES_FIELD_NUMBER
Field Value
Static Methods
getDefaultInstance()
public static BackupPlan.BackupConfig getDefaultInstance()
Returns
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
newBuilder()
public static BackupPlan.BackupConfig.Builder newBuilder()
Returns
newBuilder(BackupPlan.BackupConfig prototype)
public static BackupPlan.BackupConfig.Builder newBuilder(BackupPlan.BackupConfig prototype)
Parameter
Returns
public static BackupPlan.BackupConfig parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static BackupPlan.BackupConfig parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(byte[] data)
public static BackupPlan.BackupConfig parseFrom(byte[] data)
Parameter
Name | Description |
data | byte[]
|
Returns
Exceptions
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static BackupPlan.BackupConfig parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteString data)
public static BackupPlan.BackupConfig parseFrom(ByteString data)
Parameter
Returns
Exceptions
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static BackupPlan.BackupConfig parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static BackupPlan.BackupConfig parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static BackupPlan.BackupConfig parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static BackupPlan.BackupConfig parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static BackupPlan.BackupConfig parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteBuffer data)
public static BackupPlan.BackupConfig parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static BackupPlan.BackupConfig parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parser()
public static Parser<BackupPlan.BackupConfig> parser()
Returns
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter
Returns
Overrides
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
getDefaultInstanceForType()
public BackupPlan.BackupConfig getDefaultInstanceForType()
Returns
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;
Returns
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;
Returns
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.
|
getParserForType()
public Parser<BackupPlan.BackupConfig> getParserForType()
Returns
Overrides
getSelectedApplications()
public NamespacedNames getSelectedApplications()
If set, include just the resources referenced by the listed
ProtectedApplications.
.google.cloud.gkebackup.v1.NamespacedNames selected_applications = 3;
Returns
getSelectedApplicationsOrBuilder()
public NamespacedNamesOrBuilder getSelectedApplicationsOrBuilder()
If set, include just the resources referenced by the listed
ProtectedApplications.
.google.cloud.gkebackup.v1.NamespacedNames selected_applications = 3;
Returns
getSelectedNamespaces()
public Namespaces getSelectedNamespaces()
If set, include just the resources in the listed namespaces.
.google.cloud.gkebackup.v1.Namespaces selected_namespaces = 2;
Returns
getSelectedNamespacesOrBuilder()
public NamespacesOrBuilder getSelectedNamespacesOrBuilder()
If set, include just the resources in the listed namespaces.
.google.cloud.gkebackup.v1.Namespaces selected_namespaces = 2;
Returns
getSerializedSize()
public int getSerializedSize()
Returns
Overrides
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Returns
Overrides
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.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.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.
|
hashCode()
Returns
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
newBuilderForType()
public BackupPlan.BackupConfig.Builder newBuilderForType()
Returns
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected BackupPlan.BackupConfig.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
toBuilder()
public BackupPlan.BackupConfig.Builder toBuilder()
Returns
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions