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

Request for LookupVersion.

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

## 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 subject to lookup the schema in. Structured like: `projects/{project}/locations/{location}/schemaRegistries/{schema_registry}/subjects/{subject}` or `projects/{project}/locations/{location}/schemaRegistries/{schema_registry}/contexts/{context}/subjects/{subject}` |
| `↳ schema_type` | `int` Optional. The schema type of the schema. |
| `↳ schema` | `string` Required. The schema payload |
| `↳ references` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-managedkafka-schemaregistry/latest/V1.Schema.SchemaReference>` Optional. The schema references used by the schema. |
| `↳ normalize` | `bool` Optional. If true, the schema will be normalized before being looked up. The default is false. |
| `↳ deleted` | `bool` Optional. If true, soft-deleted versions will be included in lookup, no matter if the subject is active or soft-deleted. If false, soft-deleted versions will be excluded. The default is false. |

### getParent

Required. The subject to lookup the schema in. Structured like:
`projects/{project}/locations/{location}/schemaRegistries/{schema_registry}/subjects/{subject}`
or
`projects/{project}/locations/{location}/schemaRegistries/{schema_registry}/contexts/{context}/subjects/{subject}`

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

### setParent

Required. The subject to lookup the schema in. Structured like:
`projects/{project}/locations/{location}/schemaRegistries/{schema_registry}/subjects/{subject}`
or
`projects/{project}/locations/{location}/schemaRegistries/{schema_registry}/contexts/{context}/subjects/{subject}`

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

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

### getSchemaType

Optional. The schema type of the schema.

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

### hasSchemaType

### clearSchemaType

### setSchemaType

Optional. The schema type of the schema.

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

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

### getSchema

Required. The schema payload

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

### setSchema

Required. The schema payload

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

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

### getReferences

Optional. The schema references used by the schema.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<https://docs.cloud.google.com/php/docs/reference/cloud-managedkafka-schemaregistry/latest/V1.Schema.SchemaReference>` |   |

### setReferences

Optional. The schema references used by the schema.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-managedkafka-schemaregistry/latest/V1.Schema.SchemaReference>` |

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

### getNormalize

Optional. If true, the schema will be normalized before being looked up.

The default is false.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `bool` |   |

### hasNormalize

### clearNormalize

### setNormalize

Optional. If true, the schema will be normalized before being looked up.

The default is false.

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

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

### getDeleted

Optional. If true, soft-deleted versions will be included in lookup, no
matter if the subject is active or soft-deleted. If false, soft-deleted
versions will be excluded. The default is false.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `bool` |   |

### hasDeleted

### clearDeleted

### setDeleted

Optional. If true, soft-deleted versions will be included in lookup, no
matter if the subject is active or soft-deleted. If false, soft-deleted
versions will be excluded. The default is false.

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

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

### static::build

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `string` Required. The subject to lookup the schema in. Structured like: `projects/{project}/locations/{location}/schemaRegistries/{schema_registry}/subjects/{subject}` or `projects/{project}/locations/{location}/schemaRegistries/{schema_registry}/contexts/{context}/subjects/{subject}` Please see ManagedSchemaRegistryClient::schemaSubjectName() for help formatting this field. |
| `schema` | `string` Required. The schema payload |

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