public static final class WasmPlugin.LogConfig extends GeneratedMessage 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
Inherited Members
com.google.protobuf.GeneratedMessage.<ContainingT,T>newFileScopedGeneratedExtension(java.lang.Class<?>,com.google.protobuf.Message)
com.google.protobuf.GeneratedMessage.<ContainingT,T>newMessageScopedGeneratedExtension(com.google.protobuf.Message,int,java.lang.Class<?>,com.google.protobuf.Message)
com.google.protobuf.GeneratedMessage.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessage.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessage.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessage.<V>serializeBooleanMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Boolean,V>,com.google.protobuf.MapEntry<java.lang.Boolean,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeIntegerMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Integer,V>,com.google.protobuf.MapEntry<java.lang.Integer,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeLongMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Long,V>,com.google.protobuf.MapEntry<java.lang.Long,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeStringMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.String,V>,com.google.protobuf.MapEntry<java.lang.String,V>,int)
com.google.protobuf.GeneratedMessage.canUseUnsafe()
com.google.protobuf.GeneratedMessage.emptyBooleanList()
com.google.protobuf.GeneratedMessage.emptyDoubleList()
com.google.protobuf.GeneratedMessage.emptyFloatList()
com.google.protobuf.GeneratedMessage.emptyIntList()
com.google.protobuf.GeneratedMessage.emptyLongList()
com.google.protobuf.GeneratedMessage.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessage.isStringEmpty(java.lang.Object)
com.google.protobuf.GeneratedMessage.mergeFromAndMakeImmutableInternal(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite)
com.google.protobuf.GeneratedMessage.newInstance(com.google.protobuf.GeneratedMessage.UnusedPrivateParameter)
com.google.protobuf.GeneratedMessage.parseUnknownFieldProto3(com.google.protobuf.CodedInputStream,com.google.protobuf.UnknownFieldSet.Builder,com.google.protobuf.ExtensionRegistryLite,int)
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()
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
newBuilder()
public static WasmPlugin.LogConfig.Builder newBuilder()
newBuilder(WasmPlugin.LogConfig prototype)
public static WasmPlugin.LogConfig.Builder newBuilder(WasmPlugin.LogConfig prototype)
public static WasmPlugin.LogConfig parseDelimitedFrom(InputStream input)
public static WasmPlugin.LogConfig parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(byte[] data)
public static WasmPlugin.LogConfig parseFrom(byte[] data)
| Parameter |
| Name |
Description |
data |
byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static WasmPlugin.LogConfig parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteString data)
public static WasmPlugin.LogConfig parseFrom(ByteString data)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static WasmPlugin.LogConfig parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static WasmPlugin.LogConfig parseFrom(CodedInputStream input)
public static WasmPlugin.LogConfig parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static WasmPlugin.LogConfig parseFrom(InputStream input)
public static WasmPlugin.LogConfig parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteBuffer data)
public static WasmPlugin.LogConfig parseFrom(ByteBuffer data)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static WasmPlugin.LogConfig parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
parser()
public static Parser<WasmPlugin.LogConfig> parser()
Methods
equals(Object obj)
public boolean equals(Object obj)
| Parameter |
| Name |
Description |
obj |
Object
|
Overrides
getDefaultInstanceForType()
public WasmPlugin.LogConfig getDefaultInstanceForType()
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];
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()
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()
| Returns |
| Type |
Description |
int |
|
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
newBuilderForType()
public WasmPlugin.LogConfig.Builder newBuilderForType()
newBuilderForType(AbstractMessage.BuilderParent parent)
protected WasmPlugin.LogConfig.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Overrides
toBuilder()
public WasmPlugin.LogConfig.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides