The returned connection object should not be used directly; instead it should be passed as an argument to the constructor of TranslationServiceClient.
The optional options argument may be used to configure aspects of the returned TranslationServiceConnection. 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 Google Cloud Translate C++ library is 2.37.0-rc, with numerous previous versions available, from 2.36.0 down to 2.11.0.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eTranslationServiceClient\u003c/code\u003e provides the capability for natural language translation operations.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eTranslationServiceConnection\u003c/code\u003e is used in conjunction with \u003ccode\u003eTranslationServiceClient\u003c/code\u003e, and its behavior can be configured through various retry and policy options.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eMakeTranslationServiceConnection\u003c/code\u003e is a factory function that creates a \u003ccode\u003eTranslationServiceConnection\u003c/code\u003e object, and can be configured using optional parameters.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eMakeDefaultTranslationServiceConnectionIdempotencyPolicy\u003c/code\u003e function creates a \u003ccode\u003eTranslationServiceConnectionIdempotencyPolicy\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,["# Namespace google::cloud::translate_v3 (2.42.0-rc)\n\nVersion latestkeyboard_arrow_down\n\n- [2.42.0-rc (latest)](/cpp/docs/reference/translate/latest/namespacegoogle_1_1cloud_1_1translate__v3)\n- [2.41.0](/cpp/docs/reference/translate/2.41.0/namespacegoogle_1_1cloud_1_1translate__v3)\n- [2.40.0](/cpp/docs/reference/translate/2.40.0/namespacegoogle_1_1cloud_1_1translate__v3)\n- [2.39.0](/cpp/docs/reference/translate/2.39.0/namespacegoogle_1_1cloud_1_1translate__v3)\n- [2.38.0](/cpp/docs/reference/translate/2.38.0/namespacegoogle_1_1cloud_1_1translate__v3)\n- [2.37.0](/cpp/docs/reference/translate/2.37.0/namespacegoogle_1_1cloud_1_1translate__v3)\n- [2.36.0](/cpp/docs/reference/translate/2.36.0/namespacegoogle_1_1cloud_1_1translate__v3)\n- [2.35.0](/cpp/docs/reference/translate/2.35.0/namespacegoogle_1_1cloud_1_1translate__v3)\n- [2.34.0](/cpp/docs/reference/translate/2.34.0/namespacegoogle_1_1cloud_1_1translate__v3)\n- [2.33.0](/cpp/docs/reference/translate/2.33.0/namespacegoogle_1_1cloud_1_1translate__v3)\n- [2.32.0](/cpp/docs/reference/translate/2.32.0/namespacegoogle_1_1cloud_1_1translate__v3)\n- [2.31.0](/cpp/docs/reference/translate/2.31.0/namespacegoogle_1_1cloud_1_1translate__v3)\n- [2.30.0](/cpp/docs/reference/translate/2.30.0/namespacegoogle_1_1cloud_1_1translate__v3)\n- [2.29.0](/cpp/docs/reference/translate/2.29.0/namespacegoogle_1_1cloud_1_1translate__v3)\n- [2.28.0](/cpp/docs/reference/translate/2.28.0/namespacegoogle_1_1cloud_1_1translate__v3)\n- [2.27.0](/cpp/docs/reference/translate/2.27.0/namespacegoogle_1_1cloud_1_1translate__v3)\n- [2.26.0](/cpp/docs/reference/translate/2.26.0/namespacegoogle_1_1cloud_1_1translate__v3)\n- [2.25.1](/cpp/docs/reference/translate/2.25.1/namespacegoogle_1_1cloud_1_1translate__v3)\n- [2.24.0](/cpp/docs/reference/translate/2.24.0/namespacegoogle_1_1cloud_1_1translate__v3)\n- [2.23.0](/cpp/docs/reference/translate/2.23.0/namespacegoogle_1_1cloud_1_1translate__v3)\n- [2.22.1](/cpp/docs/reference/translate/2.22.1/namespacegoogle_1_1cloud_1_1translate__v3)\n- [2.21.0](/cpp/docs/reference/translate/2.21.0/namespacegoogle_1_1cloud_1_1translate__v3)\n- [2.20.0](/cpp/docs/reference/translate/2.20.0/namespacegoogle_1_1cloud_1_1translate__v3)\n- [2.19.0](/cpp/docs/reference/translate/2.19.0/namespacegoogle_1_1cloud_1_1translate__v3)\n- [2.18.0](/cpp/docs/reference/translate/2.18.0/namespacegoogle_1_1cloud_1_1translate__v3)\n- [2.17.0](/cpp/docs/reference/translate/2.17.0/namespacegoogle_1_1cloud_1_1translate__v3)\n- [2.16.0](/cpp/docs/reference/translate/2.16.0/namespacegoogle_1_1cloud_1_1translate__v3)\n- [2.15.1](/cpp/docs/reference/translate/2.15.1/namespacegoogle_1_1cloud_1_1translate__v3)\n- [2.14.0](/cpp/docs/reference/translate/2.14.0/namespacegoogle_1_1cloud_1_1translate__v3)\n- [2.13.0](/cpp/docs/reference/translate/2.13.0/namespacegoogle_1_1cloud_1_1translate__v3)\n- [2.12.0](/cpp/docs/reference/translate/2.12.0/namespacegoogle_1_1cloud_1_1translate__v3)\n- [2.11.0](/cpp/docs/reference/translate/2.11.0/namespacegoogle_1_1cloud_1_1translate__v3) \n\nClasses\n-------\n\n### [TranslationServiceClient](/cpp/docs/reference/translate/latest/classgoogle_1_1cloud_1_1translate__v3_1_1TranslationServiceClient)\n\nProvides natural language translation operations.\n\n### [TranslationServiceConnection](/cpp/docs/reference/translate/latest/classgoogle_1_1cloud_1_1translate__v3_1_1TranslationServiceConnection)\n\nThe [`TranslationServiceConnection`](/cpp/docs/reference/translate/latest/classgoogle_1_1cloud_1_1translate__v3_1_1TranslationServiceConnection) object for [`TranslationServiceClient`](/cpp/docs/reference/translate/latest/classgoogle_1_1cloud_1_1translate__v3_1_1TranslationServiceClient).\n\n### [TranslationServiceConnectionIdempotencyPolicy](/cpp/docs/reference/translate/latest/classgoogle_1_1cloud_1_1translate__v3_1_1TranslationServiceConnectionIdempotencyPolicy)\n\n### [TranslationServiceLimitedErrorCountRetryPolicy](/cpp/docs/reference/translate/latest/classgoogle_1_1cloud_1_1translate__v3_1_1TranslationServiceLimitedErrorCountRetryPolicy)\n\nA retry policy for [`TranslationServiceConnection`](/cpp/docs/reference/translate/latest/classgoogle_1_1cloud_1_1translate__v3_1_1TranslationServiceConnection) based on counting errors.\n\n### [TranslationServiceLimitedTimeRetryPolicy](/cpp/docs/reference/translate/latest/classgoogle_1_1cloud_1_1translate__v3_1_1TranslationServiceLimitedTimeRetryPolicy)\n\nA retry policy for [`TranslationServiceConnection`](/cpp/docs/reference/translate/latest/classgoogle_1_1cloud_1_1translate__v3_1_1TranslationServiceConnection) based on elapsed time.\n\n### [TranslationServiceRetryPolicy](/cpp/docs/reference/translate/latest/classgoogle_1_1cloud_1_1translate__v3_1_1TranslationServiceRetryPolicy)\n\nThe retry policy for [`TranslationServiceConnection`](/cpp/docs/reference/translate/latest/classgoogle_1_1cloud_1_1translate__v3_1_1TranslationServiceConnection).\n\nStructs\n-------\n\n### [TranslationServiceBackoffPolicyOption](/cpp/docs/reference/translate/latest/structgoogle_1_1cloud_1_1translate__v3_1_1TranslationServiceBackoffPolicyOption)\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### [TranslationServiceConnectionIdempotencyPolicyOption](/cpp/docs/reference/translate/latest/structgoogle_1_1cloud_1_1translate__v3_1_1TranslationServiceConnectionIdempotencyPolicyOption)\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### [TranslationServicePollingPolicyOption](/cpp/docs/reference/translate/latest/structgoogle_1_1cloud_1_1translate__v3_1_1TranslationServicePollingPolicyOption)\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### [TranslationServiceRetryPolicyOption](/cpp/docs/reference/translate/latest/structgoogle_1_1cloud_1_1translate__v3_1_1TranslationServiceRetryPolicyOption)\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### MakeTranslationServiceConnection(Options)\n\nA factory function to construct an object of type [`TranslationServiceConnection`](/cpp/docs/reference/translate/latest/classgoogle_1_1cloud_1_1translate__v3_1_1TranslationServiceConnection). \nThe returned connection object should not be used directly; instead it should be passed as an argument to the constructor of [TranslationServiceClient](/cpp/docs/reference/translate/latest/classgoogle_1_1cloud_1_1translate__v3_1_1TranslationServiceClient).\n\nThe optional `options` argument may be used to configure aspects of the returned [`TranslationServiceConnection`](/cpp/docs/reference/translate/latest/classgoogle_1_1cloud_1_1translate__v3_1_1TranslationServiceConnection). 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::translate_v3::TranslationServicePolicyOptionList`](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### MakeDefaultTranslationServiceConnectionIdempotencyPolicy()"]]