Retail v2 API - Class AnalyticsServiceClientBuilder (2.13.0)

publicsealedclassAnalyticsServiceClientBuilder:ClientBuilderBase<AnalyticsServiceClient>

Reference documentation and code samples for the Retail v2 API class AnalyticsServiceClientBuilder.

Builder class for AnalyticsServiceClient to provide simple configuration of credentials, endpoint etc.

Inheritance

object > ClientBuilderBase AnalyticsServiceClient > AnalyticsServiceClientBuilder

Inherited Members

Namespace

Google.Cloud.Retail.V2

Assembly

Google.Cloud.Retail.V2.dll

Constructors

AnalyticsServiceClientBuilder()

publicAnalyticsServiceClientBuilder()

Creates a new builder with default settings.

Properties

Settings

publicAnalyticsServiceSettingsSettings{get;set;}

The settings to use for RPCs, or null for the default settings.

Property Value
Type Description
AnalyticsServiceSettings

Methods

Build()

publicoverrideAnalyticsServiceClientBuild()

Builds the resulting client.

Returns
Type Description
AnalyticsServiceClient
Overrides
Google.Api.Gax.Grpc.ClientBuilderBase<Google.Cloud.Retail.V2.AnalyticsServiceClient>.Build()

BuildAsync(CancellationToken)

publicoverrideTask<AnalyticsServiceClient>BuildAsync(CancellationTokencancellationToken=default)

Builds the resulting client asynchronously.

Parameter
Name Description
cancellationToken CancellationToken
Returns
Type Description
Task AnalyticsServiceClient
Overrides
Google.Api.Gax.Grpc.ClientBuilderBase<Google.Cloud.Retail.V2.AnalyticsServiceClient>.BuildAsync(System.Threading.CancellationToken)

GetChannelPool()

protectedoverrideChannelPoolGetChannelPool()

Returns the channel pool to use when no other options are specified.

Returns
Type Description
ChannelPool
Overrides
Google.Api.Gax.Grpc.ClientBuilderBase<Google.Cloud.Retail.V2.AnalyticsServiceClient>.GetChannelPool()

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年11月06日 UTC.