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

Request for ListContexts.

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

## 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 of the contexts. Structured like: `projects/{project}/locations/{location}/schemaRegistries/{schema_registry}` |

### getParent

Required. The parent of the contexts. Structured like:
`projects/{project}/locations/{location}/schemaRegistries/{schema_registry}`

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

### setParent

Required. The parent of the contexts. Structured like:
`projects/{project}/locations/{location}/schemaRegistries/{schema_registry}`

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

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

### static::build

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `parent` | `string` Required. The parent of the contexts. Structured like: `projects/{project}/locations/{location}/schemaRegistries/{schema_registry}` Please see ManagedSchemaRegistryClient::schemaRegistryName() for help formatting this field. |

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