Package com.google.cloud.spanner.executor.v1
@Generated("by gapic-generator-java")
package com.google.cloud.spanner.executor.v1
A client to Cloud Spanner Executor test API
The interfaces provided are listed below, along with usage samples.
======================= SpannerExecutorProxyClient =======================
Service Description: Service that executes SpannerActions asynchronously.
Sample for SpannerExecutorProxyClient:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (SpannerExecutorProxyClient spannerExecutorProxyClient =
SpannerExecutorProxyClient.create()) {
BidiStream<SpannerAsyncActionRequest, SpannerAsyncActionResponse> bidiStream =
spannerExecutorProxyClient.executeActionAsyncCallable().call();
SpannerAsyncActionRequest request =
SpannerAsyncActionRequest.newBuilder()
.setActionId(198295492)
.setAction(SpannerAction.newBuilder().build())
.build();
bidiStream.send(request);
for (SpannerAsyncActionResponse response : bidiStream) {
// Do something when a response is received.
}
}
-
ClassesClassDescriptionService Description: Service that executes SpannerActions asynchronously.Settings class to configure an instance of
SpannerExecutorProxyClient.Builder for SpannerExecutorProxySettings.