All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.sonar.db.protobuf.DbIssues Maven / Gradle / Ivy

There is a newer version: 6.3.1
Show newest version
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: db-issues.proto

package org.sonar.db.protobuf;

public final class DbIssues {
  private DbIssues() {}
  public static void registerAllExtensions(
      com.google.protobuf.ExtensionRegistry registry) {
  }
  public interface LocationsOrBuilder extends
      // @@protoc_insertion_point(interface_extends:sonarqube.db.issues.Locations)
      com.google.protobuf.MessageOrBuilder {

    /**
     * optional .sonarqube.db.commons.TextRange text_range = 1;
     */
    boolean hasTextRange();
    /**
     * optional .sonarqube.db.commons.TextRange text_range = 1;
     */
    org.sonar.db.protobuf.DbCommons.TextRange getTextRange();
    /**
     * optional .sonarqube.db.commons.TextRange text_range = 1;
     */
    org.sonar.db.protobuf.DbCommons.TextRangeOrBuilder getTextRangeOrBuilder();

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

    @java.lang.Override
    public final com.google.protobuf.UnknownFieldSet
    getUnknownFields() {
      return this.unknownFields;
    }
    private Locations(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry) {
      this();
      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;
            default: {
              if (!parseUnknownField(input, unknownFields,
                                     extensionRegistry, tag)) {
                done = true;
              }
              break;
            }
            case 10: {
              org.sonar.db.protobuf.DbCommons.TextRange.Builder subBuilder = null;
              if (((bitField0_ & 0x00000001) == 0x00000001)) {
                subBuilder = textRange_.toBuilder();
              }
              textRange_ = input.readMessage(org.sonar.db.protobuf.DbCommons.TextRange.parser(), extensionRegistry);
              if (subBuilder != null) {
                subBuilder.mergeFrom(textRange_);
                textRange_ = subBuilder.buildPartial();
              }
              bitField0_ |= 0x00000001;
              break;
            }
            case 18: {
              if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
                flow_ = new java.util.ArrayList();
                mutable_bitField0_ |= 0x00000002;
              }
              flow_.add(input.readMessage(org.sonar.db.protobuf.DbIssues.Flow.parser(), extensionRegistry));
              break;
            }
          }
        }
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        throw new RuntimeException(e.setUnfinishedMessage(this));
      } catch (java.io.IOException e) {
        throw new RuntimeException(
            new com.google.protobuf.InvalidProtocolBufferException(
                e.getMessage()).setUnfinishedMessage(this));
      } finally {
        if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
          flow_ = java.util.Collections.unmodifiableList(flow_);
        }
        this.unknownFields = unknownFields.build();
        makeExtensionsImmutable();
      }
    }
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return org.sonar.db.protobuf.DbIssues.internal_static_sonarqube_db_issues_Locations_descriptor;
    }

    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return org.sonar.db.protobuf.DbIssues.internal_static_sonarqube_db_issues_Locations_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              org.sonar.db.protobuf.DbIssues.Locations.class, org.sonar.db.protobuf.DbIssues.Locations.Builder.class);
    }

    private int bitField0_;
    public static final int TEXT_RANGE_FIELD_NUMBER = 1;
    private org.sonar.db.protobuf.DbCommons.TextRange textRange_;
    /**
     * optional .sonarqube.db.commons.TextRange text_range = 1;
     */
    public boolean hasTextRange() {
      return ((bitField0_ & 0x00000001) == 0x00000001);
    }
    /**
     * optional .sonarqube.db.commons.TextRange text_range = 1;
     */
    public org.sonar.db.protobuf.DbCommons.TextRange getTextRange() {
      return textRange_ == null ? org.sonar.db.protobuf.DbCommons.TextRange.getDefaultInstance() : textRange_;
    }
    /**
     * optional .sonarqube.db.commons.TextRange text_range = 1;
     */
    public org.sonar.db.protobuf.DbCommons.TextRangeOrBuilder getTextRangeOrBuilder() {
      return textRange_ == null ? org.sonar.db.protobuf.DbCommons.TextRange.getDefaultInstance() : textRange_;
    }

    public static final int FLOW_FIELD_NUMBER = 2;
    private java.util.List flow_;
    /**
     * repeated .sonarqube.db.issues.Flow flow = 2;
     */
    public java.util.List getFlowList() {
      return flow_;
    }
    /**
     * repeated .sonarqube.db.issues.Flow flow = 2;
     */
    public java.util.List 
        getFlowOrBuilderList() {
      return flow_;
    }
    /**
     * repeated .sonarqube.db.issues.Flow flow = 2;
     */
    public int getFlowCount() {
      return flow_.size();
    }
    /**
     * repeated .sonarqube.db.issues.Flow flow = 2;
     */
    public org.sonar.db.protobuf.DbIssues.Flow getFlow(int index) {
      return flow_.get(index);
    }
    /**
     * repeated .sonarqube.db.issues.Flow flow = 2;
     */
    public org.sonar.db.protobuf.DbIssues.FlowOrBuilder getFlowOrBuilder(
        int index) {
      return flow_.get(index);
    }

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

      memoizedIsInitialized = 1;
      return true;
    }

    public void writeTo(com.google.protobuf.CodedOutputStream output)
                        throws java.io.IOException {
      if (((bitField0_ & 0x00000001) == 0x00000001)) {
        output.writeMessage(1, getTextRange());
      }
      for (int i = 0; i < flow_.size(); i++) {
        output.writeMessage(2, flow_.get(i));
      }
      unknownFields.writeTo(output);
    }

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

      size = 0;
      if (((bitField0_ & 0x00000001) == 0x00000001)) {
        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;
    }

    private static final long serialVersionUID = 0L;
    public static org.sonar.db.protobuf.DbIssues.Locations parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static org.sonar.db.protobuf.DbIssues.Locations parseFrom(
        com.google.protobuf.ByteString data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static org.sonar.db.protobuf.DbIssues.Locations parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static org.sonar.db.protobuf.DbIssues.Locations parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static org.sonar.db.protobuf.DbIssues.Locations parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return PARSER.parseFrom(input);
    }
    public static org.sonar.db.protobuf.DbIssues.Locations parseFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return PARSER.parseFrom(input, extensionRegistry);
    }
    public static org.sonar.db.protobuf.DbIssues.Locations parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return PARSER.parseDelimitedFrom(input);
    }
    public static org.sonar.db.protobuf.DbIssues.Locations parseDelimitedFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return PARSER.parseDelimitedFrom(input, extensionRegistry);
    }
    public static org.sonar.db.protobuf.DbIssues.Locations parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return PARSER.parseFrom(input);
    }
    public static org.sonar.db.protobuf.DbIssues.Locations parseFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return PARSER.parseFrom(input, extensionRegistry);
    }

    public Builder newBuilderForType() { return newBuilder(); }
    public static Builder newBuilder() {
      return DEFAULT_INSTANCE.toBuilder();
    }
    public static Builder newBuilder(org.sonar.db.protobuf.DbIssues.Locations prototype) {
      return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
    }
    public Builder toBuilder() {
      return this == DEFAULT_INSTANCE
          ? new Builder() : new Builder().mergeFrom(this);
    }

    @java.lang.Override
    protected Builder newBuilderForType(
        com.google.protobuf.GeneratedMessage.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.GeneratedMessage.Builder implements
        // @@protoc_insertion_point(builder_implements:sonarqube.db.issues.Locations)
        org.sonar.db.protobuf.DbIssues.LocationsOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return org.sonar.db.protobuf.DbIssues.internal_static_sonarqube_db_issues_Locations_descriptor;
      }

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return org.sonar.db.protobuf.DbIssues.internal_static_sonarqube_db_issues_Locations_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                org.sonar.db.protobuf.DbIssues.Locations.class, org.sonar.db.protobuf.DbIssues.Locations.Builder.class);
      }

      // Construct using org.sonar.db.protobuf.DbIssues.Locations.newBuilder()
      private Builder() {
        maybeForceBuilderInitialization();
      }

      private Builder(
          com.google.protobuf.GeneratedMessage.BuilderParent parent) {
        super(parent);
        maybeForceBuilderInitialization();
      }
      private void maybeForceBuilderInitialization() {
        if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
          getTextRangeFieldBuilder();
          getFlowFieldBuilder();
        }
      }
      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;
      }

      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return org.sonar.db.protobuf.DbIssues.internal_static_sonarqube_db_issues_Locations_descriptor;
      }

      public org.sonar.db.protobuf.DbIssues.Locations getDefaultInstanceForType() {
        return org.sonar.db.protobuf.DbIssues.Locations.getDefaultInstance();
      }

      public org.sonar.db.protobuf.DbIssues.Locations build() {
        org.sonar.db.protobuf.DbIssues.Locations result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      public org.sonar.db.protobuf.DbIssues.Locations buildPartial() {
        org.sonar.db.protobuf.DbIssues.Locations result = new org.sonar.db.protobuf.DbIssues.Locations(this);
        int from_bitField0_ = bitField0_;
        int to_bitField0_ = 0;
        if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
          to_bitField0_ |= 0x00000001;
        }
        if (textRangeBuilder_ == null) {
          result.textRange_ = textRange_;
        } else {
          result.textRange_ = textRangeBuilder_.build();
        }
        if (flowBuilder_ == null) {
          if (((bitField0_ & 0x00000002) == 0x00000002)) {
            flow_ = java.util.Collections.unmodifiableList(flow_);
            bitField0_ = (bitField0_ & ~0x00000002);
          }
          result.flow_ = flow_;
        } else {
          result.flow_ = flowBuilder_.build();
        }
        result.bitField0_ = to_bitField0_;
        onBuilt();
        return result;
      }

      public Builder mergeFrom(com.google.protobuf.Message other) {
        if (other instanceof org.sonar.db.protobuf.DbIssues.Locations) {
          return mergeFrom((org.sonar.db.protobuf.DbIssues.Locations)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(org.sonar.db.protobuf.DbIssues.Locations other) {
        if (other == org.sonar.db.protobuf.DbIssues.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.GeneratedMessage.alwaysUseFieldBuilders ?
                   getFlowFieldBuilder() : null;
            } else {
              flowBuilder_.addAllMessages(other.flow_);
            }
          }
        }
        this.mergeUnknownFields(other.unknownFields);
        onChanged();
        return this;
      }

      public final boolean isInitialized() {
        return true;
      }

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

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

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

      private com.google.protobuf.RepeatedFieldBuilder<
          org.sonar.db.protobuf.DbIssues.Flow, org.sonar.db.protobuf.DbIssues.Flow.Builder, org.sonar.db.protobuf.DbIssues.FlowOrBuilder> flowBuilder_;

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

      // @@protoc_insertion_point(builder_scope:sonarqube.db.issues.Locations)
    }

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

    public static org.sonar.db.protobuf.DbIssues.Locations getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

    @java.lang.Deprecated public static final com.google.protobuf.Parser
        PARSER = new com.google.protobuf.AbstractParser() {
      public Locations parsePartialFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        try {
          return new Locations(input, extensionRegistry);
        } catch (RuntimeException e) {
          if (e.getCause() instanceof
              com.google.protobuf.InvalidProtocolBufferException) {
            throw (com.google.protobuf.InvalidProtocolBufferException)
                e.getCause();
          }
          throw e;
        }
      }
    };

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

    @java.lang.Override
    public com.google.protobuf.Parser getParserForType() {
      return PARSER;
    }

    public org.sonar.db.protobuf.DbIssues.Locations getDefaultInstanceForType() {
      return DEFAULT_INSTANCE;
    }

  }

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

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

    @java.lang.Override
    public final com.google.protobuf.UnknownFieldSet
    getUnknownFields() {
      return this.unknownFields;
    }
    private Flow(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry) {
      this();
      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;
            default: {
              if (!parseUnknownField(input, unknownFields,
                                     extensionRegistry, tag)) {
                done = true;
              }
              break;
            }
            case 10: {
              if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
                location_ = new java.util.ArrayList();
                mutable_bitField0_ |= 0x00000001;
              }
              location_.add(input.readMessage(org.sonar.db.protobuf.DbIssues.Location.parser(), extensionRegistry));
              break;
            }
          }
        }
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        throw new RuntimeException(e.setUnfinishedMessage(this));
      } catch (java.io.IOException e) {
        throw new RuntimeException(
            new com.google.protobuf.InvalidProtocolBufferException(
                e.getMessage()).setUnfinishedMessage(this));
      } finally {
        if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
          location_ = java.util.Collections.unmodifiableList(location_);
        }
        this.unknownFields = unknownFields.build();
        makeExtensionsImmutable();
      }
    }
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return org.sonar.db.protobuf.DbIssues.internal_static_sonarqube_db_issues_Flow_descriptor;
    }

    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return org.sonar.db.protobuf.DbIssues.internal_static_sonarqube_db_issues_Flow_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              org.sonar.db.protobuf.DbIssues.Flow.class, org.sonar.db.protobuf.DbIssues.Flow.Builder.class);
    }

    public static final int LOCATION_FIELD_NUMBER = 1;
    private java.util.List location_;
    /**
     * repeated .sonarqube.db.issues.Location location = 1;
     */
    public java.util.List getLocationList() {
      return location_;
    }
    /**
     * repeated .sonarqube.db.issues.Location location = 1;
     */
    public java.util.List 
        getLocationOrBuilderList() {
      return location_;
    }
    /**
     * repeated .sonarqube.db.issues.Location location = 1;
     */
    public int getLocationCount() {
      return location_.size();
    }
    /**
     * repeated .sonarqube.db.issues.Location location = 1;
     */
    public org.sonar.db.protobuf.DbIssues.Location getLocation(int index) {
      return location_.get(index);
    }
    /**
     * repeated .sonarqube.db.issues.Location location = 1;
     */
    public org.sonar.db.protobuf.DbIssues.LocationOrBuilder getLocationOrBuilder(
        int index) {
      return location_.get(index);
    }

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

      memoizedIsInitialized = 1;
      return true;
    }

    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);
    }

    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;
    }

    private static final long serialVersionUID = 0L;
    public static org.sonar.db.protobuf.DbIssues.Flow parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static org.sonar.db.protobuf.DbIssues.Flow parseFrom(
        com.google.protobuf.ByteString data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static org.sonar.db.protobuf.DbIssues.Flow parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static org.sonar.db.protobuf.DbIssues.Flow parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static org.sonar.db.protobuf.DbIssues.Flow parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return PARSER.parseFrom(input);
    }
    public static org.sonar.db.protobuf.DbIssues.Flow parseFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return PARSER.parseFrom(input, extensionRegistry);
    }
    public static org.sonar.db.protobuf.DbIssues.Flow parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return PARSER.parseDelimitedFrom(input);
    }
    public static org.sonar.db.protobuf.DbIssues.Flow parseDelimitedFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return PARSER.parseDelimitedFrom(input, extensionRegistry);
    }
    public static org.sonar.db.protobuf.DbIssues.Flow parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return PARSER.parseFrom(input);
    }
    public static org.sonar.db.protobuf.DbIssues.Flow parseFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return PARSER.parseFrom(input, extensionRegistry);
    }

    public Builder newBuilderForType() { return newBuilder(); }
    public static Builder newBuilder() {
      return DEFAULT_INSTANCE.toBuilder();
    }
    public static Builder newBuilder(org.sonar.db.protobuf.DbIssues.Flow prototype) {
      return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
    }
    public Builder toBuilder() {
      return this == DEFAULT_INSTANCE
          ? new Builder() : new Builder().mergeFrom(this);
    }

    @java.lang.Override
    protected Builder newBuilderForType(
        com.google.protobuf.GeneratedMessage.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.GeneratedMessage.Builder implements
        // @@protoc_insertion_point(builder_implements:sonarqube.db.issues.Flow)
        org.sonar.db.protobuf.DbIssues.FlowOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return org.sonar.db.protobuf.DbIssues.internal_static_sonarqube_db_issues_Flow_descriptor;
      }

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return org.sonar.db.protobuf.DbIssues.internal_static_sonarqube_db_issues_Flow_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                org.sonar.db.protobuf.DbIssues.Flow.class, org.sonar.db.protobuf.DbIssues.Flow.Builder.class);
      }

      // Construct using org.sonar.db.protobuf.DbIssues.Flow.newBuilder()
      private Builder() {
        maybeForceBuilderInitialization();
      }

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

      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return org.sonar.db.protobuf.DbIssues.internal_static_sonarqube_db_issues_Flow_descriptor;
      }

      public org.sonar.db.protobuf.DbIssues.Flow getDefaultInstanceForType() {
        return org.sonar.db.protobuf.DbIssues.Flow.getDefaultInstance();
      }

      public org.sonar.db.protobuf.DbIssues.Flow build() {
        org.sonar.db.protobuf.DbIssues.Flow result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      public org.sonar.db.protobuf.DbIssues.Flow buildPartial() {
        org.sonar.db.protobuf.DbIssues.Flow result = new org.sonar.db.protobuf.DbIssues.Flow(this);
        int from_bitField0_ = bitField0_;
        if (locationBuilder_ == null) {
          if (((bitField0_ & 0x00000001) == 0x00000001)) {
            location_ = java.util.Collections.unmodifiableList(location_);
            bitField0_ = (bitField0_ & ~0x00000001);
          }
          result.location_ = location_;
        } else {
          result.location_ = locationBuilder_.build();
        }
        onBuilt();
        return result;
      }

      public Builder mergeFrom(com.google.protobuf.Message other) {
        if (other instanceof org.sonar.db.protobuf.DbIssues.Flow) {
          return mergeFrom((org.sonar.db.protobuf.DbIssues.Flow)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(org.sonar.db.protobuf.DbIssues.Flow other) {
        if (other == org.sonar.db.protobuf.DbIssues.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.GeneratedMessage.alwaysUseFieldBuilders ?
                   getLocationFieldBuilder() : null;
            } else {
              locationBuilder_.addAllMessages(other.location_);
            }
          }
        }
        this.mergeUnknownFields(other.unknownFields);
        onChanged();
        return this;
      }

      public final boolean isInitialized() {
        return true;
      }

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

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

      private com.google.protobuf.RepeatedFieldBuilder<
          org.sonar.db.protobuf.DbIssues.Location, org.sonar.db.protobuf.DbIssues.Location.Builder, org.sonar.db.protobuf.DbIssues.LocationOrBuilder> locationBuilder_;

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

      // @@protoc_insertion_point(builder_scope:sonarqube.db.issues.Flow)
    }

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

    public static org.sonar.db.protobuf.DbIssues.Flow getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

    @java.lang.Deprecated public static final com.google.protobuf.Parser
        PARSER = new com.google.protobuf.AbstractParser() {
      public Flow parsePartialFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        try {
          return new Flow(input, extensionRegistry);
        } catch (RuntimeException e) {
          if (e.getCause() instanceof
              com.google.protobuf.InvalidProtocolBufferException) {
            throw (com.google.protobuf.InvalidProtocolBufferException)
                e.getCause();
          }
          throw e;
        }
      }
    };

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

    @java.lang.Override
    public com.google.protobuf.Parser getParserForType() {
      return PARSER;
    }

    public org.sonar.db.protobuf.DbIssues.Flow getDefaultInstanceForType() {
      return DEFAULT_INSTANCE;
    }

  }

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

    /**
     * optional string component_id = 1;
     */
    boolean hasComponentId();
    /**
     * optional string component_id = 1;
     */
    java.lang.String getComponentId();
    /**
     * optional string component_id = 1;
     */
    com.google.protobuf.ByteString
        getComponentIdBytes();

    /**
     * optional .sonarqube.db.commons.TextRange text_range = 2;
     *
     * 
     * Only when component is a file. Can be empty for a file if this is an issue global to the file.
     * 
*/ boolean hasTextRange(); /** * optional .sonarqube.db.commons.TextRange text_range = 2; * *
     * Only when component is a file. Can be empty for a file if this is an issue global to the file.
     * 
*/ org.sonar.db.protobuf.DbCommons.TextRange getTextRange(); /** * optional .sonarqube.db.commons.TextRange text_range = 2; * *
     * Only when component is a file. Can be empty for a file if this is an issue global to the file.
     * 
*/ org.sonar.db.protobuf.DbCommons.TextRangeOrBuilder getTextRangeOrBuilder(); /** * optional string msg = 3; */ boolean hasMsg(); /** * optional string msg = 3; */ java.lang.String getMsg(); /** * optional string msg = 3; */ com.google.protobuf.ByteString getMsgBytes(); } /** * Protobuf type {@code sonarqube.db.issues.Location} */ public static final class Location extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:sonarqube.db.issues.Location) LocationOrBuilder { // Use Location.newBuilder() to construct. private Location(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private Location() { componentId_ = ""; msg_ = ""; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Location( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) { this(); 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; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000001; componentId_ = bs; break; } case 18: { org.sonar.db.protobuf.DbCommons.TextRange.Builder subBuilder = null; if (((bitField0_ & 0x00000002) == 0x00000002)) { subBuilder = textRange_.toBuilder(); } textRange_ = input.readMessage(org.sonar.db.protobuf.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; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw new RuntimeException(e.setUnfinishedMessage(this)); } catch (java.io.IOException e) { throw new RuntimeException( new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this)); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.sonar.db.protobuf.DbIssues.internal_static_sonarqube_db_issues_Location_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.sonar.db.protobuf.DbIssues.internal_static_sonarqube_db_issues_Location_fieldAccessorTable .ensureFieldAccessorsInitialized( org.sonar.db.protobuf.DbIssues.Location.class, org.sonar.db.protobuf.DbIssues.Location.Builder.class); } private int bitField0_; public static final int COMPONENT_ID_FIELD_NUMBER = 1; private volatile java.lang.Object componentId_; /** * optional string component_id = 1; */ public boolean hasComponentId() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional string component_id = 1; */ public java.lang.String getComponentId() { java.lang.Object ref = componentId_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { componentId_ = s; } return s; } } /** * optional string component_id = 1; */ public com.google.protobuf.ByteString getComponentIdBytes() { java.lang.Object ref = componentId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); componentId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int TEXT_RANGE_FIELD_NUMBER = 2; private org.sonar.db.protobuf.DbCommons.TextRange textRange_; /** * optional .sonarqube.db.commons.TextRange text_range = 2; * *
     * Only when component is a file. Can be empty for a file if this is an issue global to the file.
     * 
*/ public boolean hasTextRange() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional .sonarqube.db.commons.TextRange text_range = 2; * *
     * Only when component is a file. Can be empty for a file if this is an issue global to the file.
     * 
*/ public org.sonar.db.protobuf.DbCommons.TextRange getTextRange() { return textRange_ == null ? org.sonar.db.protobuf.DbCommons.TextRange.getDefaultInstance() : textRange_; } /** * optional .sonarqube.db.commons.TextRange text_range = 2; * *
     * Only when component is a file. Can be empty for a file if this is an issue global to the file.
     * 
*/ public org.sonar.db.protobuf.DbCommons.TextRangeOrBuilder getTextRangeOrBuilder() { return textRange_ == null ? org.sonar.db.protobuf.DbCommons.TextRange.getDefaultInstance() : textRange_; } public static final int MSG_FIELD_NUMBER = 3; private volatile java.lang.Object msg_; /** * optional string msg = 3; */ public boolean hasMsg() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * optional string msg = 3; */ public java.lang.String getMsg() { java.lang.Object ref = msg_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { msg_ = s; } return s; } } /** * optional string msg = 3; */ public com.google.protobuf.ByteString getMsgBytes() { java.lang.Object ref = msg_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); msg_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) == 0x00000001)) { com.google.protobuf.GeneratedMessage.writeString(output, 1, componentId_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeMessage(2, getTextRange()); } if (((bitField0_ & 0x00000004) == 0x00000004)) { com.google.protobuf.GeneratedMessage.writeString(output, 3, msg_); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(1, componentId_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getTextRange()); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(3, msg_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } private static final long serialVersionUID = 0L; public static org.sonar.db.protobuf.DbIssues.Location parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.sonar.db.protobuf.DbIssues.Location parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.sonar.db.protobuf.DbIssues.Location parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.sonar.db.protobuf.DbIssues.Location parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.sonar.db.protobuf.DbIssues.Location parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static org.sonar.db.protobuf.DbIssues.Location parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static org.sonar.db.protobuf.DbIssues.Location parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static org.sonar.db.protobuf.DbIssues.Location parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static org.sonar.db.protobuf.DbIssues.Location parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static org.sonar.db.protobuf.DbIssues.Location parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.sonar.db.protobuf.DbIssues.Location prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.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.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:sonarqube.db.issues.Location) org.sonar.db.protobuf.DbIssues.LocationOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.sonar.db.protobuf.DbIssues.internal_static_sonarqube_db_issues_Location_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.sonar.db.protobuf.DbIssues.internal_static_sonarqube_db_issues_Location_fieldAccessorTable .ensureFieldAccessorsInitialized( org.sonar.db.protobuf.DbIssues.Location.class, org.sonar.db.protobuf.DbIssues.Location.Builder.class); } // Construct using org.sonar.db.protobuf.DbIssues.Location.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { getTextRangeFieldBuilder(); } } 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; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.sonar.db.protobuf.DbIssues.internal_static_sonarqube_db_issues_Location_descriptor; } public org.sonar.db.protobuf.DbIssues.Location getDefaultInstanceForType() { return org.sonar.db.protobuf.DbIssues.Location.getDefaultInstance(); } public org.sonar.db.protobuf.DbIssues.Location build() { org.sonar.db.protobuf.DbIssues.Location result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.sonar.db.protobuf.DbIssues.Location buildPartial() { org.sonar.db.protobuf.DbIssues.Location result = new org.sonar.db.protobuf.DbIssues.Location(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.componentId_ = componentId_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } if (textRangeBuilder_ == null) { result.textRange_ = textRange_; } else { result.textRange_ = textRangeBuilder_.build(); } if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.msg_ = msg_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.sonar.db.protobuf.DbIssues.Location) { return mergeFrom((org.sonar.db.protobuf.DbIssues.Location)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.sonar.db.protobuf.DbIssues.Location other) { if (other == org.sonar.db.protobuf.DbIssues.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; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.sonar.db.protobuf.DbIssues.Location parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.sonar.db.protobuf.DbIssues.Location) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object componentId_ = ""; /** * optional string component_id = 1; */ public boolean hasComponentId() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional string component_id = 1; */ public java.lang.String getComponentId() { java.lang.Object ref = componentId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { componentId_ = s; } return s; } else { return (java.lang.String) ref; } } /** * optional string component_id = 1; */ public com.google.protobuf.ByteString getComponentIdBytes() { java.lang.Object ref = componentId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); componentId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string component_id = 1; */ public Builder setComponentId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; componentId_ = value; onChanged(); return this; } /** * optional string component_id = 1; */ public Builder clearComponentId() { bitField0_ = (bitField0_ & ~0x00000001); componentId_ = getDefaultInstance().getComponentId(); onChanged(); return this; } /** * optional string component_id = 1; */ public Builder setComponentIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; componentId_ = value; onChanged(); return this; } private org.sonar.db.protobuf.DbCommons.TextRange textRange_ = null; private com.google.protobuf.SingleFieldBuilder< org.sonar.db.protobuf.DbCommons.TextRange, org.sonar.db.protobuf.DbCommons.TextRange.Builder, org.sonar.db.protobuf.DbCommons.TextRangeOrBuilder> textRangeBuilder_; /** * optional .sonarqube.db.commons.TextRange text_range = 2; * *
       * Only when component is a file. Can be empty for a file if this is an issue global to the file.
       * 
