public sealed class Value : IMessage<Value>, IEquatable<Value>, IDeepCloneable<Value>, IBufferMessage, IMessage
A message that can hold any of the supported value types.
Namespace
Google.Cloud.Firestore.V1Assembly
Google.Cloud.Firestore.V1.dll
Constructors
Value()
public Value()
Value(Value)
public Value(Value other)
Parameter | |
---|---|
Name | Description |
other | Value |
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 | |
---|---|
Type | Description |
ArrayValue |
BooleanValue
public bool BooleanValue { get; set; }
A boolean value.
Property Value | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
ByteString |
DoubleValue
public double DoubleValue { get; set; }
A double value.
Property Value | |
---|---|
Type | Description |
Double |
GeoPointValue
public LatLng GeoPointValue { get; set; }
A geo point value representing a point on the surface of Earth.
Property Value | |
---|---|
Type | Description |
LatLng |
IntegerValue
public long IntegerValue { get; set; }
An integer value.
Property Value | |
---|---|
Type | Description |
Int64 |
MapValue
public MapValue MapValue { get; set; }
A map value.
Property Value | |
---|---|
Type | Description |
MapValue |
NullValue
public NullValue NullValue { get; set; }
A null value.
Property Value | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
String |
TimestampValue
public Timestamp TimestampValue { get; set; }
A timestamp value.
Precise only to microseconds. When stored, any additional precision is rounded down.
Property Value | |
---|---|
Type | Description |
Timestamp |
ValueTypeCase
public Value.ValueTypeOneofCase ValueTypeCase { get; }
Property Value | |
---|---|
Type | Description |
Value.ValueTypeOneofCase |