Class SpannerGrpc (6.82.0)

public final class SpannerGrpc

Cloud Spanner API The Cloud Spanner API can be used to manage sessions and execute transactions on data stored in Cloud Spanner databases.

Inheritance

java.lang.Object > SpannerGrpc

Static Fields

SERVICE_NAME

public static final String SERVICE_NAME
Field Value
Type Description
String

Static Methods

bindService(SpannerGrpc.AsyncService service)

public static final ServerServiceDefinition bindService(SpannerGrpc.AsyncService service)
Parameter
Name Description
service SpannerGrpc.AsyncService
Returns
Type Description
io.grpc.ServerServiceDefinition

getBatchCreateSessionsMethod()

public static MethodDescriptor<BatchCreateSessionsRequest,BatchCreateSessionsResponse> getBatchCreateSessionsMethod()
Returns
Type Description
io.grpc.MethodDescriptor<BatchCreateSessionsRequest,BatchCreateSessionsResponse>

getBatchWriteMethod()

public static MethodDescriptor<BatchWriteRequest,BatchWriteResponse> getBatchWriteMethod()
Returns
Type Description
io.grpc.MethodDescriptor<BatchWriteRequest,BatchWriteResponse>

getBeginTransactionMethod()

public static MethodDescriptor<BeginTransactionRequest,Transaction> getBeginTransactionMethod()
Returns
Type Description
io.grpc.MethodDescriptor<BeginTransactionRequest,Transaction>

getCommitMethod()

public static MethodDescriptor<CommitRequest,CommitResponse> getCommitMethod()
Returns
Type Description
io.grpc.MethodDescriptor<CommitRequest,CommitResponse>

getCreateSessionMethod()

public static MethodDescriptor<CreateSessionRequest,Session> getCreateSessionMethod()
Returns
Type Description
io.grpc.MethodDescriptor<CreateSessionRequest,Session>

getDeleteSessionMethod()

public static MethodDescriptor<DeleteSessionRequest,Empty> getDeleteSessionMethod()
Returns
Type Description
io.grpc.MethodDescriptor<DeleteSessionRequest,Empty>

getExecuteBatchDmlMethod()

public static MethodDescriptor<ExecuteBatchDmlRequest,ExecuteBatchDmlResponse> getExecuteBatchDmlMethod()
Returns
Type Description
io.grpc.MethodDescriptor<ExecuteBatchDmlRequest,ExecuteBatchDmlResponse>

getExecuteSqlMethod()

public static MethodDescriptor<ExecuteSqlRequest,ResultSet> getExecuteSqlMethod()
Returns
Type Description
io.grpc.MethodDescriptor<ExecuteSqlRequest,ResultSet>

getExecuteStreamingSqlMethod()

public static MethodDescriptor<ExecuteSqlRequest,PartialResultSet> getExecuteStreamingSqlMethod()
Returns
Type Description
io.grpc.MethodDescriptor<ExecuteSqlRequest,PartialResultSet>

getGetSessionMethod()

public static MethodDescriptor<GetSessionRequest,Session> getGetSessionMethod()
Returns
Type Description
io.grpc.MethodDescriptor<GetSessionRequest,Session>

getListSessionsMethod()

public static MethodDescriptor<ListSessionsRequest,ListSessionsResponse> getListSessionsMethod()
Returns
Type Description
io.grpc.MethodDescriptor<ListSessionsRequest,ListSessionsResponse>

getPartitionQueryMethod()

public static MethodDescriptor<PartitionQueryRequest,PartitionResponse> getPartitionQueryMethod()
Returns
Type Description
io.grpc.MethodDescriptor<PartitionQueryRequest,PartitionResponse>

getPartitionReadMethod()

public static MethodDescriptor<PartitionReadRequest,PartitionResponse> getPartitionReadMethod()
Returns
Type Description
io.grpc.MethodDescriptor<PartitionReadRequest,PartitionResponse>

getReadMethod()

public static MethodDescriptor<ReadRequest,ResultSet> getReadMethod()
Returns
Type Description
io.grpc.MethodDescriptor<ReadRequest,ResultSet>

getRollbackMethod()

public static MethodDescriptor<RollbackRequest,Empty> getRollbackMethod()
Returns
Type Description
io.grpc.MethodDescriptor<RollbackRequest,Empty>

getServiceDescriptor()

public static ServiceDescriptor getServiceDescriptor()
Returns
Type Description
io.grpc.ServiceDescriptor

getStreamingReadMethod()

public static MethodDescriptor<ReadRequest,PartialResultSet> getStreamingReadMethod()
Returns
Type Description
io.grpc.MethodDescriptor<ReadRequest,PartialResultSet>

newBlockingStub(Channel channel)

public static SpannerGrpc.SpannerBlockingStub newBlockingStub(Channel channel)

Creates a new blocking-style stub that supports unary and streaming output calls on the service

Parameter
Name Description
channel io.grpc.Channel
Returns
Type Description
SpannerGrpc.SpannerBlockingStub

newFutureStub(Channel channel)

public static SpannerGrpc.SpannerFutureStub newFutureStub(Channel channel)

Creates a new ListenableFuture-style stub that supports unary calls on the service

Parameter
Name Description
channel io.grpc.Channel
Returns
Type Description
SpannerGrpc.SpannerFutureStub

newStub(Channel channel)

public static SpannerGrpc.SpannerStub newStub(Channel channel)

Creates a new async stub that supports all call types for the service

Parameter
Name Description
channel io.grpc.Channel
Returns
Type Description
SpannerGrpc.SpannerStub