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

Request for DeleteSubject.

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

## 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 subject to delete. Structured like: `projects/{project}/locations/{location}/schemaRegistries/{schema_registry}/subjects/{subject}` or `projects/{project}/locations/{location}/schemaRegistries/{schema_registry}/contexts/{context}/subjects/{subject}` |
| `↳ permanent` | `bool` Optional. If true, the subject and all associated metadata including the schema ID will be deleted permanently. Otherwise, only the subject is soft-deleted. The default is false. Soft-deleted subjects can still be searched in ListSubjects API call with deleted=true query parameter. A soft-delete of a subject must be performed before a hard-delete. |

### getName

Required. The name of the subject to delete. 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` |   |

### setName

Required. The name of the subject to delete. 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` |   |

### getPermanent

Optional. If true, the subject and all associated metadata including the
schema ID will be deleted permanently. Otherwise, only the subject is
soft-deleted. The default is false. Soft-deleted subjects can still be
searched in ListSubjects API call with deleted=true query parameter. A
soft-delete of a subject must be performed before a hard-delete.

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

### hasPermanent

### clearPermanent

### setPermanent

Optional. If true, the subject and all associated metadata including the
schema ID will be deleted permanently. Otherwise, only the subject is
soft-deleted. The default is false. Soft-deleted subjects can still be
searched in ListSubjects API call with deleted=true query parameter. A
soft-delete of a subject must be performed before a hard-delete.

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

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

### static::build

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `name` | `string` Required. The name of the subject to delete. 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. |

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