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.
Namespace
Google.Cloud.BigQuery.V2Assembly
Google.Cloud.BigQuery.V2.dll
Properties
DefaultLocation
public string DefaultLocation { get; set; }
The default location to use for location-specific operations.
Property Value | |
---|---|
Type | Description |
string |
PrettyPrint
public bool? PrettyPrint { get; set; }
If set, overrides the default pretty-print setting.
Property Value | |
---|---|
Type | Description |
bool |
ProjectId
public string ProjectId { get; set; }
The project ID, which must be set before building the client.
Property Value | |
---|---|
Type | Description |
string |
Methods
Build()
public override BigQueryClient Build()
Builds the resulting client.
Returns | |
---|---|
Type | Description |
BigQueryClient |
BuildAsync(CancellationToken)
public override Task<BigQueryClient> BuildAsync(CancellationToken cancellationToken = default)
Builds the resulting client asynchronously.
Parameter | |
---|---|
Name | Description |
cancellationToken |
CancellationToken |
Returns | |
---|---|
Type | Description |
TaskBigQueryClient |
GetDefaultApplicationName()
protected override string GetDefaultApplicationName()
Returns the default application name, used if no custom name is otherwise specified.
Returns | |
---|---|
Type | Description |
string |
GetScopedCredentialProvider()
protected override ScopedCredentialProvider GetScopedCredentialProvider()
Returns the scoped credential provider for this builder.
Returns | |
---|---|
Type | Description |
ScopedCredentialProvider |
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.
Exceptions | |
---|---|
Type | Description |
InvalidOperationException |
The builder is in an invalid state. |