[BindServiceMethod(typeof(ModelArmor), "BindService")]
public abstract class ModelArmor.ModelArmorBaseReference documentation and code samples for the Model Armor v1 API class ModelArmor.ModelArmorBase.
Base class for server-side implementations of ModelArmor
Namespace
Google.Cloud.ModelArmor.V1Assembly
Google.Cloud.ModelArmor.V1.dll
Methods
CreateTemplate(CreateTemplateRequest, ServerCallContext)
public virtual Task<Template> CreateTemplate(CreateTemplateRequest request, ServerCallContext context)Creates a new Template in a given project and location.
| Parameters | |
|---|---|
| Name | Description |
request |
CreateTemplateRequestThe request received from the client. |
context |
ServerCallContextThe context of the server-side call handler being invoked. |
| Returns | |
|---|---|
| Type | Description |
TaskTemplate |
The response to send back to the client (wrapped by a task). |
DeleteTemplate(DeleteTemplateRequest, ServerCallContext)
public virtual Task<Empty> DeleteTemplate(DeleteTemplateRequest request, ServerCallContext context)Deletes a single Template.
| Parameters | |
|---|---|
| Name | Description |
request |
DeleteTemplateRequestThe request received from the client. |
context |
ServerCallContextThe context of the server-side call handler being invoked. |
| Returns | |
|---|---|
| Type | Description |
TaskEmpty |
The response to send back to the client (wrapped by a task). |
GetFloorSetting(GetFloorSettingRequest, ServerCallContext)
public virtual Task<FloorSetting> GetFloorSetting(GetFloorSettingRequest request, ServerCallContext context)Gets details of a single floor setting of a project
| Parameters | |
|---|---|
| Name | Description |
request |
GetFloorSettingRequestThe request received from the client. |
context |
ServerCallContextThe context of the server-side call handler being invoked. |
| Returns | |
|---|---|
| Type | Description |
TaskFloorSetting |
The response to send back to the client (wrapped by a task). |
GetTemplate(GetTemplateRequest, ServerCallContext)
public virtual Task<Template> GetTemplate(GetTemplateRequest request, ServerCallContext context)Gets details of a single Template.
| Parameters | |
|---|---|
| Name | Description |
request |
GetTemplateRequestThe request received from the client. |
context |
ServerCallContextThe context of the server-side call handler being invoked. |
| Returns | |
|---|---|
| Type | Description |
TaskTemplate |
The response to send back to the client (wrapped by a task). |
ListTemplates(ListTemplatesRequest, ServerCallContext)
public virtual Task<ListTemplatesResponse> ListTemplates(ListTemplatesRequest request, ServerCallContext context)Lists Templates in a given project and location.
| Parameters | |
|---|---|
| Name | Description |
request |
ListTemplatesRequestThe request received from the client. |
context |
ServerCallContextThe context of the server-side call handler being invoked. |
| Returns | |
|---|---|
| Type | Description |
TaskListTemplatesResponse |
The response to send back to the client (wrapped by a task). |
SanitizeModelResponse(SanitizeModelResponseRequest, ServerCallContext)
public virtual Task<SanitizeModelResponseResponse> SanitizeModelResponse(SanitizeModelResponseRequest request, ServerCallContext context)Sanitizes Model Response.
| Parameters | |
|---|---|
| Name | Description |
request |
SanitizeModelResponseRequestThe request received from the client. |
context |
ServerCallContextThe context of the server-side call handler being invoked. |
| Returns | |
|---|---|
| Type | Description |
TaskSanitizeModelResponseResponse |
The response to send back to the client (wrapped by a task). |
SanitizeUserPrompt(SanitizeUserPromptRequest, ServerCallContext)
public virtual Task<SanitizeUserPromptResponse> SanitizeUserPrompt(SanitizeUserPromptRequest request, ServerCallContext context)Sanitizes User Prompt.
| Parameters | |
|---|---|
| Name | Description |
request |
SanitizeUserPromptRequestThe request received from the client. |
context |
ServerCallContextThe context of the server-side call handler being invoked. |
| Returns | |
|---|---|
| Type | Description |
TaskSanitizeUserPromptResponse |
The response to send back to the client (wrapped by a task). |
UpdateFloorSetting(UpdateFloorSettingRequest, ServerCallContext)
public virtual Task<FloorSetting> UpdateFloorSetting(UpdateFloorSettingRequest request, ServerCallContext context)Updates the parameters of a single floor setting of a project
| Parameters | |
|---|---|
| Name | Description |
request |
UpdateFloorSettingRequestThe request received from the client. |
context |
ServerCallContextThe context of the server-side call handler being invoked. |
| Returns | |
|---|---|
| Type | Description |
TaskFloorSetting |
The response to send back to the client (wrapped by a task). |
UpdateTemplate(UpdateTemplateRequest, ServerCallContext)
public virtual Task<Template> UpdateTemplate(UpdateTemplateRequest request, ServerCallContext context)Updates the parameters of a single Template.
| Parameters | |
|---|---|
| Name | Description |
request |
UpdateTemplateRequestThe request received from the client. |
context |
ServerCallContextThe context of the server-side call handler being invoked. |
| Returns | |
|---|---|
| Type | Description |
TaskTemplate |
The response to send back to the client (wrapped by a task). |