# Interface JsonFileFormatOrBuilder (0.16.0)

<button class="button button-with-icon cloud-select-dropdown__button " aria-haspopup="true">Version latest</button>

- [0.16.0 (latest)](https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/latest/com.google.events.cloud.datastream.v1.JsonFileFormatOrBuilder)
- [0.15.0](https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/0.15.0/com.google.events.cloud.datastream.v1.JsonFileFormatOrBuilder)
- [0.14.1](https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/0.14.1/com.google.events.cloud.datastream.v1.JsonFileFormatOrBuilder)

    public interface JsonFileFormatOrBuilder extends MessageOrBuilder

## Implements

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

## Methods

### getCompression()

    public abstract JsonFileFormat.JsonCompression getCompression()

Compression of the loaded JSON file.

`.google.events.cloud.datastream.v1.JsonFileFormat.JsonCompression compression = 2;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/latest/com.google.events.cloud.datastream.v1.JsonFileFormat.JsonCompression` | The compression. |

### getCompressionValue()

    public abstract int getCompressionValue()

Compression of the loaded JSON file.

`.google.events.cloud.datastream.v1.JsonFileFormat.JsonCompression compression = 2;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | The enum numeric value on the wire for compression. |

### getSchemaFileFormat()

    public abstract JsonFileFormat.SchemaFileFormat getSchemaFileFormat()

The schema file format along JSON data files.

`
.google.events.cloud.datastream.v1.JsonFileFormat.SchemaFileFormat schema_file_format = 1;
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/latest/com.google.events.cloud.datastream.v1.JsonFileFormat.SchemaFileFormat` | The schemaFileFormat. |

### getSchemaFileFormatValue()

    public abstract int getSchemaFileFormatValue()

The schema file format along JSON data files.

`
.google.events.cloud.datastream.v1.JsonFileFormat.SchemaFileFormat schema_file_format = 1;
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | The enum numeric value on the wire for schemaFileFormat. |