Class WasmPlugin.LogConfig (0.23.0)

public static final class WasmPlugin.LogConfig extends GeneratedMessageV3 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 Fields

ENABLE_FIELD_NUMBER

public static final int ENABLE_FIELD_NUMBER
Field Value
Type Description
int

MIN_LOG_LEVEL_FIELD_NUMBER

public static final int MIN_LOG_LEVEL_FIELD_NUMBER
Field Value
Type Description
int

SAMPLE_RATE_FIELD_NUMBER

public static final int SAMPLE_RATE_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static WasmPlugin.LogConfig getDefaultInstance()
Returns
Type Description
WasmPlugin.LogConfig

getDescriptor()

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

newBuilder()

public static WasmPlugin.LogConfig.Builder newBuilder()
Returns
Type Description
WasmPlugin.LogConfig.Builder

newBuilder(WasmPlugin.LogConfig prototype)

public static WasmPlugin.LogConfig.Builder newBuilder(WasmPlugin.LogConfig prototype)
Parameter
Name Description
prototype WasmPlugin.LogConfig
Returns
Type Description
WasmPlugin.LogConfig.Builder

parseDelimitedFrom(InputStream input)

public static WasmPlugin.LogConfig parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
WasmPlugin.LogConfig
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static WasmPlugin.LogConfig parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
WasmPlugin.LogConfig
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static WasmPlugin.LogConfig parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
WasmPlugin.LogConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static WasmPlugin.LogConfig parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
WasmPlugin.LogConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static WasmPlugin.LogConfig parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
WasmPlugin.LogConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static WasmPlugin.LogConfig parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
WasmPlugin.LogConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static WasmPlugin.LogConfig parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
WasmPlugin.LogConfig
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static WasmPlugin.LogConfig parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
WasmPlugin.LogConfig
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static WasmPlugin.LogConfig parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
WasmPlugin.LogConfig
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static WasmPlugin.LogConfig parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
WasmPlugin.LogConfig
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static WasmPlugin.LogConfig parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
WasmPlugin.LogConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static WasmPlugin.LogConfig parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
WasmPlugin.LogConfig
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<WasmPlugin.LogConfig> parser()
Returns
Type Description
Parser<LogConfig>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

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

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.

getParserForType()

public Parser<WasmPlugin.LogConfig> getParserForType()
Returns
Type Description
Parser<LogConfig>
Overrides

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.

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public WasmPlugin.LogConfig.Builder newBuilderForType()
Returns
Type Description
WasmPlugin.LogConfig.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected WasmPlugin.LogConfig.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
WasmPlugin.LogConfig.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public WasmPlugin.LogConfig.Builder toBuilder()
Returns
Type Description
WasmPlugin.LogConfig.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException