Class RestoreConfig (0.33.0)

public final class RestoreConfig extends GeneratedMessageV3 implements RestoreConfigOrBuilder

Configuration of a restore. Next id: 12

Protobuf type google.cloud.gkebackup.v1.RestoreConfig

Static Fields

ALL_NAMESPACES_FIELD_NUMBER

public static final int ALL_NAMESPACES_FIELD_NUMBER
Field Value
TypeDescription
int

CLUSTER_RESOURCE_CONFLICT_POLICY_FIELD_NUMBER

public static final int CLUSTER_RESOURCE_CONFLICT_POLICY_FIELD_NUMBER
Field Value
TypeDescription
int

CLUSTER_RESOURCE_RESTORE_SCOPE_FIELD_NUMBER

public static final int CLUSTER_RESOURCE_RESTORE_SCOPE_FIELD_NUMBER
Field Value
TypeDescription
int

EXCLUDED_NAMESPACES_FIELD_NUMBER

public static final int EXCLUDED_NAMESPACES_FIELD_NUMBER
Field Value
TypeDescription
int

NAMESPACED_RESOURCE_RESTORE_MODE_FIELD_NUMBER

public static final int NAMESPACED_RESOURCE_RESTORE_MODE_FIELD_NUMBER
Field Value
TypeDescription
int

NO_NAMESPACES_FIELD_NUMBER

public static final int NO_NAMESPACES_FIELD_NUMBER
Field Value
TypeDescription
int

SELECTED_APPLICATIONS_FIELD_NUMBER

public static final int SELECTED_APPLICATIONS_FIELD_NUMBER
Field Value
TypeDescription
int

SELECTED_NAMESPACES_FIELD_NUMBER

public static final int SELECTED_NAMESPACES_FIELD_NUMBER
Field Value
TypeDescription
int

SUBSTITUTION_RULES_FIELD_NUMBER

public static final int SUBSTITUTION_RULES_FIELD_NUMBER
Field Value
TypeDescription
int

TRANSFORMATION_RULES_FIELD_NUMBER

public static final int TRANSFORMATION_RULES_FIELD_NUMBER
Field Value
TypeDescription
int

VOLUME_DATA_RESTORE_POLICY_FIELD_NUMBER

public static final int VOLUME_DATA_RESTORE_POLICY_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static RestoreConfig getDefaultInstance()
Returns
TypeDescription
RestoreConfig

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static RestoreConfig.Builder newBuilder()
Returns
TypeDescription
RestoreConfig.Builder

newBuilder(RestoreConfig prototype)

public static RestoreConfig.Builder newBuilder(RestoreConfig prototype)
Parameter
NameDescription
prototypeRestoreConfig
Returns
TypeDescription
RestoreConfig.Builder

parseDelimitedFrom(InputStream input)

public static RestoreConfig parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
RestoreConfig
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static RestoreConfig parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
RestoreConfig
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static RestoreConfig parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
RestoreConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static RestoreConfig parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
RestoreConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static RestoreConfig parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
RestoreConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static RestoreConfig parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
RestoreConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static RestoreConfig parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
RestoreConfig
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static RestoreConfig parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
RestoreConfig
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static RestoreConfig parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
RestoreConfig
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static RestoreConfig parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
RestoreConfig
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static RestoreConfig parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
RestoreConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static RestoreConfig parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
RestoreConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<RestoreConfig> parser()
Returns
TypeDescription
Parser<RestoreConfig>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getAllNamespaces()

public boolean getAllNamespaces()

Restore all namespaced resources in the Backup if set to "True". Specifying this field to "False" is an error.

bool all_namespaces = 5;

Returns
TypeDescription
boolean

The allNamespaces.

getClusterResourceConflictPolicy()

public RestoreConfig.ClusterResourceConflictPolicy getClusterResourceConflictPolicy()

Defines the behavior for handling the situation where cluster-scoped resources being restored already exist in the target cluster. This MUST be set to a value other than CLUSTER_RESOURCE_CONFLICT_POLICY_UNSPECIFIED if cluster_resource_restore_scope is not empty.

.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceConflictPolicy cluster_resource_conflict_policy = 2;

Returns
TypeDescription
RestoreConfig.ClusterResourceConflictPolicy

The clusterResourceConflictPolicy.

getClusterResourceConflictPolicyValue()

public int getClusterResourceConflictPolicyValue()

Defines the behavior for handling the situation where cluster-scoped resources being restored already exist in the target cluster. This MUST be set to a value other than CLUSTER_RESOURCE_CONFLICT_POLICY_UNSPECIFIED if cluster_resource_restore_scope is not empty.

