Interface LoggingConfig.LogGenerationRuleOrBuilder

All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder
All Known Implementing Classes:
LoggingConfig.LogGenerationRule, LoggingConfig.LogGenerationRule.Builder
Enclosing class:
LoggingConfig

public static interface LoggingConfig.LogGenerationRuleOrBuilder extends com.google.protobuf.MessageOrBuilder
  • Method Summary

    Modifier and Type
    Method
    Description
    float
    The log sample rate for INFO level log entries.
    The logging level.
    int
    The logging level.
    boolean
    The log sample rate for INFO level log entries.

    Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

    isInitialized

    Methods inherited from interface com.google.protobuf.MessageOrBuilder

    findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
  • Method Details

    • getLoggingLevelValue

      int getLoggingLevelValue()
       The logging level.
      
       By default it is set to `LOG_WARNINGS_AND_ABOVE`.
       
      .google.cloud.retail.v2alpha.LoggingConfig.LoggingLevel logging_level = 1;
      Returns:
      The enum numeric value on the wire for loggingLevel.
    • getLoggingLevel

      LoggingConfig.LoggingLevel getLoggingLevel()
       The logging level.
      
       By default it is set to `LOG_WARNINGS_AND_ABOVE`.
       
      .google.cloud.retail.v2alpha.LoggingConfig.LoggingLevel logging_level = 1;
      Returns:
      The loggingLevel.
    • hasInfoLogSampleRate

      boolean hasInfoLogSampleRate()
       The log sample rate for INFO level log entries. You can use this to
       reduce the number of entries generated for INFO level logs.
      
       DO NOT set this field if the
       [logging_level][google.cloud.retail.v2alpha.LoggingConfig.LogGenerationRule.logging_level]
       is not
       [LoggingLevel.LOG_ALL][google.cloud.retail.v2alpha.LoggingConfig.LoggingLevel.LOG_ALL].
       Otherwise, an INVALID_ARGUMENT error is returned.
      
       Sample rate for INFO logs defaults to 1 when unset (generate and send all
       INFO logs to Cloud Logging). Its value must be greater than 0 and less
       than or equal to 1.
       
      optional float info_log_sample_rate = 2;
      Returns:
      Whether the infoLogSampleRate field is set.
    • getInfoLogSampleRate

      float getInfoLogSampleRate()
       The log sample rate for INFO level log entries. You can use this to
       reduce the number of entries generated for INFO level logs.
      
       DO NOT set this field if the
       [logging_level][google.cloud.retail.v2alpha.LoggingConfig.LogGenerationRule.logging_level]
       is not
       [LoggingLevel.LOG_ALL][google.cloud.retail.v2alpha.LoggingConfig.LoggingLevel.LOG_ALL].
       Otherwise, an INVALID_ARGUMENT error is returned.
      
       Sample rate for INFO logs defaults to 1 when unset (generate and send all
       INFO logs to Cloud Logging). Its value must be greater than 0 and less
       than or equal to 1.
       
      optional float info_log_sample_rate = 2;
      Returns:
      The infoLogSampleRate.