[[["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\u003eServiceUsageClientBuilder\u003c/code\u003e class is designed to simplify the configuration of credentials, endpoints, and other settings for the \u003ccode\u003eServiceUsageClient\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThis class is part of the Service Usage v1 API, providing methods to build the \u003ccode\u003eServiceUsageClient\u003c/code\u003e synchronously and asynchronously.\u003c/p\u003e\n"],["\u003cp\u003eThe latest version of the API available is 2.5.0, but multiple older versions, down to 1.0.0, are also listed in the documentation, each with its own associated link.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eServiceUsageClientBuilder\u003c/code\u003e inherits from \u003ccode\u003eClientBuilderBase\u003c/code\u003e and includes members related to credentials, logging, endpoints, and other configurations.\u003c/p\u003e\n"]]],[],null,["# Service Usage v1 API - Class ServiceUsageClientBuilder (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.ServiceUsageClientBuilder)\n- [2.4.0](/dotnet/docs/reference/Google.Cloud.ServiceUsage.V1/2.4.0/Google.Cloud.ServiceUsage.V1.ServiceUsageClientBuilder)\n- [2.3.0](/dotnet/docs/reference/Google.Cloud.ServiceUsage.V1/2.3.0/Google.Cloud.ServiceUsage.V1.ServiceUsageClientBuilder)\n- [2.2.0](/dotnet/docs/reference/Google.Cloud.ServiceUsage.V1/2.2.0/Google.Cloud.ServiceUsage.V1.ServiceUsageClientBuilder)\n- [2.1.0](/dotnet/docs/reference/Google.Cloud.ServiceUsage.V1/2.1.0/Google.Cloud.ServiceUsage.V1.ServiceUsageClientBuilder)\n- [2.0.0](/dotnet/docs/reference/Google.Cloud.ServiceUsage.V1/2.0.0/Google.Cloud.ServiceUsage.V1.ServiceUsageClientBuilder)\n- [1.2.0](/dotnet/docs/reference/Google.Cloud.ServiceUsage.V1/1.2.0/Google.Cloud.ServiceUsage.V1.ServiceUsageClientBuilder)\n- [1.1.0](/dotnet/docs/reference/Google.Cloud.ServiceUsage.V1/1.1.0/Google.Cloud.ServiceUsage.V1.ServiceUsageClientBuilder)\n- [1.0.0](/dotnet/docs/reference/Google.Cloud.ServiceUsage.V1/1.0.0/Google.Cloud.ServiceUsage.V1.ServiceUsageClientBuilder) \n\n public sealed class ServiceUsageClientBuilder : ClientBuilderBase\u003cServiceUsageClient\u003e\n\nReference documentation and code samples for the Service Usage v1 API class ServiceUsageClientBuilder.\n\nBuilder class for [ServiceUsageClient](/dotnet/docs/reference/Google.Cloud.ServiceUsage.V1/latest/Google.Cloud.ServiceUsage.V1.ServiceUsageClient) to provide simple configuration of credentials, endpoint etc. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e [ClientBuilderBase](https://github.com/googleapis/gax-dotnet/blob/83f42b5edc4529818dbdb34d9ea9ecc3c04f7b6e/Google.Api.Gax.Grpc/ClientBuilderBase.cs)[ServiceUsageClient](/dotnet/docs/reference/Google.Cloud.ServiceUsage.V1/latest/Google.Cloud.ServiceUsage.V1.ServiceUsageClient) \\\u003e ServiceUsageClientBuilder \n\nInherited Members\n-----------------\n\n[ClientBuilderBase\\\u003cServiceUsageClient\\\u003e.Build(IServiceProvider)](https://github.com/googleapis/gax-dotnet/blob/83f42b5edc4529818dbdb34d9ea9ecc3c04f7b6e/Google.Api.Gax.Grpc/ClientBuilderBase.cs) \n[ClientBuilderBase\\\u003cServiceUsageClient\\\u003e.BuildAsync(IServiceProvider, CancellationToken)](https://github.com/googleapis/gax-dotnet/blob/83f42b5edc4529818dbdb34d9ea9ecc3c04f7b6e/Google.Api.Gax.Grpc/ClientBuilderBase.cs) \n[ClientBuilderBase\\\u003cServiceUsageClient\\\u003e.UniverseDomain](https://github.com/googleapis/gax-dotnet/blob/83f42b5edc4529818dbdb34d9ea9ecc3c04f7b6e/Google.Api.Gax.Grpc/ClientBuilderBase.cs) \n[ClientBuilderBase\\\u003cServiceUsageClient\\\u003e.Endpoint](https://github.com/googleapis/gax-dotnet/blob/83f42b5edc4529818dbdb34d9ea9ecc3c04f7b6e/Google.Api.Gax.Grpc/ClientBuilderBase.cs) \n[ClientBuilderBase\\\u003cServiceUsageClient\\\u003e.Logger](https://github.com/googleapis/gax-dotnet/blob/83f42b5edc4529818dbdb34d9ea9ecc3c04f7b6e/Google.Api.Gax.Grpc/ClientBuilderBase.cs) \n[ClientBuilderBase\\\u003cServiceUsageClient\\\u003e.Scopes](https://github.com/googleapis/gax-dotnet/blob/83f42b5edc4529818dbdb34d9ea9ecc3c04f7b6e/Google.Api.Gax.Grpc/ClientBuilderBase.cs) \n[ClientBuilderBase\\\u003cServiceUsageClient\\\u003e.ChannelCredentials](https://github.com/googleapis/gax-dotnet/blob/83f42b5edc4529818dbdb34d9ea9ecc3c04f7b6e/Google.Api.Gax.Grpc/ClientBuilderBase.cs) \n[ClientBuilderBase\\\u003cServiceUsageClient\\\u003e.CredentialsPath](https://github.com/googleapis/gax-dotnet/blob/83f42b5edc4529818dbdb34d9ea9ecc3c04f7b6e/Google.Api.Gax.Grpc/ClientBuilderBase.cs) \n[ClientBuilderBase\\\u003cServiceUsageClient\\\u003e.JsonCredentials](https://github.com/googleapis/gax-dotnet/blob/83f42b5edc4529818dbdb34d9ea9ecc3c04f7b6e/Google.Api.Gax.Grpc/ClientBuilderBase.cs) \n[ClientBuilderBase\\\u003cServiceUsageClient\\\u003e.GoogleCredential](https://github.com/googleapis/gax-dotnet/blob/83f42b5edc4529818dbdb34d9ea9ecc3c04f7b6e/Google.Api.Gax.Grpc/ClientBuilderBase.cs) \n[ClientBuilderBase\\\u003cServiceUsageClient\\\u003e.Credential](https://github.com/googleapis/gax-dotnet/blob/83f42b5edc4529818dbdb34d9ea9ecc3c04f7b6e/Google.Api.Gax.Grpc/ClientBuilderBase.cs) \n[ClientBuilderBase\\\u003cServiceUsageClient\\\u003e.TokenAccessMethod](https://github.com/googleapis/gax-dotnet/blob/83f42b5edc4529818dbdb34d9ea9ecc3c04f7b6e/Google.Api.Gax.Grpc/ClientBuilderBase.cs) \n[ClientBuilderBase\\\u003cServiceUsageClient\\\u003e.CallInvoker](https://github.com/googleapis/gax-dotnet/blob/83f42b5edc4529818dbdb34d9ea9ecc3c04f7b6e/Google.Api.Gax.Grpc/ClientBuilderBase.cs) \n[ClientBuilderBase\\\u003cServiceUsageClient\\\u003e.UserAgent](https://github.com/googleapis/gax-dotnet/blob/83f42b5edc4529818dbdb34d9ea9ecc3c04f7b6e/Google.Api.Gax.Grpc/ClientBuilderBase.cs) \n[ClientBuilderBase\\\u003cServiceUsageClient\\\u003e.GrpcAdapter](https://github.com/googleapis/gax-dotnet/blob/83f42b5edc4529818dbdb34d9ea9ecc3c04f7b6e/Google.Api.Gax.Grpc/ClientBuilderBase.cs) \n[ClientBuilderBase\\\u003cServiceUsageClient\\\u003e.QuotaProject](https://github.com/googleapis/gax-dotnet/blob/83f42b5edc4529818dbdb34d9ea9ecc3c04f7b6e/Google.Api.Gax.Grpc/ClientBuilderBase.cs) \n[ClientBuilderBase\\\u003cServiceUsageClient\\\u003e.GrpcChannelOptions](https://github.com/googleapis/gax-dotnet/blob/83f42b5edc4529818dbdb34d9ea9ecc3c04f7b6e/Google.Api.Gax.Grpc/ClientBuilderBase.cs) \n[ClientBuilderBase\\\u003cServiceUsageClient\\\u003e.LastCreatedChannel](https://github.com/googleapis/gax-dotnet/blob/83f42b5edc4529818dbdb34d9ea9ecc3c04f7b6e/Google.Api.Gax.Grpc/ClientBuilderBase.cs) \n[ClientBuilderBase\\\u003cServiceUsageClient\\\u003e.UseJwtAccessWithScopes](https://github.com/googleapis/gax-dotnet/blob/83f42b5edc4529818dbdb34d9ea9ecc3c04f7b6e/Google.Api.Gax.Grpc/ClientBuilderBase.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### ServiceUsageClientBuilder()\n\n public ServiceUsageClientBuilder()\n\nCreates a new builder with default settings.\n\nProperties\n----------\n\n### Settings\n\n public ServiceUsageSettings Settings { get; set; }\n\nThe settings to use for RPCs, or `null` for the default settings.\n\nMethods\n-------\n\n### Build()\n\n public override ServiceUsageClient Build()\n\nBuilds the resulting client.\n\n**Overrides** \n[ClientBuilderBase\\\u003cServiceUsageClient\\\u003e.Build()](https://github.com/googleapis/gax-dotnet/blob/83f42b5edc4529818dbdb34d9ea9ecc3c04f7b6e/Google.Api.Gax.Grpc/ClientBuilderBase.cs)\n\n### BuildAsync(CancellationToken)\n\n public override Task\u003cServiceUsageClient\u003e BuildAsync(CancellationToken cancellationToken = default)\n\nBuilds the resulting client asynchronously.\n\n**Overrides** \n[ClientBuilderBase\\\u003cServiceUsageClient\\\u003e.BuildAsync(CancellationToken)](https://github.com/googleapis/gax-dotnet/blob/83f42b5edc4529818dbdb34d9ea9ecc3c04f7b6e/Google.Api.Gax.Grpc/ClientBuilderBase.cs)\n\n### GetChannelPool()\n\n protected override ChannelPool GetChannelPool()\n\nReturns the channel pool to use when no other options are specified.\n\n**Overrides** \n[ClientBuilderBase\\\u003cServiceUsageClient\\\u003e.GetChannelPool()](https://github.com/googleapis/gax-dotnet/blob/83f42b5edc4529818dbdb34d9ea9ecc3c04f7b6e/Google.Api.Gax.Grpc/ClientBuilderBase.cs)"]]