[[["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 \u003ccode\u003eTranslationClientBuilder\u003c/code\u003e class is used to customize and build instances of the \u003ccode\u003eTranslationClient\u003c/code\u003e for the Google Cloud Translation v2 API.\u003c/p\u003e\n"],["\u003cp\u003eThe latest version of the library is 3.4.0, with previous versions including 3.3.0, 3.2.0, 3.1.0, 3.0.0, and 2.1.0 also available.\u003c/p\u003e\n"],["\u003cp\u003eIt inherits from \u003ccode\u003eClientBuilderBase\u003c/code\u003e and allows setting properties such as \u003ccode\u003eCredentialsPath\u003c/code\u003e, \u003ccode\u003eJsonCredentials\u003c/code\u003e, \u003ccode\u003eApplicationName\u003c/code\u003e, \u003ccode\u003eBaseUri\u003c/code\u003e, and \u003ccode\u003eTranslationModel\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe class provides methods \u003ccode\u003eBuild()\u003c/code\u003e and \u003ccode\u003eBuildAsync()\u003c/code\u003e to create a \u003ccode\u003eTranslationClient\u003c/code\u003e, either synchronously or asynchronously.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eTranslationClientBuilder\u003c/code\u003e has a constructor that creates a new builder with default settings.\u003c/p\u003e\n"]]],[],null,["# Google Cloud Translation v2 API - Class TranslationClientBuilder (3.4.0)\n\nVersion latestkeyboard_arrow_down\n\n- [3.4.0 (latest)](/dotnet/docs/reference/Google.Cloud.Translation.V2/latest/Google.Cloud.Translation.V2.TranslationClientBuilder)\n- [3.3.0](/dotnet/docs/reference/Google.Cloud.Translation.V2/3.3.0/Google.Cloud.Translation.V2.TranslationClientBuilder)\n- [3.2.0](/dotnet/docs/reference/Google.Cloud.Translation.V2/3.2.0/Google.Cloud.Translation.V2.TranslationClientBuilder)\n- [3.1.0](/dotnet/docs/reference/Google.Cloud.Translation.V2/3.1.0/Google.Cloud.Translation.V2.TranslationClientBuilder)\n- [3.0.0](/dotnet/docs/reference/Google.Cloud.Translation.V2/3.0.0/Google.Cloud.Translation.V2.TranslationClientBuilder)\n- [2.1.0](/dotnet/docs/reference/Google.Cloud.Translation.V2/2.1.0/Google.Cloud.Translation.V2.TranslationClientBuilder) \n\n public sealed class TranslationClientBuilder : ClientBuilderBase\u003cTranslationClient\u003e\n\nReference documentation and code samples for the Google Cloud Translation v2 API class TranslationClientBuilder.\n\nA builder for [TranslationClient](/dotnet/docs/reference/Google.Cloud.Translation.V2/latest/Google.Cloud.Translation.V2.TranslationClient), allowing simple client customization. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e [ClientBuilderBase](https://github.com/googleapis/gax-dotnet/blob/83f42b5edc4529818dbdb34d9ea9ecc3c04f7b6e/Google.Api.Gax.Rest/ClientBuilderBase.cs)[TranslationClient](/dotnet/docs/reference/Google.Cloud.Translation.V2/latest/Google.Cloud.Translation.V2.TranslationClient) \\\u003e TranslationClientBuilder \n\nInherited Members\n-----------------\n\n[ClientBuilderBase\\\u003cTranslationClient\\\u003e.CredentialsPath](https://github.com/googleapis/gax-dotnet/blob/83f42b5edc4529818dbdb34d9ea9ecc3c04f7b6e/Google.Api.Gax.Rest/ClientBuilderBase.cs) \n[ClientBuilderBase\\\u003cTranslationClient\\\u003e.JsonCredentials](https://github.com/googleapis/gax-dotnet/blob/83f42b5edc4529818dbdb34d9ea9ecc3c04f7b6e/Google.Api.Gax.Rest/ClientBuilderBase.cs) \n[ClientBuilderBase\\\u003cTranslationClient\\\u003e.ApplicationName](https://github.com/googleapis/gax-dotnet/blob/83f42b5edc4529818dbdb34d9ea9ecc3c04f7b6e/Google.Api.Gax.Rest/ClientBuilderBase.cs) \n[ClientBuilderBase\\\u003cTranslationClient\\\u003e.BaseUri](https://github.com/googleapis/gax-dotnet/blob/83f42b5edc4529818dbdb34d9ea9ecc3c04f7b6e/Google.Api.Gax.Rest/ClientBuilderBase.cs) \n[ClientBuilderBase\\\u003cTranslationClient\\\u003e.UniverseDomain](https://github.com/googleapis/gax-dotnet/blob/83f42b5edc4529818dbdb34d9ea9ecc3c04f7b6e/Google.Api.Gax.Rest/ClientBuilderBase.cs) \n[ClientBuilderBase\\\u003cTranslationClient\\\u003e.Credential](https://github.com/googleapis/gax-dotnet/blob/83f42b5edc4529818dbdb34d9ea9ecc3c04f7b6e/Google.Api.Gax.Rest/ClientBuilderBase.cs) \n[ClientBuilderBase\\\u003cTranslationClient\\\u003e.GoogleCredential](https://github.com/googleapis/gax-dotnet/blob/83f42b5edc4529818dbdb34d9ea9ecc3c04f7b6e/Google.Api.Gax.Rest/ClientBuilderBase.cs) \n[ClientBuilderBase\\\u003cTranslationClient\\\u003e.ApiKey](https://github.com/googleapis/gax-dotnet/blob/83f42b5edc4529818dbdb34d9ea9ecc3c04f7b6e/Google.Api.Gax.Rest/ClientBuilderBase.cs) \n[ClientBuilderBase\\\u003cTranslationClient\\\u003e.QuotaProject](https://github.com/googleapis/gax-dotnet/blob/83f42b5edc4529818dbdb34d9ea9ecc3c04f7b6e/Google.Api.Gax.Rest/ClientBuilderBase.cs) \n[ClientBuilderBase\\\u003cTranslationClient\\\u003e.HttpClientFactory](https://github.com/googleapis/gax-dotnet/blob/83f42b5edc4529818dbdb34d9ea9ecc3c04f7b6e/Google.Api.Gax.Rest/ClientBuilderBase.cs) \n[ClientBuilderBase\\\u003cTranslationClient\\\u003e.UseJwtAccessWithScopes](https://github.com/googleapis/gax-dotnet/blob/83f42b5edc4529818dbdb34d9ea9ecc3c04f7b6e/Google.Api.Gax.Rest/ClientBuilderBase.cs) \n[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) \n[object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) \n[object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)\n\nNamespace\n---------\n\n[Google.Cloud.Translation.V2](/dotnet/docs/reference/Google.Cloud.Translation.V2/latest/Google.Cloud.Translation.V2)\n\nAssembly\n--------\n\nGoogle.Cloud.Translation.V2.dll\n\nConstructors\n------------\n\n### TranslationClientBuilder()\n\n public TranslationClientBuilder()\n\nCreates a new builder with default settings.\n\nProperties\n----------\n\n### TranslationModel\n\n public TranslationModel TranslationModel { get; set; }\n\nThe translation model to use, defaulting to [ServiceDefault](/dotnet/docs/reference/Google.Cloud.Translation.V2/latest/Google.Cloud.Translation.V2.TranslationModel#Google_Cloud_Translation_V2_TranslationModel_ServiceDefault).\n\nMethods\n-------\n\n### Build()\n\n public override TranslationClient Build()\n\nBuilds the resulting client.\n\n**Overrides** \n[ClientBuilderBase\\\u003cTranslationClient\\\u003e.Build()](https://github.com/googleapis/gax-dotnet/blob/83f42b5edc4529818dbdb34d9ea9ecc3c04f7b6e/Google.Api.Gax.Rest/ClientBuilderBase.cs)\n\n### BuildAsync(CancellationToken)\n\n public override Task\u003cTranslationClient\u003e BuildAsync(CancellationToken cancellationToken = default)\n\nBuilds the resulting client asynchronously.\n\n**Overrides** \n[ClientBuilderBase\\\u003cTranslationClient\\\u003e.BuildAsync(CancellationToken)](https://github.com/googleapis/gax-dotnet/blob/83f42b5edc4529818dbdb34d9ea9ecc3c04f7b6e/Google.Api.Gax.Rest/ClientBuilderBase.cs)\n\n### GetDefaultApplicationName()\n\n protected override string GetDefaultApplicationName()\n\nReturns the default application name, used if no custom name is otherwise specified.\n\n**Overrides** \n[ClientBuilderBase\\\u003cTranslationClient\\\u003e.GetDefaultApplicationName()](https://github.com/googleapis/gax-dotnet/blob/83f42b5edc4529818dbdb34d9ea9ecc3c04f7b6e/Google.Api.Gax.Rest/ClientBuilderBase.cs)\n\n### GetScopedCredentialProvider()\n\n protected override ScopedCredentialProvider GetScopedCredentialProvider()\n\nReturns the scoped credential provider for this builder.\n\n**Overrides** \n[ClientBuilderBase\\\u003cTranslationClient\\\u003e.GetScopedCredentialProvider()](https://github.com/googleapis/gax-dotnet/blob/83f42b5edc4529818dbdb34d9ea9ecc3c04f7b6e/Google.Api.Gax.Rest/ClientBuilderBase.cs)"]]