Package | Description |
---|---|
com.google.cloud.spanner.spi.v1 | |
com.google.cloud.spanner.v1 |
The interfaces provided are listed below, along with usage samples.
|
com.google.cloud.spanner.v1.stub | |
com.google.spanner.v1 |
Modifier and Type | Method and Description |
---|---|
Session |
GapicSpannerRpc.createSession(String databaseName,
Map<String,String> labels,
Map<SpannerRpc.Option,?> options) |
Session |
SpannerRpc.createSession(String databaseName,
Map<String,String> labels,
Map<SpannerRpc.Option,?> options) |
Modifier and Type | Method and Description |
---|---|
List<Session> |
GapicSpannerRpc.batchCreateSessions(String databaseName,
int sessionCount,
Map<String,String> labels,
Map<SpannerRpc.Option,?> options) |
List<Session> |
SpannerRpc.batchCreateSessions(String databaseName,
int sessionCount,
Map<String,String> labels,
Map<SpannerRpc.Option,?> options) |
Modifier and Type | Method and Description |
---|---|
Session |
SpannerClient.createSession(CreateSessionRequest request)
Creates a new session.
|
Session |
SpannerClient.createSession(DatabaseName database)
Creates a new session.
|
Session |
SpannerClient.createSession(String database)
Creates a new session.
|
Session |
SpannerClient.getSession(GetSessionRequest request)
Gets a session.
|
Session |
SpannerClient.getSession(SessionName name)
Gets a session.
|
Session |
SpannerClient.getSession(String name)
Gets a session.
|
Modifier and Type | Method and Description |
---|---|
UnaryCallable<CreateSessionRequest,Session> |
SpannerClient.createSessionCallable()
Creates a new session.
|
UnaryCallSettings<CreateSessionRequest,Session> |
SpannerSettings.createSessionSettings()
Returns the object with the settings used for calls to createSession.
|
UnaryCallSettings.Builder<CreateSessionRequest,Session> |
SpannerSettings.Builder.createSessionSettings()
Returns the builder for the settings used for calls to createSession.
|
UnaryCallable<GetSessionRequest,Session> |
SpannerClient.getSessionCallable()
Gets a session.
|
UnaryCallSettings<GetSessionRequest,Session> |
SpannerSettings.getSessionSettings()
Returns the object with the settings used for calls to getSession.
|
UnaryCallSettings.Builder<GetSessionRequest,Session> |
SpannerSettings.Builder.getSessionSettings()
Returns the builder for the settings used for calls to getSession.
|
Modifier and Type | Method and Description |
---|---|
static com.google.api.core.ApiFuture<SpannerClient.ListSessionsPagedResponse> |
SpannerClient.ListSessionsPagedResponse.createAsync(PageContext<ListSessionsRequest,ListSessionsResponse,Session> context,
com.google.api.core.ApiFuture<ListSessionsResponse> futureResponse) |
protected SpannerClient.ListSessionsPage |
SpannerClient.ListSessionsPage.createPage(PageContext<ListSessionsRequest,ListSessionsResponse,Session> context,
ListSessionsResponse response) |
com.google.api.core.ApiFuture<SpannerClient.ListSessionsPage> |
SpannerClient.ListSessionsPage.createPageAsync(PageContext<ListSessionsRequest,ListSessionsResponse,Session> context,
com.google.api.core.ApiFuture<ListSessionsResponse> futureResponse) |
Modifier and Type | Method and Description |
---|---|
UnaryCallable<CreateSessionRequest,Session> |
GrpcSpannerStub.createSessionCallable() |
UnaryCallable<CreateSessionRequest,Session> |
SpannerStub.createSessionCallable() |
UnaryCallSettings<CreateSessionRequest,Session> |
SpannerStubSettings.createSessionSettings()
Returns the object with the settings used for calls to createSession.
|
UnaryCallSettings.Builder<CreateSessionRequest,Session> |
SpannerStubSettings.Builder.createSessionSettings()
Returns the builder for the settings used for calls to createSession.
|
UnaryCallable<GetSessionRequest,Session> |
GrpcSpannerStub.getSessionCallable() |
UnaryCallable<GetSessionRequest,Session> |
SpannerStub.getSessionCallable() |
UnaryCallSettings<GetSessionRequest,Session> |
SpannerStubSettings.getSessionSettings()
Returns the object with the settings used for calls to getSession.
|
UnaryCallSettings.Builder<GetSessionRequest,Session> |
SpannerStubSettings.Builder.getSessionSettings()
Returns the builder for the settings used for calls to getSession.
|
Modifier and Type | Method and Description |
---|---|
Session |
Session.Builder.build() |
Session |
Session.Builder.buildPartial() |
Session |
SpannerGrpc.SpannerBlockingStub.createSession(CreateSessionRequest request)
Creates a new session.
|
static Session |
Session.getDefaultInstance() |
Session |
Session.getDefaultInstanceForType() |
Session |
Session.Builder.getDefaultInstanceForType() |
Session |
CreateSessionRequestOrBuilder.getSession()
Required.
|
Session |
CreateSessionRequest.getSession()
Required.
|
Session |
CreateSessionRequest.Builder.getSession()
Required.
|
Session |
SpannerGrpc.SpannerBlockingStub.getSession(GetSessionRequest request)
Gets a session.
|
Session |
BatchCreateSessionsResponse.getSession(int index)
The freshly created sessions.
|
Session |
BatchCreateSessionsResponse.Builder.getSession(int index)
The freshly created sessions.
|
Session |
BatchCreateSessionsResponseOrBuilder.getSession(int index)
The freshly created sessions.
|
Session |
ListSessionsResponseOrBuilder.getSessions(int index)
The list of requested sessions.
|
Session |
ListSessionsResponse.getSessions(int index)
The list of requested sessions.
|
Session |
ListSessionsResponse.Builder.getSessions(int index)
The list of requested sessions.
|
Session |
BatchCreateSessionsRequestOrBuilder.getSessionTemplate()
Parameters to be applied to each created session.
|
Session |
BatchCreateSessionsRequest.getSessionTemplate()
Parameters to be applied to each created session.
|
Session |
BatchCreateSessionsRequest.Builder.getSessionTemplate()
Parameters to be applied to each created session.
|
static Session |
Session.parseDelimitedFrom(InputStream input) |
static Session |
Session.parseDelimitedFrom(InputStream input,
ExtensionRegistryLite extensionRegistry) |
static Session |
Session.parseFrom(byte[] data) |
static Session |
Session.parseFrom(byte[] data,
ExtensionRegistryLite extensionRegistry) |
static Session |
Session.parseFrom(ByteBuffer data) |
static Session |
Session.parseFrom(ByteBuffer data,
ExtensionRegistryLite extensionRegistry) |
static Session |
Session.parseFrom(ByteString data) |
static Session |
Session.parseFrom(ByteString data,
ExtensionRegistryLite extensionRegistry) |
static Session |
Session.parseFrom(CodedInputStream input) |
static Session |
Session.parseFrom(CodedInputStream input,
ExtensionRegistryLite extensionRegistry) |
static Session |
Session.parseFrom(InputStream input) |
static Session |
Session.parseFrom(InputStream input,
ExtensionRegistryLite extensionRegistry) |
Modifier and Type | Method and Description |
---|---|
com.google.common.util.concurrent.ListenableFuture<Session> |
SpannerGrpc.SpannerFutureStub.createSession(CreateSessionRequest request)
Creates a new session.
|
static MethodDescriptor<CreateSessionRequest,Session> |
SpannerGrpc.getCreateSessionMethod() |
static MethodDescriptor<GetSessionRequest,Session> |
SpannerGrpc.getGetSessionMethod() |
Parser<Session> |
Session.getParserForType() |
com.google.common.util.concurrent.ListenableFuture<Session> |
SpannerGrpc.SpannerFutureStub.getSession(GetSessionRequest request)
Gets a session.
|
List<Session> |
BatchCreateSessionsResponse.getSessionList()
The freshly created sessions.
|
List<Session> |
BatchCreateSessionsResponse.Builder.getSessionList()
The freshly created sessions.
|
List<Session> |
BatchCreateSessionsResponseOrBuilder.getSessionList()
The freshly created sessions.
|
List<Session> |
ListSessionsResponseOrBuilder.getSessionsList()
The list of requested sessions.
|
List<Session> |
ListSessionsResponse.getSessionsList()
The list of requested sessions.
|
List<Session> |
ListSessionsResponse.Builder.getSessionsList()
The list of requested sessions.
|
static Parser<Session> |
Session.parser() |
Modifier and Type | Method and Description |
---|---|
BatchCreateSessionsResponse.Builder |
BatchCreateSessionsResponse.Builder.addSession(int index,
Session value)
The freshly created sessions.
|
BatchCreateSessionsResponse.Builder |
BatchCreateSessionsResponse.Builder.addSession(Session value)
The freshly created sessions.
|
ListSessionsResponse.Builder |
ListSessionsResponse.Builder.addSessions(int index,
Session value)
The list of requested sessions.
|
ListSessionsResponse.Builder |
ListSessionsResponse.Builder.addSessions(Session value)
The list of requested sessions.
|
Session.Builder |
Session.Builder.mergeFrom(Session other) |
CreateSessionRequest.Builder |
CreateSessionRequest.Builder.mergeSession(Session value)
Required.
|
BatchCreateSessionsRequest.Builder |
BatchCreateSessionsRequest.Builder.mergeSessionTemplate(Session value)
Parameters to be applied to each created session.
|
static Session.Builder |
Session.newBuilder(Session prototype) |
BatchCreateSessionsResponse.Builder |
BatchCreateSessionsResponse.Builder.setSession(int index,
Session value)
The freshly created sessions.
|
CreateSessionRequest.Builder |
CreateSessionRequest.Builder.setSession(Session value)
Required.
|
ListSessionsResponse.Builder |
ListSessionsResponse.Builder.setSessions(int index,
Session value)
The list of requested sessions.
|
BatchCreateSessionsRequest.Builder |
BatchCreateSessionsRequest.Builder.setSessionTemplate(Session value)
Parameters to be applied to each created session.
|
Modifier and Type | Method and Description |
---|---|
BatchCreateSessionsResponse.Builder |
BatchCreateSessionsResponse.Builder.addAllSession(Iterable<? extends Session> values)
The freshly created sessions.
|
ListSessionsResponse.Builder |
ListSessionsResponse.Builder.addAllSessions(Iterable<? extends Session> values)
The list of requested sessions.
|
void |
SpannerGrpc.SpannerImplBase.createSession(CreateSessionRequest request,
StreamObserver<Session> responseObserver)
Creates a new session.
|
void |
SpannerGrpc.SpannerStub.createSession(CreateSessionRequest request,
StreamObserver<Session> responseObserver)
Creates a new session.
|
void |
SpannerGrpc.SpannerImplBase.getSession(GetSessionRequest request,
StreamObserver<Session> responseObserver)
Gets a session.
|
void |
SpannerGrpc.SpannerStub.getSession(GetSessionRequest request,
StreamObserver<Session> responseObserver)
Gets a session.
|
Copyright © 2022 Google LLC. All rights reserved.