// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: db-commons.proto

package net.educoder.ecsonar.protobuf;

public final class DbCommons {
  private DbCommons() {}
  public static void registerAllExtensions(
      com.google.protobuf.ExtensionRegistryLite registry) {
  }

  public static void registerAllExtensions(
      com.google.protobuf.ExtensionRegistry registry) {
    registerAllExtensions(
        (com.google.protobuf.ExtensionRegistryLite) registry);
  }
  public interface TextRangeOrBuilder extends
      // @@protoc_insertion_point(interface_extends:sonarqube.db.commons.TextRange)
      com.google.protobuf.MessageOrBuilder {

    /**
     * <pre>
     * Start line. Should never be absent
     * </pre>
     *
     * <code>optional int32 start_line = 1;</code>
     * @return Whether the startLine field is set.
     */
    boolean hasStartLine();
    /**
     * <pre>
     * Start line. Should never be absent
     * </pre>
     *
     * <code>optional int32 start_line = 1;</code>
     * @return The startLine.
     */
    int getStartLine();

    /**
     * <pre>
     * End line (inclusive). Absent means it is same as start line
     * </pre>
     *
     * <code>optional int32 end_line = 2;</code>
     * @return Whether the endLine field is set.
     */
    boolean hasEndLine();
    /**
     * <pre>
     * End line (inclusive). Absent means it is same as start line
     * </pre>
     *
     * <code>optional int32 end_line = 2;</code>
     * @return The endLine.
     */
    int getEndLine();

    /**
     * <pre>
     * If absent it means range starts at the first offset of start line
     * </pre>
     *
     * <code>optional int32 start_offset = 3;</code>
     * @return Whether the startOffset field is set.
     */
    boolean hasStartOffset();
    /**
     * <pre>
     * If absent it means range starts at the first offset of start line
     * </pre>
     *
     * <code>optional int32 start_offset = 3;</code>
     * @return The startOffset.
     */
    int getStartOffset();

    /**
     * <pre>
     * If absent it means range ends at the last offset of end line
     * </pre>
     *
     * <code>optional int32 end_offset = 4;</code>
     * @return Whether the endOffset field is set.
     */
    boolean hasEndOffset();
    /**
     * <pre>
     * If absent it means range ends at the last offset of end line
     * </pre>
     *
     * <code>optional int32 end_offset = 4;</code>
     * @return The endOffset.
     */
    int getEndOffset();
  }
  /**
   * <pre>
   * Lines start at 1 and line offsets start at 0
   * </pre>
   *
   * Protobuf type {@code sonarqube.db.commons.TextRange}
   */
  public static final class TextRange extends
      com.google.protobuf.GeneratedMessageV3 implements
      // @@protoc_insertion_point(message_implements:sonarqube.db.commons.TextRange)
      TextRangeOrBuilder {
  private static final long serialVersionUID = 0L;
    // Use TextRange.newBuilder() to construct.
    private TextRange(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
      super(builder);
    }
    private TextRange() {
    }

    @Override
    @SuppressWarnings({"unused"})
    protected Object newInstance(
        UnusedPrivateParameter unused) {
      return new TextRange();
    }

    @Override
    public final com.google.protobuf.UnknownFieldSet
    getUnknownFields() {
      return this.unknownFields;
    }
    private TextRange(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      this();
      if (extensionRegistry == null) {
        throw new NullPointerException();
      }
      int mutable_bitField0_ = 0;
      com.google.protobuf.UnknownFieldSet.Builder unknownFields =
          com.google.protobuf.UnknownFieldSet.newBuilder();
      try {
        boolean done = false;
        while (!done) {
          int tag = input.readTag();
          switch (tag) {
            case 0:
              done = true;
              break;
            case 8: {
              bitField0_ |= 0x00000001;
              startLine_ = input.readInt32();
              break;
            }
            case 16: {
              bitField0_ |= 0x00000002;
              endLine_ = input.readInt32();
              break;
            }
            case 24: {
              bitField0_ |= 0x00000004;
              startOffset_ = input.readInt32();
              break;
            }
            case 32: {
              bitField0_ |= 0x00000008;
              endOffset_ = input.readInt32();
              break;
            }
            default: {
              if (!parseUnknownField(
                  input, unknownFields, extensionRegistry, tag)) {
                done = true;
              }
              break;
            }
          }
        }
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        throw e.setUnfinishedMessage(this);
      } catch (com.google.protobuf.UninitializedMessageException e) {
        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
      } catch (java.io.IOException e) {
        throw new com.google.protobuf.InvalidProtocolBufferException(
            e).setUnfinishedMessage(this);
      } finally {
        this.unknownFields = unknownFields.build();
        makeExtensionsImmutable();
      }
    }
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return net.educoder.ecsonar.protobuf.DbCommons.internal_static_sonarqube_db_commons_TextRange_descriptor;
    }

