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