go.chromium.org/luci@v0.0.0-20240309015107-7cdc2e660f33/analysis/proto/v1/sources.pb.go (about)

     1  // Copyright 2023 The LUCI Authors.
     2  //
     3  // Licensed under the Apache License, Version 2.0 (the "License");
     4  // you may not use this file except in compliance with the License.
     5  // You may obtain a copy of the License at
     6  //
     7  //      http://www.apache.org/licenses/LICENSE-2.0
     8  //
     9  // Unless required by applicable law or agreed to in writing, software
    10  // distributed under the License is distributed on an "AS IS" BASIS,
    11  // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    12  // See the License for the specific language governing permissions and
    13  // limitations under the License.
    14  
    15  // Code generated by protoc-gen-go. DO NOT EDIT.
    16  // versions:
    17  // 	protoc-gen-go v1.32.0
    18  // 	protoc        v3.21.7
    19  // source: go.chromium.org/luci/analysis/proto/v1/sources.proto
    20  
    21  package analysispb
    22  
    23  import (
    24  	_ "google.golang.org/genproto/googleapis/api/annotations"
    25  	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
    26  	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
    27  	reflect "reflect"
    28  	sync "sync"
    29  )
    30  
    31  const (
    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  // ChangelistOwner describes the owner of a gerrit changelist.
    39  type ChangelistOwnerKind int32
    40  
    41  const (
    42  	// The changelist owner is not known.
    43  	ChangelistOwnerKind_CHANGELIST_OWNER_UNSPECIFIED ChangelistOwnerKind = 0
    44  	// The changelist is owned by a human.
    45  	ChangelistOwnerKind_HUMAN ChangelistOwnerKind = 1
    46  	// The changelist is owned by automation. (E.g. autoroller or
    47  	// automatic uprev process.)
    48  	ChangelistOwnerKind_AUTOMATION ChangelistOwnerKind = 2
    49  )
    50  
    51  // Enum value maps for ChangelistOwnerKind.
    52  var (
    53  	ChangelistOwnerKind_name = map[int32]string{
    54  		0: "CHANGELIST_OWNER_UNSPECIFIED",
    55  		1: "HUMAN",
    56  		2: "AUTOMATION",
    57  	}
    58  	ChangelistOwnerKind_value = map[string]int32{
    59  		"CHANGELIST_OWNER_UNSPECIFIED": 0,
    60  		"HUMAN":                        1,
    61  		"AUTOMATION":                   2,
    62  	}
    63  )
    64  
    65  func (x ChangelistOwnerKind) Enum() *ChangelistOwnerKind {
    66  	p := new(ChangelistOwnerKind)
    67  	*p = x
    68  	return p
    69  }
    70  
    71  func (x ChangelistOwnerKind) String() string {
    72  	return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
    73  }
    74  
    75  func (ChangelistOwnerKind) Descriptor() protoreflect.EnumDescriptor {
    76  	return file_go_chromium_org_luci_analysis_proto_v1_sources_proto_enumTypes[0].Descriptor()
    77  }
    78  
    79  func (ChangelistOwnerKind) Type() protoreflect.EnumType {
    80  	return &file_go_chromium_org_luci_analysis_proto_v1_sources_proto_enumTypes[0]
    81  }
    82  
    83  func (x ChangelistOwnerKind) Number() protoreflect.EnumNumber {
    84  	return protoreflect.EnumNumber(x)
    85  }
    86  
    87  // Deprecated: Use ChangelistOwnerKind.Descriptor instead.
    88  func (ChangelistOwnerKind) EnumDescriptor() ([]byte, []int) {
    89  	return file_go_chromium_org_luci_analysis_proto_v1_sources_proto_rawDescGZIP(), []int{0}
    90  }
    91  
    92  // Specifies the source code that was tested.
    93  type Sources struct {
    94  	state         protoimpl.MessageState
    95  	sizeCache     protoimpl.SizeCache
    96  	unknownFields protoimpl.UnknownFields
    97  
    98  	// The base version of code sources checked out. Mandatory.
    99  	// If necessary, we could add support for non-gitiles sources here in
   100  	// future, using a oneof statement. E.g.
   101  	//
   102  	//	oneof system {
   103  	//	   GitilesCommit gitiles_commit = 1;
   104  	//	   SubversionRevision svn_revision = 4;
   105  	//	   ...
   106  	//	}
   107  	GitilesCommit *GitilesCommit `protobuf:"bytes,1,opt,name=gitiles_commit,json=gitilesCommit,proto3" json:"gitiles_commit,omitempty"`
   108  	// The changelist(s) which were applied upon the base version of sources
   109  	// checked out. E.g. in commit queue tryjobs.
   110  	//
   111  	// At most 10 changelist(s) may be specified here. If there
   112  	// are more, only include the first 10 and set is_dirty.
   113  	Changelists []*GerritChange `protobuf:"bytes,2,rep,name=changelists,proto3" json:"changelists,omitempty"`
   114  	// Whether there were any changes made to the sources, not described above.
   115  	// For example, a version of a dependency was upgraded before testing (e.g.
   116  	// in an autoroller recipe).
   117  	//
   118  	// Cherry-picking a changelist on top of the base checkout is not considered
   119  	// making the sources dirty as it is reported separately above.
   120  	IsDirty bool `protobuf:"varint,3,opt,name=is_dirty,json=isDirty,proto3" json:"is_dirty,omitempty"`
   121  }
   122  
   123  func (x *Sources) Reset() {
   124  	*x = Sources{}
   125  	if protoimpl.UnsafeEnabled {
   126  		mi := &file_go_chromium_org_luci_analysis_proto_v1_sources_proto_msgTypes[0]
   127  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   128  		ms.StoreMessageInfo(mi)
   129  	}
   130  }
   131  
   132  func (x *Sources) String() string {
   133  	return protoimpl.X.MessageStringOf(x)
   134  }
   135  
   136  func (*Sources) ProtoMessage() {}
   137  
   138  func (x *Sources) ProtoReflect() protoreflect.Message {
   139  	mi := &file_go_chromium_org_luci_analysis_proto_v1_sources_proto_msgTypes[0]
   140  	if protoimpl.UnsafeEnabled && x != nil {
   141  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   142  		if ms.LoadMessageInfo() == nil {
   143  			ms.StoreMessageInfo(mi)
   144  		}
   145  		return ms
   146  	}
   147  	return mi.MessageOf(x)
   148  }
   149  
   150  // Deprecated: Use Sources.ProtoReflect.Descriptor instead.
   151  func (*Sources) Descriptor() ([]byte, []int) {
   152  	return file_go_chromium_org_luci_analysis_proto_v1_sources_proto_rawDescGZIP(), []int{0}
   153  }
   154  
   155  func (x *Sources) GetGitilesCommit() *GitilesCommit {
   156  	if x != nil {
   157  		return x.GitilesCommit
   158  	}
   159  	return nil
   160  }
   161  
   162  func (x *Sources) GetChangelists() []*GerritChange {
   163  	if x != nil {
   164  		return x.Changelists
   165  	}
   166  	return nil
   167  }
   168  
   169  func (x *Sources) GetIsDirty() bool {
   170  	if x != nil {
   171  		return x.IsDirty
   172  	}
   173  	return false
   174  }
   175  
   176  // GitilesCommit specifies the position of the gitiles commit an invocation
   177  // ran against, in a repository's commit log. More specifically, a ref's commit
   178  // log.
   179  //
   180  // It also specifies the host/project/ref combination that the commit
   181  // exists in, to provide context.
   182  type GitilesCommit struct {
   183  	state         protoimpl.MessageState
   184  	sizeCache     protoimpl.SizeCache
   185  	unknownFields protoimpl.UnknownFields
   186  
   187  	// The identity of the gitiles host, e.g. "chromium.googlesource.com".
   188  	// Mandatory.
   189  	Host string `protobuf:"bytes,1,opt,name=host,proto3" json:"host,omitempty"`
   190  	// Repository name on the host, e.g. "chromium/src". Mandatory.
   191  	Project string `protobuf:"bytes,2,opt,name=project,proto3" json:"project,omitempty"`
   192  	// Commit ref, e.g. "refs/heads/main" from which the commit was fetched.
   193  	// Not the branch name, use "refs/heads/branch"
   194  	// Mandatory.
   195  	Ref string `protobuf:"bytes,3,opt,name=ref,proto3" json:"ref,omitempty"`
   196  	// Commit SHA-1, as 40 lowercase hexadecimal characters. Mandatory.
   197  	CommitHash string `protobuf:"bytes,4,opt,name=commit_hash,json=commitHash,proto3" json:"commit_hash,omitempty"`
   198  	// Defines a total order of commits on the ref.
   199  	// A positive, monotonically increasing integer. The recommended
   200  	// way of obtaining this is by using the goto.google.com/git-numberer
   201  	// Gerrit plugin. Other solutions can be used as well, so long
   202  	// as the same scheme is used consistently for a ref.
   203  	// Mandatory.
   204  	Position int64 `protobuf:"varint,5,opt,name=position,proto3" json:"position,omitempty"`
   205  }
   206  
   207  func (x *GitilesCommit) Reset() {
   208  	*x = GitilesCommit{}
   209  	if protoimpl.UnsafeEnabled {
   210  		mi := &file_go_chromium_org_luci_analysis_proto_v1_sources_proto_msgTypes[1]
   211  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   212  		ms.StoreMessageInfo(mi)
   213  	}
   214  }
   215  
   216  func (x *GitilesCommit) String() string {
   217  	return protoimpl.X.MessageStringOf(x)
   218  }
   219  
   220  func (*GitilesCommit) ProtoMessage() {}
   221  
   222  func (x *GitilesCommit) ProtoReflect() protoreflect.Message {
   223  	mi := &file_go_chromium_org_luci_analysis_proto_v1_sources_proto_msgTypes[1]
   224  	if protoimpl.UnsafeEnabled && x != nil {
   225  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   226  		if ms.LoadMessageInfo() == nil {
   227  			ms.StoreMessageInfo(mi)
   228  		}
   229  		return ms
   230  	}
   231  	return mi.MessageOf(x)
   232  }
   233  
   234  // Deprecated: Use GitilesCommit.ProtoReflect.Descriptor instead.
   235  func (*GitilesCommit) Descriptor() ([]byte, []int) {
   236  	return file_go_chromium_org_luci_analysis_proto_v1_sources_proto_rawDescGZIP(), []int{1}
   237  }
   238  
   239  func (x *GitilesCommit) GetHost() string {
   240  	if x != nil {
   241  		return x.Host
   242  	}
   243  	return ""
   244  }
   245  
   246  func (x *GitilesCommit) GetProject() string {
   247  	if x != nil {
   248  		return x.Project
   249  	}
   250  	return ""
   251  }
   252  
   253  func (x *GitilesCommit) GetRef() string {
   254  	if x != nil {
   255  		return x.Ref
   256  	}
   257  	return ""
   258  }
   259  
   260  func (x *GitilesCommit) GetCommitHash() string {
   261  	if x != nil {
   262  		return x.CommitHash
   263  	}
   264  	return ""
   265  }
   266  
   267  func (x *GitilesCommit) GetPosition() int64 {
   268  	if x != nil {
   269  		return x.Position
   270  	}
   271  	return 0
   272  }
   273  
   274  // A Gerrit patchset.
   275  type GerritChange struct {
   276  	state         protoimpl.MessageState
   277  	sizeCache     protoimpl.SizeCache
   278  	unknownFields protoimpl.UnknownFields
   279  
   280  	// Gerrit hostname, e.g. "chromium-review.googlesource.com".
   281  	Host string `protobuf:"bytes,1,opt,name=host,proto3" json:"host,omitempty"`
   282  	// Gerrit project, e.g. "chromium/src".
   283  	Project string `protobuf:"bytes,5,opt,name=project,proto3" json:"project,omitempty"`
   284  	// Change number, e.g. 12345.
   285  	Change int64 `protobuf:"varint,2,opt,name=change,proto3" json:"change,omitempty"`
   286  	// Patch set number, e.g. 1.
   287  	Patchset int64 `protobuf:"varint,3,opt,name=patchset,proto3" json:"patchset,omitempty"`
   288  	// The kind of owner of the changelist. Output only.
   289  	OwnerKind ChangelistOwnerKind `protobuf:"varint,4,opt,name=owner_kind,json=ownerKind,proto3,enum=luci.analysis.v1.ChangelistOwnerKind" json:"owner_kind,omitempty"`
   290  }
   291  
   292  func (x *GerritChange) Reset() {
   293  	*x = GerritChange{}
   294  	if protoimpl.UnsafeEnabled {
   295  		mi := &file_go_chromium_org_luci_analysis_proto_v1_sources_proto_msgTypes[2]
   296  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   297  		ms.StoreMessageInfo(mi)
   298  	}
   299  }
   300  
   301  func (x *GerritChange) String() string {
   302  	return protoimpl.X.MessageStringOf(x)
   303  }
   304  
   305  func (*GerritChange) ProtoMessage() {}
   306  
   307  func (x *GerritChange) ProtoReflect() protoreflect.Message {
   308  	mi := &file_go_chromium_org_luci_analysis_proto_v1_sources_proto_msgTypes[2]
   309  	if protoimpl.UnsafeEnabled && x != nil {
   310  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   311  		if ms.LoadMessageInfo() == nil {
   312  			ms.StoreMessageInfo(mi)
   313  		}
   314  		return ms
   315  	}
   316  	return mi.MessageOf(x)
   317  }
   318  
   319  // Deprecated: Use GerritChange.ProtoReflect.Descriptor instead.
   320  func (*GerritChange) Descriptor() ([]byte, []int) {
   321  	return file_go_chromium_org_luci_analysis_proto_v1_sources_proto_rawDescGZIP(), []int{2}
   322  }
   323  
   324  func (x *GerritChange) GetHost() string {
   325  	if x != nil {
   326  		return x.Host
   327  	}
   328  	return ""
   329  }
   330  
   331  func (x *GerritChange) GetProject() string {
   332  	if x != nil {
   333  		return x.Project
   334  	}
   335  	return ""
   336  }
   337  
   338  func (x *GerritChange) GetChange() int64 {
   339  	if x != nil {
   340  		return x.Change
   341  	}
   342  	return 0
   343  }
   344  
   345  func (x *GerritChange) GetPatchset() int64 {
   346  	if x != nil {
   347  		return x.Patchset
   348  	}
   349  	return 0
   350  }
   351  
   352  func (x *GerritChange) GetOwnerKind() ChangelistOwnerKind {
   353  	if x != nil {
   354  		return x.OwnerKind
   355  	}
   356  	return ChangelistOwnerKind_CHANGELIST_OWNER_UNSPECIFIED
   357  }
   358  
   359  // Represents a reference in a source control system.
   360  type SourceRef struct {
   361  	state         protoimpl.MessageState
   362  	sizeCache     protoimpl.SizeCache
   363  	unknownFields protoimpl.UnknownFields
   364  
   365  	// The source control system used.
   366  	// Only gitiles is supported at this moment. If other systems need to be
   367  	// supported in future (e.g. non-gitiles git, subversion, google storage
   368  	// buckets), they can be added here
   369  	//
   370  	// Types that are assignable to System:
   371  	//
   372  	//	*SourceRef_Gitiles
   373  	System isSourceRef_System `protobuf_oneof:"system"`
   374  }
   375  
   376  func (x *SourceRef) Reset() {
   377  	*x = SourceRef{}
   378  	if protoimpl.UnsafeEnabled {
   379  		mi := &file_go_chromium_org_luci_analysis_proto_v1_sources_proto_msgTypes[3]
   380  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   381  		ms.StoreMessageInfo(mi)
   382  	}
   383  }
   384  
   385  func (x *SourceRef) String() string {
   386  	return protoimpl.X.MessageStringOf(x)
   387  }
   388  
   389  func (*SourceRef) ProtoMessage() {}
   390  
   391  func (x *SourceRef) ProtoReflect() protoreflect.Message {
   392  	mi := &file_go_chromium_org_luci_analysis_proto_v1_sources_proto_msgTypes[3]
   393  	if protoimpl.UnsafeEnabled && x != nil {
   394  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   395  		if ms.LoadMessageInfo() == nil {
   396  			ms.StoreMessageInfo(mi)
   397  		}
   398  		return ms
   399  	}
   400  	return mi.MessageOf(x)
   401  }
   402  
   403  // Deprecated: Use SourceRef.ProtoReflect.Descriptor instead.
   404  func (*SourceRef) Descriptor() ([]byte, []int) {
   405  	return file_go_chromium_org_luci_analysis_proto_v1_sources_proto_rawDescGZIP(), []int{3}
   406  }
   407  
   408  func (m *SourceRef) GetSystem() isSourceRef_System {
   409  	if m != nil {
   410  		return m.System
   411  	}
   412  	return nil
   413  }
   414  
   415  func (x *SourceRef) GetGitiles() *GitilesRef {
   416  	if x, ok := x.GetSystem().(*SourceRef_Gitiles); ok {
   417  		return x.Gitiles
   418  	}
   419  	return nil
   420  }
   421  
   422  type isSourceRef_System interface {
   423  	isSourceRef_System()
   424  }
   425  
   426  type SourceRef_Gitiles struct {
   427  	// A branch in gitiles repository.
   428  	Gitiles *GitilesRef `protobuf:"bytes,1,opt,name=gitiles,proto3,oneof"`
   429  }
   430  
   431  func (*SourceRef_Gitiles) isSourceRef_System() {}
   432  
   433  // Represents a branch in a gitiles repository.
   434  type GitilesRef struct {
   435  	state         protoimpl.MessageState
   436  	sizeCache     protoimpl.SizeCache
   437  	unknownFields protoimpl.UnknownFields
   438  
   439  	// The gitiles host, e.g. "chromium.googlesource.com".
   440  	Host string `protobuf:"bytes,1,opt,name=host,proto3" json:"host,omitempty"`
   441  	// The project on the gitiles host, e.g. "chromium/src".
   442  	Project string `protobuf:"bytes,2,opt,name=project,proto3" json:"project,omitempty"`
   443  	// Commit ref, e.g. "refs/heads/main" from which the commit was fetched.
   444  	// Not the branch name, use "refs/heads/branch"
   445  	Ref string `protobuf:"bytes,3,opt,name=ref,proto3" json:"ref,omitempty"`
   446  }
   447  
   448  func (x *GitilesRef) Reset() {
   449  	*x = GitilesRef{}
   450  	if protoimpl.UnsafeEnabled {
   451  		mi := &file_go_chromium_org_luci_analysis_proto_v1_sources_proto_msgTypes[4]
   452  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   453  		ms.StoreMessageInfo(mi)
   454  	}
   455  }
   456  
   457  func (x *GitilesRef) String() string {
   458  	return protoimpl.X.MessageStringOf(x)
   459  }
   460  
   461  func (*GitilesRef) ProtoMessage() {}
   462  
   463  func (x *GitilesRef) ProtoReflect() protoreflect.Message {
   464  	mi := &file_go_chromium_org_luci_analysis_proto_v1_sources_proto_msgTypes[4]
   465  	if protoimpl.UnsafeEnabled && x != nil {
   466  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   467  		if ms.LoadMessageInfo() == nil {
   468  			ms.StoreMessageInfo(mi)
   469  		}
   470  		return ms
   471  	}
   472  	return mi.MessageOf(x)
   473  }
   474  
   475  // Deprecated: Use GitilesRef.ProtoReflect.Descriptor instead.
   476  func (*GitilesRef) Descriptor() ([]byte, []int) {
   477  	return file_go_chromium_org_luci_analysis_proto_v1_sources_proto_rawDescGZIP(), []int{4}
   478  }
   479  
   480  func (x *GitilesRef) GetHost() string {
   481  	if x != nil {
   482  		return x.Host
   483  	}
   484  	return ""
   485  }
   486  
   487  func (x *GitilesRef) GetProject() string {
   488  	if x != nil {
   489  		return x.Project
   490  	}
   491  	return ""
   492  }
   493  
   494  func (x *GitilesRef) GetRef() string {
   495  	if x != nil {
   496  		return x.Ref
   497  	}
   498  	return ""
   499  }
   500  
   501  // A gerrit changelist.
   502  type Changelist struct {
   503  	state         protoimpl.MessageState
   504  	sizeCache     protoimpl.SizeCache
   505  	unknownFields protoimpl.UnknownFields
   506  
   507  	// Gerrit hostname, e.g. "chromium-review.googlesource.com".
   508  	Host string `protobuf:"bytes,1,opt,name=host,proto3" json:"host,omitempty"`
   509  	// Change number, e.g. 12345.
   510  	Change int64 `protobuf:"varint,2,opt,name=change,proto3" json:"change,omitempty"`
   511  	// Patch set number, e.g. 1.
   512  	Patchset int32 `protobuf:"varint,3,opt,name=patchset,proto3" json:"patchset,omitempty"`
   513  	// The kind of owner of the changelist.
   514  	OwnerKind ChangelistOwnerKind `protobuf:"varint,4,opt,name=owner_kind,json=ownerKind,proto3,enum=luci.analysis.v1.ChangelistOwnerKind" json:"owner_kind,omitempty"`
   515  }
   516  
   517  func (x *Changelist) Reset() {
   518  	*x = Changelist{}
   519  	if protoimpl.UnsafeEnabled {
   520  		mi := &file_go_chromium_org_luci_analysis_proto_v1_sources_proto_msgTypes[5]
   521  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   522  		ms.StoreMessageInfo(mi)
   523  	}
   524  }
   525  
   526  func (x *Changelist) String() string {
   527  	return protoimpl.X.MessageStringOf(x)
   528  }
   529  
   530  func (*Changelist) ProtoMessage() {}
   531  
   532  func (x *Changelist) ProtoReflect() protoreflect.Message {
   533  	mi := &file_go_chromium_org_luci_analysis_proto_v1_sources_proto_msgTypes[5]
   534  	if protoimpl.UnsafeEnabled && x != nil {
   535  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   536  		if ms.LoadMessageInfo() == nil {
   537  			ms.StoreMessageInfo(mi)
   538  		}
   539  		return ms
   540  	}
   541  	return mi.MessageOf(x)
   542  }
   543  
   544  // Deprecated: Use Changelist.ProtoReflect.Descriptor instead.
   545  func (*Changelist) Descriptor() ([]byte, []int) {
   546  	return file_go_chromium_org_luci_analysis_proto_v1_sources_proto_rawDescGZIP(), []int{5}
   547  }
   548  
   549  func (x *Changelist) GetHost() string {
   550  	if x != nil {
   551  		return x.Host
   552  	}
   553  	return ""
   554  }
   555  
   556  func (x *Changelist) GetChange() int64 {
   557  	if x != nil {
   558  		return x.Change
   559  	}
   560  	return 0
   561  }
   562  
   563  func (x *Changelist) GetPatchset() int32 {
   564  	if x != nil {
   565  		return x.Patchset
   566  	}
   567  	return 0
   568  }
   569  
   570  func (x *Changelist) GetOwnerKind() ChangelistOwnerKind {
   571  	if x != nil {
   572  		return x.OwnerKind
   573  	}
   574  	return ChangelistOwnerKind_CHANGELIST_OWNER_UNSPECIFIED
   575  }
   576  
   577  var File_go_chromium_org_luci_analysis_proto_v1_sources_proto protoreflect.FileDescriptor
   578  
   579  var file_go_chromium_org_luci_analysis_proto_v1_sources_proto_rawDesc = []byte{
   580  	0x0a, 0x34, 0x67, 0x6f, 0x2e, 0x63, 0x68, 0x72, 0x6f, 0x6d, 0x69, 0x75, 0x6d, 0x2e, 0x6f, 0x72,
   581  	0x67, 0x2f, 0x6c, 0x75, 0x63, 0x69, 0x2f, 0x61, 0x6e, 0x61, 0x6c, 0x79, 0x73, 0x69, 0x73, 0x2f,
   582  	0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x76, 0x31, 0x2f, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73,
   583  	0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x10, 0x6c, 0x75, 0x63, 0x69, 0x2e, 0x61, 0x6e, 0x61,
   584  	0x6c, 0x79, 0x73, 0x69, 0x73, 0x2e, 0x76, 0x31, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
   585  	0x2f, 0x61, 0x70, 0x69, 0x2f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x62, 0x65, 0x68, 0x61, 0x76,
   586  	0x69, 0x6f, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xae, 0x01, 0x0a, 0x07, 0x53, 0x6f,
   587  	0x75, 0x72, 0x63, 0x65, 0x73, 0x12, 0x46, 0x0a, 0x0e, 0x67, 0x69, 0x74, 0x69, 0x6c, 0x65, 0x73,
   588  	0x5f, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e,
   589  	0x6c, 0x75, 0x63, 0x69, 0x2e, 0x61, 0x6e, 0x61, 0x6c, 0x79, 0x73, 0x69, 0x73, 0x2e, 0x76, 0x31,
   590  	0x2e, 0x47, 0x69, 0x74, 0x69, 0x6c, 0x65, 0x73, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x52, 0x0d,
   591  	0x67, 0x69, 0x74, 0x69, 0x6c, 0x65, 0x73, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x12, 0x40, 0x0a,
   592  	0x0b, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x6c, 0x69, 0x73, 0x74, 0x73, 0x18, 0x02, 0x20, 0x03,
   593  	0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x6c, 0x75, 0x63, 0x69, 0x2e, 0x61, 0x6e, 0x61, 0x6c, 0x79, 0x73,
   594  	0x69, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x72, 0x72, 0x69, 0x74, 0x43, 0x68, 0x61, 0x6e,
   595  	0x67, 0x65, 0x52, 0x0b, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x6c, 0x69, 0x73, 0x74, 0x73, 0x12,
   596  	0x19, 0x0a, 0x08, 0x69, 0x73, 0x5f, 0x64, 0x69, 0x72, 0x74, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28,
   597  	0x08, 0x52, 0x07, 0x69, 0x73, 0x44, 0x69, 0x72, 0x74, 0x79, 0x22, 0x8c, 0x01, 0x0a, 0x0d, 0x47,
   598  	0x69, 0x74, 0x69, 0x6c, 0x65, 0x73, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x12, 0x12, 0x0a, 0x04,
   599  	0x68, 0x6f, 0x73, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x68, 0x6f, 0x73, 0x74,
   600  	0x12, 0x18, 0x0a, 0x07, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28,
   601  	0x09, 0x52, 0x07, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x12, 0x10, 0x0a, 0x03, 0x72, 0x65,
   602  	0x66, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x72, 0x65, 0x66, 0x12, 0x1f, 0x0a, 0x0b,
   603  	0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x5f, 0x68, 0x61, 0x73, 0x68, 0x18, 0x04, 0x20, 0x01, 0x28,
   604  	0x09, 0x52, 0x0a, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x48, 0x61, 0x73, 0x68, 0x12, 0x1a, 0x0a,
   605  	0x08, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x05, 0x20, 0x01, 0x28, 0x03, 0x52,
   606  	0x08, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0xbb, 0x01, 0x0a, 0x0c, 0x47, 0x65,
   607  	0x72, 0x72, 0x69, 0x74, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x68, 0x6f,
   608  	0x73, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x68, 0x6f, 0x73, 0x74, 0x12, 0x18,
   609  	0x0a, 0x07, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52,
   610  	0x07, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x63, 0x68, 0x61, 0x6e,
   611  	0x67, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65,
   612  	0x12, 0x1a, 0x0a, 0x08, 0x70, 0x61, 0x74, 0x63, 0x68, 0x73, 0x65, 0x74, 0x18, 0x03, 0x20, 0x01,
   613  	0x28, 0x03, 0x52, 0x08, 0x70, 0x61, 0x74, 0x63, 0x68, 0x73, 0x65, 0x74, 0x12, 0x49, 0x0a, 0x0a,
   614  	0x6f, 0x77, 0x6e, 0x65, 0x72, 0x5f, 0x6b, 0x69, 0x6e, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e,
   615  	0x32, 0x25, 0x2e, 0x6c, 0x75, 0x63, 0x69, 0x2e, 0x61, 0x6e, 0x61, 0x6c, 0x79, 0x73, 0x69, 0x73,
   616  	0x2e, 0x76, 0x31, 0x2e, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x6c, 0x69, 0x73, 0x74, 0x4f, 0x77,
   617  	0x6e, 0x65, 0x72, 0x4b, 0x69, 0x6e, 0x64, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x09, 0x6f, 0x77,
   618  	0x6e, 0x65, 0x72, 0x4b, 0x69, 0x6e, 0x64, 0x22, 0x4f, 0x0a, 0x09, 0x53, 0x6f, 0x75, 0x72, 0x63,
   619  	0x65, 0x52, 0x65, 0x66, 0x12, 0x38, 0x0a, 0x07, 0x67, 0x69, 0x74, 0x69, 0x6c, 0x65, 0x73, 0x18,
   620  	0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x6c, 0x75, 0x63, 0x69, 0x2e, 0x61, 0x6e, 0x61,
   621  	0x6c, 0x79, 0x73, 0x69, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x69, 0x74, 0x69, 0x6c, 0x65, 0x73,
   622  	0x52, 0x65, 0x66, 0x48, 0x00, 0x52, 0x07, 0x67, 0x69, 0x74, 0x69, 0x6c, 0x65, 0x73, 0x42, 0x08,
   623  	0x0a, 0x06, 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x22, 0x4c, 0x0a, 0x0a, 0x47, 0x69, 0x74, 0x69,
   624  	0x6c, 0x65, 0x73, 0x52, 0x65, 0x66, 0x12, 0x12, 0x0a, 0x04, 0x68, 0x6f, 0x73, 0x74, 0x18, 0x01,
   625  	0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x68, 0x6f, 0x73, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x70, 0x72,
   626  	0x6f, 0x6a, 0x65, 0x63, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x70, 0x72, 0x6f,
   627  	0x6a, 0x65, 0x63, 0x74, 0x12, 0x10, 0x0a, 0x03, 0x72, 0x65, 0x66, 0x18, 0x03, 0x20, 0x01, 0x28,
   628  	0x09, 0x52, 0x03, 0x72, 0x65, 0x66, 0x22, 0x9a, 0x01, 0x0a, 0x0a, 0x43, 0x68, 0x61, 0x6e, 0x67,
   629  	0x65, 0x6c, 0x69, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x68, 0x6f, 0x73, 0x74, 0x18, 0x01, 0x20,
   630  	0x01, 0x28, 0x09, 0x52, 0x04, 0x68, 0x6f, 0x73, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x63, 0x68, 0x61,
   631  	0x6e, 0x67, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x63, 0x68, 0x61, 0x6e, 0x67,
   632  	0x65, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x61, 0x74, 0x63, 0x68, 0x73, 0x65, 0x74, 0x18, 0x03, 0x20,
   633  	0x01, 0x28, 0x05, 0x52, 0x08, 0x70, 0x61, 0x74, 0x63, 0x68, 0x73, 0x65, 0x74, 0x12, 0x44, 0x0a,
   634  	0x0a, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x5f, 0x6b, 0x69, 0x6e, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28,
   635  	0x0e, 0x32, 0x25, 0x2e, 0x6c, 0x75, 0x63, 0x69, 0x2e, 0x61, 0x6e, 0x61, 0x6c, 0x79, 0x73, 0x69,
   636  	0x73, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x6c, 0x69, 0x73, 0x74, 0x4f,
   637  	0x77, 0x6e, 0x65, 0x72, 0x4b, 0x69, 0x6e, 0x64, 0x52, 0x09, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x4b,
   638  	0x69, 0x6e, 0x64, 0x2a, 0x52, 0x0a, 0x13, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x6c, 0x69, 0x73,
   639  	0x74, 0x4f, 0x77, 0x6e, 0x65, 0x72, 0x4b, 0x69, 0x6e, 0x64, 0x12, 0x20, 0x0a, 0x1c, 0x43, 0x48,
   640  	0x41, 0x4e, 0x47, 0x45, 0x4c, 0x49, 0x53, 0x54, 0x5f, 0x4f, 0x57, 0x4e, 0x45, 0x52, 0x5f, 0x55,
   641  	0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x09, 0x0a, 0x05,
   642  	0x48, 0x55, 0x4d, 0x41, 0x4e, 0x10, 0x01, 0x12, 0x0e, 0x0a, 0x0a, 0x41, 0x55, 0x54, 0x4f, 0x4d,
   643  	0x41, 0x54, 0x49, 0x4f, 0x4e, 0x10, 0x02, 0x42, 0x33, 0x5a, 0x31, 0x67, 0x6f, 0x2e, 0x63, 0x68,
   644  	0x72, 0x6f, 0x6d, 0x69, 0x75, 0x6d, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x6c, 0x75, 0x63, 0x69, 0x2f,
   645  	0x61, 0x6e, 0x61, 0x6c, 0x79, 0x73, 0x69, 0x73, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x76,
   646  	0x31, 0x3b, 0x61, 0x6e, 0x61, 0x6c, 0x79, 0x73, 0x69, 0x73, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72,
   647  	0x6f, 0x74, 0x6f, 0x33,
   648  }
   649  
   650  var (
   651  	file_go_chromium_org_luci_analysis_proto_v1_sources_proto_rawDescOnce sync.Once
   652  	file_go_chromium_org_luci_analysis_proto_v1_sources_proto_rawDescData = file_go_chromium_org_luci_analysis_proto_v1_sources_proto_rawDesc
   653  )
   654  
   655  func file_go_chromium_org_luci_analysis_proto_v1_sources_proto_rawDescGZIP() []byte {
   656  	file_go_chromium_org_luci_analysis_proto_v1_sources_proto_rawDescOnce.Do(func() {
   657  		file_go_chromium_org_luci_analysis_proto_v1_sources_proto_rawDescData = protoimpl.X.CompressGZIP(file_go_chromium_org_luci_analysis_proto_v1_sources_proto_rawDescData)
   658  	})
   659  	return file_go_chromium_org_luci_analysis_proto_v1_sources_proto_rawDescData
   660  }
   661  
   662  var file_go_chromium_org_luci_analysis_proto_v1_sources_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
   663  var file_go_chromium_org_luci_analysis_proto_v1_sources_proto_msgTypes = make([]protoimpl.MessageInfo, 6)
   664  var file_go_chromium_org_luci_analysis_proto_v1_sources_proto_goTypes = []interface{}{
   665  	(ChangelistOwnerKind)(0), // 0: luci.analysis.v1.ChangelistOwnerKind
   666  	(*Sources)(nil),          // 1: luci.analysis.v1.Sources
   667  	(*GitilesCommit)(nil),    // 2: luci.analysis.v1.GitilesCommit
   668  	(*GerritChange)(nil),     // 3: luci.analysis.v1.GerritChange
   669  	(*SourceRef)(nil),        // 4: luci.analysis.v1.SourceRef
   670  	(*GitilesRef)(nil),       // 5: luci.analysis.v1.GitilesRef
   671  	(*Changelist)(nil),       // 6: luci.analysis.v1.Changelist
   672  }
   673  var file_go_chromium_org_luci_analysis_proto_v1_sources_proto_depIdxs = []int32{
   674  	2, // 0: luci.analysis.v1.Sources.gitiles_commit:type_name -> luci.analysis.v1.GitilesCommit
   675  	3, // 1: luci.analysis.v1.Sources.changelists:type_name -> luci.analysis.v1.GerritChange
   676  	0, // 2: luci.analysis.v1.GerritChange.owner_kind:type_name -> luci.analysis.v1.ChangelistOwnerKind
   677  	5, // 3: luci.analysis.v1.SourceRef.gitiles:type_name -> luci.analysis.v1.GitilesRef
   678  	0, // 4: luci.analysis.v1.Changelist.owner_kind:type_name -> luci.analysis.v1.ChangelistOwnerKind
   679  	5, // [5:5] is the sub-list for method output_type
   680  	5, // [5:5] is the sub-list for method input_type
   681  	5, // [5:5] is the sub-list for extension type_name
   682  	5, // [5:5] is the sub-list for extension extendee
   683  	0, // [0:5] is the sub-list for field type_name
   684  }
   685  
   686  func init() { file_go_chromium_org_luci_analysis_proto_v1_sources_proto_init() }
   687  func file_go_chromium_org_luci_analysis_proto_v1_sources_proto_init() {
   688  	if File_go_chromium_org_luci_analysis_proto_v1_sources_proto != nil {
   689  		return
   690  	}
   691  	if !protoimpl.UnsafeEnabled {
   692  		file_go_chromium_org_luci_analysis_proto_v1_sources_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
   693  			switch v := v.(*Sources); i {
   694  			case 0:
   695  				return &v.state
   696  			case 1:
   697  				return &v.sizeCache
   698  			case 2:
   699  				return &v.unknownFields
   700  			default:
   701  				return nil
   702  			}
   703  		}
   704  		file_go_chromium_org_luci_analysis_proto_v1_sources_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
   705  			switch v := v.(*GitilesCommit); i {
   706  			case 0:
   707  				return &v.state
   708  			case 1:
   709  				return &v.sizeCache
   710  			case 2:
   711  				return &v.unknownFields
   712  			default:
   713  				return nil
   714  			}
   715  		}
   716  		file_go_chromium_org_luci_analysis_proto_v1_sources_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
   717  			switch v := v.(*GerritChange); i {
   718  			case 0:
   719  				return &v.state
   720  			case 1:
   721  				return &v.sizeCache
   722  			case 2:
   723  				return &v.unknownFields
   724  			default:
   725  				return nil
   726  			}
   727  		}
   728  		file_go_chromium_org_luci_analysis_proto_v1_sources_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
   729  			switch v := v.(*SourceRef); i {
   730  			case 0:
   731  				return &v.state
   732  			case 1:
   733  				return &v.sizeCache
   734  			case 2:
   735  				return &v.unknownFields
   736  			default:
   737  				return nil
   738  			}
   739  		}
   740  		file_go_chromium_org_luci_analysis_proto_v1_sources_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
   741  			switch v := v.(*GitilesRef); i {
   742  			case 0:
   743  				return &v.state
   744  			case 1:
   745  				return &v.sizeCache
   746  			case 2:
   747  				return &v.unknownFields
   748  			default:
   749  				return nil
   750  			}
   751  		}
   752  		file_go_chromium_org_luci_analysis_proto_v1_sources_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
   753  			switch v := v.(*Changelist); i {
   754  			case 0:
   755  				return &v.state
   756  			case 1:
   757  				return &v.sizeCache
   758  			case 2:
   759  				return &v.unknownFields
   760  			default:
   761  				return nil
   762  			}
   763  		}
   764  	}
   765  	file_go_chromium_org_luci_analysis_proto_v1_sources_proto_msgTypes[3].OneofWrappers = []interface{}{
   766  		(*SourceRef_Gitiles)(nil),
   767  	}
   768  	type x struct{}
   769  	out := protoimpl.TypeBuilder{
   770  		File: protoimpl.DescBuilder{
   771  			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
   772  			RawDescriptor: file_go_chromium_org_luci_analysis_proto_v1_sources_proto_rawDesc,
   773  			NumEnums:      1,
   774  			NumMessages:   6,
   775  			NumExtensions: 0,
   776  			NumServices:   0,
   777  		},
   778  		GoTypes:           file_go_chromium_org_luci_analysis_proto_v1_sources_proto_goTypes,
   779  		DependencyIndexes: file_go_chromium_org_luci_analysis_proto_v1_sources_proto_depIdxs,
   780  		EnumInfos:         file_go_chromium_org_luci_analysis_proto_v1_sources_proto_enumTypes,
   781  		MessageInfos:      file_go_chromium_org_luci_analysis_proto_v1_sources_proto_msgTypes,
   782  	}.Build()
   783  	File_go_chromium_org_luci_analysis_proto_v1_sources_proto = out.File
   784  	file_go_chromium_org_luci_analysis_proto_v1_sources_proto_rawDesc = nil
   785  	file_go_chromium_org_luci_analysis_proto_v1_sources_proto_goTypes = nil
   786  	file_go_chromium_org_luci_analysis_proto_v1_sources_proto_depIdxs = nil
   787  }