github.com/hxx258456/ccgo@v0.0.5-0.20230213014102-48b35f46f66f/go-control-plane/envoy/config/overload/v2alpha/overload.pb.go (about) 1 // Code generated by protoc-gen-go. DO NOT EDIT. 2 // versions: 3 // protoc-gen-go v1.25.0 4 // protoc v3.16.0 5 // source: envoy/config/overload/v2alpha/overload.proto 6 7 package envoy_config_overload_v2alpha 8 9 import ( 10 _ "github.com/cncf/xds/go/udpa/annotations" 11 _ "github.com/envoyproxy/protoc-gen-validate/validate" 12 proto "github.com/golang/protobuf/proto" 13 any "github.com/golang/protobuf/ptypes/any" 14 duration "github.com/golang/protobuf/ptypes/duration" 15 _struct "github.com/golang/protobuf/ptypes/struct" 16 protoreflect "google.golang.org/protobuf/reflect/protoreflect" 17 protoimpl "google.golang.org/protobuf/runtime/protoimpl" 18 reflect "reflect" 19 sync "sync" 20 ) 21 22 const ( 23 // Verify that this generated code is sufficiently up-to-date. 24 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) 25 // Verify that runtime/protoimpl is sufficiently up-to-date. 26 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) 27 ) 28 29 // This is a compile-time assertion that a sufficiently up-to-date version 30 // of the legacy proto package is being used. 31 const _ = proto.ProtoPackageIsVersion4 32 33 type ResourceMonitor struct { 34 state protoimpl.MessageState 35 sizeCache protoimpl.SizeCache 36 unknownFields protoimpl.UnknownFields 37 38 // The name of the resource monitor to instantiate. Must match a registered 39 // resource monitor type. The built-in resource monitors are: 40 // 41 // * :ref:`envoy.resource_monitors.fixed_heap 42 // <envoy_api_msg_config.resource_monitor.fixed_heap.v2alpha.FixedHeapConfig>` 43 // * :ref:`envoy.resource_monitors.injected_resource 44 // <envoy_api_msg_config.resource_monitor.injected_resource.v2alpha.InjectedResourceConfig>` 45 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` 46 // Configuration for the resource monitor being instantiated. 47 // 48 // Types that are assignable to ConfigType: 49 // *ResourceMonitor_Config 50 // *ResourceMonitor_TypedConfig 51 ConfigType isResourceMonitor_ConfigType `protobuf_oneof:"config_type"` 52 } 53 54 func (x *ResourceMonitor) Reset() { 55 *x = ResourceMonitor{} 56 if protoimpl.UnsafeEnabled { 57 mi := &file_envoy_config_overload_v2alpha_overload_proto_msgTypes[0] 58 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 59 ms.StoreMessageInfo(mi) 60 } 61 } 62 63 func (x *ResourceMonitor) String() string { 64 return protoimpl.X.MessageStringOf(x) 65 } 66 67 func (*ResourceMonitor) ProtoMessage() {} 68 69 func (x *ResourceMonitor) ProtoReflect() protoreflect.Message { 70 mi := &file_envoy_config_overload_v2alpha_overload_proto_msgTypes[0] 71 if protoimpl.UnsafeEnabled && x != nil { 72 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 73 if ms.LoadMessageInfo() == nil { 74 ms.StoreMessageInfo(mi) 75 } 76 return ms 77 } 78 return mi.MessageOf(x) 79 } 80 81 // Deprecated: Use ResourceMonitor.ProtoReflect.Descriptor instead. 82 func (*ResourceMonitor) Descriptor() ([]byte, []int) { 83 return file_envoy_config_overload_v2alpha_overload_proto_rawDescGZIP(), []int{0} 84 } 85 86 func (x *ResourceMonitor) GetName() string { 87 if x != nil { 88 return x.Name 89 } 90 return "" 91 } 92 93 func (m *ResourceMonitor) GetConfigType() isResourceMonitor_ConfigType { 94 if m != nil { 95 return m.ConfigType 96 } 97 return nil 98 } 99 100 // Deprecated: Do not use. 101 func (x *ResourceMonitor) GetConfig() *_struct.Struct { 102 if x, ok := x.GetConfigType().(*ResourceMonitor_Config); ok { 103 return x.Config 104 } 105 return nil 106 } 107 108 func (x *ResourceMonitor) GetTypedConfig() *any.Any { 109 if x, ok := x.GetConfigType().(*ResourceMonitor_TypedConfig); ok { 110 return x.TypedConfig 111 } 112 return nil 113 } 114 115 type isResourceMonitor_ConfigType interface { 116 isResourceMonitor_ConfigType() 117 } 118 119 type ResourceMonitor_Config struct { 120 // Deprecated: Do not use. 121 Config *_struct.Struct `protobuf:"bytes,2,opt,name=config,proto3,oneof"` 122 } 123 124 type ResourceMonitor_TypedConfig struct { 125 TypedConfig *any.Any `protobuf:"bytes,3,opt,name=typed_config,json=typedConfig,proto3,oneof"` 126 } 127 128 func (*ResourceMonitor_Config) isResourceMonitor_ConfigType() {} 129 130 func (*ResourceMonitor_TypedConfig) isResourceMonitor_ConfigType() {} 131 132 type ThresholdTrigger struct { 133 state protoimpl.MessageState 134 sizeCache protoimpl.SizeCache 135 unknownFields protoimpl.UnknownFields 136 137 // If the resource pressure is greater than or equal to this value, the trigger 138 // will fire. 139 Value float64 `protobuf:"fixed64,1,opt,name=value,proto3" json:"value,omitempty"` 140 } 141 142 func (x *ThresholdTrigger) Reset() { 143 *x = ThresholdTrigger{} 144 if protoimpl.UnsafeEnabled { 145 mi := &file_envoy_config_overload_v2alpha_overload_proto_msgTypes[1] 146 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 147 ms.StoreMessageInfo(mi) 148 } 149 } 150 151 func (x *ThresholdTrigger) String() string { 152 return protoimpl.X.MessageStringOf(x) 153 } 154 155 func (*ThresholdTrigger) ProtoMessage() {} 156 157 func (x *ThresholdTrigger) ProtoReflect() protoreflect.Message { 158 mi := &file_envoy_config_overload_v2alpha_overload_proto_msgTypes[1] 159 if protoimpl.UnsafeEnabled && x != nil { 160 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 161 if ms.LoadMessageInfo() == nil { 162 ms.StoreMessageInfo(mi) 163 } 164 return ms 165 } 166 return mi.MessageOf(x) 167 } 168 169 // Deprecated: Use ThresholdTrigger.ProtoReflect.Descriptor instead. 170 func (*ThresholdTrigger) Descriptor() ([]byte, []int) { 171 return file_envoy_config_overload_v2alpha_overload_proto_rawDescGZIP(), []int{1} 172 } 173 174 func (x *ThresholdTrigger) GetValue() float64 { 175 if x != nil { 176 return x.Value 177 } 178 return 0 179 } 180 181 type Trigger struct { 182 state protoimpl.MessageState 183 sizeCache protoimpl.SizeCache 184 unknownFields protoimpl.UnknownFields 185 186 // The name of the resource this is a trigger for. 187 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` 188 // Types that are assignable to TriggerOneof: 189 // *Trigger_Threshold 190 TriggerOneof isTrigger_TriggerOneof `protobuf_oneof:"trigger_oneof"` 191 } 192 193 func (x *Trigger) Reset() { 194 *x = Trigger{} 195 if protoimpl.UnsafeEnabled { 196 mi := &file_envoy_config_overload_v2alpha_overload_proto_msgTypes[2] 197 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 198 ms.StoreMessageInfo(mi) 199 } 200 } 201 202 func (x *Trigger) String() string { 203 return protoimpl.X.MessageStringOf(x) 204 } 205 206 func (*Trigger) ProtoMessage() {} 207 208 func (x *Trigger) ProtoReflect() protoreflect.Message { 209 mi := &file_envoy_config_overload_v2alpha_overload_proto_msgTypes[2] 210 if protoimpl.UnsafeEnabled && x != nil { 211 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 212 if ms.LoadMessageInfo() == nil { 213 ms.StoreMessageInfo(mi) 214 } 215 return ms 216 } 217 return mi.MessageOf(x) 218 } 219 220 // Deprecated: Use Trigger.ProtoReflect.Descriptor instead. 221 func (*Trigger) Descriptor() ([]byte, []int) { 222 return file_envoy_config_overload_v2alpha_overload_proto_rawDescGZIP(), []int{2} 223 } 224 225 func (x *Trigger) GetName() string { 226 if x != nil { 227 return x.Name 228 } 229 return "" 230 } 231 232 func (m *Trigger) GetTriggerOneof() isTrigger_TriggerOneof { 233 if m != nil { 234 return m.TriggerOneof 235 } 236 return nil 237 } 238 239 func (x *Trigger) GetThreshold() *ThresholdTrigger { 240 if x, ok := x.GetTriggerOneof().(*Trigger_Threshold); ok { 241 return x.Threshold 242 } 243 return nil 244 } 245 246 type isTrigger_TriggerOneof interface { 247 isTrigger_TriggerOneof() 248 } 249 250 type Trigger_Threshold struct { 251 Threshold *ThresholdTrigger `protobuf:"bytes,2,opt,name=threshold,proto3,oneof"` 252 } 253 254 func (*Trigger_Threshold) isTrigger_TriggerOneof() {} 255 256 type OverloadAction struct { 257 state protoimpl.MessageState 258 sizeCache protoimpl.SizeCache 259 unknownFields protoimpl.UnknownFields 260 261 // The name of the overload action. This is just a well-known string that listeners can 262 // use for registering callbacks. Custom overload actions should be named using reverse 263 // DNS to ensure uniqueness. 264 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` 265 // A set of triggers for this action. If any of these triggers fire the overload action 266 // is activated. Listeners are notified when the overload action transitions from 267 // inactivated to activated, or vice versa. 268 Triggers []*Trigger `protobuf:"bytes,2,rep,name=triggers,proto3" json:"triggers,omitempty"` 269 } 270 271 func (x *OverloadAction) Reset() { 272 *x = OverloadAction{} 273 if protoimpl.UnsafeEnabled { 274 mi := &file_envoy_config_overload_v2alpha_overload_proto_msgTypes[3] 275 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 276 ms.StoreMessageInfo(mi) 277 } 278 } 279 280 func (x *OverloadAction) String() string { 281 return protoimpl.X.MessageStringOf(x) 282 } 283 284 func (*OverloadAction) ProtoMessage() {} 285 286 func (x *OverloadAction) ProtoReflect() protoreflect.Message { 287 mi := &file_envoy_config_overload_v2alpha_overload_proto_msgTypes[3] 288 if protoimpl.UnsafeEnabled && x != nil { 289 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 290 if ms.LoadMessageInfo() == nil { 291 ms.StoreMessageInfo(mi) 292 } 293 return ms 294 } 295 return mi.MessageOf(x) 296 } 297 298 // Deprecated: Use OverloadAction.ProtoReflect.Descriptor instead. 299 func (*OverloadAction) Descriptor() ([]byte, []int) { 300 return file_envoy_config_overload_v2alpha_overload_proto_rawDescGZIP(), []int{3} 301 } 302 303 func (x *OverloadAction) GetName() string { 304 if x != nil { 305 return x.Name 306 } 307 return "" 308 } 309 310 func (x *OverloadAction) GetTriggers() []*Trigger { 311 if x != nil { 312 return x.Triggers 313 } 314 return nil 315 } 316 317 type OverloadManager struct { 318 state protoimpl.MessageState 319 sizeCache protoimpl.SizeCache 320 unknownFields protoimpl.UnknownFields 321 322 // The interval for refreshing resource usage. 323 RefreshInterval *duration.Duration `protobuf:"bytes,1,opt,name=refresh_interval,json=refreshInterval,proto3" json:"refresh_interval,omitempty"` 324 // The set of resources to monitor. 325 ResourceMonitors []*ResourceMonitor `protobuf:"bytes,2,rep,name=resource_monitors,json=resourceMonitors,proto3" json:"resource_monitors,omitempty"` 326 // The set of overload actions. 327 Actions []*OverloadAction `protobuf:"bytes,3,rep,name=actions,proto3" json:"actions,omitempty"` 328 } 329 330 func (x *OverloadManager) Reset() { 331 *x = OverloadManager{} 332 if protoimpl.UnsafeEnabled { 333 mi := &file_envoy_config_overload_v2alpha_overload_proto_msgTypes[4] 334 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 335 ms.StoreMessageInfo(mi) 336 } 337 } 338 339 func (x *OverloadManager) String() string { 340 return protoimpl.X.MessageStringOf(x) 341 } 342 343 func (*OverloadManager) ProtoMessage() {} 344 345 func (x *OverloadManager) ProtoReflect() protoreflect.Message { 346 mi := &file_envoy_config_overload_v2alpha_overload_proto_msgTypes[4] 347 if protoimpl.UnsafeEnabled && x != nil { 348 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 349 if ms.LoadMessageInfo() == nil { 350 ms.StoreMessageInfo(mi) 351 } 352 return ms 353 } 354 return mi.MessageOf(x) 355 } 356 357 // Deprecated: Use OverloadManager.ProtoReflect.Descriptor instead. 358 func (*OverloadManager) Descriptor() ([]byte, []int) { 359 return file_envoy_config_overload_v2alpha_overload_proto_rawDescGZIP(), []int{4} 360 } 361 362 func (x *OverloadManager) GetRefreshInterval() *duration.Duration { 363 if x != nil { 364 return x.RefreshInterval 365 } 366 return nil 367 } 368 369 func (x *OverloadManager) GetResourceMonitors() []*ResourceMonitor { 370 if x != nil { 371 return x.ResourceMonitors 372 } 373 return nil 374 } 375 376 func (x *OverloadManager) GetActions() []*OverloadAction { 377 if x != nil { 378 return x.Actions 379 } 380 return nil 381 } 382 383 var File_envoy_config_overload_v2alpha_overload_proto protoreflect.FileDescriptor 384 385 var file_envoy_config_overload_v2alpha_overload_proto_rawDesc = []byte{ 386 0x0a, 0x2c, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2f, 0x6f, 387 0x76, 0x65, 0x72, 0x6c, 0x6f, 0x61, 0x64, 0x2f, 0x76, 0x32, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2f, 388 0x6f, 0x76, 0x65, 0x72, 0x6c, 0x6f, 0x61, 0x64, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1d, 389 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x6f, 0x76, 0x65, 390 0x72, 0x6c, 0x6f, 0x61, 0x64, 0x2e, 0x76, 0x32, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x1a, 0x19, 0x67, 391 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x61, 392 0x6e, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 393 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 394 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 395 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x73, 0x74, 0x72, 0x75, 0x63, 0x74, 396 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1d, 0x75, 0x64, 0x70, 0x61, 0x2f, 0x61, 0x6e, 0x6e, 397 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x2e, 398 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x17, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x2f, 399 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xaf, 400 0x01, 0x0a, 0x0f, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x4d, 0x6f, 0x6e, 0x69, 0x74, 401 0x6f, 0x72, 0x12, 0x1b, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 402 0x42, 0x07, 0xfa, 0x42, 0x04, 0x72, 0x02, 0x20, 0x01, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 403 0x35, 0x0a, 0x06, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 404 0x17, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 405 0x66, 0x2e, 0x53, 0x74, 0x72, 0x75, 0x63, 0x74, 0x42, 0x02, 0x18, 0x01, 0x48, 0x00, 0x52, 0x06, 406 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x39, 0x0a, 0x0c, 0x74, 0x79, 0x70, 0x65, 0x64, 0x5f, 407 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x67, 408 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x41, 409 0x6e, 0x79, 0x48, 0x00, 0x52, 0x0b, 0x74, 0x79, 0x70, 0x65, 0x64, 0x43, 0x6f, 0x6e, 0x66, 0x69, 410 0x67, 0x42, 0x0d, 0x0a, 0x0b, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x5f, 0x74, 0x79, 0x70, 0x65, 411 0x22, 0x41, 0x0a, 0x10, 0x54, 0x68, 0x72, 0x65, 0x73, 0x68, 0x6f, 0x6c, 0x64, 0x54, 0x72, 0x69, 412 0x67, 0x67, 0x65, 0x72, 0x12, 0x2d, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x01, 0x20, 413 0x01, 0x28, 0x01, 0x42, 0x17, 0xfa, 0x42, 0x14, 0x12, 0x12, 0x19, 0x00, 0x00, 0x00, 0x00, 0x00, 414 0x00, 0xf0, 0x3f, 0x29, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x52, 0x05, 0x76, 0x61, 415 0x6c, 0x75, 0x65, 0x22, 0x8d, 0x01, 0x0a, 0x07, 0x54, 0x72, 0x69, 0x67, 0x67, 0x65, 0x72, 0x12, 416 0x1b, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x07, 0xfa, 417 0x42, 0x04, 0x72, 0x02, 0x20, 0x01, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x4f, 0x0a, 0x09, 418 0x74, 0x68, 0x72, 0x65, 0x73, 0x68, 0x6f, 0x6c, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 419 0x2f, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x6f, 420 0x76, 0x65, 0x72, 0x6c, 0x6f, 0x61, 0x64, 0x2e, 0x76, 0x32, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 421 0x54, 0x68, 0x72, 0x65, 0x73, 0x68, 0x6f, 0x6c, 0x64, 0x54, 0x72, 0x69, 0x67, 0x67, 0x65, 0x72, 422 0x48, 0x00, 0x52, 0x09, 0x74, 0x68, 0x72, 0x65, 0x73, 0x68, 0x6f, 0x6c, 0x64, 0x42, 0x14, 0x0a, 423 0x0d, 0x74, 0x72, 0x69, 0x67, 0x67, 0x65, 0x72, 0x5f, 0x6f, 0x6e, 0x65, 0x6f, 0x66, 0x12, 0x03, 424 0xf8, 0x42, 0x01, 0x22, 0x7b, 0x0a, 0x0e, 0x4f, 0x76, 0x65, 0x72, 0x6c, 0x6f, 0x61, 0x64, 0x41, 425 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1b, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 426 0x01, 0x28, 0x09, 0x42, 0x07, 0xfa, 0x42, 0x04, 0x72, 0x02, 0x20, 0x01, 0x52, 0x04, 0x6e, 0x61, 427 0x6d, 0x65, 0x12, 0x4c, 0x0a, 0x08, 0x74, 0x72, 0x69, 0x67, 0x67, 0x65, 0x72, 0x73, 0x18, 0x02, 428 0x20, 0x03, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x63, 0x6f, 0x6e, 429 0x66, 0x69, 0x67, 0x2e, 0x6f, 0x76, 0x65, 0x72, 0x6c, 0x6f, 0x61, 0x64, 0x2e, 0x76, 0x32, 0x61, 430 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x54, 0x72, 0x69, 0x67, 0x67, 0x65, 0x72, 0x42, 0x08, 0xfa, 0x42, 431 0x05, 0x92, 0x01, 0x02, 0x08, 0x01, 0x52, 0x08, 0x74, 0x72, 0x69, 0x67, 0x67, 0x65, 0x72, 0x73, 432 0x22, 0x87, 0x02, 0x0a, 0x0f, 0x4f, 0x76, 0x65, 0x72, 0x6c, 0x6f, 0x61, 0x64, 0x4d, 0x61, 0x6e, 433 0x61, 0x67, 0x65, 0x72, 0x12, 0x44, 0x0a, 0x10, 0x72, 0x65, 0x66, 0x72, 0x65, 0x73, 0x68, 0x5f, 434 0x69, 0x6e, 0x74, 0x65, 0x72, 0x76, 0x61, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 435 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 436 0x2e, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x0f, 0x72, 0x65, 0x66, 0x72, 0x65, 437 0x73, 0x68, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x76, 0x61, 0x6c, 0x12, 0x65, 0x0a, 0x11, 0x72, 0x65, 438 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x6d, 0x6f, 0x6e, 0x69, 0x74, 0x6f, 0x72, 0x73, 0x18, 439 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2e, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x63, 0x6f, 440 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x6f, 0x76, 0x65, 0x72, 0x6c, 0x6f, 0x61, 0x64, 0x2e, 0x76, 0x32, 441 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x4d, 0x6f, 442 0x6e, 0x69, 0x74, 0x6f, 0x72, 0x42, 0x08, 0xfa, 0x42, 0x05, 0x92, 0x01, 0x02, 0x08, 0x01, 0x52, 443 0x10, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x4d, 0x6f, 0x6e, 0x69, 0x74, 0x6f, 0x72, 444 0x73, 0x12, 0x47, 0x0a, 0x07, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x03, 0x20, 0x03, 445 0x28, 0x0b, 0x32, 0x2d, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x63, 0x6f, 0x6e, 0x66, 0x69, 446 0x67, 0x2e, 0x6f, 0x76, 0x65, 0x72, 0x6c, 0x6f, 0x61, 0x64, 0x2e, 0x76, 0x32, 0x61, 0x6c, 0x70, 447 0x68, 0x61, 0x2e, 0x4f, 0x76, 0x65, 0x72, 0x6c, 0x6f, 0x61, 0x64, 0x41, 0x63, 0x74, 0x69, 0x6f, 448 0x6e, 0x52, 0x07, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x42, 0x46, 0x0a, 0x2b, 0x69, 0x6f, 449 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 450 0x79, 0x2e, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x6f, 0x76, 0x65, 0x72, 0x6c, 0x6f, 0x61, 451 0x64, 0x2e, 0x76, 0x32, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x42, 0x0d, 0x4f, 0x76, 0x65, 0x72, 0x6c, 452 0x6f, 0x61, 0x64, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0xba, 0x80, 0xc8, 0xd1, 0x06, 0x02, 453 0x10, 0x01, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, 454 } 455 456 var ( 457 file_envoy_config_overload_v2alpha_overload_proto_rawDescOnce sync.Once 458 file_envoy_config_overload_v2alpha_overload_proto_rawDescData = file_envoy_config_overload_v2alpha_overload_proto_rawDesc 459 ) 460 461 func file_envoy_config_overload_v2alpha_overload_proto_rawDescGZIP() []byte { 462 file_envoy_config_overload_v2alpha_overload_proto_rawDescOnce.Do(func() { 463 file_envoy_config_overload_v2alpha_overload_proto_rawDescData = protoimpl.X.CompressGZIP(file_envoy_config_overload_v2alpha_overload_proto_rawDescData) 464 }) 465 return file_envoy_config_overload_v2alpha_overload_proto_rawDescData 466 } 467 468 var file_envoy_config_overload_v2alpha_overload_proto_msgTypes = make([]protoimpl.MessageInfo, 5) 469 var file_envoy_config_overload_v2alpha_overload_proto_goTypes = []interface{}{ 470 (*ResourceMonitor)(nil), // 0: envoy.config.overload.v2alpha.ResourceMonitor 471 (*ThresholdTrigger)(nil), // 1: envoy.config.overload.v2alpha.ThresholdTrigger 472 (*Trigger)(nil), // 2: envoy.config.overload.v2alpha.Trigger 473 (*OverloadAction)(nil), // 3: envoy.config.overload.v2alpha.OverloadAction 474 (*OverloadManager)(nil), // 4: envoy.config.overload.v2alpha.OverloadManager 475 (*_struct.Struct)(nil), // 5: google.protobuf.Struct 476 (*any.Any)(nil), // 6: google.protobuf.Any 477 (*duration.Duration)(nil), // 7: google.protobuf.Duration 478 } 479 var file_envoy_config_overload_v2alpha_overload_proto_depIdxs = []int32{ 480 5, // 0: envoy.config.overload.v2alpha.ResourceMonitor.config:type_name -> google.protobuf.Struct 481 6, // 1: envoy.config.overload.v2alpha.ResourceMonitor.typed_config:type_name -> google.protobuf.Any 482 1, // 2: envoy.config.overload.v2alpha.Trigger.threshold:type_name -> envoy.config.overload.v2alpha.ThresholdTrigger 483 2, // 3: envoy.config.overload.v2alpha.OverloadAction.triggers:type_name -> envoy.config.overload.v2alpha.Trigger 484 7, // 4: envoy.config.overload.v2alpha.OverloadManager.refresh_interval:type_name -> google.protobuf.Duration 485 0, // 5: envoy.config.overload.v2alpha.OverloadManager.resource_monitors:type_name -> envoy.config.overload.v2alpha.ResourceMonitor 486 3, // 6: envoy.config.overload.v2alpha.OverloadManager.actions:type_name -> envoy.config.overload.v2alpha.OverloadAction 487 7, // [7:7] is the sub-list for method output_type 488 7, // [7:7] is the sub-list for method input_type 489 7, // [7:7] is the sub-list for extension type_name 490 7, // [7:7] is the sub-list for extension extendee 491 0, // [0:7] is the sub-list for field type_name 492 } 493 494 func init() { file_envoy_config_overload_v2alpha_overload_proto_init() } 495 func file_envoy_config_overload_v2alpha_overload_proto_init() { 496 if File_envoy_config_overload_v2alpha_overload_proto != nil { 497 return 498 } 499 if !protoimpl.UnsafeEnabled { 500 file_envoy_config_overload_v2alpha_overload_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 501 switch v := v.(*ResourceMonitor); i { 502 case 0: 503 return &v.state 504 case 1: 505 return &v.sizeCache 506 case 2: 507 return &v.unknownFields 508 default: 509 return nil 510 } 511 } 512 file_envoy_config_overload_v2alpha_overload_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { 513 switch v := v.(*ThresholdTrigger); i { 514 case 0: 515 return &v.state 516 case 1: 517 return &v.sizeCache 518 case 2: 519 return &v.unknownFields 520 default: 521 return nil 522 } 523 } 524 file_envoy_config_overload_v2alpha_overload_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { 525 switch v := v.(*Trigger); i { 526 case 0: 527 return &v.state 528 case 1: 529 return &v.sizeCache 530 case 2: 531 return &v.unknownFields 532 default: 533 return nil 534 } 535 } 536 file_envoy_config_overload_v2alpha_overload_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { 537 switch v := v.(*OverloadAction); i { 538 case 0: 539 return &v.state 540 case 1: 541 return &v.sizeCache 542 case 2: 543 return &v.unknownFields 544 default: 545 return nil 546 } 547 } 548 file_envoy_config_overload_v2alpha_overload_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { 549 switch v := v.(*OverloadManager); i { 550 case 0: 551 return &v.state 552 case 1: 553 return &v.sizeCache 554 case 2: 555 return &v.unknownFields 556 default: 557 return nil 558 } 559 } 560 } 561 file_envoy_config_overload_v2alpha_overload_proto_msgTypes[0].OneofWrappers = []interface{}{ 562 (*ResourceMonitor_Config)(nil), 563 (*ResourceMonitor_TypedConfig)(nil), 564 } 565 file_envoy_config_overload_v2alpha_overload_proto_msgTypes[2].OneofWrappers = []interface{}{ 566 (*Trigger_Threshold)(nil), 567 } 568 type x struct{} 569 out := protoimpl.TypeBuilder{ 570 File: protoimpl.DescBuilder{ 571 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 572 RawDescriptor: file_envoy_config_overload_v2alpha_overload_proto_rawDesc, 573 NumEnums: 0, 574 NumMessages: 5, 575 NumExtensions: 0, 576 NumServices: 0, 577 }, 578 GoTypes: file_envoy_config_overload_v2alpha_overload_proto_goTypes, 579 DependencyIndexes: file_envoy_config_overload_v2alpha_overload_proto_depIdxs, 580 MessageInfos: file_envoy_config_overload_v2alpha_overload_proto_msgTypes, 581 }.Build() 582 File_envoy_config_overload_v2alpha_overload_proto = out.File 583 file_envoy_config_overload_v2alpha_overload_proto_rawDesc = nil 584 file_envoy_config_overload_v2alpha_overload_proto_goTypes = nil 585 file_envoy_config_overload_v2alpha_overload_proto_depIdxs = nil 586 }