.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceConflictPolicy cluster_resource_conflict_policy = 2;

Returns
TypeDescription
int

The enum numeric value on the wire for clusterResourceConflictPolicy.

getClusterResourceRestoreScope()

public RestoreConfig.ClusterResourceRestoreScope getClusterResourceRestoreScope()

Identifies the cluster-scoped resources to restore from the Backup. Not specifying it means NO cluster resource will be restored.

.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope cluster_resource_restore_scope = 4;

Returns
TypeDescription
RestoreConfig.ClusterResourceRestoreScope

The clusterResourceRestoreScope.

getClusterResourceRestoreScopeOrBuilder()

public RestoreConfig.ClusterResourceRestoreScopeOrBuilder getClusterResourceRestoreScopeOrBuilder()

Identifies the cluster-scoped resources to restore from the Backup. Not specifying it means NO cluster resource will be restored.

.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope cluster_resource_restore_scope = 4;

Returns
TypeDescription
RestoreConfig.ClusterResourceRestoreScopeOrBuilder

getDefaultInstanceForType()

public RestoreConfig getDefaultInstanceForType()
Returns
TypeDescription
RestoreConfig

getExcludedNamespaces()

public Namespaces getExcludedNamespaces()

A list of selected namespaces excluded from restoration. All namespaces except those in this list will be restored.

.google.cloud.gkebackup.v1.Namespaces excluded_namespaces = 10;

Returns
TypeDescription
Namespaces

The excludedNamespaces.

getExcludedNamespacesOrBuilder()

public NamespacesOrBuilder getExcludedNamespacesOrBuilder()

A list of selected namespaces excluded from restoration. All namespaces except those in this list will be restored.

.google.cloud.gkebackup.v1.Namespaces excluded_namespaces = 10;

Returns
TypeDescription
NamespacesOrBuilder

getNamespacedResourceRestoreMode()

public RestoreConfig.NamespacedResourceRestoreMode getNamespacedResourceRestoreMode()

Defines the behavior for handling the situation where sets of namespaced resources being restored already exist in the target cluster. This MUST be set to a value other than NAMESPACED_RESOURCE_RESTORE_MODE_UNSPECIFIED.

.google.cloud.gkebackup.v1.RestoreConfig.NamespacedResourceRestoreMode namespaced_resource_restore_mode = 3;

Returns
TypeDescription
RestoreConfig.NamespacedResourceRestoreMode

The namespacedResourceRestoreMode.

getNamespacedResourceRestoreModeValue()

public int getNamespacedResourceRestoreModeValue()

Defines the behavior for handling the situation where sets of namespaced resources being restored already exist in the target cluster. This MUST be set to a value other than NAMESPACED_RESOURCE_RESTORE_MODE_UNSPECIFIED.

.google.cloud.gkebackup.v1.RestoreConfig.NamespacedResourceRestoreMode namespaced_resource_restore_mode = 3;

Returns
TypeDescription
int

The enum numeric value on the wire for namespacedResourceRestoreMode.

getNamespacedResourceRestoreScopeCase()

public RestoreConfig.NamespacedResourceRestoreScopeCase getNamespacedResourceRestoreScopeCase()
Returns
TypeDescription
RestoreConfig.NamespacedResourceRestoreScopeCase

getNoNamespaces()

public boolean getNoNamespaces()

Do not restore any namespaced resources if set to "True". Specifying this field to "False" is not allowed.

bool no_namespaces = 9;

Returns
TypeDescription
boolean

The noNamespaces.

getParserForType()

public Parser<RestoreConfig> getParserForType()
Returns
TypeDescription
Parser<RestoreConfig>
Overrides

getSelectedApplications()

public NamespacedNames getSelectedApplications()

A list of selected ProtectedApplications to restore. The listed ProtectedApplications and all the resources to which they refer will be restored.

.google.cloud.gkebackup.v1.NamespacedNames selected_applications = 7;

Returns
TypeDescription
NamespacedNames

The selectedApplications.

getSelectedApplicationsOrBuilder()

public NamespacedNamesOrBuilder getSelectedApplicationsOrBuilder()

A list of selected ProtectedApplications to restore. The listed ProtectedApplications and all the resources to which they refer will be restored.

.google.cloud.gkebackup.v1.NamespacedNames selected_applications = 7;

Returns
TypeDescription
NamespacedNamesOrBuilder

getSelectedNamespaces()

