Class SourcePosition.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<SourcePosition.Builder>
com.google.protobuf.GeneratedMessage.Builder<SourcePosition.Builder>
com.google.api.expr.v1alpha1.SourcePosition.Builder
All Implemented Interfaces:
SourcePositionOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
SourcePosition

public static final class SourcePosition.Builder extends com.google.protobuf.GeneratedMessage.Builder<SourcePosition.Builder> implements SourcePositionOrBuilder
 A specific position in source.
 
Protobuf type google.api.expr.v1alpha1.SourcePosition
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private int
     
    private int
     
    private int
     
    private Object
     
    private int
     
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    private
     
    private
    Builder(com.google.protobuf.AbstractMessage.BuilderParent parent)
     
  • Method Summary

    Modifier and Type
    Method
    Description
     
     
    private void
     
     
    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 UTF-8 code unit offset.
    int
    The 0-based index of the starting position within the line of source text where the issue occurs.
     
    static final com.google.protobuf.Descriptors.Descriptor
     
    com.google.protobuf.Descriptors.Descriptor
     
    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 UTF-8 code unit offset.
    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
     
    final boolean
     
     
    mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    mergeFrom(com.google.protobuf.Message other)
     
    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 UTF-8 code unit offset.

    Methods inherited from class com.google.protobuf.GeneratedMessage.Builder

    addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3

    Methods inherited from class com.google.protobuf.AbstractMessage.Builder

    findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString

    Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder

    addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException

    Methods inherited from class java.lang.Object

    equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface com.google.protobuf.Message.Builder

    mergeDelimitedFrom, mergeDelimitedFrom

    Methods inherited from interface com.google.protobuf.MessageLite.Builder

    mergeFrom

    Methods inherited from interface com.google.protobuf.MessageOrBuilder

    findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
  • Field Details

    • bitField0_

      private int bitField0_
    • location_

      private Object location_
    • offset_

      private int offset_
    • line_

      private int line_
    • column_

      private int column_
  • Constructor Details

    • Builder

      private Builder()
    • Builder

      private Builder(com.google.protobuf.AbstractMessage.BuilderParent parent)
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<SourcePosition.Builder>
    • clear

      public SourcePosition.Builder clear()
      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<SourcePosition.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<SourcePosition.Builder>
    • getDefaultInstanceForType

      public SourcePosition getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public SourcePosition build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public SourcePosition buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • buildPartial0

      private void buildPartial0(SourcePosition result)
    • mergeFrom

      public SourcePosition.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<SourcePosition.Builder>
    • mergeFrom

      public SourcePosition.Builder mergeFrom(SourcePosition other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<SourcePosition.Builder>
    • mergeFrom

      public SourcePosition.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<SourcePosition.Builder>
      Throws:
      IOException
    • getLocation

      public String getLocation()
       The soucre location name (e.g. file name).
       
      string location = 1;
      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;
      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;
      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;
      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;
      Parameters:
      value - The bytes for location to set.
      Returns:
      This builder for chaining.
    • getOffset

      public int getOffset()
       The UTF-8 code unit offset.
       
      int32 offset = 2;
      Specified by:
      getOffset in interface SourcePositionOrBuilder
      Returns:
      The offset.
    • setOffset

      public SourcePosition.Builder setOffset(int value)
       The UTF-8 code unit offset.
       
      int32 offset = 2;
      Parameters:
      value - The offset to set.
      Returns:
      This builder for chaining.
    • clearOffset

      public SourcePosition.Builder clearOffset()
       The UTF-8 code unit offset.
       
      int32 offset = 2;
      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;
      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;
      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;
      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 nonzero.
       
      int32 column = 4;
      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 nonzero.
       
      int32 column = 4;
      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 nonzero.
       
      int32 column = 4;
      Returns:
      This builder for chaining.