Cloud Product Registry v1 API - Class CloudProductRegistryReadServiceClientBuilder (1.0.0-beta01)

public sealed class CloudProductRegistryReadServiceClientBuilder : ClientBuilderBase<CloudProductRegistryReadServiceClient>

Reference documentation and code samples for the Cloud Product Registry v1 API class CloudProductRegistryReadServiceClientBuilder.

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

Inheritance

object > ClientBuilderBaseCloudProductRegistryReadServiceClient > CloudProductRegistryReadServiceClientBuilder

Namespace

Google.Cloud.ProductRegistry.V1

Assembly

Google.Cloud.ProductRegistry.V1.dll

Constructors

CloudProductRegistryReadServiceClientBuilder()

public CloudProductRegistryReadServiceClientBuilder()

Creates a new builder with default settings.

Properties

Settings

public CloudProductRegistryReadServiceSettings Settings { get; set; }

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

Property Value
Type Description
CloudProductRegistryReadServiceSettings

Methods

Build()

public override CloudProductRegistryReadServiceClient Build()

Builds the resulting client.

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

BuildAsync(CancellationToken)

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

Builds the resulting client asynchronously.

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