Google Cloud Datastore v1 API - Class DatastoreSettings (4.3.0)

public sealed class DatastoreSettings : ServiceSettingsBase

Reference documentation and code samples for the Google Cloud Datastore v1 API class DatastoreSettings.

Settings for DatastoreClient instances.

Inheritance

Object > ServiceSettingsBase > DatastoreSettings

Namespace

Google.Cloud.Datastore.V1

Assembly

Google.Cloud.Datastore.V1.dll

Constructors

DatastoreSettings()

public DatastoreSettings()

Constructs a new DatastoreSettings object with default settings.

Properties

AllocateIdsSettings

public CallSettings AllocateIdsSettings { get; set; }

CallSettings for synchronous and asynchronous calls to DatastoreClient.AllocateIds and DatastoreClient.AllocateIdsAsync.

Property Value
TypeDescription
CallSettings
Remarks
  • This call will not be retried.
  • Timeout: 60 seconds.

BeginTransactionSettings

public CallSettings BeginTransactionSettings { get; set; }

CallSettings for synchronous and asynchronous calls to DatastoreClient.BeginTransaction and DatastoreClient.BeginTransactionAsync.

Property Value
TypeDescription
CallSettings
Remarks
  • This call will not be retried.
  • Timeout: 60 seconds.

CommitSettings

public CallSettings CommitSettings { get; set; }

CallSettings for synchronous and asynchronous calls to DatastoreClient.Commit and DatastoreClient.CommitAsync.

Property Value
TypeDescription
CallSettings
Remarks
  • This call will not be retried.
  • Timeout: 60 seconds.

LookupSettings

public CallSettings LookupSettings { get; set; }

CallSettings for synchronous and asynchronous calls to DatastoreClient.Lookup and DatastoreClient.LookupAsync.

Property Value
TypeDescription
CallSettings
Remarks
  • Initial retry delay: 100 milliseconds.
  • Retry delay multiplier: 1.3
  • Retry maximum delay: 60000 milliseconds.
  • Maximum attempts: Unlimited
  • Retriable status codes: Unavailable, DeadlineExceeded.
  • Timeout: 60 seconds.

ReserveIdsSettings

public CallSettings ReserveIdsSettings { get; set; }

CallSettings for synchronous and asynchronous calls to DatastoreClient.ReserveIds and DatastoreClient.ReserveIdsAsync.

Property Value
TypeDescription
CallSettings
Remarks
  • Initial retry delay: 100 milliseconds.
  • Retry delay multiplier: 1.3
  • Retry maximum delay: 60000 milliseconds.
  • Maximum attempts: Unlimited
  • Retriable status codes: Unavailable, DeadlineExceeded.
  • Timeout: 60 seconds.

RollbackSettings

public CallSettings RollbackSettings { get; set; }

CallSettings for synchronous and asynchronous calls to DatastoreClient.Rollback and DatastoreClient.RollbackAsync.

Property Value
TypeDescription
CallSettings
Remarks
  • This call will not be retried.
  • Timeout: 60 seconds.

RunAggregationQuerySettings

public CallSettings RunAggregationQuerySettings { get; set; }

CallSettings for synchronous and asynchronous calls to DatastoreClient.RunAggregationQuery and DatastoreClient.RunAggregationQueryAsync.

Property Value
TypeDescription
CallSettings
Remarks
  • Initial retry delay: 100 milliseconds.
  • Retry delay multiplier: 1.3
  • Retry maximum delay: 60000 milliseconds.
  • Maximum attempts: Unlimited
  • Retriable status codes: Unavailable, DeadlineExceeded.
  • Timeout: 60 seconds.

RunQuerySettings

public CallSettings RunQuerySettings { get; set; }

CallSettings for synchronous and asynchronous calls to DatastoreClient.RunQuery and DatastoreClient.RunQueryAsync.

Property Value
TypeDescription
CallSettings
Remarks
  • Initial retry delay: 100 milliseconds.
  • Retry delay multiplier: 1.3
  • Retry maximum delay: 60000 milliseconds.
  • Maximum attempts: Unlimited
  • Retriable status codes: Unavailable, DeadlineExceeded.
  • Timeout: 60 seconds.

Methods

Clone()

public DatastoreSettings Clone()

Creates a deep clone of this object, with all the same property values.

Returns
TypeDescription
DatastoreSettings

A deep clone of this DatastoreSettings object.

GetDefault()

public static DatastoreSettings GetDefault()

Get a new instance of the default DatastoreSettings.

Returns
TypeDescription
DatastoreSettings

A new instance of the default DatastoreSettings.