Model Armor v1beta API - Class ModelArmorClientImpl (1.0.0-beta01)

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.

Inheritance

object > ModelArmorClient > ModelArmorClientImpl

Namespace

Google.Cloud.ModelArmor.V1Beta

Assembly

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
Overrides

LocationsClient

public override LocationsClient LocationsClient { get; }

The LocationsClient associated with this client.

Property Value
Type Description
LocationsClient
Overrides

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.

Overrides

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.

Overrides

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.

Overrides

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.

Overrides

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.

Overrides

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.

Overrides

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.

Overrides

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.

Overrides

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.

Overrides

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.

Overrides

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.

Overrides

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.

Overrides

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.

Overrides

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.

Overrides

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.

Overrides

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.

Overrides

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.

Overrides

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.

Overrides