Package com.google.cloud.gkebackup.v1
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 Summary
Enum ConstantsEnum ConstantDescriptionThe "add" operation performs one of the following functions, depending upon what the target location references: 1.The "copy" operation copies the value at a specified location to the target location.The "move" operation removes the value at a specified location and adds it to the target location.Unspecified operationThe "remove" operation removes the value at the target location.The "replace" operation replaces the value at the target location with a new value.The "test" operation tests that a value at the target location is equal to a specified value. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe "add" operation performs one of the following functions, depending upon what the target location references: 1.static final intThe "copy" operation copies the value at a specified location to the target location.static final intThe "move" operation removes the value at a specified location and adds it to the target location.static final intUnspecified operationstatic final intThe "remove" operation removes the value at the target location.static final intThe "replace" operation replaces the value at the target location with a new value.static final intThe "test" operation tests that a value at the target location is equal to a specified value. -
Method Summary
Modifier and TypeMethodDescriptionforNumber(int value) static com.google.protobuf.Descriptors.EnumDescriptorfinal com.google.protobuf.Descriptors.EnumDescriptorfinal intfinal com.google.protobuf.Descriptors.EnumValueDescriptorstatic com.google.protobuf.Internal.EnumLiteMap<RestoreConfig.TransformationRuleAction.Op>valueOf(int value) Deprecated.valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) Returns the enum constant of this type with the specified name.Returns the enum constant of this type with the specified name.values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
OP_UNSPECIFIED
Unspecified operation
OP_UNSPECIFIED = 0; -
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
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
-
-
Field Details
-
OP_UNSPECIFIED_VALUE
public static final int OP_UNSPECIFIED_VALUEUnspecified operation
OP_UNSPECIFIED = 0;- See Also:
-
REMOVE_VALUE
public static final int REMOVE_VALUEThe "remove" operation removes the value at the target location.
REMOVE = 1;- See Also:
-
MOVE_VALUE
public static final int MOVE_VALUEThe "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_VALUEThe "copy" operation copies the value at a specified location to the target location.
COPY = 3;- See Also:
-
ADD_VALUE
public static final int ADD_VALUEThe "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_VALUEThe "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_VALUEThe "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
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 nameNullPointerException- if the argument is null
-
getNumber
public final int getNumber()- Specified by:
getNumberin interfacecom.google.protobuf.Internal.EnumLite- Specified by:
getNumberin interfacecom.google.protobuf.ProtocolMessageEnum
-
valueOf
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 nameNullPointerException- if the argument is null
-
forNumber
- 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:
getValueDescriptorin interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptorForType
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.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 nameNullPointerException- if the argument is null
-