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.GeneratedMessageV3.Builder<SourcePosition.Builder>
    implements SourcePositionOrBuilder
     A specific position in source.
     
    Protobuf type google.api.expr.v1alpha1.SourcePosition
    • Method Detail

      • getDescriptor

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

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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
      • clone

        public SourcePosition.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<SourcePosition.Builder>
      • setField

        public SourcePosition.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                               java.lang.Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<SourcePosition.Builder>
      • clearField

        public SourcePosition.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<SourcePosition.Builder>
      • clearOneof

        public SourcePosition.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<SourcePosition.Builder>
      • setRepeatedField

        public SourcePosition.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                       int index,
                                                       java.lang.Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<SourcePosition.Builder>
      • addRepeatedField

        public SourcePosition.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                       java.lang.Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<SourcePosition.Builder>
      • 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.GeneratedMessageV3.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.
      • setUnknownFields

        public final SourcePosition.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<SourcePosition.Builder>
      • mergeUnknownFields

        public final SourcePosition.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<SourcePosition.Builder>