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