You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

ws-commons.proto 2.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. // SonarQube, open source software quality management tool.
  2. // Copyright (C) 2008-2015 SonarSource
  3. // mailto:contact AT sonarsource DOT com
  4. //
  5. // SonarQube is free software; you can redistribute it and/or
  6. // modify it under the terms of the GNU Lesser General Public
  7. // License as published by the Free Software Foundation; either
  8. // version 3 of the License, or (at your option) any later version.
  9. //
  10. // SonarQube is distributed in the hope that it will be useful,
  11. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  13. // Lesser General Public License for more details.
  14. //
  15. // You should have received a copy of the GNU Lesser General Public License
  16. // along with this program; if not, write to the Free Software Foundation,
  17. // Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  18. syntax = "proto2";
  19. package sonarqube.ws.commons;
  20. option java_package = "org.sonarqube.ws";
  21. option java_outer_classname = "Common";
  22. option optimize_for = SPEED;
  23. message Paging {
  24. optional int32 pageIndex = 1;
  25. optional int32 pageSize = 2;
  26. optional int32 total = 3;
  27. }
  28. message Facet {
  29. // kind of key
  30. optional string property = 1;
  31. repeated FacetValue values = 2;
  32. }
  33. message FacetValue {
  34. optional string val = 1;
  35. optional int64 count = 2;
  36. }
  37. enum Severity {
  38. INFO = 0;
  39. MINOR = 1;
  40. MAJOR = 2;
  41. CRITICAL = 3;
  42. BLOCKER = 4;
  43. }
  44. message Rule {
  45. optional string key = 1;
  46. optional string name = 2;
  47. optional string lang = 3;
  48. optional RuleStatus status = 4;
  49. optional string langName = 5;
  50. }
  51. enum RuleStatus {
  52. BETA = 0;
  53. DEPRECATED = 1;
  54. READY = 2;
  55. REMOVED = 3;
  56. }
  57. message User {
  58. optional string login = 1;
  59. optional string name = 2;
  60. optional string email = 3;
  61. optional bool active = 4;
  62. }
  63. // Lines start at 1 and line offsets start at 0
  64. message TextRange {
  65. // Start line. Should never be absent
  66. optional int32 startLine = 1;
  67. // End line (inclusive). Absent means it is same as start line
  68. optional int32 endLine = 2;
  69. // If absent it means range starts at the first offset of start line
  70. optional int32 startOffset = 3;
  71. // If absent it means range ends at the last offset of end line
  72. optional int32 endOffset = 4;
  73. }