Cloud Vision V1 Client - Class WebPage (1.8.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
NameDescription
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
TypeDescription
string

setUrl

The result web page URL.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getScore

(Deprecated) Overall relevancy score for the web page.

Returns
TypeDescription
float

setScore

(Deprecated) Overall relevancy score for the web page.

Parameter
NameDescription
var float
Returns
TypeDescription
$this

getPageTitle

Title for the web page, may contain HTML markups.

Returns
TypeDescription
string

setPageTitle

Title for the web page, may contain HTML markups.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getFullMatchingImages

Fully matching images on the page.

Can include resized copies of the query image.

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setFullMatchingImages

Fully matching images on the page.

Can include resized copies of the query image.

Parameter
NameDescription
var array<Google\Cloud\Vision\V1\WebDetection\WebImage>
Returns
TypeDescription
$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
TypeDescription
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
NameDescription
var array<Google\Cloud\Vision\V1\WebDetection\WebImage>
Returns
TypeDescription
$this