Package com.google.cloud.retail.v2alpha
Enum LoggingConfig.LoggingLevel
java.lang.Object
java.lang.Enum<LoggingConfig.LoggingLevel>
com.google.cloud.retail.v2alpha.LoggingConfig.LoggingLevel
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite,com.google.protobuf.ProtocolMessageEnum,Serializable,Comparable<LoggingConfig.LoggingLevel>
- Enclosing class:
- LoggingConfig
public static enum LoggingConfig.LoggingLevel
extends Enum<LoggingConfig.LoggingLevel>
implements com.google.protobuf.ProtocolMessageEnum
The setting to control log generation.Protobuf enum
google.cloud.retail.v2alpha.LoggingConfig.LoggingLevel-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionLog all operations, including successful ones.Log for operations resulted in fatal error.In addition to `LOG_ERRORS_AND_ABOVE`, also log for operations that have soft errors, quality suggestions.No log will be generated and sent to Cloud Logging.Default value. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intLog all operations, including successful ones.static final intLog for operations resulted in fatal error.static final intIn addition to `LOG_ERRORS_AND_ABOVE`, also log for operations that have soft errors, quality suggestions.static final intNo log will be generated and sent to Cloud Logging.static final intDefault value. -
Method Summary
Modifier and TypeMethodDescriptionstatic LoggingConfig.LoggingLevelforNumber(int value) static com.google.protobuf.Descriptors.EnumDescriptorfinal com.google.protobuf.Descriptors.EnumDescriptorfinal intfinal com.google.protobuf.Descriptors.EnumValueDescriptorstatic com.google.protobuf.Internal.EnumLiteMap<LoggingConfig.LoggingLevel>static LoggingConfig.LoggingLevelvalueOf(int value) Deprecated.static LoggingConfig.LoggingLevelvalueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) Returns the enum constant of this type with the specified name.static LoggingConfig.LoggingLevelReturns the enum constant of this type with the specified name.static LoggingConfig.LoggingLevel[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
LOGGING_LEVEL_UNSPECIFIED
Default value. Defaults to `LOG_FOR_WARNINGS_AND_ABOVE` if unset.
LOGGING_LEVEL_UNSPECIFIED = 0; -
LOGGING_DISABLED
No log will be generated and sent to Cloud Logging.
LOGGING_DISABLED = 1; -
LOG_ERRORS_AND_ABOVE
Log for operations resulted in fatal error.
LOG_ERRORS_AND_ABOVE = 2; -
LOG_WARNINGS_AND_ABOVE
In addition to `LOG_ERRORS_AND_ABOVE`, also log for operations that have soft errors, quality suggestions.
LOG_WARNINGS_AND_ABOVE = 3; -
LOG_ALL
Log all operations, including successful ones.
LOG_ALL = 4; -
UNRECOGNIZED
-
-
Field Details
-
LOGGING_LEVEL_UNSPECIFIED_VALUE
public static final int LOGGING_LEVEL_UNSPECIFIED_VALUEDefault value. Defaults to `LOG_FOR_WARNINGS_AND_ABOVE` if unset.
LOGGING_LEVEL_UNSPECIFIED = 0;- See Also:
-
LOGGING_DISABLED_VALUE
public static final int LOGGING_DISABLED_VALUENo log will be generated and sent to Cloud Logging.
LOGGING_DISABLED = 1;- See Also:
-
LOG_ERRORS_AND_ABOVE_VALUE
public static final int LOG_ERRORS_AND_ABOVE_VALUELog for operations resulted in fatal error.
LOG_ERRORS_AND_ABOVE = 2;- See Also:
-
LOG_WARNINGS_AND_ABOVE_VALUE
public static final int LOG_WARNINGS_AND_ABOVE_VALUEIn addition to `LOG_ERRORS_AND_ABOVE`, also log for operations that have soft errors, quality suggestions.
LOG_WARNINGS_AND_ABOVE = 3;- See Also:
-
LOG_ALL_VALUE
public static final int LOG_ALL_VALUELog all operations, including successful ones.
LOG_ALL = 4;- See Also:
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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.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
- 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<LoggingConfig.LoggingLevel> 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 com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() -
valueOf
public static LoggingConfig.LoggingLevel 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
-