Cloud Commerce Consumer Procurement v1 API - Class ConsumerProcurementServiceSettings (1.3.0)

public sealed class ConsumerProcurementServiceSettings : ServiceSettingsBase

Reference documentation and code samples for the Cloud Commerce Consumer Procurement v1 API class ConsumerProcurementServiceSettings.

Settings for ConsumerProcurementServiceClient instances.

Inheritance

object > ServiceSettingsBase > ConsumerProcurementServiceSettings

Namespace

Google.Cloud.Commerce.Consumer.Procurement.V1

Assembly

Google.Cloud.Commerce.Consumer.Procurement.V1.dll

Constructors

ConsumerProcurementServiceSettings()

public ConsumerProcurementServiceSettings()

Constructs a new ConsumerProcurementServiceSettings object with default settings.

Properties

GetOrderSettings

public CallSettings GetOrderSettings { get; set; }

CallSettings for synchronous and asynchronous calls to ConsumerProcurementServiceClient.GetOrder and ConsumerProcurementServiceClient.GetOrderAsync.

Property Value
Type Description
CallSettings
Remarks
  • Initial retry delay: 1000 milliseconds.
  • Retry delay multiplier: 1.3
  • Retry maximum delay: 60000 milliseconds.
  • Maximum attempts: 5
  • Retriable status codes: Unavailable.
  • Timeout: 60 seconds.

ListOrdersSettings

public CallSettings ListOrdersSettings { get; set; }

CallSettings for synchronous and asynchronous calls to ConsumerProcurementServiceClient.ListOrders and ConsumerProcurementServiceClient.ListOrdersAsync .

Property Value
Type Description
CallSettings
Remarks
  • Initial retry delay: 1000 milliseconds.
  • Retry delay multiplier: 1.3
  • Retry maximum delay: 60000 milliseconds.
  • Maximum attempts: 5
  • Retriable status codes: Unavailable.
  • Timeout: 60 seconds.

PlaceOrderOperationsSettings

public OperationsSettings PlaceOrderOperationsSettings { get; set; }

Long Running Operation settings for calls to ConsumerProcurementServiceClient.PlaceOrder and ConsumerProcurementServiceClient.PlaceOrderAsync.

Property Value
Type Description
OperationsSettings
Remarks

Uses default PollSettings of:

  • Initial delay: 20 seconds.
  • Delay multiplier: 1.5
  • Maximum delay: 45 seconds.
  • Total timeout: 24 hours.

PlaceOrderSettings

public CallSettings PlaceOrderSettings { get; set; }

CallSettings for synchronous and asynchronous calls to ConsumerProcurementServiceClient.PlaceOrder and ConsumerProcurementServiceClient.PlaceOrderAsync .

Property Value
Type Description
CallSettings
Remarks
  • This call will not be retried.
  • Timeout: 60 seconds.

Methods

Clone()

public ConsumerProcurementServiceSettings Clone()

Creates a deep clone of this object, with all the same property values.

Returns
Type Description
ConsumerProcurementServiceSettings

A deep clone of this ConsumerProcurementServiceSettings object.

GetDefault()

public static ConsumerProcurementServiceSettings GetDefault()

Get a new instance of the default ConsumerProcurementServiceSettings.

Returns
Type Description
ConsumerProcurementServiceSettings

A new instance of the default ConsumerProcurementServiceSettings.