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 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.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
awaitTermination(long duration, TimeUnit unit)
void
close()
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)
static GrpcAgentsStub
create(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.GrpcOperationsStub
getOperationsStub()
boolean
isShutdown()
boolean
isTerminated()
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()
void
shutdown()
void
shutdownNow()
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:
getOperationsStub
in classAgentsStub
-
listAgentsCallable
public com.google.api.gax.rpc.UnaryCallable<ListAgentsRequest,ListAgentsResponse> listAgentsCallable()
- Overrides:
listAgentsCallable
in classAgentsStub
-
listAgentsPagedCallable
public com.google.api.gax.rpc.UnaryCallable<ListAgentsRequest,AgentsClient.ListAgentsPagedResponse> listAgentsPagedCallable()
- Overrides:
listAgentsPagedCallable
in classAgentsStub
-
getAgentCallable
public com.google.api.gax.rpc.UnaryCallable<GetAgentRequest,Agent> getAgentCallable()
- Overrides:
getAgentCallable
in classAgentsStub
-
createAgentCallable
public com.google.api.gax.rpc.UnaryCallable<CreateAgentRequest,Agent> createAgentCallable()
- Overrides:
createAgentCallable
in classAgentsStub
-
updateAgentCallable
public com.google.api.gax.rpc.UnaryCallable<UpdateAgentRequest,Agent> updateAgentCallable()
- Overrides:
updateAgentCallable
in classAgentsStub
-
deleteAgentCallable
public com.google.api.gax.rpc.UnaryCallable<DeleteAgentRequest,com.google.protobuf.Empty> deleteAgentCallable()
- Overrides:
deleteAgentCallable
in classAgentsStub
-
exportAgentCallable
public com.google.api.gax.rpc.UnaryCallable<ExportAgentRequest,com.google.longrunning.Operation> exportAgentCallable()
- Overrides:
exportAgentCallable
in classAgentsStub
-
exportAgentOperationCallable
public com.google.api.gax.rpc.OperationCallable<ExportAgentRequest,ExportAgentResponse,com.google.protobuf.Struct> exportAgentOperationCallable()
- Overrides:
exportAgentOperationCallable
in classAgentsStub
-
restoreAgentCallable
public com.google.api.gax.rpc.UnaryCallable<RestoreAgentRequest,com.google.longrunning.Operation> restoreAgentCallable()
- Overrides:
restoreAgentCallable
in classAgentsStub
-
restoreAgentOperationCallable
public com.google.api.gax.rpc.OperationCallable<RestoreAgentRequest,com.google.protobuf.Empty,com.google.protobuf.Struct> restoreAgentOperationCallable()
- Overrides:
restoreAgentOperationCallable
in classAgentsStub
-
validateAgentCallable
public com.google.api.gax.rpc.UnaryCallable<ValidateAgentRequest,AgentValidationResult> validateAgentCallable()
- Overrides:
validateAgentCallable
in classAgentsStub
-
getAgentValidationResultCallable
public com.google.api.gax.rpc.UnaryCallable<GetAgentValidationResultRequest,AgentValidationResult> getAgentValidationResultCallable()
- Overrides:
getAgentValidationResultCallable
in classAgentsStub
-
getGenerativeSettingsCallable
public com.google.api.gax.rpc.UnaryCallable<GetGenerativeSettingsRequest,GenerativeSettings> getGenerativeSettingsCallable()
- Overrides:
getGenerativeSettingsCallable
in classAgentsStub
-
updateGenerativeSettingsCallable
public com.google.api.gax.rpc.UnaryCallable<UpdateGenerativeSettingsRequest,GenerativeSettings> updateGenerativeSettingsCallable()
- Overrides:
updateGenerativeSettingsCallable
in classAgentsStub
-
listLocationsCallable
public com.google.api.gax.rpc.UnaryCallable<com.google.cloud.location.ListLocationsRequest,com.google.cloud.location.ListLocationsResponse> listLocationsCallable()
- Overrides:
listLocationsCallable
in classAgentsStub
-
listLocationsPagedCallable
public com.google.api.gax.rpc.UnaryCallable<com.google.cloud.location.ListLocationsRequest,AgentsClient.ListLocationsPagedResponse> listLocationsPagedCallable()
- Overrides:
listLocationsPagedCallable
in classAgentsStub
-
getLocationCallable
public com.google.api.gax.rpc.UnaryCallable<com.google.cloud.location.GetLocationRequest,com.google.cloud.location.Location> getLocationCallable()
- Overrides:
getLocationCallable
in classAgentsStub
-
close
public final void close()
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in 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
-
-