Class ProductServiceSettings
Settings for ProductServiceClient instances.
Inherited Members
Namespace: Google.Cloud.Retail.V2
Assembly: Google.Cloud.Retail.V2.dll
Syntax
public sealed class ProductServiceSettings : ServiceSettingsBase
Constructors
ProductServiceSettings()
Constructs a new ProductServiceSettings object with default settings.
Declaration
public ProductServiceSettings()
Properties
CreateProductSettings
CallSettings for synchronous and asynchronous calls to
ProductServiceClient.CreateProduct
and ProductServiceClient.CreateProductAsync
.
Declaration
public CallSettings CreateProductSettings { get; set; }
Property Value
Type | Description |
---|---|
CallSettings |
Remarks
- Initial retry delay: 100 milliseconds.
- Retry delay multiplier: 1.3
- Retry maximum delay: 60000 milliseconds.
- Maximum attempts: Unlimited
- Timeout: 60 seconds.
DeleteProductSettings
CallSettings for synchronous and asynchronous calls to
ProductServiceClient.DeleteProduct
and ProductServiceClient.DeleteProductAsync
.
Declaration
public CallSettings DeleteProductSettings { get; set; }
Property Value
Type | Description |
---|---|
CallSettings |
Remarks
- Initial retry delay: 100 milliseconds.
- Retry delay multiplier: 1.3
- Retry maximum delay: 60000 milliseconds.
- Maximum attempts: Unlimited
- Timeout: 60 seconds.
GetProductSettings
CallSettings for synchronous and asynchronous calls to
ProductServiceClient.GetProduct
and ProductServiceClient.GetProductAsync
.
Declaration
public CallSettings GetProductSettings { get; set; }
Property Value
Type | Description |
---|---|
CallSettings |
Remarks
- Initial retry delay: 100 milliseconds.
- Retry delay multiplier: 1.3
- Retry maximum delay: 60000 milliseconds.
- Maximum attempts: Unlimited
- Timeout: 60 seconds.
ImportProductsOperationsSettings
Long Running Operation settings for calls to ProductServiceClient.ImportProducts
and
ProductServiceClient.ImportProductsAsync
.
Declaration
public OperationsSettings ImportProductsOperationsSettings { get; set; }
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.
ImportProductsSettings
CallSettings for synchronous and asynchronous calls to
ProductServiceClient.ImportProducts
and ProductServiceClient.ImportProductsAsync
.
Declaration
public CallSettings ImportProductsSettings { get; set; }
Property Value
Type | Description |
---|---|
CallSettings |
Remarks
- Initial retry delay: 100 milliseconds.
- Retry delay multiplier: 1.3
- Retry maximum delay: 60000 milliseconds.
- Maximum attempts: Unlimited
- Timeout: 60 seconds.
UpdateProductSettings
CallSettings for synchronous and asynchronous calls to
ProductServiceClient.UpdateProduct
and ProductServiceClient.UpdateProductAsync
.
Declaration
public CallSettings UpdateProductSettings { get; set; }
Property Value
Type | Description |
---|---|
CallSettings |
Remarks
- Initial retry delay: 100 milliseconds.
- Retry delay multiplier: 1.3
- Retry maximum delay: 60000 milliseconds.
- Maximum attempts: Unlimited
- Timeout: 60 seconds.
Methods
Clone()
Creates a deep clone of this object, with all the same property values.
Declaration
public ProductServiceSettings Clone()
Returns
Type | Description |
---|---|
ProductServiceSettings | A deep clone of this ProductServiceSettings object. |
GetDefault()
Get a new instance of the default ProductServiceSettings.
Declaration
public static ProductServiceSettings GetDefault()
Returns
Type | Description |
---|---|
ProductServiceSettings | A new instance of the default ProductServiceSettings. |