Class TranslationClientBuilder (2.1.0)

public sealed class TranslationClientBuilder : ClientBuilderBase<TranslationClient>

A builder for TranslationClient, allowing simple client customization.

Inheritance

Object > ClientBuilderBase<TranslationClient> > TranslationClientBuilder

Namespace

Google.Cloud.Translation.V2

Assembly

Google.Cloud.Translation.V2.dll

Properties

TranslationModel

public TranslationModel TranslationModel { get; set; }

The translation model to use, defaulting to ServiceDefault.

Property Value
TypeDescription
TranslationModel

Methods

Build()

public override TranslationClient Build()
Returns
TypeDescription
TranslationClient
Overrides
Google.Api.Gax.Rest.ClientBuilderBase<Google.Cloud.Translation.V2.TranslationClient>.Build()

BuildAsync(CancellationToken)

public override Task<TranslationClient> BuildAsync(CancellationToken cancellationToken = default(CancellationToken))
Parameter
NameDescription
cancellationTokenCancellationToken
Returns
TypeDescription
Task<TranslationClient>
Overrides
Google.Api.Gax.Rest.ClientBuilderBase<Google.Cloud.Translation.V2.TranslationClient>.BuildAsync(System.Threading.CancellationToken)

GetDefaultApplicationName()

protected override string GetDefaultApplicationName()
Returns
TypeDescription
String
Overrides
Google.Api.Gax.Rest.ClientBuilderBase<Google.Cloud.Translation.V2.TranslationClient>.GetDefaultApplicationName()

GetScopedCredentialProvider()

protected override ScopedCredentialProvider GetScopedCredentialProvider()
Returns
TypeDescription
ScopedCredentialProvider
Overrides
Google.Api.Gax.Rest.ClientBuilderBase<Google.Cloud.Translation.V2.TranslationClient>.GetScopedCredentialProvider()