stats.pb.go 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // source: stats.proto
  3. package grpc_testing
  4. import (
  5. fmt "fmt"
  6. proto "github.com/golang/protobuf/proto"
  7. math "math"
  8. )
  9. // Reference imports to suppress errors if they are not otherwise used.
  10. var _ = proto.Marshal
  11. var _ = fmt.Errorf
  12. var _ = math.Inf
  13. // This is a compile-time assertion to ensure that this generated file
  14. // is compatible with the proto package it is being compiled against.
  15. // A compilation error at this line likely means your copy of the
  16. // proto package needs to be updated.
  17. const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
  18. type ServerStats struct {
  19. // wall clock time change in seconds since last reset
  20. TimeElapsed float64 `protobuf:"fixed64,1,opt,name=time_elapsed,json=timeElapsed,proto3" json:"time_elapsed,omitempty"`
  21. // change in user time (in seconds) used by the server since last reset
  22. TimeUser float64 `protobuf:"fixed64,2,opt,name=time_user,json=timeUser,proto3" json:"time_user,omitempty"`
  23. // change in server time (in seconds) used by the server process and all
  24. // threads since last reset
  25. TimeSystem float64 `protobuf:"fixed64,3,opt,name=time_system,json=timeSystem,proto3" json:"time_system,omitempty"`
  26. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  27. XXX_unrecognized []byte `json:"-"`
  28. XXX_sizecache int32 `json:"-"`
  29. }
  30. func (m *ServerStats) Reset() { *m = ServerStats{} }
  31. func (m *ServerStats) String() string { return proto.CompactTextString(m) }
  32. func (*ServerStats) ProtoMessage() {}
  33. func (*ServerStats) Descriptor() ([]byte, []int) {
  34. return fileDescriptor_b4756a0aec8b9d44, []int{0}
  35. }
  36. func (m *ServerStats) XXX_Unmarshal(b []byte) error {
  37. return xxx_messageInfo_ServerStats.Unmarshal(m, b)
  38. }
  39. func (m *ServerStats) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  40. return xxx_messageInfo_ServerStats.Marshal(b, m, deterministic)
  41. }
  42. func (m *ServerStats) XXX_Merge(src proto.Message) {
  43. xxx_messageInfo_ServerStats.Merge(m, src)
  44. }
  45. func (m *ServerStats) XXX_Size() int {
  46. return xxx_messageInfo_ServerStats.Size(m)
  47. }
  48. func (m *ServerStats) XXX_DiscardUnknown() {
  49. xxx_messageInfo_ServerStats.DiscardUnknown(m)
  50. }
  51. var xxx_messageInfo_ServerStats proto.InternalMessageInfo
  52. func (m *ServerStats) GetTimeElapsed() float64 {
  53. if m != nil {
  54. return m.TimeElapsed
  55. }
  56. return 0
  57. }
  58. func (m *ServerStats) GetTimeUser() float64 {
  59. if m != nil {
  60. return m.TimeUser
  61. }
  62. return 0
  63. }
  64. func (m *ServerStats) GetTimeSystem() float64 {
  65. if m != nil {
  66. return m.TimeSystem
  67. }
  68. return 0
  69. }
  70. // Histogram params based on grpc/support/histogram.c
  71. type HistogramParams struct {
  72. Resolution float64 `protobuf:"fixed64,1,opt,name=resolution,proto3" json:"resolution,omitempty"`
  73. MaxPossible float64 `protobuf:"fixed64,2,opt,name=max_possible,json=maxPossible,proto3" json:"max_possible,omitempty"`
  74. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  75. XXX_unrecognized []byte `json:"-"`
  76. XXX_sizecache int32 `json:"-"`
  77. }
  78. func (m *HistogramParams) Reset() { *m = HistogramParams{} }
  79. func (m *HistogramParams) String() string { return proto.CompactTextString(m) }
  80. func (*HistogramParams) ProtoMessage() {}
  81. func (*HistogramParams) Descriptor() ([]byte, []int) {
  82. return fileDescriptor_b4756a0aec8b9d44, []int{1}
  83. }
  84. func (m *HistogramParams) XXX_Unmarshal(b []byte) error {
  85. return xxx_messageInfo_HistogramParams.Unmarshal(m, b)
  86. }
  87. func (m *HistogramParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  88. return xxx_messageInfo_HistogramParams.Marshal(b, m, deterministic)
  89. }
  90. func (m *HistogramParams) XXX_Merge(src proto.Message) {
  91. xxx_messageInfo_HistogramParams.Merge(m, src)
  92. }
  93. func (m *HistogramParams) XXX_Size() int {
  94. return xxx_messageInfo_HistogramParams.Size(m)
  95. }
  96. func (m *HistogramParams) XXX_DiscardUnknown() {
  97. xxx_messageInfo_HistogramParams.DiscardUnknown(m)
  98. }
  99. var xxx_messageInfo_HistogramParams proto.InternalMessageInfo
  100. func (m *HistogramParams) GetResolution() float64 {
  101. if m != nil {
  102. return m.Resolution
  103. }
  104. return 0
  105. }
  106. func (m *HistogramParams) GetMaxPossible() float64 {
  107. if m != nil {
  108. return m.MaxPossible
  109. }
  110. return 0
  111. }
  112. // Histogram data based on grpc/support/histogram.c
  113. type HistogramData struct {
  114. Bucket []uint32 `protobuf:"varint,1,rep,packed,name=bucket,proto3" json:"bucket,omitempty"`
  115. MinSeen float64 `protobuf:"fixed64,2,opt,name=min_seen,json=minSeen,proto3" json:"min_seen,omitempty"`
  116. MaxSeen float64 `protobuf:"fixed64,3,opt,name=max_seen,json=maxSeen,proto3" json:"max_seen,omitempty"`
  117. Sum float64 `protobuf:"fixed64,4,opt,name=sum,proto3" json:"sum,omitempty"`
  118. SumOfSquares float64 `protobuf:"fixed64,5,opt,name=sum_of_squares,json=sumOfSquares,proto3" json:"sum_of_squares,omitempty"`
  119. Count float64 `protobuf:"fixed64,6,opt,name=count,proto3" json:"count,omitempty"`
  120. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  121. XXX_unrecognized []byte `json:"-"`
  122. XXX_sizecache int32 `json:"-"`
  123. }
  124. func (m *HistogramData) Reset() { *m = HistogramData{} }
  125. func (m *HistogramData) String() string { return proto.CompactTextString(m) }
  126. func (*HistogramData) ProtoMessage() {}
  127. func (*HistogramData) Descriptor() ([]byte, []int) {
  128. return fileDescriptor_b4756a0aec8b9d44, []int{2}
  129. }
  130. func (m *HistogramData) XXX_Unmarshal(b []byte) error {
  131. return xxx_messageInfo_HistogramData.Unmarshal(m, b)
  132. }
  133. func (m *HistogramData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  134. return xxx_messageInfo_HistogramData.Marshal(b, m, deterministic)
  135. }
  136. func (m *HistogramData) XXX_Merge(src proto.Message) {
  137. xxx_messageInfo_HistogramData.Merge(m, src)
  138. }
  139. func (m *HistogramData) XXX_Size() int {
  140. return xxx_messageInfo_HistogramData.Size(m)
  141. }
  142. func (m *HistogramData) XXX_DiscardUnknown() {
  143. xxx_messageInfo_HistogramData.DiscardUnknown(m)
  144. }
  145. var xxx_messageInfo_HistogramData proto.InternalMessageInfo
  146. func (m *HistogramData) GetBucket() []uint32 {
  147. if m != nil {
  148. return m.Bucket
  149. }
  150. return nil
  151. }
  152. func (m *HistogramData) GetMinSeen() float64 {
  153. if m != nil {
  154. return m.MinSeen
  155. }
  156. return 0
  157. }
  158. func (m *HistogramData) GetMaxSeen() float64 {
  159. if m != nil {
  160. return m.MaxSeen
  161. }
  162. return 0
  163. }
  164. func (m *HistogramData) GetSum() float64 {
  165. if m != nil {
  166. return m.Sum
  167. }
  168. return 0
  169. }
  170. func (m *HistogramData) GetSumOfSquares() float64 {
  171. if m != nil {
  172. return m.SumOfSquares
  173. }
  174. return 0
  175. }
  176. func (m *HistogramData) GetCount() float64 {
  177. if m != nil {
  178. return m.Count
  179. }
  180. return 0
  181. }
  182. type ClientStats struct {
  183. // Latency histogram. Data points are in nanoseconds.
  184. Latencies *HistogramData `protobuf:"bytes,1,opt,name=latencies,proto3" json:"latencies,omitempty"`
  185. // See ServerStats for details.
  186. TimeElapsed float64 `protobuf:"fixed64,2,opt,name=time_elapsed,json=timeElapsed,proto3" json:"time_elapsed,omitempty"`
  187. TimeUser float64 `protobuf:"fixed64,3,opt,name=time_user,json=timeUser,proto3" json:"time_user,omitempty"`
  188. TimeSystem float64 `protobuf:"fixed64,4,opt,name=time_system,json=timeSystem,proto3" json:"time_system,omitempty"`
  189. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  190. XXX_unrecognized []byte `json:"-"`
  191. XXX_sizecache int32 `json:"-"`
  192. }
  193. func (m *ClientStats) Reset() { *m = ClientStats{} }
  194. func (m *ClientStats) String() string { return proto.CompactTextString(m) }
  195. func (*ClientStats) ProtoMessage() {}
  196. func (*ClientStats) Descriptor() ([]byte, []int) {
  197. return fileDescriptor_b4756a0aec8b9d44, []int{3}
  198. }
  199. func (m *ClientStats) XXX_Unmarshal(b []byte) error {
  200. return xxx_messageInfo_ClientStats.Unmarshal(m, b)
  201. }
  202. func (m *ClientStats) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  203. return xxx_messageInfo_ClientStats.Marshal(b, m, deterministic)
  204. }
  205. func (m *ClientStats) XXX_Merge(src proto.Message) {
  206. xxx_messageInfo_ClientStats.Merge(m, src)
  207. }
  208. func (m *ClientStats) XXX_Size() int {
  209. return xxx_messageInfo_ClientStats.Size(m)
  210. }
  211. func (m *ClientStats) XXX_DiscardUnknown() {
  212. xxx_messageInfo_ClientStats.DiscardUnknown(m)
  213. }
  214. var xxx_messageInfo_ClientStats proto.InternalMessageInfo
  215. func (m *ClientStats) GetLatencies() *HistogramData {
  216. if m != nil {
  217. return m.Latencies
  218. }
  219. return nil
  220. }
  221. func (m *ClientStats) GetTimeElapsed() float64 {
  222. if m != nil {
  223. return m.TimeElapsed
  224. }
  225. return 0
  226. }
  227. func (m *ClientStats) GetTimeUser() float64 {
  228. if m != nil {
  229. return m.TimeUser
  230. }
  231. return 0
  232. }
  233. func (m *ClientStats) GetTimeSystem() float64 {
  234. if m != nil {
  235. return m.TimeSystem
  236. }
  237. return 0
  238. }
  239. func init() {
  240. proto.RegisterType((*ServerStats)(nil), "grpc.testing.ServerStats")
  241. proto.RegisterType((*HistogramParams)(nil), "grpc.testing.HistogramParams")
  242. proto.RegisterType((*HistogramData)(nil), "grpc.testing.HistogramData")
  243. proto.RegisterType((*ClientStats)(nil), "grpc.testing.ClientStats")
  244. }
  245. func init() { proto.RegisterFile("stats.proto", fileDescriptor_b4756a0aec8b9d44) }
  246. var fileDescriptor_b4756a0aec8b9d44 = []byte{
  247. // 341 bytes of a gzipped FileDescriptorProto
  248. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x92, 0xc1, 0x4a, 0xeb, 0x40,
  249. 0x14, 0x86, 0x49, 0xd3, 0xf6, 0xb6, 0x27, 0xed, 0xbd, 0x97, 0x41, 0x24, 0x52, 0xd0, 0x1a, 0x5c,
  250. 0x74, 0x95, 0x85, 0xae, 0x5c, 0xab, 0xe0, 0xce, 0xd2, 0xe8, 0x3a, 0x4c, 0xe3, 0x69, 0x19, 0xcc,
  251. 0xcc, 0xc4, 0x39, 0x33, 0x12, 0x1f, 0x49, 0x7c, 0x49, 0xc9, 0x24, 0x68, 0x55, 0xd0, 0x5d, 0xe6,
  252. 0xfb, 0x7e, 0xe6, 0xe4, 0xe4, 0x0f, 0x44, 0x64, 0xb9, 0xa5, 0xb4, 0x32, 0xda, 0x6a, 0x36, 0xd9,
  253. 0x9a, 0xaa, 0x48, 0x2d, 0x92, 0x15, 0x6a, 0x9b, 0x28, 0x88, 0x32, 0x34, 0x4f, 0x68, 0xb2, 0x26,
  254. 0xc2, 0x8e, 0x61, 0x62, 0x85, 0xc4, 0x1c, 0x4b, 0x5e, 0x11, 0xde, 0xc7, 0xc1, 0x3c, 0x58, 0x04,
  255. 0xab, 0xa8, 0x61, 0x57, 0x2d, 0x62, 0x33, 0x18, 0xfb, 0x88, 0x23, 0x34, 0x71, 0xcf, 0xfb, 0x51,
  256. 0x03, 0xee, 0x08, 0x0d, 0x3b, 0x02, 0x9f, 0xcd, 0xe9, 0x99, 0x2c, 0xca, 0x38, 0xf4, 0x1a, 0x1a,
  257. 0x94, 0x79, 0x92, 0xdc, 0xc2, 0xbf, 0x6b, 0x41, 0x56, 0x6f, 0x0d, 0x97, 0x4b, 0x6e, 0xb8, 0x24,
  258. 0x76, 0x08, 0x60, 0x90, 0x74, 0xe9, 0xac, 0xd0, 0xaa, 0x9b, 0xb8, 0x43, 0x9a, 0x77, 0x92, 0xbc,
  259. 0xce, 0x2b, 0x4d, 0x24, 0xd6, 0x25, 0x76, 0x33, 0x23, 0xc9, 0xeb, 0x65, 0x87, 0x92, 0xd7, 0x00,
  260. 0xa6, 0xef, 0xd7, 0x5e, 0x72, 0xcb, 0xd9, 0x3e, 0x0c, 0xd7, 0xae, 0x78, 0x40, 0x1b, 0x07, 0xf3,
  261. 0x70, 0x31, 0x5d, 0x75, 0x27, 0x76, 0x00, 0x23, 0x29, 0x54, 0x4e, 0x88, 0xaa, 0xbb, 0xe8, 0x8f,
  262. 0x14, 0x2a, 0x43, 0x54, 0x5e, 0xf1, 0xba, 0x55, 0x61, 0xa7, 0x78, 0xed, 0xd5, 0x7f, 0x08, 0xc9,
  263. 0xc9, 0xb8, 0xef, 0x69, 0xf3, 0xc8, 0x4e, 0xe0, 0x2f, 0x39, 0x99, 0xeb, 0x4d, 0x4e, 0x8f, 0x8e,
  264. 0x1b, 0xa4, 0x78, 0xe0, 0xe5, 0x84, 0x9c, 0xbc, 0xd9, 0x64, 0x2d, 0x63, 0x7b, 0x30, 0x28, 0xb4,
  265. 0x53, 0x36, 0x1e, 0x7a, 0xd9, 0x1e, 0x92, 0x97, 0x00, 0xa2, 0x8b, 0x52, 0xa0, 0xb2, 0xed, 0x47,
  266. 0x3f, 0x87, 0x71, 0xc9, 0x2d, 0xaa, 0x42, 0x20, 0xf9, 0xfd, 0xa3, 0xd3, 0x59, 0xba, 0xdb, 0x52,
  267. 0xfa, 0x69, 0xb7, 0xd5, 0x47, 0xfa, 0x5b, 0x5f, 0xbd, 0x5f, 0xfa, 0x0a, 0x7f, 0xee, 0xab, 0xff,
  268. 0xb5, 0xaf, 0xf5, 0xd0, 0xff, 0x34, 0x67, 0x6f, 0x01, 0x00, 0x00, 0xff, 0xff, 0xea, 0x75, 0x34,
  269. 0x90, 0x43, 0x02, 0x00, 0x00,
  270. }