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

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

Methods

__construct

Constructor.

Parameters
NameDescription
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
TypeDescription
string

setUri

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

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getHeight

Optional. Height of the image in number of pixels.

Returns
TypeDescription
int

setHeight

Optional. Height of the image in number of pixels.

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getWidth

Optional. Width of the image in number of pixels.

Returns
TypeDescription
int

setWidth

Optional. Width of the image in number of pixels.

Parameter
NameDescription
var int
Returns
TypeDescription
$this