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 Type
    Method
    Description
    The 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
    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.
    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

      public String getLocation()
       The soucre location name (e.g. file name).
       
      string location = 1 [json_name = "location"];
      Specified by:
      getLocation in interface SourcePositionOrBuilder
      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 interface SourcePositionOrBuilder
      Returns:
      The bytes for location.
    • setLocation

      public SourcePosition.Builder setLocation(String value)
       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

      public SourcePosition.Builder clearLocation()
       The soucre location name (e.g. file name).
       
      string location = 1 [json_name = "location"];
      Returns:
      This builder for chaining.
    • setLocationBytes

      public SourcePosition.Builder setLocationBytes(com.google.protobuf.ByteString value)
       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 interface SourcePositionOrBuilder
      Returns:
      The offset.
    • setOffset

      public SourcePosition.Builder setOffset(int value)
       The character offset.
       
      int32 offset = 2 [json_name = "offset"];
      Parameters:
      value - The offset to set.
      Returns:
      This builder for chaining.
    • clearOffset

      public SourcePosition.Builder 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 interface SourcePositionOrBuilder
      Returns:
      The line.
    • setLine

      public SourcePosition.Builder setLine(int value)
       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

      public SourcePosition.Builder 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 interface SourcePositionOrBuilder
      Returns:
      The column.
    • setColumn

      public SourcePosition.Builder setColumn(int value)
       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

      public SourcePosition.Builder 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.