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