# Class ServiceSettingsBase (4.10.0)

<button class="button button-with-icon cloud-select-dropdown__button " aria-haspopup="true">Version latest</button>

- [4.10.0 (latest)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.ServiceSettingsBase)
- [4.8.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Api.Gax/4.8.0/Google.Api.Gax.Grpc.ServiceSettingsBase)
- [4.4.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Api.Gax/4.4.0/Google.Api.Gax.Grpc.ServiceSettingsBase)
- [4.3.1](https://docs.cloud.google.com/dotnet/docs/reference/Google.Api.Gax/4.3.1/Google.Api.Gax.Grpc.ServiceSettingsBase)
- [4.2.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Api.Gax/4.2.0/Google.Api.Gax.Grpc.ServiceSettingsBase)
- [4.0.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Api.Gax/4.0.0/Google.Api.Gax.Grpc.ServiceSettingsBase)
- [3.2.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Api.Gax/3.2.0/Google.Api.Gax.Grpc.ServiceSettingsBase)

    public abstract class ServiceSettingsBase

Common settings for all services.

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) \> ServiceSettingsBase

## Inherited Members

[object.Equals(object)](https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals(system-object)) [object.Equals(object, object)](https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals(system-object-system-object)) [object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) [object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) [object.MemberwiseClone()](https://learn.microsoft.com/dotnet/api/system.object.memberwiseclone) [object.ReferenceEquals(object, object)](https://learn.microsoft.com/dotnet/api/system.object.referenceequals) [object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

## Namespace

[Google.Api.Gax.Grpc](https://docs.cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc)

## Assembly

Google.Api.Gax.Grpc.dll

## Constructors

### ServiceSettingsBase()

    protected ServiceSettingsBase()

Constructs a new service settings base object with a default version header, unset call settings and
unset clock.

### ServiceSettingsBase(ServiceSettingsBase)

    protected ServiceSettingsBase(ServiceSettingsBase existing)

Constructs a new service settings base object by cloning the settings from an existing one.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `existing` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.ServiceSettingsBase` The existing settings object to clone settings from. Must not be null. |

## Properties

### CallSettings

    public CallSettings CallSettings { get; set; }

If not null, [CallSettings](https://docs.cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.ServiceSettingsBase#Google_Api_Gax_Grpc_ServiceSettingsBase_CallSettings) that are applied to every RPC performed by the client.
If null or unset, RPC default settings will be used for all settings.

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

### Clock

    public IClock Clock { get; set; }

If not null, the clock used to calculate RPC deadlines. If null or unset, the [SystemClock](https://docs.cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.SystemClock) is used.

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

**Remarks** This is primarily only to be set for testing.
In production code generally leave this unset to use the [SystemClock](https://docs.cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.SystemClock).

### Interceptor

    public Interceptor Interceptor { get; set; }

An optional gRPC interceptor to perform arbitrary interception tasks (such as logging) on gRPC calls.
Note that this property is not used by code generated before August 2nd 2018: only packages created
on or after that date are aware of this property.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://github.com/grpc/grpc-dotnet/blob/7c43ddb5d68008782dc0dba2d0feaa3ed91a9fb2/src/Grpc.Core.Api/Interceptors/Interceptor.cs` |   |

### Scheduler

    public IScheduler Scheduler { get; set; }

If not null, the scheduler used for delays between operations (e.g. for retry).
If null or unset, the [SystemScheduler](https://docs.cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.SystemScheduler) is used.

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

**Remarks** This is primarily only to be set for testing.
In production code generally leave this unset to use the [SystemScheduler](https://docs.cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.SystemScheduler).

### VersionHeaderBuilder

    public VersionHeaderBuilder VersionHeaderBuilder { get; }

A builder for x-goog-api-client version headers. Additional library versions can be appended via this property.
End-users should almost never need to use this property; it is primarily for use in Google libraries which provide
a higher level abstraction over the generated client libraries.

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