Class WasmPlugin.LogConfig.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<WasmPlugin.LogConfig.Builder>
com.google.cloud.networkservices.v1.WasmPlugin.LogConfig.Builder
All Implemented Interfaces:
WasmPlugin.LogConfigOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
WasmPlugin.LogConfig

public static final class WasmPlugin.LogConfig.Builder extends com.google.protobuf.GeneratedMessage.Builder<WasmPlugin.LogConfig.Builder> implements WasmPlugin.LogConfigOrBuilder
 Specifies the logging options for the activity performed by this
 plugin. If logging is enabled, plugin logs are exported to
 Cloud Logging.
 
Protobuf type google.cloud.networkservices.v1.WasmPlugin.LogConfig
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<WasmPlugin.LogConfig.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<WasmPlugin.LogConfig.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<WasmPlugin.LogConfig.Builder>
    • getDefaultInstanceForType

      public WasmPlugin.LogConfig getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public WasmPlugin.LogConfig build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public WasmPlugin.LogConfig buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public WasmPlugin.LogConfig.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<WasmPlugin.LogConfig.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<WasmPlugin.LogConfig.Builder>
    • mergeFrom

      public WasmPlugin.LogConfig.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<WasmPlugin.LogConfig.Builder>
      Throws:
      IOException
    • getEnable

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

      public WasmPlugin.LogConfig.Builder setEnable(boolean value)
       Optional. Specifies whether to enable logging for activity by this
       plugin.
      
       Defaults to `false`.
       
      bool enable = 1 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The enable to set.
      Returns:
      This builder for chaining.
    • clearEnable

      public WasmPlugin.LogConfig.Builder clearEnable()
       Optional. Specifies whether to enable logging for activity by this
       plugin.
      
       Defaults to `false`.
       
      bool enable = 1 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • getSampleRate

      public 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];
      Specified by:
      getSampleRate in interface WasmPlugin.LogConfigOrBuilder
      Returns:
      The sampleRate.
    • setSampleRate

      public WasmPlugin.LogConfig.Builder setSampleRate(float value)
       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];
      Parameters:
      value - The sampleRate to set.
      Returns:
      This builder for chaining.
    • clearSampleRate

      public WasmPlugin.LogConfig.Builder clearSampleRate()
       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:
      This builder for chaining.
    • getMinLogLevelValue

      public 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];
      Specified by:
      getMinLogLevelValue in interface WasmPlugin.LogConfigOrBuilder
      Returns:
      The enum numeric value on the wire for minLogLevel.
    • setMinLogLevelValue

      public WasmPlugin.LogConfig.Builder setMinLogLevelValue(int value)
       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];
      Parameters:
      value - The enum numeric value on the wire for minLogLevel to set.
      Returns:
      This builder for chaining.
    • getMinLogLevel

      public WasmPlugin.LogConfig.LogLevel 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];
      Specified by:
      getMinLogLevel in interface WasmPlugin.LogConfigOrBuilder
      Returns:
      The minLogLevel.
    • setMinLogLevel

       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];
      Parameters:
      value - The minLogLevel to set.
      Returns:
      This builder for chaining.
    • clearMinLogLevel

      public WasmPlugin.LogConfig.Builder clearMinLogLevel()
       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:
      This builder for chaining.