Class RestoreConfig.SubstitutionRule.Builder (0.20.0)

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

A transformation rule to be applied against Kubernetes resources as they are selected for restoration from a Backup. A rule contains both filtering logic (which resources are subject to substitution) and substitution logic.

Protobuf type google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule

Static Methods

getDescriptor()

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

Methods

addAllTargetGroupKinds(Iterable<? extends RestoreConfig.GroupKind> values)

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

(Filtering parameter) Any resource subject to substitution must belong to one of the listed "types". If this field is not provided, no type filtering will be performed (all resources of all types matching previous filtering parameters will be candidates for substitution).

repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind target_group_kinds = 2;

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind>
Returns
TypeDescription
RestoreConfig.SubstitutionRule.Builder

addAllTargetNamespaces(Iterable<String> values)

public RestoreConfig.SubstitutionRule.Builder addAllTargetNamespaces(Iterable<String> values)

(Filtering parameter) Any resource subject to substitution must be contained within one of the listed Kubernetes Namespace in the Backup. If this field is not provided, no namespace filtering will be performed (all resources in all Namespaces, including all cluster-scoped resources, will be candidates for substitution). To mix cluster-scoped and namespaced resources in the same rule, use an empty string ("") as one of the target namespaces.

repeated string target_namespaces = 1;

Parameter
NameDescription
valuesIterable<String>

The targetNamespaces to add.

Returns
TypeDescription
RestoreConfig.SubstitutionRule.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public RestoreConfig.SubstitutionRule.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
RestoreConfig.SubstitutionRule.Builder
Overrides

addTargetGroupKinds(RestoreConfig.GroupKind value)

public RestoreConfig.SubstitutionRule.Builder addTargetGroupKinds(RestoreConfig.GroupKind value)

(Filtering parameter) Any resource subject to substitution must belong to one of the listed "types". If this field is not provided, no type filtering will be performed (all resources of all types matching previous filtering parameters will be candidates for substitution).

repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind target_group_kinds = 2;

Parameter
NameDescription
valueRestoreConfig.GroupKind
Returns
TypeDescription
RestoreConfig.SubstitutionRule.Builder

addTargetGroupKinds(RestoreConfig.GroupKind.Builder builderForValue)

public RestoreConfig.SubstitutionRule.Builder addTargetGroupKinds(RestoreConfig.GroupKind.Builder builderForValue)

(Filtering parameter) Any resource subject to substitution must belong to one of the listed "types". If this field is not provided, no type filtering will be performed (all resources of all types matching previous filtering parameters will be candidates for substitution).

repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind target_group_kinds = 2;

Parameter
NameDescription
builderForValueRestoreConfig.GroupKind.Builder
Returns
TypeDescription
RestoreConfig.SubstitutionRule.Builder

addTargetGroupKinds(int index, RestoreConfig.GroupKind value)

public RestoreConfig.SubstitutionRule.Builder addTargetGroupKinds(int index, RestoreConfig.GroupKind value)

(Filtering parameter) Any resource subject to substitution must belong to one of the listed "types". If this field is not provided, no type filtering will be performed (all resources of all types matching previous filtering parameters will be candidates for substitution).

repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind target_group_kinds = 2;

Parameters
NameDescription
indexint
valueRestoreConfig.GroupKind
Returns
TypeDescription
RestoreConfig.SubstitutionRule.Builder

addTargetGroupKinds(int index, RestoreConfig.GroupKind.Builder builderForValue)

public RestoreConfig.SubstitutionRule.Builder addTargetGroupKinds(int index, RestoreConfig.GroupKind.Builder builderForValue)

(Filtering parameter) Any resource subject to substitution must belong to one of the listed "types". If this field is not provided, no type filtering will be performed (all resources of all types matching previous filtering parameters will be candidates for substitution).

repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind target_group_kinds = 2;

Parameters
NameDescription
indexint
builderForValueRestoreConfig.GroupKind.Builder
Returns
TypeDescription
RestoreConfig.SubstitutionRule.Builder

addTargetGroupKindsBuilder()

public RestoreConfig.GroupKind.Builder addTargetGroupKindsBuilder()

(Filtering parameter) Any resource subject to substitution must belong to one of the listed "types". If this field is not provided, no type filtering will be performed (all resources of all types matching previous filtering parameters will be candidates for substitution).

repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind target_group_kinds = 2;

Returns
TypeDescription
RestoreConfig.GroupKind.Builder

addTargetGroupKindsBuilder(int index)

public RestoreConfig.GroupKind.Builder addTargetGroupKindsBuilder(int index)

(Filtering parameter) Any resource subject to substitution must belong to one of the listed "types". If this field is not provided, no type filtering will be performed (all resources of all types matching previous filtering parameters will be candidates for substitution).

repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind target_group_kinds = 2;

Parameter
NameDescription
indexint
Returns
TypeDescription
RestoreConfig.GroupKind.Builder

addTargetNamespaces(String value)

public RestoreConfig.SubstitutionRule.Builder addTargetNamespaces(String value)

(Filtering parameter) Any resource subject to substitution must be contained within one of the listed Kubernetes Namespace in the Backup. If this field is not provided, no namespace filtering will be performed (all resources in all Namespaces, including all cluster-scoped resources, will be candidates for substitution). To mix cluster-scoped and namespaced resources in the same rule, use an empty string ("") as one of the target namespaces.

repeated string target_namespaces = 1;

Parameter
NameDescription
valueString

The targetNamespaces to add.

Returns
TypeDescription
RestoreConfig.SubstitutionRule.Builder

This builder for chaining.

addTargetNamespacesBytes(ByteString value)

public RestoreConfig.SubstitutionRule.Builder addTargetNamespacesBytes(ByteString value)

(Filtering parameter) Any resource subject to substitution must be contained within one of the listed Kubernetes Namespace in the Backup. If this field is not provided, no namespace filtering will be performed (all resources in all Namespaces, including all cluster-scoped resources, will be candidates for substitution). To mix cluster-scoped and namespaced resources in the same rule, use an empty string ("") as one of the target namespaces.

repeated string target_namespaces = 1;

Parameter
NameDescription
valueByteString

The bytes of the targetNamespaces to add.

Returns
TypeDescription
RestoreConfig.SubstitutionRule.Builder

This builder for chaining.

build()

public RestoreConfig.SubstitutionRule build()
Returns
TypeDescription
RestoreConfig.SubstitutionRule

buildPartial()

public RestoreConfig.SubstitutionRule buildPartial()
Returns
TypeDescription
RestoreConfig.SubstitutionRule

clear()

public RestoreConfig.SubstitutionRule.Builder clear()
Returns
TypeDescription
RestoreConfig.SubstitutionRule.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public RestoreConfig.SubstitutionRule.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
RestoreConfig.SubstitutionRule.Builder
Overrides

clearNewValue()

public RestoreConfig.SubstitutionRule.Builder clearNewValue()

This is the new value to set for any fields that pass the filtering and selection criteria. To remove a value from a Kubernetes resource, either leave this field unspecified, or set it to the empty string ("").

string new_value = 5;

Returns
TypeDescription
RestoreConfig.SubstitutionRule.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public RestoreConfig.SubstitutionRule.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
RestoreConfig.SubstitutionRule.Builder
Overrides

clearOriginalValuePattern()

public RestoreConfig.SubstitutionRule.Builder clearOriginalValuePattern()

(Filtering parameter) This is a regular expression that is compared against the fields matched by the target_json_path expression (and must also have passed the previous filters). Substitution will not be performed against fields whose value does not match this expression. If this field is NOT specified, then ALL fields matched by the target_json_path expression will undergo substitution. Note that an empty (e.g., "", rather than unspecified) value for this field will only match empty fields.

string original_value_pattern = 4;

Returns
TypeDescription
RestoreConfig.SubstitutionRule.Builder

This builder for chaining.

clearTargetGroupKinds()

