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