[[["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\u003eThis documentation covers the \u003ccode\u003eProfilerServiceClientBuilder\u003c/code\u003e class for the Cloud Profiler v2 API, with the latest version being 2.6.0.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eProfilerServiceClientBuilder\u003c/code\u003e is a builder class that provides simple configuration for credentials, endpoints, and other settings for \u003ccode\u003eProfilerServiceClient\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eProfilerServiceClientBuilder\u003c/code\u003e class inherits from \u003ccode\u003eClientBuilderBase\u003c/code\u003e, inheriting methods like \u003ccode\u003eBuild\u003c/code\u003e, \u003ccode\u003eBuildAsync\u003c/code\u003e, and properties such as \u003ccode\u003eEndpoint\u003c/code\u003e, \u003ccode\u003eLogger\u003c/code\u003e and \u003ccode\u003eCredentialsPath\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe builder allows for the synchronous and asynchronous creation of \u003ccode\u003eProfilerServiceClient\u003c/code\u003e instances via the \u003ccode\u003eBuild()\u003c/code\u003e and \u003ccode\u003eBuildAsync()\u003c/code\u003e methods, respectively.\u003c/p\u003e\n"],["\u003cp\u003eThere are ten different versions available for this API from version 1.0.0 to 2.6.0 which is the latest.\u003c/p\u003e\n"]]],[],null,["# Cloud Profiler v2 API - Class ProfilerServiceClientBuilder (2.6.0)\n\nVersion latestkeyboard_arrow_down\n\n- [2.6.0 (latest)](/dotnet/docs/reference/Google.Cloud.Profiler.V2/latest/Google.Cloud.Profiler.V2.ProfilerServiceClientBuilder)\n- [2.5.0](/dotnet/docs/reference/Google.Cloud.Profiler.V2/2.5.0/Google.Cloud.Profiler.V2.ProfilerServiceClientBuilder)\n- [2.4.0](/dotnet/docs/reference/Google.Cloud.Profiler.V2/2.4.0/Google.Cloud.Profiler.V2.ProfilerServiceClientBuilder)\n- [2.3.0](/dotnet/docs/reference/Google.Cloud.Profiler.V2/2.3.0/Google.Cloud.Profiler.V2.ProfilerServiceClientBuilder)\n- [2.2.0](/dotnet/docs/reference/Google.Cloud.Profiler.V2/2.2.0/Google.Cloud.Profiler.V2.ProfilerServiceClientBuilder)\n- [2.1.0](/dotnet/docs/reference/Google.Cloud.Profiler.V2/2.1.0/Google.Cloud.Profiler.V2.ProfilerServiceClientBuilder)\n- [2.0.0](/dotnet/docs/reference/Google.Cloud.Profiler.V2/2.0.0/Google.Cloud.Profiler.V2.ProfilerServiceClientBuilder)\n- [1.2.0](/dotnet/docs/reference/Google.Cloud.Profiler.V2/1.2.0/Google.Cloud.Profiler.V2.ProfilerServiceClientBuilder)\n- [1.1.0](/dotnet/docs/reference/Google.Cloud.Profiler.V2/1.1.0/Google.Cloud.Profiler.V2.ProfilerServiceClientBuilder)\n- [1.0.0](/dotnet/docs/reference/Google.Cloud.Profiler.V2/1.0.0/Google.Cloud.Profiler.V2.ProfilerServiceClientBuilder) \n\n public sealed class ProfilerServiceClientBuilder : ClientBuilderBase\u003cProfilerServiceClient\u003e\n\nReference documentation and code samples for the Cloud Profiler v2 API class ProfilerServiceClientBuilder.\n\nBuilder class for [ProfilerServiceClient](/dotnet/docs/reference/Google.Cloud.Profiler.V2/latest/Google.Cloud.Profiler.V2.ProfilerServiceClient) to provide simple configuration of credentials, endpoint\netc. \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)[ProfilerServiceClient](/dotnet/docs/reference/Google.Cloud.Profiler.V2/latest/Google.Cloud.Profiler.V2.ProfilerServiceClient) \\\u003e ProfilerServiceClientBuilder \n\nInherited Members\n-----------------\n\n[ClientBuilderBase\\\u003cProfilerServiceClient\\\u003e.Build(IServiceProvider)](https://github.com/googleapis/gax-dotnet/blob/83f42b5edc4529818dbdb34d9ea9ecc3c04f7b6e/Google.Api.Gax.Grpc/ClientBuilderBase.cs) \n[ClientBuilderBase\\\u003cProfilerServiceClient\\\u003e.BuildAsync(IServiceProvider, CancellationToken)](https://github.com/googleapis/gax-dotnet/blob/83f42b5edc4529818dbdb34d9ea9ecc3c04f7b6e/Google.Api.Gax.Grpc/ClientBuilderBase.cs) \n[ClientBuilderBase\\\u003cProfilerServiceClient\\\u003e.UniverseDomain](https://github.com/googleapis/gax-dotnet/blob/83f42b5edc4529818dbdb34d9ea9ecc3c04f7b6e/Google.Api.Gax.Grpc/ClientBuilderBase.cs) \n[ClientBuilderBase\\\u003cProfilerServiceClient\\\u003e.Endpoint](https://github.com/googleapis/gax-dotnet/blob/83f42b5edc4529818dbdb34d9ea9ecc3c04f7b6e/Google.Api.Gax.Grpc/ClientBuilderBase.cs) \n[ClientBuilderBase\\\u003cProfilerServiceClient\\\u003e.Logger](https://github.com/googleapis/gax-dotnet/blob/83f42b5edc4529818dbdb34d9ea9ecc3c04f7b6e/Google.Api.Gax.Grpc/ClientBuilderBase.cs) \n[ClientBuilderBase\\\u003cProfilerServiceClient\\\u003e.Scopes](https://github.com/googleapis/gax-dotnet/blob/83f42b5edc4529818dbdb34d9ea9ecc3c04f7b6e/Google.Api.Gax.Grpc/ClientBuilderBase.cs) \n[ClientBuilderBase\\\u003cProfilerServiceClient\\\u003e.ChannelCredentials](https://github.com/googleapis/gax-dotnet/blob/83f42b5edc4529818dbdb34d9ea9ecc3c04f7b6e/Google.Api.Gax.Grpc/ClientBuilderBase.cs) \n[ClientBuilderBase\\\u003cProfilerServiceClient\\\u003e.CredentialsPath](https://github.com/googleapis/gax-dotnet/blob/83f42b5edc4529818dbdb34d9ea9ecc3c04f7b6e/Google.Api.Gax.Grpc/ClientBuilderBase.cs) \n[ClientBuilderBase\\\u003cProfilerServiceClient\\\u003e.JsonCredentials](https://github.com/googleapis/gax-dotnet/blob/83f42b5edc4529818dbdb34d9ea9ecc3c04f7b6e/Google.Api.Gax.Grpc/ClientBuilderBase.cs) \n[ClientBuilderBase\\\u003cProfilerServiceClient\\\u003e.GoogleCredential](https://github.com/googleapis/gax-dotnet/blob/83f42b5edc4529818dbdb34d9ea9ecc3c04f7b6e/Google.Api.Gax.Grpc/ClientBuilderBase.cs) \n[ClientBuilderBase\\\u003cProfilerServiceClient\\\u003e.Credential](https://github.com/googleapis/gax-dotnet/blob/83f42b5edc4529818dbdb34d9ea9ecc3c04f7b6e/Google.Api.Gax.Grpc/ClientBuilderBase.cs) \n[ClientBuilderBase\\\u003cProfilerServiceClient\\\u003e.TokenAccessMethod](https://github.com/googleapis/gax-dotnet/blob/83f42b5edc4529818dbdb34d9ea9ecc3c04f7b6e/Google.Api.Gax.Grpc/ClientBuilderBase.cs) \n[ClientBuilderBase\\\u003cProfilerServiceClient\\\u003e.CallInvoker](https://github.com/googleapis/gax-dotnet/blob/83f42b5edc4529818dbdb34d9ea9ecc3c04f7b6e/Google.Api.Gax.Grpc/ClientBuilderBase.cs) \n[ClientBuilderBase\\\u003cProfilerServiceClient\\\u003e.UserAgent](https://github.com/googleapis/gax-dotnet/blob/83f42b5edc4529818dbdb34d9ea9ecc3c04f7b6e/Google.Api.Gax.Grpc/ClientBuilderBase.cs) \n[ClientBuilderBase\\\u003cProfilerServiceClient\\\u003e.GrpcAdapter](https://github.com/googleapis/gax-dotnet/blob/83f42b5edc4529818dbdb34d9ea9ecc3c04f7b6e/Google.Api.Gax.Grpc/ClientBuilderBase.cs) \n[ClientBuilderBase\\\u003cProfilerServiceClient\\\u003e.QuotaProject](https://github.com/googleapis/gax-dotnet/blob/83f42b5edc4529818dbdb34d9ea9ecc3c04f7b6e/Google.Api.Gax.Grpc/ClientBuilderBase.cs) \n[ClientBuilderBase\\\u003cProfilerServiceClient\\\u003e.GrpcChannelOptions](https://github.com/googleapis/gax-dotnet/blob/83f42b5edc4529818dbdb34d9ea9ecc3c04f7b6e/Google.Api.Gax.Grpc/ClientBuilderBase.cs) \n[ClientBuilderBase\\\u003cProfilerServiceClient\\\u003e.LastCreatedChannel](https://github.com/googleapis/gax-dotnet/blob/83f42b5edc4529818dbdb34d9ea9ecc3c04f7b6e/Google.Api.Gax.Grpc/ClientBuilderBase.cs) \n[ClientBuilderBase\\\u003cProfilerServiceClient\\\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.Profiler.V2](/dotnet/docs/reference/Google.Cloud.Profiler.V2/latest/Google.Cloud.Profiler.V2)\n\nAssembly\n--------\n\nGoogle.Cloud.Profiler.V2.dll\n\nConstructors\n------------\n\n### ProfilerServiceClientBuilder()\n\n public ProfilerServiceClientBuilder()\n\nCreates a new builder with default settings.\n\nProperties\n----------\n\n### Settings\n\n public ProfilerServiceSettings 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 ProfilerServiceClient Build()\n\nBuilds the resulting client.\n\n**Overrides** \n[ClientBuilderBase\\\u003cProfilerServiceClient\\\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\u003cProfilerServiceClient\u003e BuildAsync(CancellationToken cancellationToken = default)\n\nBuilds the resulting client asynchronously.\n\n**Overrides** \n[ClientBuilderBase\\\u003cProfilerServiceClient\\\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\\\u003cProfilerServiceClient\\\u003e.GetChannelPool()](https://github.com/googleapis/gax-dotnet/blob/83f42b5edc4529818dbdb34d9ea9ecc3c04f7b6e/Google.Api.Gax.Grpc/ClientBuilderBase.cs)"]]