go.chromium.org/luci@v0.0.0-20240309015107-7cdc2e660f33/common/proto/srcman/manifest_diff.pb.go (about) 1 // Copyright (c) 2015 The LUCI Authors. All rights reserved. 2 // Use of this source code is governed under the Apache License, Version 2.0 3 // that can be found in the LICENSE file. 4 5 // Code generated by protoc-gen-go. DO NOT EDIT. 6 // versions: 7 // protoc-gen-go v1.31.0 8 // protoc v3.21.7 9 // source: go.chromium.org/luci/common/proto/srcman/manifest_diff.proto 10 11 package srcman 12 13 import ( 14 git "go.chromium.org/luci/common/proto/git" 15 protoreflect "google.golang.org/protobuf/reflect/protoreflect" 16 protoimpl "google.golang.org/protobuf/runtime/protoimpl" 17 reflect "reflect" 18 sync "sync" 19 ) 20 21 const ( 22 // Verify that this generated code is sufficiently up-to-date. 23 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) 24 // Verify that runtime/protoimpl is sufficiently up-to-date. 25 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) 26 ) 27 28 // Stat indicates how a given item has changed. 29 type ManifestDiff_Stat int32 30 31 const ( 32 // These two items are identical 33 ManifestDiff_EQUAL ManifestDiff_Stat = 0 34 // The item was added in `new` compared to `old` 35 ManifestDiff_ADDED ManifestDiff_Stat = 1 36 // The item was removed in `new` compared to `old` 37 ManifestDiff_REMOVED ManifestDiff_Stat = 2 38 // The item is in both, but is incomparable (e.g. repo_url changed from 39 // `old` to `new`). 40 ManifestDiff_MODIFIED ManifestDiff_Stat = 4 41 // The item is in both, and is directly comparable (e.g. different 42 // revisions of the same repo_url). This only applies to the revision fields 43 // of SCM messages. 44 // 45 // This is 0x8 | MODIFIED, so that users who don't care about DIFF v. 46 // MODIFIED can check `Status & MODIFIED`. 47 ManifestDiff_DIFF ManifestDiff_Stat = 12 48 ) 49 50 // Enum value maps for ManifestDiff_Stat. 51 var ( 52 ManifestDiff_Stat_name = map[int32]string{ 53 0: "EQUAL", 54 1: "ADDED", 55 2: "REMOVED", 56 4: "MODIFIED", 57 12: "DIFF", 58 } 59 ManifestDiff_Stat_value = map[string]int32{ 60 "EQUAL": 0, 61 "ADDED": 1, 62 "REMOVED": 2, 63 "MODIFIED": 4, 64 "DIFF": 12, 65 } 66 ) 67 68 func (x ManifestDiff_Stat) Enum() *ManifestDiff_Stat { 69 p := new(ManifestDiff_Stat) 70 *p = x 71 return p 72 } 73 74 func (x ManifestDiff_Stat) String() string { 75 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) 76 } 77 78 func (ManifestDiff_Stat) Descriptor() protoreflect.EnumDescriptor { 79 return file_go_chromium_org_luci_common_proto_srcman_manifest_diff_proto_enumTypes[0].Descriptor() 80 } 81 82 func (ManifestDiff_Stat) Type() protoreflect.EnumType { 83 return &file_go_chromium_org_luci_common_proto_srcman_manifest_diff_proto_enumTypes[0] 84 } 85 86 func (x ManifestDiff_Stat) Number() protoreflect.EnumNumber { 87 return protoreflect.EnumNumber(x) 88 } 89 90 // Deprecated: Use ManifestDiff_Stat.Descriptor instead. 91 func (ManifestDiff_Stat) EnumDescriptor() ([]byte, []int) { 92 return file_go_chromium_org_luci_common_proto_srcman_manifest_diff_proto_rawDescGZIP(), []int{0, 0} 93 } 94 95 // ManifestDiff holds basic difference information between two source manifests. 96 type ManifestDiff struct { 97 state protoimpl.MessageState 98 sizeCache protoimpl.SizeCache 99 unknownFields protoimpl.UnknownFields 100 101 // The older of the two manifests. 102 Old *Manifest `protobuf:"bytes,1,opt,name=old,proto3" json:"old,omitempty"` 103 // The newer of the two manifests. 104 New *Manifest `protobuf:"bytes,2,opt,name=new,proto3" json:"new,omitempty"` 105 // Indicates if there is some overall difference between old and new. 106 Overall ManifestDiff_Stat `protobuf:"varint,3,opt,name=overall,proto3,enum=srcman.ManifestDiff_Stat" json:"overall,omitempty"` 107 Directories map[string]*ManifestDiff_Directory `protobuf:"bytes,4,rep,name=directories,proto3" json:"directories,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` 108 } 109 110 func (x *ManifestDiff) Reset() { 111 *x = ManifestDiff{} 112 if protoimpl.UnsafeEnabled { 113 mi := &file_go_chromium_org_luci_common_proto_srcman_manifest_diff_proto_msgTypes[0] 114 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 115 ms.StoreMessageInfo(mi) 116 } 117 } 118 119 func (x *ManifestDiff) String() string { 120 return protoimpl.X.MessageStringOf(x) 121 } 122 123 func (*ManifestDiff) ProtoMessage() {} 124 125 func (x *ManifestDiff) ProtoReflect() protoreflect.Message { 126 mi := &file_go_chromium_org_luci_common_proto_srcman_manifest_diff_proto_msgTypes[0] 127 if protoimpl.UnsafeEnabled && x != nil { 128 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 129 if ms.LoadMessageInfo() == nil { 130 ms.StoreMessageInfo(mi) 131 } 132 return ms 133 } 134 return mi.MessageOf(x) 135 } 136 137 // Deprecated: Use ManifestDiff.ProtoReflect.Descriptor instead. 138 func (*ManifestDiff) Descriptor() ([]byte, []int) { 139 return file_go_chromium_org_luci_common_proto_srcman_manifest_diff_proto_rawDescGZIP(), []int{0} 140 } 141 142 func (x *ManifestDiff) GetOld() *Manifest { 143 if x != nil { 144 return x.Old 145 } 146 return nil 147 } 148 149 func (x *ManifestDiff) GetNew() *Manifest { 150 if x != nil { 151 return x.New 152 } 153 return nil 154 } 155 156 func (x *ManifestDiff) GetOverall() ManifestDiff_Stat { 157 if x != nil { 158 return x.Overall 159 } 160 return ManifestDiff_EQUAL 161 } 162 163 func (x *ManifestDiff) GetDirectories() map[string]*ManifestDiff_Directory { 164 if x != nil { 165 return x.Directories 166 } 167 return nil 168 } 169 170 type ManifestDiff_GitCheckout struct { 171 state protoimpl.MessageState 172 sizeCache protoimpl.SizeCache 173 unknownFields protoimpl.UnknownFields 174 175 // Indicates if there is some overall difference between old and new. 176 Overall ManifestDiff_Stat `protobuf:"varint,1,opt,name=overall,proto3,enum=srcman.ManifestDiff_Stat" json:"overall,omitempty"` 177 // Indicates the status for the `revision` field. 178 // 179 // If this is DIFF, it is sensible to compute 180 // 181 // `git log repo_url old.revision new.revision` 182 Revision ManifestDiff_Stat `protobuf:"varint,2,opt,name=revision,proto3,enum=srcman.ManifestDiff_Stat" json:"revision,omitempty"` 183 // Indicates the status for the `patch_revision` field. It evaluates 184 // the patch_fetch_ref values to ensure that old and new are different 185 // patches from the same CL. 186 // 187 // If this is DIFF, it is sensible to compute 188 // 189 // `git log repo_url old.patch_revision new.patch_revision` 190 PatchRevision ManifestDiff_Stat `protobuf:"varint,3,opt,name=patch_revision,json=patchRevision,proto3,enum=srcman.ManifestDiff_Stat" json:"patch_revision,omitempty"` 191 // The URL that should be used for RPCs. It may differ from the url in old 192 // or new if the service computing this ManifestDiff knows of e.g. a repo 193 // URL migration. 194 RepoUrl string `protobuf:"bytes,4,opt,name=repo_url,json=repoUrl,proto3" json:"repo_url,omitempty"` 195 // If revision==DIFF, this may be populated with git history occurring 196 // between the two base revisions. 197 History []*git.Commit `protobuf:"bytes,5,rep,name=history,proto3" json:"history,omitempty"` 198 } 199 200 func (x *ManifestDiff_GitCheckout) Reset() { 201 *x = ManifestDiff_GitCheckout{} 202 if protoimpl.UnsafeEnabled { 203 mi := &file_go_chromium_org_luci_common_proto_srcman_manifest_diff_proto_msgTypes[1] 204 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 205 ms.StoreMessageInfo(mi) 206 } 207 } 208 209 func (x *ManifestDiff_GitCheckout) String() string { 210 return protoimpl.X.MessageStringOf(x) 211 } 212 213 func (*ManifestDiff_GitCheckout) ProtoMessage() {} 214 215 func (x *ManifestDiff_GitCheckout) ProtoReflect() protoreflect.Message { 216 mi := &file_go_chromium_org_luci_common_proto_srcman_manifest_diff_proto_msgTypes[1] 217 if protoimpl.UnsafeEnabled && x != nil { 218 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 219 if ms.LoadMessageInfo() == nil { 220 ms.StoreMessageInfo(mi) 221 } 222 return ms 223 } 224 return mi.MessageOf(x) 225 } 226 227 // Deprecated: Use ManifestDiff_GitCheckout.ProtoReflect.Descriptor instead. 228 func (*ManifestDiff_GitCheckout) Descriptor() ([]byte, []int) { 229 return file_go_chromium_org_luci_common_proto_srcman_manifest_diff_proto_rawDescGZIP(), []int{0, 0} 230 } 231 232 func (x *ManifestDiff_GitCheckout) GetOverall() ManifestDiff_Stat { 233 if x != nil { 234 return x.Overall 235 } 236 return ManifestDiff_EQUAL 237 } 238 239 func (x *ManifestDiff_GitCheckout) GetRevision() ManifestDiff_Stat { 240 if x != nil { 241 return x.Revision 242 } 243 return ManifestDiff_EQUAL 244 } 245 246 func (x *ManifestDiff_GitCheckout) GetPatchRevision() ManifestDiff_Stat { 247 if x != nil { 248 return x.PatchRevision 249 } 250 return ManifestDiff_EQUAL 251 } 252 253 func (x *ManifestDiff_GitCheckout) GetRepoUrl() string { 254 if x != nil { 255 return x.RepoUrl 256 } 257 return "" 258 } 259 260 func (x *ManifestDiff_GitCheckout) GetHistory() []*git.Commit { 261 if x != nil { 262 return x.History 263 } 264 return nil 265 } 266 267 type ManifestDiff_Directory struct { 268 state protoimpl.MessageState 269 sizeCache protoimpl.SizeCache 270 unknownFields protoimpl.UnknownFields 271 272 // This is the overall status for this Directory. 273 Overall ManifestDiff_Stat `protobuf:"varint,1,opt,name=overall,proto3,enum=srcman.ManifestDiff_Stat" json:"overall,omitempty"` 274 GitCheckout *ManifestDiff_GitCheckout `protobuf:"bytes,2,opt,name=git_checkout,json=gitCheckout,proto3" json:"git_checkout,omitempty"` 275 CipdServerHost ManifestDiff_Stat `protobuf:"varint,3,opt,name=cipd_server_host,json=cipdServerHost,proto3,enum=srcman.ManifestDiff_Stat" json:"cipd_server_host,omitempty"` 276 // Note: this will only ever be MODIFIED, because we cannot (yet) determine 277 // if two versions of a cipd package are diffable. We may later implement 278 // DIFF detection (i.e. if both packages use `version:<sha1>` tags). 279 CipdPackage map[string]ManifestDiff_Stat `protobuf:"bytes,4,rep,name=cipd_package,json=cipdPackage,proto3" json:"cipd_package,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"varint,2,opt,name=value,proto3,enum=srcman.ManifestDiff_Stat"` 280 } 281 282 func (x *ManifestDiff_Directory) Reset() { 283 *x = ManifestDiff_Directory{} 284 if protoimpl.UnsafeEnabled { 285 mi := &file_go_chromium_org_luci_common_proto_srcman_manifest_diff_proto_msgTypes[2] 286 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 287 ms.StoreMessageInfo(mi) 288 } 289 } 290 291 func (x *ManifestDiff_Directory) String() string { 292 return protoimpl.X.MessageStringOf(x) 293 } 294 295 func (*ManifestDiff_Directory) ProtoMessage() {} 296 297 func (x *ManifestDiff_Directory) ProtoReflect() protoreflect.Message { 298 mi := &file_go_chromium_org_luci_common_proto_srcman_manifest_diff_proto_msgTypes[2] 299 if protoimpl.UnsafeEnabled && x != nil { 300 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 301 if ms.LoadMessageInfo() == nil { 302 ms.StoreMessageInfo(mi) 303 } 304 return ms 305 } 306 return mi.MessageOf(x) 307 } 308 309 // Deprecated: Use ManifestDiff_Directory.ProtoReflect.Descriptor instead. 310 func (*ManifestDiff_Directory) Descriptor() ([]byte, []int) { 311 return file_go_chromium_org_luci_common_proto_srcman_manifest_diff_proto_rawDescGZIP(), []int{0, 1} 312 } 313 314 func (x *ManifestDiff_Directory) GetOverall() ManifestDiff_Stat { 315 if x != nil { 316 return x.Overall 317 } 318 return ManifestDiff_EQUAL 319 } 320 321 func (x *ManifestDiff_Directory) GetGitCheckout() *ManifestDiff_GitCheckout { 322 if x != nil { 323 return x.GitCheckout 324 } 325 return nil 326 } 327 328 func (x *ManifestDiff_Directory) GetCipdServerHost() ManifestDiff_Stat { 329 if x != nil { 330 return x.CipdServerHost 331 } 332 return ManifestDiff_EQUAL 333 } 334 335 func (x *ManifestDiff_Directory) GetCipdPackage() map[string]ManifestDiff_Stat { 336 if x != nil { 337 return x.CipdPackage 338 } 339 return nil 340 } 341 342 var File_go_chromium_org_luci_common_proto_srcman_manifest_diff_proto protoreflect.FileDescriptor 343 344 var file_go_chromium_org_luci_common_proto_srcman_manifest_diff_proto_rawDesc = []byte{ 345 0x0a, 0x3c, 0x67, 0x6f, 0x2e, 0x63, 0x68, 0x72, 0x6f, 0x6d, 0x69, 0x75, 0x6d, 0x2e, 0x6f, 0x72, 346 0x67, 0x2f, 0x6c, 0x75, 0x63, 0x69, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x70, 0x72, 347 0x6f, 0x74, 0x6f, 0x2f, 0x73, 0x72, 0x63, 0x6d, 0x61, 0x6e, 0x2f, 0x6d, 0x61, 0x6e, 0x69, 0x66, 348 0x65, 0x73, 0x74, 0x5f, 0x64, 0x69, 0x66, 0x66, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x06, 349 0x73, 0x72, 0x63, 0x6d, 0x61, 0x6e, 0x1a, 0x32, 0x67, 0x6f, 0x2e, 0x63, 0x68, 0x72, 0x6f, 0x6d, 350 0x69, 0x75, 0x6d, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x6c, 0x75, 0x63, 0x69, 0x2f, 0x63, 0x6f, 0x6d, 351 0x6d, 0x6f, 0x6e, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x69, 0x74, 0x2f, 0x63, 0x6f, 352 0x6d, 0x6d, 0x69, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x37, 0x67, 0x6f, 0x2e, 0x63, 353 0x68, 0x72, 0x6f, 0x6d, 0x69, 0x75, 0x6d, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x6c, 0x75, 0x63, 0x69, 354 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x73, 0x72, 355 0x63, 0x6d, 0x61, 0x6e, 0x2f, 0x6d, 0x61, 0x6e, 0x69, 0x66, 0x65, 0x73, 0x74, 0x2e, 0x70, 0x72, 356 0x6f, 0x74, 0x6f, 0x22, 0xff, 0x07, 0x0a, 0x0c, 0x4d, 0x61, 0x6e, 0x69, 0x66, 0x65, 0x73, 0x74, 357 0x44, 0x69, 0x66, 0x66, 0x12, 0x22, 0x0a, 0x03, 0x6f, 0x6c, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 358 0x0b, 0x32, 0x10, 0x2e, 0x73, 0x72, 0x63, 0x6d, 0x61, 0x6e, 0x2e, 0x4d, 0x61, 0x6e, 0x69, 0x66, 359 0x65, 0x73, 0x74, 0x52, 0x03, 0x6f, 0x6c, 0x64, 0x12, 0x22, 0x0a, 0x03, 0x6e, 0x65, 0x77, 0x18, 360 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x73, 0x72, 0x63, 0x6d, 0x61, 0x6e, 0x2e, 0x4d, 361 0x61, 0x6e, 0x69, 0x66, 0x65, 0x73, 0x74, 0x52, 0x03, 0x6e, 0x65, 0x77, 0x12, 0x33, 0x0a, 0x07, 362 0x6f, 0x76, 0x65, 0x72, 0x61, 0x6c, 0x6c, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x19, 0x2e, 363 0x73, 0x72, 0x63, 0x6d, 0x61, 0x6e, 0x2e, 0x4d, 0x61, 0x6e, 0x69, 0x66, 0x65, 0x73, 0x74, 0x44, 364 0x69, 0x66, 0x66, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x52, 0x07, 0x6f, 0x76, 0x65, 0x72, 0x61, 0x6c, 365 0x6c, 0x12, 0x47, 0x0a, 0x0b, 0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x69, 0x65, 0x73, 366 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x73, 0x72, 0x63, 0x6d, 0x61, 0x6e, 0x2e, 367 0x4d, 0x61, 0x6e, 0x69, 0x66, 0x65, 0x73, 0x74, 0x44, 0x69, 0x66, 0x66, 0x2e, 0x44, 0x69, 0x72, 368 0x65, 0x63, 0x74, 0x6f, 0x72, 0x69, 0x65, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0b, 0x64, 369 0x69, 0x72, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x69, 0x65, 0x73, 0x1a, 0xfd, 0x01, 0x0a, 0x0b, 0x47, 370 0x69, 0x74, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x6f, 0x75, 0x74, 0x12, 0x33, 0x0a, 0x07, 0x6f, 0x76, 371 0x65, 0x72, 0x61, 0x6c, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x19, 0x2e, 0x73, 0x72, 372 0x63, 0x6d, 0x61, 0x6e, 0x2e, 0x4d, 0x61, 0x6e, 0x69, 0x66, 0x65, 0x73, 0x74, 0x44, 0x69, 0x66, 373 0x66, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x52, 0x07, 0x6f, 0x76, 0x65, 0x72, 0x61, 0x6c, 0x6c, 0x12, 374 0x35, 0x0a, 0x08, 0x72, 0x65, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 375 0x0e, 0x32, 0x19, 0x2e, 0x73, 0x72, 0x63, 0x6d, 0x61, 0x6e, 0x2e, 0x4d, 0x61, 0x6e, 0x69, 0x66, 376 0x65, 0x73, 0x74, 0x44, 0x69, 0x66, 0x66, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x52, 0x08, 0x72, 0x65, 377 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x40, 0x0a, 0x0e, 0x70, 0x61, 0x74, 0x63, 0x68, 0x5f, 378 0x72, 0x65, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x19, 379 0x2e, 0x73, 0x72, 0x63, 0x6d, 0x61, 0x6e, 0x2e, 0x4d, 0x61, 0x6e, 0x69, 0x66, 0x65, 0x73, 0x74, 380 0x44, 0x69, 0x66, 0x66, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x52, 0x0d, 0x70, 0x61, 0x74, 0x63, 0x68, 381 0x52, 0x65, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x19, 0x0a, 0x08, 0x72, 0x65, 0x70, 0x6f, 382 0x5f, 0x75, 0x72, 0x6c, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x72, 0x65, 0x70, 0x6f, 383 0x55, 0x72, 0x6c, 0x12, 0x25, 0x0a, 0x07, 0x68, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x18, 0x05, 384 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0b, 0x2e, 0x67, 0x69, 0x74, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 385 0x74, 0x52, 0x07, 0x68, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x1a, 0x85, 0x03, 0x0a, 0x09, 0x44, 386 0x69, 0x72, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x79, 0x12, 0x33, 0x0a, 0x07, 0x6f, 0x76, 0x65, 0x72, 387 0x61, 0x6c, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x19, 0x2e, 0x73, 0x72, 0x63, 0x6d, 388 0x61, 0x6e, 0x2e, 0x4d, 0x61, 0x6e, 0x69, 0x66, 0x65, 0x73, 0x74, 0x44, 0x69, 0x66, 0x66, 0x2e, 389 0x53, 0x74, 0x61, 0x74, 0x52, 0x07, 0x6f, 0x76, 0x65, 0x72, 0x61, 0x6c, 0x6c, 0x12, 0x43, 0x0a, 390 0x0c, 0x67, 0x69, 0x74, 0x5f, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x6f, 0x75, 0x74, 0x18, 0x02, 0x20, 391 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x73, 0x72, 0x63, 0x6d, 0x61, 0x6e, 0x2e, 0x4d, 0x61, 0x6e, 392 0x69, 0x66, 0x65, 0x73, 0x74, 0x44, 0x69, 0x66, 0x66, 0x2e, 0x47, 0x69, 0x74, 0x43, 0x68, 0x65, 393 0x63, 0x6b, 0x6f, 0x75, 0x74, 0x52, 0x0b, 0x67, 0x69, 0x74, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x6f, 394 0x75, 0x74, 0x12, 0x43, 0x0a, 0x10, 0x63, 0x69, 0x70, 0x64, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x65, 395 0x72, 0x5f, 0x68, 0x6f, 0x73, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x19, 0x2e, 0x73, 396 0x72, 0x63, 0x6d, 0x61, 0x6e, 0x2e, 0x4d, 0x61, 0x6e, 0x69, 0x66, 0x65, 0x73, 0x74, 0x44, 0x69, 397 0x66, 0x66, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x52, 0x0e, 0x63, 0x69, 0x70, 0x64, 0x53, 0x65, 0x72, 398 0x76, 0x65, 0x72, 0x48, 0x6f, 0x73, 0x74, 0x12, 0x52, 0x0a, 0x0c, 0x63, 0x69, 0x70, 0x64, 0x5f, 399 0x70, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2f, 0x2e, 400 0x73, 0x72, 0x63, 0x6d, 0x61, 0x6e, 0x2e, 0x4d, 0x61, 0x6e, 0x69, 0x66, 0x65, 0x73, 0x74, 0x44, 401 0x69, 0x66, 0x66, 0x2e, 0x44, 0x69, 0x72, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x43, 0x69, 402 0x70, 0x64, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0b, 403 0x63, 0x69, 0x70, 0x64, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x1a, 0x59, 0x0a, 0x10, 0x43, 404 0x69, 0x70, 0x64, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 405 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 406 0x79, 0x12, 0x2f, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 407 0x32, 0x19, 0x2e, 0x73, 0x72, 0x63, 0x6d, 0x61, 0x6e, 0x2e, 0x4d, 0x61, 0x6e, 0x69, 0x66, 0x65, 408 0x73, 0x74, 0x44, 0x69, 0x66, 0x66, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x52, 0x05, 0x76, 0x61, 0x6c, 409 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x4a, 0x04, 0x08, 0x05, 0x10, 0x06, 0x4a, 0x04, 0x08, 0x06, 410 0x10, 0x07, 0x1a, 0x5e, 0x0a, 0x10, 0x44, 0x69, 0x72, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x69, 0x65, 411 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 412 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x34, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 413 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x73, 0x72, 0x63, 0x6d, 0x61, 0x6e, 414 0x2e, 0x4d, 0x61, 0x6e, 0x69, 0x66, 0x65, 0x73, 0x74, 0x44, 0x69, 0x66, 0x66, 0x2e, 0x44, 0x69, 415 0x72, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x79, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 416 0x38, 0x01, 0x22, 0x41, 0x0a, 0x04, 0x53, 0x74, 0x61, 0x74, 0x12, 0x09, 0x0a, 0x05, 0x45, 0x51, 417 0x55, 0x41, 0x4c, 0x10, 0x00, 0x12, 0x09, 0x0a, 0x05, 0x41, 0x44, 0x44, 0x45, 0x44, 0x10, 0x01, 418 0x12, 0x0b, 0x0a, 0x07, 0x52, 0x45, 0x4d, 0x4f, 0x56, 0x45, 0x44, 0x10, 0x02, 0x12, 0x0c, 0x0a, 419 0x08, 0x4d, 0x4f, 0x44, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x04, 0x12, 0x08, 0x0a, 0x04, 0x44, 420 0x49, 0x46, 0x46, 0x10, 0x0c, 0x42, 0x2a, 0x5a, 0x28, 0x67, 0x6f, 0x2e, 0x63, 0x68, 0x72, 0x6f, 421 0x6d, 0x69, 0x75, 0x6d, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x6c, 0x75, 0x63, 0x69, 0x2f, 0x63, 0x6f, 422 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x73, 0x72, 0x63, 0x6d, 0x61, 423 0x6e, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, 424 } 425 426 var ( 427 file_go_chromium_org_luci_common_proto_srcman_manifest_diff_proto_rawDescOnce sync.Once 428 file_go_chromium_org_luci_common_proto_srcman_manifest_diff_proto_rawDescData = file_go_chromium_org_luci_common_proto_srcman_manifest_diff_proto_rawDesc 429 ) 430 431 func file_go_chromium_org_luci_common_proto_srcman_manifest_diff_proto_rawDescGZIP() []byte { 432 file_go_chromium_org_luci_common_proto_srcman_manifest_diff_proto_rawDescOnce.Do(func() { 433 file_go_chromium_org_luci_common_proto_srcman_manifest_diff_proto_rawDescData = protoimpl.X.CompressGZIP(file_go_chromium_org_luci_common_proto_srcman_manifest_diff_proto_rawDescData) 434 }) 435 return file_go_chromium_org_luci_common_proto_srcman_manifest_diff_proto_rawDescData 436 } 437 438 var file_go_chromium_org_luci_common_proto_srcman_manifest_diff_proto_enumTypes = make([]protoimpl.EnumInfo, 1) 439 var file_go_chromium_org_luci_common_proto_srcman_manifest_diff_proto_msgTypes = make([]protoimpl.MessageInfo, 5) 440 var file_go_chromium_org_luci_common_proto_srcman_manifest_diff_proto_goTypes = []interface{}{ 441 (ManifestDiff_Stat)(0), // 0: srcman.ManifestDiff.Stat 442 (*ManifestDiff)(nil), // 1: srcman.ManifestDiff 443 (*ManifestDiff_GitCheckout)(nil), // 2: srcman.ManifestDiff.GitCheckout 444 (*ManifestDiff_Directory)(nil), // 3: srcman.ManifestDiff.Directory 445 nil, // 4: srcman.ManifestDiff.DirectoriesEntry 446 nil, // 5: srcman.ManifestDiff.Directory.CipdPackageEntry 447 (*Manifest)(nil), // 6: srcman.Manifest 448 (*git.Commit)(nil), // 7: git.Commit 449 } 450 var file_go_chromium_org_luci_common_proto_srcman_manifest_diff_proto_depIdxs = []int32{ 451 6, // 0: srcman.ManifestDiff.old:type_name -> srcman.Manifest 452 6, // 1: srcman.ManifestDiff.new:type_name -> srcman.Manifest 453 0, // 2: srcman.ManifestDiff.overall:type_name -> srcman.ManifestDiff.Stat 454 4, // 3: srcman.ManifestDiff.directories:type_name -> srcman.ManifestDiff.DirectoriesEntry 455 0, // 4: srcman.ManifestDiff.GitCheckout.overall:type_name -> srcman.ManifestDiff.Stat 456 0, // 5: srcman.ManifestDiff.GitCheckout.revision:type_name -> srcman.ManifestDiff.Stat 457 0, // 6: srcman.ManifestDiff.GitCheckout.patch_revision:type_name -> srcman.ManifestDiff.Stat 458 7, // 7: srcman.ManifestDiff.GitCheckout.history:type_name -> git.Commit 459 0, // 8: srcman.ManifestDiff.Directory.overall:type_name -> srcman.ManifestDiff.Stat 460 2, // 9: srcman.ManifestDiff.Directory.git_checkout:type_name -> srcman.ManifestDiff.GitCheckout 461 0, // 10: srcman.ManifestDiff.Directory.cipd_server_host:type_name -> srcman.ManifestDiff.Stat 462 5, // 11: srcman.ManifestDiff.Directory.cipd_package:type_name -> srcman.ManifestDiff.Directory.CipdPackageEntry 463 3, // 12: srcman.ManifestDiff.DirectoriesEntry.value:type_name -> srcman.ManifestDiff.Directory 464 0, // 13: srcman.ManifestDiff.Directory.CipdPackageEntry.value:type_name -> srcman.ManifestDiff.Stat 465 14, // [14:14] is the sub-list for method output_type 466 14, // [14:14] is the sub-list for method input_type 467 14, // [14:14] is the sub-list for extension type_name 468 14, // [14:14] is the sub-list for extension extendee 469 0, // [0:14] is the sub-list for field type_name 470 } 471 472 func init() { file_go_chromium_org_luci_common_proto_srcman_manifest_diff_proto_init() } 473 func file_go_chromium_org_luci_common_proto_srcman_manifest_diff_proto_init() { 474 if File_go_chromium_org_luci_common_proto_srcman_manifest_diff_proto != nil { 475 return 476 } 477 file_go_chromium_org_luci_common_proto_srcman_manifest_proto_init() 478 if !protoimpl.UnsafeEnabled { 479 file_go_chromium_org_luci_common_proto_srcman_manifest_diff_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 480 switch v := v.(*ManifestDiff); i { 481 case 0: 482 return &v.state 483 case 1: 484 return &v.sizeCache 485 case 2: 486 return &v.unknownFields 487 default: 488 return nil 489 } 490 } 491 file_go_chromium_org_luci_common_proto_srcman_manifest_diff_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { 492 switch v := v.(*ManifestDiff_GitCheckout); i { 493 case 0: 494 return &v.state 495 case 1: 496 return &v.sizeCache 497 case 2: 498 return &v.unknownFields 499 default: 500 return nil 501 } 502 } 503 file_go_chromium_org_luci_common_proto_srcman_manifest_diff_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { 504 switch v := v.(*ManifestDiff_Directory); i { 505 case 0: 506 return &v.state 507 case 1: 508 return &v.sizeCache 509 case 2: 510 return &v.unknownFields 511 default: 512 return nil 513 } 514 } 515 } 516 type x struct{} 517 out := protoimpl.TypeBuilder{ 518 File: protoimpl.DescBuilder{ 519 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 520 RawDescriptor: file_go_chromium_org_luci_common_proto_srcman_manifest_diff_proto_rawDesc, 521 NumEnums: 1, 522 NumMessages: 5, 523 NumExtensions: 0, 524 NumServices: 0, 525 }, 526 GoTypes: file_go_chromium_org_luci_common_proto_srcman_manifest_diff_proto_goTypes, 527 DependencyIndexes: file_go_chromium_org_luci_common_proto_srcman_manifest_diff_proto_depIdxs, 528 EnumInfos: file_go_chromium_org_luci_common_proto_srcman_manifest_diff_proto_enumTypes, 529 MessageInfos: file_go_chromium_org_luci_common_proto_srcman_manifest_diff_proto_msgTypes, 530 }.Build() 531 File_go_chromium_org_luci_common_proto_srcman_manifest_diff_proto = out.File 532 file_go_chromium_org_luci_common_proto_srcman_manifest_diff_proto_rawDesc = nil 533 file_go_chromium_org_luci_common_proto_srcman_manifest_diff_proto_goTypes = nil 534 file_go_chromium_org_luci_common_proto_srcman_manifest_diff_proto_depIdxs = nil 535 }