Stackdriver Monitoring V3 Client - Class Position (1.3.2)

Reference documentation and code samples for the Stackdriver Monitoring V3 Client class Position.

The position of a byte within the text.

Generated from protobuf message google.monitoring.v3.TextLocator.Position

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ line int

The line, starting with 1, where the byte is positioned.

↳ column int

The column within the line, starting with 1, where the byte is positioned. This is a byte index even though the text is UTF-8.

getLine

The line, starting with 1, where the byte is positioned.

Returns
TypeDescription
int

setLine

The line, starting with 1, where the byte is positioned.

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getColumn

The column within the line, starting with 1, where the byte is positioned. This is a byte index even though the text is UTF-8.

Returns
TypeDescription
int

setColumn

The column within the line, starting with 1, where the byte is positioned. This is a byte index even though the text is UTF-8.

Parameter
NameDescription
var int
Returns
TypeDescription
$this