public sealed class ModelArmorSettings : ServiceSettingsBaseReference documentation and code samples for the Model Armor v1 API class ModelArmorSettings.
Settings for ModelArmorClient instances.
Namespace
Google.Cloud.ModelArmor.V1Assembly
Google.Cloud.ModelArmor.V1.dll
Constructors
ModelArmorSettings()
public ModelArmorSettings()Constructs a new ModelArmorSettings object with default settings.
Properties
CreateTemplateSettings
public CallSettings CreateTemplateSettings { get; set; }CallSettings for synchronous and asynchronous calls to
ModelArmorClient.CreateTemplate and ModelArmorClient.CreateTemplateAsync.
| Property Value | |
|---|---|
| Type | Description |
CallSettings |
|
- This call will not be retried.
- Timeout: 60 seconds.
DeleteTemplateSettings
public CallSettings DeleteTemplateSettings { get; set; }CallSettings for synchronous and asynchronous calls to
ModelArmorClient.DeleteTemplate and ModelArmorClient.DeleteTemplateAsync.
| Property Value | |
|---|---|
| Type | Description |
CallSettings |
|
- This call will not be retried.
- Timeout: 60 seconds.
GetFloorSettingSettings
public CallSettings GetFloorSettingSettings { get; set; }CallSettings for synchronous and asynchronous calls to
ModelArmorClient.GetFloorSetting and ModelArmorClient.GetFloorSettingAsync.
| Property Value | |
|---|---|
| Type | Description |
CallSettings |
|
- Initial retry delay: 1000 milliseconds.
- Retry delay multiplier: 1.3
- Retry maximum delay: 10000 milliseconds.
- Maximum attempts: 5
- Retriable status codes: Unavailable.
- Timeout: 60 seconds.
GetTemplateSettings
public CallSettings GetTemplateSettings { get; set; }CallSettings for synchronous and asynchronous calls to
ModelArmorClient.GetTemplate and ModelArmorClient.GetTemplateAsync.
| Property Value | |
|---|---|
| Type | Description |
CallSettings |
|
- Initial retry delay: 1000 milliseconds.
- Retry delay multiplier: 1.3
- Retry maximum delay: 10000 milliseconds.
- Maximum attempts: 5
- Retriable status codes: Unavailable.
- Timeout: 60 seconds.
ListTemplatesSettings
public CallSettings ListTemplatesSettings { get; set; }CallSettings for synchronous and asynchronous calls to
ModelArmorClient.ListTemplates and ModelArmorClient.ListTemplatesAsync.
| Property Value | |
|---|---|
| Type | Description |
CallSettings |
|
- Initial retry delay: 1000 milliseconds.
- Retry delay multiplier: 1.3
- Retry maximum delay: 10000 milliseconds.
- Maximum attempts: 5
- Retriable status codes: Unavailable.
- 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 |
|
SanitizeModelResponseSettings
public CallSettings SanitizeModelResponseSettings { get; set; }CallSettings for synchronous and asynchronous calls to
ModelArmorClient.SanitizeModelResponse and ModelArmorClient.SanitizeModelResponseAsync.
| Property Value | |
|---|---|
| Type | Description |
CallSettings |
|
- Initial retry delay: 1000 milliseconds.
- Retry delay multiplier: 1.3
- Retry maximum delay: 10000 milliseconds.
- Maximum attempts: 5
- Retriable status codes: Unavailable.
- Timeout: 60 seconds.
SanitizeUserPromptSettings
public CallSettings SanitizeUserPromptSettings { get; set; }CallSettings for synchronous and asynchronous calls to
ModelArmorClient.SanitizeUserPrompt and ModelArmorClient.SanitizeUserPromptAsync.
| Property Value | |
|---|---|
| Type | Description |
CallSettings |
|
- Initial retry delay: 1000 milliseconds.
- Retry delay multiplier: 1.3
- Retry maximum delay: 10000 milliseconds.
- Maximum attempts: 5
- Retriable status codes: Unavailable.
- Timeout: 60 seconds.
UpdateFloorSettingSettings
public CallSettings UpdateFloorSettingSettings { get; set; }CallSettings for synchronous and asynchronous calls to
ModelArmorClient.UpdateFloorSetting and ModelArmorClient.UpdateFloorSettingAsync.
| Property Value | |
|---|---|
| Type | Description |
CallSettings |
|
- This call will not be retried.
- Timeout: 60 seconds.
UpdateTemplateSettings
public CallSettings UpdateTemplateSettings { get; set; }CallSettings for synchronous and asynchronous calls to
ModelArmorClient.UpdateTemplate and ModelArmorClient.UpdateTemplateAsync.
| Property Value | |
|---|---|
| Type | Description |
CallSettings |
|
- This call will not be retried.
- Timeout: 60 seconds.
Methods
Clone()
public ModelArmorSettings Clone()Creates a deep clone of this object, with all the same property values.
| Returns | |
|---|---|
| Type | Description |
ModelArmorSettings |
A deep clone of this ModelArmorSettings object. |
GetDefault()
public static ModelArmorSettings GetDefault()Get a new instance of the default ModelArmorSettings.
| Returns | |
|---|---|
| Type | Description |
ModelArmorSettings |
A new instance of the default ModelArmorSettings. |