Class WriteRequest
The request for Firestore.Write. The first request creates a stream, or resumes an existing one from a token. When creating a new stream, the server replies with a response containing only an ID and a token, to use in the next request. When resuming a stream, the server first streams any responses later than the given token, then a response containing only an up-to-date token, to use in the next request.
Implements
Inherited Members
Namespace: Google.Apis.Firestore.v1.Data
Assembly: Google.Apis.Firestore.v1.dll
Syntax
public class WriteRequest : IDirectResponseSchema
Properties
ETag
The ETag of the item.
Declaration
public virtual string ETag { get; set; }
Property Value
Type | Description |
---|---|
string |
Labels
Labels associated with this write request.
Declaration
[JsonProperty("labels")]
public virtual IDictionary<string, string> Labels { get; set; }
Property Value
Type | Description |
---|---|
IDictionary<string, string> |
StreamId
The ID of the write stream to resume. This may only be set in the first message. When left empty, a new write stream will be created.
Declaration
[JsonProperty("streamId")]
public virtual string StreamId { get; set; }
Property Value
Type | Description |
---|---|
string |
StreamToken
A stream token that was previously sent by the server. The client should set this field to the token from
the most recent WriteResponse it has received. This acknowledges that the client has received responses up
to this token. After sending this token, earlier tokens may not be used anymore. The server may close the
stream if there are too many unacknowledged responses. Leave this field unset when creating a new stream. To
resume a stream at a specific point, set this field and the stream_id
field. Leave this field unset when
creating a new stream.
Declaration
[JsonProperty("streamToken")]
public virtual string StreamToken { get; set; }
Property Value
Type | Description |
---|---|
string |
Writes
The writes to apply. Always executed atomically and in order. This must be empty on the first request. This may be empty on the last request. This must not be empty on all other requests.
Declaration
[JsonProperty("writes")]
public virtual IList<Write> Writes { get; set; }
Property Value
Type | Description |
---|---|
IList<Write> |