> [!WARNING]
>
> **Preview**
>
>
> This product or feature is
>
> subject to the "Pre-GA Offerings Terms" in the General Service Terms section
> of the [Service Specific
> Terms](https://docs.cloud.google.com/terms/service-terms#1).
>
> Pre-GA products and features are available "as is" and might have limited support.
>
> For more information, see the
> [launch stage descriptions](https://cloud.google.com/products/#product-launch-stages).

- [Resource: Schema](https://docs.cloud.google.com/managed-service-for-apache-kafka/docs/reference/rest/v1/projects.locations.schemaRegistries.contexts.schemas.md.txt#Schema)
  - [JSON representation](https://docs.cloud.google.com/managed-service-for-apache-kafka/docs/reference/rest/v1/projects.locations.schemaRegistries.contexts.schemas.md.txt#Schema.SCHEMA_REPRESENTATION)
- [Methods](https://docs.cloud.google.com/managed-service-for-apache-kafka/docs/reference/rest/v1/projects.locations.schemaRegistries.contexts.schemas.md.txt#METHODS_SUMMARY)

## Resource: Schema

Schema for a Kafka message.

| JSON representation |
|---|
| ``` { "schemaType": enum (`SchemaType`), "schema": string, "references": [ { object (`SchemaReference`) } ] } ``` |

| Fields ||
|---|---|
| `schemaType` | ``enum (`SchemaType`)`` Optional. The schema type of the schema. |
| `schema` | `string` The schema payload. |
| `references[]` | ``object (`SchemaReference`)`` Optional. The schema references used by the schema. |

| ## Methods ||
|---|---|
| ### `get` | Get the schema for the given schema id. |
| ### `getSchema` | Get the schema string for the given schema id. |