stats.pb.go 11 KB

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