Enum UpdateType

  • All Implemented Interfaces:
    com.google.protobuf.Internal.EnumLite, com.google.protobuf.ProtocolMessageEnum, Serializable, Comparable<UpdateType>

    public enum UpdateType
    extends Enum<UpdateType>
    implements com.google.protobuf.ProtocolMessageEnum
     Update type of the requests.
     
    Protobuf enum google.cloud.contentwarehouse.v1.UpdateType
    • Enum Constant Detail

      • UPDATE_TYPE_UNSPECIFIED

        public static final UpdateType UPDATE_TYPE_UNSPECIFIED
         Defaults to full replace behavior, ie. FULL_REPLACE.
         
        UPDATE_TYPE_UNSPECIFIED = 0;
      • UPDATE_TYPE_REPLACE

        public static final UpdateType UPDATE_TYPE_REPLACE
         Fully replace all the fields (including previously linked raw document).
         Any field masks will be ignored.
         
        UPDATE_TYPE_REPLACE = 1;
      • UPDATE_TYPE_MERGE

        public static final UpdateType UPDATE_TYPE_MERGE
         Merge the fields into the existing entities.
         
        UPDATE_TYPE_MERGE = 2;
      • UPDATE_TYPE_INSERT_PROPERTIES_BY_NAMES

        public static final UpdateType UPDATE_TYPE_INSERT_PROPERTIES_BY_NAMES
         Inserts the properties by names.
         
        UPDATE_TYPE_INSERT_PROPERTIES_BY_NAMES = 3;
      • UPDATE_TYPE_REPLACE_PROPERTIES_BY_NAMES

        public static final UpdateType UPDATE_TYPE_REPLACE_PROPERTIES_BY_NAMES
         Replace the properties by names.
         
        UPDATE_TYPE_REPLACE_PROPERTIES_BY_NAMES = 4;
      • UPDATE_TYPE_DELETE_PROPERTIES_BY_NAMES

        public static final UpdateType UPDATE_TYPE_DELETE_PROPERTIES_BY_NAMES
         Delete the properties by names.
         
        UPDATE_TYPE_DELETE_PROPERTIES_BY_NAMES = 5;
      • UPDATE_TYPE_MERGE_AND_REPLACE_OR_INSERT_PROPERTIES_BY_NAMES

        public static final UpdateType UPDATE_TYPE_MERGE_AND_REPLACE_OR_INSERT_PROPERTIES_BY_NAMES
         For each of the property, replaces the property if the it exists, otherwise
         inserts a new property. And for the rest of the fields, merge them based on
         update mask and merge fields options.
         
        UPDATE_TYPE_MERGE_AND_REPLACE_OR_INSERT_PROPERTIES_BY_NAMES = 6;
      • UNRECOGNIZED

        public static final UpdateType UNRECOGNIZED
    • Field Detail

      • UPDATE_TYPE_UNSPECIFIED_VALUE

        public static final int UPDATE_TYPE_UNSPECIFIED_VALUE
         Defaults to full replace behavior, ie. FULL_REPLACE.
         
        UPDATE_TYPE_UNSPECIFIED = 0;
        See Also:
        Constant Field Values
      • UPDATE_TYPE_REPLACE_VALUE

        public static final int UPDATE_TYPE_REPLACE_VALUE
         Fully replace all the fields (including previously linked raw document).
         Any field masks will be ignored.
         
        UPDATE_TYPE_REPLACE = 1;
        See Also:
        Constant Field Values
      • UPDATE_TYPE_MERGE_VALUE

        public static final int UPDATE_TYPE_MERGE_VALUE
         Merge the fields into the existing entities.
         
        UPDATE_TYPE_MERGE = 2;
        See Also:
        Constant Field Values
      • UPDATE_TYPE_INSERT_PROPERTIES_BY_NAMES_VALUE

        public static final int UPDATE_TYPE_INSERT_PROPERTIES_BY_NAMES_VALUE
         Inserts the properties by names.
         
        UPDATE_TYPE_INSERT_PROPERTIES_BY_NAMES = 3;
        See Also:
        Constant Field Values
      • UPDATE_TYPE_REPLACE_PROPERTIES_BY_NAMES_VALUE

        public static final int UPDATE_TYPE_REPLACE_PROPERTIES_BY_NAMES_VALUE
         Replace the properties by names.
         
        UPDATE_TYPE_REPLACE_PROPERTIES_BY_NAMES = 4;
        See Also:
        Constant Field Values
      • UPDATE_TYPE_DELETE_PROPERTIES_BY_NAMES_VALUE

        public static final int UPDATE_TYPE_DELETE_PROPERTIES_BY_NAMES_VALUE
         Delete the properties by names.
         
        UPDATE_TYPE_DELETE_PROPERTIES_BY_NAMES = 5;
        See Also:
        Constant Field Values
      • UPDATE_TYPE_MERGE_AND_REPLACE_OR_INSERT_PROPERTIES_BY_NAMES_VALUE

        public static final int UPDATE_TYPE_MERGE_AND_REPLACE_OR_INSERT_PROPERTIES_BY_NAMES_VALUE
         For each of the property, replaces the property if the it exists, otherwise
         inserts a new property. And for the rest of the fields, merge them based on
         update mask and merge fields options.
         
        UPDATE_TYPE_MERGE_AND_REPLACE_OR_INSERT_PROPERTIES_BY_NAMES = 6;
        See Also:
        Constant Field Values
    • Method Detail

      • values

        public static UpdateType[] 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 (UpdateType c : UpdateType.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static UpdateType 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 UpdateType 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 UpdateType 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<UpdateType> 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 final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
      • valueOf

        public static UpdateType 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