Class DatastoreDbBuilder (3.5.0)

public sealed class DatastoreDbBuilder : ClientBuilderBase<DatastoreDb>

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

Inheritance

Object > ClientBuilderBase<DatastoreDb> > DatastoreDbBuilder

Namespace

Google.Cloud.Datastore.V1

Assembly

Google.Cloud.Datastore.V1.dll

Properties

DefaultGrpcAdapter

protected override GrpcAdapter DefaultGrpcAdapter { get; }
Property Value
TypeDescription
GrpcAdapter
Overrides
Google.Api.Gax.Grpc.ClientBuilderBase<Google.Cloud.Datastore.V1.DatastoreDb>.DefaultGrpcAdapter

EmulatorDetection

public EmulatorDetection EmulatorDetection { get; set; }

Specifies how the builder responds to the presence of emulator environment variables as described by https://cloud.google.com/datastore/docs/tools/datastore-emulator.

Property Value
TypeDescription
EmulatorDetection
Remarks

This property defaults to None, meaning that environment variables are ignored.

NamespaceId

public string NamespaceId { get; set; }

The namespace ID, or null to use the default.

Property Value
TypeDescription
String

ProjectId

public string ProjectId { get; set; }

The project ID, or null if this has not yet been configured. Note that a project ID must be configured (or detected via an emulator environment variable) before building the DatastoreDb.

Property Value
TypeDescription
String

Settings

public DatastoreSettings Settings { get; set; }

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

Property Value
TypeDescription
DatastoreSettings

Methods

Build()

public override DatastoreDb Build()
Returns
TypeDescription
DatastoreDb
Overrides
Google.Api.Gax.Grpc.ClientBuilderBase<Google.Cloud.Datastore.V1.DatastoreDb>.Build()

BuildAsync(CancellationToken)

public override Task<DatastoreDb> BuildAsync(CancellationToken cancellationToken = default(CancellationToken))
Parameter
NameDescription
cancellationTokenCancellationToken
Returns
TypeDescription
Task<DatastoreDb>
Overrides
Google.Api.Gax.Grpc.ClientBuilderBase<Google.Cloud.Datastore.V1.DatastoreDb>.BuildAsync(System.Threading.CancellationToken)

GetChannelPool()

protected override ChannelPool GetChannelPool()
Returns
TypeDescription
ChannelPool
Overrides
Google.Api.Gax.Grpc.ClientBuilderBase<Google.Cloud.Datastore.V1.DatastoreDb>.GetChannelPool()

GetDefaultEndpoint()

protected override string GetDefaultEndpoint()
Returns
TypeDescription
String
Overrides
Google.Api.Gax.Grpc.ClientBuilderBase<Google.Cloud.Datastore.V1.DatastoreDb>.GetDefaultEndpoint()

GetDefaultScopes()

protected override IReadOnlyList<string> GetDefaultScopes()
Returns
TypeDescription
IReadOnlyList<String>
Overrides
Google.Api.Gax.Grpc.ClientBuilderBase<Google.Cloud.Datastore.V1.DatastoreDb>.GetDefaultScopes()