go.ligato.io/vpp-agent/v3@v3.5.0/proto/ligato/configurator/statspoller.pb.go (about) 1 // Code generated by protoc-gen-go. DO NOT EDIT. 2 // versions: 3 // protoc-gen-go v1.27.1 4 // protoc v3.17.3 5 // source: ligato/configurator/statspoller.proto 6 7 package configurator 8 9 import ( 10 vpp "go.ligato.io/vpp-agent/v3/proto/ligato/vpp" 11 protoreflect "google.golang.org/protobuf/reflect/protoreflect" 12 protoimpl "google.golang.org/protobuf/runtime/protoimpl" 13 reflect "reflect" 14 sync "sync" 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 // Stats defines stats data returned by StatsPollerService. 25 type Stats struct { 26 state protoimpl.MessageState 27 sizeCache protoimpl.SizeCache 28 unknownFields protoimpl.UnknownFields 29 30 // Types that are assignable to Stats: 31 // *Stats_VppStats 32 Stats isStats_Stats `protobuf_oneof:"stats"` 33 } 34 35 func (x *Stats) Reset() { 36 *x = Stats{} 37 if protoimpl.UnsafeEnabled { 38 mi := &file_ligato_configurator_statspoller_proto_msgTypes[0] 39 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 40 ms.StoreMessageInfo(mi) 41 } 42 } 43 44 func (x *Stats) String() string { 45 return protoimpl.X.MessageStringOf(x) 46 } 47 48 func (*Stats) ProtoMessage() {} 49 50 func (x *Stats) ProtoReflect() protoreflect.Message { 51 mi := &file_ligato_configurator_statspoller_proto_msgTypes[0] 52 if protoimpl.UnsafeEnabled && x != nil { 53 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 54 if ms.LoadMessageInfo() == nil { 55 ms.StoreMessageInfo(mi) 56 } 57 return ms 58 } 59 return mi.MessageOf(x) 60 } 61 62 // Deprecated: Use Stats.ProtoReflect.Descriptor instead. 63 func (*Stats) Descriptor() ([]byte, []int) { 64 return file_ligato_configurator_statspoller_proto_rawDescGZIP(), []int{0} 65 } 66 67 func (m *Stats) GetStats() isStats_Stats { 68 if m != nil { 69 return m.Stats 70 } 71 return nil 72 } 73 74 func (x *Stats) GetVppStats() *vpp.Stats { 75 if x, ok := x.GetStats().(*Stats_VppStats); ok { 76 return x.VppStats 77 } 78 return nil 79 } 80 81 type isStats_Stats interface { 82 isStats_Stats() 83 } 84 85 type Stats_VppStats struct { 86 VppStats *vpp.Stats `protobuf:"bytes,1,opt,name=vpp_stats,json=vppStats,proto3,oneof"` 87 } 88 89 func (*Stats_VppStats) isStats_Stats() {} 90 91 type PollStatsRequest struct { 92 state protoimpl.MessageState 93 sizeCache protoimpl.SizeCache 94 unknownFields protoimpl.UnknownFields 95 96 // PeriodSec defines polling period (in seconds). Set to zero to 97 // return just single polling. 98 PeriodSec uint32 `protobuf:"varint,1,opt,name=period_sec,json=periodSec,proto3" json:"period_sec,omitempty"` 99 // NumPolls defines number of pollings. Set to non-zero number to 100 // stop the polling after specified number of pollings is reached. 101 NumPolls uint32 `protobuf:"varint,2,opt,name=num_polls,json=numPolls,proto3" json:"num_polls,omitempty"` 102 } 103 104 func (x *PollStatsRequest) Reset() { 105 *x = PollStatsRequest{} 106 if protoimpl.UnsafeEnabled { 107 mi := &file_ligato_configurator_statspoller_proto_msgTypes[1] 108 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 109 ms.StoreMessageInfo(mi) 110 } 111 } 112 113 func (x *PollStatsRequest) String() string { 114 return protoimpl.X.MessageStringOf(x) 115 } 116 117 func (*PollStatsRequest) ProtoMessage() {} 118 119 func (x *PollStatsRequest) ProtoReflect() protoreflect.Message { 120 mi := &file_ligato_configurator_statspoller_proto_msgTypes[1] 121 if protoimpl.UnsafeEnabled && x != nil { 122 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 123 if ms.LoadMessageInfo() == nil { 124 ms.StoreMessageInfo(mi) 125 } 126 return ms 127 } 128 return mi.MessageOf(x) 129 } 130 131 // Deprecated: Use PollStatsRequest.ProtoReflect.Descriptor instead. 132 func (*PollStatsRequest) Descriptor() ([]byte, []int) { 133 return file_ligato_configurator_statspoller_proto_rawDescGZIP(), []int{1} 134 } 135 136 func (x *PollStatsRequest) GetPeriodSec() uint32 { 137 if x != nil { 138 return x.PeriodSec 139 } 140 return 0 141 } 142 143 func (x *PollStatsRequest) GetNumPolls() uint32 { 144 if x != nil { 145 return x.NumPolls 146 } 147 return 0 148 } 149 150 type PollStatsResponse struct { 151 state protoimpl.MessageState 152 sizeCache protoimpl.SizeCache 153 unknownFields protoimpl.UnknownFields 154 155 // PollSeq defines the sequence number of this polling response. 156 PollSeq uint32 `protobuf:"varint,1,opt,name=poll_seq,json=pollSeq,proto3" json:"poll_seq,omitempty"` 157 // Stats contains polled stats data. 158 Stats *Stats `protobuf:"bytes,2,opt,name=stats,proto3" json:"stats,omitempty"` 159 } 160 161 func (x *PollStatsResponse) Reset() { 162 *x = PollStatsResponse{} 163 if protoimpl.UnsafeEnabled { 164 mi := &file_ligato_configurator_statspoller_proto_msgTypes[2] 165 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 166 ms.StoreMessageInfo(mi) 167 } 168 } 169 170 func (x *PollStatsResponse) String() string { 171 return protoimpl.X.MessageStringOf(x) 172 } 173 174 func (*PollStatsResponse) ProtoMessage() {} 175 176 func (x *PollStatsResponse) ProtoReflect() protoreflect.Message { 177 mi := &file_ligato_configurator_statspoller_proto_msgTypes[2] 178 if protoimpl.UnsafeEnabled && x != nil { 179 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 180 if ms.LoadMessageInfo() == nil { 181 ms.StoreMessageInfo(mi) 182 } 183 return ms 184 } 185 return mi.MessageOf(x) 186 } 187 188 // Deprecated: Use PollStatsResponse.ProtoReflect.Descriptor instead. 189 func (*PollStatsResponse) Descriptor() ([]byte, []int) { 190 return file_ligato_configurator_statspoller_proto_rawDescGZIP(), []int{2} 191 } 192 193 func (x *PollStatsResponse) GetPollSeq() uint32 { 194 if x != nil { 195 return x.PollSeq 196 } 197 return 0 198 } 199 200 func (x *PollStatsResponse) GetStats() *Stats { 201 if x != nil { 202 return x.Stats 203 } 204 return nil 205 } 206 207 var File_ligato_configurator_statspoller_proto protoreflect.FileDescriptor 208 209 var file_ligato_configurator_statspoller_proto_rawDesc = []byte{ 210 0x0a, 0x25, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 211 0x72, 0x61, 0x74, 0x6f, 0x72, 0x2f, 0x73, 0x74, 0x61, 0x74, 0x73, 0x70, 0x6f, 0x6c, 0x6c, 0x65, 212 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x13, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2e, 213 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x1a, 0x14, 0x6c, 0x69, 214 0x67, 0x61, 0x74, 0x6f, 0x2f, 0x76, 0x70, 0x70, 0x2f, 0x76, 0x70, 0x70, 0x2e, 0x70, 0x72, 0x6f, 215 0x74, 0x6f, 0x22, 0x42, 0x0a, 0x05, 0x53, 0x74, 0x61, 0x74, 0x73, 0x12, 0x30, 0x0a, 0x09, 0x76, 216 0x70, 0x70, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x11, 217 0x2e, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2e, 0x76, 0x70, 0x70, 0x2e, 0x53, 0x74, 0x61, 0x74, 218 0x73, 0x48, 0x00, 0x52, 0x08, 0x76, 0x70, 0x70, 0x53, 0x74, 0x61, 0x74, 0x73, 0x42, 0x07, 0x0a, 219 0x05, 0x73, 0x74, 0x61, 0x74, 0x73, 0x22, 0x4e, 0x0a, 0x10, 0x50, 0x6f, 0x6c, 0x6c, 0x53, 0x74, 220 0x61, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x65, 221 0x72, 0x69, 0x6f, 0x64, 0x5f, 0x73, 0x65, 0x63, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x09, 222 0x70, 0x65, 0x72, 0x69, 0x6f, 0x64, 0x53, 0x65, 0x63, 0x12, 0x1b, 0x0a, 0x09, 0x6e, 0x75, 0x6d, 223 0x5f, 0x70, 0x6f, 0x6c, 0x6c, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x08, 0x6e, 0x75, 224 0x6d, 0x50, 0x6f, 0x6c, 0x6c, 0x73, 0x22, 0x60, 0x0a, 0x11, 0x50, 0x6f, 0x6c, 0x6c, 0x53, 0x74, 225 0x61, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x19, 0x0a, 0x08, 0x70, 226 0x6f, 0x6c, 0x6c, 0x5f, 0x73, 0x65, 0x71, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x07, 0x70, 227 0x6f, 0x6c, 0x6c, 0x53, 0x65, 0x71, 0x12, 0x30, 0x0a, 0x05, 0x73, 0x74, 0x61, 0x74, 0x73, 0x18, 228 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2e, 0x63, 229 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x2e, 0x53, 0x74, 0x61, 0x74, 230 0x73, 0x52, 0x05, 0x73, 0x74, 0x61, 0x74, 0x73, 0x32, 0x74, 0x0a, 0x12, 0x53, 0x74, 0x61, 0x74, 231 0x73, 0x50, 0x6f, 0x6c, 0x6c, 0x65, 0x72, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x5e, 232 0x0a, 0x09, 0x50, 0x6f, 0x6c, 0x6c, 0x53, 0x74, 0x61, 0x74, 0x73, 0x12, 0x25, 0x2e, 0x6c, 0x69, 233 0x67, 0x61, 0x74, 0x6f, 0x2e, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x6f, 234 0x72, 0x2e, 0x50, 0x6f, 0x6c, 0x6c, 0x53, 0x74, 0x61, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 235 0x73, 0x74, 0x1a, 0x26, 0x2e, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2e, 0x63, 0x6f, 0x6e, 0x66, 236 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x2e, 0x50, 0x6f, 0x6c, 0x6c, 0x53, 0x74, 0x61, 237 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x30, 0x01, 0x42, 0x42, 238 0x5a, 0x40, 0x67, 0x6f, 0x2e, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2e, 0x69, 0x6f, 0x2f, 0x76, 239 0x70, 0x70, 0x2d, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2f, 0x76, 0x33, 0x2f, 0x70, 0x72, 0x6f, 0x74, 240 0x6f, 0x2f, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 241 0x72, 0x61, 0x74, 0x6f, 0x72, 0x3b, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 242 0x6f, 0x72, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, 243 } 244 245 var ( 246 file_ligato_configurator_statspoller_proto_rawDescOnce sync.Once 247 file_ligato_configurator_statspoller_proto_rawDescData = file_ligato_configurator_statspoller_proto_rawDesc 248 ) 249 250 func file_ligato_configurator_statspoller_proto_rawDescGZIP() []byte { 251 file_ligato_configurator_statspoller_proto_rawDescOnce.Do(func() { 252 file_ligato_configurator_statspoller_proto_rawDescData = protoimpl.X.CompressGZIP(file_ligato_configurator_statspoller_proto_rawDescData) 253 }) 254 return file_ligato_configurator_statspoller_proto_rawDescData 255 } 256 257 var file_ligato_configurator_statspoller_proto_msgTypes = make([]protoimpl.MessageInfo, 3) 258 var file_ligato_configurator_statspoller_proto_goTypes = []interface{}{ 259 (*Stats)(nil), // 0: ligato.configurator.Stats 260 (*PollStatsRequest)(nil), // 1: ligato.configurator.PollStatsRequest 261 (*PollStatsResponse)(nil), // 2: ligato.configurator.PollStatsResponse 262 (*vpp.Stats)(nil), // 3: ligato.vpp.Stats 263 } 264 var file_ligato_configurator_statspoller_proto_depIdxs = []int32{ 265 3, // 0: ligato.configurator.Stats.vpp_stats:type_name -> ligato.vpp.Stats 266 0, // 1: ligato.configurator.PollStatsResponse.stats:type_name -> ligato.configurator.Stats 267 1, // 2: ligato.configurator.StatsPollerService.PollStats:input_type -> ligato.configurator.PollStatsRequest 268 2, // 3: ligato.configurator.StatsPollerService.PollStats:output_type -> ligato.configurator.PollStatsResponse 269 3, // [3:4] is the sub-list for method output_type 270 2, // [2:3] is the sub-list for method input_type 271 2, // [2:2] is the sub-list for extension type_name 272 2, // [2:2] is the sub-list for extension extendee 273 0, // [0:2] is the sub-list for field type_name 274 } 275 276 func init() { file_ligato_configurator_statspoller_proto_init() } 277 func file_ligato_configurator_statspoller_proto_init() { 278 if File_ligato_configurator_statspoller_proto != nil { 279 return 280 } 281 if !protoimpl.UnsafeEnabled { 282 file_ligato_configurator_statspoller_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 283 switch v := v.(*Stats); i { 284 case 0: 285 return &v.state 286 case 1: 287 return &v.sizeCache 288 case 2: 289 return &v.unknownFields 290 default: 291 return nil 292 } 293 } 294 file_ligato_configurator_statspoller_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { 295 switch v := v.(*PollStatsRequest); i { 296 case 0: 297 return &v.state 298 case 1: 299 return &v.sizeCache 300 case 2: 301 return &v.unknownFields 302 default: 303 return nil 304 } 305 } 306 file_ligato_configurator_statspoller_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { 307 switch v := v.(*PollStatsResponse); i { 308 case 0: 309 return &v.state 310 case 1: 311 return &v.sizeCache 312 case 2: 313 return &v.unknownFields 314 default: 315 return nil 316 } 317 } 318 } 319 file_ligato_configurator_statspoller_proto_msgTypes[0].OneofWrappers = []interface{}{ 320 (*Stats_VppStats)(nil), 321 } 322 type x struct{} 323 out := protoimpl.TypeBuilder{ 324 File: protoimpl.DescBuilder{ 325 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 326 RawDescriptor: file_ligato_configurator_statspoller_proto_rawDesc, 327 NumEnums: 0, 328 NumMessages: 3, 329 NumExtensions: 0, 330 NumServices: 1, 331 }, 332 GoTypes: file_ligato_configurator_statspoller_proto_goTypes, 333 DependencyIndexes: file_ligato_configurator_statspoller_proto_depIdxs, 334 MessageInfos: file_ligato_configurator_statspoller_proto_msgTypes, 335 }.Build() 336 File_ligato_configurator_statspoller_proto = out.File 337 file_ligato_configurator_statspoller_proto_rawDesc = nil 338 file_ligato_configurator_statspoller_proto_goTypes = nil 339 file_ligato_configurator_statspoller_proto_depIdxs = nil 340 }