public sealed class ModelArmorClientImpl : ModelArmorClient
Reference documentation and code samples for the Model Armor v1beta API class ModelArmorClientImpl.
ModelArmor client wrapper implementation, for convenient use.
Namespace
Google.Cloud.ModelArmor.V1BetaAssembly
Google.Cloud.ModelArmor.V1Beta.dll
Remarks
Service describing handlers for resources
Constructors
ModelArmorClientImpl(ModelArmorClient, ModelArmorSettings, ILogger)
public ModelArmorClientImpl(ModelArmor.ModelArmorClient grpcClient, ModelArmorSettings settings, ILogger logger)
Constructs a client wrapper for the ModelArmor service, with the specified gRPC client and settings.
Parameters | |
---|---|
Name | Description |
grpcClient |
ModelArmorModelArmorClient The underlying gRPC client. |
settings |
ModelArmorSettings The base ModelArmorSettings used within this client. |
logger |
ILogger Optional ILogger to use within this client. |
Properties
GrpcClient
public override ModelArmor.ModelArmorClient GrpcClient { get; }
The underlying gRPC ModelArmor client
Property Value | |
---|---|
Type | Description |
ModelArmorModelArmorClient |
LocationsClient
public override LocationsClient LocationsClient { get; }
The LocationsClient associated with this client.
Property Value | |
---|---|
Type | Description |
LocationsClient |
Methods
CreateTemplate(CreateTemplateRequest, CallSettings)
public override Template CreateTemplate(CreateTemplateRequest request, CallSettings callSettings = null)
Creates a new Template in a given project and location.
Parameters | |
---|---|
Name | Description |
request |
CreateTemplateRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Template |
The RPC response. |
CreateTemplateAsync(CreateTemplateRequest, CallSettings)
public override Task<Template> CreateTemplateAsync(CreateTemplateRequest request, CallSettings callSettings = null)
Creates a new Template in a given project and location.
Parameters | |
---|---|
Name | Description |
request |
CreateTemplateRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskTemplate |
A Task containing the RPC response. |
DeleteTemplate(DeleteTemplateRequest, CallSettings)
public override void DeleteTemplate(DeleteTemplateRequest request, CallSettings callSettings = null)
Deletes a single Template.
Parameters | |
---|---|
Name | Description |
request |
DeleteTemplateRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
DeleteTemplateAsync(DeleteTemplateRequest, CallSettings)
public override Task DeleteTemplateAsync(DeleteTemplateRequest request, CallSettings callSettings = null)
Deletes a single Template.
Parameters | |
---|---|
Name | Description |
request |
DeleteTemplateRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task |
A Task containing the RPC response. |
GetFloorSetting(GetFloorSettingRequest, CallSettings)
public override FloorSetting GetFloorSetting(GetFloorSettingRequest request, CallSettings callSettings = null)
Gets details of a single floor setting of a project
Parameters | |
---|---|
Name | Description |
request |
GetFloorSettingRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
FloorSetting |
The RPC response. |
GetFloorSettingAsync(GetFloorSettingRequest, CallSettings)
public override Task<FloorSetting> GetFloorSettingAsync(GetFloorSettingRequest request, CallSettings callSettings = null)
Gets details of a single floor setting of a project
Parameters | |
---|---|
Name | Description |
request |
GetFloorSettingRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskFloorSetting |
A Task containing the RPC response. |
GetTemplate(GetTemplateRequest, CallSettings)
public override Template GetTemplate(GetTemplateRequest request, CallSettings callSettings = null)
Gets details of a single Template.
Parameters | |
---|---|
Name | Description |
request |
GetTemplateRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Template |
The RPC response. |
GetTemplateAsync(GetTemplateRequest, CallSettings)
public override Task<Template> GetTemplateAsync(GetTemplateRequest request, CallSettings callSettings = null)
Gets details of a single Template.
Parameters | |
---|---|
Name | Description |
request |
GetTemplateRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskTemplate |
A Task containing the RPC response. |
ListTemplates(ListTemplatesRequest, CallSettings)
public override PagedEnumerable<ListTemplatesResponse, Template> ListTemplates(ListTemplatesRequest request, CallSettings callSettings = null)
Lists Templates in a given project and location.
Parameters | |
---|---|
Name | Description |
request |
ListTemplatesRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedEnumerableListTemplatesResponseTemplate |
A pageable sequence of Template resources. |
ListTemplatesAsync(ListTemplatesRequest, CallSettings)
public override PagedAsyncEnumerable<ListTemplatesResponse, Template> ListTemplatesAsync(ListTemplatesRequest request, CallSettings callSettings = null)
Lists Templates in a given project and location.
Parameters | |
---|---|
Name | Description |
request |
ListTemplatesRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedAsyncEnumerableListTemplatesResponseTemplate |
A pageable asynchronous sequence of Template resources. |
SanitizeModelResponse(SanitizeModelResponseRequest, CallSettings)
public override SanitizeModelResponseResponse SanitizeModelResponse(SanitizeModelResponseRequest request, CallSettings callSettings = null)
Sanitizes Model Response.
Parameters | |
---|---|
Name | Description |
request |
SanitizeModelResponseRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
SanitizeModelResponseResponse |
The RPC response. |
SanitizeModelResponseAsync(SanitizeModelResponseRequest, CallSettings)
public override Task<SanitizeModelResponseResponse> SanitizeModelResponseAsync(SanitizeModelResponseRequest request, CallSettings callSettings = null)
Sanitizes Model Response.
Parameters | |
---|---|
Name | Description |
request |
SanitizeModelResponseRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskSanitizeModelResponseResponse |
A Task containing the RPC response. |
SanitizeUserPrompt(SanitizeUserPromptRequest, CallSettings)
public override SanitizeUserPromptResponse SanitizeUserPrompt(SanitizeUserPromptRequest request, CallSettings callSettings = null)
Sanitizes User Prompt.
Parameters | |
---|---|
Name | Description |
request |
SanitizeUserPromptRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
SanitizeUserPromptResponse |
The RPC response. |
SanitizeUserPromptAsync(SanitizeUserPromptRequest, CallSettings)
public override Task<SanitizeUserPromptResponse> SanitizeUserPromptAsync(SanitizeUserPromptRequest request, CallSettings callSettings = null)
Sanitizes User Prompt.
Parameters | |
---|---|
Name | Description |
request |
SanitizeUserPromptRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskSanitizeUserPromptResponse |
A Task containing the RPC response. |
UpdateFloorSetting(UpdateFloorSettingRequest, CallSettings)
public override FloorSetting UpdateFloorSetting(UpdateFloorSettingRequest request, CallSettings callSettings = null)
Updates the parameters of a single floor setting of a project
Parameters | |
---|---|
Name | Description |
request |
UpdateFloorSettingRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
FloorSetting |
The RPC response. |
UpdateFloorSettingAsync(UpdateFloorSettingRequest, CallSettings)
public override Task<FloorSetting> UpdateFloorSettingAsync(UpdateFloorSettingRequest request, CallSettings callSettings = null)
Updates the parameters of a single floor setting of a project
Parameters | |
---|---|
Name | Description |
request |
UpdateFloorSettingRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskFloorSetting |
A Task containing the RPC response. |
UpdateTemplate(UpdateTemplateRequest, CallSettings)
public override Template UpdateTemplate(UpdateTemplateRequest request, CallSettings callSettings = null)
Updates the parameters of a single Template.
Parameters | |
---|---|
Name | Description |
request |
UpdateTemplateRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Template |
The RPC response. |
UpdateTemplateAsync(UpdateTemplateRequest, CallSettings)
public override Task<Template> UpdateTemplateAsync(UpdateTemplateRequest request, CallSettings callSettings = null)
Updates the parameters of a single Template.
Parameters | |
---|---|
Name | Description |
request |
UpdateTemplateRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskTemplate |
A Task containing the RPC response. |