Class WasmPlugin.LogConfig.Builder (0.39.0)

public static final class WasmPlugin.LogConfig.Builder extends GeneratedMessage.Builder<WasmPlugin.LogConfig.Builder> implements WasmPlugin.LogConfigOrBuilder

Specifies the logging options for the activity performed by this plugin. If logging is enabled, plugin logs are exported to Cloud Logging.

Protobuf type google.cloud.networkservices.v1.WasmPlugin.LogConfig

Static Methods

getDescriptor()

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

Methods

build()

public WasmPlugin.LogConfig build()
Returns
Type Description
WasmPlugin.LogConfig

buildPartial()

public WasmPlugin.LogConfig buildPartial()
Returns
Type Description
WasmPlugin.LogConfig

clear()

public WasmPlugin.LogConfig.Builder clear()
Returns
Type Description
WasmPlugin.LogConfig.Builder
Overrides

clearEnable()

public WasmPlugin.LogConfig.Builder clearEnable()

Optional. Specifies whether to enable logging for activity by this plugin.

Defaults to false.

bool enable = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
WasmPlugin.LogConfig.Builder

This builder for chaining.

clearMinLogLevel()

public WasmPlugin.LogConfig.Builder clearMinLogLevel()

Non-empty default. Specificies the lowest level of the plugin logs that are exported to Cloud Logging. This setting relates to the logs generated by using logging statements in your Wasm code.

This field is can be set only if logging is enabled for the plugin.

If the field is not provided when logging is enabled, it is set to INFO by default.

.google.cloud.networkservices.v1.WasmPlugin.LogConfig.LogLevel min_log_level = 3 [(.google.api.field_behavior) = NON_EMPTY_DEFAULT];

Returns
Type Description
WasmPlugin.LogConfig.Builder

This builder for chaining.

clearSampleRate()

public WasmPlugin.LogConfig.Builder clearSampleRate()

Non-empty default. Configures the sampling rate of activity logs, where 1.0 means all logged activity is reported and 0.0 means no activity is reported. A floating point value between 0.0 and 1.0 indicates that a percentage of log messages is stored.

The default value when logging is enabled is 1.0. The value of the field must be between 0 and 1 (inclusive).

This field can be specified only if logging is enabled for this plugin.

float sample_rate = 2 [(.google.api.field_behavior) = NON_EMPTY_DEFAULT];

Returns
Type Description
WasmPlugin.LogConfig.Builder

This builder for chaining.

getDefaultInstanceForType()

public WasmPlugin.LogConfig getDefaultInstanceForType()
Returns
Type Description
WasmPlugin.LogConfig

getDescriptorForType()

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

getEnable()

public boolean getEnable()

Optional. Specifies whether to enable logging for activity by this plugin.

Defaults to false.

bool enable = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

The enable.

getMinLogLevel()

public WasmPlugin.LogConfig.LogLevel getMinLogLevel()

Non-empty default. Specificies the lowest level of the plugin logs that are exported to Cloud Logging. This setting relates to the logs generated by using logging statements in your Wasm code.

This field is can be set only if logging is enabled for the plugin.

If the field is not provided when logging is enabled, it is set to INFO by default.

.google.cloud.networkservices.v1.WasmPlugin.LogConfig.LogLevel min_log_level = 3 [(.google.api.field_behavior) = NON_EMPTY_DEFAULT];

Returns
Type Description
WasmPlugin.LogConfig.LogLevel

The minLogLevel.

getMinLogLevelValue()

public int getMinLogLevelValue()

Non-empty default. Specificies the lowest level of the plugin logs that are exported to Cloud Logging. This setting relates to the logs generated by using logging statements in your Wasm code.

This field is can be set only if logging is enabled for the plugin.

If the field is not provided when logging is enabled, it is set to INFO by default.

.google.cloud.networkservices.v1.WasmPlugin.LogConfig.LogLevel min_log_level = 3 [(.google.api.field_behavior) = NON_EMPTY_DEFAULT];

Returns
Type Description
int

The enum numeric value on the wire for minLogLevel.

getSampleRate()

public float getSampleRate()

Non-empty default. Configures the sampling rate of activity logs, where 1.0 means all logged activity is reported and 0.0 means no activity is reported. A floating point value between 0.0 and 1.0 indicates that a percentage of log messages is stored.

The default value when logging is enabled is 1.0. The value of the field must be between 0 and 1 (inclusive).

This field can be specified only if logging is enabled for this plugin.

float sample_rate = 2 [(.google.api.field_behavior) = NON_EMPTY_DEFAULT];

Returns
Type Description
float

The sampleRate.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(WasmPlugin.LogConfig other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setEnable(boolean value)

public WasmPlugin.LogConfig.Builder setEnable(boolean value)

Optional. Specifies whether to enable logging for activity by this plugin.

Defaults to false.

bool enable = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value boolean

The enable to set.

Returns
Type Description
WasmPlugin.LogConfig.Builder

This builder for chaining.

setMinLogLevel(WasmPlugin.LogConfig.LogLevel value)

public WasmPlugin.LogConfig.Builder setMinLogLevel(WasmPlugin.LogConfig.LogLevel value)

Non-empty default. Specificies the lowest level of the plugin logs that are exported to Cloud Logging. This setting relates to the logs generated by using logging statements in your Wasm code.

This field is can be set only if logging is enabled for the plugin.

If the field is not provided when logging is enabled, it is set to INFO by default.

.google.cloud.networkservices.v1.WasmPlugin.LogConfig.LogLevel min_log_level = 3 [(.google.api.field_behavior) = NON_EMPTY_DEFAULT];

Parameter
Name Description
value WasmPlugin.LogConfig.LogLevel

The minLogLevel to set.

Returns
Type Description
WasmPlugin.LogConfig.Builder

This builder for chaining.

setMinLogLevelValue(int value)

public WasmPlugin.LogConfig.Builder setMinLogLevelValue(int value)

Non-empty default. Specificies the lowest level of the plugin logs that are exported to Cloud Logging. This setting relates to the logs generated by using logging statements in your Wasm code.

This field is can be set only if logging is enabled for the plugin.

If the field is not provided when logging is enabled, it is set to INFO by default.

.google.cloud.networkservices.v1.WasmPlugin.LogConfig.LogLevel min_log_level = 3 [(.google.api.field_behavior) = NON_EMPTY_DEFAULT];

Parameter
Name Description
value int

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

Returns
Type Description
WasmPlugin.LogConfig.Builder

This builder for chaining.

setSampleRate(float value)

public WasmPlugin.LogConfig.Builder setSampleRate(float value)

Non-empty default. Configures the sampling rate of activity logs, where 1.0 means all logged activity is reported and 0.0 means no activity is reported. A floating point value between 0.0 and 1.0 indicates that a percentage of log messages is stored.

The default value when logging is enabled is 1.0. The value of the field must be between 0 and 1 (inclusive).

This field can be specified only if logging is enabled for this plugin.

float sample_rate = 2 [(.google.api.field_behavior) = NON_EMPTY_DEFAULT];

Parameter
Name Description
value float

The sampleRate to set.

Returns
Type Description
WasmPlugin.LogConfig.Builder

This builder for chaining.