Enum LogLevel

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

    public enum LogLevel
    extends Enum<LogLevel>
    implements com.google.protobuf.ProtocolMessageEnum
     **Beta Feature**
    
     The logging verbosity for device activity. Specifies which events should be
     written to logs. For example, if the LogLevel is ERROR, only events that
     terminate in errors will be logged. LogLevel is inclusive; enabling INFO
     logging will also enable ERROR logging.
     
    Protobuf enum google.cloud.iot.v1.LogLevel
    • Enum Constant Detail

      • LOG_LEVEL_UNSPECIFIED

        public static final LogLevel LOG_LEVEL_UNSPECIFIED
         No logging specified. If not specified, logging will be disabled.
         
        LOG_LEVEL_UNSPECIFIED = 0;
      • NONE

        public static final LogLevel NONE
         Disables logging.
         
        NONE = 10;
      • ERROR

        public static final LogLevel ERROR
         Error events will be logged.
         
        ERROR = 20;
      • INFO

        public static final LogLevel INFO
         Informational events will be logged, such as connections and
         disconnections.
         
        INFO = 30;
      • DEBUG

        public static final LogLevel DEBUG
         All events will be logged.
         
        DEBUG = 40;
      • UNRECOGNIZED

        public static final LogLevel UNRECOGNIZED
    • Field Detail

      • LOG_LEVEL_UNSPECIFIED_VALUE

        public static final int LOG_LEVEL_UNSPECIFIED_VALUE
         No logging specified. If not specified, logging will be disabled.
         
        LOG_LEVEL_UNSPECIFIED = 0;
        See Also:
        Constant Field Values
      • NONE_VALUE

        public static final int NONE_VALUE
         Disables logging.
         
        NONE = 10;
        See Also:
        Constant Field Values
      • ERROR_VALUE

        public static final int ERROR_VALUE
         Error events will be logged.
         
        ERROR = 20;
        See Also:
        Constant Field Values
      • INFO_VALUE

        public static final int INFO_VALUE
         Informational events will be logged, such as connections and
         disconnections.
         
        INFO = 30;
        See Also:
        Constant Field Values
      • DEBUG_VALUE

        public static final int DEBUG_VALUE
         All events will be logged.
         
        DEBUG = 40;
        See Also:
        Constant Field Values
    • Method Detail

      • values

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

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