Cloud Vision V1 Client - Class WebPage (1.10.0)

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<Google\Cloud\Vision\V1\WebDetection\WebImage>

Fully matching images on the page. Can include resized copies of the query image.

↳ partial_matching_images array<Google\Cloud\Vision\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
Google\Protobuf\Internal\RepeatedField

setFullMatchingImages

Fully matching images on the page.

Can include resized copies of the query image.

Parameter
Name Description
var array<Google\Cloud\Vision\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
Google\Protobuf\Internal\RepeatedField

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<Google\Cloud\Vision\V1\WebDetection\WebImage>
Returns
Type Description
$this