Network Connectivity v1 API - Class PolicyBasedRoutingServiceClientBuilder (2.9.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
Type Description
PolicyBasedRoutingServiceSettings

Methods

Build()

public override PolicyBasedRoutingServiceClient Build()

Builds the resulting client.

Returns
Type Description
PolicyBasedRoutingServiceClient
Overrides
Google.Api.Gax.Grpc.ClientBuilderBase<Google.Cloud.NetworkConnectivity.V1.PolicyBasedRoutingServiceClient>.Build()

BuildAsync(CancellationToken)

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

Builds the resulting client asynchronously.

Parameter
Name Description
cancellationToken CancellationToken
Returns
Type Description
TaskPolicyBasedRoutingServiceClient
Overrides
Google.Api.Gax.Grpc.ClientBuilderBase<Google.Cloud.NetworkConnectivity.V1.PolicyBasedRoutingServiceClient>.BuildAsync(System.Threading.CancellationToken)

GetChannelPool()

protected override ChannelPool GetChannelPool()

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

Returns
Type Description
ChannelPool
Overrides
Google.Api.Gax.Grpc.ClientBuilderBase<Google.Cloud.NetworkConnectivity.V1.PolicyBasedRoutingServiceClient>.GetChannelPool()