# Google Cloud Managed Kafka Schema Registry V1 Client - Class SchemaReference (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 SchemaReference.

SchemaReference is a reference to a schema.

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

## Namespace

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

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ name` | `string` Required. The name of the reference. |
| `↳ subject` | `string` Required. The subject of the reference. |
| `↳ version` | `int` Required. The version of the reference. |

### getName

Required. The name of the reference.

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

### setName

Required. The name of the reference.

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

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

### getSubject

Required. The subject of the reference.

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

### setSubject

Required. The subject of the reference.

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

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

### getVersion

Required. The version of the reference.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` |   |

### setVersion

Required. The version of the reference.

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

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