<PackageReference Include="Serilog.Sinks.OpenTelemetry" Version="4.2.0" />

OpenTelemetry.Proto.Common.V1.AnyValue

sealed class AnyValue : IMessage<AnyValue>, IMessage, IEquatable<AnyValue>, IDeepCloneable<AnyValue>, IBufferMessage
AnyValue is used to represent any type of attribute value. AnyValue may contain a primitive value such as a string or integer or it may contain an arbitrary nested object containing arrays, key-value lists and primitives.
namespace OpenTelemetry.Proto.Common.V1 { internal sealed class AnyValue : IEquatable<AnyValue> { public enum ValueOneofCase { None, StringValue, BoolValue, IntValue, DoubleValue, ArrayValue, KvlistValue, BytesValue } public const int StringValueFieldNumber = 1; public const int BoolValueFieldNumber = 2; public const int IntValueFieldNumber = 3; public const int DoubleValueFieldNumber = 4; public const int ArrayValueFieldNumber = 5; public const int KvlistValueFieldNumber = 6; public const int BytesValueFieldNumber = 7; public static MessageParser<AnyValue> Parser { get; } public static MessageDescriptor Descriptor { get; } MessageDescriptor Descriptor { get; } public string StringValue { get; set; } public bool BoolValue { get; set; } public long IntValue { get; set; } public double DoubleValue { get; set; } public ArrayValue ArrayValue { get; set; } public KeyValueList KvlistValue { get; set; } public ByteString BytesValue { get; set; } public ValueOneofCase ValueCase { get; } public AnyValue(); public AnyValue(AnyValue other); public AnyValue Clone(); public void ClearValue(); public bool Equals(AnyValue other); public void WriteTo(CodedOutputStream output); void InternalWriteTo(ref WriteContext output); public int CalculateSize(); public void MergeFrom(AnyValue other); public void MergeFrom(CodedInputStream input); void InternalMergeFrom(ref ParseContext input); } }