Google Cloud Workflows V1 Client - Class Position (0.3.0)

Reference documentation and code samples for the Google Cloud Workflows V1 Client class Position.

Position contains source position information about the stack trace element such as line number, column number and length of the code block in bytes.

Generated from protobuf message google.cloud.workflows.executions.v1.Execution.StackTraceElement.Position

Namespace

Google \ Cloud \ Workflows \ Executions \ V1 \ Execution \ StackTraceElement

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ line int|string

The source code line number the current instruction was generated from.

↳ column int|string

The source code column position (of the line) the current instruction was generated from.

↳ length int|string

The number of bytes of source code making up this stack trace element.

getLine

The source code line number the current instruction was generated from.

Returns
TypeDescription
int|string

setLine

The source code line number the current instruction was generated from.

Parameter
NameDescription
var int|string
Returns
TypeDescription
$this

getColumn

The source code column position (of the line) the current instruction was generated from.

Returns
TypeDescription
int|string

setColumn

The source code column position (of the line) the current instruction was generated from.

Parameter
NameDescription
var int|string
Returns
TypeDescription
$this

getLength

The number of bytes of source code making up this stack trace element.

Returns
TypeDescription
int|string

setLength

The number of bytes of source code making up this stack trace element.

Parameter
NameDescription
var int|string
Returns
TypeDescription
$this