Stackdriver Monitoring V3 Client - Class Position (1.11.0)

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

Namespace

Google \ Cloud \ Monitoring \ V3 \ TextLocator

Methods

__construct

Constructor.

Parameters
Name Description
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
Type Description
int

setLine

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

Parameter
Name Description
var int
Returns
Type Description
$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
Type Description
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
Name Description
var int
Returns
Type Description
$this