Package com.google.api.expr.v1beta1
Class SourcePosition.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder<MessageType,BuilderType>
com.google.protobuf.GeneratedMessageLite.Builder<SourcePosition,SourcePosition.Builder>
com.google.api.expr.v1beta1.SourcePosition.Builder
- All Implemented Interfaces:
SourcePositionOrBuilder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,Cloneable
- Enclosing class:
- SourcePosition
public static final class SourcePosition.Builder
extends com.google.protobuf.GeneratedMessageLite.Builder<SourcePosition,SourcePosition.Builder>
implements SourcePositionOrBuilder
A specific position in source.Protobuf type
google.api.expr.v1beta1.SourcePosition
-
Field Summary
Fields inherited from class com.google.protobuf.GeneratedMessageLite.Builder
instance
-
Method Summary
Modifier and TypeMethodDescriptionThe 0-based index of the starting position within the line of source text where the issue occurs.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.The character offset.int
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 character offset.setColumn
(int value) The 0-based index of the starting position within the line of source text where the issue occurs.setLine
(int value) The 1-based index of the starting line in the source text where the issue occurs, or 0 if unknown.setLocation
(String value) The soucre location name (e.g.setLocationBytes
(com.google.protobuf.ByteString value) The soucre location name (e.g.setOffset
(int value) The character offset.Methods inherited from class com.google.protobuf.GeneratedMessageLite.Builder
build, buildPartial, clear, clone, copyOnWrite, copyOnWriteInternal, getDefaultInstanceForType, internalMergeFrom, isInitialized, mergeFrom, mergeFrom, mergeFrom, mergeFrom
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType, isInitialized
-
Method Details
-
getLocation
The soucre location name (e.g. file name).
string location = 1 [json_name = "location"];
- Specified by:
getLocation
in interfaceSourcePositionOrBuilder
- Returns:
- The location.
-
getLocationBytes
public com.google.protobuf.ByteString getLocationBytes()The soucre location name (e.g. file name).
string location = 1 [json_name = "location"];
- Specified by:
getLocationBytes
in interfaceSourcePositionOrBuilder
- Returns:
- The bytes for location.
-
setLocation
The soucre location name (e.g. file name).
string location = 1 [json_name = "location"];
- Parameters:
value
- The location to set.- Returns:
- This builder for chaining.
-
clearLocation
The soucre location name (e.g. file name).
string location = 1 [json_name = "location"];
- Returns:
- This builder for chaining.
-
setLocationBytes
The soucre location name (e.g. file name).
string location = 1 [json_name = "location"];
- Parameters:
value
- The bytes for location to set.- Returns:
- This builder for chaining.
-
getOffset
public int getOffset()The character offset.
int32 offset = 2 [json_name = "offset"];
- Specified by:
getOffset
in interfaceSourcePositionOrBuilder
- Returns:
- The offset.
-
setOffset
The character offset.
int32 offset = 2 [json_name = "offset"];
- Parameters:
value
- The offset to set.- Returns:
- This builder for chaining.
-
clearOffset
The character offset.
int32 offset = 2 [json_name = "offset"];
- Returns:
- This builder for chaining.
-
getLine
public 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"];
- Specified by:
getLine
in interfaceSourcePositionOrBuilder
- Returns:
- The line.
-
setLine
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"];
- Parameters:
value
- The line to set.- Returns:
- This builder for chaining.
-
clearLine
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:
- This builder for chaining.
-
getColumn
public 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"];
- Specified by:
getColumn
in interfaceSourcePositionOrBuilder
- Returns:
- The column.
-
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..
int32 column = 4 [json_name = "column"];
- Parameters:
value
- The column to set.- Returns:
- This builder for chaining.
-
clearColumn
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:
- This builder for chaining.
-