Enum FieldPartialUpdateOp.OpType

    • Enum Constant Detail

      • REPLACE

        public static final FieldPartialUpdateOp.OpType REPLACE
         REPLACE overwrites the field with the new values. Default behavior
         when no op targets a field. Applicable to all field types.
         
        REPLACE = 0;
      • ARRAY_APPEND

        public static final FieldPartialUpdateOp.OpType ARRAY_APPEND
         ARRAY_APPEND appends the new values to the tail of the existing
         array. Requires DataType_Array. The resulting length must not
         exceed the field's max_capacity.
         
        ARRAY_APPEND = 1;
      • ARRAY_REMOVE

        public static final FieldPartialUpdateOp.OpType ARRAY_REMOVE
         ARRAY_REMOVE removes every occurrence of each provided value from
         the existing array. Requires DataType_Array. No-op when the base
         array is empty or no element matches.
         
        ARRAY_REMOVE = 2;
    • Field Detail

      • REPLACE_VALUE

        public static final int REPLACE_VALUE
         REPLACE overwrites the field with the new values. Default behavior
         when no op targets a field. Applicable to all field types.
         
        REPLACE = 0;
        See Also:
        Constant Field Values
      • ARRAY_APPEND_VALUE

        public static final int ARRAY_APPEND_VALUE
         ARRAY_APPEND appends the new values to the tail of the existing
         array. Requires DataType_Array. The resulting length must not
         exceed the field's max_capacity.
         
        ARRAY_APPEND = 1;
        See Also:
        Constant Field Values
      • ARRAY_REMOVE_VALUE

        public static final int ARRAY_REMOVE_VALUE
         ARRAY_REMOVE removes every occurrence of each provided value from
         the existing array. Requires DataType_Array. No-op when the base
         array is empty or no element matches.
         
        ARRAY_REMOVE = 2;
        See Also:
        Constant Field Values
    • Method Detail

      • values

        public static FieldPartialUpdateOp.OpType[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (FieldPartialUpdateOp.OpType c : FieldPartialUpdateOp.OpType.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static FieldPartialUpdateOp.OpType 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 FieldPartialUpdateOp.OpType 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 FieldPartialUpdateOp.OpType forNumber​(int value)
        Parameters:
        value - The numeric wire value of the corresponding enum entry.
        Returns:
        The enum associated with the given numeric wire value.
      • 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 final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
      • valueOf

        public static FieldPartialUpdateOp.OpType 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