Network Connectivity v1 API - Class PolicyBasedRoutingServiceClientBuilder (2.6.0)

public sealed class PolicyBasedRoutingServiceClientBuilder : ClientBuilderBase<PolicyBasedRoutingServiceClient>

Reference documentation and code samples for the Network Connectivity v1 API class PolicyBasedRoutingServiceClientBuilder.

Builder class for PolicyBasedRoutingServiceClient to provide simple configuration of credentials, endpoint etc.

Inheritance

object > ClientBuilderBasePolicyBasedRoutingServiceClient > PolicyBasedRoutingServiceClientBuilder

Namespace

Google.Cloud.NetworkConnectivity.V1

Assembly

Google.Cloud.NetworkConnectivity.V1.dll

Constructors

PolicyBasedRoutingServiceClientBuilder()

public PolicyBasedRoutingServiceClientBuilder()

Creates a new builder with default settings.

Properties

Settings

public PolicyBasedRoutingServiceSettings Settings { get; set; }

The settings to use for RPCs, or null for the default settings.

Property Value
TypeDescription
PolicyBasedRoutingServiceSettings

Methods

Build()

public override PolicyBasedRoutingServiceClient Build()

Builds the resulting client.

Returns
TypeDescription
PolicyBasedRoutingServiceClient
Overrides

BuildAsync(CancellationToken)

public override Task<PolicyBasedRoutingServiceClient> BuildAsync(CancellationToken cancellationToken = default)

Builds the resulting client asynchronously.

Parameter
NameDescription
cancellationTokenCancellationToken
Returns
TypeDescription
TaskPolicyBasedRoutingServiceClient
Overrides

GetChannelPool()

protected override ChannelPool GetChannelPool()

Returns the channel pool to use when no other options are specified.

Returns
TypeDescription
ChannelPool
Overrides