Cloud Functions v2 API - Class FunctionServiceClientBuilder (1.0.0)

public sealed class FunctionServiceClientBuilder : ClientBuilderBase<FunctionServiceClient>

Reference documentation and code samples for the Cloud Functions v2 API class FunctionServiceClientBuilder.

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

Inheritance

Object > ClientBuilderBase<FunctionServiceClient> > FunctionServiceClientBuilder

Namespace

Google.Cloud.Functions.V2

Assembly

Google.Cloud.Functions.V2.dll

Constructors

FunctionServiceClientBuilder()

public FunctionServiceClientBuilder()

Creates a new builder with default settings.

Properties

Settings

public FunctionServiceSettings Settings { get; set; }

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

Property Value
TypeDescription
FunctionServiceSettings

Methods

Build()

public override FunctionServiceClient Build()

Builds the resulting client.

Returns
TypeDescription
FunctionServiceClient
Overrides
Google.Api.Gax.Grpc.ClientBuilderBase<Google.Cloud.Functions.V2.FunctionServiceClient>.Build()

BuildAsync(CancellationToken)

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

Builds the resulting client asynchronously.

Parameter
NameDescription
cancellationTokenCancellationToken
Returns
TypeDescription
Task<FunctionServiceClient>
Overrides
Google.Api.Gax.Grpc.ClientBuilderBase<Google.Cloud.Functions.V2.FunctionServiceClient>.BuildAsync(System.Threading.CancellationToken)

GetChannelPool()

protected override ChannelPool GetChannelPool()

Returns the channel pool to use when no other options are specified.

Returns
TypeDescription
ChannelPool
Overrides
Google.Api.Gax.Grpc.ClientBuilderBase<Google.Cloud.Functions.V2.FunctionServiceClient>.GetChannelPool()