| 1 |
// Code generated by protoc-gen-go. DO NOT EDIT. |
| 2 |
// versions: |
| 3 |
// protoc-gen-go v1.30.0 |
| 4 |
// protoc v5.29.1 |
| 5 |
// source: envoy/config/filter/fault/v2/fault.proto |
| 6 |
|
| 7 |
package faultv2 |
| 8 |
|
| 9 |
import ( |
| 10 |
_ "github.com/cncf/xds/go/udpa/annotations" |
| 11 |
_ "github.com/envoyproxy/go-control-plane/envoy/annotations" |
| 12 |
_type "github.com/envoyproxy/go-control-plane/envoy/type" |
| 13 |
_ "github.com/envoyproxy/protoc-gen-validate/validate" |
| 14 |
protoreflect "google.golang.org/protobuf/reflect/protoreflect" |
| 15 |
protoimpl "google.golang.org/protobuf/runtime/protoimpl" |
| 16 |
durationpb "google.golang.org/protobuf/types/known/durationpb" |
| 17 |
reflect "reflect" |
| 18 |
sync "sync" |
| 19 |
) |
| 20 |
|
| 21 |
const ( |
| 22 |
// Verify that this generated code is sufficiently up-to-date. |
| 23 |
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) |
| 24 |
// Verify that runtime/protoimpl is sufficiently up-to-date. |
| 25 |
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) |
| 26 |
) |
| 27 |
|
| 28 |
type FaultDelay_FaultDelayType int32 |
| 29 |
|
| 30 |
const ( |
| 31 |
// Unused and deprecated. |
| 32 |
FaultDelay_FIXED FaultDelay_FaultDelayType = 0 |
| 33 |
) |
| 34 |
|
| 35 |
// Enum value maps for FaultDelay_FaultDelayType. |
| 36 |
var ( |
| 37 |
FaultDelay_FaultDelayType_name = map[int32]string{ |
| 38 |
0: "FIXED", |
| 39 |
} |
| 40 |
FaultDelay_FaultDelayType_value = map[string]int32{ |
| 41 |
"FIXED": 0, |
| 42 |
} |
| 43 |
) |
| 44 |
|
| 45 |
func (x FaultDelay_FaultDelayType) Enum() *FaultDelay_FaultDelayType { |
| 46 |
p := new(FaultDelay_FaultDelayType) |
| 47 |
*p = x |
| 48 |
return p |
| 49 |
} |
| 50 |
|
| 51 |
func (x FaultDelay_FaultDelayType) String() string { |
| 52 |
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) |
| 53 |
} |
| 54 |
|
| 55 |
func (FaultDelay_FaultDelayType) Descriptor() protoreflect.EnumDescriptor { |
| 56 |
return file_envoy_config_filter_fault_v2_fault_proto_enumTypes[0].Descriptor() |
| 57 |
} |
| 58 |
|
| 59 |
func (FaultDelay_FaultDelayType) Type() protoreflect.EnumType { |
| 60 |
return &file_envoy_config_filter_fault_v2_fault_proto_enumTypes[0] |
| 61 |
} |
| 62 |
|
| 63 |
func (x FaultDelay_FaultDelayType) Number() protoreflect.EnumNumber { |
| 64 |
return protoreflect.EnumNumber(x) |
| 65 |
} |
| 66 |
|
| 67 |
// Deprecated: Use FaultDelay_FaultDelayType.Descriptor instead. |
| 68 |
func (FaultDelay_FaultDelayType) EnumDescriptor() ([]byte, []int) { |
| 69 |
return file_envoy_config_filter_fault_v2_fault_proto_rawDescGZIP(), []int{0, 0} |
| 70 |
} |
| 71 |
|
| 72 |
// Delay specification is used to inject latency into the |
| 73 |
// HTTP/gRPC/Mongo/Redis operation or delay proxying of TCP connections. |
| 74 |
// [#next-free-field: 6] |
| 75 |
type FaultDelay struct { |
| 76 |
state protoimpl.MessageState |
| 77 |
sizeCache protoimpl.SizeCache |
| 78 |
unknownFields protoimpl.UnknownFields |
| 79 |
|
| 80 |
// Unused and deprecated. Will be removed in the next release. |
| 81 |
// |
| 82 |
// Deprecated: Marked as deprecated in envoy/config/filter/fault/v2/fault.proto. |
| 83 |
Type FaultDelay_FaultDelayType `protobuf:"varint,1,opt,name=type,proto3,enum=envoy.config.filter.fault.v2.FaultDelay_FaultDelayType" json:"type,omitempty"` |
| 84 |
// Types that are assignable to FaultDelaySecifier: |
| 85 |
// |
| 86 |
// *FaultDelay_FixedDelay |
| 87 |
// *FaultDelay_HeaderDelay_ |
| 88 |
FaultDelaySecifier isFaultDelay_FaultDelaySecifier `protobuf_oneof:"fault_delay_secifier"` |
| 89 |
// The percentage of operations/connections/requests on which the delay will be injected. |
| 90 |
Percentage *_type.FractionalPercent `protobuf:"bytes,4,opt,name=percentage,proto3" json:"percentage,omitempty"` |
| 91 |
} |
| 92 |
|
| 93 |
func (x *FaultDelay) Reset() { |
| 94 |
*x = FaultDelay{} |
| 95 |
if protoimpl.UnsafeEnabled { |
| 96 |
mi := &file_envoy_config_filter_fault_v2_fault_proto_msgTypes[0] |
| 97 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 98 |
ms.StoreMessageInfo(mi) |
| 99 |
} |
| 100 |
} |
| 101 |
|
| 102 |
func (x *FaultDelay) String() string { |
| 103 |
return protoimpl.X.MessageStringOf(x) |
| 104 |
} |
| 105 |
|
| 106 |
func (*FaultDelay) ProtoMessage() {} |
| 107 |
|
| 108 |
func (x *FaultDelay) ProtoReflect() protoreflect.Message { |
| 109 |
mi := &file_envoy_config_filter_fault_v2_fault_proto_msgTypes[0] |
| 110 |
if protoimpl.UnsafeEnabled && x != nil { |
| 111 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 112 |
if ms.LoadMessageInfo() == nil { |
| 113 |
ms.StoreMessageInfo(mi) |
| 114 |
} |
| 115 |
return ms |
| 116 |
} |
| 117 |
return mi.MessageOf(x) |
| 118 |
} |
| 119 |
|
| 120 |
// Deprecated: Use FaultDelay.ProtoReflect.Descriptor instead. |
| 121 |
func (*FaultDelay) Descriptor() ([]byte, []int) { |
| 122 |
return file_envoy_config_filter_fault_v2_fault_proto_rawDescGZIP(), []int{0} |
| 123 |
} |
| 124 |
|
| 125 |
// Deprecated: Marked as deprecated in envoy/config/filter/fault/v2/fault.proto. |
| 126 |
func (x *FaultDelay) GetType() FaultDelay_FaultDelayType { |
| 127 |
if x != nil { |
| 128 |
return x.Type |
| 129 |
} |
| 130 |
return FaultDelay_FIXED |
| 131 |
} |
| 132 |
|
| 133 |
func (m *FaultDelay) GetFaultDelaySecifier() isFaultDelay_FaultDelaySecifier { |
| 134 |
if m != nil { |
| 135 |
return m.FaultDelaySecifier |
| 136 |
} |
| 137 |
return nil |
| 138 |
} |
| 139 |
|
| 140 |
func (x *FaultDelay) GetFixedDelay() *durationpb.Duration { |
| 141 |
if x, ok := x.GetFaultDelaySecifier().(*FaultDelay_FixedDelay); ok { |
| 142 |
return x.FixedDelay |
| 143 |
} |
| 144 |
return nil |
| 145 |
} |
| 146 |
|
| 147 |
func (x *FaultDelay) GetHeaderDelay() *FaultDelay_HeaderDelay { |
| 148 |
if x, ok := x.GetFaultDelaySecifier().(*FaultDelay_HeaderDelay_); ok { |
| 149 |
return x.HeaderDelay |
| 150 |
} |
| 151 |
return nil |
| 152 |
} |
| 153 |
|
| 154 |
func (x *FaultDelay) GetPercentage() *_type.FractionalPercent { |
| 155 |
if x != nil { |
| 156 |
return x.Percentage |
| 157 |
} |
| 158 |
return nil |
| 159 |
} |
| 160 |
|
| 161 |
type isFaultDelay_FaultDelaySecifier interface { |
| 162 |
isFaultDelay_FaultDelaySecifier() |
| 163 |
} |
| 164 |
|
| 165 |
type FaultDelay_FixedDelay struct { |
| 166 |
// Add a fixed delay before forwarding the operation upstream. See |
| 167 |
// https://developers.google.com/protocol-buffers/docs/proto3#json for |
| 168 |
// the JSON/YAML Duration mapping. For HTTP/Mongo/Redis, the specified |
| 169 |
// delay will be injected before a new request/operation. For TCP |
| 170 |
// connections, the proxying of the connection upstream will be delayed |
| 171 |
// for the specified period. This is required if type is FIXED. |
| 172 |
FixedDelay *durationpb.Duration `protobuf:"bytes,3,opt,name=fixed_delay,json=fixedDelay,proto3,oneof"` |
| 173 |
} |
| 174 |
|
| 175 |
type FaultDelay_HeaderDelay_ struct { |
| 176 |
// Fault delays are controlled via an HTTP header (if applicable). |
| 177 |
HeaderDelay *FaultDelay_HeaderDelay `protobuf:"bytes,5,opt,name=header_delay,json=headerDelay,proto3,oneof"` |
| 178 |
} |
| 179 |
|
| 180 |
func (*FaultDelay_FixedDelay) isFaultDelay_FaultDelaySecifier() {} |
| 181 |
|
| 182 |
func (*FaultDelay_HeaderDelay_) isFaultDelay_FaultDelaySecifier() {} |
| 183 |
|
| 184 |
// Describes a rate limit to be applied. |
| 185 |
type FaultRateLimit struct { |
| 186 |
state protoimpl.MessageState |
| 187 |
sizeCache protoimpl.SizeCache |
| 188 |
unknownFields protoimpl.UnknownFields |
| 189 |
|
| 190 |
// Types that are assignable to LimitType: |
| 191 |
// |
| 192 |
// *FaultRateLimit_FixedLimit_ |
| 193 |
// *FaultRateLimit_HeaderLimit_ |
| 194 |
LimitType isFaultRateLimit_LimitType `protobuf_oneof:"limit_type"` |
| 195 |
// The percentage of operations/connections/requests on which the rate limit will be injected. |
| 196 |
Percentage *_type.FractionalPercent `protobuf:"bytes,2,opt,name=percentage,proto3" json:"percentage,omitempty"` |
| 197 |
} |
| 198 |
|
| 199 |
func (x *FaultRateLimit) Reset() { |
| 200 |
*x = FaultRateLimit{} |
| 201 |
if protoimpl.UnsafeEnabled { |
| 202 |
mi := &file_envoy_config_filter_fault_v2_fault_proto_msgTypes[1] |
| 203 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 204 |
ms.StoreMessageInfo(mi) |
| 205 |
} |
| 206 |
} |
| 207 |
|
| 208 |
func (x *FaultRateLimit) String() string { |
| 209 |
return protoimpl.X.MessageStringOf(x) |
| 210 |
} |
| 211 |
|
| 212 |
func (*FaultRateLimit) ProtoMessage() {} |
| 213 |
|
| 214 |
func (x *FaultRateLimit) ProtoReflect() protoreflect.Message { |
| 215 |
mi := &file_envoy_config_filter_fault_v2_fault_proto_msgTypes[1] |
| 216 |
if protoimpl.UnsafeEnabled && x != nil { |
| 217 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 218 |
if ms.LoadMessageInfo() == nil { |
| 219 |
ms.StoreMessageInfo(mi) |
| 220 |
} |
| 221 |
return ms |
| 222 |
} |
| 223 |
return mi.MessageOf(x) |
| 224 |
} |
| 225 |
|
| 226 |
// Deprecated: Use FaultRateLimit.ProtoReflect.Descriptor instead. |
| 227 |
func (*FaultRateLimit) Descriptor() ([]byte, []int) { |
| 228 |
return file_envoy_config_filter_fault_v2_fault_proto_rawDescGZIP(), []int{1} |
| 229 |
} |
| 230 |
|
| 231 |
func (m *FaultRateLimit) GetLimitType() isFaultRateLimit_LimitType { |
| 232 |
if m != nil { |
| 233 |
return m.LimitType |
| 234 |
} |
| 235 |
return nil |
| 236 |
} |
| 237 |
|
| 238 |
func (x *FaultRateLimit) GetFixedLimit() *FaultRateLimit_FixedLimit { |
| 239 |
if x, ok := x.GetLimitType().(*FaultRateLimit_FixedLimit_); ok { |
| 240 |
return x.FixedLimit |
| 241 |
} |
| 242 |
return nil |
| 243 |
} |
| 244 |
|
| 245 |
func (x *FaultRateLimit) GetHeaderLimit() *FaultRateLimit_HeaderLimit { |
| 246 |
if x, ok := x.GetLimitType().(*FaultRateLimit_HeaderLimit_); ok { |
| 247 |
return x.HeaderLimit |
| 248 |
} |
| 249 |
return nil |
| 250 |
} |
| 251 |
|
| 252 |
func (x *FaultRateLimit) GetPercentage() *_type.FractionalPercent { |
| 253 |
if x != nil { |
| 254 |
return x.Percentage |
| 255 |
} |
| 256 |
return nil |
| 257 |
} |
| 258 |
|
| 259 |
type isFaultRateLimit_LimitType interface { |
| 260 |
isFaultRateLimit_LimitType() |
| 261 |
} |
| 262 |
|
| 263 |
type FaultRateLimit_FixedLimit_ struct { |
| 264 |
// A fixed rate limit. |
| 265 |
FixedLimit *FaultRateLimit_FixedLimit `protobuf:"bytes,1,opt,name=fixed_limit,json=fixedLimit,proto3,oneof"` |
| 266 |
} |
| 267 |
|
| 268 |
type FaultRateLimit_HeaderLimit_ struct { |
| 269 |
// Rate limits are controlled via an HTTP header (if applicable). |
| 270 |
HeaderLimit *FaultRateLimit_HeaderLimit `protobuf:"bytes,3,opt,name=header_limit,json=headerLimit,proto3,oneof"` |
| 271 |
} |
| 272 |
|
| 273 |
func (*FaultRateLimit_FixedLimit_) isFaultRateLimit_LimitType() {} |
| 274 |
|
| 275 |
func (*FaultRateLimit_HeaderLimit_) isFaultRateLimit_LimitType() {} |
| 276 |
|
| 277 |
// Fault delays are controlled via an HTTP header (if applicable). See the |
| 278 |
// :ref:`HTTP fault filter <config_http_filters_fault_injection_http_header>` documentation for |
| 279 |
// more information. |
| 280 |
type FaultDelay_HeaderDelay struct { |
| 281 |
state protoimpl.MessageState |
| 282 |
sizeCache protoimpl.SizeCache |
| 283 |
unknownFields protoimpl.UnknownFields |
| 284 |
} |
| 285 |
|
| 286 |
func (x *FaultDelay_HeaderDelay) Reset() { |
| 287 |
*x = FaultDelay_HeaderDelay{} |
| 288 |
if protoimpl.UnsafeEnabled { |
| 289 |
mi := &file_envoy_config_filter_fault_v2_fault_proto_msgTypes[2] |
| 290 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 291 |
ms.StoreMessageInfo(mi) |
| 292 |
} |
| 293 |
} |
| 294 |
|
| 295 |
func (x *FaultDelay_HeaderDelay) String() string { |
| 296 |
return protoimpl.X.MessageStringOf(x) |
| 297 |
} |
| 298 |
|
| 299 |
func (*FaultDelay_HeaderDelay) ProtoMessage() {} |
| 300 |
|
| 301 |
func (x *FaultDelay_HeaderDelay) ProtoReflect() protoreflect.Message { |
| 302 |
mi := &file_envoy_config_filter_fault_v2_fault_proto_msgTypes[2] |
| 303 |
if protoimpl.UnsafeEnabled && x != nil { |
| 304 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 305 |
if ms.LoadMessageInfo() == nil { |
| 306 |
ms.StoreMessageInfo(mi) |
| 307 |
} |
| 308 |
return ms |
| 309 |
} |
| 310 |
return mi.MessageOf(x) |
| 311 |
} |
| 312 |
|
| 313 |
// Deprecated: Use FaultDelay_HeaderDelay.ProtoReflect.Descriptor instead. |
| 314 |
func (*FaultDelay_HeaderDelay) Descriptor() ([]byte, []int) { |
| 315 |
return file_envoy_config_filter_fault_v2_fault_proto_rawDescGZIP(), []int{0, 0} |
| 316 |
} |
| 317 |
|
| 318 |
// Describes a fixed/constant rate limit. |
| 319 |
type FaultRateLimit_FixedLimit struct { |
| 320 |
state protoimpl.MessageState |
| 321 |
sizeCache protoimpl.SizeCache |
| 322 |
unknownFields protoimpl.UnknownFields |
| 323 |
|
| 324 |
// The limit supplied in KiB/s. |
| 325 |
LimitKbps uint64 `protobuf:"varint,1,opt,name=limit_kbps,json=limitKbps,proto3" json:"limit_kbps,omitempty"` |
| 326 |
} |
| 327 |
|
| 328 |
func (x *FaultRateLimit_FixedLimit) Reset() { |
| 329 |
*x = FaultRateLimit_FixedLimit{} |
| 330 |
if protoimpl.UnsafeEnabled { |
| 331 |
mi := &file_envoy_config_filter_fault_v2_fault_proto_msgTypes[3] |
| 332 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 333 |
ms.StoreMessageInfo(mi) |
| 334 |
} |
| 335 |
} |
| 336 |
|
| 337 |
func (x *FaultRateLimit_FixedLimit) String() string { |
| 338 |
return protoimpl.X.MessageStringOf(x) |
| 339 |
} |
| 340 |
|
| 341 |
func (*FaultRateLimit_FixedLimit) ProtoMessage() {} |
| 342 |
|
| 343 |
func (x *FaultRateLimit_FixedLimit) ProtoReflect() protoreflect.Message { |
| 344 |
mi := &file_envoy_config_filter_fault_v2_fault_proto_msgTypes[3] |
| 345 |
if protoimpl.UnsafeEnabled && x != nil { |
| 346 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 347 |
if ms.LoadMessageInfo() == nil { |
| 348 |
ms.StoreMessageInfo(mi) |
| 349 |
} |
| 350 |
return ms |
| 351 |
} |
| 352 |
return mi.MessageOf(x) |
| 353 |
} |
| 354 |
|
| 355 |
// Deprecated: Use FaultRateLimit_FixedLimit.ProtoReflect.Descriptor instead. |
| 356 |
func (*FaultRateLimit_FixedLimit) Descriptor() ([]byte, []int) { |
| 357 |
return file_envoy_config_filter_fault_v2_fault_proto_rawDescGZIP(), []int{1, 0} |
| 358 |
} |
| 359 |
|
| 360 |
func (x *FaultRateLimit_FixedLimit) GetLimitKbps() uint64 { |
| 361 |
if x != nil { |
| 362 |
return x.LimitKbps |
| 363 |
} |
| 364 |
return 0 |
| 365 |
} |
| 366 |
|
| 367 |
// Rate limits are controlled via an HTTP header (if applicable). See the |
| 368 |
// :ref:`HTTP fault filter <config_http_filters_fault_injection_http_header>` documentation for |
| 369 |
// more information. |
| 370 |
type FaultRateLimit_HeaderLimit struct { |
| 371 |
state protoimpl.MessageState |
| 372 |
sizeCache protoimpl.SizeCache |
| 373 |
unknownFields protoimpl.UnknownFields |
| 374 |
} |
| 375 |
|
| 376 |
func (x *FaultRateLimit_HeaderLimit) Reset() { |
| 377 |
*x = FaultRateLimit_HeaderLimit{} |
| 378 |
if protoimpl.UnsafeEnabled { |
| 379 |
mi := &file_envoy_config_filter_fault_v2_fault_proto_msgTypes[4] |
| 380 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 381 |
ms.StoreMessageInfo(mi) |
| 382 |
} |
| 383 |
} |
| 384 |
|
| 385 |
func (x *FaultRateLimit_HeaderLimit) String() string { |
| 386 |
return protoimpl.X.MessageStringOf(x) |
| 387 |
} |
| 388 |
|
| 389 |
func (*FaultRateLimit_HeaderLimit) ProtoMessage() {} |
| 390 |
|
| 391 |
func (x *FaultRateLimit_HeaderLimit) ProtoReflect() protoreflect.Message { |
| 392 |
mi := &file_envoy_config_filter_fault_v2_fault_proto_msgTypes[4] |
| 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 FaultRateLimit_HeaderLimit.ProtoReflect.Descriptor instead. |
| 404 |
func (*FaultRateLimit_HeaderLimit) Descriptor() ([]byte, []int) { |
| 405 |
return file_envoy_config_filter_fault_v2_fault_proto_rawDescGZIP(), []int{1, 1} |
| 406 |
} |
| 407 |
|
| 408 |
var File_envoy_config_filter_fault_v2_fault_proto protoreflect.FileDescriptor |
| 409 |
|
| 410 |
var file_envoy_config_filter_fault_v2_fault_proto_rawDesc = []byte{ |
| 411 |
0x0a, 0x28, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2f, 0x66, |
| 412 |
0x69, 0x6c, 0x74, 0x65, 0x72, 0x2f, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x2f, 0x76, 0x32, 0x2f, 0x66, |
| 413 |
0x61, 0x75, 0x6c, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1c, 0x65, 0x6e, 0x76, 0x6f, |
| 414 |
0x79, 0x2e, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x2e, |
| 415 |
0x66, 0x61, 0x75, 0x6c, 0x74, 0x2e, 0x76, 0x32, 0x1a, 0x18, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2f, |
| 416 |
0x74, 0x79, 0x70, 0x65, 0x2f, 0x70, 0x65, 0x72, 0x63, 0x65, 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f, |
| 417 |
0x74, 0x6f, 0x1a, 0x1e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, |
| 418 |
0x62, 0x75, 0x66, 0x2f, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, |
| 419 |
0x74, 0x6f, 0x1a, 0x23, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, |
| 420 |
0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x64, 0x65, 0x70, 0x72, 0x65, 0x63, 0x61, 0x74, 0x69, 0x6f, |
| 421 |
0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1e, 0x75, 0x64, 0x70, 0x61, 0x2f, 0x61, 0x6e, |
| 422 |
0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, |
| 423 |
0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1d, 0x75, 0x64, 0x70, 0x61, 0x2f, 0x61, 0x6e, |
| 424 |
0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, |
| 425 |
0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x17, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, |
| 426 |
0x2f, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, |
| 427 |
0x94, 0x03, 0x0a, 0x0a, 0x46, 0x61, 0x75, 0x6c, 0x74, 0x44, 0x65, 0x6c, 0x61, 0x79, 0x12, 0x55, |
| 428 |
0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x37, 0x2e, 0x65, |
| 429 |
0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x66, 0x69, 0x6c, 0x74, |
| 430 |
0x65, 0x72, 0x2e, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x2e, 0x76, 0x32, 0x2e, 0x46, 0x61, 0x75, 0x6c, |
| 431 |
0x74, 0x44, 0x65, 0x6c, 0x61, 0x79, 0x2e, 0x46, 0x61, 0x75, 0x6c, 0x74, 0x44, 0x65, 0x6c, 0x61, |
| 432 |
0x79, 0x54, 0x79, 0x70, 0x65, 0x42, 0x08, 0xb8, 0xee, 0xf2, 0xd2, 0x05, 0x01, 0x18, 0x01, 0x52, |
| 433 |
0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x46, 0x0a, 0x0b, 0x66, 0x69, 0x78, 0x65, 0x64, 0x5f, 0x64, |
| 434 |
0x65, 0x6c, 0x61, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x6f, 0x6f, |
| 435 |
0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x44, 0x75, 0x72, |
| 436 |
0x61, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x08, 0xfa, 0x42, 0x05, 0xaa, 0x01, 0x02, 0x2a, 0x00, 0x48, |
| 437 |
0x00, 0x52, 0x0a, 0x66, 0x69, 0x78, 0x65, 0x64, 0x44, 0x65, 0x6c, 0x61, 0x79, 0x12, 0x59, 0x0a, |
| 438 |
0x0c, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x5f, 0x64, 0x65, 0x6c, 0x61, 0x79, 0x18, 0x05, 0x20, |
| 439 |
0x01, 0x28, 0x0b, 0x32, 0x34, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x63, 0x6f, 0x6e, 0x66, |
| 440 |
0x69, 0x67, 0x2e, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x2e, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x2e, |
| 441 |
0x76, 0x32, 0x2e, 0x46, 0x61, 0x75, 0x6c, 0x74, 0x44, 0x65, 0x6c, 0x61, 0x79, 0x2e, 0x48, 0x65, |
| 442 |
0x61, 0x64, 0x65, 0x72, 0x44, 0x65, 0x6c, 0x61, 0x79, 0x48, 0x00, 0x52, 0x0b, 0x68, 0x65, 0x61, |
| 443 |
0x64, 0x65, 0x72, 0x44, 0x65, 0x6c, 0x61, 0x79, 0x12, 0x3d, 0x0a, 0x0a, 0x70, 0x65, 0x72, 0x63, |
| 444 |
0x65, 0x6e, 0x74, 0x61, 0x67, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x65, |
| 445 |
0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x2e, 0x46, 0x72, 0x61, 0x63, 0x74, 0x69, |
| 446 |
0x6f, 0x6e, 0x61, 0x6c, 0x50, 0x65, 0x72, 0x63, 0x65, 0x6e, 0x74, 0x52, 0x0a, 0x70, 0x65, 0x72, |
| 447 |
0x63, 0x65, 0x6e, 0x74, 0x61, 0x67, 0x65, 0x1a, 0x0d, 0x0a, 0x0b, 0x48, 0x65, 0x61, 0x64, 0x65, |
| 448 |
0x72, 0x44, 0x65, 0x6c, 0x61, 0x79, 0x22, 0x1b, 0x0a, 0x0e, 0x46, 0x61, 0x75, 0x6c, 0x74, 0x44, |
| 449 |
0x65, 0x6c, 0x61, 0x79, 0x54, 0x79, 0x70, 0x65, 0x12, 0x09, 0x0a, 0x05, 0x46, 0x49, 0x58, 0x45, |
| 450 |
0x44, 0x10, 0x00, 0x42, 0x1b, 0x0a, 0x14, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x5f, 0x64, 0x65, 0x6c, |
| 451 |
0x61, 0x79, 0x5f, 0x73, 0x65, 0x63, 0x69, 0x66, 0x69, 0x65, 0x72, 0x12, 0x03, 0xf8, 0x42, 0x01, |
| 452 |
0x4a, 0x04, 0x08, 0x02, 0x10, 0x03, 0x22, 0xe2, 0x02, 0x0a, 0x0e, 0x46, 0x61, 0x75, 0x6c, 0x74, |
| 453 |
0x52, 0x61, 0x74, 0x65, 0x4c, 0x69, 0x6d, 0x69, 0x74, 0x12, 0x5a, 0x0a, 0x0b, 0x66, 0x69, 0x78, |
| 454 |
0x65, 0x64, 0x5f, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x37, |
| 455 |
0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x66, 0x69, |
| 456 |
0x6c, 0x74, 0x65, 0x72, 0x2e, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x2e, 0x76, 0x32, 0x2e, 0x46, 0x61, |
| 457 |
0x75, 0x6c, 0x74, 0x52, 0x61, 0x74, 0x65, 0x4c, 0x69, 0x6d, 0x69, 0x74, 0x2e, 0x46, 0x69, 0x78, |
| 458 |
0x65, 0x64, 0x4c, 0x69, 0x6d, 0x69, 0x74, 0x48, 0x00, 0x52, 0x0a, 0x66, 0x69, 0x78, 0x65, 0x64, |
| 459 |
0x4c, 0x69, 0x6d, 0x69, 0x74, 0x12, 0x5d, 0x0a, 0x0c, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x5f, |
| 460 |
0x6c, 0x69, 0x6d, 0x69, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x38, 0x2e, 0x65, 0x6e, |
| 461 |
0x76, 0x6f, 0x79, 0x2e, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x66, 0x69, 0x6c, 0x74, 0x65, |
| 462 |
0x72, 0x2e, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x2e, 0x76, 0x32, 0x2e, 0x46, 0x61, 0x75, 0x6c, 0x74, |
| 463 |
0x52, 0x61, 0x74, 0x65, 0x4c, 0x69, 0x6d, 0x69, 0x74, 0x2e, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, |
| 464 |
0x4c, 0x69, 0x6d, 0x69, 0x74, 0x48, 0x00, 0x52, 0x0b, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x4c, |
| 465 |
0x69, 0x6d, 0x69, 0x74, 0x12, 0x3d, 0x0a, 0x0a, 0x70, 0x65, 0x72, 0x63, 0x65, 0x6e, 0x74, 0x61, |
| 466 |
0x67, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, |
| 467 |
0x2e, 0x74, 0x79, 0x70, 0x65, 0x2e, 0x46, 0x72, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, |
| 468 |
0x50, 0x65, 0x72, 0x63, 0x65, 0x6e, 0x74, 0x52, 0x0a, 0x70, 0x65, 0x72, 0x63, 0x65, 0x6e, 0x74, |
| 469 |
0x61, 0x67, 0x65, 0x1a, 0x34, 0x0a, 0x0a, 0x46, 0x69, 0x78, 0x65, 0x64, 0x4c, 0x69, 0x6d, 0x69, |
| 470 |
0x74, 0x12, 0x26, 0x0a, 0x0a, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x5f, 0x6b, 0x62, 0x70, 0x73, 0x18, |
| 471 |
0x01, 0x20, 0x01, 0x28, 0x04, 0x42, 0x07, 0xfa, 0x42, 0x04, 0x32, 0x02, 0x28, 0x01, 0x52, 0x09, |
| 472 |
0x6c, 0x69, 0x6d, 0x69, 0x74, 0x4b, 0x62, 0x70, 0x73, 0x1a, 0x0d, 0x0a, 0x0b, 0x48, 0x65, 0x61, |
| 473 |
0x64, 0x65, 0x72, 0x4c, 0x69, 0x6d, 0x69, 0x74, 0x42, 0x11, 0x0a, 0x0a, 0x6c, 0x69, 0x6d, 0x69, |
| 474 |
0x74, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x12, 0x03, 0xf8, 0x42, 0x01, 0x42, 0xbf, 0x01, 0xf2, 0x98, |
| 475 |
0xfe, 0x8f, 0x05, 0x2a, 0x12, 0x28, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x65, 0x78, 0x74, 0x65, |
| 476 |
0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x73, 0x2e, 0x63, |
| 477 |
0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x2e, 0x76, 0x33, 0xba, 0x80, |
| 478 |
0xc8, 0xd1, 0x06, 0x02, 0x10, 0x01, 0x0a, 0x2a, 0x69, 0x6f, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, |
| 479 |
0x70, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x63, 0x6f, 0x6e, 0x66, |
| 480 |
0x69, 0x67, 0x2e, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x2e, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x2e, |
| 481 |
0x76, 0x32, 0x42, 0x0a, 0x46, 0x61, 0x75, 0x6c, 0x74, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, |
| 482 |
0x5a, 0x4b, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x65, 0x6e, 0x76, |
| 483 |
0x6f, 0x79, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2f, 0x67, 0x6f, 0x2d, 0x63, 0x6f, 0x6e, 0x74, 0x72, |
| 484 |
0x6f, 0x6c, 0x2d, 0x70, 0x6c, 0x61, 0x6e, 0x65, 0x2f, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2f, 0x63, |
| 485 |
0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2f, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x2f, 0x66, 0x61, 0x75, |
| 486 |
0x6c, 0x74, 0x2f, 0x76, 0x32, 0x3b, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x76, 0x32, 0x62, 0x06, 0x70, |
| 487 |
0x72, 0x6f, 0x74, 0x6f, 0x33, |
| 488 |
} |
| 489 |
|
| 490 |
var ( |
| 491 |
file_envoy_config_filter_fault_v2_fault_proto_rawDescOnce sync.Once |
| 492 |
file_envoy_config_filter_fault_v2_fault_proto_rawDescData = file_envoy_config_filter_fault_v2_fault_proto_rawDesc |
| 493 |
) |
| 494 |
|
| 495 |
func file_envoy_config_filter_fault_v2_fault_proto_rawDescGZIP() []byte { |
| 496 |
file_envoy_config_filter_fault_v2_fault_proto_rawDescOnce.Do(func() { |
| 497 |
file_envoy_config_filter_fault_v2_fault_proto_rawDescData = protoimpl.X.CompressGZIP(file_envoy_config_filter_fault_v2_fault_proto_rawDescData) |
| 498 |
}) |
| 499 |
return file_envoy_config_filter_fault_v2_fault_proto_rawDescData |
| 500 |
} |
| 501 |
|
| 502 |
var file_envoy_config_filter_fault_v2_fault_proto_enumTypes = make([]protoimpl.EnumInfo, 1) |
| 503 |
var file_envoy_config_filter_fault_v2_fault_proto_msgTypes = make([]protoimpl.MessageInfo, 5) |
| 504 |
var file_envoy_config_filter_fault_v2_fault_proto_goTypes = []interface{}{ |
| 505 |
(FaultDelay_FaultDelayType)(0), // 0: envoy.config.filter.fault.v2.FaultDelay.FaultDelayType |
| 506 |
(*FaultDelay)(nil), // 1: envoy.config.filter.fault.v2.FaultDelay |
| 507 |
(*FaultRateLimit)(nil), // 2: envoy.config.filter.fault.v2.FaultRateLimit |
| 508 |
(*FaultDelay_HeaderDelay)(nil), // 3: envoy.config.filter.fault.v2.FaultDelay.HeaderDelay |
| 509 |
(*FaultRateLimit_FixedLimit)(nil), // 4: envoy.config.filter.fault.v2.FaultRateLimit.FixedLimit |
| 510 |
(*FaultRateLimit_HeaderLimit)(nil), // 5: envoy.config.filter.fault.v2.FaultRateLimit.HeaderLimit |
| 511 |
(*durationpb.Duration)(nil), // 6: google.protobuf.Duration |
| 512 |
(*_type.FractionalPercent)(nil), // 7: envoy.type.FractionalPercent |
| 513 |
} |
| 514 |
var file_envoy_config_filter_fault_v2_fault_proto_depIdxs = []int32{ |
| 515 |
0, // 0: envoy.config.filter.fault.v2.FaultDelay.type:type_name -> envoy.config.filter.fault.v2.FaultDelay.FaultDelayType |
| 516 |
6, // 1: envoy.config.filter.fault.v2.FaultDelay.fixed_delay:type_name -> google.protobuf.Duration |
| 517 |
3, // 2: envoy.config.filter.fault.v2.FaultDelay.header_delay:type_name -> envoy.config.filter.fault.v2.FaultDelay.HeaderDelay |
| 518 |
7, // 3: envoy.config.filter.fault.v2.FaultDelay.percentage:type_name -> envoy.type.FractionalPercent |
| 519 |
4, // 4: envoy.config.filter.fault.v2.FaultRateLimit.fixed_limit:type_name -> envoy.config.filter.fault.v2.FaultRateLimit.FixedLimit |
| 520 |
5, // 5: envoy.config.filter.fault.v2.FaultRateLimit.header_limit:type_name -> envoy.config.filter.fault.v2.FaultRateLimit.HeaderLimit |
| 521 |
7, // 6: envoy.config.filter.fault.v2.FaultRateLimit.percentage:type_name -> envoy.type.FractionalPercent |
| 522 |
7, // [7:7] is the sub-list for method output_type |
| 523 |
7, // [7:7] is the sub-list for method input_type |
| 524 |
7, // [7:7] is the sub-list for extension type_name |
| 525 |
7, // [7:7] is the sub-list for extension extendee |
| 526 |
0, // [0:7] is the sub-list for field type_name |
| 527 |
} |
| 528 |
|
| 529 |
func init() { file_envoy_config_filter_fault_v2_fault_proto_init() } |
| 530 |
func file_envoy_config_filter_fault_v2_fault_proto_init() { |
| 531 |
if File_envoy_config_filter_fault_v2_fault_proto != nil { |
| 532 |
return |
| 533 |
} |
| 534 |
if !protoimpl.UnsafeEnabled { |
| 535 |
file_envoy_config_filter_fault_v2_fault_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { |
| 536 |
switch v := v.(*FaultDelay); i { |
| 537 |
case 0: |
| 538 |
return &v.state |
| 539 |
case 1: |
| 540 |
return &v.sizeCache |
| 541 |
case 2: |
| 542 |
return &v.unknownFields |
| 543 |
default: |
| 544 |
return nil |
| 545 |
} |
| 546 |
} |
| 547 |
file_envoy_config_filter_fault_v2_fault_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { |
| 548 |
switch v := v.(*FaultRateLimit); i { |
| 549 |
case 0: |
| 550 |
return &v.state |
| 551 |
case 1: |
| 552 |
return &v.sizeCache |
| 553 |
case 2: |
| 554 |
return &v.unknownFields |
| 555 |
default: |
| 556 |
return nil |
| 557 |
} |
| 558 |
} |
| 559 |
file_envoy_config_filter_fault_v2_fault_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { |
| 560 |
switch v := v.(*FaultDelay_HeaderDelay); i { |
| 561 |
case 0: |
| 562 |
return &v.state |
| 563 |
case 1: |
| 564 |
return &v.sizeCache |
| 565 |
case 2: |
| 566 |
return &v.unknownFields |
| 567 |
default: |
| 568 |
return nil |
| 569 |
} |
| 570 |
} |
| 571 |
file_envoy_config_filter_fault_v2_fault_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { |
| 572 |
switch v := v.(*FaultRateLimit_FixedLimit); i { |
| 573 |
case 0: |
| 574 |
return &v.state |
| 575 |
case 1: |
| 576 |
return &v.sizeCache |
| 577 |
case 2: |
| 578 |
return &v.unknownFields |
| 579 |
default: |
| 580 |
return nil |
| 581 |
} |
| 582 |
} |
| 583 |
file_envoy_config_filter_fault_v2_fault_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { |
| 584 |
switch v := v.(*FaultRateLimit_HeaderLimit); i { |
| 585 |
case 0: |
| 586 |
return &v.state |
| 587 |
case 1: |
| 588 |
return &v.sizeCache |
| 589 |
case 2: |
| 590 |
return &v.unknownFields |
| 591 |
default: |
| 592 |
return nil |
| 593 |
} |
| 594 |
} |
| 595 |
} |
| 596 |
file_envoy_config_filter_fault_v2_fault_proto_msgTypes[0].OneofWrappers = []interface{}{ |
| 597 |
(*FaultDelay_FixedDelay)(nil), |
| 598 |
(*FaultDelay_HeaderDelay_)(nil), |
| 599 |
} |
| 600 |
file_envoy_config_filter_fault_v2_fault_proto_msgTypes[1].OneofWrappers = []interface{}{ |
| 601 |
(*FaultRateLimit_FixedLimit_)(nil), |
| 602 |
(*FaultRateLimit_HeaderLimit_)(nil), |
| 603 |
} |
| 604 |
type x struct{} |
| 605 |
out := protoimpl.TypeBuilder{ |
| 606 |
File: protoimpl.DescBuilder{ |
| 607 |
GoPackagePath: reflect.TypeOf(x{}).PkgPath(), |
| 608 |
RawDescriptor: file_envoy_config_filter_fault_v2_fault_proto_rawDesc, |
| 609 |
NumEnums: 1, |
| 610 |
NumMessages: 5, |
| 611 |
NumExtensions: 0, |
| 612 |
NumServices: 0, |
| 613 |
}, |
| 614 |
GoTypes: file_envoy_config_filter_fault_v2_fault_proto_goTypes, |
| 615 |
DependencyIndexes: file_envoy_config_filter_fault_v2_fault_proto_depIdxs, |
| 616 |
EnumInfos: file_envoy_config_filter_fault_v2_fault_proto_enumTypes, |
| 617 |
MessageInfos: file_envoy_config_filter_fault_v2_fault_proto_msgTypes, |
| 618 |
}.Build() |
| 619 |
File_envoy_config_filter_fault_v2_fault_proto = out.File |
| 620 |
file_envoy_config_filter_fault_v2_fault_proto_rawDesc = nil |
| 621 |
file_envoy_config_filter_fault_v2_fault_proto_goTypes = nil |
| 622 |
file_envoy_config_filter_fault_v2_fault_proto_depIdxs = nil |
| 623 |
} |