# Interface SanitizationResult.SanitizationMetadataOrBuilder (0.34.0)

0.34.0 (latest) 0.32.0 0.29.0 0.28.0 0.26.0 0.24.0 0.23.0 0.21.0 0.19.0 0.17.0 0.16.0 0.15.0 0.14.0 0.13.0 0.11.0 0.9.0 0.8.0 0.5.0 0.4.0 0.3.0 0.1.0

    public static interface SanitizationResult.SanitizationMetadataOrBuilder extends MessageOrBuilder

## Implements

[MessageOrBuilder](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.MessageOrBuilder.html)

## Methods

### getErrorCode()

    public abstract long getErrorCode()

Error code if any.

`int64 error_code = 1;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | The errorCode. |

### getErrorMessage()

    public abstract String getErrorMessage()

Error message if any.

`string error_message = 2;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The errorMessage. |

### getErrorMessageBytes()

    public abstract ByteString getErrorMessageBytes()

Error message if any.

`string error_message = 2;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for errorMessage. |

### getIgnorePartialInvocationFailures()

    public abstract boolean getIgnorePartialInvocationFailures()

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

`bool ignore_partial_invocation_failures = 3;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | The ignorePartialInvocationFailures. |

### getStreamChunkProcessed()

    public abstract DataItem getStreamChunkProcessed()

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

`
.google.cloud.modelarmor.v1.DataItem stream_chunk_processed = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-modelarmor/latest/com.google.cloud.modelarmor.v1.DataItem` | The streamChunkProcessed. |

### getStreamChunkProcessedOrBuilder()

    public abstract DataItemOrBuilder getStreamChunkProcessedOrBuilder()

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

`
.google.cloud.modelarmor.v1.DataItem stream_chunk_processed = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-modelarmor/latest/com.google.cloud.modelarmor.v1.DataItemOrBuilder` |   |

### hasStreamChunkProcessed()

    public abstract boolean hasStreamChunkProcessed()

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

`
.google.cloud.modelarmor.v1.DataItem stream_chunk_processed = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the streamChunkProcessed field is set. |