Google Cloud Recommendation Engine V1beta1 Client - Class Image (0.7.6)

Reference documentation and code samples for the Google Cloud Recommendation Engine V1beta1 Client class Image.

Catalog item thumbnail/detail image.

Generated from protobuf message google.cloud.recommendationengine.v1beta1.Image

Namespace

Google \ Cloud \ RecommendationEngine \ V1beta1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ uri string

Required. URL of the image with a length limit of 5 KiB.

↳ height int

Optional. Height of the image in number of pixels.

↳ width int

Optional. Width of the image in number of pixels.

getUri

Required. URL of the image with a length limit of 5 KiB.

Returns
Type Description
string

setUri

Required. URL of the image with a length limit of 5 KiB.

Parameter
Name Description
var string
Returns
Type Description
$this

getHeight

Optional. Height of the image in number of pixels.

Returns
Type Description
int

setHeight

Optional. Height of the image in number of pixels.

Parameter
Name Description
var int
Returns
Type Description
$this

getWidth

Optional. Width of the image in number of pixels.

Returns
Type Description
int

setWidth

Optional. Width of the image in number of pixels.

Parameter
Name Description
var int
Returns
Type Description
$this