1// Code generated by protoc-gen-go. DO NOT EDIT. 2// source: remote.proto 3 4package gitalypb 5 6import ( 7 context "context" 8 fmt "fmt" 9 proto "github.com/golang/protobuf/proto" 10 grpc "google.golang.org/grpc" 11 codes "google.golang.org/grpc/codes" 12 status "google.golang.org/grpc/status" 13 math "math" 14) 15 16// Reference imports to suppress errors if they are not otherwise used. 17var _ = proto.Marshal 18var _ = fmt.Errorf 19var _ = math.Inf 20 21// This is a compile-time assertion to ensure that this generated file 22// is compatible with the proto package it is being compiled against. 23// A compilation error at this line likely means your copy of the 24// proto package needs to be updated. 25const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package 26 27type AddRemoteRequest struct { 28 Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` 29 Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` 30 Url string `protobuf:"bytes,3,opt,name=url,proto3" json:"url,omitempty"` 31 // If any, the remote is configured as a mirror with those mappings 32 MirrorRefmaps []string `protobuf:"bytes,5,rep,name=mirror_refmaps,json=mirrorRefmaps,proto3" json:"mirror_refmaps,omitempty"` 33 XXX_NoUnkeyedLiteral struct{} `json:"-"` 34 XXX_unrecognized []byte `json:"-"` 35 XXX_sizecache int32 `json:"-"` 36} 37 38func (m *AddRemoteRequest) Reset() { *m = AddRemoteRequest{} } 39func (m *AddRemoteRequest) String() string { return proto.CompactTextString(m) } 40func (*AddRemoteRequest) ProtoMessage() {} 41func (*AddRemoteRequest) Descriptor() ([]byte, []int) { 42 return fileDescriptor_eefc82927d57d89b, []int{0} 43} 44 45func (m *AddRemoteRequest) XXX_Unmarshal(b []byte) error { 46 return xxx_messageInfo_AddRemoteRequest.Unmarshal(m, b) 47} 48func (m *AddRemoteRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 49 return xxx_messageInfo_AddRemoteRequest.Marshal(b, m, deterministic) 50} 51func (m *AddRemoteRequest) XXX_Merge(src proto.Message) { 52 xxx_messageInfo_AddRemoteRequest.Merge(m, src) 53} 54func (m *AddRemoteRequest) XXX_Size() int { 55 return xxx_messageInfo_AddRemoteRequest.Size(m) 56} 57func (m *AddRemoteRequest) XXX_DiscardUnknown() { 58 xxx_messageInfo_AddRemoteRequest.DiscardUnknown(m) 59} 60 61var xxx_messageInfo_AddRemoteRequest proto.InternalMessageInfo 62 63func (m *AddRemoteRequest) GetRepository() *Repository { 64 if m != nil { 65 return m.Repository 66 } 67 return nil 68} 69 70func (m *AddRemoteRequest) GetName() string { 71 if m != nil { 72 return m.Name 73 } 74 return "" 75} 76 77func (m *AddRemoteRequest) GetUrl() string { 78 if m != nil { 79 return m.Url 80 } 81 return "" 82} 83 84func (m *AddRemoteRequest) GetMirrorRefmaps() []string { 85 if m != nil { 86 return m.MirrorRefmaps 87 } 88 return nil 89} 90 91type AddRemoteResponse struct { 92 XXX_NoUnkeyedLiteral struct{} `json:"-"` 93 XXX_unrecognized []byte `json:"-"` 94 XXX_sizecache int32 `json:"-"` 95} 96 97func (m *AddRemoteResponse) Reset() { *m = AddRemoteResponse{} } 98func (m *AddRemoteResponse) String() string { return proto.CompactTextString(m) } 99func (*AddRemoteResponse) ProtoMessage() {} 100func (*AddRemoteResponse) Descriptor() ([]byte, []int) { 101 return fileDescriptor_eefc82927d57d89b, []int{1} 102} 103 104func (m *AddRemoteResponse) XXX_Unmarshal(b []byte) error { 105 return xxx_messageInfo_AddRemoteResponse.Unmarshal(m, b) 106} 107func (m *AddRemoteResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 108 return xxx_messageInfo_AddRemoteResponse.Marshal(b, m, deterministic) 109} 110func (m *AddRemoteResponse) XXX_Merge(src proto.Message) { 111 xxx_messageInfo_AddRemoteResponse.Merge(m, src) 112} 113func (m *AddRemoteResponse) XXX_Size() int { 114 return xxx_messageInfo_AddRemoteResponse.Size(m) 115} 116func (m *AddRemoteResponse) XXX_DiscardUnknown() { 117 xxx_messageInfo_AddRemoteResponse.DiscardUnknown(m) 118} 119 120var xxx_messageInfo_AddRemoteResponse proto.InternalMessageInfo 121 122type RemoveRemoteRequest struct { 123 Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` 124 Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` 125 XXX_NoUnkeyedLiteral struct{} `json:"-"` 126 XXX_unrecognized []byte `json:"-"` 127 XXX_sizecache int32 `json:"-"` 128} 129 130func (m *RemoveRemoteRequest) Reset() { *m = RemoveRemoteRequest{} } 131func (m *RemoveRemoteRequest) String() string { return proto.CompactTextString(m) } 132func (*RemoveRemoteRequest) ProtoMessage() {} 133func (*RemoveRemoteRequest) Descriptor() ([]byte, []int) { 134 return fileDescriptor_eefc82927d57d89b, []int{2} 135} 136 137func (m *RemoveRemoteRequest) XXX_Unmarshal(b []byte) error { 138 return xxx_messageInfo_RemoveRemoteRequest.Unmarshal(m, b) 139} 140func (m *RemoveRemoteRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 141 return xxx_messageInfo_RemoveRemoteRequest.Marshal(b, m, deterministic) 142} 143func (m *RemoveRemoteRequest) XXX_Merge(src proto.Message) { 144 xxx_messageInfo_RemoveRemoteRequest.Merge(m, src) 145} 146func (m *RemoveRemoteRequest) XXX_Size() int { 147 return xxx_messageInfo_RemoveRemoteRequest.Size(m) 148} 149func (m *RemoveRemoteRequest) XXX_DiscardUnknown() { 150 xxx_messageInfo_RemoveRemoteRequest.DiscardUnknown(m) 151} 152 153var xxx_messageInfo_RemoveRemoteRequest proto.InternalMessageInfo 154 155func (m *RemoveRemoteRequest) GetRepository() *Repository { 156 if m != nil { 157 return m.Repository 158 } 159 return nil 160} 161 162func (m *RemoveRemoteRequest) GetName() string { 163 if m != nil { 164 return m.Name 165 } 166 return "" 167} 168 169type RemoveRemoteResponse struct { 170 Result bool `protobuf:"varint,1,opt,name=result,proto3" json:"result,omitempty"` 171 XXX_NoUnkeyedLiteral struct{} `json:"-"` 172 XXX_unrecognized []byte `json:"-"` 173 XXX_sizecache int32 `json:"-"` 174} 175 176func (m *RemoveRemoteResponse) Reset() { *m = RemoveRemoteResponse{} } 177func (m *RemoveRemoteResponse) String() string { return proto.CompactTextString(m) } 178func (*RemoveRemoteResponse) ProtoMessage() {} 179func (*RemoveRemoteResponse) Descriptor() ([]byte, []int) { 180 return fileDescriptor_eefc82927d57d89b, []int{3} 181} 182 183func (m *RemoveRemoteResponse) XXX_Unmarshal(b []byte) error { 184 return xxx_messageInfo_RemoveRemoteResponse.Unmarshal(m, b) 185} 186func (m *RemoveRemoteResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 187 return xxx_messageInfo_RemoveRemoteResponse.Marshal(b, m, deterministic) 188} 189func (m *RemoveRemoteResponse) XXX_Merge(src proto.Message) { 190 xxx_messageInfo_RemoveRemoteResponse.Merge(m, src) 191} 192func (m *RemoveRemoteResponse) XXX_Size() int { 193 return xxx_messageInfo_RemoveRemoteResponse.Size(m) 194} 195func (m *RemoveRemoteResponse) XXX_DiscardUnknown() { 196 xxx_messageInfo_RemoveRemoteResponse.DiscardUnknown(m) 197} 198 199var xxx_messageInfo_RemoveRemoteResponse proto.InternalMessageInfo 200 201func (m *RemoveRemoteResponse) GetResult() bool { 202 if m != nil { 203 return m.Result 204 } 205 return false 206} 207 208type FetchInternalRemoteRequest struct { 209 Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` 210 RemoteRepository *Repository `protobuf:"bytes,2,opt,name=remote_repository,json=remoteRepository,proto3" json:"remote_repository,omitempty"` 211 XXX_NoUnkeyedLiteral struct{} `json:"-"` 212 XXX_unrecognized []byte `json:"-"` 213 XXX_sizecache int32 `json:"-"` 214} 215 216func (m *FetchInternalRemoteRequest) Reset() { *m = FetchInternalRemoteRequest{} } 217func (m *FetchInternalRemoteRequest) String() string { return proto.CompactTextString(m) } 218func (*FetchInternalRemoteRequest) ProtoMessage() {} 219func (*FetchInternalRemoteRequest) Descriptor() ([]byte, []int) { 220 return fileDescriptor_eefc82927d57d89b, []int{4} 221} 222 223func (m *FetchInternalRemoteRequest) XXX_Unmarshal(b []byte) error { 224 return xxx_messageInfo_FetchInternalRemoteRequest.Unmarshal(m, b) 225} 226func (m *FetchInternalRemoteRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 227 return xxx_messageInfo_FetchInternalRemoteRequest.Marshal(b, m, deterministic) 228} 229func (m *FetchInternalRemoteRequest) XXX_Merge(src proto.Message) { 230 xxx_messageInfo_FetchInternalRemoteRequest.Merge(m, src) 231} 232func (m *FetchInternalRemoteRequest) XXX_Size() int { 233 return xxx_messageInfo_FetchInternalRemoteRequest.Size(m) 234} 235func (m *FetchInternalRemoteRequest) XXX_DiscardUnknown() { 236 xxx_messageInfo_FetchInternalRemoteRequest.DiscardUnknown(m) 237} 238 239var xxx_messageInfo_FetchInternalRemoteRequest proto.InternalMessageInfo 240 241func (m *FetchInternalRemoteRequest) GetRepository() *Repository { 242 if m != nil { 243 return m.Repository 244 } 245 return nil 246} 247 248func (m *FetchInternalRemoteRequest) GetRemoteRepository() *Repository { 249 if m != nil { 250 return m.RemoteRepository 251 } 252 return nil 253} 254 255type FetchInternalRemoteResponse struct { 256 Result bool `protobuf:"varint,1,opt,name=result,proto3" json:"result,omitempty"` 257 XXX_NoUnkeyedLiteral struct{} `json:"-"` 258 XXX_unrecognized []byte `json:"-"` 259 XXX_sizecache int32 `json:"-"` 260} 261 262func (m *FetchInternalRemoteResponse) Reset() { *m = FetchInternalRemoteResponse{} } 263func (m *FetchInternalRemoteResponse) String() string { return proto.CompactTextString(m) } 264func (*FetchInternalRemoteResponse) ProtoMessage() {} 265func (*FetchInternalRemoteResponse) Descriptor() ([]byte, []int) { 266 return fileDescriptor_eefc82927d57d89b, []int{5} 267} 268 269func (m *FetchInternalRemoteResponse) XXX_Unmarshal(b []byte) error { 270 return xxx_messageInfo_FetchInternalRemoteResponse.Unmarshal(m, b) 271} 272func (m *FetchInternalRemoteResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 273 return xxx_messageInfo_FetchInternalRemoteResponse.Marshal(b, m, deterministic) 274} 275func (m *FetchInternalRemoteResponse) XXX_Merge(src proto.Message) { 276 xxx_messageInfo_FetchInternalRemoteResponse.Merge(m, src) 277} 278func (m *FetchInternalRemoteResponse) XXX_Size() int { 279 return xxx_messageInfo_FetchInternalRemoteResponse.Size(m) 280} 281func (m *FetchInternalRemoteResponse) XXX_DiscardUnknown() { 282 xxx_messageInfo_FetchInternalRemoteResponse.DiscardUnknown(m) 283} 284 285var xxx_messageInfo_FetchInternalRemoteResponse proto.InternalMessageInfo 286 287func (m *FetchInternalRemoteResponse) GetResult() bool { 288 if m != nil { 289 return m.Result 290 } 291 return false 292} 293 294type UpdateRemoteMirrorRequest struct { 295 // repository is the repository whose mirror repository to update. 296 Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` 297 // ref_name is actually the remote to update. 298 RefName string `protobuf:"bytes,2,opt,name=ref_name,json=refName,proto3" json:"ref_name,omitempty"` 299 // only_branches_matching contains patterns to match branches against. Only 300 // the matched brances are updated in the remote mirror. If no patterns are 301 // specified, all branches are updated. The patterns should only contain the 302 // branch name without the 'refs/heads/' prefix. "*" can be used as a wildcard 303 // to match anything. only_branches_matching can be streamed to the server over multiple 304 // messages. Optional. 305 OnlyBranchesMatching [][]byte `protobuf:"bytes,3,rep,name=only_branches_matching,json=onlyBranchesMatching,proto3" json:"only_branches_matching,omitempty"` 306 // ssh_key is the SSH key to use for accessing to the mirror repository. Optional. 307 SshKey string `protobuf:"bytes,4,opt,name=ssh_key,json=sshKey,proto3" json:"ssh_key,omitempty"` 308 // known_hosts specifies the identities used for strict host key checking. Optional. 309 KnownHosts string `protobuf:"bytes,5,opt,name=known_hosts,json=knownHosts,proto3" json:"known_hosts,omitempty"` 310 // keep_divergent_refs specifies whether or not to update diverged references in the 311 // mirror repository. 312 KeepDivergentRefs bool `protobuf:"varint,6,opt,name=keep_divergent_refs,json=keepDivergentRefs,proto3" json:"keep_divergent_refs,omitempty"` 313 XXX_NoUnkeyedLiteral struct{} `json:"-"` 314 XXX_unrecognized []byte `json:"-"` 315 XXX_sizecache int32 `json:"-"` 316} 317 318func (m *UpdateRemoteMirrorRequest) Reset() { *m = UpdateRemoteMirrorRequest{} } 319func (m *UpdateRemoteMirrorRequest) String() string { return proto.CompactTextString(m) } 320func (*UpdateRemoteMirrorRequest) ProtoMessage() {} 321func (*UpdateRemoteMirrorRequest) Descriptor() ([]byte, []int) { 322 return fileDescriptor_eefc82927d57d89b, []int{6} 323} 324 325func (m *UpdateRemoteMirrorRequest) XXX_Unmarshal(b []byte) error { 326 return xxx_messageInfo_UpdateRemoteMirrorRequest.Unmarshal(m, b) 327} 328func (m *UpdateRemoteMirrorRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 329 return xxx_messageInfo_UpdateRemoteMirrorRequest.Marshal(b, m, deterministic) 330} 331func (m *UpdateRemoteMirrorRequest) XXX_Merge(src proto.Message) { 332 xxx_messageInfo_UpdateRemoteMirrorRequest.Merge(m, src) 333} 334func (m *UpdateRemoteMirrorRequest) XXX_Size() int { 335 return xxx_messageInfo_UpdateRemoteMirrorRequest.Size(m) 336} 337func (m *UpdateRemoteMirrorRequest) XXX_DiscardUnknown() { 338 xxx_messageInfo_UpdateRemoteMirrorRequest.DiscardUnknown(m) 339} 340 341var xxx_messageInfo_UpdateRemoteMirrorRequest proto.InternalMessageInfo 342 343func (m *UpdateRemoteMirrorRequest) GetRepository() *Repository { 344 if m != nil { 345 return m.Repository 346 } 347 return nil 348} 349 350func (m *UpdateRemoteMirrorRequest) GetRefName() string { 351 if m != nil { 352 return m.RefName 353 } 354 return "" 355} 356 357func (m *UpdateRemoteMirrorRequest) GetOnlyBranchesMatching() [][]byte { 358 if m != nil { 359 return m.OnlyBranchesMatching 360 } 361 return nil 362} 363 364func (m *UpdateRemoteMirrorRequest) GetSshKey() string { 365 if m != nil { 366 return m.SshKey 367 } 368 return "" 369} 370 371func (m *UpdateRemoteMirrorRequest) GetKnownHosts() string { 372 if m != nil { 373 return m.KnownHosts 374 } 375 return "" 376} 377 378func (m *UpdateRemoteMirrorRequest) GetKeepDivergentRefs() bool { 379 if m != nil { 380 return m.KeepDivergentRefs 381 } 382 return false 383} 384 385type UpdateRemoteMirrorResponse struct { 386 // divergent_refs contains a list of references that had diverged in the mirror from the 387 // source repository. 388 DivergentRefs [][]byte `protobuf:"bytes,1,rep,name=divergent_refs,json=divergentRefs,proto3" json:"divergent_refs,omitempty"` 389 XXX_NoUnkeyedLiteral struct{} `json:"-"` 390 XXX_unrecognized []byte `json:"-"` 391 XXX_sizecache int32 `json:"-"` 392} 393 394func (m *UpdateRemoteMirrorResponse) Reset() { *m = UpdateRemoteMirrorResponse{} } 395func (m *UpdateRemoteMirrorResponse) String() string { return proto.CompactTextString(m) } 396func (*UpdateRemoteMirrorResponse) ProtoMessage() {} 397func (*UpdateRemoteMirrorResponse) Descriptor() ([]byte, []int) { 398 return fileDescriptor_eefc82927d57d89b, []int{7} 399} 400 401func (m *UpdateRemoteMirrorResponse) XXX_Unmarshal(b []byte) error { 402 return xxx_messageInfo_UpdateRemoteMirrorResponse.Unmarshal(m, b) 403} 404func (m *UpdateRemoteMirrorResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 405 return xxx_messageInfo_UpdateRemoteMirrorResponse.Marshal(b, m, deterministic) 406} 407func (m *UpdateRemoteMirrorResponse) XXX_Merge(src proto.Message) { 408 xxx_messageInfo_UpdateRemoteMirrorResponse.Merge(m, src) 409} 410func (m *UpdateRemoteMirrorResponse) XXX_Size() int { 411 return xxx_messageInfo_UpdateRemoteMirrorResponse.Size(m) 412} 413func (m *UpdateRemoteMirrorResponse) XXX_DiscardUnknown() { 414 xxx_messageInfo_UpdateRemoteMirrorResponse.DiscardUnknown(m) 415} 416 417var xxx_messageInfo_UpdateRemoteMirrorResponse proto.InternalMessageInfo 418 419func (m *UpdateRemoteMirrorResponse) GetDivergentRefs() [][]byte { 420 if m != nil { 421 return m.DivergentRefs 422 } 423 return nil 424} 425 426type FindRemoteRepositoryRequest struct { 427 Remote string `protobuf:"bytes,1,opt,name=remote,proto3" json:"remote,omitempty"` 428 // This field is used to redirect request to proper storage where it can be handled. 429 // As of now it doesn't matter what storage will be used, but it still must be a valid. 430 // For more details: https://gitlab.com/gitlab-org/gitaly/-/issues/2442 431 StorageName string `protobuf:"bytes,2,opt,name=storage_name,json=storageName,proto3" json:"storage_name,omitempty"` 432 XXX_NoUnkeyedLiteral struct{} `json:"-"` 433 XXX_unrecognized []byte `json:"-"` 434 XXX_sizecache int32 `json:"-"` 435} 436 437func (m *FindRemoteRepositoryRequest) Reset() { *m = FindRemoteRepositoryRequest{} } 438func (m *FindRemoteRepositoryRequest) String() string { return proto.CompactTextString(m) } 439func (*FindRemoteRepositoryRequest) ProtoMessage() {} 440func (*FindRemoteRepositoryRequest) Descriptor() ([]byte, []int) { 441 return fileDescriptor_eefc82927d57d89b, []int{8} 442} 443 444func (m *FindRemoteRepositoryRequest) XXX_Unmarshal(b []byte) error { 445 return xxx_messageInfo_FindRemoteRepositoryRequest.Unmarshal(m, b) 446} 447func (m *FindRemoteRepositoryRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 448 return xxx_messageInfo_FindRemoteRepositoryRequest.Marshal(b, m, deterministic) 449} 450func (m *FindRemoteRepositoryRequest) XXX_Merge(src proto.Message) { 451 xxx_messageInfo_FindRemoteRepositoryRequest.Merge(m, src) 452} 453func (m *FindRemoteRepositoryRequest) XXX_Size() int { 454 return xxx_messageInfo_FindRemoteRepositoryRequest.Size(m) 455} 456func (m *FindRemoteRepositoryRequest) XXX_DiscardUnknown() { 457 xxx_messageInfo_FindRemoteRepositoryRequest.DiscardUnknown(m) 458} 459 460var xxx_messageInfo_FindRemoteRepositoryRequest proto.InternalMessageInfo 461 462func (m *FindRemoteRepositoryRequest) GetRemote() string { 463 if m != nil { 464 return m.Remote 465 } 466 return "" 467} 468 469func (m *FindRemoteRepositoryRequest) GetStorageName() string { 470 if m != nil { 471 return m.StorageName 472 } 473 return "" 474} 475 476// This migth throw a GRPC Unavailable code, to signal the request failure 477// is transient. 478type FindRemoteRepositoryResponse struct { 479 Exists bool `protobuf:"varint,1,opt,name=exists,proto3" json:"exists,omitempty"` 480 XXX_NoUnkeyedLiteral struct{} `json:"-"` 481 XXX_unrecognized []byte `json:"-"` 482 XXX_sizecache int32 `json:"-"` 483} 484 485func (m *FindRemoteRepositoryResponse) Reset() { *m = FindRemoteRepositoryResponse{} } 486func (m *FindRemoteRepositoryResponse) String() string { return proto.CompactTextString(m) } 487func (*FindRemoteRepositoryResponse) ProtoMessage() {} 488func (*FindRemoteRepositoryResponse) Descriptor() ([]byte, []int) { 489 return fileDescriptor_eefc82927d57d89b, []int{9} 490} 491 492func (m *FindRemoteRepositoryResponse) XXX_Unmarshal(b []byte) error { 493 return xxx_messageInfo_FindRemoteRepositoryResponse.Unmarshal(m, b) 494} 495func (m *FindRemoteRepositoryResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 496 return xxx_messageInfo_FindRemoteRepositoryResponse.Marshal(b, m, deterministic) 497} 498func (m *FindRemoteRepositoryResponse) XXX_Merge(src proto.Message) { 499 xxx_messageInfo_FindRemoteRepositoryResponse.Merge(m, src) 500} 501func (m *FindRemoteRepositoryResponse) XXX_Size() int { 502 return xxx_messageInfo_FindRemoteRepositoryResponse.Size(m) 503} 504func (m *FindRemoteRepositoryResponse) XXX_DiscardUnknown() { 505 xxx_messageInfo_FindRemoteRepositoryResponse.DiscardUnknown(m) 506} 507 508var xxx_messageInfo_FindRemoteRepositoryResponse proto.InternalMessageInfo 509 510func (m *FindRemoteRepositoryResponse) GetExists() bool { 511 if m != nil { 512 return m.Exists 513 } 514 return false 515} 516 517// FindRemoteRootRefRequest represents a request for the FindRemoteRootRef RPC. 518type FindRemoteRootRefRequest struct { 519 // Repository is the repository in which the request shall be executed in. If 520 // a remote name is given, then this is the repository in which the remote 521 // will be looked up. 522 Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` 523 // Remote is the name of the remote of which the root reference shall be 524 // looked up. The remote must have been created before this call. This 525 // parameter is deprecated in favor of `RemoteUrl`, see 526 // https://gitlab.com/gitlab-org/gitaly/-/issues/1773. 527 Remote string `protobuf:"bytes,2,opt,name=remote,proto3" json:"remote,omitempty"` // Deprecated: Do not use. 528 // RemoteUrl specifies the remote repository URL which should be fetched from. 529 RemoteUrl string `protobuf:"bytes,3,opt,name=remote_url,json=remoteUrl,proto3" json:"remote_url,omitempty"` 530 // HttpAuthorizationHeader is the HTTP header which should be added to the 531 // request in order to authenticate against the repository. 532 HttpAuthorizationHeader string `protobuf:"bytes,4,opt,name=http_authorization_header,json=httpAuthorizationHeader,proto3" json:"http_authorization_header,omitempty"` 533 XXX_NoUnkeyedLiteral struct{} `json:"-"` 534 XXX_unrecognized []byte `json:"-"` 535 XXX_sizecache int32 `json:"-"` 536} 537 538func (m *FindRemoteRootRefRequest) Reset() { *m = FindRemoteRootRefRequest{} } 539func (m *FindRemoteRootRefRequest) String() string { return proto.CompactTextString(m) } 540func (*FindRemoteRootRefRequest) ProtoMessage() {} 541func (*FindRemoteRootRefRequest) Descriptor() ([]byte, []int) { 542 return fileDescriptor_eefc82927d57d89b, []int{10} 543} 544 545func (m *FindRemoteRootRefRequest) XXX_Unmarshal(b []byte) error { 546 return xxx_messageInfo_FindRemoteRootRefRequest.Unmarshal(m, b) 547} 548func (m *FindRemoteRootRefRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 549 return xxx_messageInfo_FindRemoteRootRefRequest.Marshal(b, m, deterministic) 550} 551func (m *FindRemoteRootRefRequest) XXX_Merge(src proto.Message) { 552 xxx_messageInfo_FindRemoteRootRefRequest.Merge(m, src) 553} 554func (m *FindRemoteRootRefRequest) XXX_Size() int { 555 return xxx_messageInfo_FindRemoteRootRefRequest.Size(m) 556} 557func (m *FindRemoteRootRefRequest) XXX_DiscardUnknown() { 558 xxx_messageInfo_FindRemoteRootRefRequest.DiscardUnknown(m) 559} 560 561var xxx_messageInfo_FindRemoteRootRefRequest proto.InternalMessageInfo 562 563func (m *FindRemoteRootRefRequest) GetRepository() *Repository { 564 if m != nil { 565 return m.Repository 566 } 567 return nil 568} 569 570// Deprecated: Do not use. 571func (m *FindRemoteRootRefRequest) GetRemote() string { 572 if m != nil { 573 return m.Remote 574 } 575 return "" 576} 577 578func (m *FindRemoteRootRefRequest) GetRemoteUrl() string { 579 if m != nil { 580 return m.RemoteUrl 581 } 582 return "" 583} 584 585func (m *FindRemoteRootRefRequest) GetHttpAuthorizationHeader() string { 586 if m != nil { 587 return m.HttpAuthorizationHeader 588 } 589 return "" 590} 591 592// FindRemoteRootRefResponse represents the response for the FindRemoteRootRef 593// request. 594type FindRemoteRootRefResponse struct { 595 // Ref is the name of the remote root reference. 596 Ref string `protobuf:"bytes,1,opt,name=ref,proto3" json:"ref,omitempty"` 597 XXX_NoUnkeyedLiteral struct{} `json:"-"` 598 XXX_unrecognized []byte `json:"-"` 599 XXX_sizecache int32 `json:"-"` 600} 601 602func (m *FindRemoteRootRefResponse) Reset() { *m = FindRemoteRootRefResponse{} } 603func (m *FindRemoteRootRefResponse) String() string { return proto.CompactTextString(m) } 604func (*FindRemoteRootRefResponse) ProtoMessage() {} 605func (*FindRemoteRootRefResponse) Descriptor() ([]byte, []int) { 606 return fileDescriptor_eefc82927d57d89b, []int{11} 607} 608 609func (m *FindRemoteRootRefResponse) XXX_Unmarshal(b []byte) error { 610 return xxx_messageInfo_FindRemoteRootRefResponse.Unmarshal(m, b) 611} 612func (m *FindRemoteRootRefResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 613 return xxx_messageInfo_FindRemoteRootRefResponse.Marshal(b, m, deterministic) 614} 615func (m *FindRemoteRootRefResponse) XXX_Merge(src proto.Message) { 616 xxx_messageInfo_FindRemoteRootRefResponse.Merge(m, src) 617} 618func (m *FindRemoteRootRefResponse) XXX_Size() int { 619 return xxx_messageInfo_FindRemoteRootRefResponse.Size(m) 620} 621func (m *FindRemoteRootRefResponse) XXX_DiscardUnknown() { 622 xxx_messageInfo_FindRemoteRootRefResponse.DiscardUnknown(m) 623} 624 625var xxx_messageInfo_FindRemoteRootRefResponse proto.InternalMessageInfo 626 627func (m *FindRemoteRootRefResponse) GetRef() string { 628 if m != nil { 629 return m.Ref 630 } 631 return "" 632} 633 634type ListRemotesRequest struct { 635 Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` 636 XXX_NoUnkeyedLiteral struct{} `json:"-"` 637 XXX_unrecognized []byte `json:"-"` 638 XXX_sizecache int32 `json:"-"` 639} 640 641func (m *ListRemotesRequest) Reset() { *m = ListRemotesRequest{} } 642func (m *ListRemotesRequest) String() string { return proto.CompactTextString(m) } 643func (*ListRemotesRequest) ProtoMessage() {} 644func (*ListRemotesRequest) Descriptor() ([]byte, []int) { 645 return fileDescriptor_eefc82927d57d89b, []int{12} 646} 647 648func (m *ListRemotesRequest) XXX_Unmarshal(b []byte) error { 649 return xxx_messageInfo_ListRemotesRequest.Unmarshal(m, b) 650} 651func (m *ListRemotesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 652 return xxx_messageInfo_ListRemotesRequest.Marshal(b, m, deterministic) 653} 654func (m *ListRemotesRequest) XXX_Merge(src proto.Message) { 655 xxx_messageInfo_ListRemotesRequest.Merge(m, src) 656} 657func (m *ListRemotesRequest) XXX_Size() int { 658 return xxx_messageInfo_ListRemotesRequest.Size(m) 659} 660func (m *ListRemotesRequest) XXX_DiscardUnknown() { 661 xxx_messageInfo_ListRemotesRequest.DiscardUnknown(m) 662} 663 664var xxx_messageInfo_ListRemotesRequest proto.InternalMessageInfo 665 666func (m *ListRemotesRequest) GetRepository() *Repository { 667 if m != nil { 668 return m.Repository 669 } 670 return nil 671} 672 673type ListRemotesResponse struct { 674 Remotes []*ListRemotesResponse_Remote `protobuf:"bytes,1,rep,name=remotes,proto3" json:"remotes,omitempty"` 675 XXX_NoUnkeyedLiteral struct{} `json:"-"` 676 XXX_unrecognized []byte `json:"-"` 677 XXX_sizecache int32 `json:"-"` 678} 679 680func (m *ListRemotesResponse) Reset() { *m = ListRemotesResponse{} } 681func (m *ListRemotesResponse) String() string { return proto.CompactTextString(m) } 682func (*ListRemotesResponse) ProtoMessage() {} 683func (*ListRemotesResponse) Descriptor() ([]byte, []int) { 684 return fileDescriptor_eefc82927d57d89b, []int{13} 685} 686 687func (m *ListRemotesResponse) XXX_Unmarshal(b []byte) error { 688 return xxx_messageInfo_ListRemotesResponse.Unmarshal(m, b) 689} 690func (m *ListRemotesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 691 return xxx_messageInfo_ListRemotesResponse.Marshal(b, m, deterministic) 692} 693func (m *ListRemotesResponse) XXX_Merge(src proto.Message) { 694 xxx_messageInfo_ListRemotesResponse.Merge(m, src) 695} 696func (m *ListRemotesResponse) XXX_Size() int { 697 return xxx_messageInfo_ListRemotesResponse.Size(m) 698} 699func (m *ListRemotesResponse) XXX_DiscardUnknown() { 700 xxx_messageInfo_ListRemotesResponse.DiscardUnknown(m) 701} 702 703var xxx_messageInfo_ListRemotesResponse proto.InternalMessageInfo 704 705func (m *ListRemotesResponse) GetRemotes() []*ListRemotesResponse_Remote { 706 if m != nil { 707 return m.Remotes 708 } 709 return nil 710} 711 712type ListRemotesResponse_Remote struct { 713 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` 714 FetchUrl string `protobuf:"bytes,2,opt,name=fetch_url,json=fetchUrl,proto3" json:"fetch_url,omitempty"` 715 PushUrl string `protobuf:"bytes,3,opt,name=push_url,json=pushUrl,proto3" json:"push_url,omitempty"` 716 XXX_NoUnkeyedLiteral struct{} `json:"-"` 717 XXX_unrecognized []byte `json:"-"` 718 XXX_sizecache int32 `json:"-"` 719} 720 721func (m *ListRemotesResponse_Remote) Reset() { *m = ListRemotesResponse_Remote{} } 722func (m *ListRemotesResponse_Remote) String() string { return proto.CompactTextString(m) } 723func (*ListRemotesResponse_Remote) ProtoMessage() {} 724func (*ListRemotesResponse_Remote) Descriptor() ([]byte, []int) { 725 return fileDescriptor_eefc82927d57d89b, []int{13, 0} 726} 727 728func (m *ListRemotesResponse_Remote) XXX_Unmarshal(b []byte) error { 729 return xxx_messageInfo_ListRemotesResponse_Remote.Unmarshal(m, b) 730} 731func (m *ListRemotesResponse_Remote) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 732 return xxx_messageInfo_ListRemotesResponse_Remote.Marshal(b, m, deterministic) 733} 734func (m *ListRemotesResponse_Remote) XXX_Merge(src proto.Message) { 735 xxx_messageInfo_ListRemotesResponse_Remote.Merge(m, src) 736} 737func (m *ListRemotesResponse_Remote) XXX_Size() int { 738 return xxx_messageInfo_ListRemotesResponse_Remote.Size(m) 739} 740func (m *ListRemotesResponse_Remote) XXX_DiscardUnknown() { 741 xxx_messageInfo_ListRemotesResponse_Remote.DiscardUnknown(m) 742} 743 744var xxx_messageInfo_ListRemotesResponse_Remote proto.InternalMessageInfo 745 746func (m *ListRemotesResponse_Remote) GetName() string { 747 if m != nil { 748 return m.Name 749 } 750 return "" 751} 752 753func (m *ListRemotesResponse_Remote) GetFetchUrl() string { 754 if m != nil { 755 return m.FetchUrl 756 } 757 return "" 758} 759 760func (m *ListRemotesResponse_Remote) GetPushUrl() string { 761 if m != nil { 762 return m.PushUrl 763 } 764 return "" 765} 766 767func init() { 768 proto.RegisterType((*AddRemoteRequest)(nil), "gitaly.AddRemoteRequest") 769 proto.RegisterType((*AddRemoteResponse)(nil), "gitaly.AddRemoteResponse") 770 proto.RegisterType((*RemoveRemoteRequest)(nil), "gitaly.RemoveRemoteRequest") 771 proto.RegisterType((*RemoveRemoteResponse)(nil), "gitaly.RemoveRemoteResponse") 772 proto.RegisterType((*FetchInternalRemoteRequest)(nil), "gitaly.FetchInternalRemoteRequest") 773 proto.RegisterType((*FetchInternalRemoteResponse)(nil), "gitaly.FetchInternalRemoteResponse") 774 proto.RegisterType((*UpdateRemoteMirrorRequest)(nil), "gitaly.UpdateRemoteMirrorRequest") 775 proto.RegisterType((*UpdateRemoteMirrorResponse)(nil), "gitaly.UpdateRemoteMirrorResponse") 776 proto.RegisterType((*FindRemoteRepositoryRequest)(nil), "gitaly.FindRemoteRepositoryRequest") 777 proto.RegisterType((*FindRemoteRepositoryResponse)(nil), "gitaly.FindRemoteRepositoryResponse") 778 proto.RegisterType((*FindRemoteRootRefRequest)(nil), "gitaly.FindRemoteRootRefRequest") 779 proto.RegisterType((*FindRemoteRootRefResponse)(nil), "gitaly.FindRemoteRootRefResponse") 780 proto.RegisterType((*ListRemotesRequest)(nil), "gitaly.ListRemotesRequest") 781 proto.RegisterType((*ListRemotesResponse)(nil), "gitaly.ListRemotesResponse") 782 proto.RegisterType((*ListRemotesResponse_Remote)(nil), "gitaly.ListRemotesResponse.Remote") 783} 784 785func init() { proto.RegisterFile("remote.proto", fileDescriptor_eefc82927d57d89b) } 786 787var fileDescriptor_eefc82927d57d89b = []byte{ 788 // 836 bytes of a gzipped FileDescriptorProto 789 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x56, 0xcd, 0x8e, 0xe3, 0x44, 790 0x10, 0x96, 0x1d, 0x6f, 0xc6, 0xa9, 0xc9, 0xac, 0x32, 0x9d, 0xd1, 0xae, 0xe3, 0x2c, 0x22, 0x6b, 791 0x58, 0x91, 0x03, 0x9b, 0x88, 0x30, 0x20, 0x84, 0x90, 0xd0, 0x06, 0xb4, 0x1a, 0x7e, 0x76, 0x25, 792 0x0c, 0x73, 0xe1, 0x80, 0x71, 0x92, 0x4e, 0x6c, 0xc5, 0x71, 0x9b, 0xee, 0x4e, 0x20, 0x3c, 0x01, 793 0x47, 0x6e, 0xc3, 0x2b, 0x70, 0xe1, 0x31, 0x38, 0xc0, 0x1b, 0xed, 0x09, 0xf5, 0x4f, 0x1c, 0x27, 794 0xe3, 0x84, 0xc3, 0xc0, 0xad, 0xfb, 0xab, 0xea, 0xaf, 0xaa, 0xbe, 0xea, 0x2e, 0x1b, 0xea, 0x14, 795 0x2f, 0x08, 0xc7, 0xbd, 0x8c, 0x12, 0x4e, 0x50, 0x75, 0x16, 0xf3, 0x30, 0x59, 0xbb, 0x90, 0xc4, 796 0x29, 0x57, 0x98, 0x5b, 0x67, 0x51, 0x48, 0xf1, 0x44, 0xed, 0xbc, 0x3f, 0x0c, 0x68, 0x3c, 0x9b, 797 0x4c, 0x7c, 0x79, 0xca, 0xc7, 0x3f, 0x2c, 0x31, 0xe3, 0xe8, 0x03, 0x00, 0x8a, 0x33, 0xc2, 0x62, 798 0x4e, 0xe8, 0xda, 0x31, 0x3a, 0x46, 0xf7, 0x74, 0x80, 0x7a, 0x8a, 0xab, 0xe7, 0xe7, 0x96, 0xa1, 799 0xf5, 0xdb, 0x9f, 0x6f, 0x1b, 0x7e, 0xc1, 0x17, 0x21, 0xb0, 0xd2, 0x70, 0x81, 0x1d, 0xb3, 0x63, 800 0x74, 0x6b, 0xbe, 0x5c, 0xa3, 0x06, 0x54, 0x96, 0x34, 0x71, 0x2a, 0x12, 0x12, 0x4b, 0xf4, 0x04, 801 0xee, 0x2f, 0x62, 0x4a, 0x09, 0x0d, 0x28, 0x9e, 0x2e, 0xc2, 0x8c, 0x39, 0xf7, 0x3a, 0x95, 0x6e, 802 0xcd, 0x3f, 0x53, 0xa8, 0xaf, 0xc0, 0xcf, 0x2d, 0xdb, 0x6a, 0xdc, 0xdb, 0x80, 0xda, 0xd5, 0x6b, 803 0xc2, 0x79, 0x21, 0x5f, 0x96, 0x91, 0x94, 0x61, 0x6f, 0x0c, 0x4d, 0x81, 0xac, 0xf0, 0xff, 0x58, 804 0x87, 0xd7, 0x83, 0x8b, 0xdd, 0x20, 0x2a, 0x38, 0x7a, 0x00, 0x55, 0x8a, 0xd9, 0x32, 0xe1, 0x32, 805 0x82, 0xed, 0xeb, 0x9d, 0x77, 0x63, 0x80, 0xfb, 0x1c, 0xf3, 0x71, 0xf4, 0x59, 0xca, 0x31, 0x4d, 806 0xc3, 0xe4, 0xbf, 0x4a, 0xee, 0x63, 0x38, 0x57, 0x5d, 0x0e, 0x0a, 0x04, 0xe6, 0x21, 0x02, 0xbf, 807 0x41, 0x75, 0xdc, 0x0d, 0xe2, 0xbd, 0x07, 0xed, 0xd2, 0xc4, 0xfe, 0xa5, 0xa0, 0x5f, 0x4d, 0x68, 808 0x5d, 0x67, 0x93, 0x90, 0x6b, 0x05, 0x5e, 0xe8, 0x6e, 0xdd, 0xb5, 0x9e, 0x16, 0xd8, 0x14, 0x4f, 809 0x83, 0x82, 0xe0, 0x27, 0x14, 0x4f, 0x5f, 0x8a, 0xbb, 0x73, 0x09, 0x0f, 0x48, 0x9a, 0xac, 0x83, 810 0x11, 0x0d, 0xd3, 0x71, 0x84, 0x59, 0xb0, 0x08, 0xf9, 0x38, 0x8a, 0xd3, 0x99, 0x53, 0xe9, 0x54, 811 0xba, 0x75, 0xff, 0x42, 0x58, 0x87, 0xda, 0xf8, 0x42, 0xdb, 0xd0, 0x43, 0x38, 0x61, 0x2c, 0x0a, 812 0xe6, 0x78, 0xed, 0x58, 0x92, 0xaf, 0xca, 0x58, 0xf4, 0x05, 0x5e, 0xa3, 0xd7, 0xe1, 0x74, 0x9e, 813 0x92, 0x1f, 0xd3, 0x20, 0x22, 0x8c, 0x8b, 0x5b, 0x27, 0x8c, 0x20, 0xa1, 0x2b, 0x81, 0xa0, 0x1e, 814 0x34, 0xe7, 0x18, 0x67, 0xc1, 0x24, 0x5e, 0x61, 0x3a, 0xc3, 0x29, 0x17, 0xd7, 0x8e, 0x39, 0x55, 815 0xa9, 0xc3, 0xb9, 0x30, 0x7d, 0xba, 0xb1, 0xf8, 0x78, 0xca, 0xbc, 0x4f, 0xc0, 0x2d, 0x53, 0x44, 816 0x0b, 0xf9, 0x04, 0xee, 0xef, 0x11, 0x19, 0x32, 0xeb, 0xb3, 0xc9, 0x0e, 0xc9, 0x77, 0xd0, 0x7e, 817 0x1e, 0xa7, 0xf9, 0x9d, 0xce, 0x1b, 0xa7, 0x85, 0x95, 0xed, 0x10, 0x26, 0x29, 0x6a, 0xcd, 0xd7, 818 0x3b, 0xf4, 0x16, 0xd4, 0x19, 0x27, 0x34, 0x9c, 0xe1, 0x82, 0x74, 0x43, 0xeb, 0x17, 0x21, 0xef, 819 0xa9, 0xb6, 0x08, 0x11, 0xbd, 0xf7, 0xe1, 0x51, 0x39, 0xff, 0xb6, 0xdf, 0xf8, 0xa7, 0x58, 0x08, 820 0xa2, 0xfb, 0xad, 0x76, 0xde, 0xdf, 0x06, 0x38, 0x85, 0x83, 0x84, 0x88, 0x74, 0xef, 0xde, 0x6e, 821 0x37, 0xaf, 0x47, 0x65, 0x6c, 0x3a, 0x46, 0x5e, 0xd3, 0x6b, 0x82, 0x55, 0x5e, 0xed, 0xed, 0xc8, 822 0xa8, 0x29, 0xe4, 0x9a, 0x26, 0xe8, 0x43, 0x68, 0x45, 0x9c, 0x67, 0x41, 0xb8, 0xe4, 0x11, 0xa1, 823 0xf1, 0xcf, 0x21, 0x8f, 0x49, 0x1a, 0x44, 0x38, 0x9c, 0x60, 0xaa, 0x5b, 0xfd, 0x50, 0x38, 0x3c, 824 0x2b, 0xda, 0xaf, 0xa4, 0xd9, 0x7b, 0x0a, 0xad, 0x92, 0x62, 0xb4, 0x04, 0x0d, 0xa8, 0x50, 0x3c, 825 0xd5, 0x02, 0x8b, 0xa5, 0xf7, 0x12, 0xd0, 0x97, 0x31, 0xe3, 0xca, 0x9d, 0xdd, 0xb9, 0x6a, 0xef, 826 0x77, 0x03, 0x9a, 0x3b, 0x84, 0x3a, 0xf2, 0x47, 0x70, 0xa2, 0xea, 0x53, 0x97, 0xe3, 0x74, 0xe0, 827 0x6d, 0xe8, 0x4a, 0xbc, 0x7b, 0x3a, 0xfb, 0xcd, 0x11, 0xf7, 0x1b, 0xa8, 0x2a, 0x28, 0x9f, 0x58, 828 0x46, 0x61, 0xf2, 0xb6, 0xa1, 0x36, 0x15, 0xef, 0x5c, 0x8a, 0xa9, 0x5e, 0x96, 0x2d, 0x01, 0xa1, 829 0x65, 0x0b, 0xec, 0x6c, 0xc9, 0xa2, 0x82, 0xd0, 0x27, 0x62, 0x7f, 0x4d, 0x93, 0xc1, 0x5f, 0x16, 830 0x9c, 0x29, 0xda, 0xaf, 0x31, 0x5d, 0xc5, 0x63, 0x8c, 0xae, 0xa0, 0x96, 0x4f, 0x5d, 0xe4, 0x6c, 831 0x32, 0xdc, 0xff, 0x70, 0xb8, 0xad, 0x12, 0x8b, 0x1e, 0xd1, 0xd5, 0x57, 0x37, 0x5d, 0xd3, 0x36, 832 0xd0, 0x14, 0x9a, 0x25, 0xb3, 0x07, 0xe5, 0x55, 0x1f, 0x9e, 0x98, 0xee, 0x1b, 0x47, 0x7d, 0xf6, 833 0xe2, 0x7c, 0x05, 0xf5, 0xe2, 0xb4, 0x46, 0xed, 0x6d, 0x97, 0x6e, 0x7d, 0x28, 0xdc, 0x47, 0xe5, 834 0xc6, 0x3d, 0x4a, 0x0c, 0xe8, 0xf6, 0x63, 0x47, 0x8f, 0x37, 0x67, 0x0f, 0x8e, 0x46, 0xd7, 0x3b, 835 0xe6, 0xb2, 0x13, 0xc4, 0xec, 0x1a, 0x68, 0x0e, 0x17, 0x65, 0xcf, 0x15, 0x6d, 0xcb, 0x3f, 0x3c, 836 0x2c, 0xdc, 0x37, 0x8f, 0x3b, 0xe9, 0x60, 0xf6, 0xab, 0x9b, 0xae, 0x65, 0x9b, 0x0d, 0x13, 0x7d, 837 0x0f, 0xe7, 0xb7, 0x5e, 0x05, 0xea, 0x94, 0x90, 0xec, 0xbc, 0x7e, 0xf7, 0xf1, 0x11, 0x8f, 0xdd, 838 0x82, 0x86, 0x97, 0xdf, 0x0e, 0x66, 0x31, 0x4f, 0xc2, 0x51, 0x6f, 0x4c, 0x16, 0x7d, 0xb5, 0x7c, 839 0x4a, 0xe8, 0xac, 0xaf, 0x18, 0xfa, 0xab, 0x77, 0x2e, 0xfb, 0xf2, 0x5f, 0xa4, 0x3f, 0x23, 0x1a, 840 0xcb, 0x46, 0xa3, 0xaa, 0x84, 0xde, 0xfd, 0x27, 0x00, 0x00, 0xff, 0xff, 0xfa, 0xfc, 0x84, 0xd1, 841 0xd0, 0x08, 0x00, 0x00, 842} 843 844// Reference imports to suppress errors if they are not otherwise used. 845var _ context.Context 846var _ grpc.ClientConn 847 848// This is a compile-time assertion to ensure that this generated file 849// is compatible with the grpc package it is being compiled against. 850const _ = grpc.SupportPackageIsVersion4 851 852// RemoteServiceClient is the client API for RemoteService service. 853// 854// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. 855type RemoteServiceClient interface { 856 AddRemote(ctx context.Context, in *AddRemoteRequest, opts ...grpc.CallOption) (*AddRemoteResponse, error) 857 FetchInternalRemote(ctx context.Context, in *FetchInternalRemoteRequest, opts ...grpc.CallOption) (*FetchInternalRemoteResponse, error) 858 RemoveRemote(ctx context.Context, in *RemoveRemoteRequest, opts ...grpc.CallOption) (*RemoveRemoteResponse, error) 859 // UpdateRemoteMirror compares the references in the target repository and its remote mirror 860 // repository. Any differences in the references are then addressed by pushing the differing 861 // references to the mirror. Created and modified references are updated, removed references are 862 // deleted from the mirror. UpdateRemoteMirror updates all tags. Branches are updated if they match 863 // the patterns specified in the requests. 864 UpdateRemoteMirror(ctx context.Context, opts ...grpc.CallOption) (RemoteService_UpdateRemoteMirrorClient, error) 865 FindRemoteRepository(ctx context.Context, in *FindRemoteRepositoryRequest, opts ...grpc.CallOption) (*FindRemoteRepositoryResponse, error) 866 // FindRemoteRootRef tries to find the root reference of a remote 867 // repository. The root reference is the default branch as pointed to by 868 // the remotes HEAD reference. Returns an InvalidArgument error if the 869 // specified remote does not exist and a NotFound error in case no HEAD 870 // branch was found. 871 FindRemoteRootRef(ctx context.Context, in *FindRemoteRootRefRequest, opts ...grpc.CallOption) (*FindRemoteRootRefResponse, error) 872} 873 874type remoteServiceClient struct { 875 cc *grpc.ClientConn 876} 877 878func NewRemoteServiceClient(cc *grpc.ClientConn) RemoteServiceClient { 879 return &remoteServiceClient{cc} 880} 881 882func (c *remoteServiceClient) AddRemote(ctx context.Context, in *AddRemoteRequest, opts ...grpc.CallOption) (*AddRemoteResponse, error) { 883 out := new(AddRemoteResponse) 884 err := c.cc.Invoke(ctx, "/gitaly.RemoteService/AddRemote", in, out, opts...) 885 if err != nil { 886 return nil, err 887 } 888 return out, nil 889} 890 891func (c *remoteServiceClient) FetchInternalRemote(ctx context.Context, in *FetchInternalRemoteRequest, opts ...grpc.CallOption) (*FetchInternalRemoteResponse, error) { 892 out := new(FetchInternalRemoteResponse) 893 err := c.cc.Invoke(ctx, "/gitaly.RemoteService/FetchInternalRemote", in, out, opts...) 894 if err != nil { 895 return nil, err 896 } 897 return out, nil 898} 899 900func (c *remoteServiceClient) RemoveRemote(ctx context.Context, in *RemoveRemoteRequest, opts ...grpc.CallOption) (*RemoveRemoteResponse, error) { 901 out := new(RemoveRemoteResponse) 902 err := c.cc.Invoke(ctx, "/gitaly.RemoteService/RemoveRemote", in, out, opts...) 903 if err != nil { 904 return nil, err 905 } 906 return out, nil 907} 908 909func (c *remoteServiceClient) UpdateRemoteMirror(ctx context.Context, opts ...grpc.CallOption) (RemoteService_UpdateRemoteMirrorClient, error) { 910 stream, err := c.cc.NewStream(ctx, &_RemoteService_serviceDesc.Streams[0], "/gitaly.RemoteService/UpdateRemoteMirror", opts...) 911 if err != nil { 912 return nil, err 913 } 914 x := &remoteServiceUpdateRemoteMirrorClient{stream} 915 return x, nil 916} 917 918type RemoteService_UpdateRemoteMirrorClient interface { 919 Send(*UpdateRemoteMirrorRequest) error 920 CloseAndRecv() (*UpdateRemoteMirrorResponse, error) 921 grpc.ClientStream 922} 923 924type remoteServiceUpdateRemoteMirrorClient struct { 925 grpc.ClientStream 926} 927 928func (x *remoteServiceUpdateRemoteMirrorClient) Send(m *UpdateRemoteMirrorRequest) error { 929 return x.ClientStream.SendMsg(m) 930} 931 932func (x *remoteServiceUpdateRemoteMirrorClient) CloseAndRecv() (*UpdateRemoteMirrorResponse, error) { 933 if err := x.ClientStream.CloseSend(); err != nil { 934 return nil, err 935 } 936 m := new(UpdateRemoteMirrorResponse) 937 if err := x.ClientStream.RecvMsg(m); err != nil { 938 return nil, err 939 } 940 return m, nil 941} 942 943func (c *remoteServiceClient) FindRemoteRepository(ctx context.Context, in *FindRemoteRepositoryRequest, opts ...grpc.CallOption) (*FindRemoteRepositoryResponse, error) { 944 out := new(FindRemoteRepositoryResponse) 945 err := c.cc.Invoke(ctx, "/gitaly.RemoteService/FindRemoteRepository", in, out, opts...) 946 if err != nil { 947 return nil, err 948 } 949 return out, nil 950} 951 952func (c *remoteServiceClient) FindRemoteRootRef(ctx context.Context, in *FindRemoteRootRefRequest, opts ...grpc.CallOption) (*FindRemoteRootRefResponse, error) { 953 out := new(FindRemoteRootRefResponse) 954 err := c.cc.Invoke(ctx, "/gitaly.RemoteService/FindRemoteRootRef", in, out, opts...) 955 if err != nil { 956 return nil, err 957 } 958 return out, nil 959} 960 961// RemoteServiceServer is the server API for RemoteService service. 962type RemoteServiceServer interface { 963 AddRemote(context.Context, *AddRemoteRequest) (*AddRemoteResponse, error) 964 FetchInternalRemote(context.Context, *FetchInternalRemoteRequest) (*FetchInternalRemoteResponse, error) 965 RemoveRemote(context.Context, *RemoveRemoteRequest) (*RemoveRemoteResponse, error) 966 // UpdateRemoteMirror compares the references in the target repository and its remote mirror 967 // repository. Any differences in the references are then addressed by pushing the differing 968 // references to the mirror. Created and modified references are updated, removed references are 969 // deleted from the mirror. UpdateRemoteMirror updates all tags. Branches are updated if they match 970 // the patterns specified in the requests. 971 UpdateRemoteMirror(RemoteService_UpdateRemoteMirrorServer) error 972 FindRemoteRepository(context.Context, *FindRemoteRepositoryRequest) (*FindRemoteRepositoryResponse, error) 973 // FindRemoteRootRef tries to find the root reference of a remote 974 // repository. The root reference is the default branch as pointed to by 975 // the remotes HEAD reference. Returns an InvalidArgument error if the 976 // specified remote does not exist and a NotFound error in case no HEAD 977 // branch was found. 978 FindRemoteRootRef(context.Context, *FindRemoteRootRefRequest) (*FindRemoteRootRefResponse, error) 979} 980 981// UnimplementedRemoteServiceServer can be embedded to have forward compatible implementations. 982type UnimplementedRemoteServiceServer struct { 983} 984 985func (*UnimplementedRemoteServiceServer) AddRemote(ctx context.Context, req *AddRemoteRequest) (*AddRemoteResponse, error) { 986 return nil, status.Errorf(codes.Unimplemented, "method AddRemote not implemented") 987} 988func (*UnimplementedRemoteServiceServer) FetchInternalRemote(ctx context.Context, req *FetchInternalRemoteRequest) (*FetchInternalRemoteResponse, error) { 989 return nil, status.Errorf(codes.Unimplemented, "method FetchInternalRemote not implemented") 990} 991func (*UnimplementedRemoteServiceServer) RemoveRemote(ctx context.Context, req *RemoveRemoteRequest) (*RemoveRemoteResponse, error) { 992 return nil, status.Errorf(codes.Unimplemented, "method RemoveRemote not implemented") 993} 994func (*UnimplementedRemoteServiceServer) UpdateRemoteMirror(srv RemoteService_UpdateRemoteMirrorServer) error { 995 return status.Errorf(codes.Unimplemented, "method UpdateRemoteMirror not implemented") 996} 997func (*UnimplementedRemoteServiceServer) FindRemoteRepository(ctx context.Context, req *FindRemoteRepositoryRequest) (*FindRemoteRepositoryResponse, error) { 998 return nil, status.Errorf(codes.Unimplemented, "method FindRemoteRepository not implemented") 999} 1000func (*UnimplementedRemoteServiceServer) FindRemoteRootRef(ctx context.Context, req *FindRemoteRootRefRequest) (*FindRemoteRootRefResponse, error) { 1001 return nil, status.Errorf(codes.Unimplemented, "method FindRemoteRootRef not implemented") 1002} 1003 1004func RegisterRemoteServiceServer(s *grpc.Server, srv RemoteServiceServer) { 1005 s.RegisterService(&_RemoteService_serviceDesc, srv) 1006} 1007 1008func _RemoteService_AddRemote_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 1009 in := new(AddRemoteRequest) 1010 if err := dec(in); err != nil { 1011 return nil, err 1012 } 1013 if interceptor == nil { 1014 return srv.(RemoteServiceServer).AddRemote(ctx, in) 1015 } 1016 info := &grpc.UnaryServerInfo{ 1017 Server: srv, 1018 FullMethod: "/gitaly.RemoteService/AddRemote", 1019 } 1020 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 1021 return srv.(RemoteServiceServer).AddRemote(ctx, req.(*AddRemoteRequest)) 1022 } 1023 return interceptor(ctx, in, info, handler) 1024} 1025 1026func _RemoteService_FetchInternalRemote_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 1027 in := new(FetchInternalRemoteRequest) 1028 if err := dec(in); err != nil { 1029 return nil, err 1030 } 1031 if interceptor == nil { 1032 return srv.(RemoteServiceServer).FetchInternalRemote(ctx, in) 1033 } 1034 info := &grpc.UnaryServerInfo{ 1035 Server: srv, 1036 FullMethod: "/gitaly.RemoteService/FetchInternalRemote", 1037 } 1038 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 1039 return srv.(RemoteServiceServer).FetchInternalRemote(ctx, req.(*FetchInternalRemoteRequest)) 1040 } 1041 return interceptor(ctx, in, info, handler) 1042} 1043 1044func _RemoteService_RemoveRemote_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 1045 in := new(RemoveRemoteRequest) 1046 if err := dec(in); err != nil { 1047 return nil, err 1048 } 1049 if interceptor == nil { 1050 return srv.(RemoteServiceServer).RemoveRemote(ctx, in) 1051 } 1052 info := &grpc.UnaryServerInfo{ 1053 Server: srv, 1054 FullMethod: "/gitaly.RemoteService/RemoveRemote", 1055 } 1056 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 1057 return srv.(RemoteServiceServer).RemoveRemote(ctx, req.(*RemoveRemoteRequest)) 1058 } 1059 return interceptor(ctx, in, info, handler) 1060} 1061 1062func _RemoteService_UpdateRemoteMirror_Handler(srv interface{}, stream grpc.ServerStream) error { 1063 return srv.(RemoteServiceServer).UpdateRemoteMirror(&remoteServiceUpdateRemoteMirrorServer{stream}) 1064} 1065 1066type RemoteService_UpdateRemoteMirrorServer interface { 1067 SendAndClose(*UpdateRemoteMirrorResponse) error 1068 Recv() (*UpdateRemoteMirrorRequest, error) 1069 grpc.ServerStream 1070} 1071 1072type remoteServiceUpdateRemoteMirrorServer struct { 1073 grpc.ServerStream 1074} 1075 1076func (x *remoteServiceUpdateRemoteMirrorServer) SendAndClose(m *UpdateRemoteMirrorResponse) error { 1077 return x.ServerStream.SendMsg(m) 1078} 1079 1080func (x *remoteServiceUpdateRemoteMirrorServer) Recv() (*UpdateRemoteMirrorRequest, error) { 1081 m := new(UpdateRemoteMirrorRequest) 1082 if err := x.ServerStream.RecvMsg(m); err != nil { 1083 return nil, err 1084 } 1085 return m, nil 1086} 1087 1088func _RemoteService_FindRemoteRepository_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 1089 in := new(FindRemoteRepositoryRequest) 1090 if err := dec(in); err != nil { 1091 return nil, err 1092 } 1093 if interceptor == nil { 1094 return srv.(RemoteServiceServer).FindRemoteRepository(ctx, in) 1095 } 1096 info := &grpc.UnaryServerInfo{ 1097 Server: srv, 1098 FullMethod: "/gitaly.RemoteService/FindRemoteRepository", 1099 } 1100 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 1101 return srv.(RemoteServiceServer).FindRemoteRepository(ctx, req.(*FindRemoteRepositoryRequest)) 1102 } 1103 return interceptor(ctx, in, info, handler) 1104} 1105 1106func _RemoteService_FindRemoteRootRef_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 1107 in := new(FindRemoteRootRefRequest) 1108 if err := dec(in); err != nil { 1109 return nil, err 1110 } 1111 if interceptor == nil { 1112 return srv.(RemoteServiceServer).FindRemoteRootRef(ctx, in) 1113 } 1114 info := &grpc.UnaryServerInfo{ 1115 Server: srv, 1116 FullMethod: "/gitaly.RemoteService/FindRemoteRootRef", 1117 } 1118 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 1119 return srv.(RemoteServiceServer).FindRemoteRootRef(ctx, req.(*FindRemoteRootRefRequest)) 1120 } 1121 return interceptor(ctx, in, info, handler) 1122} 1123 1124var _RemoteService_serviceDesc = grpc.ServiceDesc{ 1125 ServiceName: "gitaly.RemoteService", 1126 HandlerType: (*RemoteServiceServer)(nil), 1127 Methods: []grpc.MethodDesc{ 1128 { 1129 MethodName: "AddRemote", 1130 Handler: _RemoteService_AddRemote_Handler, 1131 }, 1132 { 1133 MethodName: "FetchInternalRemote", 1134 Handler: _RemoteService_FetchInternalRemote_Handler, 1135 }, 1136 { 1137 MethodName: "RemoveRemote", 1138 Handler: _RemoteService_RemoveRemote_Handler, 1139 }, 1140 { 1141 MethodName: "FindRemoteRepository", 1142 Handler: _RemoteService_FindRemoteRepository_Handler, 1143 }, 1144 { 1145 MethodName: "FindRemoteRootRef", 1146 Handler: _RemoteService_FindRemoteRootRef_Handler, 1147 }, 1148 }, 1149 Streams: []grpc.StreamDesc{ 1150 { 1151 StreamName: "UpdateRemoteMirror", 1152 Handler: _RemoteService_UpdateRemoteMirror_Handler, 1153 ClientStreams: true, 1154 }, 1155 }, 1156 Metadata: "remote.proto", 1157} 1158