Policy Simulator v1 API - Class OrgPolicyViolationsPreviewServiceClientBuilder (1.3.0)

public sealed class OrgPolicyViolationsPreviewServiceClientBuilder : ClientBuilderBase<OrgPolicyViolationsPreviewServiceClient>

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

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

Inheritance

object > ClientBuilderBaseOrgPolicyViolationsPreviewServiceClient > OrgPolicyViolationsPreviewServiceClientBuilder

Namespace

Google.Cloud.PolicySimulator.V1

Assembly

Google.Cloud.PolicySimulator.V1.dll

Constructors

OrgPolicyViolationsPreviewServiceClientBuilder()

public OrgPolicyViolationsPreviewServiceClientBuilder()

Creates a new builder with default settings.

Properties

Settings

public OrgPolicyViolationsPreviewServiceSettings Settings { get; set; }

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

Property Value
Type Description
OrgPolicyViolationsPreviewServiceSettings

Methods

Build()

public override OrgPolicyViolationsPreviewServiceClient Build()

Builds the resulting client.

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

BuildAsync(CancellationToken)

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

Builds the resulting client asynchronously.

Parameter
Name Description
cancellationToken CancellationToken
Returns
Type Description
TaskOrgPolicyViolationsPreviewServiceClient
Overrides
Google.Api.Gax.Grpc.ClientBuilderBase<Google.Cloud.PolicySimulator.V1.OrgPolicyViolationsPreviewServiceClient>.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.PolicySimulator.V1.OrgPolicyViolationsPreviewServiceClient>.GetChannelPool()