Class RestoreConfig.TransformationRule.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<RestoreConfig.TransformationRule.Builder>
com.google.cloud.gkebackup.v1.RestoreConfig.TransformationRule.Builder
All Implemented Interfaces:
RestoreConfig.TransformationRuleOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
RestoreConfig.TransformationRule

public static final class RestoreConfig.TransformationRule.Builder extends com.google.protobuf.GeneratedMessage.Builder<RestoreConfig.TransformationRule.Builder> implements RestoreConfig.TransformationRuleOrBuilder
 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 transform) and transformation logic.
 
Protobuf type google.cloud.gkebackup.v1.RestoreConfig.TransformationRule
  • 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.TransformationRule.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.TransformationRule.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.TransformationRule.Builder>
    • getDefaultInstanceForType

      public RestoreConfig.TransformationRule 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.TransformationRule buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public RestoreConfig.TransformationRule.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.TransformationRule.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.TransformationRule.Builder>
    • mergeFrom

      public RestoreConfig.TransformationRule.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.TransformationRule.Builder>
      Throws:
      IOException
    • getFieldActionsList

      public List<RestoreConfig.TransformationRuleAction> getFieldActionsList()
       Required. A list of transformation rule actions to take against candidate
       resources. Actions are executed in order defined - this order matters, as
       they could potentially interfere with each other and the first operation
       could affect the outcome of the second operation.
       
      repeated .google.cloud.gkebackup.v1.RestoreConfig.TransformationRuleAction field_actions = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getFieldActionsList in interface RestoreConfig.TransformationRuleOrBuilder
    • getFieldActionsCount

      public int getFieldActionsCount()
       Required. A list of transformation rule actions to take against candidate
       resources. Actions are executed in order defined - this order matters, as
       they could potentially interfere with each other and the first operation
       could affect the outcome of the second operation.
       
      repeated .google.cloud.gkebackup.v1.RestoreConfig.TransformationRuleAction field_actions = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getFieldActionsCount in interface RestoreConfig.TransformationRuleOrBuilder
    • getFieldActions

      public RestoreConfig.TransformationRuleAction getFieldActions(int index)
       Required. A list of transformation rule actions to take against candidate
       resources. Actions are executed in order defined - this order matters, as
       they could potentially interfere with each other and the first operation
       could affect the outcome of the second operation.
       
      repeated .google.cloud.gkebackup.v1.RestoreConfig.TransformationRuleAction field_actions = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getFieldActions in interface RestoreConfig.TransformationRuleOrBuilder
    • setFieldActions

       Required. A list of transformation rule actions to take against candidate
       resources. Actions are executed in order defined - this order matters, as
       they could potentially interfere with each other and the first operation
       could affect the outcome of the second operation.
       
      repeated .google.cloud.gkebackup.v1.RestoreConfig.TransformationRuleAction field_actions = 1 [(.google.api.field_behavior) = REQUIRED];
    • setFieldActions

       Required. A list of transformation rule actions to take against candidate
       resources. Actions are executed in order defined - this order matters, as
       they could potentially interfere with each other and the first operation
       could affect the outcome of the second operation.
       
      repeated .google.cloud.gkebackup.v1.RestoreConfig.TransformationRuleAction field_actions = 1 [(.google.api.field_behavior) = REQUIRED];
    • addFieldActions

       Required. A list of transformation rule actions to take against candidate
       resources. Actions are executed in order defined - this order matters, as
       they could potentially interfere with each other and the first operation
       could affect the outcome of the second operation.
       
      repeated .google.cloud.gkebackup.v1.RestoreConfig.TransformationRuleAction field_actions = 1 [(.google.api.field_behavior) = REQUIRED];
    • addFieldActions

       Required. A list of transformation rule actions to take against candidate
       resources. Actions are executed in order defined - this order matters, as
       they could potentially interfere with each other and the first operation
       could affect the outcome of the second operation.
       
      repeated .google.cloud.gkebackup.v1.RestoreConfig.TransformationRuleAction field_actions = 1 [(.google.api.field_behavior) = REQUIRED];
    • addFieldActions

       Required. A list of transformation rule actions to take against candidate
       resources. Actions are executed in order defined - this order matters, as
       they could potentially interfere with each other and the first operation
       could affect the outcome of the second operation.
       
      repeated .google.cloud.gkebackup.v1.RestoreConfig.TransformationRuleAction field_actions = 1 [(.google.api.field_behavior) = REQUIRED];
    • addFieldActions

       Required. A list of transformation rule actions to take against candidate
       resources. Actions are executed in order defined - this order matters, as
       they could potentially interfere with each other and the first operation
       could affect the outcome of the second operation.
       
      repeated .google.cloud.gkebackup.v1.RestoreConfig.TransformationRuleAction field_actions = 1 [(.google.api.field_behavior) = REQUIRED];
    • addAllFieldActions

       Required. A list of transformation rule actions to take against candidate
       resources. Actions are executed in order defined - this order matters, as
       they could potentially interfere with each other and the first operation
       could affect the outcome of the second operation.
       
      repeated .google.cloud.gkebackup.v1.RestoreConfig.TransformationRuleAction field_actions = 1 [(.google.api.field_behavior) = REQUIRED];
    • clearFieldActions

      public RestoreConfig.TransformationRule.Builder clearFieldActions()
       Required. A list of transformation rule actions to take against candidate
       resources. Actions are executed in order defined - this order matters, as
       they could potentially interfere with each other and the first operation
       could affect the outcome of the second operation.
       
      repeated .google.cloud.gkebackup.v1.RestoreConfig.TransformationRuleAction field_actions = 1 [(.google.api.field_behavior) = REQUIRED];
    • removeFieldActions

      public RestoreConfig.TransformationRule.Builder removeFieldActions(int index)
       Required. A list of transformation rule actions to take against candidate
       resources. Actions are executed in order defined - this order matters, as
       they could potentially interfere with each other and the first operation
       could affect the outcome of the second operation.
       
      repeated .google.cloud.gkebackup.v1.RestoreConfig.TransformationRuleAction field_actions = 1 [(.google.api.field_behavior) = REQUIRED];
    • getFieldActionsBuilder

      public RestoreConfig.TransformationRuleAction.Builder getFieldActionsBuilder(int index)
       Required. A list of transformation rule actions to take against candidate
       resources. Actions are executed in order defined - this order matters, as
       they could potentially interfere with each other and the first operation
       could affect the outcome of the second operation.
       
      repeated .google.cloud.gkebackup.v1.RestoreConfig.TransformationRuleAction field_actions = 1 [(.google.api.field_behavior) = REQUIRED];
    • getFieldActionsOrBuilder

      public RestoreConfig.TransformationRuleActionOrBuilder getFieldActionsOrBuilder(int index)
       Required. A list of transformation rule actions to take against candidate
       resources. Actions are executed in order defined - this order matters, as
       they could potentially interfere with each other and the first operation
       could affect the outcome of the second operation.
       
      repeated .google.cloud.gkebackup.v1.RestoreConfig.TransformationRuleAction field_actions = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getFieldActionsOrBuilder in interface RestoreConfig.TransformationRuleOrBuilder
    • getFieldActionsOrBuilderList

      public List<? extends RestoreConfig.TransformationRuleActionOrBuilder> getFieldActionsOrBuilderList()
       Required. A list of transformation rule actions to take against candidate
       resources. Actions are executed in order defined - this order matters, as
       they could potentially interfere with each other and the first operation
       could affect the outcome of the second operation.
       
      repeated .google.cloud.gkebackup.v1.RestoreConfig.TransformationRuleAction field_actions = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getFieldActionsOrBuilderList in interface RestoreConfig.TransformationRuleOrBuilder
    • addFieldActionsBuilder

      public RestoreConfig.TransformationRuleAction.Builder addFieldActionsBuilder()
       Required. A list of transformation rule actions to take against candidate
       resources. Actions are executed in order defined - this order matters, as
       they could potentially interfere with each other and the first operation
       could affect the outcome of the second operation.
       
      repeated .google.cloud.gkebackup.v1.RestoreConfig.TransformationRuleAction field_actions = 1 [(.google.api.field_behavior) = REQUIRED];
    • addFieldActionsBuilder

      public RestoreConfig.TransformationRuleAction.Builder addFieldActionsBuilder(int index)
       Required. A list of transformation rule actions to take against candidate
       resources. Actions are executed in order defined - this order matters, as
       they could potentially interfere with each other and the first operation
       could affect the outcome of the second operation.
       
      repeated .google.cloud.gkebackup.v1.RestoreConfig.TransformationRuleAction field_actions = 1 [(.google.api.field_behavior) = REQUIRED];
    • getFieldActionsBuilderList

      public List<RestoreConfig.TransformationRuleAction.Builder> getFieldActionsBuilderList()
       Required. A list of transformation rule actions to take against candidate
       resources. Actions are executed in order defined - this order matters, as
       they could potentially interfere with each other and the first operation
       could affect the outcome of the second operation.
       
      repeated .google.cloud.gkebackup.v1.RestoreConfig.TransformationRuleAction field_actions = 1 [(.google.api.field_behavior) = REQUIRED];
    • hasResourceFilter

      public boolean hasResourceFilter()
       Optional. This field is used to specify a set of fields that should be
       used to determine which resources in backup should be acted upon by the
       supplied transformation rule actions, and this will ensure that only
       specific resources are affected by transformation rule actions.
       
      .google.cloud.gkebackup.v1.RestoreConfig.ResourceFilter resource_filter = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasResourceFilter in interface RestoreConfig.TransformationRuleOrBuilder
      Returns:
      Whether the resourceFilter field is set.
    • getResourceFilter

      public RestoreConfig.ResourceFilter getResourceFilter()
       Optional. This field is used to specify a set of fields that should be
       used to determine which resources in backup should be acted upon by the
       supplied transformation rule actions, and this will ensure that only
       specific resources are affected by transformation rule actions.
       
      .google.cloud.gkebackup.v1.RestoreConfig.ResourceFilter resource_filter = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getResourceFilter in interface RestoreConfig.TransformationRuleOrBuilder
      Returns:
      The resourceFilter.
    • setResourceFilter

       Optional. This field is used to specify a set of fields that should be
       used to determine which resources in backup should be acted upon by the
       supplied transformation rule actions, and this will ensure that only
       specific resources are affected by transformation rule actions.
       
      .google.cloud.gkebackup.v1.RestoreConfig.ResourceFilter resource_filter = 2 [(.google.api.field_behavior) = OPTIONAL];
    • setResourceFilter

       Optional. This field is used to specify a set of fields that should be
       used to determine which resources in backup should be acted upon by the
       supplied transformation rule actions, and this will ensure that only
       specific resources are affected by transformation rule actions.
       
      .google.cloud.gkebackup.v1.RestoreConfig.ResourceFilter resource_filter = 2 [(.google.api.field_behavior) = OPTIONAL];
    • mergeResourceFilter

       Optional. This field is used to specify a set of fields that should be
       used to determine which resources in backup should be acted upon by the
       supplied transformation rule actions, and this will ensure that only
       specific resources are affected by transformation rule actions.
       
      .google.cloud.gkebackup.v1.RestoreConfig.ResourceFilter resource_filter = 2 [(.google.api.field_behavior) = OPTIONAL];
    • clearResourceFilter

      public RestoreConfig.TransformationRule.Builder clearResourceFilter()
       Optional. This field is used to specify a set of fields that should be
       used to determine which resources in backup should be acted upon by the
       supplied transformation rule actions, and this will ensure that only
       specific resources are affected by transformation rule actions.
       
      .google.cloud.gkebackup.v1.RestoreConfig.ResourceFilter resource_filter = 2 [(.google.api.field_behavior) = OPTIONAL];
    • getResourceFilterBuilder

      public RestoreConfig.ResourceFilter.Builder getResourceFilterBuilder()
       Optional. This field is used to specify a set of fields that should be
       used to determine which resources in backup should be acted upon by the
       supplied transformation rule actions, and this will ensure that only
       specific resources are affected by transformation rule actions.
       
      .google.cloud.gkebackup.v1.RestoreConfig.ResourceFilter resource_filter = 2 [(.google.api.field_behavior) = OPTIONAL];
    • getResourceFilterOrBuilder

      public RestoreConfig.ResourceFilterOrBuilder getResourceFilterOrBuilder()
       Optional. This field is used to specify a set of fields that should be
       used to determine which resources in backup should be acted upon by the
       supplied transformation rule actions, and this will ensure that only
       specific resources are affected by transformation rule actions.
       
      .google.cloud.gkebackup.v1.RestoreConfig.ResourceFilter resource_filter = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getResourceFilterOrBuilder in interface RestoreConfig.TransformationRuleOrBuilder
    • getDescription

      public String getDescription()
       Optional. The description is a user specified string description of the
       transformation rule.
       
      string description = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getDescription in interface RestoreConfig.TransformationRuleOrBuilder
      Returns:
      The description.
    • getDescriptionBytes

      public com.google.protobuf.ByteString getDescriptionBytes()
       Optional. The description is a user specified string description of the
       transformation rule.
       
      string description = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getDescriptionBytes in interface RestoreConfig.TransformationRuleOrBuilder
      Returns:
      The bytes for description.
    • setDescription

      public RestoreConfig.TransformationRule.Builder setDescription(String value)
       Optional. The description is a user specified string description of the
       transformation rule.
       
      string description = 3 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The description to set.
      Returns:
      This builder for chaining.
    • clearDescription

      public RestoreConfig.TransformationRule.Builder clearDescription()
       Optional. The description is a user specified string description of the
       transformation rule.
       
      string description = 3 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setDescriptionBytes

      public RestoreConfig.TransformationRule.Builder setDescriptionBytes(com.google.protobuf.ByteString value)
       Optional. The description is a user specified string description of the
       transformation rule.
       
      string description = 3 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for description to set.
      Returns:
      This builder for chaining.