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 Details

    • LOGGING_LEVEL_UNSPECIFIED

      public static final LoggingConfig.LoggingLevel LOGGING_LEVEL_UNSPECIFIED
       Default value. Defaults to `LOG_FOR_WARNINGS_AND_ABOVE` if unset.
       
      LOGGING_LEVEL_UNSPECIFIED = 0;
    • LOGGING_DISABLED

      public static final LoggingConfig.LoggingLevel LOGGING_DISABLED
       No log will be generated and sent to Cloud Logging.
       
      LOGGING_DISABLED = 1;
    • LOG_ERRORS_AND_ABOVE

      public static final LoggingConfig.LoggingLevel LOG_ERRORS_AND_ABOVE
       Log for operations resulted in fatal error.
       
      LOG_ERRORS_AND_ABOVE = 2;
    • LOG_WARNINGS_AND_ABOVE

      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;
    • LOG_ALL

      public static final LoggingConfig.LoggingLevel LOG_ALL
       Log all operations, including successful ones.
       
      LOG_ALL = 4;
    • UNRECOGNIZED

      public static final LoggingConfig.LoggingLevel UNRECOGNIZED
  • Field Details

    • LOGGING_LEVEL_UNSPECIFIED_VALUE

      public static final int LOGGING_LEVEL_UNSPECIFIED_VALUE
       Default 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_VALUE
       No 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_VALUE
       Log 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_VALUE
       In 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_VALUE
       Log all operations, including successful ones.
       
      LOG_ALL = 4;
      See Also:
  • Method Details

    • values

      public static LoggingConfig.LoggingLevel[] 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

      public static LoggingConfig.LoggingLevel 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 LoggingConfig.LoggingLevel 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 LoggingConfig.LoggingLevel 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<LoggingConfig.LoggingLevel> 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 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 name
      NullPointerException - if the argument is null