aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-batch-protocol/src
diff options
context:
space:
mode:
authorJulien Lancelot <julien.lancelot@sonarsource.com>2015-05-27 09:45:46 +0200
committerJulien Lancelot <julien.lancelot@sonarsource.com>2015-05-27 11:49:39 +0200
commite556427f59d55888b2c6c181620de7d767e3caf2 (patch)
tree64983349fb50626b4770e63d1cfc65f37765fd39 /sonar-batch-protocol/src
parent154617a5034da3f35da19d415bc02939f395d25d (diff)
downloadsonarqube-e556427f59d55888b2c6c181620de7d767e3caf2.tar.gz
sonarqube-e556427f59d55888b2c6c181620de7d767e3caf2.zip
SONAR-6589 Remove projectKey from ComputationContext
Diffstat (limited to 'sonar-batch-protocol/src')
-rw-r--r--sonar-batch-protocol/src/main/gen-java/org/sonar/batch/protocol/output/BatchReport.java60
-rw-r--r--sonar-batch-protocol/src/main/protobuf/batch_report.proto2
2 files changed, 62 insertions, 0 deletions
diff --git a/sonar-batch-protocol/src/main/gen-java/org/sonar/batch/protocol/output/BatchReport.java b/sonar-batch-protocol/src/main/gen-java/org/sonar/batch/protocol/output/BatchReport.java
index c27bdc96ff1..b49fef42bef 100644
--- a/sonar-batch-protocol/src/main/gen-java/org/sonar/batch/protocol/output/BatchReport.java
+++ b/sonar-batch-protocol/src/main/gen-java/org/sonar/batch/protocol/output/BatchReport.java
@@ -23,14 +23,26 @@ public final class BatchReport {
/**
* <code>optional string project_key = 2;</code>
+ *
+ * <pre>
+ * TODO should we keep this project_key here or not ? Because it's a duplication of Component.key
+ * </pre>
*/
boolean hasProjectKey();
/**
* <code>optional string project_key = 2;</code>
+ *
+ * <pre>
+ * TODO should we keep this project_key here or not ? Because it's a duplication of Component.key
+ * </pre>
*/
java.lang.String getProjectKey();
/**
* <code>optional string project_key = 2;</code>
+ *
+ * <pre>
+ * TODO should we keep this project_key here or not ? Because it's a duplication of Component.key
+ * </pre>
*/
com.google.protobuf.ByteString
getProjectKeyBytes();
@@ -227,12 +239,20 @@ public final class BatchReport {
private java.lang.Object projectKey_;
/**
* <code>optional string project_key = 2;</code>
+ *
+ * <pre>
+ * TODO should we keep this project_key here or not ? Because it's a duplication of Component.key
+ * </pre>
*/
public boolean hasProjectKey() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* <code>optional string project_key = 2;</code>
+ *
+ * <pre>
+ * TODO should we keep this project_key here or not ? Because it's a duplication of Component.key
+ * </pre>
*/
public java.lang.String getProjectKey() {
java.lang.Object ref = projectKey_;
@@ -250,6 +270,10 @@ public final class BatchReport {
}
/**
* <code>optional string project_key = 2;</code>
+ *
+ * <pre>
+ * TODO should we keep this project_key here or not ? Because it's a duplication of Component.key
+ * </pre>
*/
public com.google.protobuf.ByteString
getProjectKeyBytes() {
@@ -713,12 +737,20 @@ public final class BatchReport {
private java.lang.Object projectKey_ = "";
/**
* <code>optional string project_key = 2;</code>
+ *
+ * <pre>
+ * TODO should we keep this project_key here or not ? Because it's a duplication of Component.key
+ * </pre>
*/
public boolean hasProjectKey() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* <code>optional string project_key = 2;</code>
+ *
+ * <pre>
+ * TODO should we keep this project_key here or not ? Because it's a duplication of Component.key
+ * </pre>
*/
public java.lang.String getProjectKey() {
java.lang.Object ref = projectKey_;
@@ -736,6 +768,10 @@ public final class BatchReport {
}
/**
* <code>optional string project_key = 2;</code>
+ *
+ * <pre>
+ * TODO should we keep this project_key here or not ? Because it's a duplication of Component.key
+ * </pre>
*/
public com.google.protobuf.ByteString
getProjectKeyBytes() {
@@ -752,6 +788,10 @@ public final class BatchReport {
}
/**
* <code>optional string project_key = 2;</code>
+ *
+ * <pre>
+ * TODO should we keep this project_key here or not ? Because it's a duplication of Component.key
+ * </pre>
*/
public Builder setProjectKey(
java.lang.String value) {
@@ -765,6 +805,10 @@ public final class BatchReport {
}
/**
* <code>optional string project_key = 2;</code>
+ *
+ * <pre>
+ * TODO should we keep this project_key here or not ? Because it's a duplication of Component.key
+ * </pre>
*/
public Builder clearProjectKey() {
bitField0_ = (bitField0_ & ~0x00000002);
@@ -774,6 +818,10 @@ public final class BatchReport {
}
/**
* <code>optional string project_key = 2;</code>
+ *
+ * <pre>
+ * TODO should we keep this project_key here or not ? Because it's a duplication of Component.key
+ * </pre>
*/
public Builder setProjectKeyBytes(
com.google.protobuf.ByteString value) {
@@ -2652,6 +2700,7 @@ public final class BatchReport {
*
* <pre>
* Only available on PROJECT and MODULE types
+ * TODO rename this property -&gt; batchKey ? moduleKey ?
* </pre>
*/
boolean hasKey();
@@ -2660,6 +2709,7 @@ public final class BatchReport {
*
* <pre>
* Only available on PROJECT and MODULE types
+ * TODO rename this property -&gt; batchKey ? moduleKey ?
* </pre>
*/
java.lang.String getKey();
@@ -2668,6 +2718,7 @@ public final class BatchReport {
*
* <pre>
* Only available on PROJECT and MODULE types
+ * TODO rename this property -&gt; batchKey ? moduleKey ?
* </pre>
*/
com.google.protobuf.ByteString
@@ -3252,6 +3303,7 @@ public final class BatchReport {
*
* <pre>
* Only available on PROJECT and MODULE types
+ * TODO rename this property -&gt; batchKey ? moduleKey ?
* </pre>
*/
public boolean hasKey() {
@@ -3262,6 +3314,7 @@ public final class BatchReport {
*
* <pre>
* Only available on PROJECT and MODULE types
+ * TODO rename this property -&gt; batchKey ? moduleKey ?
* </pre>
*/
public java.lang.String getKey() {
@@ -3283,6 +3336,7 @@ public final class BatchReport {
*
* <pre>
* Only available on PROJECT and MODULE types
+ * TODO rename this property -&gt; batchKey ? moduleKey ?
* </pre>
*/
public com.google.protobuf.ByteString
@@ -4723,6 +4777,7 @@ public final class BatchReport {
*
* <pre>
* Only available on PROJECT and MODULE types
+ * TODO rename this property -&gt; batchKey ? moduleKey ?
* </pre>
*/
public boolean hasKey() {
@@ -4733,6 +4788,7 @@ public final class BatchReport {
*
* <pre>
* Only available on PROJECT and MODULE types
+ * TODO rename this property -&gt; batchKey ? moduleKey ?
* </pre>
*/
public java.lang.String getKey() {
@@ -4754,6 +4810,7 @@ public final class BatchReport {
*
* <pre>
* Only available on PROJECT and MODULE types
+ * TODO rename this property -&gt; batchKey ? moduleKey ?
* </pre>
*/
public com.google.protobuf.ByteString
@@ -4774,6 +4831,7 @@ public final class BatchReport {
*
* <pre>
* Only available on PROJECT and MODULE types
+ * TODO rename this property -&gt; batchKey ? moduleKey ?
* </pre>
*/
public Builder setKey(
@@ -4791,6 +4849,7 @@ public final class BatchReport {
*
* <pre>
* Only available on PROJECT and MODULE types
+ * TODO rename this property -&gt; batchKey ? moduleKey ?
* </pre>
*/
public Builder clearKey() {
@@ -4804,6 +4863,7 @@ public final class BatchReport {
*
* <pre>
* Only available on PROJECT and MODULE types
+ * TODO rename this property -&gt; batchKey ? moduleKey ?
* </pre>
*/
public Builder setKeyBytes(
diff --git a/sonar-batch-protocol/src/main/protobuf/batch_report.proto b/sonar-batch-protocol/src/main/protobuf/batch_report.proto
index fa7801297ef..869573da18d 100644
--- a/sonar-batch-protocol/src/main/protobuf/batch_report.proto
+++ b/sonar-batch-protocol/src/main/protobuf/batch_report.proto
@@ -41,6 +41,7 @@ option optimize_for = SPEED;
message Metadata {
optional int64 analysis_date = 1;
+ // TODO should we keep this project_key here or not ? Because it's a duplication of Component.key
optional string project_key = 2;
optional string branch = 6;
optional int32 root_component_ref = 3;
@@ -76,6 +77,7 @@ message Component {
// Only available on PROJECT and MODULE types
optional string version = 9;
// Only available on PROJECT and MODULE types
+ // TODO rename this property -> batchKey ? moduleKey ?
optional string key = 10;
// Only available on FILE type
optional int32 lines = 11;