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

Request for listing subjects.

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

## 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 schema resource whose associated subjects are to be listed. Structured like: `projects/{project}/locations/{location}/schemaRegistries/{schema_registry}/schemas/ids/{schema}` or `projects/{project}/locations/{location}/schemaRegistries/{schema_registry}/contexts/{context}/schemas/ids/{schema}` |
| `↳ subject` | `string` Optional. The subject to filter the subjects by. |
| `↳ deleted` | `bool` Optional. If true, the response will include soft-deleted subjects. The default is false. |

### getParent

Required. The schema resource whose associated subjects are to be listed.

Structured like:
`projects/{project}/locations/{location}/schemaRegistries/{schema_registry}/schemas/ids/{schema}`
or
`projects/{project}/locations/{location}/schemaRegistries/{schema_registry}/contexts/{context}/schemas/ids/{schema}`

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

### setParent

Required. The schema resource whose associated subjects are to be listed.

Structured like:
`projects/{project}/locations/{location}/schemaRegistries/{schema_registry}/schemas/ids/{schema}`
or
`projects/{project}/locations/{location}/schemaRegistries/{schema_registry}/contexts/{context}/schemas/ids/{schema}`

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

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

### getSubject

Optional. The subject to filter the subjects by.

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

### hasSubject

### clearSubject

### setSubject

Optional. The subject to filter the subjects by.

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

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

### getDeleted

Optional. If true, the response will include soft-deleted subjects. The
default is false.

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

### hasDeleted

### clearDeleted

### setDeleted

Optional. If true, the response will include soft-deleted subjects. The
default is false.

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

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

### static::build

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `string` Required. The schema resource whose associated subjects are to be listed. Structured like: `projects/{project}/locations/{location}/schemaRegistries/{schema_registry}/schemas/ids/{schema}` or `projects/{project}/locations/{location}/schemaRegistries/{schema_registry}/contexts/{context}/schemas/ids/{schema}` |
| `subject` | `string` Optional. The subject to filter the subjects by. |
| `deleted` | `bool` Optional. If true, the response will include soft-deleted subjects. The default is false. |

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