public Namespaces getSelectedNamespaces()

A list of selected Namespaces to restore from the Backup. The listed Namespaces and all resources contained in them will be restored.

.google.cloud.gkebackup.v1.Namespaces selected_namespaces = 6;

Returns
TypeDescription
Namespaces

The selectedNamespaces.

getSelectedNamespacesOrBuilder()

public NamespacesOrBuilder getSelectedNamespacesOrBuilder()

A list of selected Namespaces to restore from the Backup. The listed Namespaces and all resources contained in them will be restored.

.google.cloud.gkebackup.v1.Namespaces selected_namespaces = 6;

Returns
TypeDescription
NamespacesOrBuilder

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getSubstitutionRules(int index)

public RestoreConfig.SubstitutionRule getSubstitutionRules(int index)

A list of transformation rules to be applied against Kubernetes resources as they are selected for restoration from a Backup. Rules are executed in order defined - this order matters, as changes made by a rule may impact the filtering logic of subsequent rules. An empty list means no substitution will occur.

repeated .google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule substitution_rules = 8;

Parameter
NameDescription
indexint
Returns
TypeDescription
RestoreConfig.SubstitutionRule

getSubstitutionRulesCount()

public int getSubstitutionRulesCount()

A list of transformation rules to be applied against Kubernetes resources as they are selected for restoration from a Backup. Rules are executed in order defined - this order matters, as changes made by a rule may impact the filtering logic of subsequent rules. An empty list means no substitution will occur.

repeated .google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule substitution_rules = 8;

Returns
TypeDescription
int

getSubstitutionRulesList()

public List<RestoreConfig.SubstitutionRule> getSubstitutionRulesList()

A list of transformation rules to be applied against Kubernetes resources as they are selected for restoration from a Backup. Rules are executed in order defined - this order matters, as changes made by a rule may impact the filtering logic of subsequent rules. An empty list means no substitution will occur.

repeated .google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule substitution_rules = 8;

Returns
TypeDescription
List<SubstitutionRule>

getSubstitutionRulesOrBuilder(int index)

public RestoreConfig.SubstitutionRuleOrBuilder getSubstitutionRulesOrBuilder(int index)

A list of transformation rules to be applied against Kubernetes resources as they are selected for restoration from a Backup. Rules are executed in order defined - this order matters, as changes made by a rule may impact the filtering logic of subsequent rules. An empty list means no substitution will occur.

repeated .google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule substitution_rules = 8;

Parameter
NameDescription
indexint
Returns
TypeDescription
RestoreConfig.SubstitutionRuleOrBuilder

getSubstitutionRulesOrBuilderList()

public List<? extends RestoreConfig.SubstitutionRuleOrBuilder> getSubstitutionRulesOrBuilderList()

A list of transformation rules to be applied against Kubernetes resources as they are selected for restoration from a Backup. Rules are executed in order defined - this order matters, as changes made by a rule may impact the filtering logic of subsequent rules. An empty list means no substitution will occur.

repeated .google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule substitution_rules = 8;

Returns
TypeDescription
List<? extends com.google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRuleOrBuilder>

getTransformationRules(int index)

public RestoreConfig.TransformationRule getTransformationRules(int index)

A list of transformation rules to be applied against Kubernetes resources as they are selected for restoration from a Backup. Rules are executed in order defined - this order matters, as changes made by a rule may impact the filtering logic of subsequent rules. An empty list means no transformation will occur.

repeated .google.cloud.gkebackup.v1.RestoreConfig.TransformationRule transformation_rules = 11;

Parameter
NameDescription
indexint
Returns
TypeDescription
RestoreConfig.TransformationRule

getTransformationRulesCount()

public int getTransformationRulesCount()

A list of transformation rules to be applied against Kubernetes resources as they are selected for restoration from a Backup. Rules are executed in order defined - this order matters, as changes made by a rule may impact the filtering logic of subsequent rules. An empty list means no transformation will occur.

repeated .google.cloud.gkebackup.v1.RestoreConfig.TransformationRule transformation_rules = 11;

Returns
TypeDescription
int

getTransformationRulesList()

public List<RestoreConfig.TransformationRule> getTransformationRulesList()

A list of transformation rules to be applied against Kubernetes resources as they are selected for restoration from a Backup. Rules are executed in order defined - this order matters, as changes made by a rule may impact the filtering logic of subsequent rules. An empty list means no transformation will occur.

repeated .google.cloud.gkebackup.v1.RestoreConfig.TransformationRule transformation_rules = 11;

