public sealed class CommitRequest : IMessage<CommitRequest>, IEquatable<CommitRequest>, IDeepCloneable<CommitRequest>, IBufferMessage, IMessage
The request for [Datastore.Commit][google.datastore.v1.Datastore.Commit].
Implements
IMessage<CommitRequest>, IEquatable<CommitRequest>, IDeepCloneable<CommitRequest>, IBufferMessage, IMessageNamespace
Google.Cloud.Datastore.V1Assembly
Google.Cloud.Datastore.V1.dll
Constructors
CommitRequest()
public CommitRequest()
CommitRequest(CommitRequest)
public CommitRequest(CommitRequest other)
Parameter | |
---|---|
Name | Description |
other | CommitRequest |
Properties
Mode
public CommitRequest.Types.Mode Mode { get; set; }
The type of commit to perform. Defaults to TRANSACTIONAL
.
Property Value | |
---|---|
Type | Description |
CommitRequest.Types.Mode |
Mutations
public RepeatedField<Mutation> Mutations { get; }
The mutations to perform.
When mode is TRANSACTIONAL
, mutations affecting a single entity are
applied in order. The following sequences of mutations affecting a single
entity are not permitted in a single Commit
request:
insert
followed byinsert
update
followed byinsert
upsert
followed byinsert
delete
followed byupdate
When mode is NON_TRANSACTIONAL
, no two mutations may affect a single
entity.
Property Value | |
---|---|
Type | Description |
RepeatedField<Mutation> |
ProjectId
public string ProjectId { get; set; }
Required. The ID of the project against which to make the request.
Property Value | |
---|---|
Type | Description |
String |
Transaction
public ByteString Transaction { get; set; }
The identifier of the transaction associated with the commit. A transaction identifier is returned by a call to [Datastore.BeginTransaction][google.datastore.v1.Datastore.BeginTransaction].
Property Value | |
---|---|
Type | Description |
ByteString |
TransactionSelectorCase
public CommitRequest.TransactionSelectorOneofCase TransactionSelectorCase { get; }
Property Value | |
---|---|
Type | Description |
CommitRequest.TransactionSelectorOneofCase |