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
Google.Cloud.Translation.V2Assembly
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()
Builds the resulting client.
Returns | |
---|---|
Type | Description |
AdvancedTranslationClient |
BuildAsync(CancellationToken)
public override Task<AdvancedTranslationClient> BuildAsync(CancellationToken cancellationToken = default)
Builds the resulting client asynchronously.
Parameter | |
---|---|
Name | Description |
cancellationToken | CancellationToken |
Returns | |
---|---|
Type | Description |
TaskAdvancedTranslationClient |
GetDefaultApplicationName()
protected override string GetDefaultApplicationName()
Returns the default application name, used if no custom name is otherwise specified.
Returns | |
---|---|
Type | Description |
string |
GetScopedCredentialProvider()
protected override ScopedCredentialProvider GetScopedCredentialProvider()
Returns the scoped credential provider for this builder.
Returns | |
---|---|
Type | Description |
ScopedCredentialProvider |