go.chromium.org/luci@v0.0.0-20240309015107-7cdc2e660f33/common/proto/gitiles/gitiles.pb.go (about) 1 // Copyright 2017 The LUCI Authors. 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 // Code generated by protoc-gen-go. DO NOT EDIT. 16 // versions: 17 // protoc-gen-go v1.31.0 18 // protoc v3.21.7 19 // source: go.chromium.org/luci/common/proto/gitiles/gitiles.proto 20 21 package gitiles 22 23 import prpc "go.chromium.org/luci/grpc/prpc" 24 25 import ( 26 context "context" 27 git "go.chromium.org/luci/common/proto/git" 28 grpc "google.golang.org/grpc" 29 codes "google.golang.org/grpc/codes" 30 status "google.golang.org/grpc/status" 31 protoreflect "google.golang.org/protobuf/reflect/protoreflect" 32 protoimpl "google.golang.org/protobuf/runtime/protoimpl" 33 reflect "reflect" 34 sync "sync" 35 ) 36 37 const ( 38 // Verify that this generated code is sufficiently up-to-date. 39 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) 40 // Verify that runtime/protoimpl is sufficiently up-to-date. 41 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) 42 ) 43 44 // List copied from 45 // https://github.com/google/gitiles/blob/65edbe49f2b3882a5979f602383ef0c7b2b8ee0c/java/com/google/gitiles/ArchiveFormat.java 46 type ArchiveRequest_Format int32 47 48 const ( 49 ArchiveRequest_Invalid ArchiveRequest_Format = 0 50 ArchiveRequest_GZIP ArchiveRequest_Format = 1 51 ArchiveRequest_TAR ArchiveRequest_Format = 2 52 ArchiveRequest_BZIP2 ArchiveRequest_Format = 3 53 ArchiveRequest_XZ ArchiveRequest_Format = 4 54 ) 55 56 // Enum value maps for ArchiveRequest_Format. 57 var ( 58 ArchiveRequest_Format_name = map[int32]string{ 59 0: "Invalid", 60 1: "GZIP", 61 2: "TAR", 62 3: "BZIP2", 63 4: "XZ", 64 } 65 ArchiveRequest_Format_value = map[string]int32{ 66 "Invalid": 0, 67 "GZIP": 1, 68 "TAR": 2, 69 "BZIP2": 3, 70 "XZ": 4, 71 } 72 ) 73 74 func (x ArchiveRequest_Format) Enum() *ArchiveRequest_Format { 75 p := new(ArchiveRequest_Format) 76 *p = x 77 return p 78 } 79 80 func (x ArchiveRequest_Format) String() string { 81 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) 82 } 83 84 func (ArchiveRequest_Format) Descriptor() protoreflect.EnumDescriptor { 85 return file_go_chromium_org_luci_common_proto_gitiles_gitiles_proto_enumTypes[0].Descriptor() 86 } 87 88 func (ArchiveRequest_Format) Type() protoreflect.EnumType { 89 return &file_go_chromium_org_luci_common_proto_gitiles_gitiles_proto_enumTypes[0] 90 } 91 92 func (x ArchiveRequest_Format) Number() protoreflect.EnumNumber { 93 return protoreflect.EnumNumber(x) 94 } 95 96 // Deprecated: Use ArchiveRequest_Format.Descriptor instead. 97 func (ArchiveRequest_Format) EnumDescriptor() ([]byte, []int) { 98 return file_go_chromium_org_luci_common_proto_gitiles_gitiles_proto_rawDescGZIP(), []int{4, 0} 99 } 100 101 // LogRequest is request message for Gitiles.Log rpc. 102 type LogRequest struct { 103 state protoimpl.MessageState 104 sizeCache protoimpl.SizeCache 105 unknownFields protoimpl.UnknownFields 106 107 // Gitiles project, e.g. "chromium/src" part in 108 // https://chromium.googlesource.com/chromium/src/+/main 109 // Required. 110 Project string `protobuf:"bytes,1,opt,name=project,proto3" json:"project,omitempty"` 111 // The commit where to start the listing from. 112 // The value can be: 113 // - a git revision as 40-char string or its prefix so long as its unique in repo. 114 // - a ref such as "refs/heads/branch" 115 // - a ref defined as n-th parent of R in the form "R~n". 116 // For example, "main~2" or "deadbeef~1". 117 // 118 // Required. 119 Committish string `protobuf:"bytes,3,opt,name=committish,proto3" json:"committish,omitempty"` 120 // If specified, only commits not reachable from this commit (inclusive) 121 // will be returned. 122 // 123 // In git's notation, this is 124 // 125 // $ git log ^exclude_ancestors_of committish 126 // OR 127 // $ git log exclude_ancestors_of..committish 128 // 129 // https://git-scm.com/docs/gitrevisions#gitrevisions-Theememtwo-dotRangeNotation 130 // 131 // For example, given this repo 132 // 133 // base -> A -> B -> C == refs/heads/main 134 // \ 135 // X -> Y -> Z == refs/heads/release 136 // 137 // calling Log(committish='refs/heads/release', 138 // 139 // exclude_ancestors_of='refs/heads/main') 140 // 141 // will return ['Z', Y', 'X']. 142 ExcludeAncestorsOf string `protobuf:"bytes,2,opt,name=exclude_ancestors_of,json=excludeAncestorsOf,proto3" json:"exclude_ancestors_of,omitempty"` 143 // If true, include tree diff in commits. 144 TreeDiff bool `protobuf:"varint,4,opt,name=tree_diff,json=treeDiff,proto3" json:"tree_diff,omitempty"` 145 // If set to a non-empty value, the log will be for the given path 146 Path string `protobuf:"bytes,12,opt,name=path,proto3" json:"path,omitempty"` 147 // Value of next_page_token in LogResponse to continue. 148 PageToken string `protobuf:"bytes,10,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` 149 // If > 0, number of commits to retrieve. 150 PageSize int32 `protobuf:"varint,11,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` 151 } 152 153 func (x *LogRequest) Reset() { 154 *x = LogRequest{} 155 if protoimpl.UnsafeEnabled { 156 mi := &file_go_chromium_org_luci_common_proto_gitiles_gitiles_proto_msgTypes[0] 157 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 158 ms.StoreMessageInfo(mi) 159 } 160 } 161 162 func (x *LogRequest) String() string { 163 return protoimpl.X.MessageStringOf(x) 164 } 165 166 func (*LogRequest) ProtoMessage() {} 167 168 func (x *LogRequest) ProtoReflect() protoreflect.Message { 169 mi := &file_go_chromium_org_luci_common_proto_gitiles_gitiles_proto_msgTypes[0] 170 if protoimpl.UnsafeEnabled && x != nil { 171 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 172 if ms.LoadMessageInfo() == nil { 173 ms.StoreMessageInfo(mi) 174 } 175 return ms 176 } 177 return mi.MessageOf(x) 178 } 179 180 // Deprecated: Use LogRequest.ProtoReflect.Descriptor instead. 181 func (*LogRequest) Descriptor() ([]byte, []int) { 182 return file_go_chromium_org_luci_common_proto_gitiles_gitiles_proto_rawDescGZIP(), []int{0} 183 } 184 185 func (x *LogRequest) GetProject() string { 186 if x != nil { 187 return x.Project 188 } 189 return "" 190 } 191 192 func (x *LogRequest) GetCommittish() string { 193 if x != nil { 194 return x.Committish 195 } 196 return "" 197 } 198 199 func (x *LogRequest) GetExcludeAncestorsOf() string { 200 if x != nil { 201 return x.ExcludeAncestorsOf 202 } 203 return "" 204 } 205 206 func (x *LogRequest) GetTreeDiff() bool { 207 if x != nil { 208 return x.TreeDiff 209 } 210 return false 211 } 212 213 func (x *LogRequest) GetPath() string { 214 if x != nil { 215 return x.Path 216 } 217 return "" 218 } 219 220 func (x *LogRequest) GetPageToken() string { 221 if x != nil { 222 return x.PageToken 223 } 224 return "" 225 } 226 227 func (x *LogRequest) GetPageSize() int32 { 228 if x != nil { 229 return x.PageSize 230 } 231 return 0 232 } 233 234 // LogRequest is response message for Gitiles.Log rpc. 235 type LogResponse struct { 236 state protoimpl.MessageState 237 sizeCache protoimpl.SizeCache 238 unknownFields protoimpl.UnknownFields 239 240 // Retrieved commits. 241 Log []*git.Commit `protobuf:"bytes,1,rep,name=log,proto3" json:"log,omitempty"` 242 // A page token for next LogRequest to fetch next page of commits. 243 NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` 244 } 245 246 func (x *LogResponse) Reset() { 247 *x = LogResponse{} 248 if protoimpl.UnsafeEnabled { 249 mi := &file_go_chromium_org_luci_common_proto_gitiles_gitiles_proto_msgTypes[1] 250 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 251 ms.StoreMessageInfo(mi) 252 } 253 } 254 255 func (x *LogResponse) String() string { 256 return protoimpl.X.MessageStringOf(x) 257 } 258 259 func (*LogResponse) ProtoMessage() {} 260 261 func (x *LogResponse) ProtoReflect() protoreflect.Message { 262 mi := &file_go_chromium_org_luci_common_proto_gitiles_gitiles_proto_msgTypes[1] 263 if protoimpl.UnsafeEnabled && x != nil { 264 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 265 if ms.LoadMessageInfo() == nil { 266 ms.StoreMessageInfo(mi) 267 } 268 return ms 269 } 270 return mi.MessageOf(x) 271 } 272 273 // Deprecated: Use LogResponse.ProtoReflect.Descriptor instead. 274 func (*LogResponse) Descriptor() ([]byte, []int) { 275 return file_go_chromium_org_luci_common_proto_gitiles_gitiles_proto_rawDescGZIP(), []int{1} 276 } 277 278 func (x *LogResponse) GetLog() []*git.Commit { 279 if x != nil { 280 return x.Log 281 } 282 return nil 283 } 284 285 func (x *LogResponse) GetNextPageToken() string { 286 if x != nil { 287 return x.NextPageToken 288 } 289 return "" 290 } 291 292 // RefsRequest is a request message of Gitiles.Refs RPC. 293 type RefsRequest struct { 294 state protoimpl.MessageState 295 sizeCache protoimpl.SizeCache 296 unknownFields protoimpl.UnknownFields 297 298 // Gitiles project, e.g. "chromium/src" part in 299 // https://chromium.googlesource.com/chromium/src/+/main 300 // Required. 301 Project string `protobuf:"bytes,1,opt,name=project,proto3" json:"project,omitempty"` 302 // Limits which refs to resolve to only those matching {refsPath}/*. 303 // 304 // Must be "refs" or start with "refs/". 305 // Must not include glob '*'. 306 // Use "refs/heads" to retrieve all branches. 307 // 308 // To fetch **all** refs in a repo, specify just "refs" but beware of two 309 // caveats: 310 // - refs returned include a ref for each patchset for each Gerrit change 311 // associated with the repo. 312 // - returned map will contain special "HEAD" ref whose value in resulting map 313 // will be name of the actual ref to which "HEAD" points, which is typically 314 // "refs/heads/main". 315 // 316 // Thus, if you are looking for all tags and all branches of repo, it's 317 // recommended to issue two Refs calls limited to "refs/tags" and "refs/heads" 318 // instead of one call for "refs". 319 // 320 // Since Gerrit allows per-ref ACLs, it is possible that some refs matching 321 // refPrefix would not be present in results because current user isn't granted 322 // read permission on them. 323 RefsPath string `protobuf:"bytes,2,opt,name=refs_path,json=refsPath,proto3" json:"refs_path,omitempty"` 324 } 325 326 func (x *RefsRequest) Reset() { 327 *x = RefsRequest{} 328 if protoimpl.UnsafeEnabled { 329 mi := &file_go_chromium_org_luci_common_proto_gitiles_gitiles_proto_msgTypes[2] 330 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 331 ms.StoreMessageInfo(mi) 332 } 333 } 334 335 func (x *RefsRequest) String() string { 336 return protoimpl.X.MessageStringOf(x) 337 } 338 339 func (*RefsRequest) ProtoMessage() {} 340 341 func (x *RefsRequest) ProtoReflect() protoreflect.Message { 342 mi := &file_go_chromium_org_luci_common_proto_gitiles_gitiles_proto_msgTypes[2] 343 if protoimpl.UnsafeEnabled && x != nil { 344 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 345 if ms.LoadMessageInfo() == nil { 346 ms.StoreMessageInfo(mi) 347 } 348 return ms 349 } 350 return mi.MessageOf(x) 351 } 352 353 // Deprecated: Use RefsRequest.ProtoReflect.Descriptor instead. 354 func (*RefsRequest) Descriptor() ([]byte, []int) { 355 return file_go_chromium_org_luci_common_proto_gitiles_gitiles_proto_rawDescGZIP(), []int{2} 356 } 357 358 func (x *RefsRequest) GetProject() string { 359 if x != nil { 360 return x.Project 361 } 362 return "" 363 } 364 365 func (x *RefsRequest) GetRefsPath() string { 366 if x != nil { 367 return x.RefsPath 368 } 369 return "" 370 } 371 372 // RefsResponse is a response message of Gitiles.Refs RPC. 373 type RefsResponse struct { 374 state protoimpl.MessageState 375 sizeCache protoimpl.SizeCache 376 unknownFields protoimpl.UnknownFields 377 378 // revisions maps a ref to a revision. 379 // Git branches have keys start with "refs/heads/". 380 Revisions map[string]string `protobuf:"bytes,2,rep,name=revisions,proto3" json:"revisions,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` 381 } 382 383 func (x *RefsResponse) Reset() { 384 *x = RefsResponse{} 385 if protoimpl.UnsafeEnabled { 386 mi := &file_go_chromium_org_luci_common_proto_gitiles_gitiles_proto_msgTypes[3] 387 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 388 ms.StoreMessageInfo(mi) 389 } 390 } 391 392 func (x *RefsResponse) String() string { 393 return protoimpl.X.MessageStringOf(x) 394 } 395 396 func (*RefsResponse) ProtoMessage() {} 397 398 func (x *RefsResponse) ProtoReflect() protoreflect.Message { 399 mi := &file_go_chromium_org_luci_common_proto_gitiles_gitiles_proto_msgTypes[3] 400 if protoimpl.UnsafeEnabled && x != nil { 401 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 402 if ms.LoadMessageInfo() == nil { 403 ms.StoreMessageInfo(mi) 404 } 405 return ms 406 } 407 return mi.MessageOf(x) 408 } 409 410 // Deprecated: Use RefsResponse.ProtoReflect.Descriptor instead. 411 func (*RefsResponse) Descriptor() ([]byte, []int) { 412 return file_go_chromium_org_luci_common_proto_gitiles_gitiles_proto_rawDescGZIP(), []int{3} 413 } 414 415 func (x *RefsResponse) GetRevisions() map[string]string { 416 if x != nil { 417 return x.Revisions 418 } 419 return nil 420 } 421 422 // ArchiveRequest is a request message of the Gitiles.Archive RPC. 423 type ArchiveRequest struct { 424 state protoimpl.MessageState 425 sizeCache protoimpl.SizeCache 426 unknownFields protoimpl.UnknownFields 427 428 // Gitiles project, e.g. "chromium/src" part in 429 // https://chromium.googlesource.com/chromium/src/+/main 430 // Required. 431 Project string `protobuf:"bytes,1,opt,name=project,proto3" json:"project,omitempty"` 432 // The ref at which to generate the project archive for. 433 // 434 // viz refs/for/branch or just branch 435 Ref string `protobuf:"bytes,2,opt,name=ref,proto3" json:"ref,omitempty"` 436 // Format of the returned archive. 437 Format ArchiveRequest_Format `protobuf:"varint,3,opt,name=format,proto3,enum=gitiles.ArchiveRequest_Format" json:"format,omitempty"` 438 // POSIX style path relative to the project root. 439 // Optional. If not specified, it means to get the entire project archive. 440 Path string `protobuf:"bytes,4,opt,name=path,proto3" json:"path,omitempty"` 441 } 442 443 func (x *ArchiveRequest) Reset() { 444 *x = ArchiveRequest{} 445 if protoimpl.UnsafeEnabled { 446 mi := &file_go_chromium_org_luci_common_proto_gitiles_gitiles_proto_msgTypes[4] 447 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 448 ms.StoreMessageInfo(mi) 449 } 450 } 451 452 func (x *ArchiveRequest) String() string { 453 return protoimpl.X.MessageStringOf(x) 454 } 455 456 func (*ArchiveRequest) ProtoMessage() {} 457 458 func (x *ArchiveRequest) ProtoReflect() protoreflect.Message { 459 mi := &file_go_chromium_org_luci_common_proto_gitiles_gitiles_proto_msgTypes[4] 460 if protoimpl.UnsafeEnabled && x != nil { 461 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 462 if ms.LoadMessageInfo() == nil { 463 ms.StoreMessageInfo(mi) 464 } 465 return ms 466 } 467 return mi.MessageOf(x) 468 } 469 470 // Deprecated: Use ArchiveRequest.ProtoReflect.Descriptor instead. 471 func (*ArchiveRequest) Descriptor() ([]byte, []int) { 472 return file_go_chromium_org_luci_common_proto_gitiles_gitiles_proto_rawDescGZIP(), []int{4} 473 } 474 475 func (x *ArchiveRequest) GetProject() string { 476 if x != nil { 477 return x.Project 478 } 479 return "" 480 } 481 482 func (x *ArchiveRequest) GetRef() string { 483 if x != nil { 484 return x.Ref 485 } 486 return "" 487 } 488 489 func (x *ArchiveRequest) GetFormat() ArchiveRequest_Format { 490 if x != nil { 491 return x.Format 492 } 493 return ArchiveRequest_Invalid 494 } 495 496 func (x *ArchiveRequest) GetPath() string { 497 if x != nil { 498 return x.Path 499 } 500 return "" 501 } 502 503 type ArchiveResponse struct { 504 state protoimpl.MessageState 505 sizeCache protoimpl.SizeCache 506 unknownFields protoimpl.UnknownFields 507 508 // Suggested name of the returned archive. 509 Filename string `protobuf:"bytes,1,opt,name=filename,proto3" json:"filename,omitempty"` 510 // Contents of the archive streamed from gitiles. 511 // 512 // The underlying server RPC streams back the contents. This API simplifies 513 // the RPC to a non-streaming response. 514 Contents []byte `protobuf:"bytes,2,opt,name=contents,proto3" json:"contents,omitempty"` 515 } 516 517 func (x *ArchiveResponse) Reset() { 518 *x = ArchiveResponse{} 519 if protoimpl.UnsafeEnabled { 520 mi := &file_go_chromium_org_luci_common_proto_gitiles_gitiles_proto_msgTypes[5] 521 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 522 ms.StoreMessageInfo(mi) 523 } 524 } 525 526 func (x *ArchiveResponse) String() string { 527 return protoimpl.X.MessageStringOf(x) 528 } 529 530 func (*ArchiveResponse) ProtoMessage() {} 531 532 func (x *ArchiveResponse) ProtoReflect() protoreflect.Message { 533 mi := &file_go_chromium_org_luci_common_proto_gitiles_gitiles_proto_msgTypes[5] 534 if protoimpl.UnsafeEnabled && x != nil { 535 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 536 if ms.LoadMessageInfo() == nil { 537 ms.StoreMessageInfo(mi) 538 } 539 return ms 540 } 541 return mi.MessageOf(x) 542 } 543 544 // Deprecated: Use ArchiveResponse.ProtoReflect.Descriptor instead. 545 func (*ArchiveResponse) Descriptor() ([]byte, []int) { 546 return file_go_chromium_org_luci_common_proto_gitiles_gitiles_proto_rawDescGZIP(), []int{5} 547 } 548 549 func (x *ArchiveResponse) GetFilename() string { 550 if x != nil { 551 return x.Filename 552 } 553 return "" 554 } 555 556 func (x *ArchiveResponse) GetContents() []byte { 557 if x != nil { 558 return x.Contents 559 } 560 return nil 561 } 562 563 type DownloadFileRequest struct { 564 state protoimpl.MessageState 565 sizeCache protoimpl.SizeCache 566 unknownFields protoimpl.UnknownFields 567 568 // Gitiles project, e.g. "chromium/src" part in 569 // https://chromium.googlesource.com/chromium/src/+/main 570 // Required. 571 Project string `protobuf:"bytes,1,opt,name=project,proto3" json:"project,omitempty"` 572 // The commit where to start the listing from. 573 // The value can be: 574 // - a git revision as 40-char string or its prefix so long as its unique in repo. 575 // - a ref such as "refs/heads/branch" 576 // - a ref defined as n-th parent of R in the form "R~n". 577 // For example, "main~2" or "deadbeef~1". 578 // 579 // Required. 580 Committish string `protobuf:"bytes,2,opt,name=committish,proto3" json:"committish,omitempty"` 581 // Path relative to the project root to the file to download. 582 Path string `protobuf:"bytes,3,opt,name=path,proto3" json:"path,omitempty"` 583 } 584 585 func (x *DownloadFileRequest) Reset() { 586 *x = DownloadFileRequest{} 587 if protoimpl.UnsafeEnabled { 588 mi := &file_go_chromium_org_luci_common_proto_gitiles_gitiles_proto_msgTypes[6] 589 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 590 ms.StoreMessageInfo(mi) 591 } 592 } 593 594 func (x *DownloadFileRequest) String() string { 595 return protoimpl.X.MessageStringOf(x) 596 } 597 598 func (*DownloadFileRequest) ProtoMessage() {} 599 600 func (x *DownloadFileRequest) ProtoReflect() protoreflect.Message { 601 mi := &file_go_chromium_org_luci_common_proto_gitiles_gitiles_proto_msgTypes[6] 602 if protoimpl.UnsafeEnabled && x != nil { 603 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 604 if ms.LoadMessageInfo() == nil { 605 ms.StoreMessageInfo(mi) 606 } 607 return ms 608 } 609 return mi.MessageOf(x) 610 } 611 612 // Deprecated: Use DownloadFileRequest.ProtoReflect.Descriptor instead. 613 func (*DownloadFileRequest) Descriptor() ([]byte, []int) { 614 return file_go_chromium_org_luci_common_proto_gitiles_gitiles_proto_rawDescGZIP(), []int{6} 615 } 616 617 func (x *DownloadFileRequest) GetProject() string { 618 if x != nil { 619 return x.Project 620 } 621 return "" 622 } 623 624 func (x *DownloadFileRequest) GetCommittish() string { 625 if x != nil { 626 return x.Committish 627 } 628 return "" 629 } 630 631 func (x *DownloadFileRequest) GetPath() string { 632 if x != nil { 633 return x.Path 634 } 635 return "" 636 } 637 638 type DownloadFileResponse struct { 639 state protoimpl.MessageState 640 sizeCache protoimpl.SizeCache 641 unknownFields protoimpl.UnknownFields 642 643 // Decoded contents of the downloaded file. 644 // 645 // The underlying server RPC streams back the contents. This API simplifies 646 // the RPC to a non-streaming response. 647 Contents string `protobuf:"bytes,1,opt,name=contents,proto3" json:"contents,omitempty"` 648 } 649 650 func (x *DownloadFileResponse) Reset() { 651 *x = DownloadFileResponse{} 652 if protoimpl.UnsafeEnabled { 653 mi := &file_go_chromium_org_luci_common_proto_gitiles_gitiles_proto_msgTypes[7] 654 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 655 ms.StoreMessageInfo(mi) 656 } 657 } 658 659 func (x *DownloadFileResponse) String() string { 660 return protoimpl.X.MessageStringOf(x) 661 } 662 663 func (*DownloadFileResponse) ProtoMessage() {} 664 665 func (x *DownloadFileResponse) ProtoReflect() protoreflect.Message { 666 mi := &file_go_chromium_org_luci_common_proto_gitiles_gitiles_proto_msgTypes[7] 667 if protoimpl.UnsafeEnabled && x != nil { 668 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 669 if ms.LoadMessageInfo() == nil { 670 ms.StoreMessageInfo(mi) 671 } 672 return ms 673 } 674 return mi.MessageOf(x) 675 } 676 677 // Deprecated: Use DownloadFileResponse.ProtoReflect.Descriptor instead. 678 func (*DownloadFileResponse) Descriptor() ([]byte, []int) { 679 return file_go_chromium_org_luci_common_proto_gitiles_gitiles_proto_rawDescGZIP(), []int{7} 680 } 681 682 func (x *DownloadFileResponse) GetContents() string { 683 if x != nil { 684 return x.Contents 685 } 686 return "" 687 } 688 689 type DownloadDiffRequest struct { 690 state protoimpl.MessageState 691 sizeCache protoimpl.SizeCache 692 unknownFields protoimpl.UnknownFields 693 694 // Gitiles project, e.g. "chromium/src" part in 695 // https://chromium.googlesource.com/chromium/src/+/main 696 // Required. 697 Project string `protobuf:"bytes,1,opt,name=project,proto3" json:"project,omitempty"` 698 // The git revision to get the diff at. 699 // The value can be: 700 // - a git revision as 40-char string or its prefix so long as its unique in repo. 701 // - a ref such as "refs/heads/branch" 702 // - a ref defined as n-th parent of R in the form "R~n". 703 // For example, "main~2" or "deadbeef~1". 704 // 705 // Required. 706 Committish string `protobuf:"bytes,2,opt,name=committish,proto3" json:"committish,omitempty"` 707 // The git revision to compute the diff against. 708 // The value can be: 709 // - a git revision as 40-char string or its prefix so long as its unique in repo. 710 // - a ref such as "refs/heads/branch" 711 // - a ref defined as n-th parent of R in the form "R~n". 712 // For example, "main~2" or "deadbeef~1". 713 // 714 // Optional. If not specified, the diff will be against the parent of committish. 715 Base string `protobuf:"bytes,4,opt,name=base,proto3" json:"base,omitempty"` 716 // Path relative to the project root to the file to limit the diff to. 717 // Optional. 718 Path string `protobuf:"bytes,3,opt,name=path,proto3" json:"path,omitempty"` 719 } 720 721 func (x *DownloadDiffRequest) Reset() { 722 *x = DownloadDiffRequest{} 723 if protoimpl.UnsafeEnabled { 724 mi := &file_go_chromium_org_luci_common_proto_gitiles_gitiles_proto_msgTypes[8] 725 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 726 ms.StoreMessageInfo(mi) 727 } 728 } 729 730 func (x *DownloadDiffRequest) String() string { 731 return protoimpl.X.MessageStringOf(x) 732 } 733 734 func (*DownloadDiffRequest) ProtoMessage() {} 735 736 func (x *DownloadDiffRequest) ProtoReflect() protoreflect.Message { 737 mi := &file_go_chromium_org_luci_common_proto_gitiles_gitiles_proto_msgTypes[8] 738 if protoimpl.UnsafeEnabled && x != nil { 739 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 740 if ms.LoadMessageInfo() == nil { 741 ms.StoreMessageInfo(mi) 742 } 743 return ms 744 } 745 return mi.MessageOf(x) 746 } 747 748 // Deprecated: Use DownloadDiffRequest.ProtoReflect.Descriptor instead. 749 func (*DownloadDiffRequest) Descriptor() ([]byte, []int) { 750 return file_go_chromium_org_luci_common_proto_gitiles_gitiles_proto_rawDescGZIP(), []int{8} 751 } 752 753 func (x *DownloadDiffRequest) GetProject() string { 754 if x != nil { 755 return x.Project 756 } 757 return "" 758 } 759 760 func (x *DownloadDiffRequest) GetCommittish() string { 761 if x != nil { 762 return x.Committish 763 } 764 return "" 765 } 766 767 func (x *DownloadDiffRequest) GetBase() string { 768 if x != nil { 769 return x.Base 770 } 771 return "" 772 } 773 774 func (x *DownloadDiffRequest) GetPath() string { 775 if x != nil { 776 return x.Path 777 } 778 return "" 779 } 780 781 type DownloadDiffResponse struct { 782 state protoimpl.MessageState 783 sizeCache protoimpl.SizeCache 784 unknownFields protoimpl.UnknownFields 785 786 // Decoded contents of the diff. 787 Contents string `protobuf:"bytes,1,opt,name=contents,proto3" json:"contents,omitempty"` 788 } 789 790 func (x *DownloadDiffResponse) Reset() { 791 *x = DownloadDiffResponse{} 792 if protoimpl.UnsafeEnabled { 793 mi := &file_go_chromium_org_luci_common_proto_gitiles_gitiles_proto_msgTypes[9] 794 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 795 ms.StoreMessageInfo(mi) 796 } 797 } 798 799 func (x *DownloadDiffResponse) String() string { 800 return protoimpl.X.MessageStringOf(x) 801 } 802 803 func (*DownloadDiffResponse) ProtoMessage() {} 804 805 func (x *DownloadDiffResponse) ProtoReflect() protoreflect.Message { 806 mi := &file_go_chromium_org_luci_common_proto_gitiles_gitiles_proto_msgTypes[9] 807 if protoimpl.UnsafeEnabled && x != nil { 808 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 809 if ms.LoadMessageInfo() == nil { 810 ms.StoreMessageInfo(mi) 811 } 812 return ms 813 } 814 return mi.MessageOf(x) 815 } 816 817 // Deprecated: Use DownloadDiffResponse.ProtoReflect.Descriptor instead. 818 func (*DownloadDiffResponse) Descriptor() ([]byte, []int) { 819 return file_go_chromium_org_luci_common_proto_gitiles_gitiles_proto_rawDescGZIP(), []int{9} 820 } 821 822 func (x *DownloadDiffResponse) GetContents() string { 823 if x != nil { 824 return x.Contents 825 } 826 return "" 827 } 828 829 type ProjectsRequest struct { 830 state protoimpl.MessageState 831 sizeCache protoimpl.SizeCache 832 unknownFields protoimpl.UnknownFields 833 } 834 835 func (x *ProjectsRequest) Reset() { 836 *x = ProjectsRequest{} 837 if protoimpl.UnsafeEnabled { 838 mi := &file_go_chromium_org_luci_common_proto_gitiles_gitiles_proto_msgTypes[10] 839 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 840 ms.StoreMessageInfo(mi) 841 } 842 } 843 844 func (x *ProjectsRequest) String() string { 845 return protoimpl.X.MessageStringOf(x) 846 } 847 848 func (*ProjectsRequest) ProtoMessage() {} 849 850 func (x *ProjectsRequest) ProtoReflect() protoreflect.Message { 851 mi := &file_go_chromium_org_luci_common_proto_gitiles_gitiles_proto_msgTypes[10] 852 if protoimpl.UnsafeEnabled && x != nil { 853 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 854 if ms.LoadMessageInfo() == nil { 855 ms.StoreMessageInfo(mi) 856 } 857 return ms 858 } 859 return mi.MessageOf(x) 860 } 861 862 // Deprecated: Use ProjectsRequest.ProtoReflect.Descriptor instead. 863 func (*ProjectsRequest) Descriptor() ([]byte, []int) { 864 return file_go_chromium_org_luci_common_proto_gitiles_gitiles_proto_rawDescGZIP(), []int{10} 865 } 866 867 type ProjectsResponse struct { 868 state protoimpl.MessageState 869 sizeCache protoimpl.SizeCache 870 unknownFields protoimpl.UnknownFields 871 872 // List of available Gitiles projects 873 Projects []string `protobuf:"bytes,1,rep,name=projects,proto3" json:"projects,omitempty"` 874 } 875 876 func (x *ProjectsResponse) Reset() { 877 *x = ProjectsResponse{} 878 if protoimpl.UnsafeEnabled { 879 mi := &file_go_chromium_org_luci_common_proto_gitiles_gitiles_proto_msgTypes[11] 880 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 881 ms.StoreMessageInfo(mi) 882 } 883 } 884 885 func (x *ProjectsResponse) String() string { 886 return protoimpl.X.MessageStringOf(x) 887 } 888 889 func (*ProjectsResponse) ProtoMessage() {} 890 891 func (x *ProjectsResponse) ProtoReflect() protoreflect.Message { 892 mi := &file_go_chromium_org_luci_common_proto_gitiles_gitiles_proto_msgTypes[11] 893 if protoimpl.UnsafeEnabled && x != nil { 894 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 895 if ms.LoadMessageInfo() == nil { 896 ms.StoreMessageInfo(mi) 897 } 898 return ms 899 } 900 return mi.MessageOf(x) 901 } 902 903 // Deprecated: Use ProjectsResponse.ProtoReflect.Descriptor instead. 904 func (*ProjectsResponse) Descriptor() ([]byte, []int) { 905 return file_go_chromium_org_luci_common_proto_gitiles_gitiles_proto_rawDescGZIP(), []int{11} 906 } 907 908 func (x *ProjectsResponse) GetProjects() []string { 909 if x != nil { 910 return x.Projects 911 } 912 return nil 913 } 914 915 type ListFilesRequest struct { 916 state protoimpl.MessageState 917 sizeCache protoimpl.SizeCache 918 unknownFields protoimpl.UnknownFields 919 920 // Gitiles project, e.g. "chromium/src" part in 921 // https://chromium.googlesource.com/chromium/src/+/main 922 // Required. 923 Project string `protobuf:"bytes,1,opt,name=project,proto3" json:"project,omitempty"` 924 // The git revision to list files at. 925 // The value can be: 926 // - a git revision as 40-char string or its prefix so long as its unique in repo. 927 // - a ref such as "refs/heads/branch" 928 // - a ref defined as n-th parent of R in the form "R~n". 929 // For example, "main~2" or "deadbeef~1". 930 // 931 // Required. 932 Committish string `protobuf:"bytes,2,opt,name=committish,proto3" json:"committish,omitempty"` 933 // Path relative to the project root to limit the list to. Only direct 934 // children will be returned -- the request does not recursively process 935 // child directories. 936 // Optional. 937 Path string `protobuf:"bytes,3,opt,name=path,proto3" json:"path,omitempty"` 938 } 939 940 func (x *ListFilesRequest) Reset() { 941 *x = ListFilesRequest{} 942 if protoimpl.UnsafeEnabled { 943 mi := &file_go_chromium_org_luci_common_proto_gitiles_gitiles_proto_msgTypes[12] 944 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 945 ms.StoreMessageInfo(mi) 946 } 947 } 948 949 func (x *ListFilesRequest) String() string { 950 return protoimpl.X.MessageStringOf(x) 951 } 952 953 func (*ListFilesRequest) ProtoMessage() {} 954 955 func (x *ListFilesRequest) ProtoReflect() protoreflect.Message { 956 mi := &file_go_chromium_org_luci_common_proto_gitiles_gitiles_proto_msgTypes[12] 957 if protoimpl.UnsafeEnabled && x != nil { 958 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 959 if ms.LoadMessageInfo() == nil { 960 ms.StoreMessageInfo(mi) 961 } 962 return ms 963 } 964 return mi.MessageOf(x) 965 } 966 967 // Deprecated: Use ListFilesRequest.ProtoReflect.Descriptor instead. 968 func (*ListFilesRequest) Descriptor() ([]byte, []int) { 969 return file_go_chromium_org_luci_common_proto_gitiles_gitiles_proto_rawDescGZIP(), []int{12} 970 } 971 972 func (x *ListFilesRequest) GetProject() string { 973 if x != nil { 974 return x.Project 975 } 976 return "" 977 } 978 979 func (x *ListFilesRequest) GetCommittish() string { 980 if x != nil { 981 return x.Committish 982 } 983 return "" 984 } 985 986 func (x *ListFilesRequest) GetPath() string { 987 if x != nil { 988 return x.Path 989 } 990 return "" 991 } 992 993 type ListFilesResponse struct { 994 state protoimpl.MessageState 995 sizeCache protoimpl.SizeCache 996 unknownFields protoimpl.UnknownFields 997 998 // List of files. 999 Files []*git.File `protobuf:"bytes,1,rep,name=files,proto3" json:"files,omitempty"` 1000 } 1001 1002 func (x *ListFilesResponse) Reset() { 1003 *x = ListFilesResponse{} 1004 if protoimpl.UnsafeEnabled { 1005 mi := &file_go_chromium_org_luci_common_proto_gitiles_gitiles_proto_msgTypes[13] 1006 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 1007 ms.StoreMessageInfo(mi) 1008 } 1009 } 1010 1011 func (x *ListFilesResponse) String() string { 1012 return protoimpl.X.MessageStringOf(x) 1013 } 1014 1015 func (*ListFilesResponse) ProtoMessage() {} 1016 1017 func (x *ListFilesResponse) ProtoReflect() protoreflect.Message { 1018 mi := &file_go_chromium_org_luci_common_proto_gitiles_gitiles_proto_msgTypes[13] 1019 if protoimpl.UnsafeEnabled && x != nil { 1020 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 1021 if ms.LoadMessageInfo() == nil { 1022 ms.StoreMessageInfo(mi) 1023 } 1024 return ms 1025 } 1026 return mi.MessageOf(x) 1027 } 1028 1029 // Deprecated: Use ListFilesResponse.ProtoReflect.Descriptor instead. 1030 func (*ListFilesResponse) Descriptor() ([]byte, []int) { 1031 return file_go_chromium_org_luci_common_proto_gitiles_gitiles_proto_rawDescGZIP(), []int{13} 1032 } 1033 1034 func (x *ListFilesResponse) GetFiles() []*git.File { 1035 if x != nil { 1036 return x.Files 1037 } 1038 return nil 1039 } 1040 1041 var File_go_chromium_org_luci_common_proto_gitiles_gitiles_proto protoreflect.FileDescriptor 1042 1043 var file_go_chromium_org_luci_common_proto_gitiles_gitiles_proto_rawDesc = []byte{ 1044 0x0a, 0x37, 0x67, 0x6f, 0x2e, 0x63, 0x68, 0x72, 0x6f, 0x6d, 0x69, 0x75, 0x6d, 0x2e, 0x6f, 0x72, 1045 0x67, 0x2f, 0x6c, 0x75, 0x63, 0x69, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x70, 0x72, 1046 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x69, 0x74, 0x69, 0x6c, 0x65, 0x73, 0x2f, 0x67, 0x69, 0x74, 0x69, 1047 0x6c, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x07, 0x67, 0x69, 0x74, 0x69, 0x6c, 1048 0x65, 0x73, 0x1a, 0x32, 0x67, 0x6f, 0x2e, 0x63, 0x68, 0x72, 0x6f, 0x6d, 0x69, 0x75, 0x6d, 0x2e, 1049 0x6f, 0x72, 0x67, 0x2f, 0x6c, 0x75, 0x63, 0x69, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 1050 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x69, 0x74, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 1051 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xe5, 0x01, 0x0a, 0x0a, 0x4c, 0x6f, 0x67, 0x52, 0x65, 1052 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 1053 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x12, 1054 0x1e, 0x0a, 0x0a, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x74, 0x69, 0x73, 0x68, 0x18, 0x03, 0x20, 1055 0x01, 0x28, 0x09, 0x52, 0x0a, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x74, 0x69, 0x73, 0x68, 0x12, 1056 0x30, 0x0a, 0x14, 0x65, 0x78, 0x63, 0x6c, 0x75, 0x64, 0x65, 0x5f, 0x61, 0x6e, 0x63, 0x65, 0x73, 1057 0x74, 0x6f, 0x72, 0x73, 0x5f, 0x6f, 0x66, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x12, 0x65, 1058 0x78, 0x63, 0x6c, 0x75, 0x64, 0x65, 0x41, 0x6e, 0x63, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x73, 0x4f, 1059 0x66, 0x12, 0x1b, 0x0a, 0x09, 0x74, 0x72, 0x65, 0x65, 0x5f, 0x64, 0x69, 0x66, 0x66, 0x18, 0x04, 1060 0x20, 0x01, 0x28, 0x08, 0x52, 0x08, 0x74, 0x72, 0x65, 0x65, 0x44, 0x69, 0x66, 0x66, 0x12, 0x12, 1061 0x0a, 0x04, 0x70, 0x61, 0x74, 0x68, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x70, 0x61, 1062 0x74, 0x68, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 1063 0x18, 0x0a, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 1064 0x6e, 0x12, 0x1b, 0x0a, 0x09, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x0b, 1065 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x70, 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x22, 0x54, 1066 0x0a, 0x0b, 0x4c, 0x6f, 0x67, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1d, 0x0a, 1067 0x03, 0x6c, 0x6f, 0x67, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0b, 0x2e, 0x67, 0x69, 0x74, 1068 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x52, 0x03, 0x6c, 0x6f, 0x67, 0x12, 0x26, 0x0a, 0x0f, 1069 0x6e, 0x65, 0x78, 0x74, 0x5f, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 1070 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x6e, 0x65, 0x78, 0x74, 0x50, 0x61, 0x67, 0x65, 0x54, 1071 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x44, 0x0a, 0x0b, 0x52, 0x65, 0x66, 0x73, 0x52, 0x65, 0x71, 0x75, 1072 0x65, 0x73, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x18, 0x01, 1073 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x12, 0x1b, 0x0a, 1074 0x09, 0x72, 0x65, 0x66, 0x73, 0x5f, 0x70, 0x61, 0x74, 0x68, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 1075 0x52, 0x08, 0x72, 0x65, 0x66, 0x73, 0x50, 0x61, 0x74, 0x68, 0x22, 0x90, 0x01, 0x0a, 0x0c, 0x52, 1076 0x65, 0x66, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x42, 0x0a, 0x09, 0x72, 1077 0x65, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x24, 1078 0x2e, 0x67, 0x69, 0x74, 0x69, 0x6c, 0x65, 0x73, 0x2e, 0x52, 0x65, 0x66, 0x73, 0x52, 0x65, 0x73, 1079 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x52, 0x65, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x45, 1080 0x6e, 0x74, 0x72, 0x79, 0x52, 0x09, 0x72, 0x65, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x1a, 1081 0x3c, 0x0a, 0x0e, 0x52, 0x65, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x45, 0x6e, 0x74, 0x72, 1082 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 1083 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 1084 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0xc5, 0x01, 1085 0x0a, 0x0e, 0x41, 0x72, 0x63, 0x68, 0x69, 0x76, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 1086 0x12, 0x18, 0x0a, 0x07, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 1087 0x09, 0x52, 0x07, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x12, 0x10, 0x0a, 0x03, 0x72, 0x65, 1088 0x66, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x72, 0x65, 0x66, 0x12, 0x36, 0x0a, 0x06, 1089 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1e, 0x2e, 0x67, 1090 0x69, 0x74, 0x69, 0x6c, 0x65, 0x73, 0x2e, 0x41, 0x72, 0x63, 0x68, 0x69, 0x76, 0x65, 0x52, 0x65, 1091 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x46, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x52, 0x06, 0x66, 0x6f, 1092 0x72, 0x6d, 0x61, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x61, 0x74, 0x68, 0x18, 0x04, 0x20, 0x01, 1093 0x28, 0x09, 0x52, 0x04, 0x70, 0x61, 0x74, 0x68, 0x22, 0x3b, 0x0a, 0x06, 0x46, 0x6f, 0x72, 0x6d, 1094 0x61, 0x74, 0x12, 0x0b, 0x0a, 0x07, 0x49, 0x6e, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x10, 0x00, 0x12, 1095 0x08, 0x0a, 0x04, 0x47, 0x5a, 0x49, 0x50, 0x10, 0x01, 0x12, 0x07, 0x0a, 0x03, 0x54, 0x41, 0x52, 1096 0x10, 0x02, 0x12, 0x09, 0x0a, 0x05, 0x42, 0x5a, 0x49, 0x50, 0x32, 0x10, 0x03, 0x12, 0x06, 0x0a, 1097 0x02, 0x58, 0x5a, 0x10, 0x04, 0x22, 0x49, 0x0a, 0x0f, 0x41, 0x72, 0x63, 0x68, 0x69, 0x76, 0x65, 1098 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x66, 0x69, 0x6c, 0x65, 1099 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x66, 0x69, 0x6c, 0x65, 1100 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x73, 1101 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x08, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x73, 1102 0x22, 0x71, 0x0a, 0x13, 0x44, 0x6f, 0x77, 0x6e, 0x6c, 0x6f, 0x61, 0x64, 0x46, 0x69, 0x6c, 0x65, 1103 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x70, 0x72, 0x6f, 0x6a, 0x65, 1104 0x63, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 1105 0x74, 0x12, 0x1e, 0x0a, 0x0a, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x74, 0x69, 0x73, 0x68, 0x18, 1106 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x74, 0x69, 0x73, 1107 0x68, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x61, 0x74, 0x68, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 1108 0x04, 0x70, 0x61, 0x74, 0x68, 0x4a, 0x04, 0x08, 0x04, 0x10, 0x05, 0x52, 0x06, 0x66, 0x6f, 0x72, 1109 0x6d, 0x61, 0x74, 0x22, 0x32, 0x0a, 0x14, 0x44, 0x6f, 0x77, 0x6e, 0x6c, 0x6f, 0x61, 0x64, 0x46, 1110 0x69, 0x6c, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x63, 1111 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x63, 1112 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x73, 0x22, 0x77, 0x0a, 0x13, 0x44, 0x6f, 0x77, 0x6e, 0x6c, 1113 0x6f, 0x61, 0x64, 0x44, 0x69, 0x66, 0x66, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x18, 1114 0x0a, 0x07, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 1115 0x07, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x12, 0x1e, 0x0a, 0x0a, 0x63, 0x6f, 0x6d, 0x6d, 1116 0x69, 0x74, 0x74, 0x69, 0x73, 0x68, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x63, 0x6f, 1117 0x6d, 0x6d, 0x69, 0x74, 0x74, 0x69, 0x73, 0x68, 0x12, 0x12, 0x0a, 0x04, 0x62, 0x61, 0x73, 0x65, 1118 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x62, 0x61, 0x73, 0x65, 0x12, 0x12, 0x0a, 0x04, 1119 0x70, 0x61, 0x74, 0x68, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x70, 0x61, 0x74, 0x68, 1120 0x22, 0x32, 0x0a, 0x14, 0x44, 0x6f, 0x77, 0x6e, 0x6c, 0x6f, 0x61, 0x64, 0x44, 0x69, 0x66, 0x66, 1121 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x63, 0x6f, 0x6e, 0x74, 1122 0x65, 0x6e, 0x74, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x63, 0x6f, 0x6e, 0x74, 1123 0x65, 0x6e, 0x74, 0x73, 0x22, 0x11, 0x0a, 0x0f, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 1124 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x2e, 0x0a, 0x10, 0x50, 0x72, 0x6f, 0x6a, 0x65, 1125 0x63, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x70, 1126 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x08, 0x70, 1127 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x22, 0x60, 0x0a, 0x10, 0x4c, 0x69, 0x73, 0x74, 0x46, 1128 0x69, 0x6c, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x70, 1129 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x70, 0x72, 1130 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x12, 0x1e, 0x0a, 0x0a, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x74, 1131 0x69, 0x73, 0x68, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 1132 0x74, 0x74, 0x69, 0x73, 0x68, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x61, 0x74, 0x68, 0x18, 0x03, 0x20, 1133 0x01, 0x28, 0x09, 0x52, 0x04, 0x70, 0x61, 0x74, 0x68, 0x22, 0x34, 0x0a, 0x11, 0x4c, 0x69, 0x73, 1134 0x74, 0x46, 0x69, 0x6c, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1f, 1135 0x0a, 0x05, 0x66, 0x69, 0x6c, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x09, 0x2e, 1136 0x67, 0x69, 0x74, 0x2e, 0x46, 0x69, 0x6c, 0x65, 0x52, 0x05, 0x66, 0x69, 0x6c, 0x65, 0x73, 0x32, 1137 0xdb, 0x03, 0x0a, 0x07, 0x47, 0x69, 0x74, 0x69, 0x6c, 0x65, 0x73, 0x12, 0x32, 0x0a, 0x03, 0x4c, 1138 0x6f, 0x67, 0x12, 0x13, 0x2e, 0x67, 0x69, 0x74, 0x69, 0x6c, 0x65, 0x73, 0x2e, 0x4c, 0x6f, 0x67, 1139 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x14, 0x2e, 0x67, 0x69, 0x74, 0x69, 0x6c, 0x65, 1140 0x73, 0x2e, 0x4c, 0x6f, 0x67, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 1141 0x35, 0x0a, 0x04, 0x52, 0x65, 0x66, 0x73, 0x12, 0x14, 0x2e, 0x67, 0x69, 0x74, 0x69, 0x6c, 0x65, 1142 0x73, 0x2e, 0x52, 0x65, 0x66, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x15, 0x2e, 1143 0x67, 0x69, 0x74, 0x69, 0x6c, 0x65, 0x73, 0x2e, 0x52, 0x65, 0x66, 0x73, 0x52, 0x65, 0x73, 0x70, 1144 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x3e, 0x0a, 0x07, 0x41, 0x72, 0x63, 0x68, 0x69, 0x76, 1145 0x65, 0x12, 0x17, 0x2e, 0x67, 0x69, 0x74, 0x69, 0x6c, 0x65, 0x73, 0x2e, 0x41, 0x72, 0x63, 0x68, 1146 0x69, 0x76, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x18, 0x2e, 0x67, 0x69, 0x74, 1147 0x69, 0x6c, 0x65, 0x73, 0x2e, 0x41, 0x72, 0x63, 0x68, 0x69, 0x76, 0x65, 0x52, 0x65, 0x73, 0x70, 1148 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x4d, 0x0a, 0x0c, 0x44, 0x6f, 0x77, 0x6e, 0x6c, 0x6f, 1149 0x61, 0x64, 0x46, 0x69, 0x6c, 0x65, 0x12, 0x1c, 0x2e, 0x67, 0x69, 0x74, 0x69, 0x6c, 0x65, 0x73, 1150 0x2e, 0x44, 0x6f, 0x77, 0x6e, 0x6c, 0x6f, 0x61, 0x64, 0x46, 0x69, 0x6c, 0x65, 0x52, 0x65, 0x71, 1151 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1d, 0x2e, 0x67, 0x69, 0x74, 0x69, 0x6c, 0x65, 0x73, 0x2e, 0x44, 1152 0x6f, 0x77, 0x6e, 0x6c, 0x6f, 0x61, 0x64, 0x46, 0x69, 0x6c, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 1153 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x4d, 0x0a, 0x0c, 0x44, 0x6f, 0x77, 0x6e, 0x6c, 0x6f, 0x61, 1154 0x64, 0x44, 0x69, 0x66, 0x66, 0x12, 0x1c, 0x2e, 0x67, 0x69, 0x74, 0x69, 0x6c, 0x65, 0x73, 0x2e, 1155 0x44, 0x6f, 0x77, 0x6e, 0x6c, 0x6f, 0x61, 0x64, 0x44, 0x69, 0x66, 0x66, 0x52, 0x65, 0x71, 0x75, 1156 0x65, 0x73, 0x74, 0x1a, 0x1d, 0x2e, 0x67, 0x69, 0x74, 0x69, 0x6c, 0x65, 0x73, 0x2e, 0x44, 0x6f, 1157 0x77, 0x6e, 0x6c, 0x6f, 0x61, 0x64, 0x44, 0x69, 0x66, 0x66, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 1158 0x73, 0x65, 0x22, 0x00, 0x12, 0x41, 0x0a, 0x08, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 1159 0x12, 0x18, 0x2e, 0x67, 0x69, 0x74, 0x69, 0x6c, 0x65, 0x73, 0x2e, 0x50, 0x72, 0x6f, 0x6a, 0x65, 1160 0x63, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x19, 0x2e, 0x67, 0x69, 0x74, 1161 0x69, 0x6c, 0x65, 0x73, 0x2e, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x52, 0x65, 0x73, 1162 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x44, 0x0a, 0x09, 0x4c, 0x69, 0x73, 0x74, 0x46, 1163 0x69, 0x6c, 0x65, 0x73, 0x12, 0x19, 0x2e, 0x67, 0x69, 0x74, 0x69, 0x6c, 0x65, 0x73, 0x2e, 0x4c, 1164 0x69, 0x73, 0x74, 0x46, 0x69, 0x6c, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 1165 0x1a, 0x2e, 0x67, 0x69, 0x74, 0x69, 0x6c, 0x65, 0x73, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x46, 0x69, 1166 0x6c, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x42, 0x2b, 0x5a, 1167 0x29, 0x67, 0x6f, 0x2e, 0x63, 0x68, 0x72, 0x6f, 0x6d, 0x69, 0x75, 0x6d, 0x2e, 0x6f, 0x72, 0x67, 1168 0x2f, 0x6c, 0x75, 0x63, 0x69, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x70, 0x72, 0x6f, 1169 0x74, 0x6f, 0x2f, 0x67, 0x69, 0x74, 0x69, 0x6c, 0x65, 0x73, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 1170 0x6f, 0x33, 1171 } 1172 1173 var ( 1174 file_go_chromium_org_luci_common_proto_gitiles_gitiles_proto_rawDescOnce sync.Once 1175 file_go_chromium_org_luci_common_proto_gitiles_gitiles_proto_rawDescData = file_go_chromium_org_luci_common_proto_gitiles_gitiles_proto_rawDesc 1176 ) 1177 1178 func file_go_chromium_org_luci_common_proto_gitiles_gitiles_proto_rawDescGZIP() []byte { 1179 file_go_chromium_org_luci_common_proto_gitiles_gitiles_proto_rawDescOnce.Do(func() { 1180 file_go_chromium_org_luci_common_proto_gitiles_gitiles_proto_rawDescData = protoimpl.X.CompressGZIP(file_go_chromium_org_luci_common_proto_gitiles_gitiles_proto_rawDescData) 1181 }) 1182 return file_go_chromium_org_luci_common_proto_gitiles_gitiles_proto_rawDescData 1183 } 1184 1185 var file_go_chromium_org_luci_common_proto_gitiles_gitiles_proto_enumTypes = make([]protoimpl.EnumInfo, 1) 1186 var file_go_chromium_org_luci_common_proto_gitiles_gitiles_proto_msgTypes = make([]protoimpl.MessageInfo, 15) 1187 var file_go_chromium_org_luci_common_proto_gitiles_gitiles_proto_goTypes = []interface{}{ 1188 (ArchiveRequest_Format)(0), // 0: gitiles.ArchiveRequest.Format 1189 (*LogRequest)(nil), // 1: gitiles.LogRequest 1190 (*LogResponse)(nil), // 2: gitiles.LogResponse 1191 (*RefsRequest)(nil), // 3: gitiles.RefsRequest 1192 (*RefsResponse)(nil), // 4: gitiles.RefsResponse 1193 (*ArchiveRequest)(nil), // 5: gitiles.ArchiveRequest 1194 (*ArchiveResponse)(nil), // 6: gitiles.ArchiveResponse 1195 (*DownloadFileRequest)(nil), // 7: gitiles.DownloadFileRequest 1196 (*DownloadFileResponse)(nil), // 8: gitiles.DownloadFileResponse 1197 (*DownloadDiffRequest)(nil), // 9: gitiles.DownloadDiffRequest 1198 (*DownloadDiffResponse)(nil), // 10: gitiles.DownloadDiffResponse 1199 (*ProjectsRequest)(nil), // 11: gitiles.ProjectsRequest 1200 (*ProjectsResponse)(nil), // 12: gitiles.ProjectsResponse 1201 (*ListFilesRequest)(nil), // 13: gitiles.ListFilesRequest 1202 (*ListFilesResponse)(nil), // 14: gitiles.ListFilesResponse 1203 nil, // 15: gitiles.RefsResponse.RevisionsEntry 1204 (*git.Commit)(nil), // 16: git.Commit 1205 (*git.File)(nil), // 17: git.File 1206 } 1207 var file_go_chromium_org_luci_common_proto_gitiles_gitiles_proto_depIdxs = []int32{ 1208 16, // 0: gitiles.LogResponse.log:type_name -> git.Commit 1209 15, // 1: gitiles.RefsResponse.revisions:type_name -> gitiles.RefsResponse.RevisionsEntry 1210 0, // 2: gitiles.ArchiveRequest.format:type_name -> gitiles.ArchiveRequest.Format 1211 17, // 3: gitiles.ListFilesResponse.files:type_name -> git.File 1212 1, // 4: gitiles.Gitiles.Log:input_type -> gitiles.LogRequest 1213 3, // 5: gitiles.Gitiles.Refs:input_type -> gitiles.RefsRequest 1214 5, // 6: gitiles.Gitiles.Archive:input_type -> gitiles.ArchiveRequest 1215 7, // 7: gitiles.Gitiles.DownloadFile:input_type -> gitiles.DownloadFileRequest 1216 9, // 8: gitiles.Gitiles.DownloadDiff:input_type -> gitiles.DownloadDiffRequest 1217 11, // 9: gitiles.Gitiles.Projects:input_type -> gitiles.ProjectsRequest 1218 13, // 10: gitiles.Gitiles.ListFiles:input_type -> gitiles.ListFilesRequest 1219 2, // 11: gitiles.Gitiles.Log:output_type -> gitiles.LogResponse 1220 4, // 12: gitiles.Gitiles.Refs:output_type -> gitiles.RefsResponse 1221 6, // 13: gitiles.Gitiles.Archive:output_type -> gitiles.ArchiveResponse 1222 8, // 14: gitiles.Gitiles.DownloadFile:output_type -> gitiles.DownloadFileResponse 1223 10, // 15: gitiles.Gitiles.DownloadDiff:output_type -> gitiles.DownloadDiffResponse 1224 12, // 16: gitiles.Gitiles.Projects:output_type -> gitiles.ProjectsResponse 1225 14, // 17: gitiles.Gitiles.ListFiles:output_type -> gitiles.ListFilesResponse 1226 11, // [11:18] is the sub-list for method output_type 1227 4, // [4:11] is the sub-list for method input_type 1228 4, // [4:4] is the sub-list for extension type_name 1229 4, // [4:4] is the sub-list for extension extendee 1230 0, // [0:4] is the sub-list for field type_name 1231 } 1232 1233 func init() { file_go_chromium_org_luci_common_proto_gitiles_gitiles_proto_init() } 1234 func file_go_chromium_org_luci_common_proto_gitiles_gitiles_proto_init() { 1235 if File_go_chromium_org_luci_common_proto_gitiles_gitiles_proto != nil { 1236 return 1237 } 1238 if !protoimpl.UnsafeEnabled { 1239 file_go_chromium_org_luci_common_proto_gitiles_gitiles_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 1240 switch v := v.(*LogRequest); i { 1241 case 0: 1242 return &v.state 1243 case 1: 1244 return &v.sizeCache 1245 case 2: 1246 return &v.unknownFields 1247 default: 1248 return nil 1249 } 1250 } 1251 file_go_chromium_org_luci_common_proto_gitiles_gitiles_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { 1252 switch v := v.(*LogResponse); i { 1253 case 0: 1254 return &v.state 1255 case 1: 1256 return &v.sizeCache 1257 case 2: 1258 return &v.unknownFields 1259 default: 1260 return nil 1261 } 1262 } 1263 file_go_chromium_org_luci_common_proto_gitiles_gitiles_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { 1264 switch v := v.(*RefsRequest); i { 1265 case 0: 1266 return &v.state 1267 case 1: 1268 return &v.sizeCache 1269 case 2: 1270 return &v.unknownFields 1271 default: 1272 return nil 1273 } 1274 } 1275 file_go_chromium_org_luci_common_proto_gitiles_gitiles_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { 1276 switch v := v.(*RefsResponse); i { 1277 case 0: 1278 return &v.state 1279 case 1: 1280 return &v.sizeCache 1281 case 2: 1282 return &v.unknownFields 1283 default: 1284 return nil 1285 } 1286 } 1287 file_go_chromium_org_luci_common_proto_gitiles_gitiles_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { 1288 switch v := v.(*ArchiveRequest); i { 1289 case 0: 1290 return &v.state 1291 case 1: 1292 return &v.sizeCache 1293 case 2: 1294 return &v.unknownFields 1295 default: 1296 return nil 1297 } 1298 } 1299 file_go_chromium_org_luci_common_proto_gitiles_gitiles_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { 1300 switch v := v.(*ArchiveResponse); i { 1301 case 0: 1302 return &v.state 1303 case 1: 1304 return &v.sizeCache 1305 case 2: 1306 return &v.unknownFields 1307 default: 1308 return nil 1309 } 1310 } 1311 file_go_chromium_org_luci_common_proto_gitiles_gitiles_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { 1312 switch v := v.(*DownloadFileRequest); i { 1313 case 0: 1314 return &v.state 1315 case 1: 1316 return &v.sizeCache 1317 case 2: 1318 return &v.unknownFields 1319 default: 1320 return nil 1321 } 1322 } 1323 file_go_chromium_org_luci_common_proto_gitiles_gitiles_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { 1324 switch v := v.(*DownloadFileResponse); i { 1325 case 0: 1326 return &v.state 1327 case 1: 1328 return &v.sizeCache 1329 case 2: 1330 return &v.unknownFields 1331 default: 1332 return nil 1333 } 1334 } 1335 file_go_chromium_org_luci_common_proto_gitiles_gitiles_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { 1336 switch v := v.(*DownloadDiffRequest); i { 1337 case 0: 1338 return &v.state 1339 case 1: 1340 return &v.sizeCache 1341 case 2: 1342 return &v.unknownFields 1343 default: 1344 return nil 1345 } 1346 } 1347 file_go_chromium_org_luci_common_proto_gitiles_gitiles_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { 1348 switch v := v.(*DownloadDiffResponse); i { 1349 case 0: 1350 return &v.state 1351 case 1: 1352 return &v.sizeCache 1353 case 2: 1354 return &v.unknownFields 1355 default: 1356 return nil 1357 } 1358 } 1359 file_go_chromium_org_luci_common_proto_gitiles_gitiles_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { 1360 switch v := v.(*ProjectsRequest); i { 1361 case 0: 1362 return &v.state 1363 case 1: 1364 return &v.sizeCache 1365 case 2: 1366 return &v.unknownFields 1367 default: 1368 return nil 1369 } 1370 } 1371 file_go_chromium_org_luci_common_proto_gitiles_gitiles_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { 1372 switch v := v.(*ProjectsResponse); i { 1373 case 0: 1374 return &v.state 1375 case 1: 1376 return &v.sizeCache 1377 case 2: 1378 return &v.unknownFields 1379 default: 1380 return nil 1381 } 1382 } 1383 file_go_chromium_org_luci_common_proto_gitiles_gitiles_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { 1384 switch v := v.(*ListFilesRequest); i { 1385 case 0: 1386 return &v.state 1387 case 1: 1388 return &v.sizeCache 1389 case 2: 1390 return &v.unknownFields 1391 default: 1392 return nil 1393 } 1394 } 1395 file_go_chromium_org_luci_common_proto_gitiles_gitiles_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { 1396 switch v := v.(*ListFilesResponse); i { 1397 case 0: 1398 return &v.state 1399 case 1: 1400 return &v.sizeCache 1401 case 2: 1402 return &v.unknownFields 1403 default: 1404 return nil 1405 } 1406 } 1407 } 1408 type x struct{} 1409 out := protoimpl.TypeBuilder{ 1410 File: protoimpl.DescBuilder{ 1411 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 1412 RawDescriptor: file_go_chromium_org_luci_common_proto_gitiles_gitiles_proto_rawDesc, 1413 NumEnums: 1, 1414 NumMessages: 15, 1415 NumExtensions: 0, 1416 NumServices: 1, 1417 }, 1418 GoTypes: file_go_chromium_org_luci_common_proto_gitiles_gitiles_proto_goTypes, 1419 DependencyIndexes: file_go_chromium_org_luci_common_proto_gitiles_gitiles_proto_depIdxs, 1420 EnumInfos: file_go_chromium_org_luci_common_proto_gitiles_gitiles_proto_enumTypes, 1421 MessageInfos: file_go_chromium_org_luci_common_proto_gitiles_gitiles_proto_msgTypes, 1422 }.Build() 1423 File_go_chromium_org_luci_common_proto_gitiles_gitiles_proto = out.File 1424 file_go_chromium_org_luci_common_proto_gitiles_gitiles_proto_rawDesc = nil 1425 file_go_chromium_org_luci_common_proto_gitiles_gitiles_proto_goTypes = nil 1426 file_go_chromium_org_luci_common_proto_gitiles_gitiles_proto_depIdxs = nil 1427 } 1428 1429 // Reference imports to suppress errors if they are not otherwise used. 1430 var _ context.Context 1431 var _ grpc.ClientConnInterface 1432 1433 // This is a compile-time assertion to ensure that this generated file 1434 // is compatible with the grpc package it is being compiled against. 1435 const _ = grpc.SupportPackageIsVersion6 1436 1437 // GitilesClient is the client API for Gitiles service. 1438 // 1439 // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. 1440 type GitilesClient interface { 1441 // Log retrieves commit log. 1442 Log(ctx context.Context, in *LogRequest, opts ...grpc.CallOption) (*LogResponse, error) 1443 // Refs retrieves repo refs. 1444 Refs(ctx context.Context, in *RefsRequest, opts ...grpc.CallOption) (*RefsResponse, error) 1445 // Archive retrieves archived content bundle under the provided path in a 1446 // repo or the entire repo if the path is not provided. 1447 // 1448 // Note: for a single file, use DownloadFile to obtain the plain text file. 1449 Archive(ctx context.Context, in *ArchiveRequest, opts ...grpc.CallOption) (*ArchiveResponse, error) 1450 // DownloadFile retrieves a file from the project. 1451 DownloadFile(ctx context.Context, in *DownloadFileRequest, opts ...grpc.CallOption) (*DownloadFileResponse, error) 1452 // DownloadDiff retrives a diff of a revision from the project. 1453 DownloadDiff(ctx context.Context, in *DownloadDiffRequest, opts ...grpc.CallOption) (*DownloadDiffResponse, error) 1454 // Projects retrieves list of available Gitiles projects. 1455 Projects(ctx context.Context, in *ProjectsRequest, opts ...grpc.CallOption) (*ProjectsResponse, error) 1456 // ListFiles retrieves a list of files at the given revision. 1457 ListFiles(ctx context.Context, in *ListFilesRequest, opts ...grpc.CallOption) (*ListFilesResponse, error) 1458 } 1459 type gitilesPRPCClient struct { 1460 client *prpc.Client 1461 } 1462 1463 func NewGitilesPRPCClient(client *prpc.Client) GitilesClient { 1464 return &gitilesPRPCClient{client} 1465 } 1466 1467 func (c *gitilesPRPCClient) Log(ctx context.Context, in *LogRequest, opts ...grpc.CallOption) (*LogResponse, error) { 1468 out := new(LogResponse) 1469 err := c.client.Call(ctx, "gitiles.Gitiles", "Log", in, out, opts...) 1470 if err != nil { 1471 return nil, err 1472 } 1473 return out, nil 1474 } 1475 1476 func (c *gitilesPRPCClient) Refs(ctx context.Context, in *RefsRequest, opts ...grpc.CallOption) (*RefsResponse, error) { 1477 out := new(RefsResponse) 1478 err := c.client.Call(ctx, "gitiles.Gitiles", "Refs", in, out, opts...) 1479 if err != nil { 1480 return nil, err 1481 } 1482 return out, nil 1483 } 1484 1485 func (c *gitilesPRPCClient) Archive(ctx context.Context, in *ArchiveRequest, opts ...grpc.CallOption) (*ArchiveResponse, error) { 1486 out := new(ArchiveResponse) 1487 err := c.client.Call(ctx, "gitiles.Gitiles", "Archive", in, out, opts...) 1488 if err != nil { 1489 return nil, err 1490 } 1491 return out, nil 1492 } 1493 1494 func (c *gitilesPRPCClient) DownloadFile(ctx context.Context, in *DownloadFileRequest, opts ...grpc.CallOption) (*DownloadFileResponse, error) { 1495 out := new(DownloadFileResponse) 1496 err := c.client.Call(ctx, "gitiles.Gitiles", "DownloadFile", in, out, opts...) 1497 if err != nil { 1498 return nil, err 1499 } 1500 return out, nil 1501 } 1502 1503 func (c *gitilesPRPCClient) DownloadDiff(ctx context.Context, in *DownloadDiffRequest, opts ...grpc.CallOption) (*DownloadDiffResponse, error) { 1504 out := new(DownloadDiffResponse) 1505 err := c.client.Call(ctx, "gitiles.Gitiles", "DownloadDiff", in, out, opts...) 1506 if err != nil { 1507 return nil, err 1508 } 1509 return out, nil 1510 } 1511 1512 func (c *gitilesPRPCClient) Projects(ctx context.Context, in *ProjectsRequest, opts ...grpc.CallOption) (*ProjectsResponse, error) { 1513 out := new(ProjectsResponse) 1514 err := c.client.Call(ctx, "gitiles.Gitiles", "Projects", in, out, opts...) 1515 if err != nil { 1516 return nil, err 1517 } 1518 return out, nil 1519 } 1520 1521 func (c *gitilesPRPCClient) ListFiles(ctx context.Context, in *ListFilesRequest, opts ...grpc.CallOption) (*ListFilesResponse, error) { 1522 out := new(ListFilesResponse) 1523 err := c.client.Call(ctx, "gitiles.Gitiles", "ListFiles", in, out, opts...) 1524 if err != nil { 1525 return nil, err 1526 } 1527 return out, nil 1528 } 1529 1530 type gitilesClient struct { 1531 cc grpc.ClientConnInterface 1532 } 1533 1534 func NewGitilesClient(cc grpc.ClientConnInterface) GitilesClient { 1535 return &gitilesClient{cc} 1536 } 1537 1538 func (c *gitilesClient) Log(ctx context.Context, in *LogRequest, opts ...grpc.CallOption) (*LogResponse, error) { 1539 out := new(LogResponse) 1540 err := c.cc.Invoke(ctx, "/gitiles.Gitiles/Log", in, out, opts...) 1541 if err != nil { 1542 return nil, err 1543 } 1544 return out, nil 1545 } 1546 1547 func (c *gitilesClient) Refs(ctx context.Context, in *RefsRequest, opts ...grpc.CallOption) (*RefsResponse, error) { 1548 out := new(RefsResponse) 1549 err := c.cc.Invoke(ctx, "/gitiles.Gitiles/Refs", in, out, opts...) 1550 if err != nil { 1551 return nil, err 1552 } 1553 return out, nil 1554 } 1555 1556 func (c *gitilesClient) Archive(ctx context.Context, in *ArchiveRequest, opts ...grpc.CallOption) (*ArchiveResponse, error) { 1557 out := new(ArchiveResponse) 1558 err := c.cc.Invoke(ctx, "/gitiles.Gitiles/Archive", in, out, opts...) 1559 if err != nil { 1560 return nil, err 1561 } 1562 return out, nil 1563 } 1564 1565 func (c *gitilesClient) DownloadFile(ctx context.Context, in *DownloadFileRequest, opts ...grpc.CallOption) (*DownloadFileResponse, error) { 1566 out := new(DownloadFileResponse) 1567 err := c.cc.Invoke(ctx, "/gitiles.Gitiles/DownloadFile", in, out, opts...) 1568 if err != nil { 1569 return nil, err 1570 } 1571 return out, nil 1572 } 1573 1574 func (c *gitilesClient) DownloadDiff(ctx context.Context, in *DownloadDiffRequest, opts ...grpc.CallOption) (*DownloadDiffResponse, error) { 1575 out := new(DownloadDiffResponse) 1576 err := c.cc.Invoke(ctx, "/gitiles.Gitiles/DownloadDiff", in, out, opts...) 1577 if err != nil { 1578 return nil, err 1579 } 1580 return out, nil 1581 } 1582 1583 func (c *gitilesClient) Projects(ctx context.Context, in *ProjectsRequest, opts ...grpc.CallOption) (*ProjectsResponse, error) { 1584 out := new(ProjectsResponse) 1585 err := c.cc.Invoke(ctx, "/gitiles.Gitiles/Projects", in, out, opts...) 1586 if err != nil { 1587 return nil, err 1588 } 1589 return out, nil 1590 } 1591 1592 func (c *gitilesClient) ListFiles(ctx context.Context, in *ListFilesRequest, opts ...grpc.CallOption) (*ListFilesResponse, error) { 1593 out := new(ListFilesResponse) 1594 err := c.cc.Invoke(ctx, "/gitiles.Gitiles/ListFiles", in, out, opts...) 1595 if err != nil { 1596 return nil, err 1597 } 1598 return out, nil 1599 } 1600 1601 // GitilesServer is the server API for Gitiles service. 1602 type GitilesServer interface { 1603 // Log retrieves commit log. 1604 Log(context.Context, *LogRequest) (*LogResponse, error) 1605 // Refs retrieves repo refs. 1606 Refs(context.Context, *RefsRequest) (*RefsResponse, error) 1607 // Archive retrieves archived content bundle under the provided path in a 1608 // repo or the entire repo if the path is not provided. 1609 // 1610 // Note: for a single file, use DownloadFile to obtain the plain text file. 1611 Archive(context.Context, *ArchiveRequest) (*ArchiveResponse, error) 1612 // DownloadFile retrieves a file from the project. 1613 DownloadFile(context.Context, *DownloadFileRequest) (*DownloadFileResponse, error) 1614 // DownloadDiff retrives a diff of a revision from the project. 1615 DownloadDiff(context.Context, *DownloadDiffRequest) (*DownloadDiffResponse, error) 1616 // Projects retrieves list of available Gitiles projects. 1617 Projects(context.Context, *ProjectsRequest) (*ProjectsResponse, error) 1618 // ListFiles retrieves a list of files at the given revision. 1619 ListFiles(context.Context, *ListFilesRequest) (*ListFilesResponse, error) 1620 } 1621 1622 // UnimplementedGitilesServer can be embedded to have forward compatible implementations. 1623 type UnimplementedGitilesServer struct { 1624 } 1625 1626 func (*UnimplementedGitilesServer) Log(context.Context, *LogRequest) (*LogResponse, error) { 1627 return nil, status.Errorf(codes.Unimplemented, "method Log not implemented") 1628 } 1629 func (*UnimplementedGitilesServer) Refs(context.Context, *RefsRequest) (*RefsResponse, error) { 1630 return nil, status.Errorf(codes.Unimplemented, "method Refs not implemented") 1631 } 1632 func (*UnimplementedGitilesServer) Archive(context.Context, *ArchiveRequest) (*ArchiveResponse, error) { 1633 return nil, status.Errorf(codes.Unimplemented, "method Archive not implemented") 1634 } 1635 func (*UnimplementedGitilesServer) DownloadFile(context.Context, *DownloadFileRequest) (*DownloadFileResponse, error) { 1636 return nil, status.Errorf(codes.Unimplemented, "method DownloadFile not implemented") 1637 } 1638 func (*UnimplementedGitilesServer) DownloadDiff(context.Context, *DownloadDiffRequest) (*DownloadDiffResponse, error) { 1639 return nil, status.Errorf(codes.Unimplemented, "method DownloadDiff not implemented") 1640 } 1641 func (*UnimplementedGitilesServer) Projects(context.Context, *ProjectsRequest) (*ProjectsResponse, error) { 1642 return nil, status.Errorf(codes.Unimplemented, "method Projects not implemented") 1643 } 1644 func (*UnimplementedGitilesServer) ListFiles(context.Context, *ListFilesRequest) (*ListFilesResponse, error) { 1645 return nil, status.Errorf(codes.Unimplemented, "method ListFiles not implemented") 1646 } 1647 1648 func RegisterGitilesServer(s prpc.Registrar, srv GitilesServer) { 1649 s.RegisterService(&_Gitiles_serviceDesc, srv) 1650 } 1651 1652 func _Gitiles_Log_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 1653 in := new(LogRequest) 1654 if err := dec(in); err != nil { 1655 return nil, err 1656 } 1657 if interceptor == nil { 1658 return srv.(GitilesServer).Log(ctx, in) 1659 } 1660 info := &grpc.UnaryServerInfo{ 1661 Server: srv, 1662 FullMethod: "/gitiles.Gitiles/Log", 1663 } 1664 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 1665 return srv.(GitilesServer).Log(ctx, req.(*LogRequest)) 1666 } 1667 return interceptor(ctx, in, info, handler) 1668 } 1669 1670 func _Gitiles_Refs_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 1671 in := new(RefsRequest) 1672 if err := dec(in); err != nil { 1673 return nil, err 1674 } 1675 if interceptor == nil { 1676 return srv.(GitilesServer).Refs(ctx, in) 1677 } 1678 info := &grpc.UnaryServerInfo{ 1679 Server: srv, 1680 FullMethod: "/gitiles.Gitiles/Refs", 1681 } 1682 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 1683 return srv.(GitilesServer).Refs(ctx, req.(*RefsRequest)) 1684 } 1685 return interceptor(ctx, in, info, handler) 1686 } 1687 1688 func _Gitiles_Archive_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 1689 in := new(ArchiveRequest) 1690 if err := dec(in); err != nil { 1691 return nil, err 1692 } 1693 if interceptor == nil { 1694 return srv.(GitilesServer).Archive(ctx, in) 1695 } 1696 info := &grpc.UnaryServerInfo{ 1697 Server: srv, 1698 FullMethod: "/gitiles.Gitiles/Archive", 1699 } 1700 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 1701 return srv.(GitilesServer).Archive(ctx, req.(*ArchiveRequest)) 1702 } 1703 return interceptor(ctx, in, info, handler) 1704 } 1705 1706 func _Gitiles_DownloadFile_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 1707 in := new(DownloadFileRequest) 1708 if err := dec(in); err != nil { 1709 return nil, err 1710 } 1711 if interceptor == nil { 1712 return srv.(GitilesServer).DownloadFile(ctx, in) 1713 } 1714 info := &grpc.UnaryServerInfo{ 1715 Server: srv, 1716 FullMethod: "/gitiles.Gitiles/DownloadFile", 1717 } 1718 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 1719 return srv.(GitilesServer).DownloadFile(ctx, req.(*DownloadFileRequest)) 1720 } 1721 return interceptor(ctx, in, info, handler) 1722 } 1723 1724 func _Gitiles_DownloadDiff_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 1725 in := new(DownloadDiffRequest) 1726 if err := dec(in); err != nil { 1727 return nil, err 1728 } 1729 if interceptor == nil { 1730 return srv.(GitilesServer).DownloadDiff(ctx, in) 1731 } 1732 info := &grpc.UnaryServerInfo{ 1733 Server: srv, 1734 FullMethod: "/gitiles.Gitiles/DownloadDiff", 1735 } 1736 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 1737 return srv.(GitilesServer).DownloadDiff(ctx, req.(*DownloadDiffRequest)) 1738 } 1739 return interceptor(ctx, in, info, handler) 1740 } 1741 1742 func _Gitiles_Projects_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 1743 in := new(ProjectsRequest) 1744 if err := dec(in); err != nil { 1745 return nil, err 1746 } 1747 if interceptor == nil { 1748 return srv.(GitilesServer).Projects(ctx, in) 1749 } 1750 info := &grpc.UnaryServerInfo{ 1751 Server: srv, 1752 FullMethod: "/gitiles.Gitiles/Projects", 1753 } 1754 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 1755 return srv.(GitilesServer).Projects(ctx, req.(*ProjectsRequest)) 1756 } 1757 return interceptor(ctx, in, info, handler) 1758 } 1759 1760 func _Gitiles_ListFiles_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 1761 in := new(ListFilesRequest) 1762 if err := dec(in); err != nil { 1763 return nil, err 1764 } 1765 if interceptor == nil { 1766 return srv.(GitilesServer).ListFiles(ctx, in) 1767 } 1768 info := &grpc.UnaryServerInfo{ 1769 Server: srv, 1770 FullMethod: "/gitiles.Gitiles/ListFiles", 1771 } 1772 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 1773 return srv.(GitilesServer).ListFiles(ctx, req.(*ListFilesRequest)) 1774 } 1775 return interceptor(ctx, in, info, handler) 1776 } 1777 1778 var _Gitiles_serviceDesc = grpc.ServiceDesc{ 1779 ServiceName: "gitiles.Gitiles", 1780 HandlerType: (*GitilesServer)(nil), 1781 Methods: []grpc.MethodDesc{ 1782 { 1783 MethodName: "Log", 1784 Handler: _Gitiles_Log_Handler, 1785 }, 1786 { 1787 MethodName: "Refs", 1788 Handler: _Gitiles_Refs_Handler, 1789 }, 1790 { 1791 MethodName: "Archive", 1792 Handler: _Gitiles_Archive_Handler, 1793 }, 1794 { 1795 MethodName: "DownloadFile", 1796 Handler: _Gitiles_DownloadFile_Handler, 1797 }, 1798 { 1799 MethodName: "DownloadDiff", 1800 Handler: _Gitiles_DownloadDiff_Handler, 1801 }, 1802 { 1803 MethodName: "Projects", 1804 Handler: _Gitiles_Projects_Handler, 1805 }, 1806 { 1807 MethodName: "ListFiles", 1808 Handler: _Gitiles_ListFiles_Handler, 1809 }, 1810 }, 1811 Streams: []grpc.StreamDesc{}, 1812 Metadata: "go.chromium.org/luci/common/proto/gitiles/gitiles.proto", 1813 }