public abstract static class DatastoreGrpc.DatastoreImplBase
extends java.lang.Object
implements io.grpc.BindableService
Each RPC normalizes the partition IDs of the keys in its input entities, and always returns entities with keys with normalized partition IDs. This applies to all keys and entities, including those in values, except keys with both an empty path and an empty or unset partition ID. Normalization of input keys sets the project ID (if not already set) to the project ID from the request.
Constructor and Description |
---|
DatastoreImplBase() |
Modifier and Type | Method and Description |
---|---|
void |
allocateIds(AllocateIdsRequest request,
io.grpc.stub.StreamObserver<AllocateIdsResponse> responseObserver)
Allocates IDs for the given keys, which is useful for referencing an entity
before it is inserted.
|
void |
beginTransaction(BeginTransactionRequest request,
io.grpc.stub.StreamObserver<BeginTransactionResponse> responseObserver)
Begins a new transaction.
|
io.grpc.ServerServiceDefinition |
bindService() |
void |
commit(CommitRequest request,
io.grpc.stub.StreamObserver<CommitResponse> responseObserver)
Commits a transaction, optionally creating, deleting or modifying some
entities.
|
void |
lookup(LookupRequest request,
io.grpc.stub.StreamObserver<LookupResponse> responseObserver)
Looks up entities by key.
|
void |
reserveIds(ReserveIdsRequest request,
io.grpc.stub.StreamObserver<ReserveIdsResponse> responseObserver)
Prevents the supplied keys' IDs from being auto-allocated by Cloud
Datastore.
|
void |
rollback(RollbackRequest request,
io.grpc.stub.StreamObserver<RollbackResponse> responseObserver)
Rolls back a transaction.
|
void |
runQuery(RunQueryRequest request,
io.grpc.stub.StreamObserver<RunQueryResponse> responseObserver)
Queries for entities.
|
public void lookup(LookupRequest request, io.grpc.stub.StreamObserver<LookupResponse> responseObserver)
Looks up entities by key.
public void runQuery(RunQueryRequest request, io.grpc.stub.StreamObserver<RunQueryResponse> responseObserver)
Queries for entities.
public void beginTransaction(BeginTransactionRequest request, io.grpc.stub.StreamObserver<BeginTransactionResponse> responseObserver)
Begins a new transaction.
public void commit(CommitRequest request, io.grpc.stub.StreamObserver<CommitResponse> responseObserver)
Commits a transaction, optionally creating, deleting or modifying some entities.
public void rollback(RollbackRequest request, io.grpc.stub.StreamObserver<RollbackResponse> responseObserver)
Rolls back a transaction.
public void allocateIds(AllocateIdsRequest request, io.grpc.stub.StreamObserver<AllocateIdsResponse> responseObserver)
Allocates IDs for the given keys, which is useful for referencing an entity before it is inserted.
public void reserveIds(ReserveIdsRequest request, io.grpc.stub.StreamObserver<ReserveIdsResponse> responseObserver)
Prevents the supplied keys' IDs from being auto-allocated by Cloud Datastore.
public final io.grpc.ServerServiceDefinition bindService()
bindService
in interface io.grpc.BindableService