SourcePosition
extends Message
in package
A specific position in source.
Generated from protobuf message google.api.expr.v1alpha1.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 nonzero.
- $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 UTF-8 code unit 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 nonzero.
- 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 UTF-8 code unit 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 nonzero.
- 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 UTF-8 code unit 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 nonzero.
protected
mixed
$column
= 0
Generated from protobuf field int32 column = 4 [json_name = "column"];
$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 UTF-8 code unit 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 UTF-8 code unit 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 nonzero.}
getColumn()
The 0-based index of the starting position within the line of source text where the issue occurs. Only meaningful if line is nonzero.
public
getColumn() : int
Generated from protobuf field int32 column = 4 [json_name = "column"];
Return values
intgetLine()
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
intgetLocation()
The soucre location name (e.g. file name).
public
getLocation() : string
Generated from protobuf field string location = 1 [json_name = "location"];
Return values
stringgetOffset()
The UTF-8 code unit offset.
public
getOffset() : int
Generated from protobuf field int32 offset = 2 [json_name = "offset"];
Return values
intsetColumn()
The 0-based index of the starting position within the line of source text where the issue occurs. Only meaningful if line is nonzero.
public
setColumn(int $var) : $this
Generated from protobuf field int32 column = 4 [json_name = "column"];
Parameters
- $var : int
Return values
$thissetLine()
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
$thissetLocation()
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
$thissetOffset()
The UTF-8 code unit offset.
public
setOffset(int $var) : $this
Generated from protobuf field int32 offset = 2 [json_name = "offset"];
Parameters
- $var : int