public static final class WasmPlugin.LogConfig.Builder extends GeneratedMessageV3.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
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > WasmPlugin.LogConfig.BuilderImplements
WasmPlugin.LogConfigOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns | |
---|---|
Type | Description |
Descriptor |
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public WasmPlugin.LogConfig.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
value |
Object |
Returns | |
---|---|
Type | Description |
WasmPlugin.LogConfig.Builder |
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 |
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. |
clearField(Descriptors.FieldDescriptor field)
public WasmPlugin.LogConfig.Builder clearField(Descriptors.FieldDescriptor field)
Parameter | |
---|---|
Name | Description |
field |
FieldDescriptor |
Returns | |
---|---|
Type | Description |
WasmPlugin.LogConfig.Builder |
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. |
clearOneof(Descriptors.OneofDescriptor oneof)
public WasmPlugin.LogConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter | |
---|---|
Name | Description |
oneof |
OneofDescriptor |
Returns | |
---|---|
Type | Description |
WasmPlugin.LogConfig.Builder |
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. |
clone()
public WasmPlugin.LogConfig.Builder clone()
Returns | |
---|---|
Type | Description |
WasmPlugin.LogConfig.Builder |
getDefaultInstanceForType()
public WasmPlugin.LogConfig getDefaultInstanceForType()
Returns | |
---|---|
Type | Description |
WasmPlugin.LogConfig |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns | |
---|---|
Type | Description |
Descriptor |
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 GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns | |
---|---|
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Returns | |
---|---|
Type | Description |
boolean |
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 |
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 |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final WasmPlugin.LogConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields |
UnknownFieldSet |
Returns | |
---|---|
Type | Description |
WasmPlugin.LogConfig.Builder |
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. |
setField(Descriptors.FieldDescriptor field, Object value)
public WasmPlugin.LogConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
value |
Object |
Returns | |
---|---|
Type | Description |
WasmPlugin.LogConfig.Builder |
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. |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public WasmPlugin.LogConfig.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
index |
int |
value |
Object |
Returns | |
---|---|
Type | Description |
WasmPlugin.LogConfig.Builder |
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. |
setUnknownFields(UnknownFieldSet unknownFields)
public final WasmPlugin.LogConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields |
UnknownFieldSet |
Returns | |
---|---|
Type | Description |
WasmPlugin.LogConfig.Builder |