Class LoggingConfig.LogGenerationRule (2.69.0) 
  
  
  
   
  
    
  
  
    
    
    
    
  Version 2.69.0keyboard_arrow_down  
  
 
    
    
    
    
      
  
  
  
    
public   static   final   class  LoggingConfig . LogGenerationRule   extends   GeneratedMessageV3   implements   LoggingConfig . LogGenerationRuleOrBuilder  
   The logging configurations for services supporting log generation.
 Protobuf type google.cloud.retail.v2alpha.LoggingConfig.LogGenerationRule
    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
   
  INFO_LOG_SAMPLE_RATE_FIELD_NUMBER 
  
    
public   static   final   int   INFO_LOG_SAMPLE_RATE_FIELD_NUMBER  
  
    
      
        Field Value  
      
        Type Description  
      
        int  
     
  
  LOGGING_LEVEL_FIELD_NUMBER 
  
    
public   static   final   int   LOGGING_LEVEL_FIELD_NUMBER  
  
    
      
        Field Value  
      
        Type Description  
      
        int  
     
  
  Static Methods
   
  getDefaultInstance() 
  
    
public   static   LoggingConfig . LogGenerationRule   getDefaultInstance ()  
  
  getDescriptor() 
  
    
public   static   final   Descriptors . Descriptor   getDescriptor ()  
  
  newBuilder() 
  
    
public   static   LoggingConfig . LogGenerationRule . Builder   newBuilder ()  
  
  newBuilder(LoggingConfig.LogGenerationRule prototype) 
  
    
public   static   LoggingConfig . LogGenerationRule . Builder   newBuilder ( LoggingConfig . LogGenerationRule   prototype )  
  
  
  
    
public   static   LoggingConfig . LogGenerationRule   parseDelimitedFrom ( InputStream   input )  
  
  
  
  
    
public   static   LoggingConfig . LogGenerationRule   parseDelimitedFrom ( InputStream   input ,   ExtensionRegistryLite   extensionRegistry )  
  
  
  
  parseFrom(byte[] data) 
  
    
public   static   LoggingConfig . LogGenerationRule   parseFrom ( byte []   data )  
  
    
      
        Parameter  
      
        Name Description  
      
        databyte [] 
     
  
  
  
  parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) 
  
    
public   static   LoggingConfig . LogGenerationRule   parseFrom ( byte []   data ,   ExtensionRegistryLite   extensionRegistry )  
  
  
  
  parseFrom(ByteString data) 
  
    
public   static   LoggingConfig . LogGenerationRule   parseFrom ( ByteString   data )  
  
  
  
  parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) 
  
    
public   static   LoggingConfig . LogGenerationRule   parseFrom ( ByteString   data ,   ExtensionRegistryLite   extensionRegistry )  
  
  
  
  
    
public   static   LoggingConfig . LogGenerationRule   parseFrom ( CodedInputStream   input )  
  
  
  
  
    
public   static   LoggingConfig . LogGenerationRule   parseFrom ( CodedInputStream   input ,   ExtensionRegistryLite   extensionRegistry )  
  
  
  
  
    
public   static   LoggingConfig . LogGenerationRule   parseFrom ( InputStream   input )  
  
  
  
  
    
public   static   LoggingConfig . LogGenerationRule   parseFrom ( InputStream   input ,   ExtensionRegistryLite   extensionRegistry )  
  
  
  
  parseFrom(ByteBuffer data) 
  
    
public   static   LoggingConfig . LogGenerationRule   parseFrom ( ByteBuffer   data )  
  
  
  
  parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry) 
  
    
public   static   LoggingConfig . LogGenerationRule   parseFrom ( ByteBuffer   data ,   ExtensionRegistryLite   extensionRegistry )  
  
  
  
  parser() 
  
    
public   static   Parser<LoggingConfig . LogGenerationRule >  parser ()  
  
  Methods
   
  equals(Object obj) 
  
    
public   boolean   equals ( Object   obj )  
  
    
      
        Parameter  
      
        Name Description  
      
        objObject  
     
  
  
  Overrides 
  
  getDefaultInstanceForType() 
  
    
public   LoggingConfig . LogGenerationRule   getDefaultInstanceForType ()  
  
  getInfoLogSampleRate() 
  
    
public   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 
 is not
 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  
      
        Type Description  
      
        float The infoLogSampleRate.
 
     
  
  getLoggingLevel() 
  
    
public   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;
getLoggingLevelValue() 
  
    
public   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  
      
        Type Description  
      
        int The enum numeric value on the wire for loggingLevel.
 
     
  
  getParserForType() 
  
    
public   Parser<LoggingConfig . LogGenerationRule >  getParserForType ()  
  
  Overrides 
  
  getSerializedSize() 
  
    
public   int   getSerializedSize ()  
  
    
      
        Returns  
      
        Type Description  
      
        int  
     
  
  Overrides 
  
  hasInfoLogSampleRate() 
  
    
public   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 
 is not
 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  
      
        Type Description  
      
        boolean Whether the infoLogSampleRate field is set.
 
     
  
  hashCode() 
  
  
    
      
        Returns  
      
        Type Description  
      
        int  
     
  
  Overrides 
  
  internalGetFieldAccessorTable() 
  
    
protected   GeneratedMessageV3 . FieldAccessorTable   internalGetFieldAccessorTable ()  
  
  Overrides 
  
  isInitialized() 
  
    
public   final   boolean   isInitialized ()  
  
  Overrides 
  
  newBuilderForType() 
  
    
public   LoggingConfig . LogGenerationRule . Builder   newBuilderForType ()  
  
  newBuilderForType(GeneratedMessageV3.BuilderParent parent) 
  
    
protected   LoggingConfig . LogGenerationRule . Builder   newBuilderForType ( GeneratedMessageV3 . BuilderParent   parent )  
  
  
  Overrides 
  
  newInstance(GeneratedMessageV3.UnusedPrivateParameter unused) 
  
    
protected   Object   newInstance ( GeneratedMessageV3 . UnusedPrivateParameter   unused )  
  
  
    
      
        Returns  
      
        Type Description  
      
        Object  
     
  
  Overrides 
  
  toBuilder() 
  
    
public   LoggingConfig . LogGenerationRule . 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-29 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-29 UTC."],[],[]]