public sealed class TranslationClientBuilder : ClientBuilderBase<TranslationClient>
A builder for TranslationClient, allowing simple client customization.
Namespace
Google.Cloud.Translation.V2Assembly
Google.Cloud.Translation.V2.dll
Properties
TranslationModel
public TranslationModel TranslationModel { get; set; }
The translation model to use, defaulting to ServiceDefault.
Property Value | |
---|---|
Type | Description |
TranslationModel |
Methods
Build()
public override TranslationClient Build()
Returns | |
---|---|
Type | Description |
TranslationClient |
Google.Api.Gax.Rest.ClientBuilderBase<Google.Cloud.Translation.V2.TranslationClient>.Build()
BuildAsync(CancellationToken)
public override Task<TranslationClient> BuildAsync(CancellationToken cancellationToken = default(CancellationToken))
Parameter | |
---|---|
Name | Description |
cancellationToken | CancellationToken |
Returns | |
---|---|
Type | Description |
Task<TranslationClient> |
Google.Api.Gax.Rest.ClientBuilderBase<Google.Cloud.Translation.V2.TranslationClient>.BuildAsync(System.Threading.CancellationToken)
GetDefaultApplicationName()
protected override string GetDefaultApplicationName()
Returns | |
---|---|
Type | Description |
String |
Google.Api.Gax.Rest.ClientBuilderBase<Google.Cloud.Translation.V2.TranslationClient>.GetDefaultApplicationName()
GetScopedCredentialProvider()
protected override ScopedCredentialProvider GetScopedCredentialProvider()
Returns | |
---|---|
Type | Description |
ScopedCredentialProvider |
Google.Api.Gax.Rest.ClientBuilderBase<Google.Cloud.Translation.V2.TranslationClient>.GetScopedCredentialProvider()