Policy Simulator v1 API - Class SimulatorClientBuilder (1.2.0)

public sealed class SimulatorClientBuilder : ClientBuilderBase<SimulatorClient>

Reference documentation and code samples for the Policy Simulator v1 API class SimulatorClientBuilder.

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

Inheritance

object > ClientBuilderBaseSimulatorClient > SimulatorClientBuilder

Namespace

Google.Cloud.PolicySimulator.V1

Assembly

Google.Cloud.PolicySimulator.V1.dll

Constructors

SimulatorClientBuilder()

public SimulatorClientBuilder()

Creates a new builder with default settings.

Properties

Settings

public SimulatorSettings Settings { get; set; }

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

Property Value
Type Description
SimulatorSettings

Methods

Build()

public override SimulatorClient Build()

Builds the resulting client.

Returns
Type Description
SimulatorClient
Overrides

BuildAsync(CancellationToken)

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

Builds the resulting client asynchronously.

Parameter
Name Description
cancellationToken CancellationToken
Returns
Type Description
TaskSimulatorClient
Overrides

GetChannelPool()

protected override ChannelPool GetChannelPool()

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

Returns
Type Description
ChannelPool
Overrides