Class SourcePosition.Builder

  • All Implemented Interfaces:
    SourcePositionOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, java.lang.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
    • Constructor Summary

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

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      SourcePosition build()  
      SourcePosition buildPartial()  
      private void buildPartial0​(SourcePosition result)  
      SourcePosition.Builder clear()  
      SourcePosition.Builder clearColumn()
      The 0-based index of the starting position within the line of source text where the issue occurs.
      SourcePosition.Builder clearLine()
      The 1-based index of the starting line in the source text where the issue occurs, or 0 if unknown.
      SourcePosition.Builder clearLocation()
      The soucre location name (e.g.
      SourcePosition.Builder clearOffset()
      The UTF-8 code unit offset.
      int getColumn()
      The 0-based index of the starting position within the line of source text where the issue occurs.
      SourcePosition getDefaultInstanceForType()  
      static com.google.protobuf.Descriptors.Descriptor getDescriptor()  
      com.google.protobuf.Descriptors.Descriptor getDescriptorForType()  
      int getLine()
      The 1-based index of the starting line in the source text where the issue occurs, or 0 if unknown.
      java.lang.String getLocation()
      The soucre location name (e.g.
      com.google.protobuf.ByteString getLocationBytes()
      The soucre location name (e.g.
      int getOffset()
      The UTF-8 code unit offset.
      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()  
      boolean isInitialized()  
      SourcePosition.Builder mergeFrom​(SourcePosition other)  
      SourcePosition.Builder mergeFrom​(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)  
      SourcePosition.Builder mergeFrom​(com.google.protobuf.Message other)  
      SourcePosition.Builder setColumn​(int value)
      The 0-based index of the starting position within the line of source text where the issue occurs.
      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.
      SourcePosition.Builder setLocation​(java.lang.String value)
      The soucre location name (e.g.
      SourcePosition.Builder setLocationBytes​(com.google.protobuf.ByteString value)
      The soucre location name (e.g.
      SourcePosition.Builder 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 Detail

      • bitField0_

        private int bitField0_
      • location_

        private java.lang.Object location_
      • offset_

        private int offset_
      • line_

        private int line_
      • column_

        private int column_
    • Constructor Detail

      • Builder

        private Builder()
      • Builder

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

      • 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>
      • 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 java.io.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:
        java.io.IOException
      • getLocation

        public java.lang.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​(java.lang.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.