Package com.google.cloud.iot.v1
Enum LogLevel
- java.lang.Object
-
- java.lang.Enum<LogLevel>
-
- com.google.cloud.iot.v1.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 enumgoogle.cloud.iot.v1.LogLevel
-
-
Enum Constant Summary
Enum Constants Enum Constant Description DEBUGAll events will be logged.ERRORError events will be logged.INFOInformational events will be logged, such as connections and disconnections.LOG_LEVEL_UNSPECIFIEDNo logging specified.NONEDisables logging.UNRECOGNIZED
-
Field Summary
Fields Modifier and Type Field Description static intDEBUG_VALUEAll events will be logged.static intERROR_VALUEError events will be logged.static intINFO_VALUEInformational events will be logged, such as connections and disconnections.static intLOG_LEVEL_UNSPECIFIED_VALUENo logging specified.static intNONE_VALUEDisables logging.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static LogLevelforNumber(int value)static com.google.protobuf.Descriptors.EnumDescriptorgetDescriptor()com.google.protobuf.Descriptors.EnumDescriptorgetDescriptorForType()intgetNumber()com.google.protobuf.Descriptors.EnumValueDescriptorgetValueDescriptor()static com.google.protobuf.Internal.EnumLiteMap<LogLevel>internalGetValueMap()static LogLevelvalueOf(int value)Deprecated.static LogLevelvalueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)Returns the enum constant of this type with the specified name.static LogLevelvalueOf(String name)Returns the enum constant of this type with the specified name.static LogLevel[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
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 nameNullPointerException- if the argument is null
-
getNumber
public final int getNumber()
- Specified by:
getNumberin interfacecom.google.protobuf.Internal.EnumLite- Specified by:
getNumberin interfacecom.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 nameNullPointerException- 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:
getValueDescriptorin interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptorForType
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.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 nameNullPointerException- if the argument is null
-
-