# Google Cloud Managed Kafka Schema Registry V1 Client - Class SchemaRegistry (0.3.0)

0.3.0 (latest) 0.2.2 0.1.1 Reference documentation and code samples for the Google Cloud Managed Kafka Schema Registry V1 Client class SchemaRegistry.

SchemaRegistry is a schema registry instance.

Generated from protobuf message `google.cloud.managedkafka.schemaregistry.v1.SchemaRegistry`

## Namespace

Google \\ Cloud \\ ManagedKafka \\ SchemaRegistry \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ name` | `string` Identifier. The name of the schema registry instance. Structured like: `projects/{project}/locations/{location}/schemaRegistries/{schema_registry}` The instance name {schema_registry} can contain the following: \* \* Up to 255 characters. \* \* Letters (uppercase or lowercase), numbers, and underscores. |
| `↳ contexts` | `string[]` Output only. The contexts of the schema registry instance. |

### getName

Identifier. The name of the schema registry instance. Structured like:
`projects/{project}/locations/{location}/schemaRegistries/{schema_registry}`
The instance name {schema_registry} can contain the following:

- Up to 255 characters.

- Letters (uppercase or lowercase), numbers, and underscores.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setName

Identifier. The name of the schema registry instance. Structured like:
`projects/{project}/locations/{location}/schemaRegistries/{schema_registry}`
The instance name {schema_registry} can contain the following:

- Up to 255 characters.

- Letters (uppercase or lowercase), numbers, and underscores.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getContexts

Output only. The contexts of the schema registry instance.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<string>` |   |

### setContexts

Output only. The contexts of the schema registry instance.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string[]` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |