From f48d90a276b5e962d2658bbf1a9fe2dc5af1064f Mon Sep 17 00:00:00 2001 From: Julien Lancelot Date: Wed, 16 Aug 2017 16:33:09 +0200 Subject: SONAR-9616 Move BranchType to Common --- sonar-ws/src/main/protobuf/ws-projectbranches.proto | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) (limited to 'sonar-ws/src/main/protobuf/ws-projectbranches.proto') diff --git a/sonar-ws/src/main/protobuf/ws-projectbranches.proto b/sonar-ws/src/main/protobuf/ws-projectbranches.proto index 4500dc5a784..59f9e9038f5 100644 --- a/sonar-ws/src/main/protobuf/ws-projectbranches.proto +++ b/sonar-ws/src/main/protobuf/ws-projectbranches.proto @@ -24,6 +24,7 @@ option java_package = "org.sonarqube.ws"; option java_outer_classname = "WsBranches"; option optimize_for = SPEED; +import "ws-commons.proto"; // WS api/project_branches/list message ListWsResponse { @@ -38,7 +39,7 @@ message ShowWsResponse { message Branch { optional string name = 1; optional bool isMain = 2; - optional BranchType type = 3; + optional sonarqube.ws.commons.BranchType type = 3; // Merge branch is only present for short living branch optional string mergeBranch = 4; optional Status status = 5; @@ -52,12 +53,6 @@ message Branch { optional int32 codeSmells = 4; } - enum BranchType { - // Zero is required in order to not get MAINTAINABILITY as default value - // See http://androiddevblog.com/protocol-buffers-pitfall-adding-enum-values/ - UNKNOWN = 0; - - LONG = 1; - SHORT = 2; - } } + + -- cgit v1.2.3