Cloud Security Compliance v1 API - Class CmEnrollmentServiceClientBuilder (1.0.0-beta04)

public sealed class CmEnrollmentServiceClientBuilder : ClientBuilderBase<CmEnrollmentServiceClient>

Reference documentation and code samples for the Cloud Security Compliance v1 API class CmEnrollmentServiceClientBuilder.

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

Inheritance

object > ClientBuilderBaseCmEnrollmentServiceClient > CmEnrollmentServiceClientBuilder

Namespace

Google.Cloud.CloudSecurityCompliance.V1

Assembly

Google.Cloud.CloudSecurityCompliance.V1.dll

Constructors

CmEnrollmentServiceClientBuilder()

public CmEnrollmentServiceClientBuilder()

Creates a new builder with default settings.

Properties

Settings

public CmEnrollmentServiceSettings Settings { get; set; }

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

Property Value
Type Description
CmEnrollmentServiceSettings

Methods

Build()

public override CmEnrollmentServiceClient Build()

Builds the resulting client.

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

BuildAsync(CancellationToken)

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

Builds the resulting client asynchronously.

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