Package com.google.cloud.spanner.v1.stub
Class SpannerStub
java.lang.Object
com.google.cloud.spanner.v1.stub.SpannerStub
- All Implemented Interfaces:
com.google.api.gax.core.BackgroundResource
,AutoCloseable
- Direct Known Subclasses:
GrpcSpannerStub
,HttpJsonSpannerStub
@Generated("by gapic-generator-java")
public abstract class SpannerStub
extends Object
implements com.google.api.gax.core.BackgroundResource
Base stub class for the Spanner service API.
This class is for advanced usage and reflects the underlying API directly.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncom.google.api.gax.rpc.UnaryCallable<BatchCreateSessionsRequest,
BatchCreateSessionsResponse> com.google.api.gax.rpc.ServerStreamingCallable<BatchWriteRequest,
BatchWriteResponse> com.google.api.gax.rpc.UnaryCallable<BeginTransactionRequest,
Transaction> abstract void
close()
com.google.api.gax.rpc.UnaryCallable<CommitRequest,
CommitResponse> com.google.api.gax.rpc.UnaryCallable<CreateSessionRequest,
Session> com.google.api.gax.rpc.UnaryCallable<DeleteSessionRequest,
com.google.protobuf.Empty> com.google.api.gax.rpc.UnaryCallable<ExecuteBatchDmlRequest,
ExecuteBatchDmlResponse> com.google.api.gax.rpc.UnaryCallable<ExecuteSqlRequest,
ResultSet> com.google.api.gax.rpc.ServerStreamingCallable<ExecuteSqlRequest,
PartialResultSet> com.google.api.gax.rpc.UnaryCallable<GetSessionRequest,
Session> com.google.api.gax.rpc.UnaryCallable<ListSessionsRequest,
ListSessionsResponse> com.google.api.gax.rpc.UnaryCallable<ListSessionsRequest,
SpannerClient.ListSessionsPagedResponse> com.google.api.gax.rpc.UnaryCallable<PartitionQueryRequest,
PartitionResponse> com.google.api.gax.rpc.UnaryCallable<PartitionReadRequest,
PartitionResponse> com.google.api.gax.rpc.UnaryCallable<ReadRequest,
ResultSet> com.google.api.gax.rpc.UnaryCallable<RollbackRequest,
com.google.protobuf.Empty> com.google.api.gax.rpc.ServerStreamingCallable<ReadRequest,
PartialResultSet> Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.google.api.gax.core.BackgroundResource
awaitTermination, isShutdown, isTerminated, shutdown, shutdownNow
-
Constructor Details
-
SpannerStub
public SpannerStub()
-
-
Method Details
-
createSessionCallable
-
batchCreateSessionsCallable
public com.google.api.gax.rpc.UnaryCallable<BatchCreateSessionsRequest,BatchCreateSessionsResponse> batchCreateSessionsCallable() -
getSessionCallable
-
listSessionsPagedCallable
public com.google.api.gax.rpc.UnaryCallable<ListSessionsRequest,SpannerClient.ListSessionsPagedResponse> listSessionsPagedCallable() -
listSessionsCallable
public com.google.api.gax.rpc.UnaryCallable<ListSessionsRequest,ListSessionsResponse> listSessionsCallable() -
deleteSessionCallable
public com.google.api.gax.rpc.UnaryCallable<DeleteSessionRequest,com.google.protobuf.Empty> deleteSessionCallable() -
executeSqlCallable
-
executeStreamingSqlCallable
public com.google.api.gax.rpc.ServerStreamingCallable<ExecuteSqlRequest,PartialResultSet> executeStreamingSqlCallable() -
executeBatchDmlCallable
public com.google.api.gax.rpc.UnaryCallable<ExecuteBatchDmlRequest,ExecuteBatchDmlResponse> executeBatchDmlCallable() -
readCallable
-
streamingReadCallable
public com.google.api.gax.rpc.ServerStreamingCallable<ReadRequest,PartialResultSet> streamingReadCallable() -
beginTransactionCallable
public com.google.api.gax.rpc.UnaryCallable<BeginTransactionRequest,Transaction> beginTransactionCallable() -
commitCallable
-
rollbackCallable
public com.google.api.gax.rpc.UnaryCallable<RollbackRequest,com.google.protobuf.Empty> rollbackCallable() -
partitionQueryCallable
public com.google.api.gax.rpc.UnaryCallable<PartitionQueryRequest,PartitionResponse> partitionQueryCallable() -
partitionReadCallable
public com.google.api.gax.rpc.UnaryCallable<PartitionReadRequest,PartitionResponse> partitionReadCallable() -
batchWriteCallable
public com.google.api.gax.rpc.ServerStreamingCallable<BatchWriteRequest,BatchWriteResponse> batchWriteCallable() -
close
public abstract void close()- Specified by:
close
in interfaceAutoCloseable
-