google.golang.org/grpc@v1.74.2/interop/grpc_testing/stats.pb.go (about) 1 // Copyright 2015 gRPC authors. 2 // 3 // Licensed under the Apache License, Version 2.0 (the "License"); 4 // you may not use this file except in compliance with the License. 5 // You may obtain a copy of the License at 6 // 7 // http://www.apache.org/licenses/LICENSE-2.0 8 // 9 // Unless required by applicable law or agreed to in writing, software 10 // distributed under the License is distributed on an "AS IS" BASIS, 11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 // See the License for the specific language governing permissions and 13 // limitations under the License. 14 15 // Code generated by protoc-gen-go. DO NOT EDIT. 16 // versions: 17 // protoc-gen-go v1.36.6 18 // protoc v5.27.1 19 // source: grpc/testing/stats.proto 20 21 package grpc_testing 22 23 import ( 24 core "google.golang.org/grpc/interop/grpc_testing/core" 25 protoreflect "google.golang.org/protobuf/reflect/protoreflect" 26 protoimpl "google.golang.org/protobuf/runtime/protoimpl" 27 reflect "reflect" 28 sync "sync" 29 unsafe "unsafe" 30 ) 31 32 const ( 33 // Verify that this generated code is sufficiently up-to-date. 34 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) 35 // Verify that runtime/protoimpl is sufficiently up-to-date. 36 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) 37 ) 38 39 type ServerStats struct { 40 state protoimpl.MessageState `protogen:"open.v1"` 41 // wall clock time change in seconds since last reset 42 TimeElapsed float64 `protobuf:"fixed64,1,opt,name=time_elapsed,json=timeElapsed,proto3" json:"time_elapsed,omitempty"` 43 // change in user time (in seconds) used by the server since last reset 44 TimeUser float64 `protobuf:"fixed64,2,opt,name=time_user,json=timeUser,proto3" json:"time_user,omitempty"` 45 // change in server time (in seconds) used by the server process and all 46 // threads since last reset 47 TimeSystem float64 `protobuf:"fixed64,3,opt,name=time_system,json=timeSystem,proto3" json:"time_system,omitempty"` 48 // change in total cpu time of the server (data from proc/stat) 49 TotalCpuTime uint64 `protobuf:"varint,4,opt,name=total_cpu_time,json=totalCpuTime,proto3" json:"total_cpu_time,omitempty"` 50 // change in idle time of the server (data from proc/stat) 51 IdleCpuTime uint64 `protobuf:"varint,5,opt,name=idle_cpu_time,json=idleCpuTime,proto3" json:"idle_cpu_time,omitempty"` 52 // Number of polls called inside completion queue 53 CqPollCount uint64 `protobuf:"varint,6,opt,name=cq_poll_count,json=cqPollCount,proto3" json:"cq_poll_count,omitempty"` 54 // Core library stats 55 CoreStats *core.Stats `protobuf:"bytes,7,opt,name=core_stats,json=coreStats,proto3" json:"core_stats,omitempty"` 56 unknownFields protoimpl.UnknownFields 57 sizeCache protoimpl.SizeCache 58 } 59 60 func (x *ServerStats) Reset() { 61 *x = ServerStats{} 62 mi := &file_grpc_testing_stats_proto_msgTypes[0] 63 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 64 ms.StoreMessageInfo(mi) 65 } 66 67 func (x *ServerStats) String() string { 68 return protoimpl.X.MessageStringOf(x) 69 } 70 71 func (*ServerStats) ProtoMessage() {} 72 73 func (x *ServerStats) ProtoReflect() protoreflect.Message { 74 mi := &file_grpc_testing_stats_proto_msgTypes[0] 75 if x != nil { 76 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 77 if ms.LoadMessageInfo() == nil { 78 ms.StoreMessageInfo(mi) 79 } 80 return ms 81 } 82 return mi.MessageOf(x) 83 } 84 85 // Deprecated: Use ServerStats.ProtoReflect.Descriptor instead. 86 func (*ServerStats) Descriptor() ([]byte, []int) { 87 return file_grpc_testing_stats_proto_rawDescGZIP(), []int{0} 88 } 89 90 func (x *ServerStats) GetTimeElapsed() float64 { 91 if x != nil { 92 return x.TimeElapsed 93 } 94 return 0 95 } 96 97 func (x *ServerStats) GetTimeUser() float64 { 98 if x != nil { 99 return x.TimeUser 100 } 101 return 0 102 } 103 104 func (x *ServerStats) GetTimeSystem() float64 { 105 if x != nil { 106 return x.TimeSystem 107 } 108 return 0 109 } 110 111 func (x *ServerStats) GetTotalCpuTime() uint64 { 112 if x != nil { 113 return x.TotalCpuTime 114 } 115 return 0 116 } 117 118 func (x *ServerStats) GetIdleCpuTime() uint64 { 119 if x != nil { 120 return x.IdleCpuTime 121 } 122 return 0 123 } 124 125 func (x *ServerStats) GetCqPollCount() uint64 { 126 if x != nil { 127 return x.CqPollCount 128 } 129 return 0 130 } 131 132 func (x *ServerStats) GetCoreStats() *core.Stats { 133 if x != nil { 134 return x.CoreStats 135 } 136 return nil 137 } 138 139 // Histogram params based on grpc/support/histogram.c 140 type HistogramParams struct { 141 state protoimpl.MessageState `protogen:"open.v1"` 142 Resolution float64 `protobuf:"fixed64,1,opt,name=resolution,proto3" json:"resolution,omitempty"` // first bucket is [0, 1 + resolution) 143 MaxPossible float64 `protobuf:"fixed64,2,opt,name=max_possible,json=maxPossible,proto3" json:"max_possible,omitempty"` // use enough buckets to allow this value 144 unknownFields protoimpl.UnknownFields 145 sizeCache protoimpl.SizeCache 146 } 147 148 func (x *HistogramParams) Reset() { 149 *x = HistogramParams{} 150 mi := &file_grpc_testing_stats_proto_msgTypes[1] 151 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 152 ms.StoreMessageInfo(mi) 153 } 154 155 func (x *HistogramParams) String() string { 156 return protoimpl.X.MessageStringOf(x) 157 } 158 159 func (*HistogramParams) ProtoMessage() {} 160 161 func (x *HistogramParams) ProtoReflect() protoreflect.Message { 162 mi := &file_grpc_testing_stats_proto_msgTypes[1] 163 if x != nil { 164 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 165 if ms.LoadMessageInfo() == nil { 166 ms.StoreMessageInfo(mi) 167 } 168 return ms 169 } 170 return mi.MessageOf(x) 171 } 172 173 // Deprecated: Use HistogramParams.ProtoReflect.Descriptor instead. 174 func (*HistogramParams) Descriptor() ([]byte, []int) { 175 return file_grpc_testing_stats_proto_rawDescGZIP(), []int{1} 176 } 177 178 func (x *HistogramParams) GetResolution() float64 { 179 if x != nil { 180 return x.Resolution 181 } 182 return 0 183 } 184 185 func (x *HistogramParams) GetMaxPossible() float64 { 186 if x != nil { 187 return x.MaxPossible 188 } 189 return 0 190 } 191 192 // Histogram data based on grpc/support/histogram.c 193 type HistogramData struct { 194 state protoimpl.MessageState `protogen:"open.v1"` 195 Bucket []uint32 `protobuf:"varint,1,rep,packed,name=bucket,proto3" json:"bucket,omitempty"` 196 MinSeen float64 `protobuf:"fixed64,2,opt,name=min_seen,json=minSeen,proto3" json:"min_seen,omitempty"` 197 MaxSeen float64 `protobuf:"fixed64,3,opt,name=max_seen,json=maxSeen,proto3" json:"max_seen,omitempty"` 198 Sum float64 `protobuf:"fixed64,4,opt,name=sum,proto3" json:"sum,omitempty"` 199 SumOfSquares float64 `protobuf:"fixed64,5,opt,name=sum_of_squares,json=sumOfSquares,proto3" json:"sum_of_squares,omitempty"` 200 Count float64 `protobuf:"fixed64,6,opt,name=count,proto3" json:"count,omitempty"` 201 unknownFields protoimpl.UnknownFields 202 sizeCache protoimpl.SizeCache 203 } 204 205 func (x *HistogramData) Reset() { 206 *x = HistogramData{} 207 mi := &file_grpc_testing_stats_proto_msgTypes[2] 208 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 209 ms.StoreMessageInfo(mi) 210 } 211 212 func (x *HistogramData) String() string { 213 return protoimpl.X.MessageStringOf(x) 214 } 215 216 func (*HistogramData) ProtoMessage() {} 217 218 func (x *HistogramData) ProtoReflect() protoreflect.Message { 219 mi := &file_grpc_testing_stats_proto_msgTypes[2] 220 if x != nil { 221 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 222 if ms.LoadMessageInfo() == nil { 223 ms.StoreMessageInfo(mi) 224 } 225 return ms 226 } 227 return mi.MessageOf(x) 228 } 229 230 // Deprecated: Use HistogramData.ProtoReflect.Descriptor instead. 231 func (*HistogramData) Descriptor() ([]byte, []int) { 232 return file_grpc_testing_stats_proto_rawDescGZIP(), []int{2} 233 } 234 235 func (x *HistogramData) GetBucket() []uint32 { 236 if x != nil { 237 return x.Bucket 238 } 239 return nil 240 } 241 242 func (x *HistogramData) GetMinSeen() float64 { 243 if x != nil { 244 return x.MinSeen 245 } 246 return 0 247 } 248 249 func (x *HistogramData) GetMaxSeen() float64 { 250 if x != nil { 251 return x.MaxSeen 252 } 253 return 0 254 } 255 256 func (x *HistogramData) GetSum() float64 { 257 if x != nil { 258 return x.Sum 259 } 260 return 0 261 } 262 263 func (x *HistogramData) GetSumOfSquares() float64 { 264 if x != nil { 265 return x.SumOfSquares 266 } 267 return 0 268 } 269 270 func (x *HistogramData) GetCount() float64 { 271 if x != nil { 272 return x.Count 273 } 274 return 0 275 } 276 277 type RequestResultCount struct { 278 state protoimpl.MessageState `protogen:"open.v1"` 279 StatusCode int32 `protobuf:"varint,1,opt,name=status_code,json=statusCode,proto3" json:"status_code,omitempty"` 280 Count int64 `protobuf:"varint,2,opt,name=count,proto3" json:"count,omitempty"` 281 unknownFields protoimpl.UnknownFields 282 sizeCache protoimpl.SizeCache 283 } 284 285 func (x *RequestResultCount) Reset() { 286 *x = RequestResultCount{} 287 mi := &file_grpc_testing_stats_proto_msgTypes[3] 288 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 289 ms.StoreMessageInfo(mi) 290 } 291 292 func (x *RequestResultCount) String() string { 293 return protoimpl.X.MessageStringOf(x) 294 } 295 296 func (*RequestResultCount) ProtoMessage() {} 297 298 func (x *RequestResultCount) ProtoReflect() protoreflect.Message { 299 mi := &file_grpc_testing_stats_proto_msgTypes[3] 300 if x != nil { 301 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 302 if ms.LoadMessageInfo() == nil { 303 ms.StoreMessageInfo(mi) 304 } 305 return ms 306 } 307 return mi.MessageOf(x) 308 } 309 310 // Deprecated: Use RequestResultCount.ProtoReflect.Descriptor instead. 311 func (*RequestResultCount) Descriptor() ([]byte, []int) { 312 return file_grpc_testing_stats_proto_rawDescGZIP(), []int{3} 313 } 314 315 func (x *RequestResultCount) GetStatusCode() int32 { 316 if x != nil { 317 return x.StatusCode 318 } 319 return 0 320 } 321 322 func (x *RequestResultCount) GetCount() int64 { 323 if x != nil { 324 return x.Count 325 } 326 return 0 327 } 328 329 type ClientStats struct { 330 state protoimpl.MessageState `protogen:"open.v1"` 331 // Latency histogram. Data points are in nanoseconds. 332 Latencies *HistogramData `protobuf:"bytes,1,opt,name=latencies,proto3" json:"latencies,omitempty"` 333 // See ServerStats for details. 334 TimeElapsed float64 `protobuf:"fixed64,2,opt,name=time_elapsed,json=timeElapsed,proto3" json:"time_elapsed,omitempty"` 335 TimeUser float64 `protobuf:"fixed64,3,opt,name=time_user,json=timeUser,proto3" json:"time_user,omitempty"` 336 TimeSystem float64 `protobuf:"fixed64,4,opt,name=time_system,json=timeSystem,proto3" json:"time_system,omitempty"` 337 // Number of failed requests (one row per status code seen) 338 RequestResults []*RequestResultCount `protobuf:"bytes,5,rep,name=request_results,json=requestResults,proto3" json:"request_results,omitempty"` 339 // Number of polls called inside completion queue 340 CqPollCount uint64 `protobuf:"varint,6,opt,name=cq_poll_count,json=cqPollCount,proto3" json:"cq_poll_count,omitempty"` 341 // Core library stats 342 CoreStats *core.Stats `protobuf:"bytes,7,opt,name=core_stats,json=coreStats,proto3" json:"core_stats,omitempty"` 343 unknownFields protoimpl.UnknownFields 344 sizeCache protoimpl.SizeCache 345 } 346 347 func (x *ClientStats) Reset() { 348 *x = ClientStats{} 349 mi := &file_grpc_testing_stats_proto_msgTypes[4] 350 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 351 ms.StoreMessageInfo(mi) 352 } 353 354 func (x *ClientStats) String() string { 355 return protoimpl.X.MessageStringOf(x) 356 } 357 358 func (*ClientStats) ProtoMessage() {} 359 360 func (x *ClientStats) ProtoReflect() protoreflect.Message { 361 mi := &file_grpc_testing_stats_proto_msgTypes[4] 362 if x != nil { 363 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 364 if ms.LoadMessageInfo() == nil { 365 ms.StoreMessageInfo(mi) 366 } 367 return ms 368 } 369 return mi.MessageOf(x) 370 } 371 372 // Deprecated: Use ClientStats.ProtoReflect.Descriptor instead. 373 func (*ClientStats) Descriptor() ([]byte, []int) { 374 return file_grpc_testing_stats_proto_rawDescGZIP(), []int{4} 375 } 376 377 func (x *ClientStats) GetLatencies() *HistogramData { 378 if x != nil { 379 return x.Latencies 380 } 381 return nil 382 } 383 384 func (x *ClientStats) GetTimeElapsed() float64 { 385 if x != nil { 386 return x.TimeElapsed 387 } 388 return 0 389 } 390 391 func (x *ClientStats) GetTimeUser() float64 { 392 if x != nil { 393 return x.TimeUser 394 } 395 return 0 396 } 397 398 func (x *ClientStats) GetTimeSystem() float64 { 399 if x != nil { 400 return x.TimeSystem 401 } 402 return 0 403 } 404 405 func (x *ClientStats) GetRequestResults() []*RequestResultCount { 406 if x != nil { 407 return x.RequestResults 408 } 409 return nil 410 } 411 412 func (x *ClientStats) GetCqPollCount() uint64 { 413 if x != nil { 414 return x.CqPollCount 415 } 416 return 0 417 } 418 419 func (x *ClientStats) GetCoreStats() *core.Stats { 420 if x != nil { 421 return x.CoreStats 422 } 423 return nil 424 } 425 426 var File_grpc_testing_stats_proto protoreflect.FileDescriptor 427 428 const file_grpc_testing_stats_proto_rawDesc = "" + 429 "\n" + 430 "\x18grpc/testing/stats.proto\x12\fgrpc.testing\x1a\x15grpc/core/stats.proto\"\x8d\x02\n" + 431 "\vServerStats\x12!\n" + 432 "\ftime_elapsed\x18\x01 \x01(\x01R\vtimeElapsed\x12\x1b\n" + 433 "\ttime_user\x18\x02 \x01(\x01R\btimeUser\x12\x1f\n" + 434 "\vtime_system\x18\x03 \x01(\x01R\n" + 435 "timeSystem\x12$\n" + 436 "\x0etotal_cpu_time\x18\x04 \x01(\x04R\ftotalCpuTime\x12\"\n" + 437 "\ridle_cpu_time\x18\x05 \x01(\x04R\vidleCpuTime\x12\"\n" + 438 "\rcq_poll_count\x18\x06 \x01(\x04R\vcqPollCount\x12/\n" + 439 "\n" + 440 "core_stats\x18\a \x01(\v2\x10.grpc.core.StatsR\tcoreStats\"T\n" + 441 "\x0fHistogramParams\x12\x1e\n" + 442 "\n" + 443 "resolution\x18\x01 \x01(\x01R\n" + 444 "resolution\x12!\n" + 445 "\fmax_possible\x18\x02 \x01(\x01R\vmaxPossible\"\xab\x01\n" + 446 "\rHistogramData\x12\x16\n" + 447 "\x06bucket\x18\x01 \x03(\rR\x06bucket\x12\x19\n" + 448 "\bmin_seen\x18\x02 \x01(\x01R\aminSeen\x12\x19\n" + 449 "\bmax_seen\x18\x03 \x01(\x01R\amaxSeen\x12\x10\n" + 450 "\x03sum\x18\x04 \x01(\x01R\x03sum\x12$\n" + 451 "\x0esum_of_squares\x18\x05 \x01(\x01R\fsumOfSquares\x12\x14\n" + 452 "\x05count\x18\x06 \x01(\x01R\x05count\"K\n" + 453 "\x12RequestResultCount\x12\x1f\n" + 454 "\vstatus_code\x18\x01 \x01(\x05R\n" + 455 "statusCode\x12\x14\n" + 456 "\x05count\x18\x02 \x01(\x03R\x05count\"\xc9\x02\n" + 457 "\vClientStats\x129\n" + 458 "\tlatencies\x18\x01 \x01(\v2\x1b.grpc.testing.HistogramDataR\tlatencies\x12!\n" + 459 "\ftime_elapsed\x18\x02 \x01(\x01R\vtimeElapsed\x12\x1b\n" + 460 "\ttime_user\x18\x03 \x01(\x01R\btimeUser\x12\x1f\n" + 461 "\vtime_system\x18\x04 \x01(\x01R\n" + 462 "timeSystem\x12I\n" + 463 "\x0frequest_results\x18\x05 \x03(\v2 .grpc.testing.RequestResultCountR\x0erequestResults\x12\"\n" + 464 "\rcq_poll_count\x18\x06 \x01(\x04R\vcqPollCount\x12/\n" + 465 "\n" + 466 "core_stats\x18\a \x01(\v2\x10.grpc.core.StatsR\tcoreStatsB\x1f\n" + 467 "\x0fio.grpc.testingB\n" + 468 "StatsProtoP\x01b\x06proto3" 469 470 var ( 471 file_grpc_testing_stats_proto_rawDescOnce sync.Once 472 file_grpc_testing_stats_proto_rawDescData []byte 473 ) 474 475 func file_grpc_testing_stats_proto_rawDescGZIP() []byte { 476 file_grpc_testing_stats_proto_rawDescOnce.Do(func() { 477 file_grpc_testing_stats_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_grpc_testing_stats_proto_rawDesc), len(file_grpc_testing_stats_proto_rawDesc))) 478 }) 479 return file_grpc_testing_stats_proto_rawDescData 480 } 481 482 var file_grpc_testing_stats_proto_msgTypes = make([]protoimpl.MessageInfo, 5) 483 var file_grpc_testing_stats_proto_goTypes = []any{ 484 (*ServerStats)(nil), // 0: grpc.testing.ServerStats 485 (*HistogramParams)(nil), // 1: grpc.testing.HistogramParams 486 (*HistogramData)(nil), // 2: grpc.testing.HistogramData 487 (*RequestResultCount)(nil), // 3: grpc.testing.RequestResultCount 488 (*ClientStats)(nil), // 4: grpc.testing.ClientStats 489 (*core.Stats)(nil), // 5: grpc.core.Stats 490 } 491 var file_grpc_testing_stats_proto_depIdxs = []int32{ 492 5, // 0: grpc.testing.ServerStats.core_stats:type_name -> grpc.core.Stats 493 2, // 1: grpc.testing.ClientStats.latencies:type_name -> grpc.testing.HistogramData 494 3, // 2: grpc.testing.ClientStats.request_results:type_name -> grpc.testing.RequestResultCount 495 5, // 3: grpc.testing.ClientStats.core_stats:type_name -> grpc.core.Stats 496 4, // [4:4] is the sub-list for method output_type 497 4, // [4:4] is the sub-list for method input_type 498 4, // [4:4] is the sub-list for extension type_name 499 4, // [4:4] is the sub-list for extension extendee 500 0, // [0:4] is the sub-list for field type_name 501 } 502 503 func init() { file_grpc_testing_stats_proto_init() } 504 func file_grpc_testing_stats_proto_init() { 505 if File_grpc_testing_stats_proto != nil { 506 return 507 } 508 type x struct{} 509 out := protoimpl.TypeBuilder{ 510 File: protoimpl.DescBuilder{ 511 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 512 RawDescriptor: unsafe.Slice(unsafe.StringData(file_grpc_testing_stats_proto_rawDesc), len(file_grpc_testing_stats_proto_rawDesc)), 513 NumEnums: 0, 514 NumMessages: 5, 515 NumExtensions: 0, 516 NumServices: 0, 517 }, 518 GoTypes: file_grpc_testing_stats_proto_goTypes, 519 DependencyIndexes: file_grpc_testing_stats_proto_depIdxs, 520 MessageInfos: file_grpc_testing_stats_proto_msgTypes, 521 }.Build() 522 File_grpc_testing_stats_proto = out.File 523 file_grpc_testing_stats_proto_goTypes = nil 524 file_grpc_testing_stats_proto_depIdxs = nil 525 }