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 and Description |
|---|
LOG_ALL
Log all operations, including successful ones.
|
LOG_ERRORS_AND_ABOVE
Log for operations resulted in fatal error.
|
LOG_WARNINGS_AND_ABOVE
In addition to `LOG_ERRORS_AND_ABOVE`, also log for operations that have
soft errors, quality suggestions.
|
LOGGING_DISABLED
No log will be generated and sent to Cloud Logging.
|
LOGGING_LEVEL_UNSPECIFIED
Default value.
|
UNRECOGNIZED |
| Modifier and Type | Field and Description |
|---|---|
static int |
LOG_ALL_VALUE
Log all operations, including successful ones.
|
static int |
LOG_ERRORS_AND_ABOVE_VALUE
Log for operations resulted in fatal error.
|
static int |
LOG_WARNINGS_AND_ABOVE_VALUE
In addition to `LOG_ERRORS_AND_ABOVE`, also log for operations that have
soft errors, quality suggestions.
|
static int |
LOGGING_DISABLED_VALUE
No log will be generated and sent to Cloud Logging.
|
static int |
LOGGING_LEVEL_UNSPECIFIED_VALUE
Default value.
|
| Modifier and Type | Method and Description |
|---|---|
static LoggingConfig.LoggingLevel |
forNumber(int value) |
static com.google.protobuf.Descriptors.EnumDescriptor |
getDescriptor() |
com.google.protobuf.Descriptors.EnumDescriptor |
getDescriptorForType() |
int |
getNumber() |
com.google.protobuf.Descriptors.EnumValueDescriptor |
getValueDescriptor() |
static com.google.protobuf.Internal.EnumLiteMap<LoggingConfig.LoggingLevel> |
internalGetValueMap() |
static LoggingConfig.LoggingLevel |
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static LoggingConfig.LoggingLevel |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static LoggingConfig.LoggingLevel |
valueOf(String name)
Returns 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.
|
public static final LoggingConfig.LoggingLevel LOGGING_LEVEL_UNSPECIFIED
Default value. Defaults to `LOG_FOR_WARNINGS_AND_ABOVE` if unset.
LOGGING_LEVEL_UNSPECIFIED = 0;public static final LoggingConfig.LoggingLevel LOGGING_DISABLED
No log will be generated and sent to Cloud Logging.
LOGGING_DISABLED = 1;public static final LoggingConfig.LoggingLevel LOG_ERRORS_AND_ABOVE
Log for operations resulted in fatal error.
LOG_ERRORS_AND_ABOVE = 2;public static final LoggingConfig.LoggingLevel 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;public static final LoggingConfig.LoggingLevel LOG_ALL
Log all operations, including successful ones.
LOG_ALL = 4;public static final LoggingConfig.LoggingLevel UNRECOGNIZED
public static final int LOGGING_LEVEL_UNSPECIFIED_VALUE
Default value. Defaults to `LOG_FOR_WARNINGS_AND_ABOVE` if unset.
LOGGING_LEVEL_UNSPECIFIED = 0;public static final int LOGGING_DISABLED_VALUE
No log will be generated and sent to Cloud Logging.
LOGGING_DISABLED = 1;public static final int LOG_ERRORS_AND_ABOVE_VALUE
Log for operations resulted in fatal error.
LOG_ERRORS_AND_ABOVE = 2;public static final int LOG_WARNINGS_AND_ABOVE_VALUE
In addition to `LOG_ERRORS_AND_ABOVE`, also log for operations that have soft errors, quality suggestions.
LOG_WARNINGS_AND_ABOVE = 3;public static final int LOG_ALL_VALUE
Log all operations, including successful ones.
LOG_ALL = 4;public static LoggingConfig.LoggingLevel[] values()
for (LoggingConfig.LoggingLevel c : LoggingConfig.LoggingLevel.values()) System.out.println(c);
public static LoggingConfig.LoggingLevel valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic final int getNumber()
getNumber in interface com.google.protobuf.Internal.EnumLitegetNumber in interface com.google.protobuf.ProtocolMessageEnum@Deprecated public static LoggingConfig.LoggingLevel valueOf(int value)
forNumber(int) instead.value - The numeric wire value of the corresponding enum entry.public static LoggingConfig.LoggingLevel forNumber(int value)
value - The numeric wire value of the corresponding enum entry.public static com.google.protobuf.Internal.EnumLiteMap<LoggingConfig.LoggingLevel> internalGetValueMap()
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
getValueDescriptor in interface com.google.protobuf.ProtocolMessageEnumpublic final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.ProtocolMessageEnumpublic static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
public static LoggingConfig.LoggingLevel valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Copyright © 2025 Google LLC. All rights reserved.