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

package net.educoder.ecsonar.protobuf;

public final class DbIssues {
  private DbIssues() {}
  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 LocationsOrBuilder extends
      // @@protoc_insertion_point(interface_extends:sonarqube.db.issues.Locations)
      com.google.protobuf.MessageOrBuilder {

    /**
     * <code>optional .sonarqube.db.commons.TextRange text_range = 1;</code>
     * @return Whether the textRange field is set.
     */
    boolean hasTextRange();
    /**
     * <code>optional .sonarqube.db.commons.TextRange text_range = 1;</code>
     * @return The textRange.
     */
    DbCommons.TextRange getTextRange();
    /**
     * <code>optional .sonarqube.db.commons.TextRange text_range = 1;</code>
     */
    DbCommons.TextRangeOrBuilder getTextRangeOrBuilder();

    /**
     * <code>repeated .sonarqube.db.issues.Flow flow = 2;</code>
     */
    java.util.List<Flow>
        getFlowList();
    /**
     * <code>repeated .sonarqube.db.issues.Flow flow = 2;</code>
     */
    Flow getFlow(int index);
    /**
     * <code>repeated .sonarqube.db.issues.Flow flow = 2;</code>
     */
    int getFlowCount();
    /**
     * <code>repeated .sonarqube.db.issues.Flow flow = 2;</code>
     */
    java.util.List<? extends FlowOrBuilder>
        getFlowOrBuilderList();
    /**
     * <code>repeated .sonarqube.db.issues.Flow flow = 2;</code>
     */
    FlowOrBuilder getFlowOrBuilder(
        int index);
  }
  /**
   * Protobuf type {@code sonarqube.db.issues.Locations}
   */
  public static final class Locations extends
      com.google.protobuf.GeneratedMessageV3 implements
      // @@protoc_insertion_point(message_implements:sonarqube.db.issues.Locations)
      LocationsOrBuilder {
  private static final long serialVersionUID = 0L;
    // Use Locations.newBuilder() to construct.
    private Locations(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
      super(builder);
    }
    private Locations() {
      flow_ = java.util.Collections.emptyList();
    }

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

    @Override
    public final com.google.protobuf.UnknownFieldSet
    getUnknownFields() {
      return this.unknownFields;
    }
    private Locations(
        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 10: {
              DbCommons.TextRange.Builder subBuilder = null;
              if (((bitField0_ & 0x00000001) != 0)) {
                subBuilder = textRange_.toBuilder();
              }
              textRange_ = input.readMessage(DbCommons.TextRange.PARSER, extensionRegistry);
              if (subBuilder != null) {
                subBuilder.mergeFrom(textRange_);
                textRange_ = subBuilder.buildPartial();
              }
              bitField0_ |= 0x00000001;
              break;
            }
            case 18: {
              if (!((mutable_bitField0_ & 0x00000002) != 0)) {
                flow_ = new java.util.ArrayList<Flow>();
                mutable_bitField0_ |= 0x00000002;
              }
              flow_.add(
                  input.readMessage(Flow.PARSER, extensionRegistry));
              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 {
        if (((mutable_bitField0_ & 0x00000002) != 0)) {
          flow_ = java.util.Collections.unmodifiableList(flow_);
        }
        this.unknownFields = unknownFields.build();
        makeExtensionsImmutable();
      }
    }
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return net.educoder.ecsonar.protobuf.DbIssues.internal_static_sonarqube_db_issues_Locations_descriptor;
    }

    @Override
    protected FieldAccessorTable
        internalGetFieldAccessorTable() {
      return net.educoder.ecsonar.protobuf.DbIssues.internal_static_sonarqube_db_issues_Locations_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              Locations.class, Builder.class);
    }

    private int bitField0_;
    public static final int TEXT_RANGE_FIELD_NUMBER = 1;
    private DbCommons.TextRange textRange_;
    /**
     * <code>optional .sonarqube.db.commons.TextRange text_range = 1;</code>
     * @return Whether the textRange field is set.
     */
    @Override
    public boolean hasTextRange() {
      return ((bitField0_ & 0x00000001) != 0);
    }
    /**
     * <code>optional .sonarqube.db.commons.TextRange text_range = 1;</code>
     * @return The textRange.
     */
    @Override
    public DbCommons.TextRange getTextRange() {
      return textRange_ == null ? DbCommons.TextRange.getDefaultInstance() : textRange_;
    }
    /**
     * <code>optional .sonarqube.db.commons.TextRange text_range = 1;</code>
     */
    @Override
    public DbCommons.TextRangeOrBuilder getTextRangeOrBuilder() {
      return textRange_ == null ? DbCommons.TextRange.getDefaultInstance() : textRange_;
    }

