Class PlatformLogsSettings.Builder (1.147.0)

public static final class PlatformLogsSettings.Builder extends GeneratedMessage.Builder<PlatformLogsSettings.Builder> implements PlatformLogsSettingsOrBuilder

Settings for Platform Logs produced by Pub/Sub.

Protobuf type google.pubsub.v1.PlatformLogsSettings

Static Methods

getDescriptor()

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

Methods

build()

public PlatformLogsSettings build()
Returns
Type Description
PlatformLogsSettings

buildPartial()

public PlatformLogsSettings buildPartial()
Returns
Type Description
PlatformLogsSettings

clear()

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

clearSeverity()

public PlatformLogsSettings.Builder clearSeverity()

Optional. The minimum severity level of Platform Logs that will be written.

.google.pubsub.v1.PlatformLogsSettings.Severity severity = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
PlatformLogsSettings.Builder

This builder for chaining.

getDefaultInstanceForType()

public PlatformLogsSettings getDefaultInstanceForType()
Returns
Type Description
PlatformLogsSettings

getDescriptorForType()

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

getSeverity()

public PlatformLogsSettings.Severity getSeverity()

Optional. The minimum severity level of Platform Logs that will be written.

.google.pubsub.v1.PlatformLogsSettings.Severity severity = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
PlatformLogsSettings.Severity

The severity.

getSeverityValue()

public int getSeverityValue()

Optional. The minimum severity level of Platform Logs that will be written.

.google.pubsub.v1.PlatformLogsSettings.Severity severity = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The enum numeric value on the wire for severity.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeFrom(PlatformLogsSettings other)

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

setSeverity(PlatformLogsSettings.Severity value)

public PlatformLogsSettings.Builder setSeverity(PlatformLogsSettings.Severity value)

Optional. The minimum severity level of Platform Logs that will be written.

.google.pubsub.v1.PlatformLogsSettings.Severity severity = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value PlatformLogsSettings.Severity

The severity to set.

Returns
Type Description
PlatformLogsSettings.Builder

This builder for chaining.

setSeverityValue(int value)

public PlatformLogsSettings.Builder setSeverityValue(int value)

Optional. The minimum severity level of Platform Logs that will be written.

.google.pubsub.v1.PlatformLogsSettings.Severity severity = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value int

The enum numeric value on the wire for severity to set.

Returns
Type Description
PlatformLogsSettings.Builder

This builder for chaining.