Class GrpcAgentsStub
- java.lang.Object
-
- com.google.cloud.dialogflow.cx.v3.stub.AgentsStub
-
- com.google.cloud.dialogflow.cx.v3.stub.GrpcAgentsStub
-
- All Implemented Interfaces:
com.google.api.gax.core.BackgroundResource,AutoCloseable
@Generated("by gapic-generator-java") public class GrpcAgentsStub extends AgentsStub
gRPC 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 protectedGrpcAgentsStub(AgentsStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext)Constructs an instance of GrpcAgentsStub, using the given settings.protectedGrpcAgentsStub(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.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanawaitTermination(long duration, TimeUnit unit)voidclose()static GrpcAgentsStubcreate(com.google.api.gax.rpc.ClientContext clientContext)static GrpcAgentsStubcreate(com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory)static GrpcAgentsStubcreate(AgentsStubSettings settings)com.google.api.gax.rpc.UnaryCallable<CreateAgentRequest,Agent>createAgentCallable()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.rpc.UnaryCallable<GetAgentValidationResultRequest,AgentValidationResult>getAgentValidationResultCallable()com.google.api.gax.rpc.UnaryCallable<GetGenerativeSettingsRequest,GenerativeSettings>getGenerativeSettingsCallable()com.google.api.gax.rpc.UnaryCallable<com.google.cloud.location.GetLocationRequest,com.google.cloud.location.Location>getLocationCallable()com.google.longrunning.stub.GrpcOperationsStubgetOperationsStub()booleanisShutdown()booleanisTerminated()com.google.api.gax.rpc.UnaryCallable<ListAgentsRequest,ListAgentsResponse>listAgentsCallable()com.google.api.gax.rpc.UnaryCallable<ListAgentsRequest,AgentsClient.ListAgentsPagedResponse>listAgentsPagedCallable()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()voidshutdown()voidshutdownNow()com.google.api.gax.rpc.UnaryCallable<UpdateAgentRequest,Agent>updateAgentCallable()com.google.api.gax.rpc.UnaryCallable<UpdateGenerativeSettingsRequest,GenerativeSettings>updateGenerativeSettingsCallable()com.google.api.gax.rpc.UnaryCallable<ValidateAgentRequest,AgentValidationResult>validateAgentCallable()-
Methods inherited from class com.google.cloud.dialogflow.cx.v3.stub.AgentsStub
getHttpJsonOperationsStub
-
-
-
-
Constructor Detail
-
GrpcAgentsStub
protected GrpcAgentsStub(AgentsStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext) throws IOException
Constructs an instance of GrpcAgentsStub, 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
-
GrpcAgentsStub
protected GrpcAgentsStub(AgentsStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory) throws IOException
Constructs an instance of GrpcAgentsStub, 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 GrpcAgentsStub create(AgentsStubSettings settings) throws IOException
- Throws:
IOException
-
create
public static final GrpcAgentsStub create(com.google.api.gax.rpc.ClientContext clientContext) throws IOException
- Throws:
IOException
-
create
public static final GrpcAgentsStub create(com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory) throws IOException
- Throws:
IOException
-
getOperationsStub
public com.google.longrunning.stub.GrpcOperationsStub getOperationsStub()
- Overrides:
getOperationsStubin classAgentsStub
-
listAgentsCallable
public com.google.api.gax.rpc.UnaryCallable<ListAgentsRequest,ListAgentsResponse> listAgentsCallable()
- Overrides:
listAgentsCallablein classAgentsStub
-
listAgentsPagedCallable
public com.google.api.gax.rpc.UnaryCallable<ListAgentsRequest,AgentsClient.ListAgentsPagedResponse> listAgentsPagedCallable()
- Overrides:
listAgentsPagedCallablein classAgentsStub
-
getAgentCallable
public com.google.api.gax.rpc.UnaryCallable<GetAgentRequest,Agent> getAgentCallable()
- Overrides:
getAgentCallablein classAgentsStub
-
createAgentCallable
public com.google.api.gax.rpc.UnaryCallable<CreateAgentRequest,Agent> createAgentCallable()
- Overrides:
createAgentCallablein classAgentsStub
-
updateAgentCallable
public com.google.api.gax.rpc.UnaryCallable<UpdateAgentRequest,Agent> updateAgentCallable()
- Overrides:
updateAgentCallablein classAgentsStub
-
deleteAgentCallable
public com.google.api.gax.rpc.UnaryCallable<DeleteAgentRequest,com.google.protobuf.Empty> deleteAgentCallable()
- Overrides:
deleteAgentCallablein 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
-
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
-
validateAgentCallable
public com.google.api.gax.rpc.UnaryCallable<ValidateAgentRequest,AgentValidationResult> validateAgentCallable()
- Overrides:
validateAgentCallablein classAgentsStub
-
getAgentValidationResultCallable
public com.google.api.gax.rpc.UnaryCallable<GetAgentValidationResultRequest,AgentValidationResult> getAgentValidationResultCallable()
- Overrides:
getAgentValidationResultCallablein classAgentsStub
-
getGenerativeSettingsCallable
public com.google.api.gax.rpc.UnaryCallable<GetGenerativeSettingsRequest,GenerativeSettings> getGenerativeSettingsCallable()
- Overrides:
getGenerativeSettingsCallablein classAgentsStub
-
updateGenerativeSettingsCallable
public com.google.api.gax.rpc.UnaryCallable<UpdateGenerativeSettingsRequest,GenerativeSettings> updateGenerativeSettingsCallable()
- Overrides:
updateGenerativeSettingsCallablein 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
-
-