Documentation

SourcePosition extends Message
in package

A specific position in source.

Generated from protobuf message google.api.expr.v1beta1.SourcePosition

Table of Contents

Properties

$column  : mixed
The 0-based index of the starting position within the line of source text where the issue occurs. Only meaningful if line is nonzer.. Generated from protobuf field <code>int32 column = 4 [json_name = "column"];</code>
$line  : mixed
The 1-based index of the starting line in the source text where the issue occurs, or 0 if unknown.
$location  : mixed
The soucre location name (e.g. file name).
$offset  : mixed
The character offset.

Methods

__construct()  : mixed
Constructor.
getColumn()  : int
The 0-based index of the starting position within the line of source text where the issue occurs. Only meaningful if line is nonzer.. Generated from protobuf field <code>int32 column = 4 [json_name = "column"];</code>
getLine()  : int
The 1-based index of the starting line in the source text where the issue occurs, or 0 if unknown.
getLocation()  : string
The soucre location name (e.g. file name).
getOffset()  : int
The character offset.
setColumn()  : $this
The 0-based index of the starting position within the line of source text where the issue occurs. Only meaningful if line is nonzer.. Generated from protobuf field <code>int32 column = 4 [json_name = "column"];</code>
setLine()  : $this
The 1-based index of the starting line in the source text where the issue occurs, or 0 if unknown.
setLocation()  : $this
The soucre location name (e.g. file name).
setOffset()  : $this
The character offset.

Properties

$column

The 0-based index of the starting position within the line of source text where the issue occurs. Only meaningful if line is nonzer.. Generated from protobuf field <code>int32 column = 4 [json_name = "column"];</code>

protected mixed $column = 0

$line

The 1-based index of the starting line in the source text where the issue occurs, or 0 if unknown.

protected mixed $line = 0

Generated from protobuf field int32 line = 3 [json_name = "line"];

$location

The soucre location name (e.g. file name).

protected mixed $location = ''

Generated from protobuf field string location = 1 [json_name = "location"];

$offset

The character offset.

protected mixed $offset = 0

Generated from protobuf field int32 offset = 2 [json_name = "offset"];

Methods

__construct()

Constructor.

public __construct([array<string|int, mixed> $data = NULL ]) : mixed
Parameters
$data : array<string|int, mixed> = NULL

{ Optional. Data for populating the Message object.

@type string $location
      The soucre location name (e.g. file name).
@type int $offset
      The character offset.
@type int $line
      The 1-based index of the starting line in the source text
      where the issue occurs, or 0 if unknown.
@type int $column
      The 0-based index of the starting position within the line of source text
      where the issue occurs.  Only meaningful if line is nonzer..

}

getColumn()

The 0-based index of the starting position within the line of source text where the issue occurs. Only meaningful if line is nonzer.. Generated from protobuf field <code>int32 column = 4 [json_name = "column"];</code>

public getColumn() : int
Return values
int

getLine()

The 1-based index of the starting line in the source text where the issue occurs, or 0 if unknown.

public getLine() : int

Generated from protobuf field int32 line = 3 [json_name = "line"];

Return values
int

getLocation()

The soucre location name (e.g. file name).

public getLocation() : string

Generated from protobuf field string location = 1 [json_name = "location"];

Return values
string

getOffset()

The character offset.

public getOffset() : int

Generated from protobuf field int32 offset = 2 [json_name = "offset"];

Return values
int

setColumn()

The 0-based index of the starting position within the line of source text where the issue occurs. Only meaningful if line is nonzer.. Generated from protobuf field <code>int32 column = 4 [json_name = "column"];</code>

public setColumn(int $var) : $this
Parameters
$var : int
Return values
$this

setLine()

The 1-based index of the starting line in the source text where the issue occurs, or 0 if unknown.

public setLine(int $var) : $this

Generated from protobuf field int32 line = 3 [json_name = "line"];

Parameters
$var : int
Return values
$this

setLocation()

The soucre location name (e.g. file name).

public setLocation(string $var) : $this

Generated from protobuf field string location = 1 [json_name = "location"];

Parameters
$var : string
Return values
$this

setOffset()

The character offset.

public setOffset(int $var) : $this

Generated from protobuf field int32 offset = 2 [json_name = "offset"];

Parameters
$var : int
Return values
$this

        
On this page

Search results