Enum Document.Provenance.OperationType

    • Field Detail

      • OPERATION_TYPE_UNSPECIFIED_VALUE

        public static final int OPERATION_TYPE_UNSPECIFIED_VALUE
         Operation type unspecified. If no operation is specified a provenance
         entry is simply used to match against a `parent`.
         
        OPERATION_TYPE_UNSPECIFIED = 0;
        See Also:
        Constant Field Values
      • REMOVE_VALUE

        public static final int REMOVE_VALUE
         Remove an element identified by `parent`.
         
        REMOVE = 2;
        See Also:
        Constant Field Values
      • UPDATE_VALUE

        public static final int UPDATE_VALUE
         Updates any fields within the given provenance scope of the message. It
         overwrites the fields rather than replacing them.  Use this when you
         want to update a field value of an entity without also updating all the
         child properties.
         
        UPDATE = 7;
        See Also:
        Constant Field Values
      • REPLACE_VALUE

        public static final int REPLACE_VALUE
         Currently unused. Replace an element identified by `parent`.
         
        REPLACE = 3;
        See Also:
        Constant Field Values
      • EVAL_REQUESTED_VALUE

        @Deprecated
        public static final int EVAL_REQUESTED_VALUE
        Deprecated.
         Deprecated. Request human review for the element identified by
         `parent`.
         
        EVAL_REQUESTED = 4 [deprecated = true];
        See Also:
        Constant Field Values
      • EVAL_APPROVED_VALUE

        @Deprecated
        public static final int EVAL_APPROVED_VALUE
        Deprecated.
         Deprecated. Element is reviewed and approved at human review,
         confidence will be set to 1.0.
         
        EVAL_APPROVED = 5 [deprecated = true];
        See Also:
        Constant Field Values
      • EVAL_SKIPPED_VALUE

        @Deprecated
        public static final int EVAL_SKIPPED_VALUE
        Deprecated.
         Deprecated. Element is skipped in the validation process.
         
        EVAL_SKIPPED = 6 [deprecated = true];
        See Also:
        Constant Field Values
    • Method Detail

      • values

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

        public static Document.Provenance.OperationType 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 Document.Provenance.OperationType 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 Document.Provenance.OperationType 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 Document.Provenance.OperationType 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