Alice Kober-Sotzek | 09cdbd9 | 2018-12-05 17:16:21 +0100 | [diff] [blame] | 1 | // Copyright (C) 2018 The Android Open Source Project |
| 2 | // |
| 3 | // Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 | // you may not use this file except in compliance with the License. |
| 5 | // You may obtain a copy of the License at |
| 6 | // |
| 7 | // http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | // |
| 9 | // Unless required by applicable law or agreed to in writing, software |
| 10 | // distributed under the License is distributed on an "AS IS" BASIS, |
| 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 | // See the License for the specific language governing permissions and |
| 13 | // limitations under the License. |
| 14 | |
| 15 | syntax = "proto2"; |
| 16 | |
Alice Kober-Sotzek | 342b836 | 2018-12-05 17:42:47 +0100 | [diff] [blame] | 17 | package devtools.gerritcodereview; |
| 18 | |
Alice Kober-Sotzek | 5af77ef | 2018-12-14 16:48:58 +0100 | [diff] [blame] | 19 | option java_package = "com.google.gerrit.proto"; |
Alice Kober-Sotzek | 09cdbd9 | 2018-12-05 17:16:21 +0100 | [diff] [blame] | 20 | |
David Ostrovsky | b03a6e9 | 2019-05-26 14:11:47 +0200 | [diff] [blame] | 21 | // Serialized form of com.google.gerrit.entities.Change.Id. |
Alice Kober-Sotzek | 342b836 | 2018-12-05 17:42:47 +0100 | [diff] [blame] | 22 | // Next ID: 2 |
Alice Kober-Sotzek | 09cdbd9 | 2018-12-05 17:16:21 +0100 | [diff] [blame] | 23 | message Change_Id { |
Alice Kober-Sotzek | 342b836 | 2018-12-05 17:42:47 +0100 | [diff] [blame] | 24 | required int32 id = 1; |
Alice Kober-Sotzek | 09cdbd9 | 2018-12-05 17:16:21 +0100 | [diff] [blame] | 25 | } |
| 26 | |
David Ostrovsky | b03a6e9 | 2019-05-26 14:11:47 +0200 | [diff] [blame] | 27 | // Serialized form of com.google.gerrit.entities.Change.Key. |
Alice Kober-Sotzek | 342b836 | 2018-12-05 17:42:47 +0100 | [diff] [blame] | 28 | // Next ID: 2 |
Alice Kober-Sotzek | 09cdbd9 | 2018-12-05 17:16:21 +0100 | [diff] [blame] | 29 | message Change_Key { |
Alice Kober-Sotzek | 342b836 | 2018-12-05 17:42:47 +0100 | [diff] [blame] | 30 | optional string id = 1; |
Alice Kober-Sotzek | 09cdbd9 | 2018-12-05 17:16:21 +0100 | [diff] [blame] | 31 | } |
| 32 | |
David Ostrovsky | b03a6e9 | 2019-05-26 14:11:47 +0200 | [diff] [blame] | 33 | // Serialized form of com.google.gerrit.entities.Change. |
Kaushik Lingarkar | 4a711ed | 2019-11-12 13:53:29 -0800 | [diff] [blame] | 34 | // Next ID: 25 |
Alice Kober-Sotzek | 09cdbd9 | 2018-12-05 17:16:21 +0100 | [diff] [blame] | 35 | message Change { |
Alice Kober-Sotzek | 342b836 | 2018-12-05 17:42:47 +0100 | [diff] [blame] | 36 | required Change_Id change_id = 1; |
| 37 | optional Change_Key change_key = 2; |
Alice Kober-Sotzek | 342b836 | 2018-12-05 17:42:47 +0100 | [diff] [blame] | 38 | optional fixed64 created_on = 4; |
| 39 | optional fixed64 last_updated_on = 5; |
| 40 | optional Account_Id owner_account_id = 7; |
| 41 | optional Branch_NameKey dest = 8; |
| 42 | optional uint32 status = 10; |
| 43 | optional int32 current_patch_set_id = 12; |
| 44 | optional string subject = 13; |
| 45 | optional string topic = 14; |
| 46 | optional string original_subject = 17; |
| 47 | optional string submission_id = 18; |
| 48 | optional Account_Id assignee = 19; |
| 49 | optional bool is_private = 20; |
| 50 | optional bool work_in_progress = 21; |
| 51 | optional bool review_started = 22; |
| 52 | optional Change_Id revert_of = 23; |
Kaushik Lingarkar | 4a711ed | 2019-11-12 13:53:29 -0800 | [diff] [blame] | 53 | optional PatchSet_Id cherry_pick_of = 24; |
Alice Kober-Sotzek | 342b836 | 2018-12-05 17:42:47 +0100 | [diff] [blame] | 54 | |
| 55 | // Deleted fields, should not be reused: |
Patrick Hiesel | bd700ed | 2021-05-25 09:03:59 +0200 | [diff] [blame] | 56 | reserved 3; // row_version |
Dave Borowitz | 2839aa6 | 2018-12-13 14:46:03 -0800 | [diff] [blame] | 57 | reserved 6; // sortkey |
| 58 | reserved 9; // open |
| 59 | reserved 11; // nbrPatchSets |
| 60 | reserved 15; // lastSha1MergeTested |
| 61 | reserved 16; // mergeable |
| 62 | reserved 101; // note_db_state |
Alice Kober-Sotzek | 09cdbd9 | 2018-12-05 17:16:21 +0100 | [diff] [blame] | 63 | } |
| 64 | |
David Ostrovsky | b03a6e9 | 2019-05-26 14:11:47 +0200 | [diff] [blame] | 65 | // Serialized form of com.google.gerrit.enities.ChangeMessage. |
Alice Kober-Sotzek | 97d3e42 | 2018-12-05 17:49:11 +0100 | [diff] [blame] | 66 | // Next ID: 3 |
| 67 | message ChangeMessage_Key { |
| 68 | required Change_Id change_id = 1; |
| 69 | required string uuid = 2; |
| 70 | } |
| 71 | |
David Ostrovsky | b03a6e9 | 2019-05-26 14:11:47 +0200 | [diff] [blame] | 72 | // Serialized form of com.google.gerrit.entities.ChangeMessage. |
Alice Kober-Sotzek | 97d3e42 | 2018-12-05 17:49:11 +0100 | [diff] [blame] | 73 | // Next ID: 8 |
| 74 | message ChangeMessage { |
| 75 | required ChangeMessage_Key key = 1; |
| 76 | optional Account_Id author_id = 2; |
| 77 | optional fixed64 written_on = 3; |
| 78 | optional string message = 4; |
| 79 | optional PatchSet_Id patchset = 5; |
| 80 | optional string tag = 6; |
| 81 | optional Account_Id real_author = 7; |
| 82 | } |
| 83 | |
David Ostrovsky | b03a6e9 | 2019-05-26 14:11:47 +0200 | [diff] [blame] | 84 | // Serialized form of com.google.gerrit.entities.PatchSet.Id. |
Alice Kober-Sotzek | 97d3e42 | 2018-12-05 17:49:11 +0100 | [diff] [blame] | 85 | // Next ID: 3 |
| 86 | message PatchSet_Id { |
| 87 | required Change_Id change_id = 1; |
Dave Borowitz | 766a93d | 2019-04-19 08:44:05 -0700 | [diff] [blame] | 88 | required int32 id = 2; |
Alice Kober-Sotzek | 97d3e42 | 2018-12-05 17:49:11 +0100 | [diff] [blame] | 89 | } |
| 90 | |
David Ostrovsky | b03a6e9 | 2019-05-26 14:11:47 +0200 | [diff] [blame] | 91 | // Serialized form of com.google.gerrit.entities.PatchSet. |
Alice Kober-Sotzek | 97d3e42 | 2018-12-05 17:49:11 +0100 | [diff] [blame] | 92 | // Next ID: 10 |
| 93 | message PatchSet { |
| 94 | required PatchSet_Id id = 1; |
Dave Borowitz | 20a984f | 2019-04-23 14:19:25 -0700 | [diff] [blame] | 95 | optional ObjectId commitId = 2; |
Alice Kober-Sotzek | 97d3e42 | 2018-12-05 17:49:11 +0100 | [diff] [blame] | 96 | optional Account_Id uploader_account_id = 3; |
| 97 | optional fixed64 created_on = 4; |
| 98 | optional string groups = 6; |
| 99 | optional string push_certificate = 8; |
| 100 | optional string description = 9; |
| 101 | |
| 102 | // Deleted fields, should not be reused: |
| 103 | reserved 5; // draft |
| 104 | reserved 7; // pushCertficate |
| 105 | } |
| 106 | |
David Ostrovsky | b03a6e9 | 2019-05-26 14:11:47 +0200 | [diff] [blame] | 107 | // Serialized form of com.google.gerrit.entities.Account.Id. |
Alice Kober-Sotzek | 97d3e42 | 2018-12-05 17:49:11 +0100 | [diff] [blame] | 108 | // Next ID: 2 |
| 109 | message Account_Id { |
| 110 | required int32 id = 1; |
| 111 | } |
| 112 | |
David Ostrovsky | b03a6e9 | 2019-05-26 14:11:47 +0200 | [diff] [blame] | 113 | // Serialized form of com.google.gerrit.entities.LabelId. |
Alice Kober-Sotzek | 97d3e42 | 2018-12-05 17:49:11 +0100 | [diff] [blame] | 114 | // Next ID: 2 |
| 115 | message LabelId { |
| 116 | required string id = 1; |
| 117 | } |
| 118 | |
David Ostrovsky | b03a6e9 | 2019-05-26 14:11:47 +0200 | [diff] [blame] | 119 | // Serialized form of com.google.gerrit.entities.PatchSetApproval.Key. |
Alice Kober-Sotzek | 97d3e42 | 2018-12-05 17:49:11 +0100 | [diff] [blame] | 120 | // Next ID: 4 |
| 121 | message PatchSetApproval_Key { |
| 122 | required PatchSet_Id patch_set_id = 1; |
| 123 | required Account_Id account_id = 2; |
Dave Borowitz | c144e78 | 2019-04-17 12:53:07 -0700 | [diff] [blame] | 124 | required LabelId label_id = 3; |
Alice Kober-Sotzek | 97d3e42 | 2018-12-05 17:49:11 +0100 | [diff] [blame] | 125 | } |
| 126 | |
David Ostrovsky | b03a6e9 | 2019-05-26 14:11:47 +0200 | [diff] [blame] | 127 | // Serialized form of com.google.gerrit.entities.PatchSetApproval. |
Marija Savtchouk | d528320 | 2021-11-26 12:14:04 +0000 | [diff] [blame] | 128 | // Next ID: 11 |
Alice Kober-Sotzek | 09cdbd9 | 2018-12-05 17:16:21 +0100 | [diff] [blame] | 129 | message PatchSetApproval { |
Alice Kober-Sotzek | 342b836 | 2018-12-05 17:42:47 +0100 | [diff] [blame] | 130 | required PatchSetApproval_Key key = 1; |
| 131 | optional int32 value = 2; |
| 132 | optional fixed64 granted = 3; |
| 133 | optional string tag = 6; |
| 134 | optional Account_Id real_account_id = 7; |
| 135 | optional bool post_submit = 8; |
Gal Paikin | 5381c5f | 2021-09-06 17:35:48 +0200 | [diff] [blame] | 136 | optional bool copied = 9; |
Marija Savtchouk | d528320 | 2021-11-26 12:14:04 +0000 | [diff] [blame] | 137 | optional string uuid = 10; |
Alice Kober-Sotzek | 342b836 | 2018-12-05 17:42:47 +0100 | [diff] [blame] | 138 | |
| 139 | // Deleted fields, should not be reused: |
| 140 | reserved 4; // changeOpen |
| 141 | reserved 5; // changeSortKey |
Alice Kober-Sotzek | 09cdbd9 | 2018-12-05 17:16:21 +0100 | [diff] [blame] | 142 | } |
| 143 | |
David Ostrovsky | b03a6e9 | 2019-05-26 14:11:47 +0200 | [diff] [blame] | 144 | // Serialized form of com.google.gerrit.entities.Project.NameKey. |
Alice Kober-Sotzek | 97d3e42 | 2018-12-05 17:49:11 +0100 | [diff] [blame] | 145 | // Next ID: 2 |
| 146 | message Project_NameKey { |
| 147 | optional string name = 1; |
| 148 | } |
| 149 | |
David Ostrovsky | b03a6e9 | 2019-05-26 14:11:47 +0200 | [diff] [blame] | 150 | // Serialized form of com.google.gerrit.entities.Branch.NameKey. |
Alice Kober-Sotzek | 97d3e42 | 2018-12-05 17:49:11 +0100 | [diff] [blame] | 151 | // Next ID: 3 |
| 152 | message Branch_NameKey { |
Dave Borowitz | ac3b3d6 | 2019-04-17 15:53:44 -0700 | [diff] [blame] | 153 | optional Project_NameKey project = 1; |
| 154 | optional string branch = 2; |
Alice Kober-Sotzek | 97d3e42 | 2018-12-05 17:49:11 +0100 | [diff] [blame] | 155 | } |
| 156 | |
Dave Borowitz | 20a984f | 2019-04-23 14:19:25 -0700 | [diff] [blame] | 157 | // Serialized form of org.eclipse.jgit.lib.ObjectId. |
Alice Kober-Sotzek | 97d3e42 | 2018-12-05 17:49:11 +0100 | [diff] [blame] | 158 | // Next ID: 2 |
Dave Borowitz | 20a984f | 2019-04-23 14:19:25 -0700 | [diff] [blame] | 159 | message ObjectId { |
| 160 | // Hex string representation of the ID. |
| 161 | optional string name = 1; |
Alice Kober-Sotzek | 97d3e42 | 2018-12-05 17:49:11 +0100 | [diff] [blame] | 162 | } |