ProjectsLocationsAgentsFlows
class ProjectsLocationsAgentsFlows extends Resource (View source)
The "flows" collection of methods.
Typical usage is:
$dialogflowService = new Google\Service\Dialogflow(...);
$flows = $dialogflowService->projects_locations_agents_flows;
Methods
Creates a flow in the specified agent. Note: You should always train a flow prior to sending it queries. See the training documentation.
Deletes a specified flow. (flows.delete)
Exports the specified flow to a binary file. This method is a long-running
operation. The returned Operation
type has the following method-specific
fields: - metadata
: An empty Struct
message - response
:
ExportFlowResponse Note that resources (e.g. intents, entities, webhooks)
that the flow references will also be exported. (flows.export)
Retrieves the specified flow. (flows.get)
Gets the latest flow validation result. Flow validation is performed when ValidateFlow is called. (flows.getValidationResult)
Imports the specified flow to the specified agent from a binary file. This
method is a long-running
operation. The returned Operation
type has the following method-specific
fields: - metadata
: An empty Struct
message - response
:
ImportFlowResponse Note: You should always train a flow prior to sending it
queries. See the training
documentation.
Returns the list of all flows in the specified agent.
Updates the specified flow. Note: You should always train a flow prior to sending it queries. See the training documentation.
Trains the specified flow. Note that only the flow in 'draft' environment is
trained. This method is a long-running
operation. The returned Operation
type has the following method-specific
fields: - metadata
: An empty Struct
message - response
: An Empty
message Note: You should always train a
flow prior to sending it queries. See the training
documentation.
Validates the specified flow and creates or updates validation results.
Details
GoogleCloudDialogflowCxV3Flow
create(string $parent, GoogleCloudDialogflowCxV3Flow $postBody, array $optParams = [])
Creates a flow in the specified agent. Note: You should always train a flow prior to sending it queries. See the training documentation.
(flows.create)
GoogleProtobufEmpty
delete(string $name, array $optParams = [])
Deletes a specified flow. (flows.delete)
GoogleLongrunningOperation
export(string $name, GoogleCloudDialogflowCxV3ExportFlowRequest $postBody, array $optParams = [])
Exports the specified flow to a binary file. This method is a long-running
operation. The returned Operation
type has the following method-specific
fields: - metadata
: An empty Struct
message - response
:
ExportFlowResponse Note that resources (e.g. intents, entities, webhooks)
that the flow references will also be exported. (flows.export)
GoogleCloudDialogflowCxV3Flow
get(string $name, array $optParams = [])
Retrieves the specified flow. (flows.get)
GoogleCloudDialogflowCxV3FlowValidationResult
getValidationResult(string $name, array $optParams = [])
Gets the latest flow validation result. Flow validation is performed when ValidateFlow is called. (flows.getValidationResult)
GoogleLongrunningOperation
import(string $parent, GoogleCloudDialogflowCxV3ImportFlowRequest $postBody, array $optParams = [])
Imports the specified flow to the specified agent from a binary file. This
method is a long-running
operation. The returned Operation
type has the following method-specific
fields: - metadata
: An empty Struct
message - response
:
ImportFlowResponse Note: You should always train a flow prior to sending it
queries. See the training
documentation.
(flows.import)
GoogleCloudDialogflowCxV3ListFlowsResponse
listProjectsLocationsAgentsFlows(string $parent, array $optParams = [])
Returns the list of all flows in the specified agent.
(flows.listProjectsLocationsAgentsFlows)
GoogleCloudDialogflowCxV3Flow
patch(string $name, GoogleCloudDialogflowCxV3Flow $postBody, array $optParams = [])
Updates the specified flow. Note: You should always train a flow prior to sending it queries. See the training documentation.
(flows.patch)
GoogleLongrunningOperation
train(string $name, GoogleCloudDialogflowCxV3TrainFlowRequest $postBody, array $optParams = [])
Trains the specified flow. Note that only the flow in 'draft' environment is
trained. This method is a long-running
operation. The returned Operation
type has the following method-specific
fields: - metadata
: An empty Struct
message - response
: An Empty
message Note: You should always train a
flow prior to sending it queries. See the training
documentation.
(flows.train)
GoogleCloudDialogflowCxV3FlowValidationResult
validate(string $name, GoogleCloudDialogflowCxV3ValidateFlowRequest $postBody, array $optParams = [])
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. (flows.validate)