1// Code generated by protoc-gen-go. DO NOT EDIT. 2// source: google/devtools/source/v1/source_context.proto 3 4package source 5 6import ( 7 fmt "fmt" 8 math "math" 9 10 proto "github.com/golang/protobuf/proto" 11 _ "google.golang.org/genproto/googleapis/api/annotations" 12) 13 14// Reference imports to suppress errors if they are not otherwise used. 15var _ = proto.Marshal 16var _ = fmt.Errorf 17var _ = math.Inf 18 19// This is a compile-time assertion to ensure that this generated file 20// is compatible with the proto package it is being compiled against. 21// A compilation error at this line likely means your copy of the 22// proto package needs to be updated. 23const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package 24 25// The type of an Alias. 26type AliasContext_Kind int32 27 28const ( 29 // Do not use. 30 AliasContext_ANY AliasContext_Kind = 0 31 // Git tag 32 AliasContext_FIXED AliasContext_Kind = 1 33 // Git branch 34 AliasContext_MOVABLE AliasContext_Kind = 2 35 // OTHER is used to specify non-standard aliases, those not of the kinds 36 // above. For example, if a Git repo has a ref named "refs/foo/bar", it 37 // is considered to be of kind OTHER. 38 AliasContext_OTHER AliasContext_Kind = 4 39) 40 41var AliasContext_Kind_name = map[int32]string{ 42 0: "ANY", 43 1: "FIXED", 44 2: "MOVABLE", 45 4: "OTHER", 46} 47 48var AliasContext_Kind_value = map[string]int32{ 49 "ANY": 0, 50 "FIXED": 1, 51 "MOVABLE": 2, 52 "OTHER": 4, 53} 54 55func (x AliasContext_Kind) String() string { 56 return proto.EnumName(AliasContext_Kind_name, int32(x)) 57} 58 59func (AliasContext_Kind) EnumDescriptor() ([]byte, []int) { 60 return fileDescriptor_abda43b4d0b03743, []int{2, 0} 61} 62 63// A SourceContext is a reference to a tree of files. A SourceContext together 64// with a path point to a unique revision of a single file or directory. 65type SourceContext struct { 66 // A SourceContext can refer any one of the following types of repositories. 67 // 68 // Types that are valid to be assigned to Context: 69 // *SourceContext_CloudRepo 70 // *SourceContext_CloudWorkspace 71 // *SourceContext_Gerrit 72 // *SourceContext_Git 73 Context isSourceContext_Context `protobuf_oneof:"context"` 74 XXX_NoUnkeyedLiteral struct{} `json:"-"` 75 XXX_unrecognized []byte `json:"-"` 76 XXX_sizecache int32 `json:"-"` 77} 78 79func (m *SourceContext) Reset() { *m = SourceContext{} } 80func (m *SourceContext) String() string { return proto.CompactTextString(m) } 81func (*SourceContext) ProtoMessage() {} 82func (*SourceContext) Descriptor() ([]byte, []int) { 83 return fileDescriptor_abda43b4d0b03743, []int{0} 84} 85 86func (m *SourceContext) XXX_Unmarshal(b []byte) error { 87 return xxx_messageInfo_SourceContext.Unmarshal(m, b) 88} 89func (m *SourceContext) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 90 return xxx_messageInfo_SourceContext.Marshal(b, m, deterministic) 91} 92func (m *SourceContext) XXX_Merge(src proto.Message) { 93 xxx_messageInfo_SourceContext.Merge(m, src) 94} 95func (m *SourceContext) XXX_Size() int { 96 return xxx_messageInfo_SourceContext.Size(m) 97} 98func (m *SourceContext) XXX_DiscardUnknown() { 99 xxx_messageInfo_SourceContext.DiscardUnknown(m) 100} 101 102var xxx_messageInfo_SourceContext proto.InternalMessageInfo 103 104type isSourceContext_Context interface { 105 isSourceContext_Context() 106} 107 108type SourceContext_CloudRepo struct { 109 CloudRepo *CloudRepoSourceContext `protobuf:"bytes,1,opt,name=cloud_repo,json=cloudRepo,proto3,oneof"` 110} 111 112type SourceContext_CloudWorkspace struct { 113 CloudWorkspace *CloudWorkspaceSourceContext `protobuf:"bytes,2,opt,name=cloud_workspace,json=cloudWorkspace,proto3,oneof"` 114} 115 116type SourceContext_Gerrit struct { 117 Gerrit *GerritSourceContext `protobuf:"bytes,3,opt,name=gerrit,proto3,oneof"` 118} 119 120type SourceContext_Git struct { 121 Git *GitSourceContext `protobuf:"bytes,6,opt,name=git,proto3,oneof"` 122} 123 124func (*SourceContext_CloudRepo) isSourceContext_Context() {} 125 126func (*SourceContext_CloudWorkspace) isSourceContext_Context() {} 127 128func (*SourceContext_Gerrit) isSourceContext_Context() {} 129 130func (*SourceContext_Git) isSourceContext_Context() {} 131 132func (m *SourceContext) GetContext() isSourceContext_Context { 133 if m != nil { 134 return m.Context 135 } 136 return nil 137} 138 139func (m *SourceContext) GetCloudRepo() *CloudRepoSourceContext { 140 if x, ok := m.GetContext().(*SourceContext_CloudRepo); ok { 141 return x.CloudRepo 142 } 143 return nil 144} 145 146func (m *SourceContext) GetCloudWorkspace() *CloudWorkspaceSourceContext { 147 if x, ok := m.GetContext().(*SourceContext_CloudWorkspace); ok { 148 return x.CloudWorkspace 149 } 150 return nil 151} 152 153func (m *SourceContext) GetGerrit() *GerritSourceContext { 154 if x, ok := m.GetContext().(*SourceContext_Gerrit); ok { 155 return x.Gerrit 156 } 157 return nil 158} 159 160func (m *SourceContext) GetGit() *GitSourceContext { 161 if x, ok := m.GetContext().(*SourceContext_Git); ok { 162 return x.Git 163 } 164 return nil 165} 166 167// XXX_OneofWrappers is for the internal use of the proto package. 168func (*SourceContext) XXX_OneofWrappers() []interface{} { 169 return []interface{}{ 170 (*SourceContext_CloudRepo)(nil), 171 (*SourceContext_CloudWorkspace)(nil), 172 (*SourceContext_Gerrit)(nil), 173 (*SourceContext_Git)(nil), 174 } 175} 176 177// An ExtendedSourceContext is a SourceContext combined with additional 178// details describing the context. 179type ExtendedSourceContext struct { 180 // Any source context. 181 Context *SourceContext `protobuf:"bytes,1,opt,name=context,proto3" json:"context,omitempty"` 182 // Labels with user defined metadata. 183 Labels map[string]string `protobuf:"bytes,2,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` 184 XXX_NoUnkeyedLiteral struct{} `json:"-"` 185 XXX_unrecognized []byte `json:"-"` 186 XXX_sizecache int32 `json:"-"` 187} 188 189func (m *ExtendedSourceContext) Reset() { *m = ExtendedSourceContext{} } 190func (m *ExtendedSourceContext) String() string { return proto.CompactTextString(m) } 191func (*ExtendedSourceContext) ProtoMessage() {} 192func (*ExtendedSourceContext) Descriptor() ([]byte, []int) { 193 return fileDescriptor_abda43b4d0b03743, []int{1} 194} 195 196func (m *ExtendedSourceContext) XXX_Unmarshal(b []byte) error { 197 return xxx_messageInfo_ExtendedSourceContext.Unmarshal(m, b) 198} 199func (m *ExtendedSourceContext) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 200 return xxx_messageInfo_ExtendedSourceContext.Marshal(b, m, deterministic) 201} 202func (m *ExtendedSourceContext) XXX_Merge(src proto.Message) { 203 xxx_messageInfo_ExtendedSourceContext.Merge(m, src) 204} 205func (m *ExtendedSourceContext) XXX_Size() int { 206 return xxx_messageInfo_ExtendedSourceContext.Size(m) 207} 208func (m *ExtendedSourceContext) XXX_DiscardUnknown() { 209 xxx_messageInfo_ExtendedSourceContext.DiscardUnknown(m) 210} 211 212var xxx_messageInfo_ExtendedSourceContext proto.InternalMessageInfo 213 214func (m *ExtendedSourceContext) GetContext() *SourceContext { 215 if m != nil { 216 return m.Context 217 } 218 return nil 219} 220 221func (m *ExtendedSourceContext) GetLabels() map[string]string { 222 if m != nil { 223 return m.Labels 224 } 225 return nil 226} 227 228// An alias to a repo revision. 229type AliasContext struct { 230 // The alias kind. 231 Kind AliasContext_Kind `protobuf:"varint,1,opt,name=kind,proto3,enum=google.devtools.source.v1.AliasContext_Kind" json:"kind,omitempty"` 232 // The alias name. 233 Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` 234 XXX_NoUnkeyedLiteral struct{} `json:"-"` 235 XXX_unrecognized []byte `json:"-"` 236 XXX_sizecache int32 `json:"-"` 237} 238 239func (m *AliasContext) Reset() { *m = AliasContext{} } 240func (m *AliasContext) String() string { return proto.CompactTextString(m) } 241func (*AliasContext) ProtoMessage() {} 242func (*AliasContext) Descriptor() ([]byte, []int) { 243 return fileDescriptor_abda43b4d0b03743, []int{2} 244} 245 246func (m *AliasContext) XXX_Unmarshal(b []byte) error { 247 return xxx_messageInfo_AliasContext.Unmarshal(m, b) 248} 249func (m *AliasContext) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 250 return xxx_messageInfo_AliasContext.Marshal(b, m, deterministic) 251} 252func (m *AliasContext) XXX_Merge(src proto.Message) { 253 xxx_messageInfo_AliasContext.Merge(m, src) 254} 255func (m *AliasContext) XXX_Size() int { 256 return xxx_messageInfo_AliasContext.Size(m) 257} 258func (m *AliasContext) XXX_DiscardUnknown() { 259 xxx_messageInfo_AliasContext.DiscardUnknown(m) 260} 261 262var xxx_messageInfo_AliasContext proto.InternalMessageInfo 263 264func (m *AliasContext) GetKind() AliasContext_Kind { 265 if m != nil { 266 return m.Kind 267 } 268 return AliasContext_ANY 269} 270 271func (m *AliasContext) GetName() string { 272 if m != nil { 273 return m.Name 274 } 275 return "" 276} 277 278// A CloudRepoSourceContext denotes a particular revision in a cloud 279// repo (a repo hosted by the Google Cloud Platform). 280type CloudRepoSourceContext struct { 281 // The ID of the repo. 282 RepoId *RepoId `protobuf:"bytes,1,opt,name=repo_id,json=repoId,proto3" json:"repo_id,omitempty"` 283 // A revision in a cloud repository can be identified by either its revision 284 // ID or its Alias. 285 // 286 // Types that are valid to be assigned to Revision: 287 // *CloudRepoSourceContext_RevisionId 288 // *CloudRepoSourceContext_AliasName 289 // *CloudRepoSourceContext_AliasContext 290 Revision isCloudRepoSourceContext_Revision `protobuf_oneof:"revision"` 291 XXX_NoUnkeyedLiteral struct{} `json:"-"` 292 XXX_unrecognized []byte `json:"-"` 293 XXX_sizecache int32 `json:"-"` 294} 295 296func (m *CloudRepoSourceContext) Reset() { *m = CloudRepoSourceContext{} } 297func (m *CloudRepoSourceContext) String() string { return proto.CompactTextString(m) } 298func (*CloudRepoSourceContext) ProtoMessage() {} 299func (*CloudRepoSourceContext) Descriptor() ([]byte, []int) { 300 return fileDescriptor_abda43b4d0b03743, []int{3} 301} 302 303func (m *CloudRepoSourceContext) XXX_Unmarshal(b []byte) error { 304 return xxx_messageInfo_CloudRepoSourceContext.Unmarshal(m, b) 305} 306func (m *CloudRepoSourceContext) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 307 return xxx_messageInfo_CloudRepoSourceContext.Marshal(b, m, deterministic) 308} 309func (m *CloudRepoSourceContext) XXX_Merge(src proto.Message) { 310 xxx_messageInfo_CloudRepoSourceContext.Merge(m, src) 311} 312func (m *CloudRepoSourceContext) XXX_Size() int { 313 return xxx_messageInfo_CloudRepoSourceContext.Size(m) 314} 315func (m *CloudRepoSourceContext) XXX_DiscardUnknown() { 316 xxx_messageInfo_CloudRepoSourceContext.DiscardUnknown(m) 317} 318 319var xxx_messageInfo_CloudRepoSourceContext proto.InternalMessageInfo 320 321func (m *CloudRepoSourceContext) GetRepoId() *RepoId { 322 if m != nil { 323 return m.RepoId 324 } 325 return nil 326} 327 328type isCloudRepoSourceContext_Revision interface { 329 isCloudRepoSourceContext_Revision() 330} 331 332type CloudRepoSourceContext_RevisionId struct { 333 RevisionId string `protobuf:"bytes,2,opt,name=revision_id,json=revisionId,proto3,oneof"` 334} 335 336type CloudRepoSourceContext_AliasName struct { 337 AliasName string `protobuf:"bytes,3,opt,name=alias_name,json=aliasName,proto3,oneof"` 338} 339 340type CloudRepoSourceContext_AliasContext struct { 341 AliasContext *AliasContext `protobuf:"bytes,4,opt,name=alias_context,json=aliasContext,proto3,oneof"` 342} 343 344func (*CloudRepoSourceContext_RevisionId) isCloudRepoSourceContext_Revision() {} 345 346func (*CloudRepoSourceContext_AliasName) isCloudRepoSourceContext_Revision() {} 347 348func (*CloudRepoSourceContext_AliasContext) isCloudRepoSourceContext_Revision() {} 349 350func (m *CloudRepoSourceContext) GetRevision() isCloudRepoSourceContext_Revision { 351 if m != nil { 352 return m.Revision 353 } 354 return nil 355} 356 357func (m *CloudRepoSourceContext) GetRevisionId() string { 358 if x, ok := m.GetRevision().(*CloudRepoSourceContext_RevisionId); ok { 359 return x.RevisionId 360 } 361 return "" 362} 363 364// Deprecated: Do not use. 365func (m *CloudRepoSourceContext) GetAliasName() string { 366 if x, ok := m.GetRevision().(*CloudRepoSourceContext_AliasName); ok { 367 return x.AliasName 368 } 369 return "" 370} 371 372func (m *CloudRepoSourceContext) GetAliasContext() *AliasContext { 373 if x, ok := m.GetRevision().(*CloudRepoSourceContext_AliasContext); ok { 374 return x.AliasContext 375 } 376 return nil 377} 378 379// XXX_OneofWrappers is for the internal use of the proto package. 380func (*CloudRepoSourceContext) XXX_OneofWrappers() []interface{} { 381 return []interface{}{ 382 (*CloudRepoSourceContext_RevisionId)(nil), 383 (*CloudRepoSourceContext_AliasName)(nil), 384 (*CloudRepoSourceContext_AliasContext)(nil), 385 } 386} 387 388// A CloudWorkspaceSourceContext denotes a workspace at a particular snapshot. 389type CloudWorkspaceSourceContext struct { 390 // The ID of the workspace. 391 WorkspaceId *CloudWorkspaceId `protobuf:"bytes,1,opt,name=workspace_id,json=workspaceId,proto3" json:"workspace_id,omitempty"` 392 // The ID of the snapshot. 393 // An empty snapshot_id refers to the most recent snapshot. 394 SnapshotId string `protobuf:"bytes,2,opt,name=snapshot_id,json=snapshotId,proto3" json:"snapshot_id,omitempty"` 395 XXX_NoUnkeyedLiteral struct{} `json:"-"` 396 XXX_unrecognized []byte `json:"-"` 397 XXX_sizecache int32 `json:"-"` 398} 399 400func (m *CloudWorkspaceSourceContext) Reset() { *m = CloudWorkspaceSourceContext{} } 401func (m *CloudWorkspaceSourceContext) String() string { return proto.CompactTextString(m) } 402func (*CloudWorkspaceSourceContext) ProtoMessage() {} 403func (*CloudWorkspaceSourceContext) Descriptor() ([]byte, []int) { 404 return fileDescriptor_abda43b4d0b03743, []int{4} 405} 406 407func (m *CloudWorkspaceSourceContext) XXX_Unmarshal(b []byte) error { 408 return xxx_messageInfo_CloudWorkspaceSourceContext.Unmarshal(m, b) 409} 410func (m *CloudWorkspaceSourceContext) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 411 return xxx_messageInfo_CloudWorkspaceSourceContext.Marshal(b, m, deterministic) 412} 413func (m *CloudWorkspaceSourceContext) XXX_Merge(src proto.Message) { 414 xxx_messageInfo_CloudWorkspaceSourceContext.Merge(m, src) 415} 416func (m *CloudWorkspaceSourceContext) XXX_Size() int { 417 return xxx_messageInfo_CloudWorkspaceSourceContext.Size(m) 418} 419func (m *CloudWorkspaceSourceContext) XXX_DiscardUnknown() { 420 xxx_messageInfo_CloudWorkspaceSourceContext.DiscardUnknown(m) 421} 422 423var xxx_messageInfo_CloudWorkspaceSourceContext proto.InternalMessageInfo 424 425func (m *CloudWorkspaceSourceContext) GetWorkspaceId() *CloudWorkspaceId { 426 if m != nil { 427 return m.WorkspaceId 428 } 429 return nil 430} 431 432func (m *CloudWorkspaceSourceContext) GetSnapshotId() string { 433 if m != nil { 434 return m.SnapshotId 435 } 436 return "" 437} 438 439// A SourceContext referring to a Gerrit project. 440type GerritSourceContext struct { 441 // The URI of a running Gerrit instance. 442 HostUri string `protobuf:"bytes,1,opt,name=host_uri,json=hostUri,proto3" json:"host_uri,omitempty"` 443 // The full project name within the host. Projects may be nested, so 444 // "project/subproject" is a valid project name. 445 // The "repo name" is hostURI/project. 446 GerritProject string `protobuf:"bytes,2,opt,name=gerrit_project,json=gerritProject,proto3" json:"gerrit_project,omitempty"` 447 // A revision in a Gerrit project can be identified by either its revision ID 448 // or its alias. 449 // 450 // Types that are valid to be assigned to Revision: 451 // *GerritSourceContext_RevisionId 452 // *GerritSourceContext_AliasName 453 // *GerritSourceContext_AliasContext 454 Revision isGerritSourceContext_Revision `protobuf_oneof:"revision"` 455 XXX_NoUnkeyedLiteral struct{} `json:"-"` 456 XXX_unrecognized []byte `json:"-"` 457 XXX_sizecache int32 `json:"-"` 458} 459 460func (m *GerritSourceContext) Reset() { *m = GerritSourceContext{} } 461func (m *GerritSourceContext) String() string { return proto.CompactTextString(m) } 462func (*GerritSourceContext) ProtoMessage() {} 463func (*GerritSourceContext) Descriptor() ([]byte, []int) { 464 return fileDescriptor_abda43b4d0b03743, []int{5} 465} 466 467func (m *GerritSourceContext) XXX_Unmarshal(b []byte) error { 468 return xxx_messageInfo_GerritSourceContext.Unmarshal(m, b) 469} 470func (m *GerritSourceContext) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 471 return xxx_messageInfo_GerritSourceContext.Marshal(b, m, deterministic) 472} 473func (m *GerritSourceContext) XXX_Merge(src proto.Message) { 474 xxx_messageInfo_GerritSourceContext.Merge(m, src) 475} 476func (m *GerritSourceContext) XXX_Size() int { 477 return xxx_messageInfo_GerritSourceContext.Size(m) 478} 479func (m *GerritSourceContext) XXX_DiscardUnknown() { 480 xxx_messageInfo_GerritSourceContext.DiscardUnknown(m) 481} 482 483var xxx_messageInfo_GerritSourceContext proto.InternalMessageInfo 484 485func (m *GerritSourceContext) GetHostUri() string { 486 if m != nil { 487 return m.HostUri 488 } 489 return "" 490} 491 492func (m *GerritSourceContext) GetGerritProject() string { 493 if m != nil { 494 return m.GerritProject 495 } 496 return "" 497} 498 499type isGerritSourceContext_Revision interface { 500 isGerritSourceContext_Revision() 501} 502 503type GerritSourceContext_RevisionId struct { 504 RevisionId string `protobuf:"bytes,3,opt,name=revision_id,json=revisionId,proto3,oneof"` 505} 506 507type GerritSourceContext_AliasName struct { 508 AliasName string `protobuf:"bytes,4,opt,name=alias_name,json=aliasName,proto3,oneof"` 509} 510 511type GerritSourceContext_AliasContext struct { 512 AliasContext *AliasContext `protobuf:"bytes,5,opt,name=alias_context,json=aliasContext,proto3,oneof"` 513} 514 515func (*GerritSourceContext_RevisionId) isGerritSourceContext_Revision() {} 516 517func (*GerritSourceContext_AliasName) isGerritSourceContext_Revision() {} 518 519func (*GerritSourceContext_AliasContext) isGerritSourceContext_Revision() {} 520 521func (m *GerritSourceContext) GetRevision() isGerritSourceContext_Revision { 522 if m != nil { 523 return m.Revision 524 } 525 return nil 526} 527 528func (m *GerritSourceContext) GetRevisionId() string { 529 if x, ok := m.GetRevision().(*GerritSourceContext_RevisionId); ok { 530 return x.RevisionId 531 } 532 return "" 533} 534 535// Deprecated: Do not use. 536func (m *GerritSourceContext) GetAliasName() string { 537 if x, ok := m.GetRevision().(*GerritSourceContext_AliasName); ok { 538 return x.AliasName 539 } 540 return "" 541} 542 543func (m *GerritSourceContext) GetAliasContext() *AliasContext { 544 if x, ok := m.GetRevision().(*GerritSourceContext_AliasContext); ok { 545 return x.AliasContext 546 } 547 return nil 548} 549 550// XXX_OneofWrappers is for the internal use of the proto package. 551func (*GerritSourceContext) XXX_OneofWrappers() []interface{} { 552 return []interface{}{ 553 (*GerritSourceContext_RevisionId)(nil), 554 (*GerritSourceContext_AliasName)(nil), 555 (*GerritSourceContext_AliasContext)(nil), 556 } 557} 558 559// A GitSourceContext denotes a particular revision in a third party Git 560// repository (e.g. GitHub). 561type GitSourceContext struct { 562 // Git repository URL. 563 Url string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"` 564 // Git commit hash. 565 // required. 566 RevisionId string `protobuf:"bytes,2,opt,name=revision_id,json=revisionId,proto3" json:"revision_id,omitempty"` 567 XXX_NoUnkeyedLiteral struct{} `json:"-"` 568 XXX_unrecognized []byte `json:"-"` 569 XXX_sizecache int32 `json:"-"` 570} 571 572func (m *GitSourceContext) Reset() { *m = GitSourceContext{} } 573func (m *GitSourceContext) String() string { return proto.CompactTextString(m) } 574func (*GitSourceContext) ProtoMessage() {} 575func (*GitSourceContext) Descriptor() ([]byte, []int) { 576 return fileDescriptor_abda43b4d0b03743, []int{6} 577} 578 579func (m *GitSourceContext) XXX_Unmarshal(b []byte) error { 580 return xxx_messageInfo_GitSourceContext.Unmarshal(m, b) 581} 582func (m *GitSourceContext) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 583 return xxx_messageInfo_GitSourceContext.Marshal(b, m, deterministic) 584} 585func (m *GitSourceContext) XXX_Merge(src proto.Message) { 586 xxx_messageInfo_GitSourceContext.Merge(m, src) 587} 588func (m *GitSourceContext) XXX_Size() int { 589 return xxx_messageInfo_GitSourceContext.Size(m) 590} 591func (m *GitSourceContext) XXX_DiscardUnknown() { 592 xxx_messageInfo_GitSourceContext.DiscardUnknown(m) 593} 594 595var xxx_messageInfo_GitSourceContext proto.InternalMessageInfo 596 597func (m *GitSourceContext) GetUrl() string { 598 if m != nil { 599 return m.Url 600 } 601 return "" 602} 603 604func (m *GitSourceContext) GetRevisionId() string { 605 if m != nil { 606 return m.RevisionId 607 } 608 return "" 609} 610 611// A unique identifier for a cloud repo. 612type RepoId struct { 613 // A cloud repository can be identified by either its project ID and 614 // repository name combination, or its globally unique identifier. 615 // 616 // Types that are valid to be assigned to Id: 617 // *RepoId_ProjectRepoId 618 // *RepoId_Uid 619 Id isRepoId_Id `protobuf_oneof:"id"` 620 XXX_NoUnkeyedLiteral struct{} `json:"-"` 621 XXX_unrecognized []byte `json:"-"` 622 XXX_sizecache int32 `json:"-"` 623} 624 625func (m *RepoId) Reset() { *m = RepoId{} } 626func (m *RepoId) String() string { return proto.CompactTextString(m) } 627func (*RepoId) ProtoMessage() {} 628func (*RepoId) Descriptor() ([]byte, []int) { 629 return fileDescriptor_abda43b4d0b03743, []int{7} 630} 631 632func (m *RepoId) XXX_Unmarshal(b []byte) error { 633 return xxx_messageInfo_RepoId.Unmarshal(m, b) 634} 635func (m *RepoId) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 636 return xxx_messageInfo_RepoId.Marshal(b, m, deterministic) 637} 638func (m *RepoId) XXX_Merge(src proto.Message) { 639 xxx_messageInfo_RepoId.Merge(m, src) 640} 641func (m *RepoId) XXX_Size() int { 642 return xxx_messageInfo_RepoId.Size(m) 643} 644func (m *RepoId) XXX_DiscardUnknown() { 645 xxx_messageInfo_RepoId.DiscardUnknown(m) 646} 647 648var xxx_messageInfo_RepoId proto.InternalMessageInfo 649 650type isRepoId_Id interface { 651 isRepoId_Id() 652} 653 654type RepoId_ProjectRepoId struct { 655 ProjectRepoId *ProjectRepoId `protobuf:"bytes,1,opt,name=project_repo_id,json=projectRepoId,proto3,oneof"` 656} 657 658type RepoId_Uid struct { 659 Uid string `protobuf:"bytes,2,opt,name=uid,proto3,oneof"` 660} 661 662func (*RepoId_ProjectRepoId) isRepoId_Id() {} 663 664func (*RepoId_Uid) isRepoId_Id() {} 665 666func (m *RepoId) GetId() isRepoId_Id { 667 if m != nil { 668 return m.Id 669 } 670 return nil 671} 672 673func (m *RepoId) GetProjectRepoId() *ProjectRepoId { 674 if x, ok := m.GetId().(*RepoId_ProjectRepoId); ok { 675 return x.ProjectRepoId 676 } 677 return nil 678} 679 680func (m *RepoId) GetUid() string { 681 if x, ok := m.GetId().(*RepoId_Uid); ok { 682 return x.Uid 683 } 684 return "" 685} 686 687// XXX_OneofWrappers is for the internal use of the proto package. 688func (*RepoId) XXX_OneofWrappers() []interface{} { 689 return []interface{}{ 690 (*RepoId_ProjectRepoId)(nil), 691 (*RepoId_Uid)(nil), 692 } 693} 694 695// Selects a repo using a Google Cloud Platform project ID 696// (e.g. winged-cargo-31) and a repo name within that project. 697type ProjectRepoId struct { 698 // The ID of the project. 699 ProjectId string `protobuf:"bytes,1,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"` 700 // The name of the repo. Leave empty for the default repo. 701 RepoName string `protobuf:"bytes,2,opt,name=repo_name,json=repoName,proto3" json:"repo_name,omitempty"` 702 XXX_NoUnkeyedLiteral struct{} `json:"-"` 703 XXX_unrecognized []byte `json:"-"` 704 XXX_sizecache int32 `json:"-"` 705} 706 707func (m *ProjectRepoId) Reset() { *m = ProjectRepoId{} } 708func (m *ProjectRepoId) String() string { return proto.CompactTextString(m) } 709func (*ProjectRepoId) ProtoMessage() {} 710func (*ProjectRepoId) Descriptor() ([]byte, []int) { 711 return fileDescriptor_abda43b4d0b03743, []int{8} 712} 713 714func (m *ProjectRepoId) XXX_Unmarshal(b []byte) error { 715 return xxx_messageInfo_ProjectRepoId.Unmarshal(m, b) 716} 717func (m *ProjectRepoId) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 718 return xxx_messageInfo_ProjectRepoId.Marshal(b, m, deterministic) 719} 720func (m *ProjectRepoId) XXX_Merge(src proto.Message) { 721 xxx_messageInfo_ProjectRepoId.Merge(m, src) 722} 723func (m *ProjectRepoId) XXX_Size() int { 724 return xxx_messageInfo_ProjectRepoId.Size(m) 725} 726func (m *ProjectRepoId) XXX_DiscardUnknown() { 727 xxx_messageInfo_ProjectRepoId.DiscardUnknown(m) 728} 729 730var xxx_messageInfo_ProjectRepoId proto.InternalMessageInfo 731 732func (m *ProjectRepoId) GetProjectId() string { 733 if m != nil { 734 return m.ProjectId 735 } 736 return "" 737} 738 739func (m *ProjectRepoId) GetRepoName() string { 740 if m != nil { 741 return m.RepoName 742 } 743 return "" 744} 745 746// A CloudWorkspaceId is a unique identifier for a cloud workspace. 747// A cloud workspace is a place associated with a repo where modified files 748// can be stored before they are committed. 749type CloudWorkspaceId struct { 750 // The ID of the repo containing the workspace. 751 RepoId *RepoId `protobuf:"bytes,1,opt,name=repo_id,json=repoId,proto3" json:"repo_id,omitempty"` 752 // The unique name of the workspace within the repo. This is the name 753 // chosen by the client in the Source API's CreateWorkspace method. 754 Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` 755 XXX_NoUnkeyedLiteral struct{} `json:"-"` 756 XXX_unrecognized []byte `json:"-"` 757 XXX_sizecache int32 `json:"-"` 758} 759 760func (m *CloudWorkspaceId) Reset() { *m = CloudWorkspaceId{} } 761func (m *CloudWorkspaceId) String() string { return proto.CompactTextString(m) } 762func (*CloudWorkspaceId) ProtoMessage() {} 763func (*CloudWorkspaceId) Descriptor() ([]byte, []int) { 764 return fileDescriptor_abda43b4d0b03743, []int{9} 765} 766 767func (m *CloudWorkspaceId) XXX_Unmarshal(b []byte) error { 768 return xxx_messageInfo_CloudWorkspaceId.Unmarshal(m, b) 769} 770func (m *CloudWorkspaceId) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 771 return xxx_messageInfo_CloudWorkspaceId.Marshal(b, m, deterministic) 772} 773func (m *CloudWorkspaceId) XXX_Merge(src proto.Message) { 774 xxx_messageInfo_CloudWorkspaceId.Merge(m, src) 775} 776func (m *CloudWorkspaceId) XXX_Size() int { 777 return xxx_messageInfo_CloudWorkspaceId.Size(m) 778} 779func (m *CloudWorkspaceId) XXX_DiscardUnknown() { 780 xxx_messageInfo_CloudWorkspaceId.DiscardUnknown(m) 781} 782 783var xxx_messageInfo_CloudWorkspaceId proto.InternalMessageInfo 784 785func (m *CloudWorkspaceId) GetRepoId() *RepoId { 786 if m != nil { 787 return m.RepoId 788 } 789 return nil 790} 791 792func (m *CloudWorkspaceId) GetName() string { 793 if m != nil { 794 return m.Name 795 } 796 return "" 797} 798 799func init() { 800 proto.RegisterEnum("google.devtools.source.v1.AliasContext_Kind", AliasContext_Kind_name, AliasContext_Kind_value) 801 proto.RegisterType((*SourceContext)(nil), "google.devtools.source.v1.SourceContext") 802 proto.RegisterType((*ExtendedSourceContext)(nil), "google.devtools.source.v1.ExtendedSourceContext") 803 proto.RegisterMapType((map[string]string)(nil), "google.devtools.source.v1.ExtendedSourceContext.LabelsEntry") 804 proto.RegisterType((*AliasContext)(nil), "google.devtools.source.v1.AliasContext") 805 proto.RegisterType((*CloudRepoSourceContext)(nil), "google.devtools.source.v1.CloudRepoSourceContext") 806 proto.RegisterType((*CloudWorkspaceSourceContext)(nil), "google.devtools.source.v1.CloudWorkspaceSourceContext") 807 proto.RegisterType((*GerritSourceContext)(nil), "google.devtools.source.v1.GerritSourceContext") 808 proto.RegisterType((*GitSourceContext)(nil), "google.devtools.source.v1.GitSourceContext") 809 proto.RegisterType((*RepoId)(nil), "google.devtools.source.v1.RepoId") 810 proto.RegisterType((*ProjectRepoId)(nil), "google.devtools.source.v1.ProjectRepoId") 811 proto.RegisterType((*CloudWorkspaceId)(nil), "google.devtools.source.v1.CloudWorkspaceId") 812} 813 814func init() { 815 proto.RegisterFile("google/devtools/source/v1/source_context.proto", fileDescriptor_abda43b4d0b03743) 816} 817 818var fileDescriptor_abda43b4d0b03743 = []byte{ 819 // 809 bytes of a gzipped FileDescriptorProto 820 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x55, 0x5d, 0x4e, 0xdb, 0x4a, 821 0x14, 0x8e, 0x9d, 0x90, 0xe0, 0x13, 0x02, 0xd1, 0xdc, 0x1f, 0x05, 0xb8, 0x08, 0xf0, 0xd5, 0xd5, 822 0x45, 0xa2, 0x72, 0x94, 0x54, 0xaa, 0x5a, 0x5a, 0x89, 0x62, 0x48, 0x49, 0x04, 0x0d, 0x68, 0x4a, 823 0xe9, 0x8f, 0x22, 0x45, 0xc6, 0x1e, 0x19, 0x17, 0xe3, 0xb1, 0x6c, 0x27, 0xc0, 0x26, 0xfa, 0xdc, 824 0x35, 0x74, 0x0f, 0xdd, 0x40, 0xd7, 0xd0, 0x25, 0x74, 0x01, 0x48, 0x7d, 0xa9, 0x66, 0xc6, 0x86, 825 0x24, 0x04, 0x83, 0xd4, 0x3e, 0x79, 0xe6, 0xf8, 0xfb, 0xbe, 0x73, 0xe6, 0xfc, 0xcc, 0x80, 0x66, 826 0x53, 0x6a, 0xbb, 0xa4, 0x6a, 0x91, 0x7e, 0x44, 0xa9, 0x1b, 0x56, 0x43, 0xda, 0x0b, 0x4c, 0x52, 827 0xed, 0xd7, 0xe2, 0x55, 0xd7, 0xa4, 0x5e, 0x44, 0xce, 0x23, 0xcd, 0x0f, 0x68, 0x44, 0xd1, 0xac, 828 0xc0, 0x6b, 0x09, 0x5e, 0x13, 0x28, 0xad, 0x5f, 0x9b, 0xfb, 0x27, 0x96, 0x32, 0x7c, 0xa7, 0x6a, 829 0x78, 0x1e, 0x8d, 0x8c, 0xc8, 0xa1, 0x5e, 0x28, 0x88, 0xea, 0x37, 0x19, 0x4a, 0xaf, 0x38, 0x76, 830 0x53, 0x08, 0x22, 0x0c, 0x60, 0xba, 0xb4, 0x67, 0x75, 0x03, 0xe2, 0xd3, 0x8a, 0xb4, 0x24, 0xad, 831 0x14, 0xeb, 0x35, 0xed, 0x56, 0x7d, 0x6d, 0x93, 0x81, 0x31, 0xf1, 0xe9, 0x90, 0x4c, 0x33, 0x83, 832 0x15, 0x33, 0xf9, 0x83, 0x0c, 0x98, 0x11, 0x9a, 0x67, 0x34, 0x38, 0x09, 0x7d, 0xc3, 0x24, 0x15, 833 0x99, 0x0b, 0x3f, 0xba, 0x4b, 0xf8, 0x4d, 0x42, 0x18, 0x55, 0x9f, 0x36, 0x87, 0x7e, 0xa3, 0x26, 834 0xe4, 0x6d, 0x12, 0x04, 0x4e, 0x54, 0xc9, 0x72, 0x65, 0x2d, 0x45, 0x79, 0x9b, 0x03, 0x47, 0x15, 835 0x63, 0x3e, 0x5a, 0x87, 0xac, 0xed, 0x44, 0x95, 0x3c, 0x97, 0x59, 0x4d, 0x93, 0xb9, 0xa9, 0xc1, 836 0x98, 0xba, 0x02, 0x85, 0xb8, 0x3a, 0xea, 0x77, 0x09, 0xfe, 0x6a, 0x9c, 0x47, 0xc4, 0xb3, 0x88, 837 0x35, 0x9c, 0x66, 0xfd, 0x0a, 0x14, 0xe7, 0x78, 0x25, 0xc5, 0xd3, 0x10, 0x15, 0x27, 0x44, 0x74, 838 0x00, 0x79, 0xd7, 0x38, 0x22, 0x6e, 0x58, 0x91, 0x97, 0xb2, 0x2b, 0xc5, 0xfa, 0xb3, 0x14, 0x89, 839 0xb1, 0x51, 0x68, 0xbb, 0x9c, 0xde, 0xf0, 0xa2, 0xe0, 0x02, 0xc7, 0x5a, 0x73, 0x4f, 0xa0, 0x38, 840 0x60, 0x46, 0x65, 0xc8, 0x9e, 0x90, 0x0b, 0x1e, 0xa4, 0x82, 0xd9, 0x12, 0xfd, 0x09, 0x13, 0x7d, 841 0xc3, 0xed, 0x89, 0x1a, 0x2a, 0x58, 0x6c, 0xd6, 0xe4, 0xc7, 0x92, 0xfa, 0x49, 0x82, 0xa9, 0x0d, 842 0xd7, 0x31, 0xc2, 0xe4, 0x94, 0xcf, 0x21, 0x77, 0xe2, 0x78, 0x16, 0x67, 0x4f, 0xd7, 0x1f, 0xa4, 843 0xc4, 0x37, 0x48, 0xd3, 0x76, 0x1c, 0xcf, 0xc2, 0x9c, 0x89, 0x10, 0xe4, 0x3c, 0xe3, 0x34, 0xf1, 844 0xc5, 0xd7, 0x6a, 0x1d, 0x72, 0x0c, 0x81, 0x0a, 0x90, 0xdd, 0x68, 0xbf, 0x2b, 0x67, 0x90, 0x02, 845 0x13, 0x2f, 0x5a, 0x6f, 0x1b, 0x5b, 0x65, 0x09, 0x15, 0xa1, 0xf0, 0x72, 0xef, 0x70, 0x43, 0xdf, 846 0x6d, 0x94, 0x65, 0x66, 0xdf, 0x3b, 0x68, 0x36, 0x70, 0x39, 0xa7, 0x5e, 0x4a, 0xf0, 0xf7, 0xf8, 847 0x56, 0x45, 0x6b, 0x50, 0x60, 0xbd, 0xde, 0x75, 0xac, 0xb8, 0x14, 0xcb, 0x29, 0x71, 0x32, 0x7a, 848 0xcb, 0xc2, 0xf9, 0x80, 0x7f, 0xd1, 0x32, 0x14, 0x03, 0xd2, 0x77, 0x42, 0x87, 0x7a, 0x8c, 0xcf, 849 0xa3, 0x6c, 0x66, 0x30, 0x24, 0xc6, 0x96, 0x85, 0xfe, 0x05, 0x30, 0xd8, 0xe1, 0xba, 0xfc, 0x1c, 850 0xac, 0x3b, 0x15, 0x5d, 0xae, 0x48, 0x6c, 0x42, 0xb8, 0xbd, 0x6d, 0x9c, 0x12, 0xd4, 0x86, 0x92, 851 0x00, 0x25, 0x4d, 0x91, 0xe3, 0x91, 0xfc, 0x7f, 0xcf, 0x8c, 0x35, 0x33, 0x78, 0xca, 0x18, 0xd8, 852 0xeb, 0x00, 0x93, 0x49, 0x08, 0xea, 0x47, 0x09, 0xe6, 0x53, 0x86, 0x09, 0xb5, 0x61, 0xea, 0x6a, 853 0x2e, 0xaf, 0x93, 0xb0, 0x7a, 0xef, 0xd1, 0x6c, 0x59, 0xb8, 0x78, 0x76, 0xbd, 0x41, 0x8b, 0x50, 854 0x0c, 0x3d, 0xc3, 0x0f, 0x8f, 0x69, 0x74, 0x95, 0x13, 0x0c, 0x89, 0xa9, 0x65, 0xa9, 0x3f, 0x24, 855 0xf8, 0x63, 0xcc, 0x0c, 0xa2, 0x59, 0x98, 0x3c, 0xa6, 0x61, 0xd4, 0xed, 0x05, 0x4e, 0xdc, 0x6f, 856 0x05, 0xb6, 0x7f, 0x1d, 0x38, 0xe8, 0x3f, 0x98, 0x16, 0xe3, 0xd9, 0xf5, 0x03, 0xfa, 0x81, 0x98, 857 0x51, 0x2c, 0x5b, 0x12, 0xd6, 0x7d, 0x61, 0x1c, 0x2d, 0x47, 0xf6, 0xce, 0x72, 0xe4, 0xee, 0x59, 858 0x8e, 0x89, 0xdf, 0x57, 0x8e, 0x06, 0x94, 0x47, 0x6f, 0x0e, 0x36, 0x64, 0xbd, 0xc0, 0x4d, 0x86, 859 0xac, 0x17, 0xb8, 0x2c, 0x89, 0x37, 0x1a, 0x6b, 0xf0, 0x1c, 0x6a, 0x1f, 0xf2, 0xa2, 0x17, 0x11, 860 0x86, 0x99, 0x38, 0x29, 0xdd, 0xe1, 0x3e, 0x4e, 0xbb, 0x52, 0xe2, 0x8c, 0x09, 0x89, 0x66, 0x06, 861 0x97, 0xfc, 0x41, 0x03, 0x42, 0x90, 0xed, 0x0d, 0xf4, 0x33, 0xdb, 0xe8, 0x39, 0x90, 0x1d, 0x4b, 862 0xdd, 0x81, 0xd2, 0x10, 0x17, 0x2d, 0x00, 0x24, 0xee, 0x63, 0xcf, 0x0a, 0x56, 0x62, 0x4b, 0xcb, 863 0x42, 0xf3, 0xa0, 0xf0, 0xa8, 0x06, 0xa6, 0x78, 0x92, 0x19, 0x58, 0x9e, 0xd5, 0x23, 0x28, 0x8f, 864 0xf6, 0xd2, 0x2f, 0x8d, 0xe3, 0x98, 0xdb, 0x42, 0xff, 0x22, 0xc1, 0x82, 0x49, 0x4f, 0x6f, 0x17, 865 0xd1, 0xd1, 0x50, 0x31, 0xf6, 0xd9, 0xc3, 0xb8, 0x2f, 0xbd, 0x5f, 0x8f, 0x09, 0x36, 0x75, 0x0d, 866 0xcf, 0xd6, 0x68, 0x60, 0x57, 0x6d, 0xe2, 0xf1, 0x67, 0xb3, 0x2a, 0x7e, 0x19, 0xbe, 0x13, 0x8e, 867 0x79, 0xa2, 0x9f, 0x8a, 0xd5, 0xa5, 0x24, 0x7d, 0x96, 0x17, 0xb7, 0x85, 0x08, 0x3f, 0xa5, 0xb6, 868 0x45, 0xfa, 0x07, 0xdc, 0xb7, 0x70, 0xa8, 0x1d, 0xd6, 0xbe, 0x26, 0x88, 0x0e, 0x47, 0x74, 0x12, 869 0x44, 0x47, 0x20, 0x3a, 0x87, 0xb5, 0xa3, 0x3c, 0x77, 0xf9, 0xf0, 0x67, 0x00, 0x00, 0x00, 0xff, 870 0xff, 0x98, 0x86, 0xf5, 0x6f, 0x14, 0x08, 0x00, 0x00, 871} 872