@Generated(value="by gapic-generator") @BetaApi(value="A restructuring of stub classes is planned, so this may break in the future") public class GrpcContextsStub extends ContextsStub
This class is for advanced usage and reflects the underlying API directly.
Modifier | Constructor and Description |
---|---|
protected |
GrpcContextsStub(ContextsStubSettings settings,
com.google.api.gax.rpc.ClientContext clientContext)
Constructs an instance of GrpcContextsStub, using the given settings.
|
protected |
GrpcContextsStub(ContextsStubSettings settings,
com.google.api.gax.rpc.ClientContext clientContext,
com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory)
Constructs an instance of GrpcContextsStub, using the given settings.
|
Modifier and Type | Method and Description |
---|---|
boolean |
awaitTermination(long duration,
TimeUnit unit) |
void |
close() |
static GrpcContextsStub |
create(com.google.api.gax.rpc.ClientContext clientContext) |
static GrpcContextsStub |
create(com.google.api.gax.rpc.ClientContext clientContext,
com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory) |
static GrpcContextsStub |
create(ContextsStubSettings settings) |
com.google.api.gax.rpc.UnaryCallable<CreateContextRequest,Context> |
createContextCallable() |
com.google.api.gax.rpc.UnaryCallable<DeleteAllContextsRequest,Empty> |
deleteAllContextsCallable() |
com.google.api.gax.rpc.UnaryCallable<DeleteContextRequest,Empty> |
deleteContextCallable() |
com.google.api.gax.rpc.UnaryCallable<GetContextRequest,Context> |
getContextCallable() |
boolean |
isShutdown() |
boolean |
isTerminated() |
com.google.api.gax.rpc.UnaryCallable<ListContextsRequest,ListContextsResponse> |
listContextsCallable() |
com.google.api.gax.rpc.UnaryCallable<ListContextsRequest,ContextsClient.ListContextsPagedResponse> |
listContextsPagedCallable() |
void |
shutdown() |
void |
shutdownNow() |
com.google.api.gax.rpc.UnaryCallable<UpdateContextRequest,Context> |
updateContextCallable() |
protected GrpcContextsStub(ContextsStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext) throws IOException
IOException
protected GrpcContextsStub(ContextsStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory) throws IOException
IOException
public static final GrpcContextsStub create(ContextsStubSettings settings) throws IOException
IOException
public static final GrpcContextsStub create(com.google.api.gax.rpc.ClientContext clientContext) throws IOException
IOException
public static final GrpcContextsStub create(com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory) throws IOException
IOException
public com.google.api.gax.rpc.UnaryCallable<ListContextsRequest,ContextsClient.ListContextsPagedResponse> listContextsPagedCallable()
listContextsPagedCallable
in class ContextsStub
public com.google.api.gax.rpc.UnaryCallable<ListContextsRequest,ListContextsResponse> listContextsCallable()
listContextsCallable
in class ContextsStub
public com.google.api.gax.rpc.UnaryCallable<GetContextRequest,Context> getContextCallable()
getContextCallable
in class ContextsStub
public com.google.api.gax.rpc.UnaryCallable<CreateContextRequest,Context> createContextCallable()
createContextCallable
in class ContextsStub
public com.google.api.gax.rpc.UnaryCallable<UpdateContextRequest,Context> updateContextCallable()
updateContextCallable
in class ContextsStub
public com.google.api.gax.rpc.UnaryCallable<DeleteContextRequest,Empty> deleteContextCallable()
deleteContextCallable
in class ContextsStub
public com.google.api.gax.rpc.UnaryCallable<DeleteAllContextsRequest,Empty> deleteAllContextsCallable()
deleteAllContextsCallable
in class ContextsStub
public final void close()
close
in interface AutoCloseable
close
in class ContextsStub
public void shutdown()
public boolean isShutdown()
public boolean isTerminated()
public void shutdownNow()
public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException
InterruptedException
Copyright © 2019 Google LLC. All rights reserved.