REST Resource: projects.schemas Stay organized with collections Save and categorize content based on your preferences.
Resource: Schema
A schema resource.
| JSON representation |
|---|
{"name":string,"type":enum ( |
| Fields | |
|---|---|
name |
Required. Name of the schema. Format is |
type |
The type of the schema definition. |
definition |
The definition of the schema. This should contain a string representing the full definition of the schema that is a valid schema definition of the type specified in |
revisionId |
Output only. Immutable. The revision ID of the schema. |
revisionCreateTime |
Output only. The timestamp that the revision was created. Uses RFC 3339, where generated output will always be Z-normalized and uses 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: |
Type
Possible schema definition types.
| Enums | |
|---|---|
TYPE_UNSPECIFIED | Default value. This value is unused. |
PROTOCOL_BUFFER | A Protocol Buffer schema definition. |
AVRO | An Avro schema definition. |
Methods | |
|---|---|
| Commits a new schema revision to an existing schema. |
| Creates a schema. |
| Deletes a schema. |
| Deletes a specific schema revision. |
| Gets a schema. |
| Lists schemas in a project. |
| Lists all schema revisions for the named schema. |
| Creates a new schema revision that is a copy of the provided revision_id. |
| Validates a schema. |
| Validates a message against a schema. |
Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-08-22 UTC.