2.3.1 (latest) 2.1.3 2.0.4 1.3.5 1.2.2 1.1.1 1.0.5 Reference documentation and code samples for the Google Cloud Api Gateway V1 Client class File.

A lightweight description of a file.

Generated from protobuf message `google.cloud.apigateway.v1.ApiConfig.File`

## Namespace

Google \\ Cloud \\ ApiGateway \\ V1 \\ ApiConfig

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ path` | `string` The file path (full or relative path). This is typically the path of the file when it is uploaded. |
| `↳ contents` | `string` The bytes that constitute the file. |

### getPath

The file path (full or relative path). This is typically the path of the
file when it is uploaded.

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

### setPath

The file path (full or relative path). This is typically the path of the
file when it is uploaded.

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

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

### getContents

The bytes that constitute the file.

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

### setContents

The bytes that constitute the file.

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

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