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

Google.Protobuf.WellKnownTypes.Value

Represents a JSON 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 is an invalid state.
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 JSON boolean (`true` or `false` literal in JSON).

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 JSON array.

public NullValue NullValue { get; set; }

Represents a JSON `null`.

public double NumberValue { get; set; }

Represents a JSON number. Must not be `NaN`, `Infinity` or `-Infinity`, since those are not supported in JSON. This also cannot represent large Int64 values, since JSON format generally does not support them in its number type.

public string StringValue { get; set; }

Represents a JSON string.

public Struct StructValue { get; set; }

Represents a JSON object.

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)