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

Request to create a schema registry instance.

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

## Namespace

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

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ parent` | `string` Required. The parent whose schema registry instance is to be created. Structured like: `projects/{project}/locations/{location}` |
| `↳ schema_registry_id` | `string` Required. The schema registry instance ID to use for this schema registry. The ID must contain only letters (a-z, A-Z), numbers (0-9), and underscores (-). The maximum length is 63 characters. The ID must not start with a number. |
| `↳ schema_registry` | `https://docs.cloud.google.com/php/docs/reference/cloud-managedkafka-schemaregistry/latest/V1.SchemaRegistry` Required. The schema registry instance to create. The name field is ignored. |

### getParent

Required. The parent whose schema registry instance is to be created.

Structured like: `projects/{project}/locations/{location}`

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

### setParent

Required. The parent whose schema registry instance is to be created.

Structured like: `projects/{project}/locations/{location}`

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

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

### getSchemaRegistryId

Required. The schema registry instance ID to use for this schema registry.

The ID must contain only letters (a-z, A-Z), numbers (0-9), and underscores
(-). The maximum length is 63 characters.
The ID must not start with a number.

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

### setSchemaRegistryId

Required. The schema registry instance ID to use for this schema registry.

The ID must contain only letters (a-z, A-Z), numbers (0-9), and underscores
(-). The maximum length is 63 characters.
The ID must not start with a number.

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

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

### getSchemaRegistry

Required. The schema registry instance to create.

The name field is ignored.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-managedkafka-schemaregistry/latest/V1.SchemaRegistry|null` |   |

### hasSchemaRegistry

### clearSchemaRegistry

### setSchemaRegistry

Required. The schema registry instance to create.

The name field is ignored.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-managedkafka-schemaregistry/latest/V1.SchemaRegistry` |

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

### static::build

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `string` Required. The parent whose schema registry instance is to be created. Structured like: `projects/{project}/locations/{location}` |
| `schemaRegistry` | `https://docs.cloud.google.com/php/docs/reference/cloud-managedkafka-schemaregistry/latest/V1.SchemaRegistry` Required. The schema registry instance to create. The name field is ignored. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-managedkafka-schemaregistry/latest/V1.CreateSchemaRegistryRequest` |   |