Returns
TypeDescription
List<TransformationRule>

getTransformationRulesOrBuilder(int index)

public RestoreConfig.TransformationRuleOrBuilder getTransformationRulesOrBuilder(int index)

A list of transformation rules to be applied against Kubernetes resources as they are selected for restoration from a Backup. Rules are executed in order defined - this order matters, as changes made by a rule may impact the filtering logic of subsequent rules. An empty list means no transformation will occur.

repeated .google.cloud.gkebackup.v1.RestoreConfig.TransformationRule transformation_rules = 11;

Parameter
NameDescription
indexint
Returns
TypeDescription
RestoreConfig.TransformationRuleOrBuilder

getTransformationRulesOrBuilderList()

public List<? extends RestoreConfig.TransformationRuleOrBuilder> getTransformationRulesOrBuilderList()

A list of transformation rules to be applied against Kubernetes resources as they are selected for restoration from a Backup. Rules are executed in order defined - this order matters, as changes made by a rule may impact the filtering logic of subsequent rules. An empty list means no transformation will occur.

repeated .google.cloud.gkebackup.v1.RestoreConfig.TransformationRule transformation_rules = 11;

Returns
TypeDescription
List<? extends com.google.cloud.gkebackup.v1.RestoreConfig.TransformationRuleOrBuilder>

getVolumeDataRestorePolicy()

public RestoreConfig.VolumeDataRestorePolicy getVolumeDataRestorePolicy()

Specifies the mechanism to be used to restore volume data. Default: VOLUME_DATA_RESTORE_POLICY_UNSPECIFIED (will be treated as NO_VOLUME_DATA_RESTORATION).

.google.cloud.gkebackup.v1.RestoreConfig.VolumeDataRestorePolicy volume_data_restore_policy = 1;

Returns
TypeDescription
RestoreConfig.VolumeDataRestorePolicy

The volumeDataRestorePolicy.

getVolumeDataRestorePolicyValue()

public int getVolumeDataRestorePolicyValue()

Specifies the mechanism to be used to restore volume data. Default: VOLUME_DATA_RESTORE_POLICY_UNSPECIFIED (will be treated as NO_VOLUME_DATA_RESTORATION).

.google.cloud.gkebackup.v1.RestoreConfig.VolumeDataRestorePolicy volume_data_restore_policy = 1;

Returns
TypeDescription
int

The enum numeric value on the wire for volumeDataRestorePolicy.

hasAllNamespaces()

public boolean hasAllNamespaces()

Restore all namespaced resources in the Backup if set to "True". Specifying this field to "False" is an error.

bool all_namespaces = 5;

Returns
TypeDescription
boolean

Whether the allNamespaces field is set.

hasClusterResourceRestoreScope()

public boolean hasClusterResourceRestoreScope()

Identifies the cluster-scoped resources to restore from the Backup. Not specifying it means NO cluster resource will be restored.

.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope cluster_resource_restore_scope = 4;

Returns
TypeDescription
boolean

Whether the clusterResourceRestoreScope field is set.

hasExcludedNamespaces()

public boolean hasExcludedNamespaces()

A list of selected namespaces excluded from restoration. All namespaces except those in this list will be restored.

.google.cloud.gkebackup.v1.Namespaces excluded_namespaces = 10;

Returns
TypeDescription
boolean

Whether the excludedNamespaces field is set.

hasNoNamespaces()

public boolean hasNoNamespaces()

Do not restore any namespaced resources if set to "True". Specifying this field to "False" is not allowed.

bool no_namespaces = 9;

Returns
TypeDescription
boolean

Whether the noNamespaces field is set.

hasSelectedApplications()

public boolean hasSelectedApplications()

A list of selected ProtectedApplications to restore. The listed ProtectedApplications and all the resources to which they refer will be restored.

.google.cloud.gkebackup.v1.NamespacedNames selected_applications = 7;

Returns
TypeDescription
boolean

Whether the selectedApplications field is set.

hasSelectedNamespaces()

public boolean hasSelectedNamespaces()

A list of selected Namespaces to restore from the Backup. The listed Namespaces and all resources contained in them will be restored.

.google.cloud.gkebackup.v1.Namespaces selected_namespaces = 6;

Returns
TypeDescription
boolean

Whether the selectedNamespaces field is set.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public RestoreConfig.Builder newBuilderForType()
Returns
TypeDescription
RestoreConfig.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected RestoreConfig.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
RestoreConfig.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public RestoreConfig.Builder toBuilder()
Returns
TypeDescription
RestoreConfig.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException