Class FlowsGrpc.FlowsFutureStub
- java.lang.Object
-
- io.grpc.stub.AbstractStub<S>
-
- io.grpc.stub.AbstractFutureStub<FlowsGrpc.FlowsFutureStub>
-
- com.google.cloud.dialogflow.cx.v3.FlowsGrpc.FlowsFutureStub
-
- Enclosing class:
- FlowsGrpc
public static final class FlowsGrpc.FlowsFutureStub extends io.grpc.stub.AbstractFutureStub<FlowsGrpc.FlowsFutureStub>
A stub to allow clients to do ListenableFuture-style rpc calls to service Flows.Service for managing [Flows][google.cloud.dialogflow.cx.v3.Flow].
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected FlowsGrpc.FlowsFutureStub
build(io.grpc.Channel channel, io.grpc.CallOptions callOptions)
com.google.common.util.concurrent.ListenableFuture<Flow>
createFlow(CreateFlowRequest request)
Creates a flow in the specified agent.com.google.common.util.concurrent.ListenableFuture<com.google.protobuf.Empty>
deleteFlow(DeleteFlowRequest request)
Deletes a specified flow.com.google.common.util.concurrent.ListenableFuture<com.google.longrunning.Operation>
exportFlow(ExportFlowRequest request)
Exports the specified flow to a binary file.com.google.common.util.concurrent.ListenableFuture<Flow>
getFlow(GetFlowRequest request)
Retrieves the specified flow.com.google.common.util.concurrent.ListenableFuture<FlowValidationResult>
getFlowValidationResult(GetFlowValidationResultRequest request)
Gets the latest flow validation result.com.google.common.util.concurrent.ListenableFuture<com.google.longrunning.Operation>
importFlow(ImportFlowRequest request)
Imports the specified flow to the specified agent from a binary file.com.google.common.util.concurrent.ListenableFuture<ListFlowsResponse>
listFlows(ListFlowsRequest request)
Returns the list of all flows in the specified agent.com.google.common.util.concurrent.ListenableFuture<com.google.longrunning.Operation>
trainFlow(TrainFlowRequest request)
Trains the specified flow.com.google.common.util.concurrent.ListenableFuture<Flow>
updateFlow(UpdateFlowRequest request)
Updates the specified flow.com.google.common.util.concurrent.ListenableFuture<FlowValidationResult>
validateFlow(ValidateFlowRequest request)
Validates the specified flow and creates or updates validation results.
-
-
-
Method Detail
-
build
protected FlowsGrpc.FlowsFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions)
- Specified by:
build
in classio.grpc.stub.AbstractStub<FlowsGrpc.FlowsFutureStub>
-
createFlow
public com.google.common.util.concurrent.ListenableFuture<Flow> createFlow(CreateFlowRequest request)
Creates a flow in the specified agent. Note: You should always train a flow prior to sending it queries. See the [training documentation](https://cloud.google.com/dialogflow/cx/docs/concept/training).
-
deleteFlow
public com.google.common.util.concurrent.ListenableFuture<com.google.protobuf.Empty> deleteFlow(DeleteFlowRequest request)
Deletes a specified flow.
-
listFlows
public com.google.common.util.concurrent.ListenableFuture<ListFlowsResponse> listFlows(ListFlowsRequest request)
Returns the list of all flows in the specified agent.
-
getFlow
public com.google.common.util.concurrent.ListenableFuture<Flow> getFlow(GetFlowRequest request)
Retrieves the specified flow.
-
updateFlow
public com.google.common.util.concurrent.ListenableFuture<Flow> updateFlow(UpdateFlowRequest request)
Updates the specified flow. Note: You should always train a flow prior to sending it queries. See the [training documentation](https://cloud.google.com/dialogflow/cx/docs/concept/training).
-
trainFlow
public com.google.common.util.concurrent.ListenableFuture<com.google.longrunning.Operation> trainFlow(TrainFlowRequest request)
Trains the specified flow. Note that only the flow in 'draft' environment is trained. This method is a [long-running operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). The returned `Operation` type has the following method-specific fields: - `metadata`: An empty [Struct message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct) - `response`: An [Empty message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#empty) Note: You should always train a flow prior to sending it queries. See the [training documentation](https://cloud.google.com/dialogflow/cx/docs/concept/training).
-
validateFlow
public com.google.common.util.concurrent.ListenableFuture<FlowValidationResult> validateFlow(ValidateFlowRequest request)
Validates the specified flow and creates or updates validation results. Please call this API after the training is completed to get the complete validation results.
-
getFlowValidationResult
public com.google.common.util.concurrent.ListenableFuture<FlowValidationResult> getFlowValidationResult(GetFlowValidationResultRequest request)
Gets the latest flow validation result. Flow validation is performed when ValidateFlow is called.
-
importFlow
public com.google.common.util.concurrent.ListenableFuture<com.google.longrunning.Operation> importFlow(ImportFlowRequest request)
Imports the specified flow to the specified agent from a binary file. This method is a [long-running operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). The returned `Operation` type has the following method-specific fields: - `metadata`: An empty [Struct message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct) - `response`: [ImportFlowResponse][google.cloud.dialogflow.cx.v3.ImportFlowResponse] Note: You should always train a flow prior to sending it queries. See the [training documentation](https://cloud.google.com/dialogflow/cx/docs/concept/training).
-
exportFlow
public com.google.common.util.concurrent.ListenableFuture<com.google.longrunning.Operation> exportFlow(ExportFlowRequest request)
Exports the specified flow to a binary file. This method is a [long-running operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). The returned `Operation` type has the following method-specific fields: - `metadata`: An empty [Struct message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct) - `response`: [ExportFlowResponse][google.cloud.dialogflow.cx.v3.ExportFlowResponse] Note that resources (e.g. intents, entities, webhooks) that the flow references will also be exported.
-
-