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

Relevant information for the image from the Internet.

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

## Namespace

Google \\ Cloud \\ Vision \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ web_entities` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-vision/latest/V1.WebDetection.WebEntity>` Deduced entities from similar images on the Internet. |
| `↳ full_matching_images` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-vision/latest/V1.WebDetection.WebImage>` Fully matching images from the Internet. 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 from the Internet. Those images are similar enough to share some key-point features. For example an original image will likely have partial matching for its crops. |
| `↳ pages_with_matching_images` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-vision/latest/V1.WebDetection.WebPage>` Web pages containing the matching images from the Internet. |
| `↳ visually_similar_images` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-vision/latest/V1.WebDetection.WebImage>` The visually similar image results. |
| `↳ best_guess_labels` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-vision/latest/V1.WebDetection.WebLabel>` The service's best guess as to the topic of the request image. Inferred from similar images on the open web. |

### getWebEntities

Deduced entities from similar images on the Internet.

| **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.WebEntity>` |   |

### setWebEntities

Deduced entities from similar images on the Internet.

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

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

### getFullMatchingImages

Fully matching images from the Internet.

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 from the Internet.

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 from the Internet.

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 from the Internet.

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` |   |

### getPagesWithMatchingImages

Web pages containing the matching images from the Internet.

| **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.WebPage>` |   |

### setPagesWithMatchingImages

Web pages containing the matching images from the Internet.

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

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

### getVisuallySimilarImages

The visually similar image results.

| **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>` |   |

### setVisuallySimilarImages

The visually similar image results.

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

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

### getBestGuessLabels

The service's best guess as to the topic of the request image.

Inferred from similar images on the open web.

| **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.WebLabel>` |   |

### setBestGuessLabels

The service's best guess as to the topic of the request image.

Inferred from similar images on the open web.

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

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