Package com.google.api.expr.v1alpha1
Interface SourcePositionOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder
- All Known Implementing Classes:
SourcePosition
,SourcePosition.Builder
public interface SourcePositionOrBuilder
extends com.google.protobuf.MessageLiteOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptionint
The 0-based index of the starting position within the line of source text where the issue occurs.int
getLine()
The 1-based index of the starting line in the source text where the issue occurs, or 0 if unknown.The soucre location name (e.g.com.google.protobuf.ByteString
The soucre location name (e.g.int
The UTF-8 code unit offset.Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType, isInitialized
-
Method Details
-
getLocation
String getLocation()The soucre location name (e.g. file name).
string location = 1 [json_name = "location"];
- Returns:
- The location.
-
getLocationBytes
com.google.protobuf.ByteString getLocationBytes()The soucre location name (e.g. file name).
string location = 1 [json_name = "location"];
- Returns:
- The bytes for location.
-
getOffset
int getOffset()The UTF-8 code unit offset.
int32 offset = 2 [json_name = "offset"];
- Returns:
- The offset.
-
getLine
int getLine()The 1-based index of the starting line in the source text where the issue occurs, or 0 if unknown.
int32 line = 3 [json_name = "line"];
- Returns:
- The line.
-
getColumn
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 nonzero.
int32 column = 4 [json_name = "column"];
- Returns:
- The column.
-