Class WasmPlugin.LogConfig (0.31.0) 
  
      
     
  
  
  
   
  
    
  
  
    
    
    
  Version 0.31.0keyboard_arrow_down  
  
 
    
    
    
    
      
  
  
  
    
public   static   final   class  WasmPlugin . LogConfig   extends   GeneratedMessageV3   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
 
  
  
  
    Inherited Members 
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
      com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT) 
    
    
      com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int) 
    
    
    
    
    
    
    
    
      com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>) 
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
      com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int) 
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
   
  Static Fields
   
  ENABLE_FIELD_NUMBER 
  
    
public   static   final   int   ENABLE_FIELD_NUMBER  
   
  
    
      
        Field Value  
       
      
        Type  
        Description  
       
      
        int  
         
       
     
  
  MIN_LOG_LEVEL_FIELD_NUMBER 
  
    
public   static   final   int   MIN_LOG_LEVEL_FIELD_NUMBER  
   
  
    
      
        Field Value  
       
      
        Type  
        Description  
       
      
        int  
         
       
     
  
  SAMPLE_RATE_FIELD_NUMBER 
  
    
public   static   final   int   SAMPLE_RATE_FIELD_NUMBER  
   
  
    
      
        Field Value  
       
      
        Type  
        Description  
       
      
        int  
         
       
     
  
  Static Methods
   
   
  getDefaultInstance() 
  
    
public   static   WasmPlugin . LogConfig   getDefaultInstance ()  
   
  
   
  getDescriptor() 
  
    
public   static   final   Descriptors . Descriptor   getDescriptor ()  
   
  
   
  newBuilder() 
  
    
public   static   WasmPlugin . LogConfig . Builder   newBuilder ()  
   
  
   
  newBuilder(WasmPlugin.LogConfig prototype) 
  
    
public   static   WasmPlugin . LogConfig . Builder   newBuilder ( WasmPlugin . LogConfig   prototype )  
   
  
  
   
  
  
    
public   static   WasmPlugin . LogConfig   parseDelimitedFrom ( InputStream   input )  
   
  
  
  
   
  
  
    
public   static   WasmPlugin . LogConfig   parseDelimitedFrom ( InputStream   input ,   ExtensionRegistryLite   extensionRegistry )  
   
  
  
  
   
  parseFrom(byte[] data) 
  
    
public   static   WasmPlugin . LogConfig   parseFrom ( byte []   data )  
   
  
    
      
        Parameter  
       
      
        Name  
        Description  
       
      
        data 
        byte [] 
       
     
  
  
  
   
  parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) 
  
    
public   static   WasmPlugin . LogConfig   parseFrom ( byte []   data ,   ExtensionRegistryLite   extensionRegistry )  
   
  
  
  
   
  parseFrom(ByteString data) 
  
    
public   static   WasmPlugin . LogConfig   parseFrom ( ByteString   data )  
   
  
  
  
   
  parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) 
  
    
public   static   WasmPlugin . LogConfig   parseFrom ( ByteString   data ,   ExtensionRegistryLite   extensionRegistry )  
   
  
  
  
   
  
  
    
public   static   WasmPlugin . LogConfig   parseFrom ( CodedInputStream   input )  
   
  
  
  
   
  
  
    
public   static   WasmPlugin . LogConfig   parseFrom ( CodedInputStream   input ,   ExtensionRegistryLite   extensionRegistry )  
   
  
  
  
   
  
  
    
public   static   WasmPlugin . LogConfig   parseFrom ( InputStream   input )  
   
  
  
  
   
  
  
    
public   static   WasmPlugin . LogConfig   parseFrom ( InputStream   input ,   ExtensionRegistryLite   extensionRegistry )  
   
  
  
  
   
  parseFrom(ByteBuffer data) 
  
    
public   static   WasmPlugin . LogConfig   parseFrom ( ByteBuffer   data )  
   
  
  
  
   
  parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry) 
  
    
public   static   WasmPlugin . LogConfig   parseFrom ( ByteBuffer   data ,   ExtensionRegistryLite   extensionRegistry )  
   
  
  
  
   
  parser() 
  
    
public   static   Parser<WasmPlugin . LogConfig >  parser ()  
   
  
  Methods
   
   
  equals(Object obj) 
  
    
public   boolean   equals ( Object   obj )  
   
  
    
      
        Parameter  
       
      
        Name  
        Description  
       
      
        obj 
        Object  
       
     
  
  
  Overrides 
  
   
  getDefaultInstanceForType() 
  
    
public   WasmPlugin . LogConfig   getDefaultInstanceForType ()  
   
  
   
  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];
 
  
    
      
        Returns  
       
      
        Type  
        Description  
       
      
        boolean  
        The enable.
 
       
     
  
   
  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];
 
 
  
   
  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];
 
 
  
    
      
        Returns  
       
      
        Type  
        Description  
       
      
        int  
        The enum numeric value on the wire for minLogLevel.
 
       
     
  
   
  getParserForType() 
  
    
public   Parser<WasmPlugin . LogConfig >  getParserForType ()  
   
  
  Overrides 
  
   
  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];
 
  
    
      
        Returns  
       
      
        Type  
        Description  
       
      
        float  
        The sampleRate.
 
       
     
  
   
  getSerializedSize() 
  
    
public   int   getSerializedSize ()  
   
  
    
      
        Returns  
       
      
        Type  
        Description  
       
      
        int  
         
       
     
  
  Overrides 
  
   
  hashCode() 
  
  
    
      
        Returns  
       
      
        Type  
        Description  
       
      
        int  
         
       
     
  
  Overrides 
  
   
  internalGetFieldAccessorTable() 
  
    
protected   GeneratedMessageV3 . FieldAccessorTable   internalGetFieldAccessorTable ()  
   
  
  Overrides 
  
   
  isInitialized() 
  
    
public   final   boolean   isInitialized ()  
   
  
  Overrides 
  
   
  newBuilderForType() 
  
    
public   WasmPlugin . LogConfig . Builder   newBuilderForType ()  
   
  
   
  newBuilderForType(GeneratedMessageV3.BuilderParent parent) 
  
    
protected   WasmPlugin . LogConfig . Builder   newBuilderForType ( GeneratedMessageV3 . BuilderParent   parent )  
   
  
  
  Overrides 
  
   
  newInstance(GeneratedMessageV3.UnusedPrivateParameter unused) 
  
    
protected   Object   newInstance ( GeneratedMessageV3 . UnusedPrivateParameter   unused )  
   
  
  
    
      
        Returns  
       
      
        Type  
        Description  
       
      
        Object  
         
       
     
  
  Overrides 
  
   
  toBuilder() 
  
    
public   WasmPlugin . LogConfig . Builder   toBuilder ()  
   
  
   
  writeTo(CodedOutputStream output) 
  
    
public   void   writeTo ( CodedOutputStream   output )  
   
  
  Overrides 
  
  
 
     
    
  
  
  
     
  
 
  
    
    
      
       
    
    
  
  
 
  Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
  Last updated 2025-10-30 UTC.
 
 
  
  
  
    
      [[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-10-30 UTC."],[],[]]