Class PromotionsServiceClientBuilder
Builder class for PromotionsServiceClient to provide simple configuration of credentials, endpoint etc.
Inherited Members
Namespace: Google.Shopping.Merchant.Promotions.V1Beta
Assembly: Google.Shopping.Merchant.Promotions.V1Beta.dll
Syntax
public sealed class PromotionsServiceClientBuilder : ClientBuilderBase<PromotionsServiceClient>
Constructors
PromotionsServiceClientBuilder()
Creates a new builder with default settings.
Declaration
public PromotionsServiceClientBuilder()
Properties
Settings
The settings to use for RPCs, or null
for the default settings.
Declaration
public PromotionsServiceSettings Settings { get; set; }
Property Value
Type | Description |
---|---|
PromotionsServiceSettings |
Methods
Build()
Builds the resulting client.
Declaration
public override PromotionsServiceClient Build()
Returns
Type | Description |
---|---|
PromotionsServiceClient |
Overrides
BuildAsync(CancellationToken)
Builds the resulting client asynchronously.
Declaration
public override Task<PromotionsServiceClient> BuildAsync(CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
CancellationToken | cancellationToken |
Returns
Type | Description |
---|---|
Task<PromotionsServiceClient> |
Overrides
GetChannelPool()
Returns the channel pool to use when no other options are specified.
Declaration
protected override ChannelPool GetChannelPool()
Returns
Type | Description |
---|---|
ChannelPool |