public sealed class ModelArmorClientBuilder : ClientBuilderBase<ModelArmorClient>
Reference documentation and code samples for the Model Armor v1 API class ModelArmorClientBuilder.
Builder class for ModelArmorClient to provide simple configuration of credentials, endpoint etc.
Namespace
Google.Cloud.ModelArmor.V1Assembly
Google.Cloud.ModelArmor.V1.dll
Constructors
ModelArmorClientBuilder()
public ModelArmorClientBuilder()
Creates a new builder with default settings.
Properties
Settings
public ModelArmorSettings Settings { get; set; }
The settings to use for RPCs, or null
for the default settings.
Property Value | |
---|---|
Type | Description |
ModelArmorSettings |
Methods
Build()
public override ModelArmorClient Build()
Builds the resulting client.
Returns | |
---|---|
Type | Description |
ModelArmorClient |
BuildAsync(CancellationToken)
public override Task<ModelArmorClient> BuildAsync(CancellationToken cancellationToken = default)
Builds the resulting client asynchronously.
Parameter | |
---|---|
Name | Description |
cancellationToken |
CancellationToken |
Returns | |
---|---|
Type | Description |
TaskModelArmorClient |
GetChannelPool()
protected override ChannelPool GetChannelPool()
Returns the channel pool to use when no other options are specified.
Returns | |
---|---|
Type | Description |
ChannelPool |