github.com/kaydxh/golang@v0.0.131/pkg/monitor/monitor.pb.go (about) 1 /* 2 *Copyright (c) 2022, kaydxh 3 * 4 *Permission is hereby granted, free of charge, to any person obtaining a copy 5 *of this software and associated documentation files (the "Software"), to deal 6 *in the Software without restriction, including without limitation the rights 7 *to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 8 *copies of the Software, and to permit persons to whom the Software is 9 *furnished to do so, subject to the following conditions: 10 * 11 *The above copyright notice and this permission notice shall be included in all 12 *copies or substantial portions of the Software. 13 * 14 *THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 15 *IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 16 *FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 17 *AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 18 *LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 19 *OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 20 *SOFTWARE. 21 */ 22 // Code generated by protoc-gen-go. DO NOT EDIT. 23 // versions: 24 // protoc-gen-go v1.27.0 25 // protoc v3.13.0 26 // source: pkg/monitor/monitor.proto 27 28 package monitor 29 30 import ( 31 _ "github.com/golang/protobuf/ptypes/duration" 32 protoreflect "google.golang.org/protobuf/reflect/protoreflect" 33 protoimpl "google.golang.org/protobuf/runtime/protoimpl" 34 reflect "reflect" 35 sync "sync" 36 ) 37 38 const ( 39 // Verify that this generated code is sufficiently up-to-date. 40 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) 41 // Verify that runtime/protoimpl is sufficiently up-to-date. 42 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) 43 ) 44 45 type Monitor struct { 46 state protoimpl.MessageState 47 sizeCache protoimpl.SizeCache 48 unknownFields protoimpl.UnknownFields 49 50 Prometheus *Monitor_Prometheus `protobuf:"bytes,1,opt,name=prometheus,proto3" json:"prometheus,omitempty"` 51 } 52 53 func (x *Monitor) Reset() { 54 *x = Monitor{} 55 if protoimpl.UnsafeEnabled { 56 mi := &file_pkg_monitor_monitor_proto_msgTypes[0] 57 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 58 ms.StoreMessageInfo(mi) 59 } 60 } 61 62 func (x *Monitor) String() string { 63 return protoimpl.X.MessageStringOf(x) 64 } 65 66 func (*Monitor) ProtoMessage() {} 67 68 func (x *Monitor) ProtoReflect() protoreflect.Message { 69 mi := &file_pkg_monitor_monitor_proto_msgTypes[0] 70 if protoimpl.UnsafeEnabled && x != nil { 71 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 72 if ms.LoadMessageInfo() == nil { 73 ms.StoreMessageInfo(mi) 74 } 75 return ms 76 } 77 return mi.MessageOf(x) 78 } 79 80 // Deprecated: Use Monitor.ProtoReflect.Descriptor instead. 81 func (*Monitor) Descriptor() ([]byte, []int) { 82 return file_pkg_monitor_monitor_proto_rawDescGZIP(), []int{0} 83 } 84 85 func (x *Monitor) GetPrometheus() *Monitor_Prometheus { 86 if x != nil { 87 return x.Prometheus 88 } 89 return nil 90 } 91 92 type Monitor_Prometheus struct { 93 state protoimpl.MessageState 94 sizeCache protoimpl.SizeCache 95 unknownFields protoimpl.UnknownFields 96 97 EnabledMetricTimerCost bool `protobuf:"varint,1,opt,name=enabled_metric_timer_cost,json=enabledMetricTimerCost,proto3" json:"enabled_metric_timer_cost,omitempty"` 98 EnabledMetricCodeMessage bool `protobuf:"varint,2,opt,name=enabled_metric_code_message,json=enabledMetricCodeMessage,proto3" json:"enabled_metric_code_message,omitempty"` 99 } 100 101 func (x *Monitor_Prometheus) Reset() { 102 *x = Monitor_Prometheus{} 103 if protoimpl.UnsafeEnabled { 104 mi := &file_pkg_monitor_monitor_proto_msgTypes[1] 105 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 106 ms.StoreMessageInfo(mi) 107 } 108 } 109 110 func (x *Monitor_Prometheus) String() string { 111 return protoimpl.X.MessageStringOf(x) 112 } 113 114 func (*Monitor_Prometheus) ProtoMessage() {} 115 116 func (x *Monitor_Prometheus) ProtoReflect() protoreflect.Message { 117 mi := &file_pkg_monitor_monitor_proto_msgTypes[1] 118 if protoimpl.UnsafeEnabled && x != nil { 119 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 120 if ms.LoadMessageInfo() == nil { 121 ms.StoreMessageInfo(mi) 122 } 123 return ms 124 } 125 return mi.MessageOf(x) 126 } 127 128 // Deprecated: Use Monitor_Prometheus.ProtoReflect.Descriptor instead. 129 func (*Monitor_Prometheus) Descriptor() ([]byte, []int) { 130 return file_pkg_monitor_monitor_proto_rawDescGZIP(), []int{0, 0} 131 } 132 133 func (x *Monitor_Prometheus) GetEnabledMetricTimerCost() bool { 134 if x != nil { 135 return x.EnabledMetricTimerCost 136 } 137 return false 138 } 139 140 func (x *Monitor_Prometheus) GetEnabledMetricCodeMessage() bool { 141 if x != nil { 142 return x.EnabledMetricCodeMessage 143 } 144 return false 145 } 146 147 var File_pkg_monitor_monitor_proto protoreflect.FileDescriptor 148 149 var file_pkg_monitor_monitor_proto_rawDesc = []byte{ 150 0x0a, 0x19, 0x70, 0x6b, 0x67, 0x2f, 0x6d, 0x6f, 0x6e, 0x69, 0x74, 0x6f, 0x72, 0x2f, 0x6d, 0x6f, 151 0x6e, 0x69, 0x74, 0x6f, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0e, 0x67, 0x6f, 0x2e, 152 0x70, 0x6b, 0x67, 0x2e, 0x6d, 0x6f, 0x6e, 0x69, 0x74, 0x6f, 0x72, 0x1a, 0x1e, 0x67, 0x6f, 0x6f, 153 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x64, 0x75, 0x72, 154 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xd6, 0x01, 0x0a, 0x07, 155 0x4d, 0x6f, 0x6e, 0x69, 0x74, 0x6f, 0x72, 0x12, 0x42, 0x0a, 0x0a, 0x70, 0x72, 0x6f, 0x6d, 0x65, 156 0x74, 0x68, 0x65, 0x75, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x67, 0x6f, 157 0x2e, 0x70, 0x6b, 0x67, 0x2e, 0x6d, 0x6f, 0x6e, 0x69, 0x74, 0x6f, 0x72, 0x2e, 0x4d, 0x6f, 0x6e, 158 0x69, 0x74, 0x6f, 0x72, 0x2e, 0x50, 0x72, 0x6f, 0x6d, 0x65, 0x74, 0x68, 0x65, 0x75, 0x73, 0x52, 159 0x0a, 0x70, 0x72, 0x6f, 0x6d, 0x65, 0x74, 0x68, 0x65, 0x75, 0x73, 0x1a, 0x86, 0x01, 0x0a, 0x0a, 160 0x50, 0x72, 0x6f, 0x6d, 0x65, 0x74, 0x68, 0x65, 0x75, 0x73, 0x12, 0x39, 0x0a, 0x19, 0x65, 0x6e, 161 0x61, 0x62, 0x6c, 0x65, 0x64, 0x5f, 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x5f, 0x74, 0x69, 0x6d, 162 0x65, 0x72, 0x5f, 0x63, 0x6f, 0x73, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x16, 0x65, 163 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x54, 0x69, 0x6d, 0x65, 164 0x72, 0x43, 0x6f, 0x73, 0x74, 0x12, 0x3d, 0x0a, 0x1b, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 165 0x5f, 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x5f, 0x63, 0x6f, 0x64, 0x65, 0x5f, 0x6d, 0x65, 0x73, 166 0x73, 0x61, 0x67, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x18, 0x65, 0x6e, 0x61, 0x62, 167 0x6c, 0x65, 0x64, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x43, 0x6f, 0x64, 0x65, 0x4d, 0x65, 0x73, 168 0x73, 0x61, 0x67, 0x65, 0x42, 0x2e, 0x5a, 0x2c, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 169 0x6f, 0x6d, 0x2f, 0x6b, 0x61, 0x79, 0x64, 0x78, 0x68, 0x2f, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 170 0x2f, 0x70, 0x6b, 0x67, 0x2f, 0x6d, 0x6f, 0x6e, 0x69, 0x74, 0x6f, 0x72, 0x3b, 0x6d, 0x6f, 0x6e, 171 0x69, 0x74, 0x6f, 0x72, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, 172 } 173 174 var ( 175 file_pkg_monitor_monitor_proto_rawDescOnce sync.Once 176 file_pkg_monitor_monitor_proto_rawDescData = file_pkg_monitor_monitor_proto_rawDesc 177 ) 178 179 func file_pkg_monitor_monitor_proto_rawDescGZIP() []byte { 180 file_pkg_monitor_monitor_proto_rawDescOnce.Do(func() { 181 file_pkg_monitor_monitor_proto_rawDescData = protoimpl.X.CompressGZIP(file_pkg_monitor_monitor_proto_rawDescData) 182 }) 183 return file_pkg_monitor_monitor_proto_rawDescData 184 } 185 186 var file_pkg_monitor_monitor_proto_msgTypes = make([]protoimpl.MessageInfo, 2) 187 var file_pkg_monitor_monitor_proto_goTypes = []interface{}{ 188 (*Monitor)(nil), // 0: go.pkg.monitor.Monitor 189 (*Monitor_Prometheus)(nil), // 1: go.pkg.monitor.Monitor.Prometheus 190 } 191 var file_pkg_monitor_monitor_proto_depIdxs = []int32{ 192 1, // 0: go.pkg.monitor.Monitor.prometheus:type_name -> go.pkg.monitor.Monitor.Prometheus 193 1, // [1:1] is the sub-list for method output_type 194 1, // [1:1] is the sub-list for method input_type 195 1, // [1:1] is the sub-list for extension type_name 196 1, // [1:1] is the sub-list for extension extendee 197 0, // [0:1] is the sub-list for field type_name 198 } 199 200 func init() { file_pkg_monitor_monitor_proto_init() } 201 func file_pkg_monitor_monitor_proto_init() { 202 if File_pkg_monitor_monitor_proto != nil { 203 return 204 } 205 if !protoimpl.UnsafeEnabled { 206 file_pkg_monitor_monitor_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 207 switch v := v.(*Monitor); i { 208 case 0: 209 return &v.state 210 case 1: 211 return &v.sizeCache 212 case 2: 213 return &v.unknownFields 214 default: 215 return nil 216 } 217 } 218 file_pkg_monitor_monitor_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { 219 switch v := v.(*Monitor_Prometheus); i { 220 case 0: 221 return &v.state 222 case 1: 223 return &v.sizeCache 224 case 2: 225 return &v.unknownFields 226 default: 227 return nil 228 } 229 } 230 } 231 type x struct{} 232 out := protoimpl.TypeBuilder{ 233 File: protoimpl.DescBuilder{ 234 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 235 RawDescriptor: file_pkg_monitor_monitor_proto_rawDesc, 236 NumEnums: 0, 237 NumMessages: 2, 238 NumExtensions: 0, 239 NumServices: 0, 240 }, 241 GoTypes: file_pkg_monitor_monitor_proto_goTypes, 242 DependencyIndexes: file_pkg_monitor_monitor_proto_depIdxs, 243 MessageInfos: file_pkg_monitor_monitor_proto_msgTypes, 244 }.Build() 245 File_pkg_monitor_monitor_proto = out.File 246 file_pkg_monitor_monitor_proto_rawDesc = nil 247 file_pkg_monitor_monitor_proto_goTypes = nil 248 file_pkg_monitor_monitor_proto_depIdxs = nil 249 }