1// Copyright 2018 The Grafeas Authors. All rights reserved. 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.26.0 18// protoc v3.12.2 19// source: google/devtools/containeranalysis/v1beta1/source/source.proto 20 21package source 22 23import ( 24 reflect "reflect" 25 sync "sync" 26 27 protoreflect "google.golang.org/protobuf/reflect/protoreflect" 28 protoimpl "google.golang.org/protobuf/runtime/protoimpl" 29) 30 31const ( 32 // Verify that this generated code is sufficiently up-to-date. 33 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) 34 // Verify that runtime/protoimpl is sufficiently up-to-date. 35 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) 36) 37 38// The type of an alias. 39type AliasContext_Kind int32 40 41const ( 42 // Unknown. 43 AliasContext_KIND_UNSPECIFIED AliasContext_Kind = 0 44 // Git tag. 45 AliasContext_FIXED AliasContext_Kind = 1 46 // Git branch. 47 AliasContext_MOVABLE AliasContext_Kind = 2 48 // Used to specify non-standard aliases. For example, if a Git repo has a 49 // ref named "refs/foo/bar". 50 AliasContext_OTHER AliasContext_Kind = 4 51) 52 53// Enum value maps for AliasContext_Kind. 54var ( 55 AliasContext_Kind_name = map[int32]string{ 56 0: "KIND_UNSPECIFIED", 57 1: "FIXED", 58 2: "MOVABLE", 59 4: "OTHER", 60 } 61 AliasContext_Kind_value = map[string]int32{ 62 "KIND_UNSPECIFIED": 0, 63 "FIXED": 1, 64 "MOVABLE": 2, 65 "OTHER": 4, 66 } 67) 68 69func (x AliasContext_Kind) Enum() *AliasContext_Kind { 70 p := new(AliasContext_Kind) 71 *p = x 72 return p 73} 74 75func (x AliasContext_Kind) String() string { 76 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) 77} 78 79func (AliasContext_Kind) Descriptor() protoreflect.EnumDescriptor { 80 return file_google_devtools_containeranalysis_v1beta1_source_source_proto_enumTypes[0].Descriptor() 81} 82 83func (AliasContext_Kind) Type() protoreflect.EnumType { 84 return &file_google_devtools_containeranalysis_v1beta1_source_source_proto_enumTypes[0] 85} 86 87func (x AliasContext_Kind) Number() protoreflect.EnumNumber { 88 return protoreflect.EnumNumber(x) 89} 90 91// Deprecated: Use AliasContext_Kind.Descriptor instead. 92func (AliasContext_Kind) EnumDescriptor() ([]byte, []int) { 93 return file_google_devtools_containeranalysis_v1beta1_source_source_proto_rawDescGZIP(), []int{1, 0} 94} 95 96// A SourceContext is a reference to a tree of files. A SourceContext together 97// with a path point to a unique revision of a single file or directory. 98type SourceContext struct { 99 state protoimpl.MessageState 100 sizeCache protoimpl.SizeCache 101 unknownFields protoimpl.UnknownFields 102 103 // A SourceContext can refer any one of the following types of repositories. 104 // 105 // Types that are assignable to Context: 106 // *SourceContext_CloudRepo 107 // *SourceContext_Gerrit 108 // *SourceContext_Git 109 Context isSourceContext_Context `protobuf_oneof:"context"` 110 // Labels with user defined metadata. 111 Labels map[string]string `protobuf:"bytes,4,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` 112} 113 114func (x *SourceContext) Reset() { 115 *x = SourceContext{} 116 if protoimpl.UnsafeEnabled { 117 mi := &file_google_devtools_containeranalysis_v1beta1_source_source_proto_msgTypes[0] 118 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 119 ms.StoreMessageInfo(mi) 120 } 121} 122 123func (x *SourceContext) String() string { 124 return protoimpl.X.MessageStringOf(x) 125} 126 127func (*SourceContext) ProtoMessage() {} 128 129func (x *SourceContext) ProtoReflect() protoreflect.Message { 130 mi := &file_google_devtools_containeranalysis_v1beta1_source_source_proto_msgTypes[0] 131 if protoimpl.UnsafeEnabled && x != nil { 132 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 133 if ms.LoadMessageInfo() == nil { 134 ms.StoreMessageInfo(mi) 135 } 136 return ms 137 } 138 return mi.MessageOf(x) 139} 140 141// Deprecated: Use SourceContext.ProtoReflect.Descriptor instead. 142func (*SourceContext) Descriptor() ([]byte, []int) { 143 return file_google_devtools_containeranalysis_v1beta1_source_source_proto_rawDescGZIP(), []int{0} 144} 145 146func (m *SourceContext) GetContext() isSourceContext_Context { 147 if m != nil { 148 return m.Context 149 } 150 return nil 151} 152 153func (x *SourceContext) GetCloudRepo() *CloudRepoSourceContext { 154 if x, ok := x.GetContext().(*SourceContext_CloudRepo); ok { 155 return x.CloudRepo 156 } 157 return nil 158} 159 160func (x *SourceContext) GetGerrit() *GerritSourceContext { 161 if x, ok := x.GetContext().(*SourceContext_Gerrit); ok { 162 return x.Gerrit 163 } 164 return nil 165} 166 167func (x *SourceContext) GetGit() *GitSourceContext { 168 if x, ok := x.GetContext().(*SourceContext_Git); ok { 169 return x.Git 170 } 171 return nil 172} 173 174func (x *SourceContext) GetLabels() map[string]string { 175 if x != nil { 176 return x.Labels 177 } 178 return nil 179} 180 181type isSourceContext_Context interface { 182 isSourceContext_Context() 183} 184 185type SourceContext_CloudRepo struct { 186 // A SourceContext referring to a revision in a Google Cloud Source Repo. 187 CloudRepo *CloudRepoSourceContext `protobuf:"bytes,1,opt,name=cloud_repo,json=cloudRepo,proto3,oneof"` 188} 189 190type SourceContext_Gerrit struct { 191 // A SourceContext referring to a Gerrit project. 192 Gerrit *GerritSourceContext `protobuf:"bytes,2,opt,name=gerrit,proto3,oneof"` 193} 194 195type SourceContext_Git struct { 196 // A SourceContext referring to any third party Git repo (e.g., GitHub). 197 Git *GitSourceContext `protobuf:"bytes,3,opt,name=git,proto3,oneof"` 198} 199 200func (*SourceContext_CloudRepo) isSourceContext_Context() {} 201 202func (*SourceContext_Gerrit) isSourceContext_Context() {} 203 204func (*SourceContext_Git) isSourceContext_Context() {} 205 206// An alias to a repo revision. 207type AliasContext struct { 208 state protoimpl.MessageState 209 sizeCache protoimpl.SizeCache 210 unknownFields protoimpl.UnknownFields 211 212 // The alias kind. 213 Kind AliasContext_Kind `protobuf:"varint,1,opt,name=kind,proto3,enum=grafeas.v1beta1.source.AliasContext_Kind" json:"kind,omitempty"` 214 // The alias name. 215 Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` 216} 217 218func (x *AliasContext) Reset() { 219 *x = AliasContext{} 220 if protoimpl.UnsafeEnabled { 221 mi := &file_google_devtools_containeranalysis_v1beta1_source_source_proto_msgTypes[1] 222 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 223 ms.StoreMessageInfo(mi) 224 } 225} 226 227func (x *AliasContext) String() string { 228 return protoimpl.X.MessageStringOf(x) 229} 230 231func (*AliasContext) ProtoMessage() {} 232 233func (x *AliasContext) ProtoReflect() protoreflect.Message { 234 mi := &file_google_devtools_containeranalysis_v1beta1_source_source_proto_msgTypes[1] 235 if protoimpl.UnsafeEnabled && x != nil { 236 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 237 if ms.LoadMessageInfo() == nil { 238 ms.StoreMessageInfo(mi) 239 } 240 return ms 241 } 242 return mi.MessageOf(x) 243} 244 245// Deprecated: Use AliasContext.ProtoReflect.Descriptor instead. 246func (*AliasContext) Descriptor() ([]byte, []int) { 247 return file_google_devtools_containeranalysis_v1beta1_source_source_proto_rawDescGZIP(), []int{1} 248} 249 250func (x *AliasContext) GetKind() AliasContext_Kind { 251 if x != nil { 252 return x.Kind 253 } 254 return AliasContext_KIND_UNSPECIFIED 255} 256 257func (x *AliasContext) GetName() string { 258 if x != nil { 259 return x.Name 260 } 261 return "" 262} 263 264// A CloudRepoSourceContext denotes a particular revision in a Google Cloud 265// Source Repo. 266type CloudRepoSourceContext struct { 267 state protoimpl.MessageState 268 sizeCache protoimpl.SizeCache 269 unknownFields protoimpl.UnknownFields 270 271 // The ID of the repo. 272 RepoId *RepoId `protobuf:"bytes,1,opt,name=repo_id,json=repoId,proto3" json:"repo_id,omitempty"` 273 // A revision in a Cloud Repo can be identified by either its revision ID or 274 // its alias. 275 // 276 // Types that are assignable to Revision: 277 // *CloudRepoSourceContext_RevisionId 278 // *CloudRepoSourceContext_AliasContext 279 Revision isCloudRepoSourceContext_Revision `protobuf_oneof:"revision"` 280} 281 282func (x *CloudRepoSourceContext) Reset() { 283 *x = CloudRepoSourceContext{} 284 if protoimpl.UnsafeEnabled { 285 mi := &file_google_devtools_containeranalysis_v1beta1_source_source_proto_msgTypes[2] 286 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 287 ms.StoreMessageInfo(mi) 288 } 289} 290 291func (x *CloudRepoSourceContext) String() string { 292 return protoimpl.X.MessageStringOf(x) 293} 294 295func (*CloudRepoSourceContext) ProtoMessage() {} 296 297func (x *CloudRepoSourceContext) ProtoReflect() protoreflect.Message { 298 mi := &file_google_devtools_containeranalysis_v1beta1_source_source_proto_msgTypes[2] 299 if protoimpl.UnsafeEnabled && x != nil { 300 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 301 if ms.LoadMessageInfo() == nil { 302 ms.StoreMessageInfo(mi) 303 } 304 return ms 305 } 306 return mi.MessageOf(x) 307} 308 309// Deprecated: Use CloudRepoSourceContext.ProtoReflect.Descriptor instead. 310func (*CloudRepoSourceContext) Descriptor() ([]byte, []int) { 311 return file_google_devtools_containeranalysis_v1beta1_source_source_proto_rawDescGZIP(), []int{2} 312} 313 314func (x *CloudRepoSourceContext) GetRepoId() *RepoId { 315 if x != nil { 316 return x.RepoId 317 } 318 return nil 319} 320 321func (m *CloudRepoSourceContext) GetRevision() isCloudRepoSourceContext_Revision { 322 if m != nil { 323 return m.Revision 324 } 325 return nil 326} 327 328func (x *CloudRepoSourceContext) GetRevisionId() string { 329 if x, ok := x.GetRevision().(*CloudRepoSourceContext_RevisionId); ok { 330 return x.RevisionId 331 } 332 return "" 333} 334 335func (x *CloudRepoSourceContext) GetAliasContext() *AliasContext { 336 if x, ok := x.GetRevision().(*CloudRepoSourceContext_AliasContext); ok { 337 return x.AliasContext 338 } 339 return nil 340} 341 342type isCloudRepoSourceContext_Revision interface { 343 isCloudRepoSourceContext_Revision() 344} 345 346type CloudRepoSourceContext_RevisionId struct { 347 // A revision ID. 348 RevisionId string `protobuf:"bytes,2,opt,name=revision_id,json=revisionId,proto3,oneof"` 349} 350 351type CloudRepoSourceContext_AliasContext struct { 352 // An alias, which may be a branch or tag. 353 AliasContext *AliasContext `protobuf:"bytes,3,opt,name=alias_context,json=aliasContext,proto3,oneof"` 354} 355 356func (*CloudRepoSourceContext_RevisionId) isCloudRepoSourceContext_Revision() {} 357 358func (*CloudRepoSourceContext_AliasContext) isCloudRepoSourceContext_Revision() {} 359 360// A SourceContext referring to a Gerrit project. 361type GerritSourceContext struct { 362 state protoimpl.MessageState 363 sizeCache protoimpl.SizeCache 364 unknownFields protoimpl.UnknownFields 365 366 // The URI of a running Gerrit instance. 367 HostUri string `protobuf:"bytes,1,opt,name=host_uri,json=hostUri,proto3" json:"host_uri,omitempty"` 368 // The full project name within the host. Projects may be nested, so 369 // "project/subproject" is a valid project name. The "repo name" is the 370 // hostURI/project. 371 GerritProject string `protobuf:"bytes,2,opt,name=gerrit_project,json=gerritProject,proto3" json:"gerrit_project,omitempty"` 372 // A revision in a Gerrit project can be identified by either its revision ID 373 // or its alias. 374 // 375 // Types that are assignable to Revision: 376 // *GerritSourceContext_RevisionId 377 // *GerritSourceContext_AliasContext 378 Revision isGerritSourceContext_Revision `protobuf_oneof:"revision"` 379} 380 381func (x *GerritSourceContext) Reset() { 382 *x = GerritSourceContext{} 383 if protoimpl.UnsafeEnabled { 384 mi := &file_google_devtools_containeranalysis_v1beta1_source_source_proto_msgTypes[3] 385 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 386 ms.StoreMessageInfo(mi) 387 } 388} 389 390func (x *GerritSourceContext) String() string { 391 return protoimpl.X.MessageStringOf(x) 392} 393 394func (*GerritSourceContext) ProtoMessage() {} 395 396func (x *GerritSourceContext) ProtoReflect() protoreflect.Message { 397 mi := &file_google_devtools_containeranalysis_v1beta1_source_source_proto_msgTypes[3] 398 if protoimpl.UnsafeEnabled && x != nil { 399 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 400 if ms.LoadMessageInfo() == nil { 401 ms.StoreMessageInfo(mi) 402 } 403 return ms 404 } 405 return mi.MessageOf(x) 406} 407 408// Deprecated: Use GerritSourceContext.ProtoReflect.Descriptor instead. 409func (*GerritSourceContext) Descriptor() ([]byte, []int) { 410 return file_google_devtools_containeranalysis_v1beta1_source_source_proto_rawDescGZIP(), []int{3} 411} 412 413func (x *GerritSourceContext) GetHostUri() string { 414 if x != nil { 415 return x.HostUri 416 } 417 return "" 418} 419 420func (x *GerritSourceContext) GetGerritProject() string { 421 if x != nil { 422 return x.GerritProject 423 } 424 return "" 425} 426 427func (m *GerritSourceContext) GetRevision() isGerritSourceContext_Revision { 428 if m != nil { 429 return m.Revision 430 } 431 return nil 432} 433 434func (x *GerritSourceContext) GetRevisionId() string { 435 if x, ok := x.GetRevision().(*GerritSourceContext_RevisionId); ok { 436 return x.RevisionId 437 } 438 return "" 439} 440 441func (x *GerritSourceContext) GetAliasContext() *AliasContext { 442 if x, ok := x.GetRevision().(*GerritSourceContext_AliasContext); ok { 443 return x.AliasContext 444 } 445 return nil 446} 447 448type isGerritSourceContext_Revision interface { 449 isGerritSourceContext_Revision() 450} 451 452type GerritSourceContext_RevisionId struct { 453 // A revision (commit) ID. 454 RevisionId string `protobuf:"bytes,3,opt,name=revision_id,json=revisionId,proto3,oneof"` 455} 456 457type GerritSourceContext_AliasContext struct { 458 // An alias, which may be a branch or tag. 459 AliasContext *AliasContext `protobuf:"bytes,4,opt,name=alias_context,json=aliasContext,proto3,oneof"` 460} 461 462func (*GerritSourceContext_RevisionId) isGerritSourceContext_Revision() {} 463 464func (*GerritSourceContext_AliasContext) isGerritSourceContext_Revision() {} 465 466// A GitSourceContext denotes a particular revision in a third party Git 467// repository (e.g., GitHub). 468type GitSourceContext struct { 469 state protoimpl.MessageState 470 sizeCache protoimpl.SizeCache 471 unknownFields protoimpl.UnknownFields 472 473 // Git repository URL. 474 Url string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"` 475 // Git commit hash. 476 RevisionId string `protobuf:"bytes,2,opt,name=revision_id,json=revisionId,proto3" json:"revision_id,omitempty"` 477} 478 479func (x *GitSourceContext) Reset() { 480 *x = GitSourceContext{} 481 if protoimpl.UnsafeEnabled { 482 mi := &file_google_devtools_containeranalysis_v1beta1_source_source_proto_msgTypes[4] 483 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 484 ms.StoreMessageInfo(mi) 485 } 486} 487 488func (x *GitSourceContext) String() string { 489 return protoimpl.X.MessageStringOf(x) 490} 491 492func (*GitSourceContext) ProtoMessage() {} 493 494func (x *GitSourceContext) ProtoReflect() protoreflect.Message { 495 mi := &file_google_devtools_containeranalysis_v1beta1_source_source_proto_msgTypes[4] 496 if protoimpl.UnsafeEnabled && x != nil { 497 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 498 if ms.LoadMessageInfo() == nil { 499 ms.StoreMessageInfo(mi) 500 } 501 return ms 502 } 503 return mi.MessageOf(x) 504} 505 506// Deprecated: Use GitSourceContext.ProtoReflect.Descriptor instead. 507func (*GitSourceContext) Descriptor() ([]byte, []int) { 508 return file_google_devtools_containeranalysis_v1beta1_source_source_proto_rawDescGZIP(), []int{4} 509} 510 511func (x *GitSourceContext) GetUrl() string { 512 if x != nil { 513 return x.Url 514 } 515 return "" 516} 517 518func (x *GitSourceContext) GetRevisionId() string { 519 if x != nil { 520 return x.RevisionId 521 } 522 return "" 523} 524 525// A unique identifier for a Cloud Repo. 526type RepoId struct { 527 state protoimpl.MessageState 528 sizeCache protoimpl.SizeCache 529 unknownFields protoimpl.UnknownFields 530 531 // A cloud repo can be identified by either its project ID and repository name 532 // combination, or its globally unique identifier. 533 // 534 // Types that are assignable to Id: 535 // *RepoId_ProjectRepoId 536 // *RepoId_Uid 537 Id isRepoId_Id `protobuf_oneof:"id"` 538} 539 540func (x *RepoId) Reset() { 541 *x = RepoId{} 542 if protoimpl.UnsafeEnabled { 543 mi := &file_google_devtools_containeranalysis_v1beta1_source_source_proto_msgTypes[5] 544 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 545 ms.StoreMessageInfo(mi) 546 } 547} 548 549func (x *RepoId) String() string { 550 return protoimpl.X.MessageStringOf(x) 551} 552 553func (*RepoId) ProtoMessage() {} 554 555func (x *RepoId) ProtoReflect() protoreflect.Message { 556 mi := &file_google_devtools_containeranalysis_v1beta1_source_source_proto_msgTypes[5] 557 if protoimpl.UnsafeEnabled && x != nil { 558 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 559 if ms.LoadMessageInfo() == nil { 560 ms.StoreMessageInfo(mi) 561 } 562 return ms 563 } 564 return mi.MessageOf(x) 565} 566 567// Deprecated: Use RepoId.ProtoReflect.Descriptor instead. 568func (*RepoId) Descriptor() ([]byte, []int) { 569 return file_google_devtools_containeranalysis_v1beta1_source_source_proto_rawDescGZIP(), []int{5} 570} 571 572func (m *RepoId) GetId() isRepoId_Id { 573 if m != nil { 574 return m.Id 575 } 576 return nil 577} 578 579func (x *RepoId) GetProjectRepoId() *ProjectRepoId { 580 if x, ok := x.GetId().(*RepoId_ProjectRepoId); ok { 581 return x.ProjectRepoId 582 } 583 return nil 584} 585 586func (x *RepoId) GetUid() string { 587 if x, ok := x.GetId().(*RepoId_Uid); ok { 588 return x.Uid 589 } 590 return "" 591} 592 593type isRepoId_Id interface { 594 isRepoId_Id() 595} 596 597type RepoId_ProjectRepoId struct { 598 // A combination of a project ID and a repo name. 599 ProjectRepoId *ProjectRepoId `protobuf:"bytes,1,opt,name=project_repo_id,json=projectRepoId,proto3,oneof"` 600} 601 602type RepoId_Uid struct { 603 // A server-assigned, globally unique identifier. 604 Uid string `protobuf:"bytes,2,opt,name=uid,proto3,oneof"` 605} 606 607func (*RepoId_ProjectRepoId) isRepoId_Id() {} 608 609func (*RepoId_Uid) isRepoId_Id() {} 610 611// Selects a repo using a Google Cloud Platform project ID (e.g., 612// winged-cargo-31) and a repo name within that project. 613type ProjectRepoId struct { 614 state protoimpl.MessageState 615 sizeCache protoimpl.SizeCache 616 unknownFields protoimpl.UnknownFields 617 618 // The ID of the project. 619 ProjectId string `protobuf:"bytes,1,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"` 620 // The name of the repo. Leave empty for the default repo. 621 RepoName string `protobuf:"bytes,2,opt,name=repo_name,json=repoName,proto3" json:"repo_name,omitempty"` 622} 623 624func (x *ProjectRepoId) Reset() { 625 *x = ProjectRepoId{} 626 if protoimpl.UnsafeEnabled { 627 mi := &file_google_devtools_containeranalysis_v1beta1_source_source_proto_msgTypes[6] 628 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 629 ms.StoreMessageInfo(mi) 630 } 631} 632 633func (x *ProjectRepoId) String() string { 634 return protoimpl.X.MessageStringOf(x) 635} 636 637func (*ProjectRepoId) ProtoMessage() {} 638 639func (x *ProjectRepoId) ProtoReflect() protoreflect.Message { 640 mi := &file_google_devtools_containeranalysis_v1beta1_source_source_proto_msgTypes[6] 641 if protoimpl.UnsafeEnabled && x != nil { 642 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 643 if ms.LoadMessageInfo() == nil { 644 ms.StoreMessageInfo(mi) 645 } 646 return ms 647 } 648 return mi.MessageOf(x) 649} 650 651// Deprecated: Use ProjectRepoId.ProtoReflect.Descriptor instead. 652func (*ProjectRepoId) Descriptor() ([]byte, []int) { 653 return file_google_devtools_containeranalysis_v1beta1_source_source_proto_rawDescGZIP(), []int{6} 654} 655 656func (x *ProjectRepoId) GetProjectId() string { 657 if x != nil { 658 return x.ProjectId 659 } 660 return "" 661} 662 663func (x *ProjectRepoId) GetRepoName() string { 664 if x != nil { 665 return x.RepoName 666 } 667 return "" 668} 669 670var File_google_devtools_containeranalysis_v1beta1_source_source_proto protoreflect.FileDescriptor 671 672var file_google_devtools_containeranalysis_v1beta1_source_source_proto_rawDesc = []byte{ 673 0x0a, 0x3d, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x64, 0x65, 0x76, 0x74, 0x6f, 0x6f, 0x6c, 674 0x73, 0x2f, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x6c, 0x79, 675 0x73, 0x69, 0x73, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x73, 0x6f, 0x75, 0x72, 676 0x63, 0x65, 0x2f, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 677 0x16, 0x67, 0x72, 0x61, 0x66, 0x65, 0x61, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 678 0x2e, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x22, 0xf6, 0x02, 0x0a, 0x0d, 0x53, 0x6f, 0x75, 0x72, 679 0x63, 0x65, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x12, 0x4f, 0x0a, 0x0a, 0x63, 0x6c, 0x6f, 680 0x75, 0x64, 0x5f, 0x72, 0x65, 0x70, 0x6f, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2e, 0x2e, 681 0x67, 0x72, 0x61, 0x66, 0x65, 0x61, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 682 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x52, 0x65, 0x70, 0x6f, 683 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x48, 0x00, 0x52, 684 0x09, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x52, 0x65, 0x70, 0x6f, 0x12, 0x45, 0x0a, 0x06, 0x67, 0x65, 685 0x72, 0x72, 0x69, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2b, 0x2e, 0x67, 0x72, 0x61, 686 0x66, 0x65, 0x61, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x73, 0x6f, 0x75, 687 0x72, 0x63, 0x65, 0x2e, 0x47, 0x65, 0x72, 0x72, 0x69, 0x74, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 688 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x48, 0x00, 0x52, 0x06, 0x67, 0x65, 0x72, 0x72, 0x69, 689 0x74, 0x12, 0x3c, 0x0a, 0x03, 0x67, 0x69, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x28, 690 0x2e, 0x67, 0x72, 0x61, 0x66, 0x65, 0x61, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 691 0x2e, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x47, 0x69, 0x74, 0x53, 0x6f, 0x75, 0x72, 0x63, 692 0x65, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x48, 0x00, 0x52, 0x03, 0x67, 0x69, 0x74, 0x12, 693 0x49, 0x0a, 0x06, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 694 0x31, 0x2e, 0x67, 0x72, 0x61, 0x66, 0x65, 0x61, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 695 0x31, 0x2e, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x43, 696 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x2e, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x45, 0x6e, 0x74, 697 0x72, 0x79, 0x52, 0x06, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x1a, 0x39, 0x0a, 0x0b, 0x4c, 0x61, 698 0x62, 0x65, 0x6c, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 699 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 700 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 701 0x65, 0x3a, 0x02, 0x38, 0x01, 0x42, 0x09, 0x0a, 0x07, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 702 0x22, 0xa2, 0x01, 0x0a, 0x0c, 0x41, 0x6c, 0x69, 0x61, 0x73, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x78, 703 0x74, 0x12, 0x3d, 0x0a, 0x04, 0x6b, 0x69, 0x6e, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 704 0x29, 0x2e, 0x67, 0x72, 0x61, 0x66, 0x65, 0x61, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 705 0x31, 0x2e, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x41, 0x6c, 0x69, 0x61, 0x73, 0x43, 0x6f, 706 0x6e, 0x74, 0x65, 0x78, 0x74, 0x2e, 0x4b, 0x69, 0x6e, 0x64, 0x52, 0x04, 0x6b, 0x69, 0x6e, 0x64, 707 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 708 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x3f, 0x0a, 0x04, 0x4b, 0x69, 0x6e, 0x64, 0x12, 0x14, 0x0a, 0x10, 709 0x4b, 0x49, 0x4e, 0x44, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 710 0x10, 0x00, 0x12, 0x09, 0x0a, 0x05, 0x46, 0x49, 0x58, 0x45, 0x44, 0x10, 0x01, 0x12, 0x0b, 0x0a, 711 0x07, 0x4d, 0x4f, 0x56, 0x41, 0x42, 0x4c, 0x45, 0x10, 0x02, 0x12, 0x09, 0x0a, 0x05, 0x4f, 0x54, 712 0x48, 0x45, 0x52, 0x10, 0x04, 0x22, 0xcd, 0x01, 0x0a, 0x16, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x52, 713 0x65, 0x70, 0x6f, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 714 0x12, 0x37, 0x0a, 0x07, 0x72, 0x65, 0x70, 0x6f, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 715 0x0b, 0x32, 0x1e, 0x2e, 0x67, 0x72, 0x61, 0x66, 0x65, 0x61, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 716 0x74, 0x61, 0x31, 0x2e, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x52, 0x65, 0x70, 0x6f, 0x49, 717 0x64, 0x52, 0x06, 0x72, 0x65, 0x70, 0x6f, 0x49, 0x64, 0x12, 0x21, 0x0a, 0x0b, 0x72, 0x65, 0x76, 718 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 719 0x52, 0x0a, 0x72, 0x65, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x12, 0x4b, 0x0a, 0x0d, 720 0x61, 0x6c, 0x69, 0x61, 0x73, 0x5f, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x18, 0x03, 0x20, 721 0x01, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x67, 0x72, 0x61, 0x66, 0x65, 0x61, 0x73, 0x2e, 0x76, 0x31, 722 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x41, 0x6c, 0x69, 723 0x61, 0x73, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x48, 0x00, 0x52, 0x0c, 0x61, 0x6c, 0x69, 724 0x61, 0x73, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x42, 0x0a, 0x0a, 0x08, 0x72, 0x65, 0x76, 725 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x22, 0xd3, 0x01, 0x0a, 0x13, 0x47, 0x65, 0x72, 0x72, 0x69, 0x74, 726 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x12, 0x19, 0x0a, 727 0x08, 0x68, 0x6f, 0x73, 0x74, 0x5f, 0x75, 0x72, 0x69, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 728 0x07, 0x68, 0x6f, 0x73, 0x74, 0x55, 0x72, 0x69, 0x12, 0x25, 0x0a, 0x0e, 0x67, 0x65, 0x72, 0x72, 729 0x69, 0x74, 0x5f, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 730 0x52, 0x0d, 0x67, 0x65, 0x72, 0x72, 0x69, 0x74, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x12, 731 0x21, 0x0a, 0x0b, 0x72, 0x65, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x03, 732 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x0a, 0x72, 0x65, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 733 0x49, 0x64, 0x12, 0x4b, 0x0a, 0x0d, 0x61, 0x6c, 0x69, 0x61, 0x73, 0x5f, 0x63, 0x6f, 0x6e, 0x74, 734 0x65, 0x78, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x67, 0x72, 0x61, 0x66, 735 0x65, 0x61, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x73, 0x6f, 0x75, 0x72, 736 0x63, 0x65, 0x2e, 0x41, 0x6c, 0x69, 0x61, 0x73, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x48, 737 0x00, 0x52, 0x0c, 0x61, 0x6c, 0x69, 0x61, 0x73, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x42, 738 0x0a, 0x0a, 0x08, 0x72, 0x65, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x22, 0x45, 0x0a, 0x10, 0x47, 739 0x69, 0x74, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x12, 740 0x10, 0x0a, 0x03, 0x75, 0x72, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x72, 741 0x6c, 0x12, 0x1f, 0x0a, 0x0b, 0x72, 0x65, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 742 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x72, 0x65, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 743 0x49, 0x64, 0x22, 0x73, 0x0a, 0x06, 0x52, 0x65, 0x70, 0x6f, 0x49, 0x64, 0x12, 0x4f, 0x0a, 0x0f, 744 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x72, 0x65, 0x70, 0x6f, 0x5f, 0x69, 0x64, 0x18, 745 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x67, 0x72, 0x61, 0x66, 0x65, 0x61, 0x73, 0x2e, 746 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x50, 747 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x52, 0x65, 0x70, 0x6f, 0x49, 0x64, 0x48, 0x00, 0x52, 0x0d, 748 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x52, 0x65, 0x70, 0x6f, 0x49, 0x64, 0x12, 0x12, 0x0a, 749 0x03, 0x75, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x03, 0x75, 0x69, 750 0x64, 0x42, 0x04, 0x0a, 0x02, 0x69, 0x64, 0x22, 0x4b, 0x0a, 0x0d, 0x50, 0x72, 0x6f, 0x6a, 0x65, 751 0x63, 0x74, 0x52, 0x65, 0x70, 0x6f, 0x49, 0x64, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x72, 0x6f, 0x6a, 752 0x65, 0x63, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, 0x72, 753 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x49, 0x64, 0x12, 0x1b, 0x0a, 0x09, 0x72, 0x65, 0x70, 0x6f, 0x5f, 754 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x72, 0x65, 0x70, 0x6f, 755 0x4e, 0x61, 0x6d, 0x65, 0x42, 0x7b, 0x0a, 0x19, 0x69, 0x6f, 0x2e, 0x67, 0x72, 0x61, 0x66, 0x65, 756 0x61, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x73, 0x6f, 0x75, 0x72, 0x63, 757 0x65, 0x50, 0x01, 0x5a, 0x56, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x67, 0x6f, 0x6c, 0x61, 758 0x6e, 0x67, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x67, 0x65, 0x6e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 759 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2f, 0x64, 0x65, 0x76, 0x74, 0x6f, 760 0x6f, 0x6c, 0x73, 0x2f, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x61, 0x6e, 0x61, 761 0x6c, 0x79, 0x73, 0x69, 0x73, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x73, 0x6f, 762 0x75, 0x72, 0x63, 0x65, 0x3b, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0xa2, 0x02, 0x03, 0x47, 0x52, 763 0x41, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, 764} 765 766var ( 767 file_google_devtools_containeranalysis_v1beta1_source_source_proto_rawDescOnce sync.Once 768 file_google_devtools_containeranalysis_v1beta1_source_source_proto_rawDescData = file_google_devtools_containeranalysis_v1beta1_source_source_proto_rawDesc 769) 770 771func file_google_devtools_containeranalysis_v1beta1_source_source_proto_rawDescGZIP() []byte { 772 file_google_devtools_containeranalysis_v1beta1_source_source_proto_rawDescOnce.Do(func() { 773 file_google_devtools_containeranalysis_v1beta1_source_source_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_devtools_containeranalysis_v1beta1_source_source_proto_rawDescData) 774 }) 775 return file_google_devtools_containeranalysis_v1beta1_source_source_proto_rawDescData 776} 777 778var file_google_devtools_containeranalysis_v1beta1_source_source_proto_enumTypes = make([]protoimpl.EnumInfo, 1) 779var file_google_devtools_containeranalysis_v1beta1_source_source_proto_msgTypes = make([]protoimpl.MessageInfo, 8) 780var file_google_devtools_containeranalysis_v1beta1_source_source_proto_goTypes = []interface{}{ 781 (AliasContext_Kind)(0), // 0: grafeas.v1beta1.source.AliasContext.Kind 782 (*SourceContext)(nil), // 1: grafeas.v1beta1.source.SourceContext 783 (*AliasContext)(nil), // 2: grafeas.v1beta1.source.AliasContext 784 (*CloudRepoSourceContext)(nil), // 3: grafeas.v1beta1.source.CloudRepoSourceContext 785 (*GerritSourceContext)(nil), // 4: grafeas.v1beta1.source.GerritSourceContext 786 (*GitSourceContext)(nil), // 5: grafeas.v1beta1.source.GitSourceContext 787 (*RepoId)(nil), // 6: grafeas.v1beta1.source.RepoId 788 (*ProjectRepoId)(nil), // 7: grafeas.v1beta1.source.ProjectRepoId 789 nil, // 8: grafeas.v1beta1.source.SourceContext.LabelsEntry 790} 791var file_google_devtools_containeranalysis_v1beta1_source_source_proto_depIdxs = []int32{ 792 3, // 0: grafeas.v1beta1.source.SourceContext.cloud_repo:type_name -> grafeas.v1beta1.source.CloudRepoSourceContext 793 4, // 1: grafeas.v1beta1.source.SourceContext.gerrit:type_name -> grafeas.v1beta1.source.GerritSourceContext 794 5, // 2: grafeas.v1beta1.source.SourceContext.git:type_name -> grafeas.v1beta1.source.GitSourceContext 795 8, // 3: grafeas.v1beta1.source.SourceContext.labels:type_name -> grafeas.v1beta1.source.SourceContext.LabelsEntry 796 0, // 4: grafeas.v1beta1.source.AliasContext.kind:type_name -> grafeas.v1beta1.source.AliasContext.Kind 797 6, // 5: grafeas.v1beta1.source.CloudRepoSourceContext.repo_id:type_name -> grafeas.v1beta1.source.RepoId 798 2, // 6: grafeas.v1beta1.source.CloudRepoSourceContext.alias_context:type_name -> grafeas.v1beta1.source.AliasContext 799 2, // 7: grafeas.v1beta1.source.GerritSourceContext.alias_context:type_name -> grafeas.v1beta1.source.AliasContext 800 7, // 8: grafeas.v1beta1.source.RepoId.project_repo_id:type_name -> grafeas.v1beta1.source.ProjectRepoId 801 9, // [9:9] is the sub-list for method output_type 802 9, // [9:9] is the sub-list for method input_type 803 9, // [9:9] is the sub-list for extension type_name 804 9, // [9:9] is the sub-list for extension extendee 805 0, // [0:9] is the sub-list for field type_name 806} 807 808func init() { file_google_devtools_containeranalysis_v1beta1_source_source_proto_init() } 809func file_google_devtools_containeranalysis_v1beta1_source_source_proto_init() { 810 if File_google_devtools_containeranalysis_v1beta1_source_source_proto != nil { 811 return 812 } 813 if !protoimpl.UnsafeEnabled { 814 file_google_devtools_containeranalysis_v1beta1_source_source_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 815 switch v := v.(*SourceContext); i { 816 case 0: 817 return &v.state 818 case 1: 819 return &v.sizeCache 820 case 2: 821 return &v.unknownFields 822 default: 823 return nil 824 } 825 } 826 file_google_devtools_containeranalysis_v1beta1_source_source_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { 827 switch v := v.(*AliasContext); i { 828 case 0: 829 return &v.state 830 case 1: 831 return &v.sizeCache 832 case 2: 833 return &v.unknownFields 834 default: 835 return nil 836 } 837 } 838 file_google_devtools_containeranalysis_v1beta1_source_source_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { 839 switch v := v.(*CloudRepoSourceContext); i { 840 case 0: 841 return &v.state 842 case 1: 843 return &v.sizeCache 844 case 2: 845 return &v.unknownFields 846 default: 847 return nil 848 } 849 } 850 file_google_devtools_containeranalysis_v1beta1_source_source_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { 851 switch v := v.(*GerritSourceContext); i { 852 case 0: 853 return &v.state 854 case 1: 855 return &v.sizeCache 856 case 2: 857 return &v.unknownFields 858 default: 859 return nil 860 } 861 } 862 file_google_devtools_containeranalysis_v1beta1_source_source_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { 863 switch v := v.(*GitSourceContext); i { 864 case 0: 865 return &v.state 866 case 1: 867 return &v.sizeCache 868 case 2: 869 return &v.unknownFields 870 default: 871 return nil 872 } 873 } 874 file_google_devtools_containeranalysis_v1beta1_source_source_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { 875 switch v := v.(*RepoId); i { 876 case 0: 877 return &v.state 878 case 1: 879 return &v.sizeCache 880 case 2: 881 return &v.unknownFields 882 default: 883 return nil 884 } 885 } 886 file_google_devtools_containeranalysis_v1beta1_source_source_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { 887 switch v := v.(*ProjectRepoId); i { 888 case 0: 889 return &v.state 890 case 1: 891 return &v.sizeCache 892 case 2: 893 return &v.unknownFields 894 default: 895 return nil 896 } 897 } 898 } 899 file_google_devtools_containeranalysis_v1beta1_source_source_proto_msgTypes[0].OneofWrappers = []interface{}{ 900 (*SourceContext_CloudRepo)(nil), 901 (*SourceContext_Gerrit)(nil), 902 (*SourceContext_Git)(nil), 903 } 904 file_google_devtools_containeranalysis_v1beta1_source_source_proto_msgTypes[2].OneofWrappers = []interface{}{ 905 (*CloudRepoSourceContext_RevisionId)(nil), 906 (*CloudRepoSourceContext_AliasContext)(nil), 907 } 908 file_google_devtools_containeranalysis_v1beta1_source_source_proto_msgTypes[3].OneofWrappers = []interface{}{ 909 (*GerritSourceContext_RevisionId)(nil), 910 (*GerritSourceContext_AliasContext)(nil), 911 } 912 file_google_devtools_containeranalysis_v1beta1_source_source_proto_msgTypes[5].OneofWrappers = []interface{}{ 913 (*RepoId_ProjectRepoId)(nil), 914 (*RepoId_Uid)(nil), 915 } 916 type x struct{} 917 out := protoimpl.TypeBuilder{ 918 File: protoimpl.DescBuilder{ 919 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 920 RawDescriptor: file_google_devtools_containeranalysis_v1beta1_source_source_proto_rawDesc, 921 NumEnums: 1, 922 NumMessages: 8, 923 NumExtensions: 0, 924 NumServices: 0, 925 }, 926 GoTypes: file_google_devtools_containeranalysis_v1beta1_source_source_proto_goTypes, 927 DependencyIndexes: file_google_devtools_containeranalysis_v1beta1_source_source_proto_depIdxs, 928 EnumInfos: file_google_devtools_containeranalysis_v1beta1_source_source_proto_enumTypes, 929 MessageInfos: file_google_devtools_containeranalysis_v1beta1_source_source_proto_msgTypes, 930 }.Build() 931 File_google_devtools_containeranalysis_v1beta1_source_source_proto = out.File 932 file_google_devtools_containeranalysis_v1beta1_source_source_proto_rawDesc = nil 933 file_google_devtools_containeranalysis_v1beta1_source_source_proto_goTypes = nil 934 file_google_devtools_containeranalysis_v1beta1_source_source_proto_depIdxs = nil 935} 936