# Cloud Vision V1 Client - Class WebPage (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 WebPage.

Metadata for web pages.

Generated from protobuf message `google.cloud.vision.v1.WebDetection.WebPage`

## Namespace

Google \\ Cloud \\ Vision \\ V1 \\ WebDetection

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ url` | `string` The result web page URL. |
| `↳ score` | `float` (Deprecated) Overall relevancy score for the web page. |
| `↳ page_title` | `string` Title for the web page, may contain HTML markups. |
| `↳ full_matching_images` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-vision/latest/V1.WebDetection.WebImage>` Fully matching images on the page. Can include resized copies of the query image. |
| `↳ partial_matching_images` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-vision/latest/V1.WebDetection.WebImage>` Partial matching images on the page. Those images are similar enough to share some key-point features. For example an original image will likely have partial matching for its crops. |

### getUrl

The result web page URL.

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

### setUrl

The result web page URL.

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

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

### getScore

(Deprecated) Overall relevancy score for the web page.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `float` |   |

### setScore

(Deprecated) Overall relevancy score for the web page.

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

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

### getPageTitle

Title for the web page, may contain HTML markups.

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

### setPageTitle

Title for the web page, may contain HTML markups.

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

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

### getFullMatchingImages

Fully matching images on the page.

Can include resized copies of the query image.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<https://docs.cloud.google.com/php/docs/reference/cloud-vision/latest/V1.WebDetection.WebImage>` |   |

### setFullMatchingImages

Fully matching images on the page.

Can include resized copies of the query image.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-vision/latest/V1.WebDetection.WebImage>` |

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

### getPartialMatchingImages

Partial matching images on the page.

Those images are similar enough to share some key-point features. For
example an original image will likely have partial matching for its
crops.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<https://docs.cloud.google.com/php/docs/reference/cloud-vision/latest/V1.WebDetection.WebImage>` |   |

### setPartialMatchingImages

Partial matching images on the page.

Those images are similar enough to share some key-point features. For
example an original image will likely have partial matching for its
crops.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-vision/latest/V1.WebDetection.WebImage>` |

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