go.chromium.org/luci@v0.0.0-20240309015107-7cdc2e660f33/cv/internal/gerrit/storage.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.31.0
    18  // 	protoc        v3.21.7
    19  // source: go.chromium.org/luci/cv/internal/gerrit/storage.proto
    20  
    21  package gerrit
    22  
    23  import (
    24  	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
    25  	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
    26  	reflect "reflect"
    27  	sync "sync"
    28  )
    29  
    30  const (
    31  	// Verify that this generated code is sufficiently up-to-date.
    32  	_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
    33  	// Verify that runtime/protoimpl is sufficiently up-to-date.
    34  	_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
    35  )
    36  
    37  // Whom identifies one or a group of Gerrit users involved in the code review
    38  // workflow.
    39  type Whom int32
    40  
    41  const (
    42  	Whom_NONE Whom = 0
    43  	// CL owner.
    44  	Whom_OWNER Whom = 1
    45  	// CL Reviewers
    46  	Whom_REVIEWERS Whom = 2
    47  	// Who have voted on the CQ label.
    48  	Whom_CQ_VOTERS Whom = 3
    49  	// Uploader of the patchset that triggered a "New Patchset" Run.
    50  	Whom_PS_UPLOADER Whom = 4
    51  )
    52  
    53  // Enum value maps for Whom.
    54  var (
    55  	Whom_name = map[int32]string{
    56  		0: "NONE",
    57  		1: "OWNER",
    58  		2: "REVIEWERS",
    59  		3: "CQ_VOTERS",
    60  		4: "PS_UPLOADER",
    61  	}
    62  	Whom_value = map[string]int32{
    63  		"NONE":        0,
    64  		"OWNER":       1,
    65  		"REVIEWERS":   2,
    66  		"CQ_VOTERS":   3,
    67  		"PS_UPLOADER": 4,
    68  	}
    69  )
    70  
    71  func (x Whom) Enum() *Whom {
    72  	p := new(Whom)
    73  	*p = x
    74  	return p
    75  }
    76  
    77  func (x Whom) String() string {
    78  	return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
    79  }
    80  
    81  func (Whom) Descriptor() protoreflect.EnumDescriptor {
    82  	return file_go_chromium_org_luci_cv_internal_gerrit_storage_proto_enumTypes[0].Descriptor()
    83  }
    84  
    85  func (Whom) Type() protoreflect.EnumType {
    86  	return &file_go_chromium_org_luci_cv_internal_gerrit_storage_proto_enumTypes[0]
    87  }
    88  
    89  func (x Whom) Number() protoreflect.EnumNumber {
    90  	return protoreflect.EnumNumber(x)
    91  }
    92  
    93  // Deprecated: Use Whom.Descriptor instead.
    94  func (Whom) EnumDescriptor() ([]byte, []int) {
    95  	return file_go_chromium_org_luci_cv_internal_gerrit_storage_proto_rawDescGZIP(), []int{0}
    96  }
    97  
    98  var File_go_chromium_org_luci_cv_internal_gerrit_storage_proto protoreflect.FileDescriptor
    99  
   100  var file_go_chromium_org_luci_cv_internal_gerrit_storage_proto_rawDesc = []byte{
   101  	0x0a, 0x35, 0x67, 0x6f, 0x2e, 0x63, 0x68, 0x72, 0x6f, 0x6d, 0x69, 0x75, 0x6d, 0x2e, 0x6f, 0x72,
   102  	0x67, 0x2f, 0x6c, 0x75, 0x63, 0x69, 0x2f, 0x63, 0x76, 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e,
   103  	0x61, 0x6c, 0x2f, 0x67, 0x65, 0x72, 0x72, 0x69, 0x74, 0x2f, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67,
   104  	0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x12, 0x63, 0x76, 0x2e, 0x69, 0x6e, 0x74, 0x65,
   105  	0x72, 0x6e, 0x61, 0x6c, 0x2e, 0x67, 0x65, 0x72, 0x72, 0x69, 0x74, 0x2a, 0x4a, 0x0a, 0x04, 0x57,
   106  	0x68, 0x6f, 0x6d, 0x12, 0x08, 0x0a, 0x04, 0x4e, 0x4f, 0x4e, 0x45, 0x10, 0x00, 0x12, 0x09, 0x0a,
   107  	0x05, 0x4f, 0x57, 0x4e, 0x45, 0x52, 0x10, 0x01, 0x12, 0x0d, 0x0a, 0x09, 0x52, 0x45, 0x56, 0x49,
   108  	0x45, 0x57, 0x45, 0x52, 0x53, 0x10, 0x02, 0x12, 0x0d, 0x0a, 0x09, 0x43, 0x51, 0x5f, 0x56, 0x4f,
   109  	0x54, 0x45, 0x52, 0x53, 0x10, 0x03, 0x12, 0x0f, 0x0a, 0x0b, 0x50, 0x53, 0x5f, 0x55, 0x50, 0x4c,
   110  	0x4f, 0x41, 0x44, 0x45, 0x52, 0x10, 0x04, 0x42, 0x29, 0x5a, 0x27, 0x67, 0x6f, 0x2e, 0x63, 0x68,
   111  	0x72, 0x6f, 0x6d, 0x69, 0x75, 0x6d, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x6c, 0x75, 0x63, 0x69, 0x2f,
   112  	0x63, 0x76, 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2f, 0x67, 0x65, 0x72, 0x72,
   113  	0x69, 0x74, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
   114  }
   115  
   116  var (
   117  	file_go_chromium_org_luci_cv_internal_gerrit_storage_proto_rawDescOnce sync.Once
   118  	file_go_chromium_org_luci_cv_internal_gerrit_storage_proto_rawDescData = file_go_chromium_org_luci_cv_internal_gerrit_storage_proto_rawDesc
   119  )
   120  
   121  func file_go_chromium_org_luci_cv_internal_gerrit_storage_proto_rawDescGZIP() []byte {
   122  	file_go_chromium_org_luci_cv_internal_gerrit_storage_proto_rawDescOnce.Do(func() {
   123  		file_go_chromium_org_luci_cv_internal_gerrit_storage_proto_rawDescData = protoimpl.X.CompressGZIP(file_go_chromium_org_luci_cv_internal_gerrit_storage_proto_rawDescData)
   124  	})
   125  	return file_go_chromium_org_luci_cv_internal_gerrit_storage_proto_rawDescData
   126  }
   127  
   128  var file_go_chromium_org_luci_cv_internal_gerrit_storage_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
   129  var file_go_chromium_org_luci_cv_internal_gerrit_storage_proto_goTypes = []interface{}{
   130  	(Whom)(0), // 0: cv.internal.gerrit.Whom
   131  }
   132  var file_go_chromium_org_luci_cv_internal_gerrit_storage_proto_depIdxs = []int32{
   133  	0, // [0:0] is the sub-list for method output_type
   134  	0, // [0:0] is the sub-list for method input_type
   135  	0, // [0:0] is the sub-list for extension type_name
   136  	0, // [0:0] is the sub-list for extension extendee
   137  	0, // [0:0] is the sub-list for field type_name
   138  }
   139  
   140  func init() { file_go_chromium_org_luci_cv_internal_gerrit_storage_proto_init() }
   141  func file_go_chromium_org_luci_cv_internal_gerrit_storage_proto_init() {
   142  	if File_go_chromium_org_luci_cv_internal_gerrit_storage_proto != nil {
   143  		return
   144  	}
   145  	type x struct{}
   146  	out := protoimpl.TypeBuilder{
   147  		File: protoimpl.DescBuilder{
   148  			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
   149  			RawDescriptor: file_go_chromium_org_luci_cv_internal_gerrit_storage_proto_rawDesc,
   150  			NumEnums:      1,
   151  			NumMessages:   0,
   152  			NumExtensions: 0,
   153  			NumServices:   0,
   154  		},
   155  		GoTypes:           file_go_chromium_org_luci_cv_internal_gerrit_storage_proto_goTypes,
   156  		DependencyIndexes: file_go_chromium_org_luci_cv_internal_gerrit_storage_proto_depIdxs,
   157  		EnumInfos:         file_go_chromium_org_luci_cv_internal_gerrit_storage_proto_enumTypes,
   158  	}.Build()
   159  	File_go_chromium_org_luci_cv_internal_gerrit_storage_proto = out.File
   160  	file_go_chromium_org_luci_cv_internal_gerrit_storage_proto_rawDesc = nil
   161  	file_go_chromium_org_luci_cv_internal_gerrit_storage_proto_goTypes = nil
   162  	file_go_chromium_org_luci_cv_internal_gerrit_storage_proto_depIdxs = nil
   163  }