github.com/yoheimuta/protolint@v0.49.8-0.20240515023657-4ecaebb7575d/internal/addon/plugin/proto/plugin.pb.go (about) 1 // Code generated by protoc-gen-go. DO NOT EDIT. 2 // versions: 3 // protoc-gen-go v1.30.0 4 // protoc v3.12.4 5 // source: plugin.proto 6 7 package proto 8 9 import ( 10 protoreflect "google.golang.org/protobuf/reflect/protoreflect" 11 protoimpl "google.golang.org/protobuf/runtime/protoimpl" 12 reflect "reflect" 13 sync "sync" 14 ) 15 16 const ( 17 // Verify that this generated code is sufficiently up-to-date. 18 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) 19 // Verify that runtime/protoimpl is sufficiently up-to-date. 20 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) 21 ) 22 23 type RuleSeverity int32 24 25 const ( 26 RuleSeverity_RULE_SEVERITY_UNSPECIFIED RuleSeverity = 0 27 RuleSeverity_RULE_SEVERITY_NOTE RuleSeverity = 1 28 RuleSeverity_RULE_SEVERITY_WARNING RuleSeverity = 2 29 RuleSeverity_RULE_SEVERITY_ERROR RuleSeverity = 3 30 ) 31 32 // Enum value maps for RuleSeverity. 33 var ( 34 RuleSeverity_name = map[int32]string{ 35 0: "RULE_SEVERITY_UNSPECIFIED", 36 1: "RULE_SEVERITY_NOTE", 37 2: "RULE_SEVERITY_WARNING", 38 3: "RULE_SEVERITY_ERROR", 39 } 40 RuleSeverity_value = map[string]int32{ 41 "RULE_SEVERITY_UNSPECIFIED": 0, 42 "RULE_SEVERITY_NOTE": 1, 43 "RULE_SEVERITY_WARNING": 2, 44 "RULE_SEVERITY_ERROR": 3, 45 } 46 ) 47 48 func (x RuleSeverity) Enum() *RuleSeverity { 49 p := new(RuleSeverity) 50 *p = x 51 return p 52 } 53 54 func (x RuleSeverity) String() string { 55 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) 56 } 57 58 func (RuleSeverity) Descriptor() protoreflect.EnumDescriptor { 59 return file_plugin_proto_enumTypes[0].Descriptor() 60 } 61 62 func (RuleSeverity) Type() protoreflect.EnumType { 63 return &file_plugin_proto_enumTypes[0] 64 } 65 66 func (x RuleSeverity) Number() protoreflect.EnumNumber { 67 return protoreflect.EnumNumber(x) 68 } 69 70 // Deprecated: Use RuleSeverity.Descriptor instead. 71 func (RuleSeverity) EnumDescriptor() ([]byte, []int) { 72 return file_plugin_proto_rawDescGZIP(), []int{0} 73 } 74 75 type ListRulesRequest struct { 76 state protoimpl.MessageState 77 sizeCache protoimpl.SizeCache 78 unknownFields protoimpl.UnknownFields 79 80 Verbose bool `protobuf:"varint,1,opt,name=verbose,proto3" json:"verbose,omitempty"` 81 FixMode bool `protobuf:"varint,2,opt,name=fix_mode,json=fixMode,proto3" json:"fix_mode,omitempty"` 82 } 83 84 func (x *ListRulesRequest) Reset() { 85 *x = ListRulesRequest{} 86 if protoimpl.UnsafeEnabled { 87 mi := &file_plugin_proto_msgTypes[0] 88 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 89 ms.StoreMessageInfo(mi) 90 } 91 } 92 93 func (x *ListRulesRequest) String() string { 94 return protoimpl.X.MessageStringOf(x) 95 } 96 97 func (*ListRulesRequest) ProtoMessage() {} 98 99 func (x *ListRulesRequest) ProtoReflect() protoreflect.Message { 100 mi := &file_plugin_proto_msgTypes[0] 101 if protoimpl.UnsafeEnabled && x != nil { 102 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 103 if ms.LoadMessageInfo() == nil { 104 ms.StoreMessageInfo(mi) 105 } 106 return ms 107 } 108 return mi.MessageOf(x) 109 } 110 111 // Deprecated: Use ListRulesRequest.ProtoReflect.Descriptor instead. 112 func (*ListRulesRequest) Descriptor() ([]byte, []int) { 113 return file_plugin_proto_rawDescGZIP(), []int{0} 114 } 115 116 func (x *ListRulesRequest) GetVerbose() bool { 117 if x != nil { 118 return x.Verbose 119 } 120 return false 121 } 122 123 func (x *ListRulesRequest) GetFixMode() bool { 124 if x != nil { 125 return x.FixMode 126 } 127 return false 128 } 129 130 type ListRulesResponse struct { 131 state protoimpl.MessageState 132 sizeCache protoimpl.SizeCache 133 unknownFields protoimpl.UnknownFields 134 135 Rules []*ListRulesResponse_Rule `protobuf:"bytes,1,rep,name=rules,proto3" json:"rules,omitempty"` 136 } 137 138 func (x *ListRulesResponse) Reset() { 139 *x = ListRulesResponse{} 140 if protoimpl.UnsafeEnabled { 141 mi := &file_plugin_proto_msgTypes[1] 142 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 143 ms.StoreMessageInfo(mi) 144 } 145 } 146 147 func (x *ListRulesResponse) String() string { 148 return protoimpl.X.MessageStringOf(x) 149 } 150 151 func (*ListRulesResponse) ProtoMessage() {} 152 153 func (x *ListRulesResponse) ProtoReflect() protoreflect.Message { 154 mi := &file_plugin_proto_msgTypes[1] 155 if protoimpl.UnsafeEnabled && x != nil { 156 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 157 if ms.LoadMessageInfo() == nil { 158 ms.StoreMessageInfo(mi) 159 } 160 return ms 161 } 162 return mi.MessageOf(x) 163 } 164 165 // Deprecated: Use ListRulesResponse.ProtoReflect.Descriptor instead. 166 func (*ListRulesResponse) Descriptor() ([]byte, []int) { 167 return file_plugin_proto_rawDescGZIP(), []int{1} 168 } 169 170 func (x *ListRulesResponse) GetRules() []*ListRulesResponse_Rule { 171 if x != nil { 172 return x.Rules 173 } 174 return nil 175 } 176 177 type ApplyRequest struct { 178 state protoimpl.MessageState 179 sizeCache protoimpl.SizeCache 180 unknownFields protoimpl.UnknownFields 181 182 Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` 183 Path string `protobuf:"bytes,2,opt,name=path,proto3" json:"path,omitempty"` 184 } 185 186 func (x *ApplyRequest) Reset() { 187 *x = ApplyRequest{} 188 if protoimpl.UnsafeEnabled { 189 mi := &file_plugin_proto_msgTypes[2] 190 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 191 ms.StoreMessageInfo(mi) 192 } 193 } 194 195 func (x *ApplyRequest) String() string { 196 return protoimpl.X.MessageStringOf(x) 197 } 198 199 func (*ApplyRequest) ProtoMessage() {} 200 201 func (x *ApplyRequest) ProtoReflect() protoreflect.Message { 202 mi := &file_plugin_proto_msgTypes[2] 203 if protoimpl.UnsafeEnabled && x != nil { 204 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 205 if ms.LoadMessageInfo() == nil { 206 ms.StoreMessageInfo(mi) 207 } 208 return ms 209 } 210 return mi.MessageOf(x) 211 } 212 213 // Deprecated: Use ApplyRequest.ProtoReflect.Descriptor instead. 214 func (*ApplyRequest) Descriptor() ([]byte, []int) { 215 return file_plugin_proto_rawDescGZIP(), []int{2} 216 } 217 218 func (x *ApplyRequest) GetId() string { 219 if x != nil { 220 return x.Id 221 } 222 return "" 223 } 224 225 func (x *ApplyRequest) GetPath() string { 226 if x != nil { 227 return x.Path 228 } 229 return "" 230 } 231 232 type ApplyResponse struct { 233 state protoimpl.MessageState 234 sizeCache protoimpl.SizeCache 235 unknownFields protoimpl.UnknownFields 236 237 Failures []*ApplyResponse_Failure `protobuf:"bytes,1,rep,name=failures,proto3" json:"failures,omitempty"` 238 } 239 240 func (x *ApplyResponse) Reset() { 241 *x = ApplyResponse{} 242 if protoimpl.UnsafeEnabled { 243 mi := &file_plugin_proto_msgTypes[3] 244 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 245 ms.StoreMessageInfo(mi) 246 } 247 } 248 249 func (x *ApplyResponse) String() string { 250 return protoimpl.X.MessageStringOf(x) 251 } 252 253 func (*ApplyResponse) ProtoMessage() {} 254 255 func (x *ApplyResponse) ProtoReflect() protoreflect.Message { 256 mi := &file_plugin_proto_msgTypes[3] 257 if protoimpl.UnsafeEnabled && x != nil { 258 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 259 if ms.LoadMessageInfo() == nil { 260 ms.StoreMessageInfo(mi) 261 } 262 return ms 263 } 264 return mi.MessageOf(x) 265 } 266 267 // Deprecated: Use ApplyResponse.ProtoReflect.Descriptor instead. 268 func (*ApplyResponse) Descriptor() ([]byte, []int) { 269 return file_plugin_proto_rawDescGZIP(), []int{3} 270 } 271 272 func (x *ApplyResponse) GetFailures() []*ApplyResponse_Failure { 273 if x != nil { 274 return x.Failures 275 } 276 return nil 277 } 278 279 type ListRulesResponse_Rule struct { 280 state protoimpl.MessageState 281 sizeCache protoimpl.SizeCache 282 unknownFields protoimpl.UnknownFields 283 284 Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` 285 Purpose string `protobuf:"bytes,2,opt,name=purpose,proto3" json:"purpose,omitempty"` 286 Severity RuleSeverity `protobuf:"varint,3,opt,name=severity,proto3,enum=proto.RuleSeverity" json:"severity,omitempty"` 287 } 288 289 func (x *ListRulesResponse_Rule) Reset() { 290 *x = ListRulesResponse_Rule{} 291 if protoimpl.UnsafeEnabled { 292 mi := &file_plugin_proto_msgTypes[4] 293 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 294 ms.StoreMessageInfo(mi) 295 } 296 } 297 298 func (x *ListRulesResponse_Rule) String() string { 299 return protoimpl.X.MessageStringOf(x) 300 } 301 302 func (*ListRulesResponse_Rule) ProtoMessage() {} 303 304 func (x *ListRulesResponse_Rule) ProtoReflect() protoreflect.Message { 305 mi := &file_plugin_proto_msgTypes[4] 306 if protoimpl.UnsafeEnabled && x != nil { 307 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 308 if ms.LoadMessageInfo() == nil { 309 ms.StoreMessageInfo(mi) 310 } 311 return ms 312 } 313 return mi.MessageOf(x) 314 } 315 316 // Deprecated: Use ListRulesResponse_Rule.ProtoReflect.Descriptor instead. 317 func (*ListRulesResponse_Rule) Descriptor() ([]byte, []int) { 318 return file_plugin_proto_rawDescGZIP(), []int{1, 0} 319 } 320 321 func (x *ListRulesResponse_Rule) GetId() string { 322 if x != nil { 323 return x.Id 324 } 325 return "" 326 } 327 328 func (x *ListRulesResponse_Rule) GetPurpose() string { 329 if x != nil { 330 return x.Purpose 331 } 332 return "" 333 } 334 335 func (x *ListRulesResponse_Rule) GetSeverity() RuleSeverity { 336 if x != nil { 337 return x.Severity 338 } 339 return RuleSeverity_RULE_SEVERITY_UNSPECIFIED 340 } 341 342 type ApplyResponse_Position struct { 343 state protoimpl.MessageState 344 sizeCache protoimpl.SizeCache 345 unknownFields protoimpl.UnknownFields 346 347 Offset int32 `protobuf:"varint,1,opt,name=offset,proto3" json:"offset,omitempty"` 348 Line int32 `protobuf:"varint,2,opt,name=line,proto3" json:"line,omitempty"` 349 Column int32 `protobuf:"varint,3,opt,name=column,proto3" json:"column,omitempty"` 350 } 351 352 func (x *ApplyResponse_Position) Reset() { 353 *x = ApplyResponse_Position{} 354 if protoimpl.UnsafeEnabled { 355 mi := &file_plugin_proto_msgTypes[5] 356 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 357 ms.StoreMessageInfo(mi) 358 } 359 } 360 361 func (x *ApplyResponse_Position) String() string { 362 return protoimpl.X.MessageStringOf(x) 363 } 364 365 func (*ApplyResponse_Position) ProtoMessage() {} 366 367 func (x *ApplyResponse_Position) ProtoReflect() protoreflect.Message { 368 mi := &file_plugin_proto_msgTypes[5] 369 if protoimpl.UnsafeEnabled && x != nil { 370 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 371 if ms.LoadMessageInfo() == nil { 372 ms.StoreMessageInfo(mi) 373 } 374 return ms 375 } 376 return mi.MessageOf(x) 377 } 378 379 // Deprecated: Use ApplyResponse_Position.ProtoReflect.Descriptor instead. 380 func (*ApplyResponse_Position) Descriptor() ([]byte, []int) { 381 return file_plugin_proto_rawDescGZIP(), []int{3, 0} 382 } 383 384 func (x *ApplyResponse_Position) GetOffset() int32 { 385 if x != nil { 386 return x.Offset 387 } 388 return 0 389 } 390 391 func (x *ApplyResponse_Position) GetLine() int32 { 392 if x != nil { 393 return x.Line 394 } 395 return 0 396 } 397 398 func (x *ApplyResponse_Position) GetColumn() int32 { 399 if x != nil { 400 return x.Column 401 } 402 return 0 403 } 404 405 type ApplyResponse_Failure struct { 406 state protoimpl.MessageState 407 sizeCache protoimpl.SizeCache 408 unknownFields protoimpl.UnknownFields 409 410 Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"` 411 Pos *ApplyResponse_Position `protobuf:"bytes,2,opt,name=pos,proto3" json:"pos,omitempty"` 412 } 413 414 func (x *ApplyResponse_Failure) Reset() { 415 *x = ApplyResponse_Failure{} 416 if protoimpl.UnsafeEnabled { 417 mi := &file_plugin_proto_msgTypes[6] 418 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 419 ms.StoreMessageInfo(mi) 420 } 421 } 422 423 func (x *ApplyResponse_Failure) String() string { 424 return protoimpl.X.MessageStringOf(x) 425 } 426 427 func (*ApplyResponse_Failure) ProtoMessage() {} 428 429 func (x *ApplyResponse_Failure) ProtoReflect() protoreflect.Message { 430 mi := &file_plugin_proto_msgTypes[6] 431 if protoimpl.UnsafeEnabled && x != nil { 432 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 433 if ms.LoadMessageInfo() == nil { 434 ms.StoreMessageInfo(mi) 435 } 436 return ms 437 } 438 return mi.MessageOf(x) 439 } 440 441 // Deprecated: Use ApplyResponse_Failure.ProtoReflect.Descriptor instead. 442 func (*ApplyResponse_Failure) Descriptor() ([]byte, []int) { 443 return file_plugin_proto_rawDescGZIP(), []int{3, 1} 444 } 445 446 func (x *ApplyResponse_Failure) GetMessage() string { 447 if x != nil { 448 return x.Message 449 } 450 return "" 451 } 452 453 func (x *ApplyResponse_Failure) GetPos() *ApplyResponse_Position { 454 if x != nil { 455 return x.Pos 456 } 457 return nil 458 } 459 460 var File_plugin_proto protoreflect.FileDescriptor 461 462 var file_plugin_proto_rawDesc = []byte{ 463 0x0a, 0x0c, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x05, 464 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x47, 0x0a, 0x10, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x75, 0x6c, 465 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x76, 0x65, 0x72, 466 0x62, 0x6f, 0x73, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x76, 0x65, 0x72, 0x62, 467 0x6f, 0x73, 0x65, 0x12, 0x19, 0x0a, 0x08, 0x66, 0x69, 0x78, 0x5f, 0x6d, 0x6f, 0x64, 0x65, 0x18, 468 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x66, 0x69, 0x78, 0x4d, 0x6f, 0x64, 0x65, 0x22, 0xab, 469 0x01, 0x0a, 0x11, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x75, 0x6c, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 470 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x33, 0x0a, 0x05, 0x72, 0x75, 0x6c, 0x65, 0x73, 0x18, 0x01, 0x20, 471 0x03, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x4c, 0x69, 0x73, 0x74, 472 0x52, 0x75, 0x6c, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x52, 0x75, 473 0x6c, 0x65, 0x52, 0x05, 0x72, 0x75, 0x6c, 0x65, 0x73, 0x1a, 0x61, 0x0a, 0x04, 0x52, 0x75, 0x6c, 474 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 475 0x64, 0x12, 0x18, 0x0a, 0x07, 0x70, 0x75, 0x72, 0x70, 0x6f, 0x73, 0x65, 0x18, 0x02, 0x20, 0x01, 476 0x28, 0x09, 0x52, 0x07, 0x70, 0x75, 0x72, 0x70, 0x6f, 0x73, 0x65, 0x12, 0x2f, 0x0a, 0x08, 0x73, 477 0x65, 0x76, 0x65, 0x72, 0x69, 0x74, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x13, 0x2e, 478 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x52, 0x75, 0x6c, 0x65, 0x53, 0x65, 0x76, 0x65, 0x72, 0x69, 479 0x74, 0x79, 0x52, 0x08, 0x73, 0x65, 0x76, 0x65, 0x72, 0x69, 0x74, 0x79, 0x22, 0x32, 0x0a, 0x0c, 480 0x41, 0x70, 0x70, 0x6c, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 481 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 482 0x70, 0x61, 0x74, 0x68, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x70, 0x61, 0x74, 0x68, 483 0x22, 0xef, 0x01, 0x0a, 0x0d, 0x41, 0x70, 0x70, 0x6c, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 484 0x73, 0x65, 0x12, 0x38, 0x0a, 0x08, 0x66, 0x61, 0x69, 0x6c, 0x75, 0x72, 0x65, 0x73, 0x18, 0x01, 485 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x41, 0x70, 0x70, 486 0x6c, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x46, 0x61, 0x69, 0x6c, 0x75, 487 0x72, 0x65, 0x52, 0x08, 0x66, 0x61, 0x69, 0x6c, 0x75, 0x72, 0x65, 0x73, 0x1a, 0x4e, 0x0a, 0x08, 488 0x50, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x16, 0x0a, 0x06, 0x6f, 0x66, 0x66, 0x73, 489 0x65, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x6f, 0x66, 0x66, 0x73, 0x65, 0x74, 490 0x12, 0x12, 0x0a, 0x04, 0x6c, 0x69, 0x6e, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x04, 491 0x6c, 0x69, 0x6e, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x18, 0x03, 492 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x1a, 0x54, 0x0a, 0x07, 493 0x46, 0x61, 0x69, 0x6c, 0x75, 0x72, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 494 0x67, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 495 0x65, 0x12, 0x2f, 0x0a, 0x03, 0x70, 0x6f, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 496 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x41, 0x70, 0x70, 0x6c, 0x79, 0x52, 0x65, 0x73, 0x70, 497 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x50, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x03, 0x70, 498 0x6f, 0x73, 0x2a, 0x79, 0x0a, 0x0c, 0x52, 0x75, 0x6c, 0x65, 0x53, 0x65, 0x76, 0x65, 0x72, 0x69, 499 0x74, 0x79, 0x12, 0x1d, 0x0a, 0x19, 0x52, 0x55, 0x4c, 0x45, 0x5f, 0x53, 0x45, 0x56, 0x45, 0x52, 500 0x49, 0x54, 0x59, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 501 0x00, 0x12, 0x16, 0x0a, 0x12, 0x52, 0x55, 0x4c, 0x45, 0x5f, 0x53, 0x45, 0x56, 0x45, 0x52, 0x49, 502 0x54, 0x59, 0x5f, 0x4e, 0x4f, 0x54, 0x45, 0x10, 0x01, 0x12, 0x19, 0x0a, 0x15, 0x52, 0x55, 0x4c, 503 0x45, 0x5f, 0x53, 0x45, 0x56, 0x45, 0x52, 0x49, 0x54, 0x59, 0x5f, 0x57, 0x41, 0x52, 0x4e, 0x49, 504 0x4e, 0x47, 0x10, 0x02, 0x12, 0x17, 0x0a, 0x13, 0x52, 0x55, 0x4c, 0x45, 0x5f, 0x53, 0x45, 0x56, 505 0x45, 0x52, 0x49, 0x54, 0x59, 0x5f, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x10, 0x03, 0x32, 0x84, 0x01, 506 0x0a, 0x0e, 0x52, 0x75, 0x6c, 0x65, 0x53, 0x65, 0x74, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 507 0x12, 0x3e, 0x0a, 0x09, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x75, 0x6c, 0x65, 0x73, 0x12, 0x17, 0x2e, 508 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x75, 0x6c, 0x65, 0x73, 0x52, 509 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x18, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x4c, 510 0x69, 0x73, 0x74, 0x52, 0x75, 0x6c, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 511 0x12, 0x32, 0x0a, 0x05, 0x41, 0x70, 0x70, 0x6c, 0x79, 0x12, 0x13, 0x2e, 0x70, 0x72, 0x6f, 0x74, 512 0x6f, 0x2e, 0x41, 0x70, 0x70, 0x6c, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x14, 513 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x41, 0x70, 0x70, 0x6c, 0x79, 0x52, 0x65, 0x73, 0x70, 514 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x3c, 0x5a, 0x3a, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 515 0x6f, 0x6d, 0x2f, 0x79, 0x6f, 0x68, 0x65, 0x69, 0x6d, 0x75, 0x74, 0x61, 0x2f, 0x70, 0x72, 0x6f, 516 0x74, 0x6f, 0x6c, 0x69, 0x6e, 0x74, 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2f, 517 0x61, 0x64, 0x64, 0x6f, 0x6e, 0x2f, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x2f, 0x70, 0x72, 0x6f, 518 0x74, 0x6f, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, 519 } 520 521 var ( 522 file_plugin_proto_rawDescOnce sync.Once 523 file_plugin_proto_rawDescData = file_plugin_proto_rawDesc 524 ) 525 526 func file_plugin_proto_rawDescGZIP() []byte { 527 file_plugin_proto_rawDescOnce.Do(func() { 528 file_plugin_proto_rawDescData = protoimpl.X.CompressGZIP(file_plugin_proto_rawDescData) 529 }) 530 return file_plugin_proto_rawDescData 531 } 532 533 var file_plugin_proto_enumTypes = make([]protoimpl.EnumInfo, 1) 534 var file_plugin_proto_msgTypes = make([]protoimpl.MessageInfo, 7) 535 var file_plugin_proto_goTypes = []interface{}{ 536 (RuleSeverity)(0), // 0: proto.RuleSeverity 537 (*ListRulesRequest)(nil), // 1: proto.ListRulesRequest 538 (*ListRulesResponse)(nil), // 2: proto.ListRulesResponse 539 (*ApplyRequest)(nil), // 3: proto.ApplyRequest 540 (*ApplyResponse)(nil), // 4: proto.ApplyResponse 541 (*ListRulesResponse_Rule)(nil), // 5: proto.ListRulesResponse.Rule 542 (*ApplyResponse_Position)(nil), // 6: proto.ApplyResponse.Position 543 (*ApplyResponse_Failure)(nil), // 7: proto.ApplyResponse.Failure 544 } 545 var file_plugin_proto_depIdxs = []int32{ 546 5, // 0: proto.ListRulesResponse.rules:type_name -> proto.ListRulesResponse.Rule 547 7, // 1: proto.ApplyResponse.failures:type_name -> proto.ApplyResponse.Failure 548 0, // 2: proto.ListRulesResponse.Rule.severity:type_name -> proto.RuleSeverity 549 6, // 3: proto.ApplyResponse.Failure.pos:type_name -> proto.ApplyResponse.Position 550 1, // 4: proto.RuleSetService.ListRules:input_type -> proto.ListRulesRequest 551 3, // 5: proto.RuleSetService.Apply:input_type -> proto.ApplyRequest 552 2, // 6: proto.RuleSetService.ListRules:output_type -> proto.ListRulesResponse 553 4, // 7: proto.RuleSetService.Apply:output_type -> proto.ApplyResponse 554 6, // [6:8] is the sub-list for method output_type 555 4, // [4:6] is the sub-list for method input_type 556 4, // [4:4] is the sub-list for extension type_name 557 4, // [4:4] is the sub-list for extension extendee 558 0, // [0:4] is the sub-list for field type_name 559 } 560 561 func init() { file_plugin_proto_init() } 562 func file_plugin_proto_init() { 563 if File_plugin_proto != nil { 564 return 565 } 566 if !protoimpl.UnsafeEnabled { 567 file_plugin_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 568 switch v := v.(*ListRulesRequest); i { 569 case 0: 570 return &v.state 571 case 1: 572 return &v.sizeCache 573 case 2: 574 return &v.unknownFields 575 default: 576 return nil 577 } 578 } 579 file_plugin_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { 580 switch v := v.(*ListRulesResponse); i { 581 case 0: 582 return &v.state 583 case 1: 584 return &v.sizeCache 585 case 2: 586 return &v.unknownFields 587 default: 588 return nil 589 } 590 } 591 file_plugin_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { 592 switch v := v.(*ApplyRequest); i { 593 case 0: 594 return &v.state 595 case 1: 596 return &v.sizeCache 597 case 2: 598 return &v.unknownFields 599 default: 600 return nil 601 } 602 } 603 file_plugin_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { 604 switch v := v.(*ApplyResponse); i { 605 case 0: 606 return &v.state 607 case 1: 608 return &v.sizeCache 609 case 2: 610 return &v.unknownFields 611 default: 612 return nil 613 } 614 } 615 file_plugin_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { 616 switch v := v.(*ListRulesResponse_Rule); i { 617 case 0: 618 return &v.state 619 case 1: 620 return &v.sizeCache 621 case 2: 622 return &v.unknownFields 623 default: 624 return nil 625 } 626 } 627 file_plugin_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { 628 switch v := v.(*ApplyResponse_Position); i { 629 case 0: 630 return &v.state 631 case 1: 632 return &v.sizeCache 633 case 2: 634 return &v.unknownFields 635 default: 636 return nil 637 } 638 } 639 file_plugin_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { 640 switch v := v.(*ApplyResponse_Failure); i { 641 case 0: 642 return &v.state 643 case 1: 644 return &v.sizeCache 645 case 2: 646 return &v.unknownFields 647 default: 648 return nil 649 } 650 } 651 } 652 type x struct{} 653 out := protoimpl.TypeBuilder{ 654 File: protoimpl.DescBuilder{ 655 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 656 RawDescriptor: file_plugin_proto_rawDesc, 657 NumEnums: 1, 658 NumMessages: 7, 659 NumExtensions: 0, 660 NumServices: 1, 661 }, 662 GoTypes: file_plugin_proto_goTypes, 663 DependencyIndexes: file_plugin_proto_depIdxs, 664 EnumInfos: file_plugin_proto_enumTypes, 665 MessageInfos: file_plugin_proto_msgTypes, 666 }.Build() 667 File_plugin_proto = out.File 668 file_plugin_proto_rawDesc = nil 669 file_plugin_proto_goTypes = nil 670 file_plugin_proto_depIdxs = nil 671 }