Class HttpJsonAgentsStub
- java.lang.Object
-
- com.google.cloud.dialogflow.v2.stub.AgentsStub
-
- com.google.cloud.dialogflow.v2.stub.HttpJsonAgentsStub
-
- All Implemented Interfaces:
com.google.api.gax.core.BackgroundResource,AutoCloseable
@Generated("by gapic-generator-java") @BetaApi public class HttpJsonAgentsStub extends AgentsStub
REST stub implementation for the Agents service API.This class is for advanced usage and reflects the underlying API directly.
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedHttpJsonAgentsStub(AgentsStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext)Constructs an instance of HttpJsonAgentsStub, using the given settings.protectedHttpJsonAgentsStub(AgentsStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.httpjson.HttpJsonStubCallableFactory callableFactory)Constructs an instance of HttpJsonAgentsStub, using the given settings.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanawaitTermination(long duration, TimeUnit unit)voidclose()static HttpJsonAgentsStubcreate(com.google.api.gax.rpc.ClientContext clientContext)static HttpJsonAgentsStubcreate(com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.httpjson.HttpJsonStubCallableFactory callableFactory)static HttpJsonAgentsStubcreate(AgentsStubSettings settings)com.google.api.gax.rpc.UnaryCallable<DeleteAgentRequest,com.google.protobuf.Empty>deleteAgentCallable()com.google.api.gax.rpc.UnaryCallable<ExportAgentRequest,com.google.longrunning.Operation>exportAgentCallable()com.google.api.gax.rpc.OperationCallable<ExportAgentRequest,ExportAgentResponse,com.google.protobuf.Struct>exportAgentOperationCallable()com.google.api.gax.rpc.UnaryCallable<GetAgentRequest,Agent>getAgentCallable()com.google.api.gax.httpjson.longrunning.stub.HttpJsonOperationsStubgetHttpJsonOperationsStub()com.google.api.gax.rpc.UnaryCallable<com.google.cloud.location.GetLocationRequest,com.google.cloud.location.Location>getLocationCallable()static List<com.google.api.gax.httpjson.ApiMethodDescriptor>getMethodDescriptors()com.google.api.gax.rpc.UnaryCallable<GetValidationResultRequest,ValidationResult>getValidationResultCallable()com.google.api.gax.rpc.UnaryCallable<ImportAgentRequest,com.google.longrunning.Operation>importAgentCallable()com.google.api.gax.rpc.OperationCallable<ImportAgentRequest,com.google.protobuf.Empty,com.google.protobuf.Struct>importAgentOperationCallable()booleanisShutdown()booleanisTerminated()com.google.api.gax.rpc.UnaryCallable<com.google.cloud.location.ListLocationsRequest,com.google.cloud.location.ListLocationsResponse>listLocationsCallable()com.google.api.gax.rpc.UnaryCallable<com.google.cloud.location.ListLocationsRequest,AgentsClient.ListLocationsPagedResponse>listLocationsPagedCallable()com.google.api.gax.rpc.UnaryCallable<RestoreAgentRequest,com.google.longrunning.Operation>restoreAgentCallable()com.google.api.gax.rpc.OperationCallable<RestoreAgentRequest,com.google.protobuf.Empty,com.google.protobuf.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()voidshutdown()voidshutdownNow()com.google.api.gax.rpc.UnaryCallable<TrainAgentRequest,com.google.longrunning.Operation>trainAgentCallable()com.google.api.gax.rpc.OperationCallable<TrainAgentRequest,com.google.protobuf.Empty,com.google.protobuf.Struct>trainAgentOperationCallable()-
Methods inherited from class com.google.cloud.dialogflow.v2.stub.AgentsStub
getOperationsStub
-
-
-
-
Constructor Detail
-
HttpJsonAgentsStub
protected HttpJsonAgentsStub(AgentsStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext) throws IOException
Constructs an instance of HttpJsonAgentsStub, using the given settings. This is protected so that it is easy to make a subclass, but otherwise, the static factory methods should be preferred.- Throws:
IOException
-
HttpJsonAgentsStub
protected HttpJsonAgentsStub(AgentsStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.httpjson.HttpJsonStubCallableFactory callableFactory) throws IOException
Constructs an instance of HttpJsonAgentsStub, using the given settings. This is protected so that it is easy to make a subclass, but otherwise, the static factory methods should be preferred.- Throws:
IOException
-
-
Method Detail
-
create
public static final HttpJsonAgentsStub create(AgentsStubSettings settings) throws IOException
- Throws:
IOException
-
create
public static final HttpJsonAgentsStub create(com.google.api.gax.rpc.ClientContext clientContext) throws IOException
- Throws:
IOException
-
create
public static final HttpJsonAgentsStub create(com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.httpjson.HttpJsonStubCallableFactory callableFactory) throws IOException
- Throws:
IOException
-
getMethodDescriptors
@InternalApi public static List<com.google.api.gax.httpjson.ApiMethodDescriptor> getMethodDescriptors()
-
getHttpJsonOperationsStub
public com.google.api.gax.httpjson.longrunning.stub.HttpJsonOperationsStub getHttpJsonOperationsStub()
- Overrides:
getHttpJsonOperationsStubin classAgentsStub
-
getAgentCallable
public com.google.api.gax.rpc.UnaryCallable<GetAgentRequest,Agent> getAgentCallable()
- Overrides:
getAgentCallablein classAgentsStub
-
setAgentCallable
public com.google.api.gax.rpc.UnaryCallable<SetAgentRequest,Agent> setAgentCallable()
- Overrides:
setAgentCallablein classAgentsStub
-
deleteAgentCallable
public com.google.api.gax.rpc.UnaryCallable<DeleteAgentRequest,com.google.protobuf.Empty> deleteAgentCallable()
- Overrides:
deleteAgentCallablein classAgentsStub
-
searchAgentsCallable
public com.google.api.gax.rpc.UnaryCallable<SearchAgentsRequest,SearchAgentsResponse> searchAgentsCallable()
- Overrides:
searchAgentsCallablein classAgentsStub
-
searchAgentsPagedCallable
public com.google.api.gax.rpc.UnaryCallable<SearchAgentsRequest,AgentsClient.SearchAgentsPagedResponse> searchAgentsPagedCallable()
- Overrides:
searchAgentsPagedCallablein classAgentsStub
-
trainAgentCallable
public com.google.api.gax.rpc.UnaryCallable<TrainAgentRequest,com.google.longrunning.Operation> trainAgentCallable()
- Overrides:
trainAgentCallablein classAgentsStub
-
trainAgentOperationCallable
public com.google.api.gax.rpc.OperationCallable<TrainAgentRequest,com.google.protobuf.Empty,com.google.protobuf.Struct> trainAgentOperationCallable()
- Overrides:
trainAgentOperationCallablein classAgentsStub
-
exportAgentCallable
public com.google.api.gax.rpc.UnaryCallable<ExportAgentRequest,com.google.longrunning.Operation> exportAgentCallable()
- Overrides:
exportAgentCallablein classAgentsStub
-
exportAgentOperationCallable
public com.google.api.gax.rpc.OperationCallable<ExportAgentRequest,ExportAgentResponse,com.google.protobuf.Struct> exportAgentOperationCallable()
- Overrides:
exportAgentOperationCallablein classAgentsStub
-
importAgentCallable
public com.google.api.gax.rpc.UnaryCallable<ImportAgentRequest,com.google.longrunning.Operation> importAgentCallable()
- Overrides:
importAgentCallablein classAgentsStub
-
importAgentOperationCallable
public com.google.api.gax.rpc.OperationCallable<ImportAgentRequest,com.google.protobuf.Empty,com.google.protobuf.Struct> importAgentOperationCallable()
- Overrides:
importAgentOperationCallablein classAgentsStub
-
restoreAgentCallable
public com.google.api.gax.rpc.UnaryCallable<RestoreAgentRequest,com.google.longrunning.Operation> restoreAgentCallable()
- Overrides:
restoreAgentCallablein classAgentsStub
-
restoreAgentOperationCallable
public com.google.api.gax.rpc.OperationCallable<RestoreAgentRequest,com.google.protobuf.Empty,com.google.protobuf.Struct> restoreAgentOperationCallable()
- Overrides:
restoreAgentOperationCallablein classAgentsStub
-
getValidationResultCallable
public com.google.api.gax.rpc.UnaryCallable<GetValidationResultRequest,ValidationResult> getValidationResultCallable()
- Overrides:
getValidationResultCallablein classAgentsStub
-
listLocationsCallable
public com.google.api.gax.rpc.UnaryCallable<com.google.cloud.location.ListLocationsRequest,com.google.cloud.location.ListLocationsResponse> listLocationsCallable()
- Overrides:
listLocationsCallablein classAgentsStub
-
listLocationsPagedCallable
public com.google.api.gax.rpc.UnaryCallable<com.google.cloud.location.ListLocationsRequest,AgentsClient.ListLocationsPagedResponse> listLocationsPagedCallable()
- Overrides:
listLocationsPagedCallablein classAgentsStub
-
getLocationCallable
public com.google.api.gax.rpc.UnaryCallable<com.google.cloud.location.GetLocationRequest,com.google.cloud.location.Location> getLocationCallable()
- Overrides:
getLocationCallablein classAgentsStub
-
close
public final void close()
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein classAgentsStub
-
shutdown
public void shutdown()
-
isShutdown
public boolean isShutdown()
-
isTerminated
public boolean isTerminated()
-
shutdownNow
public void shutdownNow()
-
awaitTermination
public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException- Throws:
InterruptedException
-
-