The returned connection object should not be used directly; instead it should be passed as an argument to the constructor of WorkflowsClient.
The optional options argument may be used to configure aspects of the returned WorkflowsConnection. Expected options are any of the types in the following option lists:
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[[["\u003cp\u003eThe latest version of the Workflows library is 2.37.0-rc, and this page provides documentation for it, as well as previous releases ranging from 2.36.0 down to 2.11.0.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eWorkflowsClient\u003c/code\u003e is used to deploy and execute workflow programs.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eWorkflowsConnection\u003c/code\u003e object is the main object used alongside \u003ccode\u003eWorkflowsClient\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eSeveral retry policies such as \u003ccode\u003eWorkflowsLimitedErrorCountRetryPolicy\u003c/code\u003e, \u003ccode\u003eWorkflowsLimitedTimeRetryPolicy\u003c/code\u003e, and \u003ccode\u003eWorkflowsRetryPolicy\u003c/code\u003e are available for managing \u003ccode\u003eWorkflowsConnection\u003c/code\u003e behavior.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eMakeWorkflowsConnection\u003c/code\u003e function creates a \u003ccode\u003eWorkflowsConnection\u003c/code\u003e object and takes options to configure how it functions, the list of options are listed in the function description.\u003c/p\u003e\n"]]],[],null,["# Namespace google::cloud::workflows_v1 (2.42.0-rc)\n\nVersion latestkeyboard_arrow_down\n\n- [2.42.0-rc (latest)](/cpp/docs/reference/workflows/latest/namespacegoogle_1_1cloud_1_1workflows__v1)\n- [2.41.0](/cpp/docs/reference/workflows/2.41.0/namespacegoogle_1_1cloud_1_1workflows__v1)\n- [2.40.0](/cpp/docs/reference/workflows/2.40.0/namespacegoogle_1_1cloud_1_1workflows__v1)\n- [2.39.0](/cpp/docs/reference/workflows/2.39.0/namespacegoogle_1_1cloud_1_1workflows__v1)\n- [2.38.0](/cpp/docs/reference/workflows/2.38.0/namespacegoogle_1_1cloud_1_1workflows__v1)\n- [2.37.0](/cpp/docs/reference/workflows/2.37.0/namespacegoogle_1_1cloud_1_1workflows__v1)\n- [2.36.0](/cpp/docs/reference/workflows/2.36.0/namespacegoogle_1_1cloud_1_1workflows__v1)\n- [2.35.0](/cpp/docs/reference/workflows/2.35.0/namespacegoogle_1_1cloud_1_1workflows__v1)\n- [2.34.0](/cpp/docs/reference/workflows/2.34.0/namespacegoogle_1_1cloud_1_1workflows__v1)\n- [2.33.0](/cpp/docs/reference/workflows/2.33.0/namespacegoogle_1_1cloud_1_1workflows__v1)\n- [2.32.0](/cpp/docs/reference/workflows/2.32.0/namespacegoogle_1_1cloud_1_1workflows__v1)\n- [2.31.0](/cpp/docs/reference/workflows/2.31.0/namespacegoogle_1_1cloud_1_1workflows__v1)\n- [2.30.0](/cpp/docs/reference/workflows/2.30.0/namespacegoogle_1_1cloud_1_1workflows__v1)\n- [2.29.0](/cpp/docs/reference/workflows/2.29.0/namespacegoogle_1_1cloud_1_1workflows__v1)\n- [2.28.0](/cpp/docs/reference/workflows/2.28.0/namespacegoogle_1_1cloud_1_1workflows__v1)\n- [2.27.0](/cpp/docs/reference/workflows/2.27.0/namespacegoogle_1_1cloud_1_1workflows__v1)\n- [2.26.0](/cpp/docs/reference/workflows/2.26.0/namespacegoogle_1_1cloud_1_1workflows__v1)\n- [2.25.1](/cpp/docs/reference/workflows/2.25.1/namespacegoogle_1_1cloud_1_1workflows__v1)\n- [2.24.0](/cpp/docs/reference/workflows/2.24.0/namespacegoogle_1_1cloud_1_1workflows__v1)\n- [2.23.0](/cpp/docs/reference/workflows/2.23.0/namespacegoogle_1_1cloud_1_1workflows__v1)\n- [2.22.1](/cpp/docs/reference/workflows/2.22.1/namespacegoogle_1_1cloud_1_1workflows__v1)\n- [2.21.0](/cpp/docs/reference/workflows/2.21.0/namespacegoogle_1_1cloud_1_1workflows__v1)\n- [2.20.0](/cpp/docs/reference/workflows/2.20.0/namespacegoogle_1_1cloud_1_1workflows__v1)\n- [2.19.0](/cpp/docs/reference/workflows/2.19.0/namespacegoogle_1_1cloud_1_1workflows__v1)\n- [2.18.0](/cpp/docs/reference/workflows/2.18.0/namespacegoogle_1_1cloud_1_1workflows__v1)\n- [2.17.0](/cpp/docs/reference/workflows/2.17.0/namespacegoogle_1_1cloud_1_1workflows__v1)\n- [2.16.0](/cpp/docs/reference/workflows/2.16.0/namespacegoogle_1_1cloud_1_1workflows__v1)\n- [2.15.1](/cpp/docs/reference/workflows/2.15.1/namespacegoogle_1_1cloud_1_1workflows__v1)\n- [2.14.0](/cpp/docs/reference/workflows/2.14.0/namespacegoogle_1_1cloud_1_1workflows__v1)\n- [2.13.0](/cpp/docs/reference/workflows/2.13.0/namespacegoogle_1_1cloud_1_1workflows__v1)\n- [2.12.0](/cpp/docs/reference/workflows/2.12.0/namespacegoogle_1_1cloud_1_1workflows__v1)\n- [2.11.0](/cpp/docs/reference/workflows/2.11.0/namespacegoogle_1_1cloud_1_1workflows__v1) \n\nClasses\n-------\n\n### [WorkflowsClient](/cpp/docs/reference/workflows/latest/classgoogle_1_1cloud_1_1workflows__v1_1_1WorkflowsClient)\n\nWorkflows is used to deploy and execute workflow programs.\n\n### [WorkflowsConnection](/cpp/docs/reference/workflows/latest/classgoogle_1_1cloud_1_1workflows__v1_1_1WorkflowsConnection)\n\nThe [`WorkflowsConnection`](/cpp/docs/reference/workflows/latest/classgoogle_1_1cloud_1_1workflows__v1_1_1WorkflowsConnection) object for [`WorkflowsClient`](/cpp/docs/reference/workflows/latest/classgoogle_1_1cloud_1_1workflows__v1_1_1WorkflowsClient).\n\n### [WorkflowsConnectionIdempotencyPolicy](/cpp/docs/reference/workflows/latest/classgoogle_1_1cloud_1_1workflows__v1_1_1WorkflowsConnectionIdempotencyPolicy)\n\n### [WorkflowsLimitedErrorCountRetryPolicy](/cpp/docs/reference/workflows/latest/classgoogle_1_1cloud_1_1workflows__v1_1_1WorkflowsLimitedErrorCountRetryPolicy)\n\nA retry policy for [`WorkflowsConnection`](/cpp/docs/reference/workflows/latest/classgoogle_1_1cloud_1_1workflows__v1_1_1WorkflowsConnection) based on counting errors.\n\n### [WorkflowsLimitedTimeRetryPolicy](/cpp/docs/reference/workflows/latest/classgoogle_1_1cloud_1_1workflows__v1_1_1WorkflowsLimitedTimeRetryPolicy)\n\nA retry policy for [`WorkflowsConnection`](/cpp/docs/reference/workflows/latest/classgoogle_1_1cloud_1_1workflows__v1_1_1WorkflowsConnection) based on elapsed time.\n\n### [WorkflowsRetryPolicy](/cpp/docs/reference/workflows/latest/classgoogle_1_1cloud_1_1workflows__v1_1_1WorkflowsRetryPolicy)\n\nThe retry policy for [`WorkflowsConnection`](/cpp/docs/reference/workflows/latest/classgoogle_1_1cloud_1_1workflows__v1_1_1WorkflowsConnection).\n\nStructs\n-------\n\n### [WorkflowsBackoffPolicyOption](/cpp/docs/reference/workflows/latest/structgoogle_1_1cloud_1_1workflows__v1_1_1WorkflowsBackoffPolicyOption)\n\nUse with [`google::cloud::Options`](https://cloud.google.com/cpp/docs/reference/common/latest/classgoogle_1_1cloud_1_1Options.html) to configure the backoff policy.\n\n### [WorkflowsConnectionIdempotencyPolicyOption](/cpp/docs/reference/workflows/latest/structgoogle_1_1cloud_1_1workflows__v1_1_1WorkflowsConnectionIdempotencyPolicyOption)\n\nUse with [`google::cloud::Options`](https://cloud.google.com/cpp/docs/reference/common/latest/classgoogle_1_1cloud_1_1Options.html) to configure which operations are retried.\n\n### [WorkflowsPollingPolicyOption](/cpp/docs/reference/workflows/latest/structgoogle_1_1cloud_1_1workflows__v1_1_1WorkflowsPollingPolicyOption)\n\nUse with [`google::cloud::Options`](https://cloud.google.com/cpp/docs/reference/common/latest/classgoogle_1_1cloud_1_1Options.html) to configure the long-running operations polling policy.\n\n### [WorkflowsRetryPolicyOption](/cpp/docs/reference/workflows/latest/structgoogle_1_1cloud_1_1workflows__v1_1_1WorkflowsRetryPolicyOption)\n\nUse with [`google::cloud::Options`](https://cloud.google.com/cpp/docs/reference/common/latest/classgoogle_1_1cloud_1_1Options.html) to configure the retry policy.\n\nFunctions\n---------\n\n### MakeWorkflowsConnection(Options)\n\nA factory function to construct an object of type [`WorkflowsConnection`](/cpp/docs/reference/workflows/latest/classgoogle_1_1cloud_1_1workflows__v1_1_1WorkflowsConnection). \nThe returned connection object should not be used directly; instead it should be passed as an argument to the constructor of [WorkflowsClient](/cpp/docs/reference/workflows/latest/classgoogle_1_1cloud_1_1workflows__v1_1_1WorkflowsClient).\n\nThe optional `options` argument may be used to configure aspects of the returned [`WorkflowsConnection`](/cpp/docs/reference/workflows/latest/classgoogle_1_1cloud_1_1workflows__v1_1_1WorkflowsConnection). Expected options are any of the types in the following option lists:\n\n- [`google::cloud::CommonOptionList`](https://cloud.google.com/cpp/docs/reference/common/latest/namespacegoogle_1_1cloud.html)\n- [`google::cloud::GrpcOptionList`](https://cloud.google.com/cpp/docs/reference/common/latest/namespacegoogle_1_1cloud.html)\n- [`google::cloud::UnifiedCredentialsOptionList`](about:invalid#zCSafez)\n- [`google::cloud::workflows_v1::WorkflowsPolicyOptionList`](about:invalid#zCSafez)\n\n| **Note:** Unexpected options will be ignored. To log unexpected options instead, set `GOOGLE_CLOUD_CPP_ENABLE_CLOG=yes` in the environment.\n\n### MakeDefaultWorkflowsConnectionIdempotencyPolicy()"]]