Enum Rule.TriggerType

  • All Implemented Interfaces:
    com.google.protobuf.Internal.EnumLite, com.google.protobuf.ProtocolMessageEnum, Serializable, Comparable<Rule.TriggerType>
    Enclosing class:
    Rule

    public static enum Rule.TriggerType
    extends Enum<Rule.TriggerType>
    implements com.google.protobuf.ProtocolMessageEnum
     The trigger types for actions.
     
    Protobuf enum google.cloud.contentwarehouse.v1.Rule.TriggerType
    • Enum Constant Detail

      • UNKNOWN

        public static final Rule.TriggerType UNKNOWN
         Trigger for unknown action.
         
        UNKNOWN = 0;
      • ON_CREATE

        public static final Rule.TriggerType ON_CREATE
         Trigger for create document action.
         
        ON_CREATE = 1;
      • ON_UPDATE

        public static final Rule.TriggerType ON_UPDATE
         Trigger for update document action.
         
        ON_UPDATE = 4;
      • ON_CREATE_LINK

        public static final Rule.TriggerType ON_CREATE_LINK
         Trigger for create link action.
         
        ON_CREATE_LINK = 7;
      • ON_DELETE_LINK

        public static final Rule.TriggerType ON_DELETE_LINK
         Trigger for delete link action.
         
        ON_DELETE_LINK = 8;
    • Field Detail

      • UNKNOWN_VALUE

        public static final int UNKNOWN_VALUE
         Trigger for unknown action.
         
        UNKNOWN = 0;
        See Also:
        Constant Field Values
      • ON_CREATE_VALUE

        public static final int ON_CREATE_VALUE
         Trigger for create document action.
         
        ON_CREATE = 1;
        See Also:
        Constant Field Values
      • ON_UPDATE_VALUE

        public static final int ON_UPDATE_VALUE
         Trigger for update document action.
         
        ON_UPDATE = 4;
        See Also:
        Constant Field Values
      • ON_CREATE_LINK_VALUE

        public static final int ON_CREATE_LINK_VALUE
         Trigger for create link action.
         
        ON_CREATE_LINK = 7;
        See Also:
        Constant Field Values
      • ON_DELETE_LINK_VALUE

        public static final int ON_DELETE_LINK_VALUE
         Trigger for delete link action.
         
        ON_DELETE_LINK = 8;
        See Also:
        Constant Field Values
    • Method Detail

      • values

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

        public static Rule.TriggerType 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 Rule.TriggerType 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 Rule.TriggerType 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<Rule.TriggerType> 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 Rule.TriggerType 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