Policy Simulator v1 API - Class SimulatorClientBuilder (1.0.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
TypeDescription
SimulatorSettings

Methods

Build()

public override SimulatorClient Build()

Builds the resulting client.

Returns
TypeDescription
SimulatorClient
Overrides

BuildAsync(CancellationToken)

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

Builds the resulting client asynchronously.

Parameter
NameDescription
cancellationTokenCancellationToken
Returns
TypeDescription
TaskSimulatorClient
Overrides

GetChannelPool()

protected override ChannelPool GetChannelPool()

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

Returns
TypeDescription
ChannelPool
Overrides