Google Cloud Document Ai V1 Client - Class Dimension (1.0.1)

Reference documentation and code samples for the Google Cloud Document Ai V1 Client class Dimension.

Dimension for the page.

Generated from protobuf message google.cloud.documentai.v1.Document.Page.Dimension

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ width float

Page width.

↳ height float

Page height.

↳ unit string

Dimension unit.

getWidth

Page width.

Generated from protobuf field float width = 1;

Returns
TypeDescription
float

setWidth

Page width.

Generated from protobuf field float width = 1;

Parameter
NameDescription
var float
Returns
TypeDescription
$this

getHeight

Page height.

Generated from protobuf field float height = 2;

Returns
TypeDescription
float

setHeight

Page height.

Generated from protobuf field float height = 2;

Parameter
NameDescription
var float
Returns
TypeDescription
$this

getUnit

Dimension unit.

Generated from protobuf field string unit = 3;

Returns
TypeDescription
string

setUnit

Dimension unit.

Generated from protobuf field string unit = 3;

Parameter
NameDescription
var string
Returns
TypeDescription
$this