@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.v2.ExportAgentRequest,Operation> |
exportAgentCallable() |
OperationCallable<com.google.cloud.dialogflow.v2.ExportAgentRequest,com.google.cloud.dialogflow.v2.ExportAgentResponse,Struct> |
exportAgentOperationCallable() |
UnaryCallable<com.google.cloud.dialogflow.v2.GetAgentRequest,com.google.cloud.dialogflow.v2.Agent> |
getAgentCallable() |
GrpcOperationsStub |
getOperationsStub() |
UnaryCallable<com.google.cloud.dialogflow.v2.ImportAgentRequest,Operation> |
importAgentCallable() |
OperationCallable<com.google.cloud.dialogflow.v2.ImportAgentRequest,Empty,Struct> |
importAgentOperationCallable() |
boolean |
isShutdown() |
boolean |
isTerminated() |
UnaryCallable<com.google.cloud.dialogflow.v2.RestoreAgentRequest,Operation> |
restoreAgentCallable() |
OperationCallable<com.google.cloud.dialogflow.v2.RestoreAgentRequest,Empty,Struct> |
restoreAgentOperationCallable() |
UnaryCallable<com.google.cloud.dialogflow.v2.SearchAgentsRequest,com.google.cloud.dialogflow.v2.SearchAgentsResponse> |
searchAgentsCallable() |
UnaryCallable<com.google.cloud.dialogflow.v2.SearchAgentsRequest,AgentsClient.SearchAgentsPagedResponse> |
searchAgentsPagedCallable() |
void |
shutdown() |
void |
shutdownNow() |
UnaryCallable<com.google.cloud.dialogflow.v2.TrainAgentRequest,Operation> |
trainAgentCallable() |
OperationCallable<com.google.cloud.dialogflow.v2.TrainAgentRequest,Empty,Struct> |
trainAgentOperationCallable() |
protected GrpcAgentsStub(AgentsStubSettings settings, ClientContext clientContext) throws IOException
IOException
protected GrpcAgentsStub(AgentsStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException
IOException
public static final GrpcAgentsStub create(AgentsStubSettings settings) throws IOException
IOException
public static final GrpcAgentsStub create(ClientContext clientContext) throws IOException
IOException
public 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 AgentsStub
public UnaryCallable<com.google.cloud.dialogflow.v2.GetAgentRequest,com.google.cloud.dialogflow.v2.Agent> getAgentCallable()
getAgentCallable
in class AgentsStub
public UnaryCallable<com.google.cloud.dialogflow.v2.SearchAgentsRequest,AgentsClient.SearchAgentsPagedResponse> searchAgentsPagedCallable()
searchAgentsPagedCallable
in class AgentsStub
public UnaryCallable<com.google.cloud.dialogflow.v2.SearchAgentsRequest,com.google.cloud.dialogflow.v2.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.v2.TrainAgentRequest,Empty,Struct> trainAgentOperationCallable()
trainAgentOperationCallable
in class AgentsStub
public UnaryCallable<com.google.cloud.dialogflow.v2.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.v2.ExportAgentRequest,com.google.cloud.dialogflow.v2.ExportAgentResponse,Struct> exportAgentOperationCallable()
exportAgentOperationCallable
in class AgentsStub
public UnaryCallable<com.google.cloud.dialogflow.v2.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.v2.ImportAgentRequest,Empty,Struct> importAgentOperationCallable()
importAgentOperationCallable
in class AgentsStub
public UnaryCallable<com.google.cloud.dialogflow.v2.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.v2.RestoreAgentRequest,Empty,Struct> restoreAgentOperationCallable()
restoreAgentOperationCallable
in class AgentsStub
public UnaryCallable<com.google.cloud.dialogflow.v2.RestoreAgentRequest,Operation> restoreAgentCallable()
restoreAgentCallable
in class AgentsStub
public final void close()
close
in interface AutoCloseable
close
in class AgentsStub
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.