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 ("").
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 ("").
(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.
(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.
(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).
(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).
(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).
(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).
(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).
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).
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).
(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.
(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.
The bytes of the targetNamespaces at the given index.
getTargetNamespacesCount()
publicabstractintgetTargetNamespacesCount()
(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.
(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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[],[],null,["# Interface RestoreConfig.SubstitutionRuleOrBuilder (0.16.0)\n\nVersion latestkeyboard_arrow_down\n\n- [0.16.0 (latest)](/java/docs/reference/google-cloudevent-types/latest/com.google.events.cloud.gkebackup.v1.RestoreConfig.SubstitutionRuleOrBuilder)\n- [0.15.0](/java/docs/reference/google-cloudevent-types/0.15.0/com.google.events.cloud.gkebackup.v1.RestoreConfig.SubstitutionRuleOrBuilder)\n- [0.14.1](/java/docs/reference/google-cloudevent-types/0.14.1/com.google.events.cloud.gkebackup.v1.RestoreConfig.SubstitutionRuleOrBuilder) \n\n public static interface RestoreConfig.SubstitutionRuleOrBuilder extends MessageOrBuilder\n\nImplements\n----------\n\n[MessageOrBuilder](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.MessageOrBuilder.html)\n\nMethods\n-------\n\n### getNewValue()\n\n public abstract String getNewValue()\n\nThis is the new value to set for any fields that pass the filtering and\nselection criteria. To remove a value from a Kubernetes resource, either\nleave this field unspecified, or set it to the empty string (\"\").\n\n`string new_value = 5;`\n\n### getNewValueBytes()\n\n public abstract ByteString getNewValueBytes()\n\nThis is the new value to set for any fields that pass the filtering and\nselection criteria. To remove a value from a Kubernetes resource, either\nleave this field unspecified, or set it to the empty string (\"\").\n\n`string new_value = 5;`\n\n### getOriginalValuePattern()\n\n public abstract String getOriginalValuePattern()\n\n(Filtering parameter) This is a [regular expression](https://en.wikipedia.org/wiki/Regular_expression)\nthat is compared against the fields matched by the target_json_path\nexpression (and must also have passed the previous filters).\nSubstitution will not be performed against fields whose\nvalue does not match this expression. If this field is NOT specified,\nthen ALL fields matched by the target_json_path expression will undergo\nsubstitution. Note that an empty (e.g., \"\", rather than unspecified)\nvalue for this field will only match empty fields.\n\n`string original_value_pattern = 4;`\n\n### getOriginalValuePatternBytes()\n\n public abstract ByteString getOriginalValuePatternBytes()\n\n(Filtering parameter) This is a [regular expression](https://en.wikipedia.org/wiki/Regular_expression)\nthat is compared against the fields matched by the target_json_path\nexpression (and must also have passed the previous filters).\nSubstitution will not be performed against fields whose\nvalue does not match this expression. If this field is NOT specified,\nthen ALL fields matched by the target_json_path expression will undergo\nsubstitution. Note that an empty (e.g., \"\", rather than unspecified)\nvalue for this field will only match empty fields.\n\n`string original_value_pattern = 4;`\n\n### getTargetGroupKinds(int index)\n\n public abstract RestoreConfig.GroupKind getTargetGroupKinds(int index)\n\n(Filtering parameter) Any resource subject to substitution must belong to\none of the listed \"types\".\nIf this field is not provided, no type filtering will be performed (all\nresources of all types matching previous filtering parameters will be\ncandidates for substitution).\n\n`\nrepeated .google.events.cloud.gkebackup.v1.RestoreConfig.GroupKind target_group_kinds = 2;\n`\n\n### getTargetGroupKindsCount()\n\n public abstract int getTargetGroupKindsCount()\n\n(Filtering parameter) Any resource subject to substitution must belong to\none of the listed \"types\".\nIf this field is not provided, no type filtering will be performed (all\nresources of all types matching previous filtering parameters will be\ncandidates for substitution).\n\n`\nrepeated .google.events.cloud.gkebackup.v1.RestoreConfig.GroupKind target_group_kinds = 2;\n`\n\n### getTargetGroupKindsList()\n\n public abstract List\u003cRestoreConfig.GroupKind\u003e getTargetGroupKindsList()\n\n(Filtering parameter) Any resource subject to substitution must belong to\none of the listed \"types\".\nIf this field is not provided, no type filtering will be performed (all\nresources of all types matching previous filtering parameters will be\ncandidates for substitution).\n\n`\nrepeated .google.events.cloud.gkebackup.v1.RestoreConfig.GroupKind target_group_kinds = 2;\n`\n\n### getTargetGroupKindsOrBuilder(int index)\n\n public abstract RestoreConfig.GroupKindOrBuilder getTargetGroupKindsOrBuilder(int index)\n\n(Filtering parameter) Any resource subject to substitution must belong to\none of the listed \"types\".\nIf this field is not provided, no type filtering will be performed (all\nresources of all types matching previous filtering parameters will be\ncandidates for substitution).\n\n`\nrepeated .google.events.cloud.gkebackup.v1.RestoreConfig.GroupKind target_group_kinds = 2;\n`\n\n### getTargetGroupKindsOrBuilderList()\n\n public abstract List\u003c? extends RestoreConfig.GroupKindOrBuilder\u003e getTargetGroupKindsOrBuilderList()\n\n(Filtering parameter) Any resource subject to substitution must belong to\none of the listed \"types\".\nIf this field is not provided, no type filtering will be performed (all\nresources of all types matching previous filtering parameters will be\ncandidates for substitution).\n\n`\nrepeated .google.events.cloud.gkebackup.v1.RestoreConfig.GroupKind target_group_kinds = 2;\n`\n\n### getTargetJsonPath()\n\n public abstract String getTargetJsonPath()\n\nRequired. This is a [JSONPath](https://kubernetes.io/docs/reference/kubectl/jsonpath/)\nexpression that matches specific fields of candidate\nresources and it operates as both a filtering parameter (resources that\nare not matched with this expression will not be candidates for\nsubstitution) as well as a field identifier (identifies exactly which\nfields out of the candidate resources will be modified).\n\n`string target_json_path = 3;`\n\n### getTargetJsonPathBytes()\n\n public abstract ByteString getTargetJsonPathBytes()\n\nRequired. This is a [JSONPath](https://kubernetes.io/docs/reference/kubectl/jsonpath/)\nexpression that matches specific fields of candidate\nresources and it operates as both a filtering parameter (resources that\nare not matched with this expression will not be candidates for\nsubstitution) as well as a field identifier (identifies exactly which\nfields out of the candidate resources will be modified).\n\n`string target_json_path = 3;`\n\n### getTargetNamespaces(int index)\n\n public abstract String getTargetNamespaces(int index)\n\n(Filtering parameter) Any resource subject to substitution must be\ncontained within one of the listed Kubernetes Namespace in the Backup.\nIf this field is not provided, no namespace filtering will be performed\n(all resources in all Namespaces, including all cluster-scoped resources,\nwill be candidates for substitution).\nTo mix cluster-scoped and namespaced resources in the same rule, use an\nempty string (\"\") as one of the target namespaces.\n\n`repeated string target_namespaces = 1;`\n\n### getTargetNamespacesBytes(int index)\n\n public abstract ByteString getTargetNamespacesBytes(int index)\n\n(Filtering parameter) Any resource subject to substitution must be\ncontained within one of the listed Kubernetes Namespace in the Backup.\nIf this field is not provided, no namespace filtering will be performed\n(all resources in all Namespaces, including all cluster-scoped resources,\nwill be candidates for substitution).\nTo mix cluster-scoped and namespaced resources in the same rule, use an\nempty string (\"\") as one of the target namespaces.\n\n`repeated string target_namespaces = 1;`\n\n### getTargetNamespacesCount()\n\n public abstract int getTargetNamespacesCount()\n\n(Filtering parameter) Any resource subject to substitution must be\ncontained within one of the listed Kubernetes Namespace in the Backup.\nIf this field is not provided, no namespace filtering will be performed\n(all resources in all Namespaces, including all cluster-scoped resources,\nwill be candidates for substitution).\nTo mix cluster-scoped and namespaced resources in the same rule, use an\nempty string (\"\") as one of the target namespaces.\n\n`repeated string target_namespaces = 1;`\n\n### getTargetNamespacesList()\n\n public abstract List\u003cString\u003e getTargetNamespacesList()\n\n(Filtering parameter) Any resource subject to substitution must be\ncontained within one of the listed Kubernetes Namespace in the Backup.\nIf this field is not provided, no namespace filtering will be performed\n(all resources in all Namespaces, including all cluster-scoped resources,\nwill be candidates for substitution).\nTo mix cluster-scoped and namespaced resources in the same rule, use an\nempty string (\"\") as one of the target namespaces.\n\n`repeated string target_namespaces = 1;`"]]