Class RestoreConfig.Builder (0.12.0)

public static final class RestoreConfig.Builder extends GeneratedMessageV3.Builder<RestoreConfig.Builder> implements RestoreConfigOrBuilder

Configuration of a restore. Next id: 9

Protobuf type google.cloud.gkebackup.v1.RestoreConfig

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addAllSubstitutionRules(Iterable<? extends RestoreConfig.SubstitutionRule> values)

public RestoreConfig.Builder addAllSubstitutionRules(Iterable<? extends RestoreConfig.SubstitutionRule> values)

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
Name Description
values Iterable<? extends com.google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule>
Returns
Type Description
RestoreConfig.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public RestoreConfig.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
RestoreConfig.Builder
Overrides

addSubstitutionRules(RestoreConfig.SubstitutionRule value)

public RestoreConfig.Builder addSubstitutionRules(RestoreConfig.SubstitutionRule value)

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
Name Description
value RestoreConfig.SubstitutionRule
Returns
Type Description
RestoreConfig.Builder

addSubstitutionRules(RestoreConfig.SubstitutionRule.Builder builderForValue)

public RestoreConfig.Builder addSubstitutionRules(RestoreConfig.SubstitutionRule.Builder builderForValue)

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
Name Description
builderForValue RestoreConfig.SubstitutionRule.Builder
Returns
Type Description
RestoreConfig.Builder

addSubstitutionRules(int index, RestoreConfig.SubstitutionRule value)

public RestoreConfig.Builder addSubstitutionRules(int index, RestoreConfig.SubstitutionRule value)

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;

Parameters
Name Description
index int
value RestoreConfig.SubstitutionRule
Returns
Type Description
RestoreConfig.Builder

addSubstitutionRules(int index, RestoreConfig.SubstitutionRule.Builder builderForValue)

public RestoreConfig.Builder addSubstitutionRules(int index, RestoreConfig.SubstitutionRule.Builder builderForValue)

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;

Parameters
Name Description
index int
builderForValue RestoreConfig.SubstitutionRule.Builder
Returns
Type Description
RestoreConfig.Builder

addSubstitutionRulesBuilder()

public RestoreConfig.SubstitutionRule.Builder addSubstitutionRulesBuilder()

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
Type Description
RestoreConfig.SubstitutionRule.Builder

addSubstitutionRulesBuilder(int index)

public RestoreConfig.SubstitutionRule.Builder addSubstitutionRulesBuilder(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
Name Description
index int
Returns
Type Description
RestoreConfig.SubstitutionRule.Builder

build()

public RestoreConfig build()
Returns
Type Description
RestoreConfig

buildPartial()

public RestoreConfig buildPartial()
Returns
Type Description
RestoreConfig

clear()

public RestoreConfig.Builder clear()
Returns
Type Description
RestoreConfig.Builder
Overrides

clearAllNamespaces()

public RestoreConfig.Builder clearAllNamespaces()

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

bool all_namespaces = 5;

Returns
Type Description
RestoreConfig.Builder

This builder for chaining.

clearClusterResourceConflictPolicy()

public RestoreConfig.Builder clearClusterResourceConflictPolicy()

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
Type Description