*/ public boolean hasTextRange() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional .sonarqube.db.commons.TextRange text_range = 2; * *
       * Only when component is a file. Can be empty for a file if this is an issue global to the file.
       * 
*/ public org.sonar.db.protobuf.DbCommons.TextRange getTextRange() { if (textRangeBuilder_ == null) { return textRange_ == null ? org.sonar.db.protobuf.DbCommons.TextRange.getDefaultInstance() : textRange_; } else { return textRangeBuilder_.getMessage(); } } /** * optional .sonarqube.db.commons.TextRange text_range = 2; * *
       * Only when component is a file. Can be empty for a file if this is an issue global to the file.
       * 
*/ public Builder setTextRange(org.sonar.db.protobuf.DbCommons.TextRange value) { if (textRangeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } textRange_ = value; onChanged(); } else { textRangeBuilder_.setMessage(value); } bitField0_ |= 0x00000002; return this; } /** * optional .sonarqube.db.commons.TextRange text_range = 2; * *
       * Only when component is a file. Can be empty for a file if this is an issue global to the file.
       * 
*/ public Builder setTextRange( org.sonar.db.protobuf.DbCommons.TextRange.Builder builderForValue) { if (textRangeBuilder_ == null) { textRange_ = builderForValue.build(); onChanged(); } else { textRangeBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; return this; } /** * optional .sonarqube.db.commons.TextRange text_range = 2; * *
       * Only when component is a file. Can be empty for a file if this is an issue global to the file.
       * 
*/ public Builder mergeTextRange(org.sonar.db.protobuf.DbCommons.TextRange value) { if (textRangeBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002) && textRange_ != null && textRange_ != org.sonar.db.protobuf.DbCommons.TextRange.getDefaultInstance()) { textRange_ = org.sonar.db.protobuf.DbCommons.TextRange.newBuilder(textRange_).mergeFrom(value).buildPartial(); } else { textRange_ = value; } onChanged(); } else { textRangeBuilder_.mergeFrom(value); } bitField0_ |= 0x00000002; return this; } /** * optional .sonarqube.db.commons.TextRange text_range = 2; * *
       * Only when component is a file. Can be empty for a file if this is an issue global to the file.
       * 
*/ public Builder clearTextRange() { if (textRangeBuilder_ == null) { textRange_ = null; onChanged(); } else { textRangeBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); return this; } /** * optional .sonarqube.db.commons.TextRange text_range = 2; * *
       * Only when component is a file. Can be empty for a file if this is an issue global to the file.
       * 
*/ public org.sonar.db.protobuf.DbCommons.TextRange.Builder getTextRangeBuilder() { bitField0_ |= 0x00000002; onChanged(); return getTextRangeFieldBuilder().getBuilder(); } /** * optional .sonarqube.db.commons.TextRange text_range = 2; * *
       * Only when component is a file. Can be empty for a file if this is an issue global to the file.
       * 
*/ public org.sonar.db.protobuf.DbCommons.TextRangeOrBuilder getTextRangeOrBuilder() { if (textRangeBuilder_ != null) { return textRangeBuilder_.getMessageOrBuilder(); } else { return textRange_ == null ? org.sonar.db.protobuf.DbCommons.TextRange.getDefaultInstance() : textRange_; } } /** * optional .sonarqube.db.commons.TextRange text_range = 2; * *
       * Only when component is a file. Can be empty for a file if this is an issue global to the file.
       * 
*/ private com.google.protobuf.SingleFieldBuilder< org.sonar.db.protobuf.DbCommons.TextRange, org.sonar.db.protobuf.DbCommons.TextRange.Builder, org.sonar.db.protobuf.DbCommons.TextRangeOrBuilder> getTextRangeFieldBuilder() { if (textRangeBuilder_ == null) { textRangeBuilder_ = new com.google.protobuf.SingleFieldBuilder< org.sonar.db.protobuf.DbCommons.TextRange, org.sonar.db.protobuf.DbCommons.TextRange.Builder, org.sonar.db.protobuf.DbCommons.TextRangeOrBuilder>( getTextRange(), getParentForChildren(), isClean()); textRange_ = null; } return textRangeBuilder_; } private java.lang.Object msg_ = ""; /** * optional string msg = 3; */ public boolean hasMsg() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * optional string msg = 3; */ public java.lang.String getMsg() { java.lang.Object ref = msg_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { msg_ = s; } return s; } else { return (java.lang.String) ref; } } /** * optional string msg = 3; */ public com.google.protobuf.ByteString getMsgBytes() { java.lang.Object ref = msg_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); msg_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string msg = 3; */ public Builder setMsg( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; msg_ = value; onChanged(); return this; } /** * optional string msg = 3; */ public Builder clearMsg() { bitField0_ = (bitField0_ & ~0x00000004); msg_ = getDefaultInstance().getMsg(); onChanged(); return this; } /** * optional string msg = 3; */ public Builder setMsgBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; msg_ = value; onChanged(); return this; } // @@protoc_insertion_point(builder_scope:sonarqube.db.issues.Location) } // @@protoc_insertion_point(class_scope:sonarqube.db.issues.Location) private static final org.sonar.db.protobuf.DbIssues.Location DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.sonar.db.protobuf.DbIssues.Location(); } public static org.sonar.db.protobuf.DbIssues.Location getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public Location parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { try { return new Location(input, extensionRegistry); } catch (RuntimeException e) { if (e.getCause() instanceof com.google.protobuf.InvalidProtocolBufferException) { throw (com.google.protobuf.InvalidProtocolBufferException) e.getCause(); } throw e; } } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.sonar.db.protobuf.DbIssues.Location getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private static com.google.protobuf.Descriptors.Descriptor internal_static_sonarqube_db_issues_Locations_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_sonarqube_db_issues_Locations_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_sonarqube_db_issues_Flow_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_sonarqube_db_issues_Flow_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_sonarqube_db_issues_Location_descriptor; private static com.google.protobuf.GeneratedMessage.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 { java.lang.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\031\n\025org.sonar.db.protobufH\001" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { public com.google.protobuf.ExtensionRegistry assignDescriptors( com.google.protobuf.Descriptors.FileDescriptor root) { descriptor = root; return null; } }; com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { org.sonar.db.protobuf.DbCommons.getDescriptor(), }, assigner); internal_static_sonarqube_db_issues_Locations_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_sonarqube_db_issues_Locations_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_sonarqube_db_issues_Locations_descriptor, new java.lang.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.GeneratedMessage.FieldAccessorTable( internal_static_sonarqube_db_issues_Flow_descriptor, new java.lang.String[] { "Location", }); internal_static_sonarqube_db_issues_Location_descriptor = getDescriptor().getMessageTypes().get(2); internal_static_sonarqube_db_issues_Location_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_sonarqube_db_issues_Location_descriptor, new java.lang.String[] { "ComponentId", "TextRange", "Msg", }); org.sonar.db.protobuf.DbCommons.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy