@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,
com.google.api.gax.rpc.ClientContext clientContext)
Constructs an instance of GrpcAgentsStub, using the given settings.
|
protected |
GrpcAgentsStub(AgentsStubSettings settings,
com.google.api.gax.rpc.ClientContext clientContext,
com.google.api.gax.grpc.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(com.google.api.gax.rpc.ClientContext clientContext) |
static GrpcAgentsStub |
create(com.google.api.gax.rpc.ClientContext clientContext,
com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory) |
com.google.api.gax.rpc.UnaryCallable<DeleteAgentRequest,Empty> |
deleteAgentCallable() |
com.google.api.gax.rpc.UnaryCallable<ExportAgentRequest,com.google.longrunning.Operation> |
exportAgentCallable() |
com.google.api.gax.rpc.OperationCallable<ExportAgentRequest,ExportAgentResponse,Struct> |
exportAgentOperationCallable() |
com.google.api.gax.rpc.UnaryCallable<GetAgentRequest,Agent> |
getAgentCallable() |
com.google.longrunning.stub.GrpcOperationsStub |
getOperationsStub() |
com.google.api.gax.rpc.UnaryCallable<ImportAgentRequest,com.google.longrunning.Operation> |
importAgentCallable() |
com.google.api.gax.rpc.OperationCallable<ImportAgentRequest,Empty,Struct> |
importAgentOperationCallable() |
boolean |
isShutdown() |
boolean |
isTerminated() |
com.google.api.gax.rpc.UnaryCallable<RestoreAgentRequest,com.google.longrunning.Operation> |
restoreAgentCallable() |
com.google.api.gax.rpc.OperationCallable<RestoreAgentRequest,Empty,Struct> |
restoreAgentOperationCallable() |
com.google.api.gax.rpc.UnaryCallable<SearchAgentsRequest,SearchAgentsResponse> |
searchAgentsCallable() |
com.google.api.gax.rpc.UnaryCallable<SearchAgentsRequest,AgentsClient.SearchAgentsPagedResponse> |
searchAgentsPagedCallable() |
com.google.api.gax.rpc.UnaryCallable<SetAgentRequest,Agent> |
setAgentCallable() |
void |
shutdown() |
void |
shutdownNow() |
com.google.api.gax.rpc.UnaryCallable<TrainAgentRequest,com.google.longrunning.Operation> |
trainAgentCallable() |
com.google.api.gax.rpc.OperationCallable<TrainAgentRequest,Empty,Struct> |
trainAgentOperationCallable() |
protected GrpcAgentsStub(AgentsStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext) throws IOException
IOExceptionprotected GrpcAgentsStub(AgentsStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory) throws IOException
IOExceptionpublic static final GrpcAgentsStub create(AgentsStubSettings settings) throws IOException
IOExceptionpublic static final GrpcAgentsStub create(com.google.api.gax.rpc.ClientContext clientContext) throws IOException
IOExceptionpublic static final GrpcAgentsStub create(com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.grpc.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 com.google.longrunning.stub.GrpcOperationsStub getOperationsStub()
getOperationsStub in class AgentsStubpublic com.google.api.gax.rpc.UnaryCallable<SetAgentRequest,Agent> setAgentCallable()
setAgentCallable in class AgentsStubpublic com.google.api.gax.rpc.UnaryCallable<DeleteAgentRequest,Empty> deleteAgentCallable()
deleteAgentCallable in class AgentsStubpublic com.google.api.gax.rpc.UnaryCallable<GetAgentRequest,Agent> getAgentCallable()
getAgentCallable in class AgentsStubpublic com.google.api.gax.rpc.UnaryCallable<SearchAgentsRequest,AgentsClient.SearchAgentsPagedResponse> searchAgentsPagedCallable()
searchAgentsPagedCallable in class AgentsStubpublic com.google.api.gax.rpc.UnaryCallable<SearchAgentsRequest,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 com.google.api.gax.rpc.OperationCallable<TrainAgentRequest,Empty,Struct> trainAgentOperationCallable()
trainAgentOperationCallable in class AgentsStubpublic com.google.api.gax.rpc.UnaryCallable<TrainAgentRequest,com.google.longrunning.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 com.google.api.gax.rpc.OperationCallable<ExportAgentRequest,ExportAgentResponse,Struct> exportAgentOperationCallable()
exportAgentOperationCallable in class AgentsStubpublic com.google.api.gax.rpc.UnaryCallable<ExportAgentRequest,com.google.longrunning.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 com.google.api.gax.rpc.OperationCallable<ImportAgentRequest,Empty,Struct> importAgentOperationCallable()
importAgentOperationCallable in class AgentsStubpublic com.google.api.gax.rpc.UnaryCallable<ImportAgentRequest,com.google.longrunning.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 com.google.api.gax.rpc.OperationCallable<RestoreAgentRequest,Empty,Struct> restoreAgentOperationCallable()
restoreAgentOperationCallable in class AgentsStubpublic com.google.api.gax.rpc.UnaryCallable<RestoreAgentRequest,com.google.longrunning.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.