public sealed class ModelServiceSettings : ServiceSettingsBase
Reference documentation and code samples for the Retail v2 API class ModelServiceSettings.
Settings for ModelServiceClient instances.
Namespace
Google.Cloud.Retail.V2Assembly
Google.Cloud.Retail.V2.dll
Constructors
ModelServiceSettings()
public ModelServiceSettings()
Constructs a new ModelServiceSettings object with default settings.
Properties
CreateModelOperationsSettings
public OperationsSettings CreateModelOperationsSettings { get; set; }
Long Running Operation settings for calls to ModelServiceClient.CreateModel
and
ModelServiceClient.CreateModelAsync
.
Property Value | |
---|---|
Type | Description |
OperationsSettings |
Uses default PollSettings of:
- Initial delay: 20 seconds.
- Delay multiplier: 1.5
- Maximum delay: 45 seconds.
- Total timeout: 24 hours.
CreateModelSettings
public CallSettings CreateModelSettings { get; set; }
CallSettings for synchronous and asynchronous calls to
ModelServiceClient.CreateModel
and ModelServiceClient.CreateModelAsync
.
Property Value | |
---|---|
Type | Description |
CallSettings |
- Initial retry delay: 100 milliseconds.
- Retry delay multiplier: 1.3
- Retry maximum delay: 60000 milliseconds.
- Maximum attempts: Unlimited
- Retriable status codes: Unavailable, DeadlineExceeded.
- Timeout: 60 seconds.
DeleteModelSettings
public CallSettings DeleteModelSettings { get; set; }
CallSettings for synchronous and asynchronous calls to
ModelServiceClient.DeleteModel
and ModelServiceClient.DeleteModelAsync
.
Property Value | |
---|---|
Type | Description |
CallSettings |
- Initial retry delay: 100 milliseconds.
- Retry delay multiplier: 1.3
- Retry maximum delay: 60000 milliseconds.
- Maximum attempts: Unlimited
- Retriable status codes: Unavailable, DeadlineExceeded.
- Timeout: 60 seconds.
GetModelSettings
public CallSettings GetModelSettings { get; set; }
CallSettings for synchronous and asynchronous calls to ModelServiceClient.GetModel
and ModelServiceClient.GetModelAsync
.
Property Value | |
---|---|
Type | Description |
CallSettings |
- Initial retry delay: 100 milliseconds.
- Retry delay multiplier: 1.3
- Retry maximum delay: 60000 milliseconds.
- Maximum attempts: Unlimited
- Retriable status codes: Unavailable, DeadlineExceeded.
- Timeout: 60 seconds.
ListModelsSettings
public CallSettings ListModelsSettings { get; set; }
CallSettings for synchronous and asynchronous calls to
ModelServiceClient.ListModels
and ModelServiceClient.ListModelsAsync
.
Property Value | |
---|---|
Type | Description |
CallSettings |
- Initial retry delay: 100 milliseconds.
- Retry delay multiplier: 1.3
- Retry maximum delay: 60000 milliseconds.
- Maximum attempts: Unlimited
- Retriable status codes: Unavailable, DeadlineExceeded.
- Timeout: 60 seconds.
LocationsSettings
public LocationsSettings LocationsSettings { get; set; }
The settings to use for the LocationsClient associated with the client.
Property Value | |
---|---|
Type | Description |
LocationsSettings |
PauseModelSettings
public CallSettings PauseModelSettings { get; set; }
CallSettings for synchronous and asynchronous calls to
ModelServiceClient.PauseModel
and ModelServiceClient.PauseModelAsync
.
Property Value | |
---|---|
Type | Description |
CallSettings |
- Initial retry delay: 100 milliseconds.
- Retry delay multiplier: 1.3
- Retry maximum delay: 60000 milliseconds.
- Maximum attempts: Unlimited
- Retriable status codes: Unavailable, DeadlineExceeded.
- Timeout: 60 seconds.
ResumeModelSettings
public CallSettings ResumeModelSettings { get; set; }
CallSettings for synchronous and asynchronous calls to
ModelServiceClient.ResumeModel
and ModelServiceClient.ResumeModelAsync
.
Property Value | |
---|---|
Type | Description |
CallSettings |
- Initial retry delay: 100 milliseconds.
- Retry delay multiplier: 1.3
- Retry maximum delay: 60000 milliseconds.
- Maximum attempts: Unlimited
- Retriable status codes: Unavailable, DeadlineExceeded.
- Timeout: 60 seconds.
TuneModelOperationsSettings
public OperationsSettings TuneModelOperationsSettings { get; set; }
Long Running Operation settings for calls to ModelServiceClient.TuneModel
and
ModelServiceClient.TuneModelAsync
.
Property Value | |
---|---|
Type | Description |
OperationsSettings |
Uses default PollSettings of:
- Initial delay: 20 seconds.
- Delay multiplier: 1.5
- Maximum delay: 45 seconds.
- Total timeout: 24 hours.
TuneModelSettings
public CallSettings TuneModelSettings { get; set; }
CallSettings for synchronous and asynchronous calls to
ModelServiceClient.TuneModel
and ModelServiceClient.TuneModelAsync
.
Property Value | |
---|---|
Type | Description |
CallSettings |
- Initial retry delay: 100 milliseconds.
- Retry delay multiplier: 1.3
- Retry maximum delay: 60000 milliseconds.
- Maximum attempts: Unlimited
- Retriable status codes: Unavailable, DeadlineExceeded.
- Timeout: 60 seconds.
UpdateModelSettings
public CallSettings UpdateModelSettings { get; set; }
CallSettings for synchronous and asynchronous calls to
ModelServiceClient.UpdateModel
and ModelServiceClient.UpdateModelAsync
.
Property Value | |
---|---|
Type | Description |
CallSettings |
- Initial retry delay: 100 milliseconds.
- Retry delay multiplier: 1.3
- Retry maximum delay: 60000 milliseconds.
- Maximum attempts: Unlimited
- Retriable status codes: Unavailable, DeadlineExceeded.
- Timeout: 60 seconds.
Methods
Clone()
public ModelServiceSettings Clone()
Creates a deep clone of this object, with all the same property values.
Returns | |
---|---|
Type | Description |
ModelServiceSettings |
A deep clone of this ModelServiceSettings object. |
GetDefault()
public static ModelServiceSettings GetDefault()
Get a new instance of the default ModelServiceSettings.
Returns | |
---|---|
Type | Description |
ModelServiceSettings |
A new instance of the default ModelServiceSettings. |