[BindServiceMethod(typeof(Datastore), "BindService")]
public abstract class DatastoreBase
Base class for server-side implementations of Datastore
Namespace
Google.Cloud.Datastore.V1Assembly
Google.Cloud.Datastore.V1.dll
Methods
AllocateIds(AllocateIdsRequest, ServerCallContext)
public virtual Task<AllocateIdsResponse> AllocateIds(AllocateIdsRequest request, ServerCallContext context)
Allocates IDs for the given keys, which is useful for referencing an entity before it is inserted.
Parameters | |
---|---|
Name | Description |
request | AllocateIdsRequest The request received from the client. |
context | ServerCallContext The context of the server-side call handler being invoked. |
Returns | |
---|---|
Type | Description |
Task<AllocateIdsResponse> | The response to send back to the client (wrapped by a task). |
BeginTransaction(BeginTransactionRequest, ServerCallContext)
public virtual Task<BeginTransactionResponse> BeginTransaction(BeginTransactionRequest request, ServerCallContext context)
Begins a new transaction.
Parameters | |
---|---|
Name | Description |
request | BeginTransactionRequest The request received from the client. |
context | ServerCallContext The context of the server-side call handler being invoked. |
Returns | |
---|---|
Type | Description |
Task<BeginTransactionResponse> | The response to send back to the client (wrapped by a task). |
Commit(CommitRequest, ServerCallContext)
public virtual Task<CommitResponse> Commit(CommitRequest request, ServerCallContext context)
Commits a transaction, optionally creating, deleting or modifying some entities.
Parameters | |
---|---|
Name | Description |
request | CommitRequest The request received from the client. |
context | ServerCallContext The context of the server-side call handler being invoked. |
Returns | |
---|---|
Type | Description |
Task<CommitResponse> | The response to send back to the client (wrapped by a task). |
Lookup(LookupRequest, ServerCallContext)
public virtual Task<LookupResponse> Lookup(LookupRequest request, ServerCallContext context)
Looks up entities by key.
Parameters | |
---|---|
Name | Description |
request | LookupRequest The request received from the client. |
context | ServerCallContext The context of the server-side call handler being invoked. |
Returns | |
---|---|
Type | Description |
Task<LookupResponse> | The response to send back to the client (wrapped by a task). |
ReserveIds(ReserveIdsRequest, ServerCallContext)
public virtual Task<ReserveIdsResponse> ReserveIds(ReserveIdsRequest request, ServerCallContext context)
Prevents the supplied keys' IDs from being auto-allocated by Cloud Datastore.
Parameters | |
---|---|
Name | Description |
request | ReserveIdsRequest The request received from the client. |
context | ServerCallContext The context of the server-side call handler being invoked. |
Returns | |
---|---|
Type | Description |
Task<ReserveIdsResponse> | The response to send back to the client (wrapped by a task). |
Rollback(RollbackRequest, ServerCallContext)
public virtual Task<RollbackResponse> Rollback(RollbackRequest request, ServerCallContext context)
Rolls back a transaction.
Parameters | |
---|---|
Name | Description |
request | RollbackRequest The request received from the client. |
context | ServerCallContext The context of the server-side call handler being invoked. |
Returns | |
---|---|
Type | Description |
Task<RollbackResponse> | The response to send back to the client (wrapped by a task). |
RunQuery(RunQueryRequest, ServerCallContext)
public virtual Task<RunQueryResponse> RunQuery(RunQueryRequest request, ServerCallContext context)
Queries for entities.
Parameters | |
---|---|
Name | Description |
request | RunQueryRequest The request received from the client. |
context | ServerCallContext The context of the server-side call handler being invoked. |
Returns | |
---|---|
Type | Description |
Task<RunQueryResponse> | The response to send back to the client (wrapped by a task). |