Class LoggingConfig.ServiceLogGenerationRule.Builder (2.50.0)

public static final class LoggingConfig.ServiceLogGenerationRule.Builder extends GeneratedMessageV3.Builder<LoggingConfig.ServiceLogGenerationRule.Builder> implements LoggingConfig.ServiceLogGenerationRuleOrBuilder

The granular logging configurations for supported services.

Protobuf type google.cloud.retail.v2alpha.LoggingConfig.ServiceLogGenerationRule

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public LoggingConfig.ServiceLogGenerationRule build()
Returns
Type Description
LoggingConfig.ServiceLogGenerationRule

buildPartial()

public LoggingConfig.ServiceLogGenerationRule buildPartial()
Returns
Type Description
LoggingConfig.ServiceLogGenerationRule

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearLogGenerationRule()

public LoggingConfig.ServiceLogGenerationRule.Builder clearLogGenerationRule()

The log generation rule that applies to this service.

.google.cloud.retail.v2alpha.LoggingConfig.LogGenerationRule log_generation_rule = 3;

Returns
Type Description
LoggingConfig.ServiceLogGenerationRule.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearServiceName()

public LoggingConfig.ServiceLogGenerationRule.Builder clearServiceName()

Required. Supported service names: "CatalogService", "CompletionService", "ControlService", "MerchantCenterStreaming", "ModelService", "PredictionService", "ProductService", "ServingConfigService", "UserEventService",

string service_name = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
LoggingConfig.ServiceLogGenerationRule.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public LoggingConfig.ServiceLogGenerationRule getDefaultInstanceForType()
Returns
Type Description
LoggingConfig.ServiceLogGenerationRule

getDescriptorForType()

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

getLogGenerationRule()

public LoggingConfig.LogGenerationRule getLogGenerationRule()

The log generation rule that applies to this service.

.google.cloud.retail.v2alpha.LoggingConfig.LogGenerationRule log_generation_rule = 3;

Returns
Type Description
LoggingConfig.LogGenerationRule

The logGenerationRule.

getLogGenerationRuleBuilder()

public LoggingConfig.LogGenerationRule.Builder getLogGenerationRuleBuilder()

The log generation rule that applies to this service.

.google.cloud.retail.v2alpha.LoggingConfig.LogGenerationRule log_generation_rule = 3;

Returns
Type Description
LoggingConfig.LogGenerationRule.Builder

getLogGenerationRuleOrBuilder()

public LoggingConfig.LogGenerationRuleOrBuilder getLogGenerationRuleOrBuilder()

The log generation rule that applies to this service.

.google.cloud.retail.v2alpha.LoggingConfig.LogGenerationRule log_generation_rule = 3;

Returns
Type Description
LoggingConfig.LogGenerationRuleOrBuilder

getServiceName()

public String getServiceName()

Required. Supported service names: "CatalogService", "CompletionService", "ControlService", "MerchantCenterStreaming", "ModelService", "PredictionService", "ProductService", "ServingConfigService", "UserEventService",

string service_name = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The serviceName.

getServiceNameBytes()

public ByteString getServiceNameBytes()

Required. Supported service names: "CatalogService", "CompletionService", "ControlService", "MerchantCenterStreaming", "ModelService", "PredictionService", "ProductService", "ServingConfigService", "UserEventService",

string service_name = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for serviceName.

hasLogGenerationRule()

public boolean hasLogGenerationRule()

The log generation rule that applies to this service.

.google.cloud.retail.v2alpha.LoggingConfig.LogGenerationRule log_generation_rule = 3;

Returns
Type Description
boolean

Whether the logGenerationRule field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(LoggingConfig.ServiceLogGenerationRule other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeLogGenerationRule(LoggingConfig.LogGenerationRule value)

public LoggingConfig.ServiceLogGenerationRule.Builder mergeLogGenerationRule(LoggingConfig.LogGenerationRule value)

The log generation rule that applies to this service.

.google.cloud.retail.v2alpha.LoggingConfig.LogGenerationRule log_generation_rule = 3;

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setLogGenerationRule(LoggingConfig.LogGenerationRule value)

public LoggingConfig.ServiceLogGenerationRule.Builder setLogGenerationRule(LoggingConfig.LogGenerationRule value)

The log generation rule that applies to this service.

.google.cloud.retail.v2alpha.LoggingConfig.LogGenerationRule log_generation_rule = 3;

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

setLogGenerationRule(LoggingConfig.LogGenerationRule.Builder builderForValue)

public LoggingConfig.ServiceLogGenerationRule.Builder setLogGenerationRule(LoggingConfig.LogGenerationRule.Builder builderForValue)

The log generation rule that applies to this service.

.google.cloud.retail.v2alpha.LoggingConfig.LogGenerationRule log_generation_rule = 3;

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

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

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

setServiceName(String value)

public LoggingConfig.ServiceLogGenerationRule.Builder setServiceName(String value)

Required. Supported service names: "CatalogService", "CompletionService", "ControlService", "MerchantCenterStreaming", "ModelService", "PredictionService", "ProductService", "ServingConfigService", "UserEventService",

string service_name = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The serviceName to set.

Returns
Type Description
LoggingConfig.ServiceLogGenerationRule.Builder

This builder for chaining.

setServiceNameBytes(ByteString value)

public LoggingConfig.ServiceLogGenerationRule.Builder setServiceNameBytes(ByteString value)

Required. Supported service names: "CatalogService", "CompletionService", "ControlService", "MerchantCenterStreaming", "ModelService", "PredictionService", "ProductService", "ServingConfigService", "UserEventService",

string service_name = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for serviceName to set.

Returns
Type Description
LoggingConfig.ServiceLogGenerationRule.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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