Package com.google.cloud.gkebackup.v1
Class RestoreConfig.SubstitutionRule.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<RestoreConfig.SubstitutionRule.Builder>
com.google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule.Builder
- All Implemented Interfaces:
RestoreConfig.SubstitutionRuleOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- RestoreConfig.SubstitutionRule
public static final class RestoreConfig.SubstitutionRule.Builder
extends com.google.protobuf.GeneratedMessage.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-
Method Summary
Modifier and TypeMethodDescriptionaddAllTargetGroupKinds(Iterable<? extends RestoreConfig.GroupKind> values) Optional.addAllTargetNamespaces(Iterable<String> values) Optional.addTargetGroupKinds(int index, RestoreConfig.GroupKind value) Optional.addTargetGroupKinds(int index, RestoreConfig.GroupKind.Builder builderForValue) Optional.Optional.addTargetGroupKinds(RestoreConfig.GroupKind.Builder builderForValue) Optional.Optional.addTargetGroupKindsBuilder(int index) Optional.addTargetNamespaces(String value) Optional.addTargetNamespacesBytes(com.google.protobuf.ByteString value) Optional.build()clear()Optional.Optional.Optional.Required.Optional.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorOptional.com.google.protobuf.ByteStringOptional.Optional.com.google.protobuf.ByteStringOptional.getTargetGroupKinds(int index) Optional.getTargetGroupKindsBuilder(int index) Optional.Optional.intOptional.Optional.getTargetGroupKindsOrBuilder(int index) Optional.List<? extends RestoreConfig.GroupKindOrBuilder>Optional.Required.com.google.protobuf.ByteStringRequired.getTargetNamespaces(int index) Optional.com.google.protobuf.ByteStringgetTargetNamespacesBytes(int index) Optional.intOptional.com.google.protobuf.ProtocolStringListOptional.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) removeTargetGroupKinds(int index) Optional.setNewValue(String value) Optional.setNewValueBytes(com.google.protobuf.ByteString value) Optional.setOriginalValuePattern(String value) Optional.setOriginalValuePatternBytes(com.google.protobuf.ByteString value) Optional.setTargetGroupKinds(int index, RestoreConfig.GroupKind value) Optional.setTargetGroupKinds(int index, RestoreConfig.GroupKind.Builder builderForValue) Optional.setTargetJsonPath(String value) Required.setTargetJsonPathBytes(com.google.protobuf.ByteString value) Required.setTargetNamespaces(int index, String value) Optional.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<RestoreConfig.SubstitutionRule.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<RestoreConfig.SubstitutionRule.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<RestoreConfig.SubstitutionRule.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<RestoreConfig.SubstitutionRule.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<RestoreConfig.SubstitutionRule.Builder>
-
mergeFrom
public RestoreConfig.SubstitutionRule.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<RestoreConfig.SubstitutionRule.Builder>- Throws:
IOException
-
getTargetNamespacesList
public com.google.protobuf.ProtocolStringList getTargetNamespacesList()Optional. (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 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getTargetNamespacesListin interfaceRestoreConfig.SubstitutionRuleOrBuilder- Returns:
- A list containing the targetNamespaces.
-
getTargetNamespacesCount
public int getTargetNamespacesCount()Optional. (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 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getTargetNamespacesCountin interfaceRestoreConfig.SubstitutionRuleOrBuilder- Returns:
- The count of targetNamespaces.
-
getTargetNamespaces
Optional. (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 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getTargetNamespacesin interfaceRestoreConfig.SubstitutionRuleOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The targetNamespaces at the given index.
-
getTargetNamespacesBytes
public com.google.protobuf.ByteString getTargetNamespacesBytes(int index) Optional. (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 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getTargetNamespacesBytesin interfaceRestoreConfig.SubstitutionRuleOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the targetNamespaces at the given index.
-
setTargetNamespaces
Optional. (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 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
index- The index to set the value at.value- The targetNamespaces to set.- Returns:
- This builder for chaining.
-
addTargetNamespaces
Optional. (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 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The targetNamespaces to add.- Returns:
- This builder for chaining.
-
addAllTargetNamespaces
Optional. (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 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
values- The targetNamespaces to add.- Returns:
- This builder for chaining.
-
clearTargetNamespaces
Optional. (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 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
addTargetNamespacesBytes
public RestoreConfig.SubstitutionRule.Builder addTargetNamespacesBytes(com.google.protobuf.ByteString value) Optional. (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 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The bytes of the targetNamespaces to add.- Returns:
- This builder for chaining.
-
getTargetGroupKindsList
Optional. (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 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getTargetGroupKindsListin interfaceRestoreConfig.SubstitutionRuleOrBuilder
-
getTargetGroupKindsCount
public int getTargetGroupKindsCount()Optional. (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 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getTargetGroupKindsCountin interfaceRestoreConfig.SubstitutionRuleOrBuilder
-
getTargetGroupKinds
Optional. (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 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getTargetGroupKindsin interfaceRestoreConfig.SubstitutionRuleOrBuilder
-
setTargetGroupKinds
public RestoreConfig.SubstitutionRule.Builder setTargetGroupKinds(int index, RestoreConfig.GroupKind value) Optional. (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 [(.google.api.field_behavior) = OPTIONAL]; -
setTargetGroupKinds
public RestoreConfig.SubstitutionRule.Builder setTargetGroupKinds(int index, RestoreConfig.GroupKind.Builder builderForValue) Optional. (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 [(.google.api.field_behavior) = OPTIONAL]; -
addTargetGroupKinds
Optional. (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 [(.google.api.field_behavior) = OPTIONAL]; -
addTargetGroupKinds
public RestoreConfig.SubstitutionRule.Builder addTargetGroupKinds(int index, RestoreConfig.GroupKind value) Optional. (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 [(.google.api.field_behavior) = OPTIONAL]; -
addTargetGroupKinds
public RestoreConfig.SubstitutionRule.Builder addTargetGroupKinds(RestoreConfig.GroupKind.Builder builderForValue) Optional. (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 [(.google.api.field_behavior) = OPTIONAL]; -
addTargetGroupKinds
public RestoreConfig.SubstitutionRule.Builder addTargetGroupKinds(int index, RestoreConfig.GroupKind.Builder builderForValue) Optional. (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 [(.google.api.field_behavior) = OPTIONAL]; -
addAllTargetGroupKinds
public RestoreConfig.SubstitutionRule.Builder addAllTargetGroupKinds(Iterable<? extends RestoreConfig.GroupKind> values) Optional. (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 [(.google.api.field_behavior) = OPTIONAL]; -
clearTargetGroupKinds
Optional. (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 [(.google.api.field_behavior) = OPTIONAL]; -
removeTargetGroupKinds
Optional. (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 [(.google.api.field_behavior) = OPTIONAL]; -
getTargetGroupKindsBuilder
Optional. (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 [(.google.api.field_behavior) = OPTIONAL]; -
getTargetGroupKindsOrBuilder
Optional. (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 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getTargetGroupKindsOrBuilderin interfaceRestoreConfig.SubstitutionRuleOrBuilder
-
getTargetGroupKindsOrBuilderList
Optional. (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 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getTargetGroupKindsOrBuilderListin interfaceRestoreConfig.SubstitutionRuleOrBuilder
-
addTargetGroupKindsBuilder
Optional. (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 [(.google.api.field_behavior) = OPTIONAL]; -
addTargetGroupKindsBuilder
Optional. (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 [(.google.api.field_behavior) = OPTIONAL]; -
getTargetGroupKindsBuilderList
Optional. (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 [(.google.api.field_behavior) = OPTIONAL]; -
getTargetJsonPath
Required. This is a [JSONPath] (https://kubernetes.io/docs/reference/kubectl/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];- Specified by:
getTargetJsonPathin interfaceRestoreConfig.SubstitutionRuleOrBuilder- Returns:
- The targetJsonPath.
-
getTargetJsonPathBytes
public com.google.protobuf.ByteString getTargetJsonPathBytes()Required. This is a [JSONPath] (https://kubernetes.io/docs/reference/kubectl/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];- Specified by:
getTargetJsonPathBytesin interfaceRestoreConfig.SubstitutionRuleOrBuilder- Returns:
- The bytes for targetJsonPath.
-
setTargetJsonPath
Required. This is a [JSONPath] (https://kubernetes.io/docs/reference/kubectl/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];- Parameters:
value- The targetJsonPath to set.- Returns:
- This builder for chaining.
-
clearTargetJsonPath
Required. This is a [JSONPath] (https://kubernetes.io/docs/reference/kubectl/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:
- This builder for chaining.
-
setTargetJsonPathBytes
public RestoreConfig.SubstitutionRule.Builder setTargetJsonPathBytes(com.google.protobuf.ByteString value) Required. This is a [JSONPath] (https://kubernetes.io/docs/reference/kubectl/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];- Parameters:
value- The bytes for targetJsonPath to set.- Returns:
- This builder for chaining.
-
getOriginalValuePattern
Optional. (Filtering parameter) This is a [regular expression] (https://en.wikipedia.org/wiki/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 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getOriginalValuePatternin interfaceRestoreConfig.SubstitutionRuleOrBuilder- Returns:
- The originalValuePattern.
-
getOriginalValuePatternBytes
public com.google.protobuf.ByteString getOriginalValuePatternBytes()Optional. (Filtering parameter) This is a [regular expression] (https://en.wikipedia.org/wiki/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 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getOriginalValuePatternBytesin interfaceRestoreConfig.SubstitutionRuleOrBuilder- Returns:
- The bytes for originalValuePattern.
-
setOriginalValuePattern
Optional. (Filtering parameter) This is a [regular expression] (https://en.wikipedia.org/wiki/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 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The originalValuePattern to set.- Returns:
- This builder for chaining.
-
clearOriginalValuePattern
Optional. (Filtering parameter) This is a [regular expression] (https://en.wikipedia.org/wiki/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 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
setOriginalValuePatternBytes
public RestoreConfig.SubstitutionRule.Builder setOriginalValuePatternBytes(com.google.protobuf.ByteString value) Optional. (Filtering parameter) This is a [regular expression] (https://en.wikipedia.org/wiki/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 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The bytes for originalValuePattern to set.- Returns:
- This builder for chaining.
-
getNewValue
Optional. 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 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getNewValuein interfaceRestoreConfig.SubstitutionRuleOrBuilder- Returns:
- The newValue.
-
getNewValueBytes
public com.google.protobuf.ByteString getNewValueBytes()Optional. 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 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getNewValueBytesin interfaceRestoreConfig.SubstitutionRuleOrBuilder- Returns:
- The bytes for newValue.
-
setNewValue
Optional. 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 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The newValue to set.- Returns:
- This builder for chaining.
-
clearNewValue
Optional. 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 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
setNewValueBytes
public RestoreConfig.SubstitutionRule.Builder setNewValueBytes(com.google.protobuf.ByteString value) Optional. 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 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The bytes for newValue to set.- Returns:
- This builder for chaining.
-