File
Blob: spec/protocol/waf.pb.go
| 1 | // Code generated by protoc-gen-go. DO NOT EDIT. |
| 2 | // versions: |
| 3 | // protoc-gen-go v1.36.12 |
| 4 | // protoc v7.34.0 |
| 5 | // source: spec/proto/waf.proto |
| 6 | |
| 7 | package protocol |
| 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 | unsafe "unsafe" |
| 15 | ) |
| 16 | |
| 17 | const ( |
| 18 | // Verify that this generated code is sufficiently up-to-date. |
| 19 | _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) |
| 20 | // Verify that runtime/protoimpl is sufficiently up-to-date. |
| 21 | _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) |
| 22 | ) |
| 23 | |
| 24 | type WAFPolicy_Mode int32 |
| 25 | |
| 26 | const ( |
| 27 | WAFPolicy_UNKNOWN_MODE WAFPolicy_Mode = 0 |
| 28 | WAFPolicy_INHERIT WAFPolicy_Mode = 1 |
| 29 | WAFPolicy_BLOCK WAFPolicy_Mode = 2 |
| 30 | WAFPolicy_MONITOR WAFPolicy_Mode = 3 |
| 31 | WAFPolicy_OFF WAFPolicy_Mode = 4 |
| 32 | ) |
| 33 | |
| 34 | // Enum value maps for WAFPolicy_Mode. |
| 35 | var ( |
| 36 | WAFPolicy_Mode_name = map[int32]string{ |
| 37 | 0: "UNKNOWN_MODE", |
| 38 | 1: "INHERIT", |
| 39 | 2: "BLOCK", |
| 40 | 3: "MONITOR", |
| 41 | 4: "OFF", |
| 42 | } |
| 43 | WAFPolicy_Mode_value = map[string]int32{ |
| 44 | "UNKNOWN_MODE": 0, |
| 45 | "INHERIT": 1, |
| 46 | "BLOCK": 2, |
| 47 | "MONITOR": 3, |
| 48 | "OFF": 4, |
| 49 | } |
| 50 | ) |
| 51 | |
| 52 | func (x WAFPolicy_Mode) Enum() *WAFPolicy_Mode { |
| 53 | p := new(WAFPolicy_Mode) |
| 54 | *p = x |
| 55 | return p |
| 56 | } |
| 57 | |
| 58 | func (x WAFPolicy_Mode) String() string { |
| 59 | return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) |
| 60 | } |
| 61 | |
| 62 | func (WAFPolicy_Mode) Descriptor() protoreflect.EnumDescriptor { |
| 63 | return file_spec_proto_waf_proto_enumTypes[0].Descriptor() |
| 64 | } |
| 65 | |
| 66 | func (WAFPolicy_Mode) Type() protoreflect.EnumType { |
| 67 | return &file_spec_proto_waf_proto_enumTypes[0] |
| 68 | } |
| 69 | |
| 70 | func (x WAFPolicy_Mode) Number() protoreflect.EnumNumber { |
| 71 | return protoreflect.EnumNumber(x) |
| 72 | } |
| 73 | |
| 74 | // Deprecated: Use WAFPolicy_Mode.Descriptor instead. |
| 75 | func (WAFPolicy_Mode) EnumDescriptor() ([]byte, []int) { |
| 76 | return file_spec_proto_waf_proto_rawDescGZIP(), []int{1, 0} |
| 77 | } |
| 78 | |
| 79 | type WAFSettings_Channel int32 |
| 80 | |
| 81 | const ( |
| 82 | WAFSettings_UNKNOWN_CHANNEL WAFSettings_Channel = 0 |
| 83 | WAFSettings_LTS WAFSettings_Channel = 1 |
| 84 | WAFSettings_STABLE WAFSettings_Channel = 2 |
| 85 | ) |
| 86 | |
| 87 | // Enum value maps for WAFSettings_Channel. |
| 88 | var ( |
| 89 | WAFSettings_Channel_name = map[int32]string{ |
| 90 | 0: "UNKNOWN_CHANNEL", |
| 91 | 1: "LTS", |
| 92 | 2: "STABLE", |
| 93 | } |
| 94 | WAFSettings_Channel_value = map[string]int32{ |
| 95 | "UNKNOWN_CHANNEL": 0, |
| 96 | "LTS": 1, |
| 97 | "STABLE": 2, |
| 98 | } |
| 99 | ) |
| 100 | |
| 101 | func (x WAFSettings_Channel) Enum() *WAFSettings_Channel { |
| 102 | p := new(WAFSettings_Channel) |
| 103 | *p = x |
| 104 | return p |
| 105 | } |
| 106 | |
| 107 | func (x WAFSettings_Channel) String() string { |
| 108 | return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) |
| 109 | } |
| 110 | |
| 111 | func (WAFSettings_Channel) Descriptor() protoreflect.EnumDescriptor { |
| 112 | return file_spec_proto_waf_proto_enumTypes[1].Descriptor() |
| 113 | } |
| 114 | |
| 115 | func (WAFSettings_Channel) Type() protoreflect.EnumType { |
| 116 | return &file_spec_proto_waf_proto_enumTypes[1] |
| 117 | } |
| 118 | |
| 119 | func (x WAFSettings_Channel) Number() protoreflect.EnumNumber { |
| 120 | return protoreflect.EnumNumber(x) |
| 121 | } |
| 122 | |
| 123 | // Deprecated: Use WAFSettings_Channel.Descriptor instead. |
| 124 | func (WAFSettings_Channel) EnumDescriptor() ([]byte, []int) { |
| 125 | return file_spec_proto_waf_proto_rawDescGZIP(), []int{2, 0} |
| 126 | } |
| 127 | |
| 128 | type WAFExclusion struct { |
| 129 | state protoimpl.MessageState `protogen:"open.v1"` |
| 130 | RuleId uint32 `protobuf:"varint,1,opt,name=rule_id,json=ruleId,proto3" json:"rule_id,omitempty"` |
| 131 | // Exact escaped URL path without a query string. Empty means every path. |
| 132 | Path string `protobuf:"bytes,2,opt,name=path,proto3" json:"path,omitempty"` |
| 133 | unknownFields protoimpl.UnknownFields |
| 134 | sizeCache protoimpl.SizeCache |
| 135 | } |
| 136 | |
| 137 | func (x *WAFExclusion) Reset() { |
| 138 | *x = WAFExclusion{} |
| 139 | mi := &file_spec_proto_waf_proto_msgTypes[0] |
| 140 | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 141 | ms.StoreMessageInfo(mi) |
| 142 | } |
| 143 | |
| 144 | func (x *WAFExclusion) String() string { |
| 145 | return protoimpl.X.MessageStringOf(x) |
| 146 | } |
| 147 | |
| 148 | func (*WAFExclusion) ProtoMessage() {} |
| 149 | |
| 150 | func (x *WAFExclusion) ProtoReflect() protoreflect.Message { |
| 151 | mi := &file_spec_proto_waf_proto_msgTypes[0] |
| 152 | if x != nil { |
| 153 | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 154 | if ms.LoadMessageInfo() == nil { |
| 155 | ms.StoreMessageInfo(mi) |
| 156 | } |
| 157 | return ms |
| 158 | } |
| 159 | return mi.MessageOf(x) |
| 160 | } |
| 161 | |
| 162 | // Deprecated: Use WAFExclusion.ProtoReflect.Descriptor instead. |
| 163 | func (*WAFExclusion) Descriptor() ([]byte, []int) { |
| 164 | return file_spec_proto_waf_proto_rawDescGZIP(), []int{0} |
| 165 | } |
| 166 | |
| 167 | func (x *WAFExclusion) GetRuleId() uint32 { |
| 168 | if x != nil { |
| 169 | return x.RuleId |
| 170 | } |
| 171 | return 0 |
| 172 | } |
| 173 | |
| 174 | func (x *WAFExclusion) GetPath() string { |
| 175 | if x != nil { |
| 176 | return x.Path |
| 177 | } |
| 178 | return "" |
| 179 | } |
| 180 | |
| 181 | type WAFPolicy struct { |
| 182 | state protoimpl.MessageState `protogen:"open.v1"` |
| 183 | Mode WAFPolicy_Mode `protobuf:"varint,1,opt,name=mode,proto3,enum=protocol.WAFPolicy_Mode" json:"mode,omitempty"` |
| 184 | Exclusions []*WAFExclusion `protobuf:"bytes,2,rep,name=exclusions,proto3" json:"exclusions,omitempty"` |
| 185 | unknownFields protoimpl.UnknownFields |
| 186 | sizeCache protoimpl.SizeCache |
| 187 | } |
| 188 | |
| 189 | func (x *WAFPolicy) Reset() { |
| 190 | *x = WAFPolicy{} |
| 191 | mi := &file_spec_proto_waf_proto_msgTypes[1] |
| 192 | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 193 | ms.StoreMessageInfo(mi) |
| 194 | } |
| 195 | |
| 196 | func (x *WAFPolicy) String() string { |
| 197 | return protoimpl.X.MessageStringOf(x) |
| 198 | } |
| 199 | |
| 200 | func (*WAFPolicy) ProtoMessage() {} |
| 201 | |
| 202 | func (x *WAFPolicy) ProtoReflect() protoreflect.Message { |
| 203 | mi := &file_spec_proto_waf_proto_msgTypes[1] |
| 204 | if x != nil { |
| 205 | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 206 | if ms.LoadMessageInfo() == nil { |
| 207 | ms.StoreMessageInfo(mi) |
| 208 | } |
| 209 | return ms |
| 210 | } |
| 211 | return mi.MessageOf(x) |
| 212 | } |
| 213 | |
| 214 | // Deprecated: Use WAFPolicy.ProtoReflect.Descriptor instead. |
| 215 | func (*WAFPolicy) Descriptor() ([]byte, []int) { |
| 216 | return file_spec_proto_waf_proto_rawDescGZIP(), []int{1} |
| 217 | } |
| 218 | |
| 219 | func (x *WAFPolicy) GetMode() WAFPolicy_Mode { |
| 220 | if x != nil { |
| 221 | return x.Mode |
| 222 | } |
| 223 | return WAFPolicy_UNKNOWN_MODE |
| 224 | } |
| 225 | |
| 226 | func (x *WAFPolicy) GetExclusions() []*WAFExclusion { |
| 227 | if x != nil { |
| 228 | return x.Exclusions |
| 229 | } |
| 230 | return nil |
| 231 | } |
| 232 | |
| 233 | // Shared operator intent. Downloaders never write it. |
| 234 | type WAFSettings struct { |
| 235 | state protoimpl.MessageState `protogen:"open.v1"` |
| 236 | Enabled bool `protobuf:"varint,1,opt,name=enabled,proto3" json:"enabled,omitempty"` |
| 237 | DefaultMode WAFPolicy_Mode `protobuf:"varint,2,opt,name=default_mode,json=defaultMode,proto3,enum=protocol.WAFPolicy_Mode" json:"default_mode,omitempty"` |
| 238 | Channel WAFSettings_Channel `protobuf:"varint,3,opt,name=channel,proto3,enum=protocol.WAFSettings_Channel" json:"channel,omitempty"` |
| 239 | PinnedVersion string `protobuf:"bytes,4,opt,name=pinned_version,json=pinnedVersion,proto3" json:"pinned_version,omitempty"` |
| 240 | unknownFields protoimpl.UnknownFields |
| 241 | sizeCache protoimpl.SizeCache |
| 242 | } |
| 243 | |
| 244 | func (x *WAFSettings) Reset() { |
| 245 | *x = WAFSettings{} |
| 246 | mi := &file_spec_proto_waf_proto_msgTypes[2] |
| 247 | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 248 | ms.StoreMessageInfo(mi) |
| 249 | } |
| 250 | |
| 251 | func (x *WAFSettings) String() string { |
| 252 | return protoimpl.X.MessageStringOf(x) |
| 253 | } |
| 254 | |
| 255 | func (*WAFSettings) ProtoMessage() {} |
| 256 | |
| 257 | func (x *WAFSettings) ProtoReflect() protoreflect.Message { |
| 258 | mi := &file_spec_proto_waf_proto_msgTypes[2] |
| 259 | if x != nil { |
| 260 | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 261 | if ms.LoadMessageInfo() == nil { |
| 262 | ms.StoreMessageInfo(mi) |
| 263 | } |
| 264 | return ms |
| 265 | } |
| 266 | return mi.MessageOf(x) |
| 267 | } |
| 268 | |
| 269 | // Deprecated: Use WAFSettings.ProtoReflect.Descriptor instead. |
| 270 | func (*WAFSettings) Descriptor() ([]byte, []int) { |
| 271 | return file_spec_proto_waf_proto_rawDescGZIP(), []int{2} |
| 272 | } |
| 273 | |
| 274 | func (x *WAFSettings) GetEnabled() bool { |
| 275 | if x != nil { |
| 276 | return x.Enabled |
| 277 | } |
| 278 | return false |
| 279 | } |
| 280 | |
| 281 | func (x *WAFSettings) GetDefaultMode() WAFPolicy_Mode { |
| 282 | if x != nil { |
| 283 | return x.DefaultMode |
| 284 | } |
| 285 | return WAFPolicy_UNKNOWN_MODE |
| 286 | } |
| 287 | |
| 288 | func (x *WAFSettings) GetChannel() WAFSettings_Channel { |
| 289 | if x != nil { |
| 290 | return x.Channel |
| 291 | } |
| 292 | return WAFSettings_UNKNOWN_CHANNEL |
| 293 | } |
| 294 | |
| 295 | func (x *WAFSettings) GetPinnedVersion() string { |
| 296 | if x != nil { |
| 297 | return x.PinnedVersion |
| 298 | } |
| 299 | return "" |
| 300 | } |
| 301 | |
| 302 | type SetWAFSettingsRequest struct { |
| 303 | state protoimpl.MessageState `protogen:"open.v1"` |
| 304 | ExpectedVersion string `protobuf:"bytes,1,opt,name=expected_version,json=expectedVersion,proto3" json:"expected_version,omitempty"` |
| 305 | Config *WAFSettings `protobuf:"bytes,2,opt,name=config,proto3" json:"config,omitempty"` |
| 306 | unknownFields protoimpl.UnknownFields |
| 307 | sizeCache protoimpl.SizeCache |
| 308 | } |
| 309 | |
| 310 | func (x *SetWAFSettingsRequest) Reset() { |
| 311 | *x = SetWAFSettingsRequest{} |
| 312 | mi := &file_spec_proto_waf_proto_msgTypes[3] |
| 313 | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 314 | ms.StoreMessageInfo(mi) |
| 315 | } |
| 316 | |
| 317 | func (x *SetWAFSettingsRequest) String() string { |
| 318 | return protoimpl.X.MessageStringOf(x) |
| 319 | } |
| 320 | |
| 321 | func (*SetWAFSettingsRequest) ProtoMessage() {} |
| 322 | |
| 323 | func (x *SetWAFSettingsRequest) ProtoReflect() protoreflect.Message { |
| 324 | mi := &file_spec_proto_waf_proto_msgTypes[3] |
| 325 | if x != nil { |
| 326 | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 327 | if ms.LoadMessageInfo() == nil { |
| 328 | ms.StoreMessageInfo(mi) |
| 329 | } |
| 330 | return ms |
| 331 | } |
| 332 | return mi.MessageOf(x) |
| 333 | } |
| 334 | |
| 335 | // Deprecated: Use SetWAFSettingsRequest.ProtoReflect.Descriptor instead. |
| 336 | func (*SetWAFSettingsRequest) Descriptor() ([]byte, []int) { |
| 337 | return file_spec_proto_waf_proto_rawDescGZIP(), []int{3} |
| 338 | } |
| 339 | |
| 340 | func (x *SetWAFSettingsRequest) GetExpectedVersion() string { |
| 341 | if x != nil { |
| 342 | return x.ExpectedVersion |
| 343 | } |
| 344 | return "" |
| 345 | } |
| 346 | |
| 347 | func (x *SetWAFSettingsRequest) GetConfig() *WAFSettings { |
| 348 | if x != nil { |
| 349 | return x.Config |
| 350 | } |
| 351 | return nil |
| 352 | } |
| 353 | |
| 354 | type HostWAFRecord struct { |
| 355 | state protoimpl.MessageState `protogen:"open.v1"` |
| 356 | Schema uint32 `protobuf:"varint,1,opt,name=schema,proto3" json:"schema,omitempty"` |
| 357 | Owner []byte `protobuf:"bytes,2,opt,name=owner,proto3" json:"owner,omitempty"` |
| 358 | Policy *WAFPolicy `protobuf:"bytes,3,opt,name=policy,proto3" json:"policy,omitempty"` |
| 359 | unknownFields protoimpl.UnknownFields |
| 360 | sizeCache protoimpl.SizeCache |
| 361 | } |
| 362 | |
| 363 | func (x *HostWAFRecord) Reset() { |
| 364 | *x = HostWAFRecord{} |
| 365 | mi := &file_spec_proto_waf_proto_msgTypes[4] |
| 366 | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 367 | ms.StoreMessageInfo(mi) |
| 368 | } |
| 369 | |
| 370 | func (x *HostWAFRecord) String() string { |
| 371 | return protoimpl.X.MessageStringOf(x) |
| 372 | } |
| 373 | |
| 374 | func (*HostWAFRecord) ProtoMessage() {} |
| 375 | |
| 376 | func (x *HostWAFRecord) ProtoReflect() protoreflect.Message { |
| 377 | mi := &file_spec_proto_waf_proto_msgTypes[4] |
| 378 | if x != nil { |
| 379 | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 380 | if ms.LoadMessageInfo() == nil { |
| 381 | ms.StoreMessageInfo(mi) |
| 382 | } |
| 383 | return ms |
| 384 | } |
| 385 | return mi.MessageOf(x) |
| 386 | } |
| 387 | |
| 388 | // Deprecated: Use HostWAFRecord.ProtoReflect.Descriptor instead. |
| 389 | func (*HostWAFRecord) Descriptor() ([]byte, []int) { |
| 390 | return file_spec_proto_waf_proto_rawDescGZIP(), []int{4} |
| 391 | } |
| 392 | |
| 393 | func (x *HostWAFRecord) GetSchema() uint32 { |
| 394 | if x != nil { |
| 395 | return x.Schema |
| 396 | } |
| 397 | return 0 |
| 398 | } |
| 399 | |
| 400 | func (x *HostWAFRecord) GetOwner() []byte { |
| 401 | if x != nil { |
| 402 | return x.Owner |
| 403 | } |
| 404 | return nil |
| 405 | } |
| 406 | |
| 407 | func (x *HostWAFRecord) GetPolicy() *WAFPolicy { |
| 408 | if x != nil { |
| 409 | return x.Policy |
| 410 | } |
| 411 | return nil |
| 412 | } |
| 413 | |
| 414 | type GetHostWAFRequest struct { |
| 415 | state protoimpl.MessageState `protogen:"open.v1"` |
| 416 | Hostname string `protobuf:"bytes,1,opt,name=hostname,proto3" json:"hostname,omitempty"` |
| 417 | unknownFields protoimpl.UnknownFields |
| 418 | sizeCache protoimpl.SizeCache |
| 419 | } |
| 420 | |
| 421 | func (x *GetHostWAFRequest) Reset() { |
| 422 | *x = GetHostWAFRequest{} |
| 423 | mi := &file_spec_proto_waf_proto_msgTypes[5] |
| 424 | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 425 | ms.StoreMessageInfo(mi) |
| 426 | } |
| 427 | |
| 428 | func (x *GetHostWAFRequest) String() string { |
| 429 | return protoimpl.X.MessageStringOf(x) |
| 430 | } |
| 431 | |
| 432 | func (*GetHostWAFRequest) ProtoMessage() {} |
| 433 | |
| 434 | func (x *GetHostWAFRequest) ProtoReflect() protoreflect.Message { |
| 435 | mi := &file_spec_proto_waf_proto_msgTypes[5] |
| 436 | if x != nil { |
| 437 | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 438 | if ms.LoadMessageInfo() == nil { |
| 439 | ms.StoreMessageInfo(mi) |
| 440 | } |
| 441 | return ms |
| 442 | } |
| 443 | return mi.MessageOf(x) |
| 444 | } |
| 445 | |
| 446 | // Deprecated: Use GetHostWAFRequest.ProtoReflect.Descriptor instead. |
| 447 | func (*GetHostWAFRequest) Descriptor() ([]byte, []int) { |
| 448 | return file_spec_proto_waf_proto_rawDescGZIP(), []int{5} |
| 449 | } |
| 450 | |
| 451 | func (x *GetHostWAFRequest) GetHostname() string { |
| 452 | if x != nil { |
| 453 | return x.Hostname |
| 454 | } |
| 455 | return "" |
| 456 | } |
| 457 | |
| 458 | type SetHostWAFRequest struct { |
| 459 | state protoimpl.MessageState `protogen:"open.v1"` |
| 460 | Hostname string `protobuf:"bytes,1,opt,name=hostname,proto3" json:"hostname,omitempty"` |
| 461 | ExpectedVersion string `protobuf:"bytes,2,opt,name=expected_version,json=expectedVersion,proto3" json:"expected_version,omitempty"` |
| 462 | Policy *WAFPolicy `protobuf:"bytes,3,opt,name=policy,proto3" json:"policy,omitempty"` |
| 463 | unknownFields protoimpl.UnknownFields |
| 464 | sizeCache protoimpl.SizeCache |
| 465 | } |
| 466 | |
| 467 | func (x *SetHostWAFRequest) Reset() { |
| 468 | *x = SetHostWAFRequest{} |
| 469 | mi := &file_spec_proto_waf_proto_msgTypes[6] |
| 470 | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 471 | ms.StoreMessageInfo(mi) |
| 472 | } |
| 473 | |
| 474 | func (x *SetHostWAFRequest) String() string { |
| 475 | return protoimpl.X.MessageStringOf(x) |
| 476 | } |
| 477 | |
| 478 | func (*SetHostWAFRequest) ProtoMessage() {} |
| 479 | |
| 480 | func (x *SetHostWAFRequest) ProtoReflect() protoreflect.Message { |
| 481 | mi := &file_spec_proto_waf_proto_msgTypes[6] |
| 482 | if x != nil { |
| 483 | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 484 | if ms.LoadMessageInfo() == nil { |
| 485 | ms.StoreMessageInfo(mi) |
| 486 | } |
| 487 | return ms |
| 488 | } |
| 489 | return mi.MessageOf(x) |
| 490 | } |
| 491 | |
| 492 | // Deprecated: Use SetHostWAFRequest.ProtoReflect.Descriptor instead. |
| 493 | func (*SetHostWAFRequest) Descriptor() ([]byte, []int) { |
| 494 | return file_spec_proto_waf_proto_rawDescGZIP(), []int{6} |
| 495 | } |
| 496 | |
| 497 | func (x *SetHostWAFRequest) GetHostname() string { |
| 498 | if x != nil { |
| 499 | return x.Hostname |
| 500 | } |
| 501 | return "" |
| 502 | } |
| 503 | |
| 504 | func (x *SetHostWAFRequest) GetExpectedVersion() string { |
| 505 | if x != nil { |
| 506 | return x.ExpectedVersion |
| 507 | } |
| 508 | return "" |
| 509 | } |
| 510 | |
| 511 | func (x *SetHostWAFRequest) GetPolicy() *WAFPolicy { |
| 512 | if x != nil { |
| 513 | return x.Policy |
| 514 | } |
| 515 | return nil |
| 516 | } |
| 517 | |
| 518 | type HostWAFResponse struct { |
| 519 | state protoimpl.MessageState `protogen:"open.v1"` |
| 520 | Hostname string `protobuf:"bytes,1,opt,name=hostname,proto3" json:"hostname,omitempty"` |
| 521 | Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"` |
| 522 | Policy *WAFPolicy `protobuf:"bytes,3,opt,name=policy,proto3" json:"policy,omitempty"` |
| 523 | unknownFields protoimpl.UnknownFields |
| 524 | sizeCache protoimpl.SizeCache |
| 525 | } |
| 526 | |
| 527 | func (x *HostWAFResponse) Reset() { |
| 528 | *x = HostWAFResponse{} |
| 529 | mi := &file_spec_proto_waf_proto_msgTypes[7] |
| 530 | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 531 | ms.StoreMessageInfo(mi) |
| 532 | } |
| 533 | |
| 534 | func (x *HostWAFResponse) String() string { |
| 535 | return protoimpl.X.MessageStringOf(x) |
| 536 | } |
| 537 | |
| 538 | func (*HostWAFResponse) ProtoMessage() {} |
| 539 | |
| 540 | func (x *HostWAFResponse) ProtoReflect() protoreflect.Message { |
| 541 | mi := &file_spec_proto_waf_proto_msgTypes[7] |
| 542 | if x != nil { |
| 543 | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 544 | if ms.LoadMessageInfo() == nil { |
| 545 | ms.StoreMessageInfo(mi) |
| 546 | } |
| 547 | return ms |
| 548 | } |
| 549 | return mi.MessageOf(x) |
| 550 | } |
| 551 | |
| 552 | // Deprecated: Use HostWAFResponse.ProtoReflect.Descriptor instead. |
| 553 | func (*HostWAFResponse) Descriptor() ([]byte, []int) { |
| 554 | return file_spec_proto_waf_proto_rawDescGZIP(), []int{7} |
| 555 | } |
| 556 | |
| 557 | func (x *HostWAFResponse) GetHostname() string { |
| 558 | if x != nil { |
| 559 | return x.Hostname |
| 560 | } |
| 561 | return "" |
| 562 | } |
| 563 | |
| 564 | func (x *HostWAFResponse) GetVersion() string { |
| 565 | if x != nil { |
| 566 | return x.Version |
| 567 | } |
| 568 | return "" |
| 569 | } |
| 570 | |
| 571 | func (x *HostWAFResponse) GetPolicy() *WAFPolicy { |
| 572 | if x != nil { |
| 573 | return x.Policy |
| 574 | } |
| 575 | return nil |
| 576 | } |
| 577 | |
| 578 | var File_spec_proto_waf_proto protoreflect.FileDescriptor |
| 579 | |
| 580 | const file_spec_proto_waf_proto_rawDesc = "" + |
| 581 | "\n" + |
| 582 | "\x14spec/proto/waf.proto\x12\bprotocol\";\n" + |
| 583 | "\fWAFExclusion\x12\x17\n" + |
| 584 | "\arule_id\x18\x01 \x01(\rR\x06ruleId\x12\x12\n" + |
| 585 | "\x04path\x18\x02 \x01(\tR\x04path\"\xb9\x01\n" + |
| 586 | "\tWAFPolicy\x12,\n" + |
| 587 | "\x04mode\x18\x01 \x01(\x0e2\x18.protocol.WAFPolicy.ModeR\x04mode\x126\n" + |
| 588 | "\n" + |
| 589 | "exclusions\x18\x02 \x03(\v2\x16.protocol.WAFExclusionR\n" + |
| 590 | "exclusions\"F\n" + |
| 591 | "\x04Mode\x12\x10\n" + |
| 592 | "\fUNKNOWN_MODE\x10\x00\x12\v\n" + |
| 593 | "\aINHERIT\x10\x01\x12\t\n" + |
| 594 | "\x05BLOCK\x10\x02\x12\v\n" + |
| 595 | "\aMONITOR\x10\x03\x12\a\n" + |
| 596 | "\x03OFF\x10\x04\"\xf9\x01\n" + |
| 597 | "\vWAFSettings\x12\x18\n" + |
| 598 | "\aenabled\x18\x01 \x01(\bR\aenabled\x12;\n" + |
| 599 | "\fdefault_mode\x18\x02 \x01(\x0e2\x18.protocol.WAFPolicy.ModeR\vdefaultMode\x127\n" + |
| 600 | "\achannel\x18\x03 \x01(\x0e2\x1d.protocol.WAFSettings.ChannelR\achannel\x12%\n" + |
| 601 | "\x0epinned_version\x18\x04 \x01(\tR\rpinnedVersion\"3\n" + |
| 602 | "\aChannel\x12\x13\n" + |
| 603 | "\x0fUNKNOWN_CHANNEL\x10\x00\x12\a\n" + |
| 604 | "\x03LTS\x10\x01\x12\n" + |
| 605 | "\n" + |
| 606 | "\x06STABLE\x10\x02\"q\n" + |
| 607 | "\x15SetWAFSettingsRequest\x12)\n" + |
| 608 | "\x10expected_version\x18\x01 \x01(\tR\x0fexpectedVersion\x12-\n" + |
| 609 | "\x06config\x18\x02 \x01(\v2\x15.protocol.WAFSettingsR\x06config\"j\n" + |
| 610 | "\rHostWAFRecord\x12\x16\n" + |
| 611 | "\x06schema\x18\x01 \x01(\rR\x06schema\x12\x14\n" + |
| 612 | "\x05owner\x18\x02 \x01(\fR\x05owner\x12+\n" + |
| 613 | "\x06policy\x18\x03 \x01(\v2\x13.protocol.WAFPolicyR\x06policy\"/\n" + |
| 614 | "\x11GetHostWAFRequest\x12\x1a\n" + |
| 615 | "\bhostname\x18\x01 \x01(\tR\bhostname\"\x87\x01\n" + |
| 616 | "\x11SetHostWAFRequest\x12\x1a\n" + |
| 617 | "\bhostname\x18\x01 \x01(\tR\bhostname\x12)\n" + |
| 618 | "\x10expected_version\x18\x02 \x01(\tR\x0fexpectedVersion\x12+\n" + |
| 619 | "\x06policy\x18\x03 \x01(\v2\x13.protocol.WAFPolicyR\x06policy\"t\n" + |
| 620 | "\x0fHostWAFResponse\x12\x1a\n" + |
| 621 | "\bhostname\x18\x01 \x01(\tR\bhostname\x12\x18\n" + |
| 622 | "\aversion\x18\x02 \x01(\tR\aversion\x12+\n" + |
| 623 | "\x06policy\x18\x03 \x01(\v2\x13.protocol.WAFPolicyR\x06policyB+H\x01Z'go.miragespace.co/specter/spec/protocolb\x06proto3" |
| 624 | |
| 625 | var ( |
| 626 | file_spec_proto_waf_proto_rawDescOnce sync.Once |
| 627 | file_spec_proto_waf_proto_rawDescData []byte |
| 628 | ) |
| 629 | |
| 630 | func file_spec_proto_waf_proto_rawDescGZIP() []byte { |
| 631 | file_spec_proto_waf_proto_rawDescOnce.Do(func() { |
| 632 | file_spec_proto_waf_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_spec_proto_waf_proto_rawDesc), len(file_spec_proto_waf_proto_rawDesc))) |
| 633 | }) |
| 634 | return file_spec_proto_waf_proto_rawDescData |
| 635 | } |
| 636 | |
| 637 | var file_spec_proto_waf_proto_enumTypes = make([]protoimpl.EnumInfo, 2) |
| 638 | var file_spec_proto_waf_proto_msgTypes = make([]protoimpl.MessageInfo, 8) |
| 639 | var file_spec_proto_waf_proto_goTypes = []any{ |
| 640 | (WAFPolicy_Mode)(0), // 0: protocol.WAFPolicy.Mode |
| 641 | (WAFSettings_Channel)(0), // 1: protocol.WAFSettings.Channel |
| 642 | (*WAFExclusion)(nil), // 2: protocol.WAFExclusion |
| 643 | (*WAFPolicy)(nil), // 3: protocol.WAFPolicy |
| 644 | (*WAFSettings)(nil), // 4: protocol.WAFSettings |
| 645 | (*SetWAFSettingsRequest)(nil), // 5: protocol.SetWAFSettingsRequest |
| 646 | (*HostWAFRecord)(nil), // 6: protocol.HostWAFRecord |
| 647 | (*GetHostWAFRequest)(nil), // 7: protocol.GetHostWAFRequest |
| 648 | (*SetHostWAFRequest)(nil), // 8: protocol.SetHostWAFRequest |
| 649 | (*HostWAFResponse)(nil), // 9: protocol.HostWAFResponse |
| 650 | } |
| 651 | var file_spec_proto_waf_proto_depIdxs = []int32{ |
| 652 | 0, // 0: protocol.WAFPolicy.mode:type_name -> protocol.WAFPolicy.Mode |
| 653 | 2, // 1: protocol.WAFPolicy.exclusions:type_name -> protocol.WAFExclusion |
| 654 | 0, // 2: protocol.WAFSettings.default_mode:type_name -> protocol.WAFPolicy.Mode |
| 655 | 1, // 3: protocol.WAFSettings.channel:type_name -> protocol.WAFSettings.Channel |
| 656 | 4, // 4: protocol.SetWAFSettingsRequest.config:type_name -> protocol.WAFSettings |
| 657 | 3, // 5: protocol.HostWAFRecord.policy:type_name -> protocol.WAFPolicy |
| 658 | 3, // 6: protocol.SetHostWAFRequest.policy:type_name -> protocol.WAFPolicy |
| 659 | 3, // 7: protocol.HostWAFResponse.policy:type_name -> protocol.WAFPolicy |
| 660 | 8, // [8:8] is the sub-list for method output_type |
| 661 | 8, // [8:8] is the sub-list for method input_type |
| 662 | 8, // [8:8] is the sub-list for extension type_name |
| 663 | 8, // [8:8] is the sub-list for extension extendee |
| 664 | 0, // [0:8] is the sub-list for field type_name |
| 665 | } |
| 666 | |
| 667 | func init() { file_spec_proto_waf_proto_init() } |
| 668 | func file_spec_proto_waf_proto_init() { |
| 669 | if File_spec_proto_waf_proto != nil { |
| 670 | return |
| 671 | } |
| 672 | type x struct{} |
| 673 | out := protoimpl.TypeBuilder{ |
| 674 | File: protoimpl.DescBuilder{ |
| 675 | GoPackagePath: reflect.TypeOf(x{}).PkgPath(), |
| 676 | RawDescriptor: unsafe.Slice(unsafe.StringData(file_spec_proto_waf_proto_rawDesc), len(file_spec_proto_waf_proto_rawDesc)), |
| 677 | NumEnums: 2, |
| 678 | NumMessages: 8, |
| 679 | NumExtensions: 0, |
| 680 | NumServices: 0, |
| 681 | }, |
| 682 | GoTypes: file_spec_proto_waf_proto_goTypes, |
| 683 | DependencyIndexes: file_spec_proto_waf_proto_depIdxs, |
| 684 | EnumInfos: file_spec_proto_waf_proto_enumTypes, |
| 685 | MessageInfos: file_spec_proto_waf_proto_msgTypes, |
| 686 | }.Build() |
| 687 | File_spec_proto_waf_proto = out.File |
| 688 | file_spec_proto_waf_proto_goTypes = nil |
| 689 | file_spec_proto_waf_proto_depIdxs = nil |
| 690 | } |