Reference documentation and code samples for the Cloud Firestore V1 Client class ServerValue.
A value that is calculated by the server.
Protobuf type google.firestore.v1.DocumentTransform.FieldTransform.ServerValue
Namespace
Google \ Cloud \ Firestore \ V1 \ DocumentTransform \ FieldTransformMethods
static::name
Parameter | |
---|---|
Name | Description |
value |
mixed
|
static::value
Parameter | |
---|---|
Name | Description |
name |
mixed
|
Constants
SERVER_VALUE_UNSPECIFIED
Value: 0
Unspecified. This value must not be used.
Generated from protobuf enum SERVER_VALUE_UNSPECIFIED = 0;
REQUEST_TIME
Value: 1
The time at which the server processed the request, with millisecond precision. If used on multiple fields (same or different documents) in a transaction, all the fields will get the same server timestamp.
Generated from protobuf enum REQUEST_TIME = 1;