Google Cloud Managed Kafka Schema Registry V1 Client - Class Schema (0.1.1)

Reference documentation and code samples for the Google Cloud Managed Kafka Schema Registry V1 Client class Schema.

Schema for a Kafka message.

Generated from protobuf message google.cloud.managedkafka.schemaregistry.v1.Schema

Namespace

Google \ Cloud \ ManagedKafka \ SchemaRegistry \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ schema_type int

Optional. The schema type of the schema.

↳ schema_payload string

The schema payload.

↳ references array<Schema\SchemaReference>

Optional. The schema references used by the schema.

getSchemaType

Optional. The schema type of the schema.

Returns
Type Description
int

setSchemaType

Optional. The schema type of the schema.

Parameter
Name Description
var int
Returns
Type Description
$this

getSchemaPayload

The schema payload.

Returns
Type Description
string

setSchemaPayload

The schema payload.

Parameter
Name Description
var string
Returns
Type Description
$this

getReferences

Optional. The schema references used by the schema.

Returns
Type Description
Google\Protobuf\Internal\RepeatedField

setReferences

Optional. The schema references used by the schema.

Parameter
Name Description
var array<Schema\SchemaReference>
Returns
Type Description
$this