class SourcePosition extends Message

A specific position in source.

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

Methods

__construct(array $data = NULL)

Constructor.

string
getLocation()

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

$this
setLocation(string $var)

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

int
getOffset()

The character offset.

$this
setOffset(int $var)

The character offset.

int
getLine()

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

$this
setLine(int $var)

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

int
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.

$this
setColumn(int $var)

The 0-based index of the starting position within the line of source text where the issue occurs. Only meaningful if line is nonzer.

Details

at line 63
__construct(array $data = NULL)

Constructor.

Parameters

array $data { 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..

}

at line 74
string getLocation()

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

Generated from protobuf field string location = 1;

Return Value

string

at line 86
$this setLocation(string $var)

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

Generated from protobuf field string location = 1;

Parameters

string $var

Return Value

$this

at line 100
int getOffset()

The character offset.

Generated from protobuf field int32 offset = 2;

Return Value

int

at line 112
$this setOffset(int $var)

The character offset.

Generated from protobuf field int32 offset = 2;

Parameters

int $var

Return Value

$this

at line 127
int getLine()

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

Generated from protobuf field int32 line = 3;

Return Value

int

at line 140
$this setLine(int $var)

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

Generated from protobuf field int32 line = 3;

Parameters

int $var

Return Value

$this

at line 155
int 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 int32 column = 4;

Return Value

int

at line 168
$this setColumn(int $var)

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 int32 column = 4;

Parameters

int $var

Return Value

$this