Class StorageClientBuilder (4.0.0)

public sealed class StorageClientBuilder : ClientBuilderBase<StorageClient>

A builder for StorageClient, allowing simple client customization.

Inheritance

Object > ClientBuilderBase<StorageClient> > StorageClientBuilder

Namespace

Google.Cloud.Storage.V1

Assembly

Google.Cloud.Storage.V1.dll

Properties

EncryptionKey

public EncryptionKey EncryptionKey { get; set; }

The customer-supplied encryption key used by default for all relevant object-based operations.

Property Value
TypeDescription
EncryptionKey

UnauthenticatedAccess

public bool UnauthenticatedAccess { get; set; }

If set to true, no credentials are created when the client is built.

Property Value
TypeDescription
Boolean

Methods

Build()

public override StorageClient Build()
Returns
TypeDescription
StorageClient
Overrides
Google.Api.Gax.Rest.ClientBuilderBase<Google.Cloud.Storage.V1.StorageClient>.Build()

BuildAsync(CancellationToken)

public override async Task<StorageClient> BuildAsync(CancellationToken cancellationToken = default(CancellationToken))
Parameter
NameDescription
cancellationTokenCancellationToken
Returns
TypeDescription
Task<StorageClient>
Overrides
Google.Api.Gax.Rest.ClientBuilderBase<Google.Cloud.Storage.V1.StorageClient>.BuildAsync(System.Threading.CancellationToken)

GetDefaultApplicationName()

protected override string GetDefaultApplicationName()
Returns
TypeDescription
String
Overrides
Google.Api.Gax.Rest.ClientBuilderBase<Google.Cloud.Storage.V1.StorageClient>.GetDefaultApplicationName()

GetHttpClientInitializer()

protected override IConfigurableHttpClientInitializer GetHttpClientInitializer()
Returns
TypeDescription
IConfigurableHttpClientInitializer
Overrides
Google.Api.Gax.Rest.ClientBuilderBase<Google.Cloud.Storage.V1.StorageClient>.GetHttpClientInitializer()

GetHttpClientInitializerAsync(CancellationToken)

protected override Task<IConfigurableHttpClientInitializer> GetHttpClientInitializerAsync(CancellationToken cancellationToken)
Parameter
NameDescription
cancellationTokenCancellationToken
Returns
TypeDescription
Task<IConfigurableHttpClientInitializer>
Overrides
Google.Api.Gax.Rest.ClientBuilderBase<Google.Cloud.Storage.V1.StorageClient>.GetHttpClientInitializerAsync(System.Threading.CancellationToken)

GetScopedCredentialProvider()

protected override ScopedCredentialProvider GetScopedCredentialProvider()
Returns
TypeDescription
ScopedCredentialProvider
Overrides
Google.Api.Gax.Rest.ClientBuilderBase<Google.Cloud.Storage.V1.StorageClient>.GetScopedCredentialProvider()

Validate()

protected override void Validate()
Overrides
Google.Api.Gax.Rest.ClientBuilderBase<Google.Cloud.Storage.V1.StorageClient>.Validate()