Google BigQuery v2 API - Class BigQueryClientBuilder (3.6.0)

public sealed class BigQueryClientBuilder : ClientBuilderBase<BigQueryClient>

Reference documentation and code samples for the Google BigQuery v2 API class BigQueryClientBuilder.

A builder for BigQueryClient, allowing simple client customization.

Inheritance

object > ClientBuilderBaseBigQueryClient > BigQueryClientBuilder

Namespace

Google.Cloud.BigQuery.V2

Assembly

Google.Cloud.BigQuery.V2.dll

Properties

DefaultLocation

public string DefaultLocation { get; set; }

The default location to use for location-specific operations.

Property Value
TypeDescription
string

PrettyPrint

public bool? PrettyPrint { get; set; }

If set, overrides the default pretty-print setting.

Property Value
TypeDescription
bool

ProjectId

public string ProjectId { get; set; }

The project ID, which must be set before building the client.

Property Value
TypeDescription
string

Methods

Build()

public override BigQueryClient Build()

Builds the resulting client.

Returns
TypeDescription
BigQueryClient
Overrides

BuildAsync(CancellationToken)

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

Builds the resulting client asynchronously.

Parameter
NameDescription
cancellationTokenCancellationToken
Returns
TypeDescription
TaskBigQueryClient
Overrides

GetDefaultApplicationName()

protected override string GetDefaultApplicationName()

Returns the default application name, used if no custom name is otherwise specified.

Returns
TypeDescription
string
Overrides

GetScopedCredentialProvider()

protected override ScopedCredentialProvider GetScopedCredentialProvider()

Returns the scoped credential provider for this builder.

Returns
TypeDescription
ScopedCredentialProvider
Overrides

Validate()

protected override void Validate()

Validates that the builder is in a consistent state for building. For example, it's invalid to call Build() on an instance which has both JSON credentials and a credentials path specified.

Overrides
Exceptions
TypeDescription
InvalidOperationException

The builder is in an invalid state.