# Interface FileContext.FileBytesOrBuilder (0.9.0)

0.9.0 (latest) 0.7.0 0.4.0 0.3.0 0.1.0

    public static interface FileContext.FileBytesOrBuilder 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 file.

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

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

### getFileName()

    public abstract String getFileName()

Required. The name of the file provided as raw bytes.

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

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

### getFileNameBytes()

    public abstract ByteString getFileNameBytes()

Required. The name of the file provided as raw bytes.

`string file_name = 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 fileName. |

### getMimeType()

    public abstract String getMimeType()

Required. The IANA standard MIME type of the source data.

`string mime_type = 2 [(.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.

`string mime_type = 2 [(.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. |