public RestoreConfig.SubstitutionRule.Builder clearTargetGroupKinds()

(Filtering parameter) Any resource subject to substitution must belong to one of the listed "types". If this field is not provided, no type filtering will be performed (all resources of all types matching previous filtering parameters will be candidates for substitution).

repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind target_group_kinds = 2;

Returns
TypeDescription
RestoreConfig.SubstitutionRule.Builder

clearTargetJsonPath()

public RestoreConfig.SubstitutionRule.Builder clearTargetJsonPath()

Required. This is a JSONPath expression that matches specific fields of candidate resources and it operates as both a filtering parameter (resources that are not matched with this expression will not be candidates for substitution) as well as a field identifier (identifies exactly which fields out of the candidate resources will be modified).

string target_json_path = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
RestoreConfig.SubstitutionRule.Builder

This builder for chaining.

clearTargetNamespaces()

public RestoreConfig.SubstitutionRule.Builder clearTargetNamespaces()

(Filtering parameter) Any resource subject to substitution must be contained within one of the listed Kubernetes Namespace in the Backup. If this field is not provided, no namespace filtering will be performed (all resources in all Namespaces, including all cluster-scoped resources, will be candidates for substitution). To mix cluster-scoped and namespaced resources in the same rule, use an empty string ("") as one of the target namespaces.

repeated string target_namespaces = 1;

Returns
TypeDescription
RestoreConfig.SubstitutionRule.Builder

This builder for chaining.

clone()

public RestoreConfig.SubstitutionRule.Builder clone()
Returns
TypeDescription
RestoreConfig.SubstitutionRule.Builder
Overrides

getDefaultInstanceForType()

public RestoreConfig.SubstitutionRule getDefaultInstanceForType()
Returns
TypeDescription
RestoreConfig.SubstitutionRule

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getNewValue()

public String getNewValue()

This is the new value to set for any fields that pass the filtering and selection criteria. To remove a value from a Kubernetes resource, either leave this field unspecified, or set it to the empty string ("").

string new_value = 5;

Returns
TypeDescription
String

The newValue.

getNewValueBytes()

public ByteString getNewValueBytes()

This is the new value to set for any fields that pass the filtering and selection criteria. To remove a value from a Kubernetes resource, either leave this field unspecified, or set it to the empty string ("").

string new_value = 5;

Returns
TypeDescription
ByteString

The bytes for newValue.

getOriginalValuePattern()

public String getOriginalValuePattern()

(Filtering parameter) This is a regular expression that is compared against the fields matched by the target_json_path expression (and must also have passed the previous filters). Substitution will not be performed against fields whose value does not match this expression. If this field is NOT specified, then ALL fields matched by the target_json_path expression will undergo substitution. Note that an empty (e.g., "", rather than unspecified) value for this field will only match empty fields.

string original_value_pattern = 4;

Returns
TypeDescription
String

The originalValuePattern.

getOriginalValuePatternBytes()

public ByteString getOriginalValuePatternBytes()

(Filtering parameter) This is a regular expression that is compared against the fields matched by the target_json_path expression (and must also have passed the previous filters). Substitution will not be performed against fields whose value does not match this expression. If this field is NOT specified, then ALL fields matched by the target_json_path expression will undergo substitution. Note that an empty (e.g., "", rather than unspecified) value for this field will only match empty fields.

string original_value_pattern = 4;

Returns
TypeDescription
ByteString

The bytes for originalValuePattern.

getTargetGroupKinds(int index)

public RestoreConfig.GroupKind getTargetGroupKinds(int index)

(Filtering parameter) Any resource subject to substitution must belong to one of the listed "types". If this field is not provided, no type filtering will be performed (all resources of all types matching previous filtering parameters will be candidates for substitution).

repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind target_group_kinds = 2;

Parameter
NameDescription
indexint
Returns
TypeDescription
RestoreConfig.GroupKind

getTargetGroupKindsBuilder(int index)

public RestoreConfig.GroupKind.Builder getTargetGroupKindsBuilder(int index)

