Google Cloud Datastore v1 API - Class Datastore.DatastoreBase (4.6.0)

[BindServiceMethod(typeof(Datastore), "BindService")]
public abstract class Datastore.DatastoreBase

Reference documentation and code samples for the Google Cloud Datastore v1 API class Datastore.DatastoreBase.

Base class for server-side implementations of Datastore

Inheritance

object > Datastore.DatastoreBase

Namespace

Google.Cloud.Datastore.V1

Assembly

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
NameDescription
requestAllocateIdsRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
TaskAllocateIdsResponse

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
NameDescription
requestBeginTransactionRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
TaskBeginTransactionResponse

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
NameDescription
requestCommitRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
TaskCommitResponse

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
NameDescription
requestLookupRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
TaskLookupResponse

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
NameDescription
requestReserveIdsRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
TaskReserveIdsResponse

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
NameDescription
requestRollbackRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
TaskRollbackResponse

The response to send back to the client (wrapped by a task).

RunAggregationQuery(RunAggregationQueryRequest, ServerCallContext)

public virtual Task<RunAggregationQueryResponse> RunAggregationQuery(RunAggregationQueryRequest request, ServerCallContext context)

Runs an aggregation query.

Parameters
NameDescription
requestRunAggregationQueryRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
TaskRunAggregationQueryResponse

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
NameDescription
requestRunQueryRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
TaskRunQueryResponse

The response to send back to the client (wrapped by a task).