Class LoggingConfig

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.retail.v2alpha.LoggingConfig
All Implemented Interfaces:
LoggingConfigOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

@Generated public final class LoggingConfig extends com.google.protobuf.GeneratedMessage implements LoggingConfigOrBuilder
 Project level logging config to control what level of log will be generated
 and written to Cloud Logging.
 
Protobuf type google.cloud.retail.v2alpha.LoggingConfig
See Also:
  • Field Details

    • NAME_FIELD_NUMBER

      public static final int NAME_FIELD_NUMBER
      See Also:
    • DEFAULT_LOG_GENERATION_RULE_FIELD_NUMBER

      public static final int DEFAULT_LOG_GENERATION_RULE_FIELD_NUMBER
      See Also:
    • SERVICE_LOG_GENERATION_RULES_FIELD_NUMBER

      public static final int SERVICE_LOG_GENERATION_RULES_FIELD_NUMBER
      See Also:
  • 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
    • getName

      public String getName()
       Required. Immutable. The name of the LoggingConfig singleton resource.
       Format: projects/*/loggingConfig
       
      string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
      Specified by:
      getName in interface LoggingConfigOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       Required. Immutable. The name of the LoggingConfig singleton resource.
       Format: projects/*/loggingConfig
       
      string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
      Specified by:
      getNameBytes in interface LoggingConfigOrBuilder
      Returns:
      The bytes for name.
    • hasDefaultLogGenerationRule

      public boolean hasDefaultLogGenerationRule()
       The log generation rule that applies by default to all services
       supporting log generation. It can be overridden by
       [ServiceLogGenerationRule][google.cloud.retail.v2alpha.LoggingConfig.ServiceLogGenerationRule]
       for service level control.
       
      .google.cloud.retail.v2alpha.LoggingConfig.LogGenerationRule default_log_generation_rule = 2;
      Specified by:
      hasDefaultLogGenerationRule in interface LoggingConfigOrBuilder
      Returns:
      Whether the defaultLogGenerationRule field is set.
    • getDefaultLogGenerationRule

      public LoggingConfig.LogGenerationRule getDefaultLogGenerationRule()
       The log generation rule that applies by default to all services
       supporting log generation. It can be overridden by
       [ServiceLogGenerationRule][google.cloud.retail.v2alpha.LoggingConfig.ServiceLogGenerationRule]
       for service level control.
       
      .google.cloud.retail.v2alpha.LoggingConfig.LogGenerationRule default_log_generation_rule = 2;
      Specified by:
      getDefaultLogGenerationRule in interface LoggingConfigOrBuilder
      Returns:
      The defaultLogGenerationRule.
    • getDefaultLogGenerationRuleOrBuilder

      public LoggingConfig.LogGenerationRuleOrBuilder getDefaultLogGenerationRuleOrBuilder()
       The log generation rule that applies by default to all services
       supporting log generation. It can be overridden by
       [ServiceLogGenerationRule][google.cloud.retail.v2alpha.LoggingConfig.ServiceLogGenerationRule]
       for service level control.
       
      .google.cloud.retail.v2alpha.LoggingConfig.LogGenerationRule default_log_generation_rule = 2;
      Specified by:
      getDefaultLogGenerationRuleOrBuilder in interface LoggingConfigOrBuilder
    • getServiceLogGenerationRulesList

      public List<LoggingConfig.ServiceLogGenerationRule> getServiceLogGenerationRulesList()
       Controls logging configurations more granularly for each supported
       service.
      
       This overrides the
       [default_log_generation_rule][google.cloud.retail.v2alpha.LoggingConfig.default_log_generation_rule]
       for the services specified. For those not mentioned, they will fallback to
       the default log generation rule.
       
      repeated .google.cloud.retail.v2alpha.LoggingConfig.ServiceLogGenerationRule service_log_generation_rules = 4;
      Specified by:
      getServiceLogGenerationRulesList in interface LoggingConfigOrBuilder
    • getServiceLogGenerationRulesOrBuilderList

      public List<? extends LoggingConfig.ServiceLogGenerationRuleOrBuilder> getServiceLogGenerationRulesOrBuilderList()
       Controls logging configurations more granularly for each supported
       service.
      
       This overrides the
       [default_log_generation_rule][google.cloud.retail.v2alpha.LoggingConfig.default_log_generation_rule]
       for the services specified. For those not mentioned, they will fallback to
       the default log generation rule.
       
      repeated .google.cloud.retail.v2alpha.LoggingConfig.ServiceLogGenerationRule service_log_generation_rules = 4;
      Specified by:
      getServiceLogGenerationRulesOrBuilderList in interface LoggingConfigOrBuilder
    • getServiceLogGenerationRulesCount

      public int getServiceLogGenerationRulesCount()
       Controls logging configurations more granularly for each supported
       service.
      
       This overrides the
       [default_log_generation_rule][google.cloud.retail.v2alpha.LoggingConfig.default_log_generation_rule]
       for the services specified. For those not mentioned, they will fallback to
       the default log generation rule.
       
      repeated .google.cloud.retail.v2alpha.LoggingConfig.ServiceLogGenerationRule service_log_generation_rules = 4;
      Specified by:
      getServiceLogGenerationRulesCount in interface LoggingConfigOrBuilder
    • getServiceLogGenerationRules

      public LoggingConfig.ServiceLogGenerationRule getServiceLogGenerationRules(int index)
       Controls logging configurations more granularly for each supported
       service.
      
       This overrides the
       [default_log_generation_rule][google.cloud.retail.v2alpha.LoggingConfig.default_log_generation_rule]
       for the services specified. For those not mentioned, they will fallback to
       the default log generation rule.
       
      repeated .google.cloud.retail.v2alpha.LoggingConfig.ServiceLogGenerationRule service_log_generation_rules = 4;
      Specified by:
      getServiceLogGenerationRules in interface LoggingConfigOrBuilder
    • getServiceLogGenerationRulesOrBuilder

      public LoggingConfig.ServiceLogGenerationRuleOrBuilder getServiceLogGenerationRulesOrBuilder(int index)
       Controls logging configurations more granularly for each supported
       service.
      
       This overrides the
       [default_log_generation_rule][google.cloud.retail.v2alpha.LoggingConfig.default_log_generation_rule]
       for the services specified. For those not mentioned, they will fallback to
       the default log generation rule.
       
      repeated .google.cloud.retail.v2alpha.LoggingConfig.ServiceLogGenerationRule service_log_generation_rules = 4;
      Specified by:
      getServiceLogGenerationRulesOrBuilder in interface LoggingConfigOrBuilder
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static LoggingConfig parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static LoggingConfig parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static LoggingConfig parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static LoggingConfig parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static LoggingConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static LoggingConfig parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static LoggingConfig parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static LoggingConfig parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static LoggingConfig parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static LoggingConfig parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static LoggingConfig parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static LoggingConfig parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

      public LoggingConfig.Builder newBuilderForType()
      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

      public static LoggingConfig.Builder newBuilder()
    • newBuilder

      public static LoggingConfig.Builder newBuilder(LoggingConfig prototype)
    • toBuilder

      public LoggingConfig.Builder toBuilder()
      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected LoggingConfig.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static LoggingConfig getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<LoggingConfig> parser()
    • getParserForType

      public com.google.protobuf.Parser<LoggingConfig> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessage
    • getDefaultInstanceForType

      public LoggingConfig getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder