Cloud Functions v2 API - Class FunctionServiceClientBuilder (1.5.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 > ClientBuilderBaseFunctionServiceClient > 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
Type Description
FunctionServiceSettings

Methods

Build()

public override FunctionServiceClient Build()

Builds the resulting client.

Returns
Type Description
FunctionServiceClient
Overrides

BuildAsync(CancellationToken)

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

Builds the resulting client asynchronously.

Parameter
Name Description
cancellationToken CancellationToken
Returns
Type Description
TaskFunctionServiceClient
Overrides

GetChannelPool()

protected override ChannelPool GetChannelPool()

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

Returns
Type Description
ChannelPool
Overrides