Interface WasmPlugin.LogConfigOrBuilder

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

public static interface WasmPlugin.LogConfigOrBuilder extends com.google.protobuf.MessageOrBuilder
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Optional.
    Non-empty default.
    int
    Non-empty default.
    float
    Non-empty default.

    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

    • getEnable

      boolean getEnable()
       Optional. Specifies whether to enable logging for activity by this
       plugin.
      
       Defaults to `false`.
       
      bool enable = 1 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      The enable.
    • getSampleRate

      float getSampleRate()
       Non-empty default. Configures the sampling rate of activity logs, where
       `1.0` means all logged activity is reported and `0.0` means no activity
       is reported. A floating point value between `0.0` and `1.0` indicates
       that a percentage of log messages is stored.
      
       The default value when logging is enabled is `1.0`. The value of the
       field must be between `0` and `1` (inclusive).
      
       This field can be specified only if logging is enabled for this plugin.
       
      float sample_rate = 2 [(.google.api.field_behavior) = NON_EMPTY_DEFAULT];
      Returns:
      The sampleRate.
    • getMinLogLevelValue

      int getMinLogLevelValue()
       Non-empty default. Specificies the lowest level of the plugin logs that
       are exported to Cloud Logging. This setting relates to the logs generated
       by using logging statements in your Wasm code.
      
       This field is can be set only if logging is enabled for the plugin.
      
       If the field is not provided when logging is enabled, it is set to
       `INFO` by default.
       
      .google.cloud.networkservices.v1.WasmPlugin.LogConfig.LogLevel min_log_level = 3 [(.google.api.field_behavior) = NON_EMPTY_DEFAULT];
      Returns:
      The enum numeric value on the wire for minLogLevel.
    • getMinLogLevel

       Non-empty default. Specificies the lowest level of the plugin logs that
       are exported to Cloud Logging. This setting relates to the logs generated
       by using logging statements in your Wasm code.
      
       This field is can be set only if logging is enabled for the plugin.
      
       If the field is not provided when logging is enabled, it is set to
       `INFO` by default.
       
      .google.cloud.networkservices.v1.WasmPlugin.LogConfig.LogLevel min_log_level = 3 [(.google.api.field_behavior) = NON_EMPTY_DEFAULT];
      Returns:
      The minLogLevel.