public interface ImageOrBuilder extends MessageOrBuilderImplements
MessageOrBuilderMethods
getData()
public abstract ByteString getData()Required. Raw bytes of the image.
bytes data = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
ByteString |
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 |
String |
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 |
ByteString |
The bytes for mimeType. |