Class 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.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
    • Method Detail

      • getDescriptor

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

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.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

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

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<RestoreConfig.SubstitutionRule.Builder>
      • getTargetNamespacesList

        public com.google.protobuf.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;
        Specified by:
        getTargetNamespacesList in interface RestoreConfig.SubstitutionRuleOrBuilder
        Returns:
        A list containing the targetNamespaces.
      • 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;
        Specified by:
        getTargetNamespacesCount in interface RestoreConfig.SubstitutionRuleOrBuilder
        Returns:
        The count of targetNamespaces.
      • getTargetNamespaces

        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;
        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)
         (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;
        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)
         (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:
        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)
         (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:
        value - The targetNamespaces to add.
        Returns:
        This builder for chaining.
      • addAllTargetNamespaces

        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;
        Parameters:
        values - The targetNamespaces to add.
        Returns:
        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:
        This builder for chaining.
      • addTargetNamespacesBytes

        public RestoreConfig.SubstitutionRule.Builder addTargetNamespacesBytes​(com.google.protobuf.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;
        Parameters:
        value - The bytes of the targetNamespaces to add.
        Returns:
        This builder for chaining.
      • 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;
        Specified by:
        getTargetGroupKindsList in interface RestoreConfig.SubstitutionRuleOrBuilder
      • 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;
        Specified by:
        getTargetGroupKindsCount in interface RestoreConfig.SubstitutionRuleOrBuilder
      • getTargetGroupKinds

        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;
        Specified by:
        getTargetGroupKinds in interface RestoreConfig.SubstitutionRuleOrBuilder
      • setTargetGroupKinds

        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;
      • setTargetGroupKinds

        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;
      • addTargetGroupKinds

        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;
      • addTargetGroupKinds

        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;
      • addTargetGroupKinds

        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;
      • addTargetGroupKinds

        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;
      • addAllTargetGroupKinds

        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;
      • 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;
      • removeTargetGroupKinds

        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;
      • getTargetGroupKindsBuilder

        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;
      • getTargetGroupKindsOrBuilder

        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;
        Specified by:
        getTargetGroupKindsOrBuilder in interface RestoreConfig.SubstitutionRuleOrBuilder
      • 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;
        Specified by:
        getTargetGroupKindsOrBuilderList in interface RestoreConfig.SubstitutionRuleOrBuilder
      • 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;
      • addTargetGroupKindsBuilder

        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;
      • 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;
      • 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()
         (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;
        Specified by:
        getOriginalValuePattern in interface RestoreConfig.SubstitutionRuleOrBuilder
        Returns:
        The originalValuePattern.
      • getOriginalValuePatternBytes

        public com.google.protobuf.ByteString getOriginalValuePatternBytes()
         (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;
        Specified by:
        getOriginalValuePatternBytes in interface RestoreConfig.SubstitutionRuleOrBuilder
        Returns:
        The bytes for originalValuePattern.
      • setOriginalValuePattern

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

        public RestoreConfig.SubstitutionRule.Builder clearOriginalValuePattern()
         (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;
        Returns:
        This builder for chaining.
      • setOriginalValuePatternBytes

        public RestoreConfig.SubstitutionRule.Builder setOriginalValuePatternBytes​(com.google.protobuf.ByteString value)
         (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;
        Parameters:
        value - The bytes for originalValuePattern to set.
        Returns:
        This builder for chaining.
      • 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;
        Specified by:
        getNewValue in interface RestoreConfig.SubstitutionRuleOrBuilder
        Returns:
        The newValue.
      • getNewValueBytes

        public com.google.protobuf.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;
        Specified by:
        getNewValueBytes in interface RestoreConfig.SubstitutionRuleOrBuilder
        Returns:
        The bytes for newValue.
      • setNewValue

        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;
        Parameters:
        value - The newValue to set.
        Returns:
        This builder for chaining.
      • 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:
        This builder for chaining.
      • setNewValueBytes

        public RestoreConfig.SubstitutionRule.Builder setNewValueBytes​(com.google.protobuf.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;
        Parameters:
        value - The bytes for newValue to set.
        Returns:
        This builder for chaining.