Class BatchWriteRequest

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

The request for [Firestore.BatchWrite][google.firestore.v1.Firestore.BatchWrite].

Inheritance

Object > BatchWriteRequest

Namespace

Google.Cloud.Firestore.V1

Assembly

Google.Cloud.Firestore.V1.dll

Constructors

BatchWriteRequest()

public BatchWriteRequest()

BatchWriteRequest(BatchWriteRequest)

public BatchWriteRequest(BatchWriteRequest other)
Parameter
NameDescription
otherBatchWriteRequest

Properties

Database

public string Database { get; set; }

Required. The database name. In the format: projects/{project_id}/databases/{database_id}.

Property Value
TypeDescription
String

Labels

public MapField<string, string> Labels { get; }

Labels associated with this batch write.

Property Value
TypeDescription
MapField<String, String>

Writes

public RepeatedField<Write> Writes { get; }

The writes to apply.

Method does not apply writes atomically and does not guarantee ordering. Each write succeeds or fails independently. You cannot write to the same document more than once per request.

Property Value
TypeDescription
RepeatedField<Write>