(Filtering parameter) Any resource subject to substitution must belong to one of the listed "types". If this field is not provided, no type filtering will be performed (all resources of all types matching previous filtering parameters will be candidates for substitution).

repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind target_group_kinds = 2;

Parameter
NameDescription
indexint
Returns
TypeDescription
RestoreConfig.GroupKind.Builder

getTargetGroupKindsBuilderList()

public List<RestoreConfig.GroupKind.Builder> getTargetGroupKindsBuilderList()

(Filtering parameter) Any resource subject to substitution must belong to one of the listed "types". If this field is not provided, no type filtering will be performed (all resources of all types matching previous filtering parameters will be candidates for substitution).

repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind target_group_kinds = 2;

Returns
TypeDescription
List<Builder>

getTargetGroupKindsCount()

public int getTargetGroupKindsCount()

(Filtering parameter) Any resource subject to substitution must belong to one of the listed "types". If this field is not provided, no type filtering will be performed (all resources of all types matching previous filtering parameters will be candidates for substitution).

repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind target_group_kinds = 2;

Returns
TypeDescription
int

getTargetGroupKindsList()

public List<RestoreConfig.GroupKind> getTargetGroupKindsList()

(Filtering parameter) Any resource subject to substitution must belong to one of the listed "types". If this field is not provided, no type filtering will be performed (all resources of all types matching previous filtering parameters will be candidates for substitution).

repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind target_group_kinds = 2;

Returns
TypeDescription
List<GroupKind>

getTargetGroupKindsOrBuilder(int index)

public RestoreConfig.GroupKindOrBuilder getTargetGroupKindsOrBuilder(int index)

(Filtering parameter) Any resource subject to substitution must belong to one of the listed "types". If this field is not provided, no type filtering will be performed (all resources of all types matching previous filtering parameters will be candidates for substitution).

repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind target_group_kinds = 2;

Parameter
NameDescription
indexint
Returns
TypeDescription
RestoreConfig.GroupKindOrBuilder

getTargetGroupKindsOrBuilderList()

public List<? extends RestoreConfig.GroupKindOrBuilder> getTargetGroupKindsOrBuilderList()

(Filtering parameter) Any resource subject to substitution must belong to one of the listed "types". If this field is not provided, no type filtering will be performed (all resources of all types matching previous filtering parameters will be candidates for substitution).

repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind target_group_kinds = 2;

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

getTargetJsonPath()

public String getTargetJsonPath()

Required. This is a JSONPath expression that matches specific fields of candidate resources and it operates as both a filtering parameter (resources that are not matched with this expression will not be candidates for substitution) as well as a field identifier (identifies exactly which fields out of the candidate resources will be modified).

string target_json_path = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
String

The targetJsonPath.

getTargetJsonPathBytes()

public ByteString getTargetJsonPathBytes()

Required. This is a JSONPath expression that matches specific fields of candidate resources and it operates as both a filtering parameter (resources that are not matched with this expression will not be candidates for substitution) as well as a field identifier (identifies exactly which fields out of the candidate resources will be modified).

string target_json_path = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ByteString

The bytes for targetJsonPath.

getTargetNamespaces(int index)

public String getTargetNamespaces(int index)

(Filtering parameter) Any resource subject to substitution must be contained within one of the listed Kubernetes Namespace in the Backup. If this field is not provided, no namespace filtering will be performed (all resources in all Namespaces, including all cluster-scoped resources, will be candidates for substitution). To mix cluster-scoped and namespaced resources in the same rule, use an empty string ("") as one of the target namespaces.

repeated string target_namespaces = 1;

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
String

The targetNamespaces at the given index.

getTargetNamespacesBytes(int index)

public ByteString getTargetNamespacesBytes(int index)

(Filtering parameter) Any resource subject to substitution must be contained within one of the listed Kubernetes Namespace in the Backup. If this field is not provided, no namespace filtering will be performed (all resources in all Namespaces, including all cluster-scoped resources, will be candidates for substitution). To mix cluster-scoped and namespaced resources in the same rule, use an empty string ("") as one of the target namespaces.

