Enum RestoreConfig.TransformationRuleAction.Op

java.lang.Object
java.lang.Enum<RestoreConfig.TransformationRuleAction.Op>
com.google.cloud.gkebackup.v1.RestoreConfig.TransformationRuleAction.Op
All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite, com.google.protobuf.ProtocolMessageEnum, Serializable, Comparable<RestoreConfig.TransformationRuleAction.Op>
Enclosing class:
RestoreConfig.TransformationRuleAction

public static enum RestoreConfig.TransformationRuleAction.Op extends Enum<RestoreConfig.TransformationRuleAction.Op> implements com.google.protobuf.ProtocolMessageEnum
 Possible values for operations of a transformation rule action.
 
Protobuf enum google.cloud.gkebackup.v1.RestoreConfig.TransformationRuleAction.Op
  • Enum Constant Details

    • OP_UNSPECIFIED

      public static final RestoreConfig.TransformationRuleAction.Op OP_UNSPECIFIED
       Unspecified operation
       
      OP_UNSPECIFIED = 0;
    • REMOVE

      public static final RestoreConfig.TransformationRuleAction.Op REMOVE
       The "remove" operation removes the value at the target location.
       
      REMOVE = 1;
    • MOVE

       The "move" operation removes the value at a specified location and
       adds it to the target location.
       
      MOVE = 2;
    • COPY

       The "copy" operation copies the value at a specified location to the
       target location.
       
      COPY = 3;
    • ADD

       The "add" operation performs one of the following functions,
       depending upon what the target location references:
       1. If the target location specifies an array index, a new value is
       inserted into the array at the specified index.
       2. If the target location specifies an object member that does not
       already exist, a new member is added to the object.
       3. If the target location specifies an object member that does exist,
       that member's value is replaced.
       
      ADD = 4;
    • TEST

       The "test" operation tests that a value at the target location is
       equal to a specified value.
       
      TEST = 5;
    • REPLACE

      public static final RestoreConfig.TransformationRuleAction.Op REPLACE
       The "replace" operation replaces the value at the target location
       with a new value.  The operation object MUST contain a "value" member
       whose content specifies the replacement value.
       
      REPLACE = 6;
    • UNRECOGNIZED

      public static final RestoreConfig.TransformationRuleAction.Op UNRECOGNIZED
  • Field Details

    • OP_UNSPECIFIED_VALUE

      public static final int OP_UNSPECIFIED_VALUE
       Unspecified operation
       
      OP_UNSPECIFIED = 0;
      See Also:
    • REMOVE_VALUE

      public static final int REMOVE_VALUE
       The "remove" operation removes the value at the target location.
       
      REMOVE = 1;
      See Also:
    • MOVE_VALUE

      public static final int MOVE_VALUE
       The "move" operation removes the value at a specified location and
       adds it to the target location.
       
      MOVE = 2;
      See Also:
    • COPY_VALUE

      public static final int COPY_VALUE
       The "copy" operation copies the value at a specified location to the
       target location.
       
      COPY = 3;
      See Also:
    • ADD_VALUE

      public static final int ADD_VALUE
       The "add" operation performs one of the following functions,
       depending upon what the target location references:
       1. If the target location specifies an array index, a new value is
       inserted into the array at the specified index.
       2. If the target location specifies an object member that does not
       already exist, a new member is added to the object.
       3. If the target location specifies an object member that does exist,
       that member's value is replaced.
       
      ADD = 4;
      See Also:
    • TEST_VALUE

      public static final int TEST_VALUE
       The "test" operation tests that a value at the target location is
       equal to a specified value.
       
      TEST = 5;
      See Also:
    • REPLACE_VALUE

      public static final int REPLACE_VALUE
       The "replace" operation replaces the value at the target location
       with a new value.  The operation object MUST contain a "value" member
       whose content specifies the replacement value.
       
      REPLACE = 6;
      See Also:
  • Method Details

    • values

      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static RestoreConfig.TransformationRuleAction.Op valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null
    • getNumber

      public final int getNumber()
      Specified by:
      getNumber in interface com.google.protobuf.Internal.EnumLite
      Specified by:
      getNumber in interface com.google.protobuf.ProtocolMessageEnum
    • valueOf

      @Deprecated public static RestoreConfig.TransformationRuleAction.Op valueOf(int value)
      Deprecated.
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
      Parameters:
      value - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null
    • forNumber

      public static RestoreConfig.TransformationRuleAction.Op forNumber(int value)
      Parameters:
      value - The numeric wire value of the corresponding enum entry.
      Returns:
      The enum associated with the given numeric wire value.
    • internalGetValueMap

      public static com.google.protobuf.Internal.EnumLiteMap<RestoreConfig.TransformationRuleAction.Op> internalGetValueMap()
    • getValueDescriptor

      public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
      Specified by:
      getValueDescriptor in interface com.google.protobuf.ProtocolMessageEnum
    • getDescriptorForType

      public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.ProtocolMessageEnum
    • getDescriptor

      public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
    • valueOf

      public static RestoreConfig.TransformationRuleAction.Op valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
      Parameters:
      desc - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null