Class LoggingConfig.Builder (2.54.0)

public static final class LoggingConfig.Builder extends GeneratedMessageV3.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

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addAllServiceLogGenerationRules(Iterable<? extends LoggingConfig.ServiceLogGenerationRule> values)

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 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;

Parameter
Name Description
values Iterable<? extends com.google.cloud.retail.v2alpha.LoggingConfig.ServiceLogGenerationRule>
Returns
Type Description
LoggingConfig.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public LoggingConfig.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
LoggingConfig.Builder
Overrides

addServiceLogGenerationRules(LoggingConfig.ServiceLogGenerationRule value)

public LoggingConfig.Builder addServiceLogGenerationRules(LoggingConfig.ServiceLogGenerationRule value)

Controls logging configurations more granularly for each supported service.

This overrides the 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;

Parameter
Name Description
value LoggingConfig.ServiceLogGenerationRule
Returns
Type Description
LoggingConfig.Builder

addServiceLogGenerationRules(LoggingConfig.ServiceLogGenerationRule.Builder builderForValue)

public LoggingConfig.Builder addServiceLogGenerationRules(LoggingConfig.ServiceLogGenerationRule.Builder builderForValue)

Controls logging configurations more granularly for each supported service.

This overrides the 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;

Parameter
Name Description
builderForValue LoggingConfig.ServiceLogGenerationRule.Builder
Returns
Type Description
LoggingConfig.Builder

addServiceLogGenerationRules(int index, LoggingConfig.ServiceLogGenerationRule value)

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 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;

Parameters
Name Description
index int
value LoggingConfig.ServiceLogGenerationRule
Returns
Type Description
LoggingConfig.Builder

addServiceLogGenerationRules(int index, LoggingConfig.ServiceLogGenerationRule.Builder builderForValue)

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 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;

Parameters
Name Description
index int
builderForValue LoggingConfig.ServiceLogGenerationRule.Builder
Returns
Type Description
LoggingConfig.Builder

addServiceLogGenerationRulesBuilder()

public LoggingConfig.ServiceLogGenerationRule.Builder addServiceLogGenerationRulesBuilder()

Controls logging configurations more granularly for each supported service.

This overrides the 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;

Returns
Type Description
LoggingConfig.ServiceLogGenerationRule.Builder

addServiceLogGenerationRulesBuilder(int index)

public LoggingConfig.ServiceLogGenerationRule.Builder addServiceLogGenerationRulesBuilder(int index)

Controls logging configurations more granularly for each supported service.

This overrides the 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;

Parameter
Name Description
index int
Returns
Type Description
LoggingConfig.ServiceLogGenerationRule.Builder

build()

public LoggingConfig build()
Returns
Type Description
LoggingConfig

buildPartial()

public LoggingConfig buildPartial()
Returns
Type Description
LoggingConfig

clear()

public LoggingConfig.Builder clear()
Returns
Type Description
LoggingConfig.Builder
Overrides

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 for service level control.

.google.cloud.retail.v2alpha.LoggingConfig.LogGenerationRule default_log_generation_rule = 2;

Returns
Type Description
LoggingConfig.Builder

clearField(Descriptors.FieldDescriptor field)

public LoggingConfig.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
LoggingConfig.Builder
Overrides

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
Type Description
LoggingConfig.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public LoggingConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
LoggingConfig.Builder
Overrides

clearServiceLogGenerationRules()

public LoggingConfig.Builder clearServiceLogGenerationRules()

Controls logging configurations more granularly for each supported service.

This overrides the 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;

Returns
Type Description
LoggingConfig.Builder

clone()

public LoggingConfig.Builder clone()
Returns
Type Description
LoggingConfig.Builder
Overrides

getDefaultInstanceForType()

public LoggingConfig getDefaultInstanceForType()
Returns
Type Description
LoggingConfig

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 for service level control.

.google.cloud.retail.v2alpha.LoggingConfig.LogGenerationRule default_log_generation_rule = 2;

Returns
Type Description
LoggingConfig.LogGenerationRule

The defaultLogGenerationRule.

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 for service level control.

.google.cloud.retail.v2alpha.LoggingConfig.LogGenerationRule default_log_generation_rule = 2;

Returns
Type Description
LoggingConfig.LogGenerationRule.Builder

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 for service level control.

.google.cloud.retail.v2alpha.LoggingConfig.LogGenerationRule default_log_generation_rule = 2;

Returns
Type Description
LoggingConfig.LogGenerationRuleOrBuilder

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

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];

Returns
Type Description
String

The name.

getNameBytes()

public 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];

Returns
Type Description
ByteString

The bytes for name.

getServiceLogGenerationRules(int index)

public LoggingConfig.ServiceLogGenerationRule getServiceLogGenerationRules(int index)

Controls logging configurations more granularly for each supported service.

This overrides the 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;

Parameter
Name Description
index int
Returns
Type Description
LoggingConfig.ServiceLogGenerationRule

getServiceLogGenerationRulesBuilder(int index)

