@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
IOException
protected GrpcContextsStub(ContextsStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException
IOException
public static final GrpcContextsStub create(ContextsStubSettings settings) throws IOException
IOException
public static final GrpcContextsStub create(ClientContext clientContext) throws IOException
IOException
public static final GrpcContextsStub create(ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException
IOException
public UnaryCallable<com.google.cloud.dialogflow.v2beta1.ListContextsRequest,ContextsClient.ListContextsPagedResponse> listContextsPagedCallable()
listContextsPagedCallable
in class ContextsStub
public UnaryCallable<com.google.cloud.dialogflow.v2beta1.ListContextsRequest,com.google.cloud.dialogflow.v2beta1.ListContextsResponse> listContextsCallable()
listContextsCallable
in class ContextsStub
public UnaryCallable<com.google.cloud.dialogflow.v2beta1.GetContextRequest,com.google.cloud.dialogflow.v2beta1.Context> getContextCallable()
getContextCallable
in class ContextsStub
public UnaryCallable<com.google.cloud.dialogflow.v2beta1.CreateContextRequest,com.google.cloud.dialogflow.v2beta1.Context> createContextCallable()
createContextCallable
in class ContextsStub
public UnaryCallable<com.google.cloud.dialogflow.v2beta1.UpdateContextRequest,com.google.cloud.dialogflow.v2beta1.Context> updateContextCallable()
updateContextCallable
in class ContextsStub
public UnaryCallable<com.google.cloud.dialogflow.v2beta1.DeleteContextRequest,Empty> deleteContextCallable()
deleteContextCallable
in class ContextsStub
public UnaryCallable<com.google.cloud.dialogflow.v2beta1.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.