    @Override
    protected FieldAccessorTable
        internalGetFieldAccessorTable() {
      return net.educoder.ecsonar.protobuf.DbCommons.internal_static_sonarqube_db_commons_TextRange_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              TextRange.class, Builder.class);
    }

    private int bitField0_;
    public static final int START_LINE_FIELD_NUMBER = 1;
    private int startLine_;
    /**
     * <pre>
     * Start line. Should never be absent
     * </pre>
     *
     * <code>optional int32 start_line = 1;</code>
     * @return Whether the startLine field is set.
     */
    @Override
    public boolean hasStartLine() {
      return ((bitField0_ & 0x00000001) != 0);
    }
    /**
     * <pre>
     * Start line. Should never be absent
     * </pre>
     *
     * <code>optional int32 start_line = 1;</code>
     * @return The startLine.
     */
    @Override
    public int getStartLine() {
      return startLine_;
    }

    public static final int END_LINE_FIELD_NUMBER = 2;
    private int endLine_;
    /**
     * <pre>
     * End line (inclusive). Absent means it is same as start line
     * </pre>
     *
     * <code>optional int32 end_line = 2;</code>
     * @return Whether the endLine field is set.
     */
    @Override
    public boolean hasEndLine() {
      return ((bitField0_ & 0x00000002) != 0);
    }
    /**
     * <pre>
     * End line (inclusive). Absent means it is same as start line
     * </pre>
     *
     * <code>optional int32 end_line = 2;</code>
     * @return The endLine.
     */
    @Override
    public int getEndLine() {
      return endLine_;
    }

    public static final int START_OFFSET_FIELD_NUMBER = 3;
    private int startOffset_;
    /**
     * <pre>
     * If absent it means range starts at the first offset of start line
     * </pre>
     *
     * <code>optional int32 start_offset = 3;</code>
     * @return Whether the startOffset field is set.
     */
    @Override
    public boolean hasStartOffset() {
      return ((bitField0_ & 0x00000004) != 0);
    }
    /**
     * <pre>
     * If absent it means range starts at the first offset of start line
     * </pre>
     *
     * <code>optional int32 start_offset = 3;</code>
     * @return The startOffset.
     */
    @Override
    public int getStartOffset() {
      return startOffset_;
    }

    public static final int END_OFFSET_FIELD_NUMBER = 4;
    private int endOffset_;
    /**
     * <pre>
     * If absent it means range ends at the last offset of end line
     * </pre>
     *
     * <code>optional int32 end_offset = 4;</code>
     * @return Whether the endOffset field is set.
     */
    @Override
    public boolean hasEndOffset() {
      return ((bitField0_ & 0x00000008) != 0);
    }
    /**
     * <pre>
     * If absent it means range ends at the last offset of end line
     * </pre>
     *
     * <code>optional int32 end_offset = 4;</code>
     * @return The endOffset.
     */
    @Override
    public int getEndOffset() {
      return endOffset_;
    }

    private byte memoizedIsInitialized = -1;
    @Override
    public final boolean isInitialized() {
      byte isInitialized = memoizedIsInitialized;
      if (isInitialized == 1) return true;
      if (isInitialized == 0) return false;

      memoizedIsInitialized = 1;
      return true;
    }

    @Override
    public void writeTo(com.google.protobuf.CodedOutputStream output)
                        throws java.io.IOException {
      if (((bitField0_ & 0x00000001) != 0)) {
        output.writeInt32(1, startLine_);
      }
      if (((bitField0_ & 0x00000002) != 0)) {
        output.writeInt32(2, endLine_);
      }
      if (((bitField0_ & 0x00000004) != 0)) {
        output.writeInt32(3, startOffset_);
      }
      if (((bitField0_ & 0x00000008) != 0)) {
        output.writeInt32(4, endOffset_);
      }
      unknownFields.writeTo(output);
    }

    @Override
    public int getSerializedSize() {
      int size = memoizedSize;
      if (size != -1) return size;

      size = 0;
      if (((bitField0_ & 0x00000001) != 0)) {
        size += com.google.protobuf.CodedOutputStream
          .computeInt32Size(1, startLine_);
      }
      if (((bitField0_ & 0x00000002) != 0)) {
        size += com.google.protobuf.CodedOutputStream
          .computeInt32Size(2, endLine_);
      }
      if (((bitField0_ & 0x00000004) != 0)) {
        size += com.google.protobuf.CodedOutputStream
          .computeInt32Size(3, startOffset_);
      }
      if (((bitField0_ & 0x00000008) != 0)) {
        size += com.google.protobuf.CodedOutputStream
          .computeInt32Size(4, endOffset_);
      }
      size += unknownFields.getSerializedSize();
      memoizedSize = size;
      return size;
    }

    @Override
    public boolean equals(final Object obj) {
      if (obj == this) {
       return true;
      }
      if (!(obj instanceof TextRange)) {
        return super.equals(obj);
      }
      TextRange other = (TextRange) obj;

      if (hasStartLine() != other.hasStartLine()) return false;
      if (hasStartLine()) {
        if (getStartLine()
            != other.getStartLine()) return false;
      }
      if (hasEndLine() != other.hasEndLine()) return false;
      if (hasEndLine()) {
        if (getEndLine()
            != other.getEndLine()) return false;
      }
      if (hasStartOffset() != other.hasStartOffset()) return false;
      if (hasStartOffset()) {
        if (getStartOffset()
            != other.getStartOffset()) return false;
      }
      if (hasEndOffset() != other.hasEndOffset()) return false;
      if (hasEndOffset()) {
        if (getEndOffset()
            != other.getEndOffset()) return false;
      }
      if (!unknownFields.equals(other.unknownFields)) return false;
      return true;
    }

    @Override
    public int hashCode() {
      if (memoizedHashCode != 0) {
        return memoizedHashCode;
      }
      int hash = 41;
      hash = (19 * hash) + getDescriptor().hashCode();
      if (hasStartLine()) {
        hash = (37 * hash) + START_LINE_FIELD_NUMBER;
        hash = (53 * hash) + getStartLine();
      }
      if (hasEndLine()) {
        hash = (37 * hash) + END_LINE_FIELD_NUMBER;
        hash = (53 * hash) + getEndLine();
      }
      if (hasStartOffset()) {
        hash = (37 * hash) + START_OFFSET_FIELD_NUMBER;
        hash = (53 * hash) + getStartOffset();
      }
      if (hasEndOffset()) {
        hash = (37 * hash) + END_OFFSET_FIELD_NUMBER;
        hash = (53 * hash) + getEndOffset();
      }
      hash = (29 * hash) + unknownFields.hashCode();
      memoizedHashCode = hash;
      return hash;
    }

    public static TextRange parseFrom(
        java.nio.ByteBuffer data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static TextRange parseFrom(
        java.nio.ByteBuffer data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static TextRange parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static TextRange parseFrom(
        com.google.protobuf.ByteString data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static TextRange parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static TextRange parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static TextRange parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static TextRange parseFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input, extensionRegistry);
    }
    public static TextRange parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseDelimitedWithIOException(PARSER, input);
    }
    public static TextRange parseDelimitedFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
    }
    public static TextRange parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static TextRange parseFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input, extensionRegistry);
    }

    @Override
    public Builder newBuilderForType() { return newBuilder(); }
    public static Builder newBuilder() {
      return DEFAULT_INSTANCE.toBuilder();
    }
    public static Builder newBuilder(TextRange prototype) {
      return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
    }
    @Override
    public Builder toBuilder() {
      return this == DEFAULT_INSTANCE
          ? new Builder() : new Builder().mergeFrom(this);
    }

    @Override
    protected Builder newBuilderForType(
        BuilderParent parent) {
      Builder builder = new Builder(parent);
      return builder;
    }
    /**
     * <pre>
     * Lines start at 1 and line offsets start at 0
     * </pre>
     *
     * Protobuf type {@code sonarqube.db.commons.TextRange}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
        // @@protoc_insertion_point(builder_implements:sonarqube.db.commons.TextRange)
        TextRangeOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return net.educoder.ecsonar.protobuf.DbCommons.internal_static_sonarqube_db_commons_TextRange_descriptor;
      }

      @Override
      protected FieldAccessorTable
          internalGetFieldAccessorTable() {
        return net.educoder.ecsonar.protobuf.DbCommons.internal_static_sonarqube_db_commons_TextRange_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                TextRange.class, Builder.class);
      }

      // Construct using net.educoder.ecsonar.protobuf.DbCommons.TextRange.newBuilder()
      private Builder() {
        maybeForceBuilderInitialization();
      }

      private Builder(
          BuilderParent parent) {
        super(parent);
        maybeForceBuilderInitialization();
      }
      private void maybeForceBuilderInitialization() {
        if (com.google.protobuf.GeneratedMessageV3
                .alwaysUseFieldBuilders) {
        }
      }
      @Override
      public Builder clear() {
        super.clear();
        startLine_ = 0;
        bitField0_ = (bitField0_ & ~0x00000001);
        endLine_ = 0;
        bitField0_ = (bitField0_ & ~0x00000002);
        startOffset_ = 0;
        bitField0_ = (bitField0_ & ~0x00000004);
        endOffset_ = 0;
        bitField0_ = (bitField0_ & ~0x00000008);
        return this;
      }

      @Override
      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return net.educoder.ecsonar.protobuf.DbCommons.internal_static_sonarqube_db_commons_TextRange_descriptor;
      }

      @Override
      public TextRange getDefaultInstanceForType() {
        return TextRange.getDefaultInstance();
      }

      @Override
      public TextRange build() {
        TextRange result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      @Override
      public TextRange buildPartial() {
        TextRange result = new TextRange(this);
        int from_bitField0_ = bitField0_;
        int to_bitField0_ = 0;
        if (((from_bitField0_ & 0x00000001) != 0)) {
          result.startLine_ = startLine_;
          to_bitField0_ |= 0x00000001;
        }
        if (((from_bitField0_ & 0x00000002) != 0)) {
          result.endLine_ = endLine_;
          to_bitField0_ |= 0x00000002;
        }
        if (((from_bitField0_ & 0x00000004) != 0)) {
          result.startOffset_ = startOffset_;
          to_bitField0_ |= 0x00000004;
        }
        if (((from_bitField0_ & 0x00000008) != 0)) {
          result.endOffset_ = endOffset_;
          to_bitField0_ |= 0x00000008;
        }
        result.bitField0_ = to_bitField0_;
        onBuilt();
        return result;
      }

      @Override
      public Builder clone() {
        return super.clone();
      }
      @Override
      public Builder setField(
          com.google.protobuf.Descriptors.FieldDescriptor field,
          Object value) {
        return super.setField(field, value);
      }
      @Override
      public Builder clearField(
          com.google.protobuf.Descriptors.FieldDescriptor field) {
        return super.clearField(field);
      }
      @Override
      public Builder clearOneof(
          com.google.protobuf.Descriptors.OneofDescriptor oneof) {
        return super.clearOneof(oneof);
      }
      @Override
      public Builder setRepeatedField(
          com.google.protobuf.Descriptors.FieldDescriptor field,
          int index, Object value) {
        return super.setRepeatedField(field, index, value);
      }
      @Override
      public Builder addRepeatedField(
          com.google.protobuf.Descriptors.FieldDescriptor field,
          Object value) {
        return super.addRepeatedField(field, value);
      }
      @Override
      public Builder mergeFrom(com.google.protobuf.Message other) {
        if (other instanceof TextRange) {
          return mergeFrom((TextRange)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(TextRange other) {
        if (other == TextRange.getDefaultInstance()) return this;
        if (other.hasStartLine()) {
          setStartLine(other.getStartLine());
        }
        if (other.hasEndLine()) {
          setEndLine(other.getEndLine());
        }
        if (other.hasStartOffset()) {
          setStartOffset(other.getStartOffset());
        }
        if (other.hasEndOffset()) {
          setEndOffset(other.getEndOffset());
        }
        this.mergeUnknownFields(other.unknownFields);
        onChanged();
        return this;
      }

      @Override
      public final boolean isInitialized() {
        return true;
      }

      @Override
      public Builder mergeFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws java.io.IOException {
        TextRange parsedMessage = null;
        try {
          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          parsedMessage = (TextRange) e.getUnfinishedMessage();
          throw e.unwrapIOException();
        } finally {
          if (parsedMessage != null) {
            mergeFrom(parsedMessage);
          }
        }
        return this;
      }
      private int bitField0_;

      private int startLine_ ;
      /**
       * <pre>
       * Start line. Should never be absent
       * </pre>
       *
       * <code>optional int32 start_line = 1;</code>
       * @return Whether the startLine field is set.
       */
      @Override
      public boolean hasStartLine() {
        return ((bitField0_ & 0x00000001) != 0);
      }
      /**
       * <pre>
       * Start line. Should never be absent
       * </pre>
       *
       * <code>optional int32 start_line = 1;</code>
       * @return The startLine.
       */
      @Override
      public int getStartLine() {
        return startLine_;
      }
      /**
       * <pre>
       * Start line. Should never be absent
       * </pre>
       *
       * <code>optional int32 start_line = 1;</code>
       * @param value The startLine to set.
       * @return This builder for chaining.
       */
      public Builder setStartLine(int value) {
        bitField0_ |= 0x00000001;
        startLine_ = value;
        onChanged();
        return this;
      }
      /**
       * <pre>
       * Start line. Should never be absent
       * </pre>
       *
       * <code>optional int32 start_line = 1;</code>
       * @return This builder for chaining.
       */
      public Builder clearStartLine() {
        bitField0_ = (bitField0_ & ~0x00000001);
        startLine_ = 0;
        onChanged();
        return this;
      }

      private int endLine_ ;
      /**
       * <pre>
       * End line (inclusive). Absent means it is same as start line
       * </pre>
       *
       * <code>optional int32 end_line = 2;</code>
       * @return Whether the endLine field is set.
       */
      @Override
      public boolean hasEndLine() {
        return ((bitField0_ & 0x00000002) != 0);
      }
      /**
       * <pre>
       * End line (inclusive). Absent means it is same as start line
       * </pre>
       *
       * <code>optional int32 end_line = 2;</code>
       * @return The endLine.
       */
      @Override
      public int getEndLine() {
        return endLine_;
      }
      /**
       * <pre>
       * End line (inclusive). Absent means it is same as start line
       * </pre>
       *
       * <code>optional int32 end_line = 2;</code>
       * @param value The endLine to set.
       * @return This builder for chaining.
       */
      public Builder setEndLine(int value) {
        bitField0_ |= 0x00000002;
        endLine_ = value;
        onChanged();
        return this;
      }
      /**
       * <pre>
       * End line (inclusive). Absent means it is same as start line
       * </pre>
       *
       * <code>optional int32 end_line = 2;</code>
       * @return This builder for chaining.
       */
      public Builder clearEndLine() {
        bitField0_ = (bitField0_ & ~0x00000002);
        endLine_ = 0;
        onChanged();
        return this;
      }

      private int startOffset_ ;
      /**
       * <pre>
       * If absent it means range starts at the first offset of start line
       * </pre>
       *
       * <code>optional int32 start_offset = 3;</code>
       * @return Whether the startOffset field is set.
       */
      @Override
      public boolean hasStartOffset() {
        return ((bitField0_ & 0x00000004) != 0);
      }
      /**
       * <pre>
       * If absent it means range starts at the first offset of start line
       * </pre>
       *
       * <code>optional int32 start_offset = 3;</code>
       * @return The startOffset.
       */
      @Override
      public int getStartOffset() {
        return startOffset_;
      }
      /**
       * <pre>
       * If absent it means range starts at the first offset of start line
       * </pre>
       *
       * <code>optional int32 start_offset = 3;</code>
       * @param value The startOffset to set.
       * @return This builder for chaining.
       */
      public Builder setStartOffset(int value) {
        bitField0_ |= 0x00000004;
        startOffset_ = value;
        onChanged();
        return this;
      }
      /**
       * <pre>
       * If absent it means range starts at the first offset of start line
       * </pre>
       *
       * <code>optional int32 start_offset = 3;</code>
       * @return This builder for chaining.
       */
      public Builder clearStartOffset() {
        bitField0_ = (bitField0_ & ~0x00000004);
        startOffset_ = 0;
        onChanged();
        return this;
      }

      private int endOffset_ ;
      /**
       * <pre>
       * If absent it means range ends at the last offset of end line
       * </pre>
       *
       * <code>optional int32 end_offset = 4;</code>
       * @return Whether the endOffset field is set.
       */
      @Override
      public boolean hasEndOffset() {
        return ((bitField0_ & 0x00000008) != 0);
      }
      /**
       * <pre>
       * If absent it means range ends at the last offset of end line
       * </pre>
       *
       * <code>optional int32 end_offset = 4;</code>
       * @return The endOffset.
       */
      @Override
      public int getEndOffset() {
        return endOffset_;
      }
      /**
       * <pre>
       * If absent it means range ends at the last offset of end line
       * </pre>
       *
       * <code>optional int32 end_offset = 4;</code>
       * @param value The endOffset to set.
       * @return This builder for chaining.
       */
      public Builder setEndOffset(int value) {
        bitField0_ |= 0x00000008;
        endOffset_ = value;
        onChanged();
        return this;
      }
      /**
       * <pre>
       * If absent it means range ends at the last offset of end line
       * </pre>
       *
       * <code>optional int32 end_offset = 4;</code>
       * @return This builder for chaining.
       */
      public Builder clearEndOffset() {
        bitField0_ = (bitField0_ & ~0x00000008);
        endOffset_ = 0;
        onChanged();
        return this;
      }
      @Override
      public final Builder setUnknownFields(
          final com.google.protobuf.UnknownFieldSet unknownFields) {
        return super.setUnknownFields(unknownFields);
      }

      @Override
      public final Builder mergeUnknownFields(
          final com.google.protobuf.UnknownFieldSet unknownFields) {
        return super.mergeUnknownFields(unknownFields);
      }


      // @@protoc_insertion_point(builder_scope:sonarqube.db.commons.TextRange)
    }

    // @@protoc_insertion_point(class_scope:sonarqube.db.commons.TextRange)
    private static final TextRange DEFAULT_INSTANCE;
    static {
      DEFAULT_INSTANCE = new TextRange();
    }

    public static TextRange getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

    @Deprecated
    public static final com.google.protobuf.Parser<TextRange>
        PARSER = new com.google.protobuf.AbstractParser<TextRange>() {
      @Override
      public TextRange parsePartialFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return new TextRange(input, extensionRegistry);
      }
    };

    public static com.google.protobuf.Parser<TextRange> parser() {
      return PARSER;
    }

    @Override
    public com.google.protobuf.Parser<TextRange> getParserForType() {
      return PARSER;
    }

    @Override
    public TextRange getDefaultInstanceForType() {
      return DEFAULT_INSTANCE;
    }

  }

  private static final com.google.protobuf.Descriptors.Descriptor
    internal_static_sonarqube_db_commons_TextRange_descriptor;
  private static final
    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internal_static_sonarqube_db_commons_TextRange_fieldAccessorTable;

  public static com.google.protobuf.Descriptors.FileDescriptor
      getDescriptor() {
    return descriptor;
  }
  private static  com.google.protobuf.Descriptors.FileDescriptor
      descriptor;
  static {
    String[] descriptorData = {
      "\n\020db-commons.proto\022\024sonarqube.db.commons" +
      "\"[\n\tTextRange\022\022\n\nstart_line\030\001 \001(\005\022\020\n\010end" +
      "_line\030\002 \001(\005\022\024\n\014start_offset\030\003 \001(\005\022\022\n\nend" +
      "_offset\030\004 \001(\005B!\n\035net.educoder.ecsonar.pr" +
      "otobufH\001"
    };
    descriptor = com.google.protobuf.Descriptors.FileDescriptor
      .internalBuildGeneratedFileFrom(descriptorData,
        new com.google.protobuf.Descriptors.FileDescriptor[] {
        });
    internal_static_sonarqube_db_commons_TextRange_descriptor =
      getDescriptor().getMessageTypes().get(0);
    internal_static_sonarqube_db_commons_TextRange_fieldAccessorTable = new
      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
        internal_static_sonarqube_db_commons_TextRange_descriptor,
        new String[] { "StartLine", "EndLine", "StartOffset", "EndOffset", });
  }

  // @@protoc_insertion_point(outer_class_scope)
}
