# Cloud Vision V1 Client - Class ImageAnnotationContext (2.2.1)

2.2.1 (latest) 2.2.0 2.1.3 2.0.3 1.10.3 1.9.4 1.8.0 1.7.6 1.6.8 Reference documentation and code samples for the Cloud Vision V1 Client class ImageAnnotationContext.

If an image was produced from a file (e.g. a PDF), this message gives
information about the source of that image.

Generated from protobuf message `google.cloud.vision.v1.ImageAnnotationContext`

## Namespace

Google \\ Cloud \\ Vision \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ uri` | `string` The URI of the file used to produce the image. |
| `↳ page_number` | `int` If the file was a PDF or TIFF, this field gives the page number within the file used to produce the image. |

### getUri

The URI of the file used to produce the image.

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

### setUri

The URI of the file used to produce the image.

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

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

### getPageNumber

If the file was a PDF or TIFF, this field gives the page number within
the file used to produce the image.

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

### setPageNumber

If the file was a PDF or TIFF, this field gives the page number within
the file used to produce the image.

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

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