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.
Namespace
Google.Cloud.PolicySimulator.V1Assembly
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 |
BuildAsync(CancellationToken)
public override Task<SimulatorClient> BuildAsync(CancellationToken cancellationToken = default)
Builds the resulting client asynchronously.
Parameter | |
---|---|
Name | Description |
cancellationToken |
CancellationToken |
Returns | |
---|---|
Type | Description |
TaskSimulatorClient |
GetChannelPool()
protected override ChannelPool GetChannelPool()
Returns the channel pool to use when no other options are specified.
Returns | |
---|---|
Type | Description |
ChannelPool |