# Google Cloud Support V2 Client - Class CreateCaseRequest (1.6.0)

1.6.0 (latest) 1.5.0 1.4.2 1.3.0 1.2.1 1.1.0 1.0.3 0.2.5 0.1.2 Reference documentation and code samples for the Google Cloud Support V2 Client class CreateCaseRequest.

The request message for the CreateCase endpoint.

Generated from protobuf message `google.cloud.support.v2.CreateCaseRequest`

## Namespace

Google \\ Cloud \\ Support \\ V2

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ parent` | `string` Required. The name of the parent under which the case should be created. |
| `↳ case` | `https://docs.cloud.google.com/php/docs/reference/cloud-support/latest/V2.PBCase` Required. The case to be created. |

### getParent

Required. The name of the parent under which the case should be created.

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

### setParent

Required. The name of the parent under which the case should be created.

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

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

### getCase

Required. The case to be created.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-support/latest/V2.PBCase|null` |   |

### hasCase

### clearCase

### setCase

Required. The case to be created.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-support/latest/V2.PBCase` |

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

### static::build

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `string` Required. The name of the parent under which the case should be created. Please see CaseServiceClient::projectName() for help formatting this field. |
| `case` | `https://docs.cloud.google.com/php/docs/reference/cloud-support/latest/V2.PBCase` Required. The case to be created. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-support/latest/V2.CreateCaseRequest` |   |