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 Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<RestoreConfig.SubstitutionRule.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<RestoreConfig.SubstitutionRule.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<RestoreConfig.SubstitutionRule.Builder>
    • getDefaultInstanceForType

      public RestoreConfig.SubstitutionRule getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public RestoreConfig.SubstitutionRule buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public RestoreConfig.SubstitutionRule.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<RestoreConfig.SubstitutionRule.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.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:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.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:
      getTargetNamespacesList in interface RestoreConfig.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:
      getTargetNamespacesCount in interface RestoreConfig.SubstitutionRuleOrBuilder
      Returns:
      The count of targetNamespaces.
    • getTargetNamespaces

      public String getTargetNamespaces(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:
      getTargetNamespaces in interface RestoreConfig.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:
      getTargetNamespacesBytes in interface RestoreConfig.SubstitutionRuleOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the targetNamespaces at the given index.
    • setTargetNamespaces

      public RestoreConfig.SubstitutionRule.Builder setTargetNamespaces(int index, String 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:
      index - The index to set the value at.
      value - The targetNamespaces to set.
      Returns:
      This builder for chaining.
    • addTargetNamespaces

      public RestoreConfig.SubstitutionRule.Builder addTargetNamespaces(String 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 targetNamespaces to add.
      Returns:
      This builder for chaining.
    • addAllTargetNamespaces

      public RestoreConfig.SubstitutionRule.Builder addAllTargetNamespaces(Iterable<String> values)
       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

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

      public List<RestoreConfig.GroupKind> 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:
      getTargetGroupKindsList in interface RestoreConfig.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:
      getTargetGroupKindsCount in interface RestoreConfig.SubstitutionRuleOrBuilder
    • getTargetGroupKinds

      public RestoreConfig.GroupKind getTargetGroupKinds(int index)
       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:
      getTargetGroupKinds in interface RestoreConfig.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

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

      public RestoreConfig.SubstitutionRule.Builder removeTargetGroupKinds(int index)
       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

      public RestoreConfig.GroupKind.Builder getTargetGroupKindsBuilder(int index)
       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

      public RestoreConfig.GroupKindOrBuilder getTargetGroupKindsOrBuilder(int index)
       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:
      getTargetGroupKindsOrBuilder in interface RestoreConfig.SubstitutionRuleOrBuilder
    • getTargetGroupKindsOrBuilderList

      public List<? extends RestoreConfig.GroupKindOrBuilder> 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:
      getTargetGroupKindsOrBuilderList in interface RestoreConfig.SubstitutionRuleOrBuilder
    • addTargetGroupKindsBuilder

      public RestoreConfig.GroupKind.Builder 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

      public RestoreConfig.GroupKind.Builder addTargetGroupKindsBuilder(int index)
       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

      public List<RestoreConfig.GroupKind.Builder> 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

      public String 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:
      getTargetJsonPath in interface RestoreConfig.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:
      getTargetJsonPathBytes in interface RestoreConfig.SubstitutionRuleOrBuilder
      Returns:
      The bytes for targetJsonPath.
    • setTargetJsonPath

      public RestoreConfig.SubstitutionRule.Builder setTargetJsonPath(String 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 targetJsonPath to set.
      Returns:
      This builder for chaining.
    • clearTargetJsonPath

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

      public String 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:
      getOriginalValuePattern in interface RestoreConfig.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:
      getOriginalValuePatternBytes in interface RestoreConfig.SubstitutionRuleOrBuilder
      Returns:
      The bytes for originalValuePattern.
    • setOriginalValuePattern

      public RestoreConfig.SubstitutionRule.Builder setOriginalValuePattern(String 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 originalValuePattern to set.
      Returns:
      This builder for chaining.
    • clearOriginalValuePattern

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

      public String 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:
      getNewValue in interface RestoreConfig.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:
      getNewValueBytes in interface RestoreConfig.SubstitutionRuleOrBuilder
      Returns:
      The bytes for newValue.
    • setNewValue

      public RestoreConfig.SubstitutionRule.Builder setNewValue(String 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 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.