REST Resource: projects.schemas

Resource: Schema

A schema resource.

JSON representation
{
  "name": string,
  "type": enum (Type),
  "definition": string,
  "revisionId": string,
  "revisionCreateTime": string
}
Fields
name

string

Required. Name of the schema. Format is projects/{project}/schemas/{schema}.

type

enum (Type)

The type of the schema definition.

definition

string

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 type.

revisionId

string

Output only. Immutable. The revision ID of the schema.

revisionCreateTime

string (Timestamp format)

Output only. The timestamp that the revision was created.

A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".

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

create

Creates a schema.

delete

Deletes a schema.

get

Gets a schema.

list

Lists schemas in a project.

validate

Validates a schema.

validateMessage

Validates a message against a schema.