Firestore v1 API - Class Value (3.5.1)

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

Reference documentation and code samples for the Firestore v1 API class Value.

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
bool

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

HasBooleanValue

public bool HasBooleanValue { get; }

Gets whether the "boolean_value" field is set

Property Value
TypeDescription
bool

HasBytesValue

public bool HasBytesValue { get; }

Gets whether the "bytes_value" field is set

Property Value
TypeDescription
bool

HasDoubleValue

public bool HasDoubleValue { get; }

Gets whether the "double_value" field is set

Property Value
TypeDescription
bool

HasIntegerValue

public bool HasIntegerValue { get; }

Gets whether the "integer_value" field is set

Property Value
TypeDescription
bool

HasNullValue

public bool HasNullValue { get; }

Gets whether the "null_value" field is set

Property Value
TypeDescription
bool

HasReferenceValue

public bool HasReferenceValue { get; }

Gets whether the "reference_value" field is set

Property Value
TypeDescription
bool

HasStringValue

public bool HasStringValue { get; }

Gets whether the "string_value" field is set

Property Value
TypeDescription
bool

IntegerValue

public long IntegerValue { get; set; }

An integer value.

Property Value
TypeDescription
long

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
ValueValueTypeOneofCase