0.6.0 (latest) 0.5.0 0.4.4 0.3.0 0.2.0 0.1.1 Reference documentation and code samples for the Google Cloud Ces V1 Client class CreateExampleRequest.

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

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

## 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 app to create an example in. |
| `↳ example_id` | `string` Optional. The ID to use for the example, which will become the final component of the example's resource name. If not provided, a unique ID will be automatically assigned for the example. |
| `↳ example` | `Example` Required. The example to create. |

### getParent

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

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

### setParent

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

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

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

### getExampleId

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

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

### setExampleId

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

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

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

### getExample

Required. The example to create.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Example|null` |   |

### hasExample

### clearExample

### setExample

Required. The example to create.

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

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

### static::build

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `string` Required. The resource name of the app to create an example in. Please see AgentServiceClient::appName() for help formatting this field. |
| `example` | `Example` Required. The example to create. |
| `exampleId` | `string` Optional. The ID to use for the example, which will become the final component of the example's resource name. If not provided, a unique ID will be automatically assigned for the example. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `CreateExampleRequest` |   |

### static::buildFromParentExample

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `string` Required. The resource name of the app to create an example in. Please see AgentServiceClient::appName() for help formatting this field. |
| `example` | `Example` Required. The example to create. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `CreateExampleRequest` |   |