Class LoggingConfig.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<LoggingConfig.Builder>
com.google.cloud.retail.v2alpha.LoggingConfig.Builder
All Implemented Interfaces:
LoggingConfigOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
LoggingConfig

public static final class LoggingConfig.Builder extends com.google.protobuf.GeneratedMessage.Builder<LoggingConfig.Builder> 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
  • 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<LoggingConfig.Builder>
    • clear

      public LoggingConfig.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<LoggingConfig.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<LoggingConfig.Builder>
    • getDefaultInstanceForType

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

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

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

      public LoggingConfig.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<LoggingConfig.Builder>
    • mergeFrom

      public LoggingConfig.Builder mergeFrom(LoggingConfig other)
    • isInitialized

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

      public LoggingConfig.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<LoggingConfig.Builder>
      Throws:
      IOException
    • 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.
    • setName

      public LoggingConfig.Builder setName(String value)
       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];
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

      public LoggingConfig.Builder clearName()
       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];
      Returns:
      This builder for chaining.
    • setNameBytes

      public LoggingConfig.Builder setNameBytes(com.google.protobuf.ByteString value)
       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];
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • 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.
    • setDefaultLogGenerationRule

      public LoggingConfig.Builder setDefaultLogGenerationRule(LoggingConfig.LogGenerationRule value)
       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;
    • setDefaultLogGenerationRule

      public LoggingConfig.Builder setDefaultLogGenerationRule(LoggingConfig.LogGenerationRule.Builder builderForValue)
       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;
    • mergeDefaultLogGenerationRule

      public LoggingConfig.Builder mergeDefaultLogGenerationRule(LoggingConfig.LogGenerationRule value)
       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;
    • clearDefaultLogGenerationRule

      public LoggingConfig.Builder clearDefaultLogGenerationRule()
       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;
    • getDefaultLogGenerationRuleBuilder

      public LoggingConfig.LogGenerationRule.Builder getDefaultLogGenerationRuleBuilder()
       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;
    • 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
    • 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
    • setServiceLogGenerationRules

      public LoggingConfig.Builder setServiceLogGenerationRules(int index, LoggingConfig.ServiceLogGenerationRule value)
       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;
    • setServiceLogGenerationRules

      public LoggingConfig.Builder setServiceLogGenerationRules(int index, LoggingConfig.ServiceLogGenerationRule.Builder builderForValue)
       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;
    • addServiceLogGenerationRules

      public LoggingConfig.Builder addServiceLogGenerationRules(LoggingConfig.ServiceLogGenerationRule value)
       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;
    • addServiceLogGenerationRules

      public LoggingConfig.Builder addServiceLogGenerationRules(int index, LoggingConfig.ServiceLogGenerationRule value)
       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;
    • addServiceLogGenerationRules

      public LoggingConfig.Builder addServiceLogGenerationRules(LoggingConfig.ServiceLogGenerationRule.Builder builderForValue)
       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;
    • addServiceLogGenerationRules

      public LoggingConfig.Builder addServiceLogGenerationRules(int index, LoggingConfig.ServiceLogGenerationRule.Builder builderForValue)
       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;
    • addAllServiceLogGenerationRules

      public LoggingConfig.Builder addAllServiceLogGenerationRules(Iterable<? extends LoggingConfig.ServiceLogGenerationRule> values)
       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;
    • clearServiceLogGenerationRules

      public LoggingConfig.Builder clearServiceLogGenerationRules()
       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;
    • removeServiceLogGenerationRules

      public LoggingConfig.Builder removeServiceLogGenerationRules(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;
    • getServiceLogGenerationRulesBuilder

      public LoggingConfig.ServiceLogGenerationRule.Builder getServiceLogGenerationRulesBuilder(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;
    • 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
    • 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
    • addServiceLogGenerationRulesBuilder

      public LoggingConfig.ServiceLogGenerationRule.Builder addServiceLogGenerationRulesBuilder()
       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;
    • addServiceLogGenerationRulesBuilder

      public LoggingConfig.ServiceLogGenerationRule.Builder addServiceLogGenerationRulesBuilder(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;
    • getServiceLogGenerationRulesBuilderList

      public List<LoggingConfig.ServiceLogGenerationRule.Builder> getServiceLogGenerationRulesBuilderList()
       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;