<PackageReference Include="Google.Protobuf" Version="3.34.2" />

Google.Protobuf.WellKnownTypes.Value

`Value` represents a dynamically typed value which can be either null, a number, a string, a boolean, a recursive struct value, or a list of values. A producer of value is expected to set one of these variants. Absence of any variant indicates an error. The JSON representation for `Value` is JSON value.
public enum KindOneofCase

Enum of possible cases for the "kind" oneof.

public const int BoolValueFieldNumber = 4

Field number for the "bool_value" field.

public const int ListValueFieldNumber = 6

Field number for the "list_value" field.

public const int NullValueFieldNumber = 1

Field number for the "null_value" field.

public const int NumberValueFieldNumber = 2

Field number for the "number_value" field.

public const int StringValueFieldNumber = 3

Field number for the "string_value" field.

public const int StructValueFieldNumber = 5

Field number for the "struct_value" field.

public static MessageDescriptor Descriptor { get; }

public static MessageParser<Value> Parser { get; }

public bool BoolValue { get; set; }

Represents a boolean value.

public bool HasBoolValue { get; }

Gets whether the "bool_value" field is set

public bool HasNullValue { get; }

Gets whether the "null_value" field is set

public bool HasNumberValue { get; }

Gets whether the "number_value" field is set

public bool HasStringValue { get; }

Gets whether the "string_value" field is set

public KindOneofCase KindCase { get; }

public ListValue ListValue { get; set; }

Represents a repeated `Value`.

public NullValue NullValue { get; set; }

Represents a null value.

public double NumberValue { get; set; }

Represents a double value.

public string StringValue { get; set; }

Represents a string value.

public Struct StructValue { get; set; }

Represents a structured value.

public Value()

public Value(Value other)

public static Value ForBool(bool value)

Convenience method to create a Value message with a Boolean value.

public static Value ForList(Value[] values)

Convenience method to create a Value message with an initial list of values.

public static Value ForNull()

Convenience method to create a Value message with a null initial value.

public static Value ForNumber(double value)

Convenience method to create a Value message with a number value.

public static Value ForString(string value)

Convenience method to create a Value message with a string value.

public static Value ForStruct(Struct value)

Convenience method to create a Value message with an initial struct value

public int CalculateSize()

public void ClearBoolValue()

Clears the value of the oneof if it's currently set to "bool_value"

public void ClearKind()

public void ClearNullValue()

Clears the value of the oneof if it's currently set to "null_value"

public void ClearNumberValue()

Clears the value of the oneof if it's currently set to "number_value"

public void ClearStringValue()

Clears the value of the oneof if it's currently set to "string_value"

public Value Clone()

public bool Equals(Value other)

public void MergeFrom(Value other)

public void MergeFrom(CodedInputStream input)

public void WriteTo(CodedOutputStream output)