Class CatalogServiceClientBuilder
Builder class for CatalogServiceClient to provide simple configuration of credentials, endpoint etc.
Inherited Members
Google.Api.Gax.Grpc.ClientBuilderBase<Google.Cloud.Retail.V2.CatalogServiceClient>.QuotaProject
System.Object.ToString()
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Google.Cloud.Retail.V2
Assembly: Google.Cloud.Retail.V2.dll
Syntax
public sealed class CatalogServiceClientBuilder : ClientBuilderBase<CatalogServiceClient>
Properties
DefaultGrpcAdapter
Returns the default GrpcAdapterto use if not otherwise specified.
Declaration
protected override GrpcAdapter DefaultGrpcAdapter { get; }
Property Value
Type | Description |
---|---|
GrpcAdapter |
Overrides
Google.Api.Gax.Grpc.ClientBuilderBase<Google.Cloud.Retail.V2.CatalogServiceClient>.DefaultGrpcAdapter
Settings
The settings to use for RPCs, or null
for the default settings.
Declaration
public CatalogServiceSettings Settings { get; set; }
Property Value
Type | Description |
---|---|
CatalogServiceSettings |
Methods
Build()
Builds the resulting client.
Declaration
public override CatalogServiceClient Build()
Returns
Type | Description |
---|---|
CatalogServiceClient |
Overrides
Google.Api.Gax.Grpc.ClientBuilderBase<Google.Cloud.Retail.V2.CatalogServiceClient>.Build()
BuildAsync(CancellationToken)
Builds the resulting client asynchronously.
Declaration
public override Task<CatalogServiceClient> BuildAsync(CancellationToken cancellationToken = default(CancellationToken))
Parameters
Type | Name | Description |
---|---|---|
System.Threading.CancellationToken | cancellationToken |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<CatalogServiceClient> |
Overrides
Google.Api.Gax.Grpc.ClientBuilderBase<Google.Cloud.Retail.V2.CatalogServiceClient>.BuildAsync(System.Threading.CancellationToken)
GetChannelPool()
Returns the channel pool to use when no other options are specified.
Declaration
protected override ChannelPool GetChannelPool()
Returns
Type | Description |
---|---|
ChannelPool |
Overrides
Google.Api.Gax.Grpc.ClientBuilderBase<Google.Cloud.Retail.V2.CatalogServiceClient>.GetChannelPool()
GetDefaultEndpoint()
Returns the endpoint for this builder type, used if no endpoint is otherwise specified.
Declaration
protected override string GetDefaultEndpoint()
Returns
Type | Description |
---|---|
System.String |
Overrides
Google.Api.Gax.Grpc.ClientBuilderBase<Google.Cloud.Retail.V2.CatalogServiceClient>.GetDefaultEndpoint()
GetDefaultScopes()
Returns the default scopes for this builder type, used if no scopes are otherwise specified.
Declaration
protected override IReadOnlyList<string> GetDefaultScopes()
Returns
Type | Description |
---|---|
System.Collections.Generic.IReadOnlyList<System.String> |
Overrides
Google.Api.Gax.Grpc.ClientBuilderBase<Google.Cloud.Retail.V2.CatalogServiceClient>.GetDefaultScopes()