public static final class DatastoreGrpc.DatastoreBlockingV2Stub extends AbstractBlockingStub<DatastoreGrpc.DatastoreBlockingV2Stub>A stub to allow clients to do synchronous rpc calls to service Datastore.
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.
Inheritance
java.lang.Object > io.grpc.stub.AbstractStub > io.grpc.stub.AbstractBlockingStub > DatastoreGrpc.DatastoreBlockingV2StubMethods
allocateIds(AllocateIdsRequest request)
public AllocateIdsResponse allocateIds(AllocateIdsRequest request)Allocates IDs for the given keys, which is useful for referencing an entity before it is inserted.
| Parameter | |
|---|---|
| Name | Description |
request |
AllocateIdsRequest |
| Returns | |
|---|---|
| Type | Description |
AllocateIdsResponse |
|
| Exceptions | |
|---|---|
| Type | Description |
io.grpc.StatusException |
|
beginTransaction(BeginTransactionRequest request)
public BeginTransactionResponse beginTransaction(BeginTransactionRequest request)Begins a new transaction.
| Parameter | |
|---|---|
| Name | Description |
request |
BeginTransactionRequest |
| Returns | |
|---|---|
| Type | Description |
BeginTransactionResponse |
|
| Exceptions | |
|---|---|
| Type | Description |
io.grpc.StatusException |
|
build(Channel channel, CallOptions callOptions)
protected DatastoreGrpc.DatastoreBlockingV2Stub build(Channel channel, CallOptions callOptions)| Parameters | |
|---|---|
| Name | Description |
channel |
io.grpc.Channel |
callOptions |
io.grpc.CallOptions |
| Returns | |
|---|---|
| Type | Description |
DatastoreGrpc.DatastoreBlockingV2Stub |
|
commit(CommitRequest request)
public CommitResponse commit(CommitRequest request)Commits a transaction, optionally creating, deleting or modifying some entities.
| Parameter | |
|---|---|
| Name | Description |
request |
CommitRequest |
| Returns | |
|---|---|
| Type | Description |
CommitResponse |
|
| Exceptions | |
|---|---|
| Type | Description |
io.grpc.StatusException |
|
lookup(LookupRequest request)
public LookupResponse lookup(LookupRequest request)Looks up entities by key.
| Parameter | |
|---|---|
| Name | Description |
request |
LookupRequest |
| Returns | |
|---|---|
| Type | Description |
LookupResponse |
|
| Exceptions | |
|---|---|
| Type | Description |
io.grpc.StatusException |
|
reserveIds(ReserveIdsRequest request)
public ReserveIdsResponse reserveIds(ReserveIdsRequest request)Prevents the supplied keys' IDs from being auto-allocated by Cloud Datastore.
| Parameter | |
|---|---|
| Name | Description |
request |
ReserveIdsRequest |
| Returns | |
|---|---|
| Type | Description |
ReserveIdsResponse |
|
| Exceptions | |
|---|---|
| Type | Description |
io.grpc.StatusException |
|
rollback(RollbackRequest request)
public RollbackResponse rollback(RollbackRequest request)Rolls back a transaction.
| Parameter | |
|---|---|
| Name | Description |
request |
RollbackRequest |
| Returns | |
|---|---|
| Type | Description |
RollbackResponse |
|
| Exceptions | |
|---|---|
| Type | Description |
io.grpc.StatusException |
|
runAggregationQuery(RunAggregationQueryRequest request)
public RunAggregationQueryResponse runAggregationQuery(RunAggregationQueryRequest request)Runs an aggregation query.
| Parameter | |
|---|---|
| Name | Description |
request |
RunAggregationQueryRequest |
| Returns | |
|---|---|
| Type | Description |
RunAggregationQueryResponse |
|
| Exceptions | |
|---|---|
| Type | Description |
io.grpc.StatusException |
|
runQuery(RunQueryRequest request)
public RunQueryResponse runQuery(RunQueryRequest request)Queries for entities.
| Parameter | |
|---|---|
| Name | Description |
request |
RunQueryRequest |
| Returns | |
|---|---|
| Type | Description |
RunQueryResponse |
|
| Exceptions | |
|---|---|
| Type | Description |
io.grpc.StatusException |
|