Class Value (2.5.0)

public sealed class Value : IMessage<Value>, IEquatable<Value>, IDeepCloneable<Value>, IBufferMessage, IMessage

A message that can hold any of the supported value types.

Inheritance

Object > Value

Namespace

Google.Cloud.Firestore.V1

Assembly

Google.Cloud.Firestore.V1.dll

Constructors

Value()

public Value()

Value(Value)

public Value(Value other)
Parameter
NameDescription
otherValue

Properties

ArrayValue

public ArrayValue ArrayValue { get; set; }

An array value.

Cannot directly contain another array value, though can contain an map which contains another array.

Property Value
TypeDescription
ArrayValue

BooleanValue

public bool BooleanValue { get; set; }

A boolean value.

Property Value
TypeDescription
Boolean

BytesValue

public ByteString BytesValue { get; set; }

A bytes value.

Must not exceed 1 MiB - 89 bytes. Only the first 1,500 bytes are considered by queries.

Property Value
TypeDescription
ByteString

DoubleValue

public double DoubleValue { get; set; }

A double value.

Property Value
TypeDescription
Double

GeoPointValue

public LatLng GeoPointValue { get; set; }

A geo point value representing a point on the surface of Earth.

Property Value
TypeDescription
LatLng

IntegerValue

public long IntegerValue { get; set; }

An integer value.

Property Value
TypeDescription
Int64

MapValue

public MapValue MapValue { get; set; }

A map value.

Property Value
TypeDescription
MapValue

NullValue

public NullValue NullValue { get; set; }

A null value.

Property Value
TypeDescription
NullValue

ReferenceValue

public string ReferenceValue { get; set; }

A reference to a document. For example: projects/{project_id}/databases/{database_id}/documents/{document_path}.

Property Value
TypeDescription
String

StringValue

public string StringValue { get; set; }

A string value.

The string, represented as UTF-8, must not exceed 1 MiB - 89 bytes. Only the first 1,500 bytes of the UTF-8 representation are considered by queries.

Property Value
TypeDescription
String

TimestampValue

public Timestamp TimestampValue { get; set; }

A timestamp value.

Precise only to microseconds. When stored, any additional precision is rounded down.

Property Value
TypeDescription
Timestamp

ValueTypeCase

public Value.ValueTypeOneofCase ValueTypeCase { get; }
Property Value
TypeDescription
Value.ValueTypeOneofCase