Package com.google.api.expr.v1beta1
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 TypeMethodDescriptionintThe 0-based index of the starting position within the line of source text where the issue occurs.intgetLine()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.ByteStringThe soucre location name (e.g.intThe character 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 character 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 nonzer..
int32 column = 4 [json_name = "column"];- Returns:
- The column.
-