# Google Cloud Ces V1 Client - Class CreateAppRequest (0.2.0)

0.2.0 (latest) 0.1.1 Reference documentation and code samples for the Google Cloud Ces V1 Client class CreateAppRequest.

Request message for
[AgentService.CreateApp](https://docs.cloud.google.com/php/docs/reference/cloud-ces/latest/V1.Client.AgentServiceClient#_Google_Cloud_Ces_V1_Client_AgentServiceClient__createApp__).

Generated from protobuf message `google.cloud.ces.v1.CreateAppRequest`

## Namespace

Google \\ Cloud \\ Ces \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ parent` | `string` Required. The resource name of the location to create an app in. |
| `↳ app_id` | `string` Optional. The ID to use for the app, which will become the final component of the app's resource name. If not provided, a unique ID will be automatically assigned for the app. |
| `↳ app` | `https://docs.cloud.google.com/php/docs/reference/cloud-ces/latest/V1.App` Required. The app to create. |

### getParent

Required. The resource name of the location to create an app in.

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

### setParent

Required. The resource name of the location to create an app in.

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

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

### getAppId

Optional. The ID to use for the app, which will become the final component
of the app's resource name. If not provided, a unique ID will be
automatically assigned for the app.

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

### setAppId

Optional. The ID to use for the app, which will become the final component
of the app's resource name. If not provided, a unique ID will be
automatically assigned for the app.

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

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

### getApp

Required. The app to create.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-ces/latest/V1.App|null` |   |

### hasApp

### clearApp

### setApp

Required. The app to create.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-ces/latest/V1.App` |

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

### static::build

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `string` Required. The resource name of the location to create an app in. Please see AgentServiceClient::locationName() for help formatting this field. |
| `app` | `https://docs.cloud.google.com/php/docs/reference/cloud-ces/latest/V1.App` Required. The app to create. |
| `appId` | `string` Optional. The ID to use for the app, which will become the final component of the app's resource name. If not provided, a unique ID will be automatically assigned for the app. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-ces/latest/V1.CreateAppRequest` |   |

### static::buildFromParentApp

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `string` Required. The resource name of the location to create an app in. Please see AgentServiceClient::locationName() for help formatting this field. |
| `app` | `https://docs.cloud.google.com/php/docs/reference/cloud-ces/latest/V1.App` Required. The app to create. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-ces/latest/V1.CreateAppRequest` |   |