Cloud AutoML V1 Client - Class DocumentDimensions (1.4.17)

Reference documentation and code samples for the Cloud AutoML V1 Client class DocumentDimensions.

Message that describes dimension of a document.

Generated from protobuf message google.cloud.automl.v1.DocumentDimensions

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ unit int

Unit of the dimension.

↳ width float

Width value of the document, works together with the unit.

↳ height float

Height value of the document, works together with the unit.

getUnit

Unit of the dimension.

Returns
TypeDescription
int

setUnit

Unit of the dimension.

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getWidth

Width value of the document, works together with the unit.

Returns
TypeDescription
float

setWidth

Width value of the document, works together with the unit.

Parameter
NameDescription
var float
Returns
TypeDescription
$this

getHeight

Height value of the document, works together with the unit.

Returns
TypeDescription
float

setHeight

Height value of the document, works together with the unit.

Parameter
NameDescription
var float
Returns
TypeDescription
$this