[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-28 UTC."],[[["\u003cp\u003eThe \u003ccode\u003eServiceUsageSettings\u003c/code\u003e class provides configuration options for interacting with the Service Usage v1 API, allowing for customization of \u003ccode\u003eServiceUsageClient\u003c/code\u003e instances.\u003c/p\u003e\n"],["\u003cp\u003eIt supports long-running operations with customizable poll settings, like initial delay, delay multiplier, maximum delay, and total timeout, particularly for enabling and disabling services.\u003c/p\u003e\n"],["\u003cp\u003eThe class defines \u003ccode\u003eCallSettings\u003c/code\u003e for both synchronous and asynchronous operations, allowing you to modify the behaviors of these calls and specify settings like timeout.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eServiceUsageSettings\u003c/code\u003e inherits from \u003ccode\u003eServiceSettingsBase\u003c/code\u003e and contains settings for various methods such as \u003ccode\u003eBatchEnableServices\u003c/code\u003e, \u003ccode\u003eBatchGetServices\u003c/code\u003e, \u003ccode\u003eDisableService\u003c/code\u003e, \u003ccode\u003eEnableService\u003c/code\u003e, \u003ccode\u003eGetService\u003c/code\u003e, and \u003ccode\u003eListServices\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe latest version for ServiceUsageSettings is 2.5.0, and prior versions from 1.0.0 to 2.4.0 are available for use.\u003c/p\u003e\n"]]],[],null,["# Service Usage v1 API - Class ServiceUsageSettings (2.5.0)\n\nVersion latestkeyboard_arrow_down\n\n- [2.5.0 (latest)](/dotnet/docs/reference/Google.Cloud.ServiceUsage.V1/latest/Google.Cloud.ServiceUsage.V1.ServiceUsageSettings)\n- [2.4.0](/dotnet/docs/reference/Google.Cloud.ServiceUsage.V1/2.4.0/Google.Cloud.ServiceUsage.V1.ServiceUsageSettings)\n- [2.3.0](/dotnet/docs/reference/Google.Cloud.ServiceUsage.V1/2.3.0/Google.Cloud.ServiceUsage.V1.ServiceUsageSettings)\n- [2.2.0](/dotnet/docs/reference/Google.Cloud.ServiceUsage.V1/2.2.0/Google.Cloud.ServiceUsage.V1.ServiceUsageSettings)\n- [2.1.0](/dotnet/docs/reference/Google.Cloud.ServiceUsage.V1/2.1.0/Google.Cloud.ServiceUsage.V1.ServiceUsageSettings)\n- [2.0.0](/dotnet/docs/reference/Google.Cloud.ServiceUsage.V1/2.0.0/Google.Cloud.ServiceUsage.V1.ServiceUsageSettings)\n- [1.2.0](/dotnet/docs/reference/Google.Cloud.ServiceUsage.V1/1.2.0/Google.Cloud.ServiceUsage.V1.ServiceUsageSettings)\n- [1.1.0](/dotnet/docs/reference/Google.Cloud.ServiceUsage.V1/1.1.0/Google.Cloud.ServiceUsage.V1.ServiceUsageSettings)\n- [1.0.0](/dotnet/docs/reference/Google.Cloud.ServiceUsage.V1/1.0.0/Google.Cloud.ServiceUsage.V1.ServiceUsageSettings) \n\n public sealed class ServiceUsageSettings : ServiceSettingsBase\n\nReference documentation and code samples for the Service Usage v1 API class ServiceUsageSettings.\n\nSettings for [ServiceUsageClient](/dotnet/docs/reference/Google.Cloud.ServiceUsage.V1/latest/Google.Cloud.ServiceUsage.V1.ServiceUsageClient) instances. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e [ServiceSettingsBase](https://github.com/googleapis/gax-dotnet/blob/83f42b5edc4529818dbdb34d9ea9ecc3c04f7b6e/Google.Api.Gax.Grpc/ServiceSettingsBase.cs) \\\u003e ServiceUsageSettings \n\nInherited Members\n-----------------\n\n[ServiceSettingsBase.VersionHeaderBuilder](https://github.com/googleapis/gax-dotnet/blob/83f42b5edc4529818dbdb34d9ea9ecc3c04f7b6e/Google.Api.Gax.Grpc/ServiceSettingsBase.cs) \n[ServiceSettingsBase.CallSettings](https://github.com/googleapis/gax-dotnet/blob/83f42b5edc4529818dbdb34d9ea9ecc3c04f7b6e/Google.Api.Gax.Grpc/ServiceSettingsBase.cs) \n[ServiceSettingsBase.Clock](https://github.com/googleapis/gax-dotnet/blob/83f42b5edc4529818dbdb34d9ea9ecc3c04f7b6e/Google.Api.Gax.Grpc/ServiceSettingsBase.cs) \n[ServiceSettingsBase.Scheduler](https://github.com/googleapis/gax-dotnet/blob/83f42b5edc4529818dbdb34d9ea9ecc3c04f7b6e/Google.Api.Gax.Grpc/ServiceSettingsBase.cs) \n[ServiceSettingsBase.Interceptor](https://github.com/googleapis/gax-dotnet/blob/83f42b5edc4529818dbdb34d9ea9ecc3c04f7b6e/Google.Api.Gax.Grpc/ServiceSettingsBase.cs) \n[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) \n[object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) \n[object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)\n\nNamespace\n---------\n\n[Google.Cloud.ServiceUsage.V1](/dotnet/docs/reference/Google.Cloud.ServiceUsage.V1/latest/Google.Cloud.ServiceUsage.V1)\n\nAssembly\n--------\n\nGoogle.Cloud.ServiceUsage.V1.dll\n\nConstructors\n------------\n\n### ServiceUsageSettings()\n\n public ServiceUsageSettings()\n\nConstructs a new [ServiceUsageSettings](/dotnet/docs/reference/Google.Cloud.ServiceUsage.V1/latest/Google.Cloud.ServiceUsage.V1.ServiceUsageSettings) object with default settings.\n\nProperties\n----------\n\n### BatchEnableServicesOperationsSettings\n\n public OperationsSettings BatchEnableServicesOperationsSettings { get; set; }\n\nLong Running Operation settings for calls to `ServiceUsageClient.BatchEnableServices` and\n`ServiceUsageClient.BatchEnableServicesAsync`.\n\n**Remarks** \nUses default [PollSettings](https://github.com/googleapis/gax-dotnet/blob/83f42b5edc4529818dbdb34d9ea9ecc3c04f7b6e/Google.Api.Gax/PollSettings.cs) of:\n\n- Initial delay: 20 seconds.\n- Delay multiplier: 1.5\n- Maximum delay: 45 seconds.\n- Total timeout: 24 hours.\n\n\u003cbr /\u003e\n\n### BatchEnableServicesSettings\n\n public CallSettings BatchEnableServicesSettings { get; set; }\n\n[CallSettings](https://github.com/googleapis/gax-dotnet/blob/83f42b5edc4529818dbdb34d9ea9ecc3c04f7b6e/Google.Api.Gax.Grpc/CallSettings.cs) for synchronous and asynchronous calls to\n`ServiceUsageClient.BatchEnableServices` and `ServiceUsageClient.BatchEnableServicesAsync`.\n\n**Remarks** \n- This call will not be retried.\n- Timeout: 60 seconds.\n\n### BatchGetServicesSettings\n\n public CallSettings BatchGetServicesSettings { get; set; }\n\n[CallSettings](https://github.com/googleapis/gax-dotnet/blob/83f42b5edc4529818dbdb34d9ea9ecc3c04f7b6e/Google.Api.Gax.Grpc/CallSettings.cs) for synchronous and asynchronous calls to\n`ServiceUsageClient.BatchGetServices` and `ServiceUsageClient.BatchGetServicesAsync`.\n\n**Remarks** \n- This call will not be retried.\n- Timeout: 60 seconds.\n\n### DisableServiceOperationsSettings\n\n public OperationsSettings DisableServiceOperationsSettings { get; set; }\n\nLong Running Operation settings for calls to `ServiceUsageClient.DisableService` and\n`ServiceUsageClient.DisableServiceAsync`.\n\n**Remarks** \nUses default [PollSettings](https://github.com/googleapis/gax-dotnet/blob/83f42b5edc4529818dbdb34d9ea9ecc3c04f7b6e/Google.Api.Gax/PollSettings.cs) of:\n\n- Initial delay: 20 seconds.\n- Delay multiplier: 1.5\n- Maximum delay: 45 seconds.\n- Total timeout: 24 hours.\n\n\u003cbr /\u003e\n\n### DisableServiceSettings\n\n public CallSettings DisableServiceSettings { get; set; }\n\n[CallSettings](https://github.com/googleapis/gax-dotnet/blob/83f42b5edc4529818dbdb34d9ea9ecc3c04f7b6e/Google.Api.Gax.Grpc/CallSettings.cs) for synchronous and asynchronous calls to\n`ServiceUsageClient.DisableService` and `ServiceUsageClient.DisableServiceAsync`.\n\n**Remarks** \n- This call will not be retried.\n- Timeout: 60 seconds.\n\n### EnableServiceOperationsSettings\n\n public OperationsSettings EnableServiceOperationsSettings { get; set; }\n\nLong Running Operation settings for calls to `ServiceUsageClient.EnableService` and\n`ServiceUsageClient.EnableServiceAsync`.\n\n**Remarks** \nUses default [PollSettings](https://github.com/googleapis/gax-dotnet/blob/83f42b5edc4529818dbdb34d9ea9ecc3c04f7b6e/Google.Api.Gax/PollSettings.cs) of:\n\n- Initial delay: 20 seconds.\n- Delay multiplier: 1.5\n- Maximum delay: 45 seconds.\n- Total timeout: 24 hours.\n\n\u003cbr /\u003e\n\n### EnableServiceSettings\n\n public CallSettings EnableServiceSettings { get; set; }\n\n[CallSettings](https://github.com/googleapis/gax-dotnet/blob/83f42b5edc4529818dbdb34d9ea9ecc3c04f7b6e/Google.Api.Gax.Grpc/CallSettings.cs) for synchronous and asynchronous calls to\n`ServiceUsageClient.EnableService` and `ServiceUsageClient.EnableServiceAsync`.\n\n**Remarks** \n- This call will not be retried.\n- Timeout: 60 seconds.\n\n### GetServiceSettings\n\n public CallSettings GetServiceSettings { get; set; }\n\n[CallSettings](https://github.com/googleapis/gax-dotnet/blob/83f42b5edc4529818dbdb34d9ea9ecc3c04f7b6e/Google.Api.Gax.Grpc/CallSettings.cs) for synchronous and asynchronous calls to\n`ServiceUsageClient.GetService` and `ServiceUsageClient.GetServiceAsync`.\n\n**Remarks** \n- This call will not be retried.\n- Timeout: 60 seconds.\n\n### ListServicesSettings\n\n public CallSettings ListServicesSettings { get; set; }\n\n[CallSettings](https://github.com/googleapis/gax-dotnet/blob/83f42b5edc4529818dbdb34d9ea9ecc3c04f7b6e/Google.Api.Gax.Grpc/CallSettings.cs) for synchronous and asynchronous calls to\n`ServiceUsageClient.ListServices` and `ServiceUsageClient.ListServicesAsync`.\n\n**Remarks** \n- This call will not be retried.\n- Timeout: 60 seconds.\n\nMethods\n-------\n\n### Clone()\n\n public ServiceUsageSettings Clone()\n\nCreates a deep clone of this object, with all the same property values.\n\n### GetDefault()\n\n public static ServiceUsageSettings GetDefault()\n\nGet a new instance of the default [ServiceUsageSettings](/dotnet/docs/reference/Google.Cloud.ServiceUsage.V1/latest/Google.Cloud.ServiceUsage.V1.ServiceUsageSettings)."]]