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

Request for GetSchema.

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

## Namespace

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

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ name` | `string` Required. The name of the schema to return. Structured like: `projects/{project}/locations/{location}/schemaRegistries/{schema_registry}/schemas/ids/{schema}` |
| `↳ subject` | `string` Optional. Used to limit the search for the schema ID to a specific subject, otherwise the schema ID will be searched for in all subjects in the given specified context. |

### getName

Required. The name of the schema to return. Structured like:
`projects/{project}/locations/{location}/schemaRegistries/{schema_registry}/schemas/ids/{schema}`

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

### setName

Required. The name of the schema to return. Structured like:
`projects/{project}/locations/{location}/schemaRegistries/{schema_registry}/schemas/ids/{schema}`

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

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

### getSubject

Optional. Used to limit the search for the schema ID to a specific subject,
otherwise the schema ID will be searched for in all subjects in the given
specified context.

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

### hasSubject

### clearSubject

### setSubject

Optional. Used to limit the search for the schema ID to a specific subject,
otherwise the schema ID will be searched for in all subjects in the given
specified context.

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

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

### static::build

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `name` | `string` Required. The name of the schema to return. Structured like: `projects/{project}/locations/{location}/schemaRegistries/{schema_registry}/schemas/ids/{schema}` Please see ManagedSchemaRegistryClient::schemaName() for help formatting this field. |

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