Reference documentation and code samples for the Google Cloud Model Armor V1beta Client class SanitizeModelResponseRequest.
Sanitize Model Response request.
Generated from protobuf message google.cloud.modelarmor.v1beta.SanitizeModelResponseRequest
Namespace
Google \ Cloud \ ModelArmor \ V1betaMethods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ name |
string
Required. Represents resource name of template e.g. name=projects/sample-project/locations/us-central1/templates/templ01 |
↳ model_response_data |
DataItem
Required. Model response data to sanitize. |
↳ user_prompt |
string
Optional. User Prompt associated with Model response. |
↳ multi_language_detection_metadata |
MultiLanguageDetectionMetadata
Optional. Metadata related for multi language detection. |
getName
Required. Represents resource name of template e.g. name=projects/sample-project/locations/us-central1/templates/templ01
| Returns | |
|---|---|
| Type | Description |
string |
|
setName
Required. Represents resource name of template e.g. name=projects/sample-project/locations/us-central1/templates/templ01
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getModelResponseData
Required. Model response data to sanitize.
| Returns | |
|---|---|
| Type | Description |
DataItem|null |
|
hasModelResponseData
clearModelResponseData
setModelResponseData
Required. Model response data to sanitize.
| Parameter | |
|---|---|
| Name | Description |
var |
DataItem
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getUserPrompt
Optional. User Prompt associated with Model response.
| Returns | |
|---|---|
| Type | Description |
string |
|
setUserPrompt
Optional. User Prompt associated with Model response.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getMultiLanguageDetectionMetadata
Optional. Metadata related for multi language detection.
| Returns | |
|---|---|
| Type | Description |
MultiLanguageDetectionMetadata|null |
|
hasMultiLanguageDetectionMetadata
clearMultiLanguageDetectionMetadata
setMultiLanguageDetectionMetadata
Optional. Metadata related for multi language detection.
| Parameter | |
|---|---|
| Name | Description |
var |
MultiLanguageDetectionMetadata
|
| Returns | |
|---|---|
| Type | Description |
$this |
|