@Generated(value="by gapic-generator") @BetaApi(value="A restructuring of stub classes is planned, so this may break in the future") public class GrpcAgentsStub extends AgentsStub
This class is for advanced usage and reflects the underlying API directly.
| Modifier | Constructor and Description |
|---|---|
protected |
GrpcAgentsStub(AgentsStubSettings settings,
ClientContext clientContext)
Constructs an instance of GrpcAgentsStub, using the given settings.
|
protected |
GrpcAgentsStub(AgentsStubSettings settings,
ClientContext clientContext,
GrpcStubCallableFactory callableFactory)
Constructs an instance of GrpcAgentsStub, using the given settings.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
awaitTermination(long duration,
TimeUnit unit) |
void |
close() |
static GrpcAgentsStub |
create(AgentsStubSettings settings) |
static GrpcAgentsStub |
create(ClientContext clientContext) |
static GrpcAgentsStub |
create(ClientContext clientContext,
GrpcStubCallableFactory callableFactory) |
UnaryCallable<com.google.cloud.dialogflow.v2beta1.ExportAgentRequest,Operation> |
exportAgentCallable() |
OperationCallable<com.google.cloud.dialogflow.v2beta1.ExportAgentRequest,com.google.cloud.dialogflow.v2beta1.ExportAgentResponse,Struct> |
exportAgentOperationCallable() |
UnaryCallable<com.google.cloud.dialogflow.v2beta1.GetAgentRequest,com.google.cloud.dialogflow.v2beta1.Agent> |
getAgentCallable() |
GrpcOperationsStub |
getOperationsStub() |
UnaryCallable<com.google.cloud.dialogflow.v2beta1.ImportAgentRequest,Operation> |
importAgentCallable() |
OperationCallable<com.google.cloud.dialogflow.v2beta1.ImportAgentRequest,Empty,Struct> |
importAgentOperationCallable() |
boolean |
isShutdown() |
boolean |
isTerminated() |
UnaryCallable<com.google.cloud.dialogflow.v2beta1.RestoreAgentRequest,Operation> |
restoreAgentCallable() |
OperationCallable<com.google.cloud.dialogflow.v2beta1.RestoreAgentRequest,Empty,Struct> |
restoreAgentOperationCallable() |
UnaryCallable<com.google.cloud.dialogflow.v2beta1.SearchAgentsRequest,com.google.cloud.dialogflow.v2beta1.SearchAgentsResponse> |
searchAgentsCallable() |
UnaryCallable<com.google.cloud.dialogflow.v2beta1.SearchAgentsRequest,AgentsClient.SearchAgentsPagedResponse> |
searchAgentsPagedCallable() |
void |
shutdown() |
void |
shutdownNow() |
UnaryCallable<com.google.cloud.dialogflow.v2beta1.TrainAgentRequest,Operation> |
trainAgentCallable() |
OperationCallable<com.google.cloud.dialogflow.v2beta1.TrainAgentRequest,Empty,Struct> |
trainAgentOperationCallable() |
protected GrpcAgentsStub(AgentsStubSettings settings, ClientContext clientContext) throws IOException
IOExceptionprotected GrpcAgentsStub(AgentsStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException
IOExceptionpublic static final GrpcAgentsStub create(AgentsStubSettings settings) throws IOException
IOExceptionpublic static final GrpcAgentsStub create(ClientContext clientContext) throws IOException
IOExceptionpublic static final GrpcAgentsStub create(ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException
IOException@BetaApi(value="The surface for use by generated code is not stable yet and may change in the future.") public GrpcOperationsStub getOperationsStub()
getOperationsStub in class AgentsStubpublic UnaryCallable<com.google.cloud.dialogflow.v2beta1.GetAgentRequest,com.google.cloud.dialogflow.v2beta1.Agent> getAgentCallable()
getAgentCallable in class AgentsStubpublic UnaryCallable<com.google.cloud.dialogflow.v2beta1.SearchAgentsRequest,AgentsClient.SearchAgentsPagedResponse> searchAgentsPagedCallable()
searchAgentsPagedCallable in class AgentsStubpublic UnaryCallable<com.google.cloud.dialogflow.v2beta1.SearchAgentsRequest,com.google.cloud.dialogflow.v2beta1.SearchAgentsResponse> searchAgentsCallable()
searchAgentsCallable in class AgentsStub@BetaApi(value="The surface for use by generated code is not stable yet and may change in the future.") public OperationCallable<com.google.cloud.dialogflow.v2beta1.TrainAgentRequest,Empty,Struct> trainAgentOperationCallable()
trainAgentOperationCallable in class AgentsStubpublic UnaryCallable<com.google.cloud.dialogflow.v2beta1.TrainAgentRequest,Operation> trainAgentCallable()
trainAgentCallable in class AgentsStub@BetaApi(value="The surface for use by generated code is not stable yet and may change in the future.") public OperationCallable<com.google.cloud.dialogflow.v2beta1.ExportAgentRequest,com.google.cloud.dialogflow.v2beta1.ExportAgentResponse,Struct> exportAgentOperationCallable()
exportAgentOperationCallable in class AgentsStubpublic UnaryCallable<com.google.cloud.dialogflow.v2beta1.ExportAgentRequest,Operation> exportAgentCallable()
exportAgentCallable in class AgentsStub@BetaApi(value="The surface for use by generated code is not stable yet and may change in the future.") public OperationCallable<com.google.cloud.dialogflow.v2beta1.ImportAgentRequest,Empty,Struct> importAgentOperationCallable()
importAgentOperationCallable in class AgentsStubpublic UnaryCallable<com.google.cloud.dialogflow.v2beta1.ImportAgentRequest,Operation> importAgentCallable()
importAgentCallable in class AgentsStub@BetaApi(value="The surface for use by generated code is not stable yet and may change in the future.") public OperationCallable<com.google.cloud.dialogflow.v2beta1.RestoreAgentRequest,Empty,Struct> restoreAgentOperationCallable()
restoreAgentOperationCallable in class AgentsStubpublic UnaryCallable<com.google.cloud.dialogflow.v2beta1.RestoreAgentRequest,Operation> restoreAgentCallable()
restoreAgentCallable in class AgentsStubpublic final void close()
close in interface AutoCloseableclose in class AgentsStubpublic 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.