@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,
ClientContext clientContext)
Constructs an instance of GrpcContextsStub, using the given settings.
|
protected |
GrpcContextsStub(ContextsStubSettings settings,
ClientContext clientContext,
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(ClientContext clientContext) |
static GrpcContextsStub |
create(ClientContext clientContext,
GrpcStubCallableFactory callableFactory) |
static GrpcContextsStub |
create(ContextsStubSettings settings) |
UnaryCallable<com.google.cloud.dialogflow.v2beta1.CreateContextRequest,com.google.cloud.dialogflow.v2beta1.Context> |
createContextCallable() |
UnaryCallable<com.google.cloud.dialogflow.v2beta1.DeleteAllContextsRequest,Empty> |
deleteAllContextsCallable() |
UnaryCallable<com.google.cloud.dialogflow.v2beta1.DeleteContextRequest,Empty> |
deleteContextCallable() |
UnaryCallable<com.google.cloud.dialogflow.v2beta1.GetContextRequest,com.google.cloud.dialogflow.v2beta1.Context> |
getContextCallable() |
boolean |
isShutdown() |
boolean |
isTerminated() |
UnaryCallable<com.google.cloud.dialogflow.v2beta1.ListContextsRequest,com.google.cloud.dialogflow.v2beta1.ListContextsResponse> |
listContextsCallable() |
UnaryCallable<com.google.cloud.dialogflow.v2beta1.ListContextsRequest,ContextsClient.ListContextsPagedResponse> |
listContextsPagedCallable() |
void |
shutdown() |
void |
shutdownNow() |
UnaryCallable<com.google.cloud.dialogflow.v2beta1.UpdateContextRequest,com.google.cloud.dialogflow.v2beta1.Context> |
updateContextCallable() |
protected GrpcContextsStub(ContextsStubSettings settings, ClientContext clientContext) throws IOException
IOExceptionprotected GrpcContextsStub(ContextsStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException
IOExceptionpublic static final GrpcContextsStub create(ContextsStubSettings settings) throws IOException
IOExceptionpublic static final GrpcContextsStub create(ClientContext clientContext) throws IOException
IOExceptionpublic static final GrpcContextsStub create(ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException
IOExceptionpublic UnaryCallable<com.google.cloud.dialogflow.v2beta1.ListContextsRequest,ContextsClient.ListContextsPagedResponse> listContextsPagedCallable()
listContextsPagedCallable in class ContextsStubpublic UnaryCallable<com.google.cloud.dialogflow.v2beta1.ListContextsRequest,com.google.cloud.dialogflow.v2beta1.ListContextsResponse> listContextsCallable()
listContextsCallable in class ContextsStubpublic UnaryCallable<com.google.cloud.dialogflow.v2beta1.GetContextRequest,com.google.cloud.dialogflow.v2beta1.Context> getContextCallable()
getContextCallable in class ContextsStubpublic UnaryCallable<com.google.cloud.dialogflow.v2beta1.CreateContextRequest,com.google.cloud.dialogflow.v2beta1.Context> createContextCallable()
createContextCallable in class ContextsStubpublic UnaryCallable<com.google.cloud.dialogflow.v2beta1.UpdateContextRequest,com.google.cloud.dialogflow.v2beta1.Context> updateContextCallable()
updateContextCallable in class ContextsStubpublic UnaryCallable<com.google.cloud.dialogflow.v2beta1.DeleteContextRequest,Empty> deleteContextCallable()
deleteContextCallable in class ContextsStubpublic UnaryCallable<com.google.cloud.dialogflow.v2beta1.DeleteAllContextsRequest,Empty> deleteAllContextsCallable()
deleteAllContextsCallable in class ContextsStubpublic final void close()
close in interface AutoCloseableclose in class ContextsStubpublic void shutdown()
public boolean isShutdown()
public boolean isTerminated()
public void shutdownNow()
public boolean awaitTermination(long duration,
TimeUnit unit)
throws InterruptedException
InterruptedExceptionCopyright © 2019 Google LLC. All rights reserved.