go.chromium.org/luci@v0.0.0-20240309015107-7cdc2e660f33/analysis/internal/bugs/monorail/migration/proto/migration_service.pb.go (about) 1 // Copyright 2024 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/analysis/internal/bugs/monorail/migration/proto/migration_service.proto 20 21 package migrationpb 22 23 import prpc "go.chromium.org/luci/grpc/prpc" 24 25 import ( 26 context "context" 27 grpc "google.golang.org/grpc" 28 codes "google.golang.org/grpc/codes" 29 status "google.golang.org/grpc/status" 30 protoreflect "google.golang.org/protobuf/reflect/protoreflect" 31 protoimpl "google.golang.org/protobuf/runtime/protoimpl" 32 reflect "reflect" 33 sync "sync" 34 ) 35 36 const ( 37 // Verify that this generated code is sufficiently up-to-date. 38 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) 39 // Verify that runtime/protoimpl is sufficiently up-to-date. 40 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) 41 ) 42 43 // Request used to migrate a project's rules from monorail to buganizer. 44 type MigrateProjectRequest struct { 45 state protoimpl.MessageState 46 sizeCache protoimpl.SizeCache 47 unknownFields protoimpl.UnknownFields 48 49 // The LUCI Project to migrate. 50 Project string `protobuf:"bytes,1,opt,name=project,proto3" json:"project,omitempty"` 51 // The maximum number of rules to process in one request. This allows 52 // migration to be validated on a small number of rules before migrating all. 53 // If unset, no rules are migrated. 54 MaxRules int64 `protobuf:"varint,2,opt,name=max_rules,json=maxRules,proto3" json:"max_rules,omitempty"` 55 } 56 57 func (x *MigrateProjectRequest) Reset() { 58 *x = MigrateProjectRequest{} 59 if protoimpl.UnsafeEnabled { 60 mi := &file_go_chromium_org_luci_analysis_internal_bugs_monorail_migration_proto_migration_service_proto_msgTypes[0] 61 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 62 ms.StoreMessageInfo(mi) 63 } 64 } 65 66 func (x *MigrateProjectRequest) String() string { 67 return protoimpl.X.MessageStringOf(x) 68 } 69 70 func (*MigrateProjectRequest) ProtoMessage() {} 71 72 func (x *MigrateProjectRequest) ProtoReflect() protoreflect.Message { 73 mi := &file_go_chromium_org_luci_analysis_internal_bugs_monorail_migration_proto_migration_service_proto_msgTypes[0] 74 if protoimpl.UnsafeEnabled && x != nil { 75 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 76 if ms.LoadMessageInfo() == nil { 77 ms.StoreMessageInfo(mi) 78 } 79 return ms 80 } 81 return mi.MessageOf(x) 82 } 83 84 // Deprecated: Use MigrateProjectRequest.ProtoReflect.Descriptor instead. 85 func (*MigrateProjectRequest) Descriptor() ([]byte, []int) { 86 return file_go_chromium_org_luci_analysis_internal_bugs_monorail_migration_proto_migration_service_proto_rawDescGZIP(), []int{0} 87 } 88 89 func (x *MigrateProjectRequest) GetProject() string { 90 if x != nil { 91 return x.Project 92 } 93 return "" 94 } 95 96 func (x *MigrateProjectRequest) GetMaxRules() int64 { 97 if x != nil { 98 return x.MaxRules 99 } 100 return 0 101 } 102 103 // Response of creating a sample issue. 104 type MigrateProjectResponse struct { 105 state protoimpl.MessageState 106 sizeCache protoimpl.SizeCache 107 unknownFields protoimpl.UnknownFields 108 109 // The number of rules which migration was attempted due to nearing request timeout. 110 RulesNotStarted int64 `protobuf:"varint,1,opt,name=rules_not_started,json=rulesNotStarted,proto3" json:"rules_not_started,omitempty"` 111 // The results of rules for which a migration was attempted. 112 RuleResults []*MigrateProjectResponse_RuleResult `protobuf:"bytes,2,rep,name=rule_results,json=ruleResults,proto3" json:"rule_results,omitempty"` 113 } 114 115 func (x *MigrateProjectResponse) Reset() { 116 *x = MigrateProjectResponse{} 117 if protoimpl.UnsafeEnabled { 118 mi := &file_go_chromium_org_luci_analysis_internal_bugs_monorail_migration_proto_migration_service_proto_msgTypes[1] 119 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 120 ms.StoreMessageInfo(mi) 121 } 122 } 123 124 func (x *MigrateProjectResponse) String() string { 125 return protoimpl.X.MessageStringOf(x) 126 } 127 128 func (*MigrateProjectResponse) ProtoMessage() {} 129 130 func (x *MigrateProjectResponse) ProtoReflect() protoreflect.Message { 131 mi := &file_go_chromium_org_luci_analysis_internal_bugs_monorail_migration_proto_migration_service_proto_msgTypes[1] 132 if protoimpl.UnsafeEnabled && x != nil { 133 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 134 if ms.LoadMessageInfo() == nil { 135 ms.StoreMessageInfo(mi) 136 } 137 return ms 138 } 139 return mi.MessageOf(x) 140 } 141 142 // Deprecated: Use MigrateProjectResponse.ProtoReflect.Descriptor instead. 143 func (*MigrateProjectResponse) Descriptor() ([]byte, []int) { 144 return file_go_chromium_org_luci_analysis_internal_bugs_monorail_migration_proto_migration_service_proto_rawDescGZIP(), []int{1} 145 } 146 147 func (x *MigrateProjectResponse) GetRulesNotStarted() int64 { 148 if x != nil { 149 return x.RulesNotStarted 150 } 151 return 0 152 } 153 154 func (x *MigrateProjectResponse) GetRuleResults() []*MigrateProjectResponse_RuleResult { 155 if x != nil { 156 return x.RuleResults 157 } 158 return nil 159 } 160 161 type MigrateProjectResponse_RuleResult struct { 162 state protoimpl.MessageState 163 sizeCache protoimpl.SizeCache 164 unknownFields protoimpl.UnknownFields 165 166 // The identifier of the rule to be migrated. 167 RuleId string `protobuf:"bytes,1,opt,name=rule_id,json=ruleId,proto3" json:"rule_id,omitempty"` 168 // The identifier of the monorail bug. 169 MonorailBugId string `protobuf:"bytes,2,opt,name=monorail_bug_id,json=monorailBugId,proto3" json:"monorail_bug_id,omitempty"` 170 // The identifier of the buganizer bug it was to be migrated to. 171 BuganizerBugId string `protobuf:"bytes,3,opt,name=buganizer_bug_id,json=buganizerBugId,proto3" json:"buganizer_bug_id,omitempty"` 172 // The error (if any) migrating the rule. 173 Error string `protobuf:"bytes,4,opt,name=error,proto3" json:"error,omitempty"` 174 } 175 176 func (x *MigrateProjectResponse_RuleResult) Reset() { 177 *x = MigrateProjectResponse_RuleResult{} 178 if protoimpl.UnsafeEnabled { 179 mi := &file_go_chromium_org_luci_analysis_internal_bugs_monorail_migration_proto_migration_service_proto_msgTypes[2] 180 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 181 ms.StoreMessageInfo(mi) 182 } 183 } 184 185 func (x *MigrateProjectResponse_RuleResult) String() string { 186 return protoimpl.X.MessageStringOf(x) 187 } 188 189 func (*MigrateProjectResponse_RuleResult) ProtoMessage() {} 190 191 func (x *MigrateProjectResponse_RuleResult) ProtoReflect() protoreflect.Message { 192 mi := &file_go_chromium_org_luci_analysis_internal_bugs_monorail_migration_proto_migration_service_proto_msgTypes[2] 193 if protoimpl.UnsafeEnabled && x != nil { 194 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 195 if ms.LoadMessageInfo() == nil { 196 ms.StoreMessageInfo(mi) 197 } 198 return ms 199 } 200 return mi.MessageOf(x) 201 } 202 203 // Deprecated: Use MigrateProjectResponse_RuleResult.ProtoReflect.Descriptor instead. 204 func (*MigrateProjectResponse_RuleResult) Descriptor() ([]byte, []int) { 205 return file_go_chromium_org_luci_analysis_internal_bugs_monorail_migration_proto_migration_service_proto_rawDescGZIP(), []int{1, 0} 206 } 207 208 func (x *MigrateProjectResponse_RuleResult) GetRuleId() string { 209 if x != nil { 210 return x.RuleId 211 } 212 return "" 213 } 214 215 func (x *MigrateProjectResponse_RuleResult) GetMonorailBugId() string { 216 if x != nil { 217 return x.MonorailBugId 218 } 219 return "" 220 } 221 222 func (x *MigrateProjectResponse_RuleResult) GetBuganizerBugId() string { 223 if x != nil { 224 return x.BuganizerBugId 225 } 226 return "" 227 } 228 229 func (x *MigrateProjectResponse_RuleResult) GetError() string { 230 if x != nil { 231 return x.Error 232 } 233 return "" 234 } 235 236 var File_go_chromium_org_luci_analysis_internal_bugs_monorail_migration_proto_migration_service_proto protoreflect.FileDescriptor 237 238 var file_go_chromium_org_luci_analysis_internal_bugs_monorail_migration_proto_migration_service_proto_rawDesc = []byte{ 239 0x0a, 0x5c, 0x67, 0x6f, 0x2e, 0x63, 0x68, 0x72, 0x6f, 0x6d, 0x69, 0x75, 0x6d, 0x2e, 0x6f, 0x72, 240 0x67, 0x2f, 0x6c, 0x75, 0x63, 0x69, 0x2f, 0x61, 0x6e, 0x61, 0x6c, 0x79, 0x73, 0x69, 0x73, 0x2f, 241 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2f, 0x62, 0x75, 0x67, 0x73, 0x2f, 0x6d, 0x6f, 242 0x6e, 0x6f, 0x72, 0x61, 0x69, 0x6c, 0x2f, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 243 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 244 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x2e, 245 0x6c, 0x75, 0x63, 0x69, 0x2e, 0x61, 0x6e, 0x61, 0x6c, 0x79, 0x73, 0x69, 0x73, 0x2e, 0x69, 0x6e, 246 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2e, 0x62, 0x75, 0x67, 0x73, 0x2e, 0x6d, 0x6f, 0x6e, 0x6f, 247 0x72, 0x61, 0x69, 0x6c, 0x2e, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x4e, 248 0x0a, 0x15, 0x4d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x65, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 249 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x70, 0x72, 0x6f, 0x6a, 0x65, 250 0x63, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 251 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x6d, 0x61, 0x78, 0x5f, 0x72, 0x75, 0x6c, 0x65, 0x73, 0x18, 0x02, 252 0x20, 0x01, 0x28, 0x03, 0x52, 0x08, 0x6d, 0x61, 0x78, 0x52, 0x75, 0x6c, 0x65, 0x73, 0x22, 0xca, 253 0x02, 0x0a, 0x16, 0x4d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x65, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 254 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2a, 0x0a, 0x11, 0x72, 0x75, 0x6c, 255 0x65, 0x73, 0x5f, 0x6e, 0x6f, 0x74, 0x5f, 0x73, 0x74, 0x61, 0x72, 0x74, 0x65, 0x64, 0x18, 0x01, 256 0x20, 0x01, 0x28, 0x03, 0x52, 0x0f, 0x72, 0x75, 0x6c, 0x65, 0x73, 0x4e, 0x6f, 0x74, 0x53, 0x74, 257 0x61, 0x72, 0x74, 0x65, 0x64, 0x12, 0x74, 0x0a, 0x0c, 0x72, 0x75, 0x6c, 0x65, 0x5f, 0x72, 0x65, 258 0x73, 0x75, 0x6c, 0x74, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x51, 0x2e, 0x6c, 0x75, 259 0x63, 0x69, 0x2e, 0x61, 0x6e, 0x61, 0x6c, 0x79, 0x73, 0x69, 0x73, 0x2e, 0x69, 0x6e, 0x74, 0x65, 260 0x72, 0x6e, 0x61, 0x6c, 0x2e, 0x62, 0x75, 0x67, 0x73, 0x2e, 0x6d, 0x6f, 0x6e, 0x6f, 0x72, 0x61, 261 0x69, 0x6c, 0x2e, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x4d, 0x69, 0x67, 262 0x72, 0x61, 0x74, 0x65, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 263 0x6e, 0x73, 0x65, 0x2e, 0x52, 0x75, 0x6c, 0x65, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x52, 0x0b, 264 0x72, 0x75, 0x6c, 0x65, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x1a, 0x8d, 0x01, 0x0a, 0x0a, 265 0x52, 0x75, 0x6c, 0x65, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x12, 0x17, 0x0a, 0x07, 0x72, 0x75, 266 0x6c, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x72, 0x75, 0x6c, 267 0x65, 0x49, 0x64, 0x12, 0x26, 0x0a, 0x0f, 0x6d, 0x6f, 0x6e, 0x6f, 0x72, 0x61, 0x69, 0x6c, 0x5f, 268 0x62, 0x75, 0x67, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x6d, 0x6f, 269 0x6e, 0x6f, 0x72, 0x61, 0x69, 0x6c, 0x42, 0x75, 0x67, 0x49, 0x64, 0x12, 0x28, 0x0a, 0x10, 0x62, 270 0x75, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x65, 0x72, 0x5f, 0x62, 0x75, 0x67, 0x5f, 0x69, 0x64, 0x18, 271 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x62, 0x75, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x65, 0x72, 272 0x42, 0x75, 0x67, 0x49, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x18, 0x04, 273 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x32, 0xb7, 0x01, 0x0a, 0x11, 274 0x4d, 0x6f, 0x6e, 0x6f, 0x72, 0x61, 0x69, 0x6c, 0x4d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 275 0x6e, 0x12, 0xa1, 0x01, 0x0a, 0x0e, 0x4d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x65, 0x50, 0x72, 0x6f, 276 0x6a, 0x65, 0x63, 0x74, 0x12, 0x45, 0x2e, 0x6c, 0x75, 0x63, 0x69, 0x2e, 0x61, 0x6e, 0x61, 0x6c, 277 0x79, 0x73, 0x69, 0x73, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2e, 0x62, 0x75, 278 0x67, 0x73, 0x2e, 0x6d, 0x6f, 0x6e, 0x6f, 0x72, 0x61, 0x69, 0x6c, 0x2e, 0x6d, 0x69, 0x67, 0x72, 279 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x4d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x65, 0x50, 0x72, 0x6f, 280 0x6a, 0x65, 0x63, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x46, 0x2e, 0x6c, 0x75, 281 0x63, 0x69, 0x2e, 0x61, 0x6e, 0x61, 0x6c, 0x79, 0x73, 0x69, 0x73, 0x2e, 0x69, 0x6e, 0x74, 0x65, 282 0x72, 0x6e, 0x61, 0x6c, 0x2e, 0x62, 0x75, 0x67, 0x73, 0x2e, 0x6d, 0x6f, 0x6e, 0x6f, 0x72, 0x61, 283 0x69, 0x6c, 0x2e, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x4d, 0x69, 0x67, 284 0x72, 0x61, 0x74, 0x65, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 285 0x6e, 0x73, 0x65, 0x22, 0x00, 0x42, 0x52, 0x5a, 0x50, 0x67, 0x6f, 0x2e, 0x63, 0x68, 0x72, 0x6f, 286 0x6d, 0x69, 0x75, 0x6d, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x6c, 0x75, 0x63, 0x69, 0x2f, 0x61, 0x6e, 287 0x61, 0x6c, 0x79, 0x73, 0x69, 0x73, 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2f, 288 0x62, 0x75, 0x67, 0x73, 0x2f, 0x6d, 0x6f, 0x6e, 0x6f, 0x72, 0x61, 0x69, 0x6c, 0x2f, 0x6d, 0x69, 289 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x3b, 0x6d, 0x69, 290 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 291 0x33, 292 } 293 294 var ( 295 file_go_chromium_org_luci_analysis_internal_bugs_monorail_migration_proto_migration_service_proto_rawDescOnce sync.Once 296 file_go_chromium_org_luci_analysis_internal_bugs_monorail_migration_proto_migration_service_proto_rawDescData = file_go_chromium_org_luci_analysis_internal_bugs_monorail_migration_proto_migration_service_proto_rawDesc 297 ) 298 299 func file_go_chromium_org_luci_analysis_internal_bugs_monorail_migration_proto_migration_service_proto_rawDescGZIP() []byte { 300 file_go_chromium_org_luci_analysis_internal_bugs_monorail_migration_proto_migration_service_proto_rawDescOnce.Do(func() { 301 file_go_chromium_org_luci_analysis_internal_bugs_monorail_migration_proto_migration_service_proto_rawDescData = protoimpl.X.CompressGZIP(file_go_chromium_org_luci_analysis_internal_bugs_monorail_migration_proto_migration_service_proto_rawDescData) 302 }) 303 return file_go_chromium_org_luci_analysis_internal_bugs_monorail_migration_proto_migration_service_proto_rawDescData 304 } 305 306 var file_go_chromium_org_luci_analysis_internal_bugs_monorail_migration_proto_migration_service_proto_msgTypes = make([]protoimpl.MessageInfo, 3) 307 var file_go_chromium_org_luci_analysis_internal_bugs_monorail_migration_proto_migration_service_proto_goTypes = []interface{}{ 308 (*MigrateProjectRequest)(nil), // 0: luci.analysis.internal.bugs.monorail.migration.MigrateProjectRequest 309 (*MigrateProjectResponse)(nil), // 1: luci.analysis.internal.bugs.monorail.migration.MigrateProjectResponse 310 (*MigrateProjectResponse_RuleResult)(nil), // 2: luci.analysis.internal.bugs.monorail.migration.MigrateProjectResponse.RuleResult 311 } 312 var file_go_chromium_org_luci_analysis_internal_bugs_monorail_migration_proto_migration_service_proto_depIdxs = []int32{ 313 2, // 0: luci.analysis.internal.bugs.monorail.migration.MigrateProjectResponse.rule_results:type_name -> luci.analysis.internal.bugs.monorail.migration.MigrateProjectResponse.RuleResult 314 0, // 1: luci.analysis.internal.bugs.monorail.migration.MonorailMigration.MigrateProject:input_type -> luci.analysis.internal.bugs.monorail.migration.MigrateProjectRequest 315 1, // 2: luci.analysis.internal.bugs.monorail.migration.MonorailMigration.MigrateProject:output_type -> luci.analysis.internal.bugs.monorail.migration.MigrateProjectResponse 316 2, // [2:3] is the sub-list for method output_type 317 1, // [1:2] is the sub-list for method input_type 318 1, // [1:1] is the sub-list for extension type_name 319 1, // [1:1] is the sub-list for extension extendee 320 0, // [0:1] is the sub-list for field type_name 321 } 322 323 func init() { 324 file_go_chromium_org_luci_analysis_internal_bugs_monorail_migration_proto_migration_service_proto_init() 325 } 326 func file_go_chromium_org_luci_analysis_internal_bugs_monorail_migration_proto_migration_service_proto_init() { 327 if File_go_chromium_org_luci_analysis_internal_bugs_monorail_migration_proto_migration_service_proto != nil { 328 return 329 } 330 if !protoimpl.UnsafeEnabled { 331 file_go_chromium_org_luci_analysis_internal_bugs_monorail_migration_proto_migration_service_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 332 switch v := v.(*MigrateProjectRequest); i { 333 case 0: 334 return &v.state 335 case 1: 336 return &v.sizeCache 337 case 2: 338 return &v.unknownFields 339 default: 340 return nil 341 } 342 } 343 file_go_chromium_org_luci_analysis_internal_bugs_monorail_migration_proto_migration_service_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { 344 switch v := v.(*MigrateProjectResponse); i { 345 case 0: 346 return &v.state 347 case 1: 348 return &v.sizeCache 349 case 2: 350 return &v.unknownFields 351 default: 352 return nil 353 } 354 } 355 file_go_chromium_org_luci_analysis_internal_bugs_monorail_migration_proto_migration_service_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { 356 switch v := v.(*MigrateProjectResponse_RuleResult); i { 357 case 0: 358 return &v.state 359 case 1: 360 return &v.sizeCache 361 case 2: 362 return &v.unknownFields 363 default: 364 return nil 365 } 366 } 367 } 368 type x struct{} 369 out := protoimpl.TypeBuilder{ 370 File: protoimpl.DescBuilder{ 371 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 372 RawDescriptor: file_go_chromium_org_luci_analysis_internal_bugs_monorail_migration_proto_migration_service_proto_rawDesc, 373 NumEnums: 0, 374 NumMessages: 3, 375 NumExtensions: 0, 376 NumServices: 1, 377 }, 378 GoTypes: file_go_chromium_org_luci_analysis_internal_bugs_monorail_migration_proto_migration_service_proto_goTypes, 379 DependencyIndexes: file_go_chromium_org_luci_analysis_internal_bugs_monorail_migration_proto_migration_service_proto_depIdxs, 380 MessageInfos: file_go_chromium_org_luci_analysis_internal_bugs_monorail_migration_proto_migration_service_proto_msgTypes, 381 }.Build() 382 File_go_chromium_org_luci_analysis_internal_bugs_monorail_migration_proto_migration_service_proto = out.File 383 file_go_chromium_org_luci_analysis_internal_bugs_monorail_migration_proto_migration_service_proto_rawDesc = nil 384 file_go_chromium_org_luci_analysis_internal_bugs_monorail_migration_proto_migration_service_proto_goTypes = nil 385 file_go_chromium_org_luci_analysis_internal_bugs_monorail_migration_proto_migration_service_proto_depIdxs = nil 386 } 387 388 // Reference imports to suppress errors if they are not otherwise used. 389 var _ context.Context 390 var _ grpc.ClientConnInterface 391 392 // This is a compile-time assertion to ensure that this generated file 393 // is compatible with the grpc package it is being compiled against. 394 const _ = grpc.SupportPackageIsVersion6 395 396 // MonorailMigrationClient is the client API for MonorailMigration service. 397 // 398 // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. 399 type MonorailMigrationClient interface { 400 // MigrateProject migrates a project's failure association rules from 401 // using monorail bugs to using buganizer bugs. The buganizer bug 402 // corresponding to a monorail bug is as returned by monorail. 403 MigrateProject(ctx context.Context, in *MigrateProjectRequest, opts ...grpc.CallOption) (*MigrateProjectResponse, error) 404 } 405 type monorailMigrationPRPCClient struct { 406 client *prpc.Client 407 } 408 409 func NewMonorailMigrationPRPCClient(client *prpc.Client) MonorailMigrationClient { 410 return &monorailMigrationPRPCClient{client} 411 } 412 413 func (c *monorailMigrationPRPCClient) MigrateProject(ctx context.Context, in *MigrateProjectRequest, opts ...grpc.CallOption) (*MigrateProjectResponse, error) { 414 out := new(MigrateProjectResponse) 415 err := c.client.Call(ctx, "luci.analysis.internal.bugs.monorail.migration.MonorailMigration", "MigrateProject", in, out, opts...) 416 if err != nil { 417 return nil, err 418 } 419 return out, nil 420 } 421 422 type monorailMigrationClient struct { 423 cc grpc.ClientConnInterface 424 } 425 426 func NewMonorailMigrationClient(cc grpc.ClientConnInterface) MonorailMigrationClient { 427 return &monorailMigrationClient{cc} 428 } 429 430 func (c *monorailMigrationClient) MigrateProject(ctx context.Context, in *MigrateProjectRequest, opts ...grpc.CallOption) (*MigrateProjectResponse, error) { 431 out := new(MigrateProjectResponse) 432 err := c.cc.Invoke(ctx, "/luci.analysis.internal.bugs.monorail.migration.MonorailMigration/MigrateProject", in, out, opts...) 433 if err != nil { 434 return nil, err 435 } 436 return out, nil 437 } 438 439 // MonorailMigrationServer is the server API for MonorailMigration service. 440 type MonorailMigrationServer interface { 441 // MigrateProject migrates a project's failure association rules from 442 // using monorail bugs to using buganizer bugs. The buganizer bug 443 // corresponding to a monorail bug is as returned by monorail. 444 MigrateProject(context.Context, *MigrateProjectRequest) (*MigrateProjectResponse, error) 445 } 446 447 // UnimplementedMonorailMigrationServer can be embedded to have forward compatible implementations. 448 type UnimplementedMonorailMigrationServer struct { 449 } 450 451 func (*UnimplementedMonorailMigrationServer) MigrateProject(context.Context, *MigrateProjectRequest) (*MigrateProjectResponse, error) { 452 return nil, status.Errorf(codes.Unimplemented, "method MigrateProject not implemented") 453 } 454 455 func RegisterMonorailMigrationServer(s prpc.Registrar, srv MonorailMigrationServer) { 456 s.RegisterService(&_MonorailMigration_serviceDesc, srv) 457 } 458 459 func _MonorailMigration_MigrateProject_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 460 in := new(MigrateProjectRequest) 461 if err := dec(in); err != nil { 462 return nil, err 463 } 464 if interceptor == nil { 465 return srv.(MonorailMigrationServer).MigrateProject(ctx, in) 466 } 467 info := &grpc.UnaryServerInfo{ 468 Server: srv, 469 FullMethod: "/luci.analysis.internal.bugs.monorail.migration.MonorailMigration/MigrateProject", 470 } 471 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 472 return srv.(MonorailMigrationServer).MigrateProject(ctx, req.(*MigrateProjectRequest)) 473 } 474 return interceptor(ctx, in, info, handler) 475 } 476 477 var _MonorailMigration_serviceDesc = grpc.ServiceDesc{ 478 ServiceName: "luci.analysis.internal.bugs.monorail.migration.MonorailMigration", 479 HandlerType: (*MonorailMigrationServer)(nil), 480 Methods: []grpc.MethodDesc{ 481 { 482 MethodName: "MigrateProject", 483 Handler: _MonorailMigration_MigrateProject_Handler, 484 }, 485 }, 486 Streams: []grpc.StreamDesc{}, 487 Metadata: "go.chromium.org/luci/analysis/internal/bugs/monorail/migration/proto/migration_service.proto", 488 }