0.10.0 (latest) 0.9.0 0.8.4 0.7.0 0.6.0 0.5.3 0.4.0 0.3.1 0.2.0 0.1.0 Reference documentation and code samples for the Google Cloud Model Armor V1 Client class SanitizationMetadata.

Message describing Sanitization metadata.

Generated from protobuf message `google.cloud.modelarmor.v1.SanitizationResult.SanitizationMetadata`

## Namespace

Google \\ Cloud \\ ModelArmor \\ V1 \\ SanitizationResult

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ error_code` | `int|string` Error code if any. |
| `↳ error_message` | `string` Error message if any. |
| `↳ ignore_partial_invocation_failures` | `bool` Passthrough field defined in TemplateMetadata to indicate whether to ignore partial invocation failures. |
| `↳ stream_chunk_processed` | `https://docs.cloud.google.com/php/docs/reference/cloud-modelarmor/latest/V1.DataItem` Output only. The stream chunk processed by the Sanitization service. |
| `↳ filter_version_config` | `https://docs.cloud.google.com/php/docs/reference/cloud-modelarmor/latest/V1.FilterVersionConfig` Output only. Provides details about the Filter Version configuration used to sanitize this request. |

### getErrorCode

Error code if any.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int|string` |   |

### setErrorCode

Error code if any.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int|string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getErrorMessage

Error message if any.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setErrorMessage

Error message if any.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getIgnorePartialInvocationFailures

Passthrough field defined in TemplateMetadata to indicate whether to
ignore partial invocation failures.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `bool` |   |

### setIgnorePartialInvocationFailures

Passthrough field defined in TemplateMetadata to indicate whether to
ignore partial invocation failures.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `bool` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getStreamChunkProcessed

Output only. The stream chunk processed by the Sanitization service.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-modelarmor/latest/V1.DataItem|null` |   |

### hasStreamChunkProcessed

### clearStreamChunkProcessed

### setStreamChunkProcessed

Output only. The stream chunk processed by the Sanitization service.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-modelarmor/latest/V1.DataItem` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getFilterVersionConfig

Output only. Provides details about the Filter Version configuration used
to sanitize this request.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-modelarmor/latest/V1.FilterVersionConfig|null` |   |

### hasFilterVersionConfig

### clearFilterVersionConfig

### setFilterVersionConfig

Output only. Provides details about the Filter Version configuration used
to sanitize this request.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-modelarmor/latest/V1.FilterVersionConfig` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |