Class AdvancedTranslationClientBuilder (2.1.0)

public sealed class AdvancedTranslationClientBuilder : ClientBuilderBase<AdvancedTranslationClient>

A builder for AdvancedTranslationClient, allowing simple client customization.

Inheritance

Object > ClientBuilderBase<AdvancedTranslationClient> > AdvancedTranslationClientBuilder

Namespace

Google.Cloud.Translation.V2

Assembly

Google.Cloud.Translation.V2.dll

Properties

Model

public string Model { get; set; }

The translation model to use.

Property Value
TypeDescription
String

Methods

Build()

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

BuildAsync(CancellationToken)

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

GetDefaultApplicationName()

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

GetScopedCredentialProvider()

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