# Interface ImageOrBuilder (0.9.0)

0.9.0 (latest) 0.7.0 0.4.0 0.3.0 0.1.0

    public interface ImageOrBuilder extends MessageOrBuilder

## Implements

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

## Methods

### getData()

    public abstract ByteString getData()

Required. Raw bytes of the image.

`bytes data = 2 [(.google.api.field_behavior) = REQUIRED];`

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

### getMimeType()

    public abstract String getMimeType()

Required. The IANA standard MIME type of the source data.
Supported image types includes:

- image/png
- image/jpeg
- image/webp

`string mime_type = 1 [(.google.api.field_behavior) = REQUIRED];`

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

### getMimeTypeBytes()

    public abstract ByteString getMimeTypeBytes()

Required. The IANA standard MIME type of the source data.
Supported image types includes:

- image/png
- image/jpeg
- image/webp

`string mime_type = 1 [(.google.api.field_behavior) = REQUIRED];`

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