repeated string target_namespaces = 1;

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
ByteString

The bytes of the targetNamespaces at the given index.

getTargetNamespacesCount()

public int getTargetNamespacesCount()

(Filtering parameter) Any resource subject to substitution must be contained within one of the listed Kubernetes Namespace in the Backup. If this field is not provided, no namespace filtering will be performed (all resources in all Namespaces, including all cluster-scoped resources, will be candidates for substitution). To mix cluster-scoped and namespaced resources in the same rule, use an empty string ("") as one of the target namespaces.

repeated string target_namespaces = 1;

Returns
TypeDescription
int

The count of targetNamespaces.

getTargetNamespacesList()

public ProtocolStringList getTargetNamespacesList()

(Filtering parameter) Any resource subject to substitution must be contained within one of the listed Kubernetes Namespace in the Backup. If this field is not provided, no namespace filtering will be performed (all resources in all Namespaces, including all cluster-scoped resources, will be candidates for substitution). To mix cluster-scoped and namespaced resources in the same rule, use an empty string ("") as one of the target namespaces.

repeated string target_namespaces = 1;

Returns
TypeDescription
ProtocolStringList

A list containing the targetNamespaces.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(RestoreConfig.SubstitutionRule other)

public RestoreConfig.SubstitutionRule.Builder mergeFrom(RestoreConfig.SubstitutionRule other)
Parameter
NameDescription
otherRestoreConfig.SubstitutionRule
Returns
TypeDescription
RestoreConfig.SubstitutionRule.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public RestoreConfig.SubstitutionRule.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
RestoreConfig.SubstitutionRule.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public RestoreConfig.SubstitutionRule.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
RestoreConfig.SubstitutionRule.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final RestoreConfig.SubstitutionRule.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
RestoreConfig.SubstitutionRule.Builder
Overrides

removeTargetGroupKinds(int index)

public RestoreConfig.SubstitutionRule.Builder removeTargetGroupKinds(int index)

(Filtering parameter) Any resource subject to substitution must belong to one of the listed "types". If this field is not provided, no type filtering will be performed (all resources of all types matching previous filtering parameters will be candidates for substitution).

repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind target_group_kinds = 2;

Parameter
NameDescription
indexint
Returns
TypeDescription
RestoreConfig.SubstitutionRule.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public RestoreConfig.SubstitutionRule.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
RestoreConfig.SubstitutionRule.Builder
Overrides

setNewValue(String value)

public RestoreConfig.SubstitutionRule.Builder setNewValue(String value)

This is the new value to set for any fields that pass the filtering and selection criteria. To remove a value from a Kubernetes resource, either leave this field unspecified, or set it to the empty string ("").

string new_value = 5;

Parameter
NameDescription
valueString

The newValue to set.

Returns
TypeDescription
RestoreConfig.SubstitutionRule.Builder

This builder for chaining.

setNewValueBytes(ByteString value)

public RestoreConfig.SubstitutionRule.Builder setNewValueBytes(ByteString value)

This is the new value to set for any fields that pass the filtering and selection criteria. To remove a value from a Kubernetes resource, either leave this field unspecified, or set it to the empty string ("").

string new_value = 5;

Parameter
NameDescription
valueByteString

The bytes for newValue to set.

Returns
TypeDescription
RestoreConfig.SubstitutionRule.Builder

This builder for chaining.

setOriginalValuePattern(String value)

public RestoreConfig.SubstitutionRule.Builder setOriginalValuePattern(String value)

(Filtering parameter) This is a regular expression that is compared against the fields matched by the target_json_path expression (and must also have passed the previous filters). Substitution will not be performed against fields whose value does not match this expression. If this field is NOT specified, then ALL fields matched by the target_json_path expression will undergo substitution. Note that an empty (e.g., "", rather than unspecified) value for this field will only match empty fields.

string original_value_pattern = 4;

Parameter
NameDescription
valueString

The originalValuePattern to set.

Returns
TypeDescription
RestoreConfig.SubstitutionRule.Builder

This builder for chaining.

setOriginalValuePatternBytes(ByteString value)

public RestoreConfig.SubstitutionRule.Builder setOriginalValuePatternBytes(ByteString value)

(Filtering parameter) This is a regular expression that is compared against the fields matched by the target_json_path expression (and must also have passed the previous filters). Substitution will not be performed against fields whose value does not match this expression. If this field is NOT specified, then ALL fields matched by the target_json_path expression will undergo substitution. Note that an empty (e.g., "", rather than unspecified) value for this field will only match empty fields.

string original_value_pattern = 4;

Parameter
NameDescription
valueByteString

The bytes for originalValuePattern to set.

Returns
TypeDescription
RestoreConfig.SubstitutionRule.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public RestoreConfig.SubstitutionRule.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
RestoreConfig.SubstitutionRule.Builder
Overrides

setTargetGroupKinds(int index, RestoreConfig.GroupKind value)

public RestoreConfig.SubstitutionRule.Builder setTargetGroupKinds(int index, RestoreConfig.GroupKind value)

(Filtering parameter) Any resource subject to substitution must belong to one of the listed "types". If this field is not provided, no type filtering will be performed (all resources of all types matching previous filtering parameters will be candidates for substitution).

repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind target_group_kinds = 2;

Parameters
NameDescription
indexint
valueRestoreConfig.GroupKind
Returns
TypeDescription
RestoreConfig.SubstitutionRule.Builder

setTargetGroupKinds(int index, RestoreConfig.GroupKind.Builder builderForValue)

public RestoreConfig.SubstitutionRule.Builder setTargetGroupKinds(int index, RestoreConfig.GroupKind.Builder builderForValue)

(Filtering parameter) Any resource subject to substitution must belong to one of the listed "types". If this field is not provided, no type filtering will be performed (all resources of all types matching previous filtering parameters will be candidates for substitution).

repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind target_group_kinds = 2;

Parameters
NameDescription
indexint
builderForValueRestoreConfig.GroupKind.Builder
Returns
TypeDescription
RestoreConfig.SubstitutionRule.Builder

setTargetJsonPath(String value)

public RestoreConfig.SubstitutionRule.Builder setTargetJsonPath(String value)

Required. This is a JSONPath expression that matches specific fields of candidate resources and it operates as both a filtering parameter (resources that are not matched with this expression will not be candidates for substitution) as well as a field identifier (identifies exactly which fields out of the candidate resources will be modified).

string target_json_path = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueString

The targetJsonPath to set.

Returns
TypeDescription
RestoreConfig.SubstitutionRule.Builder

This builder for chaining.

setTargetJsonPathBytes(ByteString value)

public RestoreConfig.SubstitutionRule.Builder setTargetJsonPathBytes(ByteString value)

Required. This is a JSONPath expression that matches specific fields of candidate resources and it operates as both a filtering parameter (resources that are not matched with this expression will not be candidates for substitution) as well as a field identifier (identifies exactly which fields out of the candidate resources will be modified).

string target_json_path = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueByteString

The bytes for targetJsonPath to set.

Returns
TypeDescription
RestoreConfig.SubstitutionRule.Builder

This builder for chaining.

setTargetNamespaces(int index, String value)

public RestoreConfig.SubstitutionRule.Builder setTargetNamespaces(int index, String value)

(Filtering parameter) Any resource subject to substitution must be contained within one of the listed Kubernetes Namespace in the Backup. If this field is not provided, no namespace filtering will be performed (all resources in all Namespaces, including all cluster-scoped resources, will be candidates for substitution). To mix cluster-scoped and namespaced resources in the same rule, use an empty string ("") as one of the target namespaces.

repeated string target_namespaces = 1;

Parameters
NameDescription
indexint

The index to set the value at.

valueString

The targetNamespaces to set.

Returns
TypeDescription
RestoreConfig.SubstitutionRule.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final RestoreConfig.SubstitutionRule.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
RestoreConfig.SubstitutionRule.Builder
Overrides