# Google Cloud Spanner v1 API - Class SpannerSettings (5.13.0-beta07)

5.13.0-beta07 5.13.0-beta06 5.12.0 (latest) 5.11.0 5.10.0 5.9.0 5.8.0 5.7.0 5.6.0 5.5.0 5.4.0 5.3.0 5.2.0 5.1.0 5.0.0 4.6.0 4.5.0 4.4.0 4.3.0 4.2.0 4.1.0 4.0.0 3.15.1 3.14.0 3.13.0 3.12.0 3.11.0 3.10.0 3.9.0 3.8.0 3.7.0 3.6.0 3.5.0

    public sealed class SpannerSettings : ServiceSettingsBase

Reference documentation and code samples for the Google Cloud Spanner v1 API class SpannerSettings.

Settings for [SpannerClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.V1/latest/Google.Cloud.Spanner.V1.SpannerClient) instances.

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) \> [ServiceSettingsBase](https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.ServiceSettingsBase.html) \> SpannerSettings

## Inherited Members

[ServiceSettingsBase.VersionHeaderBuilder](https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.ServiceSettingsBase.html#Google_Api_Gax_Grpc_ServiceSettingsBase_VersionHeaderBuilder) [ServiceSettingsBase.CallSettings](https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.ServiceSettingsBase.html#Google_Api_Gax_Grpc_ServiceSettingsBase_CallSettings) [ServiceSettingsBase.Clock](https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.ServiceSettingsBase.html#Google_Api_Gax_Grpc_ServiceSettingsBase_Clock) [ServiceSettingsBase.Scheduler](https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.ServiceSettingsBase.html#Google_Api_Gax_Grpc_ServiceSettingsBase_Scheduler) [ServiceSettingsBase.Interceptor](https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.ServiceSettingsBase.html#Google_Api_Gax_Grpc_ServiceSettingsBase_Interceptor) [object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) [object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) [object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

## Namespace

[Google.Cloud.Spanner.V1](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.V1/latest/Google.Cloud.Spanner.V1)

## Assembly

Google.Cloud.Spanner.V1.dll

## Constructors

### SpannerSettings()

    public SpannerSettings()

Constructs a new [SpannerSettings](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.V1/latest/Google.Cloud.Spanner.V1.SpannerSettings) object with default settings.

## Properties

### BatchCreateSessionsSettings

    public CallSettings BatchCreateSessionsSettings { get; set; }

[CallSettings](https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html) for synchronous and asynchronous calls to
`SpannerClient.BatchCreateSessions` and `SpannerClient.BatchCreateSessionsAsync`.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` |   |

**Remarks**
- Initial retry delay: 250 milliseconds.
- Retry delay multiplier: 1.3
- Retry maximum delay: 32000 milliseconds.
- Maximum attempts: Unlimited
- Retriable status codes: [Unavailable](https://cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.StatusCode.html#Grpc_Core_StatusCode_Unavailable), [ResourceExhausted](https://cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.StatusCode.html#Grpc_Core_StatusCode_ResourceExhausted).
- Timeout: 60 seconds.

### BatchWriteSettings

    public CallSettings BatchWriteSettings { get; set; }

[CallSettings](https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html) for synchronous and asynchronous calls to `SpannerClient.BatchWrite`
and `SpannerClient.BatchWriteAsync`.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` |   |

**Remarks**
- This call will not be retried.
- Timeout: 3600 seconds.

### BeginTransactionSettings

    public CallSettings BeginTransactionSettings { get; set; }

[CallSettings](https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html) for synchronous and asynchronous calls to
`SpannerClient.BeginTransaction` and `SpannerClient.BeginTransactionAsync`.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` |   |

**Remarks**
- Initial retry delay: 250 milliseconds.
- Retry delay multiplier: 1.3
- Retry maximum delay: 32000 milliseconds.
- Maximum attempts: Unlimited
- Retriable status codes: [Unavailable](https://cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.StatusCode.html#Grpc_Core_StatusCode_Unavailable), [ResourceExhausted](https://cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.StatusCode.html#Grpc_Core_StatusCode_ResourceExhausted).
- Timeout: 30 seconds.

### CommitSettings

    public CallSettings CommitSettings { get; set; }

[CallSettings](https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html) for synchronous and asynchronous calls to `SpannerClient.Commit`
and `SpannerClient.CommitAsync`.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` |   |

**Remarks**
- Initial retry delay: 250 milliseconds.
- Retry delay multiplier: 1.3
- Retry maximum delay: 32000 milliseconds.
- Maximum attempts: Unlimited
- Retriable status codes: [Unavailable](https://cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.StatusCode.html#Grpc_Core_StatusCode_Unavailable), [ResourceExhausted](https://cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.StatusCode.html#Grpc_Core_StatusCode_ResourceExhausted).
- Timeout: 3600 seconds.

### CreateSessionSettings

    public CallSettings CreateSessionSettings { get; set; }

[CallSettings](https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html) for synchronous and asynchronous calls to `SpannerClient.CreateSession`
and `SpannerClient.CreateSessionAsync`.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` |   |

**Remarks**
- Initial retry delay: 250 milliseconds.
- Retry delay multiplier: 1.3
- Retry maximum delay: 32000 milliseconds.
- Maximum attempts: Unlimited
- Retriable status codes: [Unavailable](https://cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.StatusCode.html#Grpc_Core_StatusCode_Unavailable), [ResourceExhausted](https://cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.StatusCode.html#Grpc_Core_StatusCode_ResourceExhausted).
- Timeout: 30 seconds.

### DeleteSessionSettings

    public CallSettings DeleteSessionSettings { get; set; }

[CallSettings](https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html) for synchronous and asynchronous calls to `SpannerClient.DeleteSession`
and `SpannerClient.DeleteSessionAsync`.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` |   |

**Remarks**
- Initial retry delay: 250 milliseconds.
- Retry delay multiplier: 1.3
- Retry maximum delay: 32000 milliseconds.
- Maximum attempts: Unlimited
- Retriable status codes: [Unavailable](https://cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.StatusCode.html#Grpc_Core_StatusCode_Unavailable), [ResourceExhausted](https://cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.StatusCode.html#Grpc_Core_StatusCode_ResourceExhausted).
- Timeout: 30 seconds.

### ExecuteBatchDmlSettings

    public CallSettings ExecuteBatchDmlSettings { get; set; }

[CallSettings](https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html) for synchronous and asynchronous calls to
`SpannerClient.ExecuteBatchDml` and `SpannerClient.ExecuteBatchDmlAsync`.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` |   |

**Remarks**
- Initial retry delay: 250 milliseconds.
- Retry delay multiplier: 1.3
- Retry maximum delay: 32000 milliseconds.
- Maximum attempts: Unlimited
- Retriable status codes: [Unavailable](https://cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.StatusCode.html#Grpc_Core_StatusCode_Unavailable), [ResourceExhausted](https://cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.StatusCode.html#Grpc_Core_StatusCode_ResourceExhausted).
- Timeout: 30 seconds.

### ExecuteSqlSettings

    public CallSettings ExecuteSqlSettings { get; set; }

[CallSettings](https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html) for synchronous and asynchronous calls to `SpannerClient.ExecuteSql`
and `SpannerClient.ExecuteSqlAsync`.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` |   |

**Remarks**
- Initial retry delay: 250 milliseconds.
- Retry delay multiplier: 1.3
- Retry maximum delay: 32000 milliseconds.
- Maximum attempts: Unlimited
- Retriable status codes: [Unavailable](https://cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.StatusCode.html#Grpc_Core_StatusCode_Unavailable), [ResourceExhausted](https://cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.StatusCode.html#Grpc_Core_StatusCode_ResourceExhausted).
- Timeout: 30 seconds.

### ExecuteStreamingSqlSettings

    public CallSettings ExecuteStreamingSqlSettings { get; set; }

[CallSettings](https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html) for synchronous and asynchronous calls to
`SpannerClient.ExecuteStreamingSql` and `SpannerClient.ExecuteStreamingSqlAsync`.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` |   |

**Remarks**
- This call will not be retried.
- Timeout: 3600 seconds.

### FetchCacheUpdateSettings

    public CallSettings FetchCacheUpdateSettings { get; set; }

[CallSettings](https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html) for synchronous and asynchronous calls to
`SpannerClient.FetchCacheUpdate` and `SpannerClient.FetchCacheUpdateAsync`.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` |   |

**Remarks**
- This call will not be retried.
- No timeout is applied.

### GetSessionSettings

    public CallSettings GetSessionSettings { get; set; }

[CallSettings](https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html) for synchronous and asynchronous calls to `SpannerClient.GetSession`
and `SpannerClient.GetSessionAsync`.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` |   |

**Remarks**
- Initial retry delay: 250 milliseconds.
- Retry delay multiplier: 1.3
- Retry maximum delay: 32000 milliseconds.
- Maximum attempts: Unlimited
- Retriable status codes: [Unavailable](https://cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.StatusCode.html#Grpc_Core_StatusCode_Unavailable), [ResourceExhausted](https://cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.StatusCode.html#Grpc_Core_StatusCode_ResourceExhausted).
- Timeout: 30 seconds.

### ListSessionsSettings

    public CallSettings ListSessionsSettings { get; set; }

[CallSettings](https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html) for synchronous and asynchronous calls to `SpannerClient.ListSessions`
and `SpannerClient.ListSessionsAsync`.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` |   |

**Remarks**
- Initial retry delay: 250 milliseconds.
- Retry delay multiplier: 1.3
- Retry maximum delay: 32000 milliseconds.
- Maximum attempts: Unlimited
- Retriable status codes: [Unavailable](https://cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.StatusCode.html#Grpc_Core_StatusCode_Unavailable), [ResourceExhausted](https://cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.StatusCode.html#Grpc_Core_StatusCode_ResourceExhausted).
- Timeout: 3600 seconds.

### Logger

    public Logger Logger { get; set; }

The logger to use for operations involving this client. This property is never null.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.V1/latest/Google.Cloud.Spanner.V1.Internal.Logging.Logger` |   |

### PartitionQuerySettings

    public CallSettings PartitionQuerySettings { get; set; }

[CallSettings](https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html) for synchronous and asynchronous calls to
`SpannerClient.PartitionQuery` and `SpannerClient.PartitionQueryAsync`.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` |   |

**Remarks**
- Initial retry delay: 250 milliseconds.
- Retry delay multiplier: 1.3
- Retry maximum delay: 32000 milliseconds.
- Maximum attempts: Unlimited
- Retriable status codes: [Unavailable](https://cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.StatusCode.html#Grpc_Core_StatusCode_Unavailable), [ResourceExhausted](https://cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.StatusCode.html#Grpc_Core_StatusCode_ResourceExhausted).
- Timeout: 30 seconds.

### PartitionReadSettings

    public CallSettings PartitionReadSettings { get; set; }

[CallSettings](https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html) for synchronous and asynchronous calls to `SpannerClient.PartitionRead`
and `SpannerClient.PartitionReadAsync`.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` |   |

**Remarks**
- Initial retry delay: 250 milliseconds.
- Retry delay multiplier: 1.3
- Retry maximum delay: 32000 milliseconds.
- Maximum attempts: Unlimited
- Retriable status codes: [Unavailable](https://cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.StatusCode.html#Grpc_Core_StatusCode_Unavailable), [ResourceExhausted](https://cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.StatusCode.html#Grpc_Core_StatusCode_ResourceExhausted).
- Timeout: 30 seconds.

### ReadSettings

    public CallSettings ReadSettings { get; set; }

[CallSettings](https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html) for synchronous and asynchronous calls to `SpannerClient.Read` and
`SpannerClient.ReadAsync`.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` |   |

**Remarks**
- Initial retry delay: 250 milliseconds.
- Retry delay multiplier: 1.3
- Retry maximum delay: 32000 milliseconds.
- Maximum attempts: Unlimited
- Retriable status codes: [Unavailable](https://cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.StatusCode.html#Grpc_Core_StatusCode_Unavailable), [ResourceExhausted](https://cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.StatusCode.html#Grpc_Core_StatusCode_ResourceExhausted).
- Timeout: 30 seconds.

### RollbackSettings

    public CallSettings RollbackSettings { get; set; }

[CallSettings](https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html) for synchronous and asynchronous calls to `SpannerClient.Rollback`
and `SpannerClient.RollbackAsync`.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` |   |

**Remarks**
- Initial retry delay: 250 milliseconds.
- Retry delay multiplier: 1.3
- Retry maximum delay: 32000 milliseconds.
- Maximum attempts: Unlimited
- Retriable status codes: [Unavailable](https://cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.StatusCode.html#Grpc_Core_StatusCode_Unavailable), [ResourceExhausted](https://cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.StatusCode.html#Grpc_Core_StatusCode_ResourceExhausted).
- Timeout: 30 seconds.

### StreamingReadSettings

    public CallSettings StreamingReadSettings { get; set; }

[CallSettings](https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html) for synchronous and asynchronous calls to `SpannerClient.StreamingRead`
and `SpannerClient.StreamingReadAsync`.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` |   |

**Remarks**
- This call will not be retried.
- Timeout: 3600 seconds.

## Methods

### Clone()

    public SpannerSettings Clone()

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

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.V1/latest/Google.Cloud.Spanner.V1.SpannerSettings` | A deep clone of this [SpannerSettings](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.V1/latest/Google.Cloud.Spanner.V1.SpannerSettings) object. |

### GetDefault()

    public static SpannerSettings GetDefault()

Get a new instance of the default [SpannerSettings](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.V1/latest/Google.Cloud.Spanner.V1.SpannerSettings).

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.V1/latest/Google.Cloud.Spanner.V1.SpannerSettings` | A new instance of the default [SpannerSettings](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.V1/latest/Google.Cloud.Spanner.V1.SpannerSettings). |