0.4.4 (latest) 0.4.3 0.3.0 0.2.1 0.1.4 Reference documentation and code samples for the Google Cloud Api Hub V1 Client class PathParam.

HTTP Path parameter.

Generated from protobuf message `google.cloud.apihub.v1.HttpOperationDetails.PathParam`

## Namespace

Google \\ Cloud \\ ApiHub \\ V1 \\ HttpOperationDetails

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ position` | `int` Optional. Segment location in the path, 1-indexed |
| `↳ data_type` | `int` Optional. Data type of path param |

### getPosition

Optional. Segment location in the path, 1-indexed

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` |   |

### setPosition

Optional. Segment location in the path, 1-indexed

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

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

### getDataType

Optional. Data type of path param

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [DataType](https://docs.cloud.google.com/php/docs/reference/cloud-apihub/latest/V1.HttpOperationDetails.DataType). |

### setDataType

Optional. Data type of path param

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [DataType](https://docs.cloud.google.com/php/docs/reference/cloud-apihub/latest/V1.HttpOperationDetails.DataType). |

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