# Google Cloud Profiler V2 Client - Class CreateOfflineProfileRequest (2.1.2)

2.1.2 (latest) 2.1.1 2.0.4 1.4.3 1.3.0 1.2.4 1.1.1 1.0.3 Reference documentation and code samples for the Google Cloud Profiler V2 Client class CreateOfflineProfileRequest.

CreateOfflineProfileRequest describes a profile resource offline creation
request.

Generated from protobuf message `google.devtools.cloudprofiler.v2.CreateOfflineProfileRequest`

## Namespace

Google \\ Cloud \\ Profiler \\ V2

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ parent` | `string` Parent project to create the profile in. |
| `↳ profile` | `https://docs.cloud.google.com/php/docs/reference/cloud-profiler/latest/V2.Profile` Contents of the profile to create. |

### getParent

Parent project to create the profile in.

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

### setParent

Parent project to create the profile in.

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

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

### getProfile

Contents of the profile to create.

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

### hasProfile

### clearProfile

### setProfile

Contents of the profile to create.

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

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

### static::build

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `string` Parent project to create the profile in. |
| `profile` | `https://docs.cloud.google.com/php/docs/reference/cloud-profiler/latest/V2.Profile` Contents of the profile to create. |

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