    public static final int FLOW_FIELD_NUMBER = 2;
    private java.util.List<Flow> flow_;
    /**
     * <code>repeated .sonarqube.db.issues.Flow flow = 2;</code>
     */
    @Override
    public java.util.List<Flow> getFlowList() {
      return flow_;
    }
    /**
     * <code>repeated .sonarqube.db.issues.Flow flow = 2;</code>
     */
    @Override
    public java.util.List<? extends FlowOrBuilder>
        getFlowOrBuilderList() {
      return flow_;
    }
    /**
     * <code>repeated .sonarqube.db.issues.Flow flow = 2;</code>
     */
    @Override
    public int getFlowCount() {
      return flow_.size();
    }
    /**
     * <code>repeated .sonarqube.db.issues.Flow flow = 2;</code>
     */
    @Override
    public Flow getFlow(int index) {
      return flow_.get(index);
    }
    /**
     * <code>repeated .sonarqube.db.issues.Flow flow = 2;</code>
     */
    @Override
    public FlowOrBuilder getFlowOrBuilder(
        int index) {
      return flow_.get(index);
    }

    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.writeMessage(1, getTextRange());
      }
      for (int i = 0; i < flow_.size(); i++) {
        output.writeMessage(2, flow_.get(i));
      }
      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
          .computeMessageSize(1, getTextRange());
      }
      for (int i = 0; i < flow_.size(); i++) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(2, flow_.get(i));
      }
      size += unknownFields.getSerializedSize();
      memoizedSize = size;
      return size;
    }

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

      if (hasTextRange() != other.hasTextRange()) return false;
      if (hasTextRange()) {
        if (!getTextRange()
            .equals(other.getTextRange())) return false;
      }
      if (!getFlowList()
          .equals(other.getFlowList())) 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 (hasTextRange()) {
        hash = (37 * hash) + TEXT_RANGE_FIELD_NUMBER;
        hash = (53 * hash) + getTextRange().hashCode();
      }
      if (getFlowCount() > 0) {
        hash = (37 * hash) + FLOW_FIELD_NUMBER;
        hash = (53 * hash) + getFlowList().hashCode();
      }
      hash = (29 * hash) + unknownFields.hashCode();
      memoizedHashCode = hash;
      return hash;
    }

    public static Locations parseFrom(
        java.nio.ByteBuffer data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static Locations parseFrom(
        java.nio.ByteBuffer data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static Locations parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static Locations parseFrom(
        com.google.protobuf.ByteString data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static Locations parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static Locations parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static Locations parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static Locations 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 Locations parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseDelimitedWithIOException(PARSER, input);
    }
    public static Locations 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 Locations parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static Locations 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(Locations 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;
    }
    /**
     * Protobuf type {@code sonarqube.db.issues.Locations}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
        // @@protoc_insertion_point(builder_implements:sonarqube.db.issues.Locations)
        LocationsOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return net.educoder.ecsonar.protobuf.DbIssues.internal_static_sonarqube_db_issues_Locations_descriptor;
      }

      @Override
      protected FieldAccessorTable
          internalGetFieldAccessorTable() {
        return net.educoder.ecsonar.protobuf.DbIssues.internal_static_sonarqube_db_issues_Locations_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                Locations.class, Builder.class);
      }

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

      private Builder(
          BuilderParent parent) {
        super(parent);
        maybeForceBuilderInitialization();
      }
      private void maybeForceBuilderInitialization() {
        if (com.google.protobuf.GeneratedMessageV3
                .alwaysUseFieldBuilders) {
          getTextRangeFieldBuilder();
          getFlowFieldBuilder();
        }
      }
      @Override
      public Builder clear() {
        super.clear();
        if (textRangeBuilder_ == null) {
          textRange_ = null;
        } else {
          textRangeBuilder_.clear();
        }
        bitField0_ = (bitField0_ & ~0x00000001);
        if (flowBuilder_ == null) {
          flow_ = java.util.Collections.emptyList();
          bitField0_ = (bitField0_ & ~0x00000002);
        } else {
          flowBuilder_.clear();
        }
        return this;
      }

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

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

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

      @Override
      public Locations buildPartial() {
        Locations result = new Locations(this);
        int from_bitField0_ = bitField0_;
        int to_bitField0_ = 0;
        if (((from_bitField0_ & 0x00000001) != 0)) {
          if (textRangeBuilder_ == null) {
            result.textRange_ = textRange_;
          } else {
            result.textRange_ = textRangeBuilder_.build();
          }
          to_bitField0_ |= 0x00000001;
        }
        if (flowBuilder_ == null) {
          if (((bitField0_ & 0x00000002) != 0)) {
            flow_ = java.util.Collections.unmodifiableList(flow_);
            bitField0_ = (bitField0_ & ~0x00000002);
          }
          result.flow_ = flow_;
        } else {
          result.flow_ = flowBuilder_.build();
        }
        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 Locations) {
          return mergeFrom((Locations)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(Locations other) {
        if (other == Locations.getDefaultInstance()) return this;
        if (other.hasTextRange()) {
          mergeTextRange(other.getTextRange());
        }
        if (flowBuilder_ == null) {
          if (!other.flow_.isEmpty()) {
            if (flow_.isEmpty()) {
              flow_ = other.flow_;
              bitField0_ = (bitField0_ & ~0x00000002);
            } else {
              ensureFlowIsMutable();
              flow_.addAll(other.flow_);
            }
            onChanged();
          }
        } else {
          if (!other.flow_.isEmpty()) {
            if (flowBuilder_.isEmpty()) {
              flowBuilder_.dispose();
              flowBuilder_ = null;
              flow_ = other.flow_;
              bitField0_ = (bitField0_ & ~0x00000002);
              flowBuilder_ =
                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
                   getFlowFieldBuilder() : null;
            } else {
              flowBuilder_.addAllMessages(other.flow_);
            }
          }
        }
        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 {
        Locations parsedMessage = null;
        try {
          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          parsedMessage = (Locations) e.getUnfinishedMessage();
          throw e.unwrapIOException();
        } finally {
          if (parsedMessage != null) {
            mergeFrom(parsedMessage);
          }
        }
        return this;
      }
      private int bitField0_;

      private DbCommons.TextRange textRange_;
      private com.google.protobuf.SingleFieldBuilderV3<
          DbCommons.TextRange, DbCommons.TextRange.Builder, DbCommons.TextRangeOrBuilder> textRangeBuilder_;
      /**
       * <code>optional .sonarqube.db.commons.TextRange text_range = 1;</code>
       * @return Whether the textRange field is set.
       */
      public boolean hasTextRange() {
        return ((bitField0_ & 0x00000001) != 0);
      }
      /**
       * <code>optional .sonarqube.db.commons.TextRange text_range = 1;</code>
       * @return The textRange.
       */
      public DbCommons.TextRange getTextRange() {
        if (textRangeBuilder_ == null) {
          return textRange_ == null ? DbCommons.TextRange.getDefaultInstance() : textRange_;
        } else {
          return textRangeBuilder_.getMessage();
        }
      }
      /**
       * <code>optional .sonarqube.db.commons.TextRange text_range = 1;</code>
       */
      public Builder setTextRange(DbCommons.TextRange value) {
        if (textRangeBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          textRange_ = value;
          onChanged();
        } else {
          textRangeBuilder_.setMessage(value);
        }
        bitField0_ |= 0x00000001;
        return this;
      }
      /**
       * <code>optional .sonarqube.db.commons.TextRange text_range = 1;</code>
       */
      public Builder setTextRange(
          DbCommons.TextRange.Builder builderForValue) {
        if (textRangeBuilder_ == null) {
          textRange_ = builderForValue.build();
          onChanged();
        } else {
          textRangeBuilder_.setMessage(builderForValue.build());
        }
        bitField0_ |= 0x00000001;
        return this;
      }
      /**
       * <code>optional .sonarqube.db.commons.TextRange text_range = 1;</code>
       */
      public Builder mergeTextRange(DbCommons.TextRange value) {
        if (textRangeBuilder_ == null) {
          if (((bitField0_ & 0x00000001) != 0) &&
              textRange_ != null &&
              textRange_ != DbCommons.TextRange.getDefaultInstance()) {
            textRange_ =
              DbCommons.TextRange.newBuilder(textRange_).mergeFrom(value).buildPartial();
          } else {
            textRange_ = value;
          }
          onChanged();
        } else {
          textRangeBuilder_.mergeFrom(value);
        }
        bitField0_ |= 0x00000001;
        return this;
      }
      /**
       * <code>optional .sonarqube.db.commons.TextRange text_range = 1;</code>
       */
      public Builder clearTextRange() {
        if (textRangeBuilder_ == null) {
          textRange_ = null;
          onChanged();
        } else {
          textRangeBuilder_.clear();
        }
        bitField0_ = (bitField0_ & ~0x00000001);
        return this;
      }
      /**
       * <code>optional .sonarqube.db.commons.TextRange text_range = 1;</code>
       */
      public DbCommons.TextRange.Builder getTextRangeBuilder() {
        bitField0_ |= 0x00000001;
        onChanged();
        return getTextRangeFieldBuilder().getBuilder();
      }
      /**
       * <code>optional .sonarqube.db.commons.TextRange text_range = 1;</code>
       */
      public DbCommons.TextRangeOrBuilder getTextRangeOrBuilder() {
        if (textRangeBuilder_ != null) {
          return textRangeBuilder_.getMessageOrBuilder();
        } else {
          return textRange_ == null ?
              DbCommons.TextRange.getDefaultInstance() : textRange_;
        }
      }
      /**
       * <code>optional .sonarqube.db.commons.TextRange text_range = 1;</code>
       */
      private com.google.protobuf.SingleFieldBuilderV3<
          DbCommons.TextRange, DbCommons.TextRange.Builder, DbCommons.TextRangeOrBuilder>
          getTextRangeFieldBuilder() {
        if (textRangeBuilder_ == null) {
          textRangeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
              DbCommons.TextRange, DbCommons.TextRange.Builder, DbCommons.TextRangeOrBuilder>(
                  getTextRange(),
                  getParentForChildren(),
                  isClean());
          textRange_ = null;
        }
        return textRangeBuilder_;
      }

      private java.util.List<Flow> flow_ =
        java.util.Collections.emptyList();
      private void ensureFlowIsMutable() {
        if (!((bitField0_ & 0x00000002) != 0)) {
          flow_ = new java.util.ArrayList<Flow>(flow_);
          bitField0_ |= 0x00000002;
         }
      }

      private com.google.protobuf.RepeatedFieldBuilderV3<
          Flow, Flow.Builder, FlowOrBuilder> flowBuilder_;

      /**
       * <code>repeated .sonarqube.db.issues.Flow flow = 2;</code>
       */
      public java.util.List<Flow> getFlowList() {
        if (flowBuilder_ == null) {
          return java.util.Collections.unmodifiableList(flow_);
        } else {
          return flowBuilder_.getMessageList();
        }
      }
      /**
       * <code>repeated .sonarqube.db.issues.Flow flow = 2;</code>
       */
      public int getFlowCount() {
        if (flowBuilder_ == null) {
          return flow_.size();
        } else {
          return flowBuilder_.getCount();
        }
      }
      /**
       * <code>repeated .sonarqube.db.issues.Flow flow = 2;</code>
       */
      public Flow getFlow(int index) {
        if (flowBuilder_ == null) {
          return flow_.get(index);
        } else {
          return flowBuilder_.getMessage(index);
        }
      }
      /**
       * <code>repeated .sonarqube.db.issues.Flow flow = 2;</code>
       */
      public Builder setFlow(
          int index, Flow value) {
        if (flowBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureFlowIsMutable();
          flow_.set(index, value);
          onChanged();
        } else {
          flowBuilder_.setMessage(index, value);
        }
        return this;
      }
      /**
       * <code>repeated .sonarqube.db.issues.Flow flow = 2;</code>
       */
      public Builder setFlow(
          int index, Flow.Builder builderForValue) {
        if (flowBuilder_ == null) {
          ensureFlowIsMutable();
          flow_.set(index, builderForValue.build());
          onChanged();
        } else {
          flowBuilder_.setMessage(index, builderForValue.build());
        }
        return this;
      }
      /**
       * <code>repeated .sonarqube.db.issues.Flow flow = 2;</code>
       */
      public Builder addFlow(Flow value) {
        if (flowBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureFlowIsMutable();
          flow_.add(value);
          onChanged();
        } else {
          flowBuilder_.addMessage(value);
        }
        return this;
      }
      /**
       * <code>repeated .sonarqube.db.issues.Flow flow = 2;</code>
       */
      public Builder addFlow(
          int index, Flow value) {
        if (flowBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureFlowIsMutable();
          flow_.add(index, value);
          onChanged();
        } else {
          flowBuilder_.addMessage(index, value);
        }
        return this;
      }
      /**
       * <code>repeated .sonarqube.db.issues.Flow flow = 2;</code>
       */
      public Builder addFlow(
          Flow.Builder builderForValue) {
        if (flowBuilder_ == null) {
          ensureFlowIsMutable();
          flow_.add(builderForValue.build());
          onChanged();
        } else {
          flowBuilder_.addMessage(builderForValue.build());
        }
        return this;
      }
      /**
       * <code>repeated .sonarqube.db.issues.Flow flow = 2;</code>
       */
      public Builder addFlow(
          int index, Flow.Builder builderForValue) {
        if (flowBuilder_ == null) {
          ensureFlowIsMutable();
          flow_.add(index, builderForValue.build());
          onChanged();
        } else {
          flowBuilder_.addMessage(index, builderForValue.build());
        }
        return this;
      }
      /**
       * <code>repeated .sonarqube.db.issues.Flow flow = 2;</code>
       */
      public Builder addAllFlow(
          Iterable<? extends Flow> values) {
        if (flowBuilder_ == null) {
          ensureFlowIsMutable();
          com.google.protobuf.AbstractMessageLite.Builder.addAll(
              values, flow_);
          onChanged();
        } else {
          flowBuilder_.addAllMessages(values);
        }
        return this;
      }
      /**
       * <code>repeated .sonarqube.db.issues.Flow flow = 2;</code>
       */
      public Builder clearFlow() {
        if (flowBuilder_ == null) {
          flow_ = java.util.Collections.emptyList();
          bitField0_ = (bitField0_ & ~0x00000002);
          onChanged();
        } else {
          flowBuilder_.clear();
        }
        return this;
      }
      /**
       * <code>repeated .sonarqube.db.issues.Flow flow = 2;</code>
       */
      public Builder removeFlow(int index) {
        if (flowBuilder_ == null) {
          ensureFlowIsMutable();
          flow_.remove(index);
          onChanged();
        } else {
          flowBuilder_.remove(index);
        }
        return this;
      }
      /**
       * <code>repeated .sonarqube.db.issues.Flow flow = 2;</code>
       */
      public Flow.Builder getFlowBuilder(
          int index) {
        return getFlowFieldBuilder().getBuilder(index);
      }
      /**
       * <code>repeated .sonarqube.db.issues.Flow flow = 2;</code>
       */
      public FlowOrBuilder getFlowOrBuilder(
          int index) {
        if (flowBuilder_ == null) {
          return flow_.get(index);  } else {
          return flowBuilder_.getMessageOrBuilder(index);
        }
      }
      /**
       * <code>repeated .sonarqube.db.issues.Flow flow = 2;</code>
       */
      public java.util.List<? extends FlowOrBuilder>
           getFlowOrBuilderList() {
        if (flowBuilder_ != null) {
          return flowBuilder_.getMessageOrBuilderList();
        } else {
          return java.util.Collections.unmodifiableList(flow_);
        }
      }
      /**
       * <code>repeated .sonarqube.db.issues.Flow flow = 2;</code>
       */
      public Flow.Builder addFlowBuilder() {
        return getFlowFieldBuilder().addBuilder(
            Flow.getDefaultInstance());
      }
      /**
       * <code>repeated .sonarqube.db.issues.Flow flow = 2;</code>
       */
      public Flow.Builder addFlowBuilder(
          int index) {
        return getFlowFieldBuilder().addBuilder(
            index, Flow.getDefaultInstance());
      }
      /**
       * <code>repeated .sonarqube.db.issues.Flow flow = 2;</code>
       */
      public java.util.List<Flow.Builder>
           getFlowBuilderList() {
        return getFlowFieldBuilder().getBuilderList();
      }
      private com.google.protobuf.RepeatedFieldBuilderV3<
          Flow, Flow.Builder, FlowOrBuilder>
          getFlowFieldBuilder() {
        if (flowBuilder_ == null) {
          flowBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
              Flow, Flow.Builder, FlowOrBuilder>(
                  flow_,
                  ((bitField0_ & 0x00000002) != 0),
                  getParentForChildren(),
                  isClean());
          flow_ = null;
        }
        return flowBuilder_;
      }
      @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.issues.Locations)
    }

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

    public static Locations getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

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

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

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

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

  }

  public interface FlowOrBuilder extends
      // @@protoc_insertion_point(interface_extends:sonarqube.db.issues.Flow)
      com.google.protobuf.MessageOrBuilder {

    /**
     * <code>repeated .sonarqube.db.issues.Location location = 1;</code>
     */
    java.util.List<Location>
        getLocationList();
    /**
     * <code>repeated .sonarqube.db.issues.Location location = 1;</code>
     */
    Location getLocation(int index);
    /**
     * <code>repeated .sonarqube.db.issues.Location location = 1;</code>
     */
    int getLocationCount();
    /**
     * <code>repeated .sonarqube.db.issues.Location location = 1;</code>
     */
    java.util.List<? extends LocationOrBuilder>
        getLocationOrBuilderList();
    /**
     * <code>repeated .sonarqube.db.issues.Location location = 1;</code>
     */
    LocationOrBuilder getLocationOrBuilder(
        int index);
  }
  /**
   * Protobuf type {@code sonarqube.db.issues.Flow}
   */
  public static final class Flow extends
      com.google.protobuf.GeneratedMessageV3 implements
      // @@protoc_insertion_point(message_implements:sonarqube.db.issues.Flow)
      FlowOrBuilder {
  private static final long serialVersionUID = 0L;
    // Use Flow.newBuilder() to construct.
    private Flow(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
      super(builder);
    }
    private Flow() {
      location_ = java.util.Collections.emptyList();
    }

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

    @Override
    public final com.google.protobuf.UnknownFieldSet
    getUnknownFields() {
      return this.unknownFields;
    }
    private Flow(
        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 10: {
              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
                location_ = new java.util.ArrayList<Location>();
                mutable_bitField0_ |= 0x00000001;
              }
              location_.add(
                  input.readMessage(Location.PARSER, extensionRegistry));
              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 {
        if (((mutable_bitField0_ & 0x00000001) != 0)) {
          location_ = java.util.Collections.unmodifiableList(location_);
        }
        this.unknownFields = unknownFields.build();
        makeExtensionsImmutable();
      }
    }
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return net.educoder.ecsonar.protobuf.DbIssues.internal_static_sonarqube_db_issues_Flow_descriptor;
    }

    @Override
    protected FieldAccessorTable
        internalGetFieldAccessorTable() {
      return net.educoder.ecsonar.protobuf.DbIssues.internal_static_sonarqube_db_issues_Flow_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              Flow.class, Builder.class);
    }

    public static final int LOCATION_FIELD_NUMBER = 1;
    private java.util.List<Location> location_;
    /**
     * <code>repeated .sonarqube.db.issues.Location location = 1;</code>
     */
    @Override
    public java.util.List<Location> getLocationList() {
      return location_;
    }
    /**
     * <code>repeated .sonarqube.db.issues.Location location = 1;</code>
     */
    @Override
    public java.util.List<? extends LocationOrBuilder>
        getLocationOrBuilderList() {
      return location_;
    }
    /**
     * <code>repeated .sonarqube.db.issues.Location location = 1;</code>
     */
    @Override
    public int getLocationCount() {
      return location_.size();
    }
    /**
     * <code>repeated .sonarqube.db.issues.Location location = 1;</code>
     */
    @Override
    public Location getLocation(int index) {
      return location_.get(index);
    }
    /**
     * <code>repeated .sonarqube.db.issues.Location location = 1;</code>
     */
    @Override
    public LocationOrBuilder getLocationOrBuilder(
        int index) {
      return location_.get(index);
    }

    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 {
      for (int i = 0; i < location_.size(); i++) {
        output.writeMessage(1, location_.get(i));
      }
      unknownFields.writeTo(output);
    }

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

      size = 0;
      for (int i = 0; i < location_.size(); i++) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(1, location_.get(i));
      }
      size += unknownFields.getSerializedSize();
      memoizedSize = size;
      return size;
    }

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

      if (!getLocationList()
          .equals(other.getLocationList())) 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 (getLocationCount() > 0) {
        hash = (37 * hash) + LOCATION_FIELD_NUMBER;
        hash = (53 * hash) + getLocationList().hashCode();
      }
      hash = (29 * hash) + unknownFields.hashCode();
      memoizedHashCode = hash;
      return hash;
    }

    public static Flow parseFrom(
        java.nio.ByteBuffer data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static Flow parseFrom(
        java.nio.ByteBuffer data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static Flow parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static Flow parseFrom(
        com.google.protobuf.ByteString data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static Flow parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static Flow parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static Flow parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static Flow 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 Flow parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseDelimitedWithIOException(PARSER, input);
    }
    public static Flow 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 Flow parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static Flow 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(Flow 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;
    }
    /**
     * Protobuf type {@code sonarqube.db.issues.Flow}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
        // @@protoc_insertion_point(builder_implements:sonarqube.db.issues.Flow)
        FlowOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return net.educoder.ecsonar.protobuf.DbIssues.internal_static_sonarqube_db_issues_Flow_descriptor;
      }

      @Override
      protected FieldAccessorTable
          internalGetFieldAccessorTable() {
        return net.educoder.ecsonar.protobuf.DbIssues.internal_static_sonarqube_db_issues_Flow_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                Flow.class, Builder.class);
      }

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

      private Builder(
          BuilderParent parent) {
        super(parent);
        maybeForceBuilderInitialization();
      }
      private void maybeForceBuilderInitialization() {
        if (com.google.protobuf.GeneratedMessageV3
                .alwaysUseFieldBuilders) {
          getLocationFieldBuilder();
        }
      }
      @Override
      public Builder clear() {
        super.clear();
        if (locationBuilder_ == null) {
          location_ = java.util.Collections.emptyList();
          bitField0_ = (bitField0_ & ~0x00000001);
        } else {
          locationBuilder_.clear();
        }
        return this;
      }

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

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

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

      @Override
      public Flow buildPartial() {
        Flow result = new Flow(this);
        int from_bitField0_ = bitField0_;
        if (locationBuilder_ == null) {
          if (((bitField0_ & 0x00000001) != 0)) {
            location_ = java.util.Collections.unmodifiableList(location_);
            bitField0_ = (bitField0_ & ~0x00000001);
          }
          result.location_ = location_;
        } else {
          result.location_ = locationBuilder_.build();
        }
        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 Flow) {
          return mergeFrom((Flow)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(Flow other) {
        if (other == Flow.getDefaultInstance()) return this;
        if (locationBuilder_ == null) {
          if (!other.location_.isEmpty()) {
            if (location_.isEmpty()) {
              location_ = other.location_;
              bitField0_ = (bitField0_ & ~0x00000001);
            } else {
              ensureLocationIsMutable();
              location_.addAll(other.location_);
            }
            onChanged();
          }
        } else {
          if (!other.location_.isEmpty()) {
            if (locationBuilder_.isEmpty()) {
              locationBuilder_.dispose();
              locationBuilder_ = null;
              location_ = other.location_;
              bitField0_ = (bitField0_ & ~0x00000001);
              locationBuilder_ =
                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
                   getLocationFieldBuilder() : null;
            } else {
              locationBuilder_.addAllMessages(other.location_);
            }
          }
        }
        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 {
        Flow parsedMessage = null;
        try {
          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          parsedMessage = (Flow) e.getUnfinishedMessage();
          throw e.unwrapIOException();
        } finally {
          if (parsedMessage != null) {
            mergeFrom(parsedMessage);
          }
        }
        return this;
      }
      private int bitField0_;

      private java.util.List<Location> location_ =
        java.util.Collections.emptyList();
      private void ensureLocationIsMutable() {
        if (!((bitField0_ & 0x00000001) != 0)) {
          location_ = new java.util.ArrayList<Location>(location_);
          bitField0_ |= 0x00000001;
         }
      }

      private com.google.protobuf.RepeatedFieldBuilderV3<
          Location, Location.Builder, LocationOrBuilder> locationBuilder_;

      /**
       * <code>repeated .sonarqube.db.issues.Location location = 1;</code>
       */
      public java.util.List<Location> getLocationList() {
        if (locationBuilder_ == null) {
          return java.util.Collections.unmodifiableList(location_);
        } else {
          return locationBuilder_.getMessageList();
        }
      }
      /**
       * <code>repeated .sonarqube.db.issues.Location location = 1;</code>
       */
      public int getLocationCount() {
        if (locationBuilder_ == null) {
          return location_.size();
        } else {
          return locationBuilder_.getCount();
        }
      }
      /**
       * <code>repeated .sonarqube.db.issues.Location location = 1;</code>
       */
      public Location getLocation(int index) {
        if (locationBuilder_ == null) {
          return location_.get(index);
        } else {
          return locationBuilder_.getMessage(index);
        }
      }
      /**
       * <code>repeated .sonarqube.db.issues.Location location = 1;</code>
       */
      public Builder setLocation(
          int index, Location value) {
        if (locationBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureLocationIsMutable();
          location_.set(index, value);
          onChanged();
        } else {
          locationBuilder_.setMessage(index, value);
        }
        return this;
      }
      /**
       * <code>repeated .sonarqube.db.issues.Location location = 1;</code>
       */
      public Builder setLocation(
          int index, Location.Builder builderForValue) {
        if (locationBuilder_ == null) {
          ensureLocationIsMutable();
          location_.set(index, builderForValue.build());
          onChanged();
        } else {
          locationBuilder_.setMessage(index, builderForValue.build());
        }
        return this;
      }
      /**
       * <code>repeated .sonarqube.db.issues.Location location = 1;</code>
       */
      public Builder addLocation(Location value) {
        if (locationBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureLocationIsMutable();
          location_.add(value);
          onChanged();
        } else {
          locationBuilder_.addMessage(value);
        }
        return this;
      }
      /**
       * <code>repeated .sonarqube.db.issues.Location location = 1;</code>
       */
      public Builder addLocation(
          int index, Location value) {
        if (locationBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureLocationIsMutable();
          location_.add(index, value);
          onChanged();
        } else {
          locationBuilder_.addMessage(index, value);
        }
        return this;
      }
      /**
       * <code>repeated .sonarqube.db.issues.Location location = 1;</code>
       */
      public Builder addLocation(
          Location.Builder builderForValue) {
        if (locationBuilder_ == null) {
          ensureLocationIsMutable();
          location_.add(builderForValue.build());
          onChanged();
        } else {
          locationBuilder_.addMessage(builderForValue.build());
        }
        return this;
      }
      /**
       * <code>repeated .sonarqube.db.issues.Location location = 1;</code>
       */
      public Builder addLocation(
          int index, Location.Builder builderForValue) {
        if (locationBuilder_ == null) {
          ensureLocationIsMutable();
          location_.add(index, builderForValue.build());
          onChanged();
        } else {
          locationBuilder_.addMessage(index, builderForValue.build());
        }
        return this;
      }
      /**
       * <code>repeated .sonarqube.db.issues.Location location = 1;</code>
       */
      public Builder addAllLocation(
          Iterable<? extends Location> values) {
        if (locationBuilder_ == null) {
          ensureLocationIsMutable();
          com.google.protobuf.AbstractMessageLite.Builder.addAll(
              values, location_);
          onChanged();
        } else {
          locationBuilder_.addAllMessages(values);
        }
        return this;
      }
      /**
       * <code>repeated .sonarqube.db.issues.Location location = 1;</code>
       */
      public Builder clearLocation() {
        if (locationBuilder_ == null) {
          location_ = java.util.Collections.emptyList();
          bitField0_ = (bitField0_ & ~0x00000001);
          onChanged();
        } else {
          locationBuilder_.clear();
        }
        return this;
      }
      /**
       * <code>repeated .sonarqube.db.issues.Location location = 1;</code>
       */
      public Builder removeLocation(int index) {
        if (locationBuilder_ == null) {
          ensureLocationIsMutable();
          location_.remove(index);
          onChanged();
        } else {
          locationBuilder_.remove(index);
        }
        return this;
      }
      /**
       * <code>repeated .sonarqube.db.issues.Location location = 1;</code>
       */
      public Location.Builder getLocationBuilder(
          int index) {
        return getLocationFieldBuilder().getBuilder(index);
      }
      /**
       * <code>repeated .sonarqube.db.issues.Location location = 1;</code>
       */
      public LocationOrBuilder getLocationOrBuilder(
          int index) {
        if (locationBuilder_ == null) {
          return location_.get(index);  } else {
          return locationBuilder_.getMessageOrBuilder(index);
        }
      }
      /**
       * <code>repeated .sonarqube.db.issues.Location location = 1;</code>
       */
      public java.util.List<? extends LocationOrBuilder>
           getLocationOrBuilderList() {
        if (locationBuilder_ != null) {
          return locationBuilder_.getMessageOrBuilderList();
        } else {
          return java.util.Collections.unmodifiableList(location_);
        }
      }
      /**
       * <code>repeated .sonarqube.db.issues.Location location = 1;</code>
       */
      public Location.Builder addLocationBuilder() {
        return getLocationFieldBuilder().addBuilder(
            Location.getDefaultInstance());
      }
      /**
       * <code>repeated .sonarqube.db.issues.Location location = 1;</code>
       */
      public Location.Builder addLocationBuilder(
          int index) {
        return getLocationFieldBuilder().addBuilder(
            index, Location.getDefaultInstance());
      }
      /**
       * <code>repeated .sonarqube.db.issues.Location location = 1;</code>
       */
      public java.util.List<Location.Builder>
           getLocationBuilderList() {
        return getLocationFieldBuilder().getBuilderList();
      }
      private com.google.protobuf.RepeatedFieldBuilderV3<
          Location, Location.Builder, LocationOrBuilder>
          getLocationFieldBuilder() {
        if (locationBuilder_ == null) {
          locationBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
              Location, Location.Builder, LocationOrBuilder>(
                  location_,
                  ((bitField0_ & 0x00000001) != 0),
                  getParentForChildren(),
                  isClean());
          location_ = null;
        }
        return locationBuilder_;
      }
      @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.issues.Flow)
    }

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

    public static Flow getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

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

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

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

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

  }

  public interface LocationOrBuilder extends
      // @@protoc_insertion_point(interface_extends:sonarqube.db.issues.Location)
      com.google.protobuf.MessageOrBuilder {

    /**
     * <code>optional string component_id = 1;</code>
     * @return Whether the componentId field is set.
     */
    boolean hasComponentId();
    /**
     * <code>optional string component_id = 1;</code>
     * @return The componentId.
     */
    String getComponentId();
    /**
     * <code>optional string component_id = 1;</code>
     * @return The bytes for componentId.
     */
    com.google.protobuf.ByteString
        getComponentIdBytes();

    /**
     * <pre>
     * Only when component is a file. Can be empty for a file if this is an issue global to the file.
     * </pre>
     *
     * <code>optional .sonarqube.db.commons.TextRange text_range = 2;</code>
     * @return Whether the textRange field is set.
     */
    boolean hasTextRange();
    /**
     * <pre>
     * Only when component is a file. Can be empty for a file if this is an issue global to the file.
     * </pre>
     *
     * <code>optional .sonarqube.db.commons.TextRange text_range = 2;</code>
     * @return The textRange.
     */
    DbCommons.TextRange getTextRange();
    /**
     * <pre>
     * Only when component is a file. Can be empty for a file if this is an issue global to the file.
     * </pre>
     *
     * <code>optional .sonarqube.db.commons.TextRange text_range = 2;</code>
     */
    DbCommons.TextRangeOrBuilder getTextRangeOrBuilder();

    /**
     * <code>optional string msg = 3;</code>
     * @return Whether the msg field is set.
     */
    boolean hasMsg();
    /**
     * <code>optional string msg = 3;</code>
     * @return The msg.
     */
    String getMsg();
    /**
     * <code>optional string msg = 3;</code>
     * @return The bytes for msg.
     */
    com.google.protobuf.ByteString
        getMsgBytes();
  }
  /**
   * Protobuf type {@code sonarqube.db.issues.Location}
   */
  public static final class Location extends
      com.google.protobuf.GeneratedMessageV3 implements
      // @@protoc_insertion_point(message_implements:sonarqube.db.issues.Location)
      LocationOrBuilder {
  private static final long serialVersionUID = 0L;
    // Use Location.newBuilder() to construct.
    private Location(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
      super(builder);
    }
    private Location() {
      componentId_ = "";
      msg_ = "";
    }

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

    @Override
    public final com.google.protobuf.UnknownFieldSet
    getUnknownFields() {
      return this.unknownFields;
    }
    private Location(
        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 10: {
              com.google.protobuf.ByteString bs = input.readBytes();
              bitField0_ |= 0x00000001;
              componentId_ = bs;
              break;
            }
            case 18: {
              DbCommons.TextRange.Builder subBuilder = null;
              if (((bitField0_ & 0x00000002) != 0)) {
                subBuilder = textRange_.toBuilder();
              }
              textRange_ = input.readMessage(DbCommons.TextRange.PARSER, extensionRegistry);
              if (subBuilder != null) {
                subBuilder.mergeFrom(textRange_);
                textRange_ = subBuilder.buildPartial();
              }
              bitField0_ |= 0x00000002;
              break;
            }
            case 26: {
              com.google.protobuf.ByteString bs = input.readBytes();
              bitField0_ |= 0x00000004;
              msg_ = bs;
              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.DbIssues.internal_static_sonarqube_db_issues_Location_descriptor;
    }

    @Override
    protected FieldAccessorTable
        internalGetFieldAccessorTable() {
      return net.educoder.ecsonar.protobuf.DbIssues.internal_static_sonarqube_db_issues_Location_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              Location.class, Builder.class);
    }

    private int bitField0_;
    public static final int COMPONENT_ID_FIELD_NUMBER = 1;
    private volatile Object componentId_;
    /**
     * <code>optional string component_id = 1;</code>
     * @return Whether the componentId field is set.
     */
    @Override
    public boolean hasComponentId() {
      return ((bitField0_ & 0x00000001) != 0);
    }
    /**
     * <code>optional string component_id = 1;</code>
     * @return The componentId.
     */
    @Override
    public String getComponentId() {
      Object ref = componentId_;
      if (ref instanceof String) {
        return (String) ref;
      } else {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        String s = bs.toStringUtf8();
        if (bs.isValidUtf8()) {
          componentId_ = s;
        }
        return s;
      }
    }
    /**
     * <code>optional string component_id = 1;</code>
     * @return The bytes for componentId.
     */
    @Override
    public com.google.protobuf.ByteString
        getComponentIdBytes() {
      Object ref = componentId_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b =
            com.google.protobuf.ByteString.copyFromUtf8(
                (String) ref);
        componentId_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }

    public static final int TEXT_RANGE_FIELD_NUMBER = 2;
    private DbCommons.TextRange textRange_;
    /**
     * <pre>
     * Only when component is a file. Can be empty for a file if this is an issue global to the file.
     * </pre>
     *
     * <code>optional .sonarqube.db.commons.TextRange text_range = 2;</code>
     * @return Whether the textRange field is set.
     */
    @Override
    public boolean hasTextRange() {
      return ((bitField0_ & 0x00000002) != 0);
    }
    /**
     * <pre>
     * Only when component is a file. Can be empty for a file if this is an issue global to the file.
     * </pre>
     *
     * <code>optional .sonarqube.db.commons.TextRange text_range = 2;</code>
     * @return The textRange.
     */
    @Override
    public DbCommons.TextRange getTextRange() {
      return textRange_ == null ? DbCommons.TextRange.getDefaultInstance() : textRange_;
    }
    /**
     * <pre>
     * Only when component is a file. Can be empty for a file if this is an issue global to the file.
     * </pre>
     *
     * <code>optional .sonarqube.db.commons.TextRange text_range = 2;</code>
     */
    @Override
    public DbCommons.TextRangeOrBuilder getTextRangeOrBuilder() {
      return textRange_ == null ? DbCommons.TextRange.getDefaultInstance() : textRange_;
    }

    public static final int MSG_FIELD_NUMBER = 3;
    private volatile Object msg_;
    /**
     * <code>optional string msg = 3;</code>
     * @return Whether the msg field is set.
     */
    @Override
    public boolean hasMsg() {
      return ((bitField0_ & 0x00000004) != 0);
    }
    /**
     * <code>optional string msg = 3;</code>
     * @return The msg.
     */
    @Override
    public String getMsg() {
      Object ref = msg_;
      if (ref instanceof String) {
        return (String) ref;
      } else {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        String s = bs.toStringUtf8();
        if (bs.isValidUtf8()) {
          msg_ = s;
        }
        return s;
      }
    }
    /**
     * <code>optional string msg = 3;</code>
     * @return The bytes for msg.
     */
    @Override
    public com.google.protobuf.ByteString
        getMsgBytes() {
      Object ref = msg_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b =
            com.google.protobuf.ByteString.copyFromUtf8(
                (String) ref);
        msg_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }

    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)) {
        com.google.protobuf.GeneratedMessageV3.writeString(output, 1, componentId_);
      }
      if (((bitField0_ & 0x00000002) != 0)) {
        output.writeMessage(2, getTextRange());
      }
      if (((bitField0_ & 0x00000004) != 0)) {
        com.google.protobuf.GeneratedMessageV3.writeString(output, 3, msg_);
      }
      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.GeneratedMessageV3.computeStringSize(1, componentId_);
      }
      if (((bitField0_ & 0x00000002) != 0)) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(2, getTextRange());
      }
      if (((bitField0_ & 0x00000004) != 0)) {
        size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, msg_);
      }
      size += unknownFields.getSerializedSize();
      memoizedSize = size;
      return size;
    }

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

      if (hasComponentId() != other.hasComponentId()) return false;
      if (hasComponentId()) {
        if (!getComponentId()
            .equals(other.getComponentId())) return false;
      }
      if (hasTextRange() != other.hasTextRange()) return false;
      if (hasTextRange()) {
        if (!getTextRange()
            .equals(other.getTextRange())) return false;
      }
      if (hasMsg() != other.hasMsg()) return false;
      if (hasMsg()) {
        if (!getMsg()
            .equals(other.getMsg())) 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 (hasComponentId()) {
        hash = (37 * hash) + COMPONENT_ID_FIELD_NUMBER;
        hash = (53 * hash) + getComponentId().hashCode();
      }
      if (hasTextRange()) {
        hash = (37 * hash) + TEXT_RANGE_FIELD_NUMBER;
        hash = (53 * hash) + getTextRange().hashCode();
      }
      if (hasMsg()) {
        hash = (37 * hash) + MSG_FIELD_NUMBER;
        hash = (53 * hash) + getMsg().hashCode();
      }
      hash = (29 * hash) + unknownFields.hashCode();
      memoizedHashCode = hash;
      return hash;
    }

    public static Location parseFrom(
        java.nio.ByteBuffer data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static Location parseFrom(
        java.nio.ByteBuffer data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static Location parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static Location parseFrom(
        com.google.protobuf.ByteString data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static Location parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static Location parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static Location parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static Location 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 Location parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseDelimitedWithIOException(PARSER, input);
    }
    public static Location 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 Location parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static Location 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(Location 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;
    }
    /**
     * Protobuf type {@code sonarqube.db.issues.Location}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
        // @@protoc_insertion_point(builder_implements:sonarqube.db.issues.Location)
        LocationOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return net.educoder.ecsonar.protobuf.DbIssues.internal_static_sonarqube_db_issues_Location_descriptor;
      }

      @Override
      protected FieldAccessorTable
          internalGetFieldAccessorTable() {
        return net.educoder.ecsonar.protobuf.DbIssues.internal_static_sonarqube_db_issues_Location_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                Location.class, Builder.class);
      }

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

      private Builder(
          BuilderParent parent) {
        super(parent);
        maybeForceBuilderInitialization();
      }
      private void maybeForceBuilderInitialization() {
        if (com.google.protobuf.GeneratedMessageV3
                .alwaysUseFieldBuilders) {
          getTextRangeFieldBuilder();
        }
      }
      @Override
      public Builder clear() {
        super.clear();
        componentId_ = "";
        bitField0_ = (bitField0_ & ~0x00000001);
        if (textRangeBuilder_ == null) {
          textRange_ = null;
        } else {
          textRangeBuilder_.clear();
        }
        bitField0_ = (bitField0_ & ~0x00000002);
        msg_ = "";
        bitField0_ = (bitField0_ & ~0x00000004);
        return this;
      }

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

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

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

      @Override
      public Location buildPartial() {
        Location result = new Location(this);
        int from_bitField0_ = bitField0_;
        int to_bitField0_ = 0;
        if (((from_bitField0_ & 0x00000001) != 0)) {
          to_bitField0_ |= 0x00000001;
        }
        result.componentId_ = componentId_;
        if (((from_bitField0_ & 0x00000002) != 0)) {
          if (textRangeBuilder_ == null) {
            result.textRange_ = textRange_;
          } else {
            result.textRange_ = textRangeBuilder_.build();
          }
          to_bitField0_ |= 0x00000002;
        }
        if (((from_bitField0_ & 0x00000004) != 0)) {
          to_bitField0_ |= 0x00000004;
        }
        result.msg_ = msg_;
        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 Location) {
          return mergeFrom((Location)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(Location other) {
        if (other == Location.getDefaultInstance()) return this;
        if (other.hasComponentId()) {
          bitField0_ |= 0x00000001;
          componentId_ = other.componentId_;
          onChanged();
        }
        if (other.hasTextRange()) {
          mergeTextRange(other.getTextRange());
        }
        if (other.hasMsg()) {
          bitField0_ |= 0x00000004;
          msg_ = other.msg_;
          onChanged();
        }
        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 {
        Location parsedMessage = null;
        try {
          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          parsedMessage = (Location) e.getUnfinishedMessage();
          throw e.unwrapIOException();
        } finally {
          if (parsedMessage != null) {
            mergeFrom(parsedMessage);
          }
        }
        return this;
      }
      private int bitField0_;

      private Object componentId_ = "";
      /**
       * <code>optional string component_id = 1;</code>
       * @return Whether the componentId field is set.
       */
      public boolean hasComponentId() {
        return ((bitField0_ & 0x00000001) != 0);
      }
      /**
       * <code>optional string component_id = 1;</code>
       * @return The componentId.
       */
      public String getComponentId() {
        Object ref = componentId_;
        if (!(ref instanceof String)) {
          com.google.protobuf.ByteString bs =
              (com.google.protobuf.ByteString) ref;
          String s = bs.toStringUtf8();
          if (bs.isValidUtf8()) {
            componentId_ = s;
          }
          return s;
        } else {
          return (String) ref;
        }
      }
      /**
       * <code>optional string component_id = 1;</code>
       * @return The bytes for componentId.
       */
      public com.google.protobuf.ByteString
          getComponentIdBytes() {
        Object ref = componentId_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b =
              com.google.protobuf.ByteString.copyFromUtf8(
                  (String) ref);
          componentId_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       * <code>optional string component_id = 1;</code>
       * @param value The componentId to set.
       * @return This builder for chaining.
       */
      public Builder setComponentId(
          String value) {
        if (value == null) {
    throw new NullPointerException();
  }
  bitField0_ |= 0x00000001;
        componentId_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>optional string component_id = 1;</code>
       * @return This builder for chaining.
       */
      public Builder clearComponentId() {
        bitField0_ = (bitField0_ & ~0x00000001);
        componentId_ = getDefaultInstance().getComponentId();
        onChanged();
        return this;
      }
      /**
       * <code>optional string component_id = 1;</code>
       * @param value The bytes for componentId to set.
       * @return This builder for chaining.
       */
      public Builder setComponentIdBytes(
          com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  bitField0_ |= 0x00000001;
        componentId_ = value;
        onChanged();
        return this;
      }

      private DbCommons.TextRange textRange_;
      private com.google.protobuf.SingleFieldBuilderV3<
          DbCommons.TextRange, DbCommons.TextRange.Builder, DbCommons.TextRangeOrBuilder> textRangeBuilder_;
      /**
       * <pre>
       * Only when component is a file. Can be empty for a file if this is an issue global to the file.
       * </pre>
       *
       * <code>optional .sonarqube.db.commons.TextRange text_range = 2;</code>
       * @return Whether the textRange field is set.
       */
      public boolean hasTextRange() {
        return ((bitField0_ & 0x00000002) != 0);
      }
      /**
       * <pre>
       * Only when component is a file. Can be empty for a file if this is an issue global to the file.
       * </pre>
       *
       * <code>optional .sonarqube.db.commons.TextRange text_range = 2;</code>
       * @return The textRange.
       */
      public DbCommons.TextRange getTextRange() {
        if (textRangeBuilder_ == null) {
          return textRange_ == null ? DbCommons.TextRange.getDefaultInstance() : textRange_;
        } else {
          return textRangeBuilder_.getMessage();
        }
      }
      /**
       * <pre>
       * Only when component is a file. Can be empty for a file if this is an issue global to the file.
       * </pre>
       *
       * <code>optional .sonarqube.db.commons.TextRange text_range = 2;</code>
       */
      public Builder setTextRange(DbCommons.TextRange value) {
        if (textRangeBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          textRange_ = value;
          onChanged();
        } else {
          textRangeBuilder_.setMessage(value);
        }
        bitField0_ |= 0x00000002;
        return this;
      }
      /**
       * <pre>
       * Only when component is a file. Can be empty for a file if this is an issue global to the file.
       * </pre>
       *
       * <code>optional .sonarqube.db.commons.TextRange text_range = 2;</code>
       */
      public Builder setTextRange(
          DbCommons.TextRange.Builder builderForValue) {
        if (textRangeBuilder_ == null) {
          textRange_ = builderForValue.build();
          onChanged();
        } else {
          textRangeBuilder_.setMessage(builderForValue.build());
        }
        bitField0_ |= 0x00000002;
        return this;
      }
      /**
       * <pre>
       * Only when component is a file. Can be empty for a file if this is an issue global to the file.
       * </pre>
       *
       * <code>optional .sonarqube.db.commons.TextRange text_range = 2;</code>
       */
      public Builder mergeTextRange(DbCommons.TextRange value) {
        if (textRangeBuilder_ == null) {
          if (((bitField0_ & 0x00000002) != 0) &&
              textRange_ != null &&
              textRange_ != DbCommons.TextRange.getDefaultInstance()) {
            textRange_ =
              DbCommons.TextRange.newBuilder(textRange_).mergeFrom(value).buildPartial();
          } else {
            textRange_ = value;
          }
          onChanged();
        } else {
          textRangeBuilder_.mergeFrom(value);
        }
        bitField0_ |= 0x00000002;
        return this;
      }
      /**
       * <pre>
       * Only when component is a file. Can be empty for a file if this is an issue global to the file.
       * </pre>
       *
       * <code>optional .sonarqube.db.commons.TextRange text_range = 2;</code>
       */
      public Builder clearTextRange() {
        if (textRangeBuilder_ == null) {
          textRange_ = null;
          onChanged();
        } else {
          textRangeBuilder_.clear();
        }
        bitField0_ = (bitField0_ & ~0x00000002);
        return this;
      }
      /**
       * <pre>
       * Only when component is a file. Can be empty for a file if this is an issue global to the file.
       * </pre>
       *
       * <code>optional .sonarqube.db.commons.TextRange text_range = 2;</code>
       */
      public DbCommons.TextRange.Builder getTextRangeBuilder() {
        bitField0_ |= 0x00000002;
        onChanged();
        return getTextRangeFieldBuilder().getBuilder();
      }
      /**
       * <pre>
       * Only when component is a file. Can be empty for a file if this is an issue global to the file.
       * </pre>
       *
       * <code>optional .sonarqube.db.commons.TextRange text_range = 2;</code>
       */
      public DbCommons.TextRangeOrBuilder getTextRangeOrBuilder() {
        if (textRangeBuilder_ != null) {
          return textRangeBuilder_.getMessageOrBuilder();
        } else {
          return textRange_ == null ?
              DbCommons.TextRange.getDefaultInstance() : textRange_;
        }
      }
      /**
       * <pre>
       * Only when component is a file. Can be empty for a file if this is an issue global to the file.
       * </pre>
       *
       * <code>optional .sonarqube.db.commons.TextRange text_range = 2;</code>
       */
      private com.google.protobuf.SingleFieldBuilderV3<
          DbCommons.TextRange, DbCommons.TextRange.Builder, DbCommons.TextRangeOrBuilder>
          getTextRangeFieldBuilder() {
        if (textRangeBuilder_ == null) {
          textRangeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
              DbCommons.TextRange, DbCommons.TextRange.Builder, DbCommons.TextRangeOrBuilder>(
                  getTextRange(),
                  getParentForChildren(),
                  isClean());
          textRange_ = null;
        }
        return textRangeBuilder_;
      }

      private Object msg_ = "";
      /**
       * <code>optional string msg = 3;</code>
       * @return Whether the msg field is set.
       */
      public boolean hasMsg() {
        return ((bitField0_ & 0x00000004) != 0);
      }
      /**
       * <code>optional string msg = 3;</code>
       * @return The msg.
       */
      public String getMsg() {
        Object ref = msg_;
        if (!(ref instanceof String)) {
          com.google.protobuf.ByteString bs =
              (com.google.protobuf.ByteString) ref;
          String s = bs.toStringUtf8();
          if (bs.isValidUtf8()) {
            msg_ = s;
          }
          return s;
        } else {
          return (String) ref;
        }
      }
      /**
       * <code>optional string msg = 3;</code>
       * @return The bytes for msg.
       */
      public com.google.protobuf.ByteString
          getMsgBytes() {
        Object ref = msg_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b =
              com.google.protobuf.ByteString.copyFromUtf8(
                  (String) ref);
          msg_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       * <code>optional string msg = 3;</code>
       * @param value The msg to set.
       * @return This builder for chaining.
       */
      public Builder setMsg(
          String value) {
        if (value == null) {
    throw new NullPointerException();
  }
  bitField0_ |= 0x00000004;
        msg_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>optional string msg = 3;</code>
       * @return This builder for chaining.
       */
      public Builder clearMsg() {
        bitField0_ = (bitField0_ & ~0x00000004);
        msg_ = getDefaultInstance().getMsg();
        onChanged();
        return this;
      }
      /**
       * <code>optional string msg = 3;</code>
       * @param value The bytes for msg to set.
       * @return This builder for chaining.
       */
      public Builder setMsgBytes(
          com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  bitField0_ |= 0x00000004;
        msg_ = value;
        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.issues.Location)
    }

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

    public static Location getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

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

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

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

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

  }

  private static final com.google.protobuf.Descriptors.Descriptor
    internal_static_sonarqube_db_issues_Locations_descriptor;
  private static final
    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internal_static_sonarqube_db_issues_Locations_fieldAccessorTable;
  private static final com.google.protobuf.Descriptors.Descriptor
    internal_static_sonarqube_db_issues_Flow_descriptor;
  private static final
    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internal_static_sonarqube_db_issues_Flow_fieldAccessorTable;
  private static final com.google.protobuf.Descriptors.Descriptor
    internal_static_sonarqube_db_issues_Location_descriptor;
  private static final
    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internal_static_sonarqube_db_issues_Location_fieldAccessorTable;

  public static com.google.protobuf.Descriptors.FileDescriptor
      getDescriptor() {
    return descriptor;
  }
  private static  com.google.protobuf.Descriptors.FileDescriptor
      descriptor;
  static {
    String[] descriptorData = {
      "\n\017db-issues.proto\022\023sonarqube.db.issues\032\020" +
      "db-commons.proto\"i\n\tLocations\0223\n\ntext_ra" +
      "nge\030\001 \001(\0132\037.sonarqube.db.commons.TextRan" +
      "ge\022\'\n\004flow\030\002 \003(\0132\031.sonarqube.db.issues.F" +
      "low\"7\n\004Flow\022/\n\010location\030\001 \003(\0132\035.sonarqub" +
      "e.db.issues.Location\"b\n\010Location\022\024\n\014comp" +
      "onent_id\030\001 \001(\t\0223\n\ntext_range\030\002 \001(\0132\037.son" +
      "arqube.db.commons.TextRange\022\013\n\003msg\030\003 \001(\t" +
      "B!\n\035net.educoder.ecsonar.protobufH\001"
    };
    descriptor = com.google.protobuf.Descriptors.FileDescriptor
      .internalBuildGeneratedFileFrom(descriptorData,
        new com.google.protobuf.Descriptors.FileDescriptor[] {
          DbCommons.getDescriptor(),
        });
    internal_static_sonarqube_db_issues_Locations_descriptor =
      getDescriptor().getMessageTypes().get(0);
    internal_static_sonarqube_db_issues_Locations_fieldAccessorTable = new
      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
        internal_static_sonarqube_db_issues_Locations_descriptor,
        new String[] { "TextRange", "Flow", });
    internal_static_sonarqube_db_issues_Flow_descriptor =
      getDescriptor().getMessageTypes().get(1);
    internal_static_sonarqube_db_issues_Flow_fieldAccessorTable = new
      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
        internal_static_sonarqube_db_issues_Flow_descriptor,
        new String[] { "Location", });
    internal_static_sonarqube_db_issues_Location_descriptor =
      getDescriptor().getMessageTypes().get(2);
    internal_static_sonarqube_db_issues_Location_fieldAccessorTable = new
      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
        internal_static_sonarqube_db_issues_Location_descriptor,
        new String[] { "ComponentId", "TextRange", "Msg", });
    DbCommons.getDescriptor();
  }

  // @@protoc_insertion_point(outer_class_scope)
}
