public sealed class AdvancedTranslationClientBuilder : ClientBuilderBase<AdvancedTranslationClient>
Reference documentation and code samples for the Google Cloud Translation v2 API class AdvancedTranslationClientBuilder.
A builder for AdvancedTranslationClient, allowing simple client customization.
Namespace
GoogleGoogle.CloudGoogle.Cloud.TranslationV2Assembly
Google.Cloud.Translation.V2.dll
Constructors
AdvancedTranslationClientBuilder()
public AdvancedTranslationClientBuilder()
Creates a new builder with default settings.
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 Task<AdvancedTranslationClient> BuildAsync(CancellationToken cancellationToken = default)
Parameter | |
---|---|
Name | Description |
cancellationToken | CancellationToken |
Returns | |
---|---|
Type | Description |
TaskAdvancedTranslationClient |
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()