github.com/hxx258456/ccgo@v0.0.5-0.20230213014102-48b35f46f66f/go-control-plane/envoy/config/resource_monitor/injected_resource/v2alpha/injected_resource.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/resource_monitor/injected_resource/v2alpha/injected_resource.proto 6 7 package envoy_config_resource_monitor_injected_resource_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 protoreflect "google.golang.org/protobuf/reflect/protoreflect" 14 protoimpl "google.golang.org/protobuf/runtime/protoimpl" 15 reflect "reflect" 16 sync "sync" 17 ) 18 19 const ( 20 // Verify that this generated code is sufficiently up-to-date. 21 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) 22 // Verify that runtime/protoimpl is sufficiently up-to-date. 23 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) 24 ) 25 26 // This is a compile-time assertion that a sufficiently up-to-date version 27 // of the legacy proto package is being used. 28 const _ = proto.ProtoPackageIsVersion4 29 30 // The injected resource monitor allows injecting a synthetic resource pressure into Envoy 31 // via a text file, which must contain a floating-point number in the range [0..1] representing 32 // the resource pressure and be updated atomically by a symbolic link swap. 33 // This is intended primarily for integration tests to force Envoy into an overloaded state. 34 type InjectedResourceConfig struct { 35 state protoimpl.MessageState 36 sizeCache protoimpl.SizeCache 37 unknownFields protoimpl.UnknownFields 38 39 Filename string `protobuf:"bytes,1,opt,name=filename,proto3" json:"filename,omitempty"` 40 } 41 42 func (x *InjectedResourceConfig) Reset() { 43 *x = InjectedResourceConfig{} 44 if protoimpl.UnsafeEnabled { 45 mi := &file_envoy_config_resource_monitor_injected_resource_v2alpha_injected_resource_proto_msgTypes[0] 46 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 47 ms.StoreMessageInfo(mi) 48 } 49 } 50 51 func (x *InjectedResourceConfig) String() string { 52 return protoimpl.X.MessageStringOf(x) 53 } 54 55 func (*InjectedResourceConfig) ProtoMessage() {} 56 57 func (x *InjectedResourceConfig) ProtoReflect() protoreflect.Message { 58 mi := &file_envoy_config_resource_monitor_injected_resource_v2alpha_injected_resource_proto_msgTypes[0] 59 if protoimpl.UnsafeEnabled && x != nil { 60 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 61 if ms.LoadMessageInfo() == nil { 62 ms.StoreMessageInfo(mi) 63 } 64 return ms 65 } 66 return mi.MessageOf(x) 67 } 68 69 // Deprecated: Use InjectedResourceConfig.ProtoReflect.Descriptor instead. 70 func (*InjectedResourceConfig) Descriptor() ([]byte, []int) { 71 return file_envoy_config_resource_monitor_injected_resource_v2alpha_injected_resource_proto_rawDescGZIP(), []int{0} 72 } 73 74 func (x *InjectedResourceConfig) GetFilename() string { 75 if x != nil { 76 return x.Filename 77 } 78 return "" 79 } 80 81 var File_envoy_config_resource_monitor_injected_resource_v2alpha_injected_resource_proto protoreflect.FileDescriptor 82 83 var file_envoy_config_resource_monitor_injected_resource_v2alpha_injected_resource_proto_rawDesc = []byte{ 84 0x0a, 0x4f, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2f, 0x72, 85 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x6d, 0x6f, 0x6e, 0x69, 0x74, 0x6f, 0x72, 0x2f, 86 0x69, 0x6e, 0x6a, 0x65, 0x63, 0x74, 0x65, 0x64, 0x5f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 87 0x65, 0x2f, 0x76, 0x32, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2f, 0x69, 0x6e, 0x6a, 0x65, 0x63, 0x74, 88 0x65, 0x64, 0x5f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 89 0x6f, 0x12, 0x37, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 90 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x6d, 0x6f, 0x6e, 0x69, 0x74, 0x6f, 0x72, 91 0x2e, 0x69, 0x6e, 0x6a, 0x65, 0x63, 0x74, 0x65, 0x64, 0x5f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 92 0x63, 0x65, 0x2e, 0x76, 0x32, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x1a, 0x1d, 0x75, 0x64, 0x70, 0x61, 93 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x73, 0x74, 0x61, 94 0x74, 0x75, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x17, 0x76, 0x61, 0x6c, 0x69, 0x64, 95 0x61, 0x74, 0x65, 0x2f, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x2e, 0x70, 0x72, 0x6f, 96 0x74, 0x6f, 0x22, 0x3d, 0x0a, 0x16, 0x49, 0x6e, 0x6a, 0x65, 0x63, 0x74, 0x65, 0x64, 0x52, 0x65, 97 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x23, 0x0a, 0x08, 98 0x66, 0x69, 0x6c, 0x65, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x07, 99 0xfa, 0x42, 0x04, 0x72, 0x02, 0x20, 0x01, 0x52, 0x08, 0x66, 0x69, 0x6c, 0x65, 0x6e, 0x61, 0x6d, 100 0x65, 0x42, 0x68, 0x0a, 0x45, 0x69, 0x6f, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x70, 0x72, 0x6f, 101 0x78, 0x79, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 102 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x6d, 0x6f, 0x6e, 0x69, 0x74, 0x6f, 0x72, 103 0x2e, 0x69, 0x6e, 0x6a, 0x65, 0x63, 0x74, 0x65, 0x64, 0x5f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 104 0x63, 0x65, 0x2e, 0x76, 0x32, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x42, 0x15, 0x49, 0x6e, 0x6a, 0x65, 105 0x63, 0x74, 0x65, 0x64, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x50, 0x72, 0x6f, 0x74, 106 0x6f, 0x50, 0x01, 0xba, 0x80, 0xc8, 0xd1, 0x06, 0x02, 0x10, 0x02, 0x62, 0x06, 0x70, 0x72, 0x6f, 107 0x74, 0x6f, 0x33, 108 } 109 110 var ( 111 file_envoy_config_resource_monitor_injected_resource_v2alpha_injected_resource_proto_rawDescOnce sync.Once 112 file_envoy_config_resource_monitor_injected_resource_v2alpha_injected_resource_proto_rawDescData = file_envoy_config_resource_monitor_injected_resource_v2alpha_injected_resource_proto_rawDesc 113 ) 114 115 func file_envoy_config_resource_monitor_injected_resource_v2alpha_injected_resource_proto_rawDescGZIP() []byte { 116 file_envoy_config_resource_monitor_injected_resource_v2alpha_injected_resource_proto_rawDescOnce.Do(func() { 117 file_envoy_config_resource_monitor_injected_resource_v2alpha_injected_resource_proto_rawDescData = protoimpl.X.CompressGZIP(file_envoy_config_resource_monitor_injected_resource_v2alpha_injected_resource_proto_rawDescData) 118 }) 119 return file_envoy_config_resource_monitor_injected_resource_v2alpha_injected_resource_proto_rawDescData 120 } 121 122 var file_envoy_config_resource_monitor_injected_resource_v2alpha_injected_resource_proto_msgTypes = make([]protoimpl.MessageInfo, 1) 123 var file_envoy_config_resource_monitor_injected_resource_v2alpha_injected_resource_proto_goTypes = []interface{}{ 124 (*InjectedResourceConfig)(nil), // 0: envoy.config.resource_monitor.injected_resource.v2alpha.InjectedResourceConfig 125 } 126 var file_envoy_config_resource_monitor_injected_resource_v2alpha_injected_resource_proto_depIdxs = []int32{ 127 0, // [0:0] is the sub-list for method output_type 128 0, // [0:0] is the sub-list for method input_type 129 0, // [0:0] is the sub-list for extension type_name 130 0, // [0:0] is the sub-list for extension extendee 131 0, // [0:0] is the sub-list for field type_name 132 } 133 134 func init() { 135 file_envoy_config_resource_monitor_injected_resource_v2alpha_injected_resource_proto_init() 136 } 137 func file_envoy_config_resource_monitor_injected_resource_v2alpha_injected_resource_proto_init() { 138 if File_envoy_config_resource_monitor_injected_resource_v2alpha_injected_resource_proto != nil { 139 return 140 } 141 if !protoimpl.UnsafeEnabled { 142 file_envoy_config_resource_monitor_injected_resource_v2alpha_injected_resource_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 143 switch v := v.(*InjectedResourceConfig); i { 144 case 0: 145 return &v.state 146 case 1: 147 return &v.sizeCache 148 case 2: 149 return &v.unknownFields 150 default: 151 return nil 152 } 153 } 154 } 155 type x struct{} 156 out := protoimpl.TypeBuilder{ 157 File: protoimpl.DescBuilder{ 158 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 159 RawDescriptor: file_envoy_config_resource_monitor_injected_resource_v2alpha_injected_resource_proto_rawDesc, 160 NumEnums: 0, 161 NumMessages: 1, 162 NumExtensions: 0, 163 NumServices: 0, 164 }, 165 GoTypes: file_envoy_config_resource_monitor_injected_resource_v2alpha_injected_resource_proto_goTypes, 166 DependencyIndexes: file_envoy_config_resource_monitor_injected_resource_v2alpha_injected_resource_proto_depIdxs, 167 MessageInfos: file_envoy_config_resource_monitor_injected_resource_v2alpha_injected_resource_proto_msgTypes, 168 }.Build() 169 File_envoy_config_resource_monitor_injected_resource_v2alpha_injected_resource_proto = out.File 170 file_envoy_config_resource_monitor_injected_resource_v2alpha_injected_resource_proto_rawDesc = nil 171 file_envoy_config_resource_monitor_injected_resource_v2alpha_injected_resource_proto_goTypes = nil 172 file_envoy_config_resource_monitor_injected_resource_v2alpha_injected_resource_proto_depIdxs = nil 173 }