Class HttpJsonAgentsStub
- java.lang.Object
-
- com.google.cloud.dialogflow.cx.v3beta1.stub.AgentsStub
-
- com.google.cloud.dialogflow.cx.v3beta1.stub.HttpJsonAgentsStub
-
- All Implemented Interfaces:
com.google.api.gax.core.BackgroundResource
,AutoCloseable
@BetaApi @Generated("by gapic-generator-java") 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 protected
HttpJsonAgentsStub(AgentsStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext)
Constructs an instance of HttpJsonAgentsStub, using the given settings.protected
HttpJsonAgentsStub(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 boolean
awaitTermination(long duration, TimeUnit unit)
void
close()
static HttpJsonAgentsStub
create(com.google.api.gax.rpc.ClientContext clientContext)
static HttpJsonAgentsStub
create(com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.httpjson.HttpJsonStubCallableFactory callableFactory)
static HttpJsonAgentsStub
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.httpjson.longrunning.stub.HttpJsonOperationsStub
getHttpJsonOperationsStub()
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()
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.v3beta1.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:
getHttpJsonOperationsStub
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
-
-