public static final class DatastoreGrpc.DatastoreStub extends io.grpc.stub.AbstractStub<DatastoreGrpc.DatastoreStub>
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.
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.
|
protected DatastoreGrpc.DatastoreStub |
build(io.grpc.Channel channel,
io.grpc.CallOptions callOptions) |
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.
|
protected DatastoreGrpc.DatastoreStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions)
build
in class io.grpc.stub.AbstractStub<DatastoreGrpc.DatastoreStub>
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.