REST Resource: projects.schemas

Resource: Schema

A schema resource.

JSON representation
{
  "name": string,
  "type": enum (Type),
  "definition": 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.

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.