public LoggingConfig.ServiceLogGenerationRule.Builder getServiceLogGenerationRulesBuilder(int index)

Controls logging configurations more granularly for each supported service.

This overrides the 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;

Parameter
Name Description
index int
Returns
Type Description
LoggingConfig.ServiceLogGenerationRule.Builder

getServiceLogGenerationRulesBuilderList()

public List<LoggingConfig.ServiceLogGenerationRule.Builder> getServiceLogGenerationRulesBuilderList()

Controls logging configurations more granularly for each supported service.

This overrides the 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;

Returns
Type Description
List<Builder>

getServiceLogGenerationRulesCount()

public int getServiceLogGenerationRulesCount()

Controls logging configurations more granularly for each supported service.

This overrides the 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;

Returns
Type Description
int

getServiceLogGenerationRulesList()

public List<LoggingConfig.ServiceLogGenerationRule> getServiceLogGenerationRulesList()

Controls logging configurations more granularly for each supported service.

This overrides the 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;

Returns
Type Description
List<ServiceLogGenerationRule>

getServiceLogGenerationRulesOrBuilder(int index)

public LoggingConfig.ServiceLogGenerationRuleOrBuilder getServiceLogGenerationRulesOrBuilder(int index)

Controls logging configurations more granularly for each supported service.

This overrides the 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;

Parameter
Name Description
index int
Returns
Type Description
LoggingConfig.ServiceLogGenerationRuleOrBuilder

getServiceLogGenerationRulesOrBuilderList()

public List<? extends LoggingConfig.ServiceLogGenerationRuleOrBuilder> getServiceLogGenerationRulesOrBuilderList()

Controls logging configurations more granularly for each supported service.

This overrides the 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;

Returns
Type Description
List<? extends com.google.cloud.retail.v2alpha.LoggingConfig.ServiceLogGenerationRuleOrBuilder>

hasDefaultLogGenerationRule()

public boolean hasDefaultLogGenerationRule()

The log generation rule that applies by default to all services supporting log generation. It can be overridden by ServiceLogGenerationRule for service level control.

.google.cloud.retail.v2alpha.LoggingConfig.LogGenerationRule default_log_generation_rule = 2;

Returns
Type Description
boolean

Whether the defaultLogGenerationRule field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeDefaultLogGenerationRule(LoggingConfig.LogGenerationRule value)

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 for service level control.

.google.cloud.retail.v2alpha.LoggingConfig.LogGenerationRule default_log_generation_rule = 2;

Parameter
Name Description
value LoggingConfig.LogGenerationRule
Returns
Type Description
LoggingConfig.Builder

mergeFrom(LoggingConfig other)

public LoggingConfig.Builder mergeFrom(LoggingConfig other)
Parameter
Name Description
other LoggingConfig
Returns
Type Description
LoggingConfig.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public LoggingConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
LoggingConfig.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public LoggingConfig.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
LoggingConfig.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final LoggingConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
LoggingConfig.Builder
Overrides

removeServiceLogGenerationRules(int index)

public LoggingConfig.Builder removeServiceLogGenerationRules(int index)

Controls logging configurations more granularly for each supported service.

This overrides the 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;

Parameter
Name Description
index int
Returns
Type Description
LoggingConfig.Builder

setDefaultLogGenerationRule(LoggingConfig.LogGenerationRule value)

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 for service level control.

.google.cloud.retail.v2alpha.LoggingConfig.LogGenerationRule default_log_generation_rule = 2;

Parameter
Name Description
value LoggingConfig.LogGenerationRule
Returns
Type Description
LoggingConfig.Builder

setDefaultLogGenerationRule(LoggingConfig.LogGenerationRule.Builder builderForValue)

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 for service level control.

.google.cloud.retail.v2alpha.LoggingConfig.LogGenerationRule default_log_generation_rule = 2;

Parameter
Name Description
builderForValue LoggingConfig.LogGenerationRule.Builder
Returns
Type Description
LoggingConfig.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public LoggingConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
LoggingConfig.Builder
Overrides

setName(String value)

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];

Parameter
Name Description
value String

The name to set.

Returns
Type Description
LoggingConfig.Builder

This builder for chaining.

setNameBytes(ByteString value)

public LoggingConfig.Builder setNameBytes(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];

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
LoggingConfig.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public LoggingConfig.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
LoggingConfig.Builder
Overrides

setServiceLogGenerationRules(int index, LoggingConfig.ServiceLogGenerationRule value)

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 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;

Parameters
Name Description
index int
value LoggingConfig.ServiceLogGenerationRule
Returns
Type Description
LoggingConfig.Builder

setServiceLogGenerationRules(int index, LoggingConfig.ServiceLogGenerationRule.Builder builderForValue)

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 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;

Parameters
Name Description
index int
builderForValue LoggingConfig.ServiceLogGenerationRule.Builder
Returns
Type Description
LoggingConfig.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final LoggingConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
LoggingConfig.Builder
Overrides