server_load.pb.go 32 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // versions:
  3. // protoc-gen-go v1.36.10
  4. // protoc v6.33.0
  5. // source: ca.psiphon.psiphond/server_load.proto
  6. package psiphond
  7. import (
  8. protoreflect "google.golang.org/protobuf/reflect/protoreflect"
  9. protoimpl "google.golang.org/protobuf/runtime/protoimpl"
  10. timestamppb "google.golang.org/protobuf/types/known/timestamppb"
  11. reflect "reflect"
  12. sync "sync"
  13. unsafe "unsafe"
  14. )
  15. const (
  16. // Verify that this generated code is sufficiently up-to-date.
  17. _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
  18. // Verify that runtime/protoimpl is sufficiently up-to-date.
  19. _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
  20. )
  21. type ServerLoadProtocol struct {
  22. state protoimpl.MessageState `protogen:"open.v1"`
  23. Region *string `protobuf:"bytes,100,opt,name=region,proto3,oneof" json:"region,omitempty"`
  24. Protocol *string `protobuf:"bytes,101,opt,name=protocol,proto3,oneof" json:"protocol,omitempty"`
  25. AcceptedClients *int64 `protobuf:"varint,102,opt,name=accepted_clients,json=acceptedClients,proto3,oneof" json:"accepted_clients,omitempty"`
  26. EstablishedClients *int64 `protobuf:"varint,103,opt,name=established_clients,json=establishedClients,proto3,oneof" json:"established_clients,omitempty"`
  27. unknownFields protoimpl.UnknownFields
  28. sizeCache protoimpl.SizeCache
  29. }
  30. func (x *ServerLoadProtocol) Reset() {
  31. *x = ServerLoadProtocol{}
  32. mi := &file_ca_psiphon_psiphond_server_load_proto_msgTypes[0]
  33. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  34. ms.StoreMessageInfo(mi)
  35. }
  36. func (x *ServerLoadProtocol) String() string {
  37. return protoimpl.X.MessageStringOf(x)
  38. }
  39. func (*ServerLoadProtocol) ProtoMessage() {}
  40. func (x *ServerLoadProtocol) ProtoReflect() protoreflect.Message {
  41. mi := &file_ca_psiphon_psiphond_server_load_proto_msgTypes[0]
  42. if x != nil {
  43. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  44. if ms.LoadMessageInfo() == nil {
  45. ms.StoreMessageInfo(mi)
  46. }
  47. return ms
  48. }
  49. return mi.MessageOf(x)
  50. }
  51. // Deprecated: Use ServerLoadProtocol.ProtoReflect.Descriptor instead.
  52. func (*ServerLoadProtocol) Descriptor() ([]byte, []int) {
  53. return file_ca_psiphon_psiphond_server_load_proto_rawDescGZIP(), []int{0}
  54. }
  55. func (x *ServerLoadProtocol) GetRegion() string {
  56. if x != nil && x.Region != nil {
  57. return *x.Region
  58. }
  59. return ""
  60. }
  61. func (x *ServerLoadProtocol) GetProtocol() string {
  62. if x != nil && x.Protocol != nil {
  63. return *x.Protocol
  64. }
  65. return ""
  66. }
  67. func (x *ServerLoadProtocol) GetAcceptedClients() int64 {
  68. if x != nil && x.AcceptedClients != nil {
  69. return *x.AcceptedClients
  70. }
  71. return 0
  72. }
  73. func (x *ServerLoadProtocol) GetEstablishedClients() int64 {
  74. if x != nil && x.EstablishedClients != nil {
  75. return *x.EstablishedClients
  76. }
  77. return 0
  78. }
  79. type ServerLoadDNS struct {
  80. state protoimpl.MessageState `protogen:"open.v1"`
  81. DnsServer *string `protobuf:"bytes,100,opt,name=dns_server,json=dnsServer,proto3,oneof" json:"dns_server,omitempty"`
  82. DnsCount *int64 `protobuf:"varint,101,opt,name=dns_count,json=dnsCount,proto3,oneof" json:"dns_count,omitempty"`
  83. DnsDuration *int64 `protobuf:"varint,102,opt,name=dns_duration,json=dnsDuration,proto3,oneof" json:"dns_duration,omitempty"`
  84. DnsFailedCount *int64 `protobuf:"varint,103,opt,name=dns_failed_count,json=dnsFailedCount,proto3,oneof" json:"dns_failed_count,omitempty"`
  85. DnsFailedDuration *int64 `protobuf:"varint,104,opt,name=dns_failed_duration,json=dnsFailedDuration,proto3,oneof" json:"dns_failed_duration,omitempty"`
  86. unknownFields protoimpl.UnknownFields
  87. sizeCache protoimpl.SizeCache
  88. }
  89. func (x *ServerLoadDNS) Reset() {
  90. *x = ServerLoadDNS{}
  91. mi := &file_ca_psiphon_psiphond_server_load_proto_msgTypes[1]
  92. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  93. ms.StoreMessageInfo(mi)
  94. }
  95. func (x *ServerLoadDNS) String() string {
  96. return protoimpl.X.MessageStringOf(x)
  97. }
  98. func (*ServerLoadDNS) ProtoMessage() {}
  99. func (x *ServerLoadDNS) ProtoReflect() protoreflect.Message {
  100. mi := &file_ca_psiphon_psiphond_server_load_proto_msgTypes[1]
  101. if x != nil {
  102. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  103. if ms.LoadMessageInfo() == nil {
  104. ms.StoreMessageInfo(mi)
  105. }
  106. return ms
  107. }
  108. return mi.MessageOf(x)
  109. }
  110. // Deprecated: Use ServerLoadDNS.ProtoReflect.Descriptor instead.
  111. func (*ServerLoadDNS) Descriptor() ([]byte, []int) {
  112. return file_ca_psiphon_psiphond_server_load_proto_rawDescGZIP(), []int{1}
  113. }
  114. func (x *ServerLoadDNS) GetDnsServer() string {
  115. if x != nil && x.DnsServer != nil {
  116. return *x.DnsServer
  117. }
  118. return ""
  119. }
  120. func (x *ServerLoadDNS) GetDnsCount() int64 {
  121. if x != nil && x.DnsCount != nil {
  122. return *x.DnsCount
  123. }
  124. return 0
  125. }
  126. func (x *ServerLoadDNS) GetDnsDuration() int64 {
  127. if x != nil && x.DnsDuration != nil {
  128. return *x.DnsDuration
  129. }
  130. return 0
  131. }
  132. func (x *ServerLoadDNS) GetDnsFailedCount() int64 {
  133. if x != nil && x.DnsFailedCount != nil {
  134. return *x.DnsFailedCount
  135. }
  136. return 0
  137. }
  138. func (x *ServerLoadDNS) GetDnsFailedDuration() int64 {
  139. if x != nil && x.DnsFailedDuration != nil {
  140. return *x.DnsFailedDuration
  141. }
  142. return 0
  143. }
  144. type ServerLoad struct {
  145. state protoimpl.MessageState `protogen:"open.v1"`
  146. CpuPercent *float64 `protobuf:"fixed64,100,opt,name=cpu_percent,json=cpuPercent,proto3,oneof" json:"cpu_percent,omitempty"`
  147. HeapAlloc *uint64 `protobuf:"varint,101,opt,name=heap_alloc,json=heapAlloc,proto3,oneof" json:"heap_alloc,omitempty"`
  148. HeapIdle *uint64 `protobuf:"varint,102,opt,name=heap_idle,json=heapIdle,proto3,oneof" json:"heap_idle,omitempty"`
  149. HeapInuse *uint64 `protobuf:"varint,103,opt,name=heap_inuse,json=heapInuse,proto3,oneof" json:"heap_inuse,omitempty"`
  150. HeapObjects *uint64 `protobuf:"varint,104,opt,name=heap_objects,json=heapObjects,proto3,oneof" json:"heap_objects,omitempty"`
  151. HeapReleased *uint64 `protobuf:"varint,105,opt,name=heap_released,json=heapReleased,proto3,oneof" json:"heap_released,omitempty"`
  152. HeapSys *uint64 `protobuf:"varint,106,opt,name=heap_sys,json=heapSys,proto3,oneof" json:"heap_sys,omitempty"`
  153. NetworkBytesReceived *int64 `protobuf:"varint,107,opt,name=network_bytes_received,json=networkBytesReceived,proto3,oneof" json:"network_bytes_received,omitempty"`
  154. NetworkBytesSent *int64 `protobuf:"varint,108,opt,name=network_bytes_sent,json=networkBytesSent,proto3,oneof" json:"network_bytes_sent,omitempty"`
  155. EstablishTunnels *bool `protobuf:"varint,109,opt,name=establish_tunnels,json=establishTunnels,proto3,oneof" json:"establish_tunnels,omitempty"`
  156. EstablishTunnelsLimitedCount *int64 `protobuf:"varint,110,opt,name=establish_tunnels_limited_count,json=establishTunnelsLimitedCount,proto3,oneof" json:"establish_tunnels_limited_count,omitempty"`
  157. LastGc *timestamppb.Timestamp `protobuf:"bytes,111,opt,name=last_gc,json=lastGc,proto3,oneof" json:"last_gc,omitempty"`
  158. NumForcedGc *uint32 `protobuf:"varint,112,opt,name=num_forced_gc,json=numForcedGc,proto3,oneof" json:"num_forced_gc,omitempty"`
  159. NumGc *uint32 `protobuf:"varint,113,opt,name=num_gc,json=numGc,proto3,oneof" json:"num_gc,omitempty"`
  160. NumGoroutine *uint32 `protobuf:"varint,114,opt,name=num_goroutine,json=numGoroutine,proto3,oneof" json:"num_goroutine,omitempty"`
  161. ReplayDeleteReplayCount *int64 `protobuf:"varint,115,opt,name=replay_delete_replay_count,json=replayDeleteReplayCount,proto3,oneof" json:"replay_delete_replay_count,omitempty"`
  162. ReplayFailedReplayCount *int64 `protobuf:"varint,116,opt,name=replay_failed_replay_count,json=replayFailedReplayCount,proto3,oneof" json:"replay_failed_replay_count,omitempty"`
  163. ReplayGetReplayHitCount *int64 `protobuf:"varint,117,opt,name=replay_get_replay_hit_count,json=replayGetReplayHitCount,proto3,oneof" json:"replay_get_replay_hit_count,omitempty"`
  164. ReplayGetReplayMissCount *int64 `protobuf:"varint,118,opt,name=replay_get_replay_miss_count,json=replayGetReplayMissCount,proto3,oneof" json:"replay_get_replay_miss_count,omitempty"`
  165. ReplayMaxCacheEntries *int64 `protobuf:"varint,119,opt,name=replay_max_cache_entries,json=replayMaxCacheEntries,proto3,oneof" json:"replay_max_cache_entries,omitempty"`
  166. ReplaySetReplayCount *int64 `protobuf:"varint,120,opt,name=replay_set_replay_count,json=replaySetReplayCount,proto3,oneof" json:"replay_set_replay_count,omitempty"`
  167. ServerTacticsCacheHitCount *int64 `protobuf:"varint,121,opt,name=server_tactics_cache_hit_count,json=serverTacticsCacheHitCount,proto3,oneof" json:"server_tactics_cache_hit_count,omitempty"`
  168. ServerTacticsCacheMissCount *int64 `protobuf:"varint,122,opt,name=server_tactics_cache_miss_count,json=serverTacticsCacheMissCount,proto3,oneof" json:"server_tactics_cache_miss_count,omitempty"`
  169. ServerTacticsMaxCacheEntries *int64 `protobuf:"varint,123,opt,name=server_tactics_max_cache_entries,json=serverTacticsMaxCacheEntries,proto3,oneof" json:"server_tactics_max_cache_entries,omitempty"`
  170. ServerTacticsMaxParameterReferences *int64 `protobuf:"varint,124,opt,name=server_tactics_max_parameter_references,json=serverTacticsMaxParameterReferences,proto3,oneof" json:"server_tactics_max_parameter_references,omitempty"`
  171. DialingTcpPortForwards *int64 `protobuf:"varint,125,opt,name=dialing_tcp_port_forwards,json=dialingTcpPortForwards,proto3,oneof" json:"dialing_tcp_port_forwards,omitempty"`
  172. TcpIpv4PortForwardDialedCount *int64 `protobuf:"varint,126,opt,name=tcp_ipv4_port_forward_dialed_count,json=tcpIpv4PortForwardDialedCount,proto3,oneof" json:"tcp_ipv4_port_forward_dialed_count,omitempty"`
  173. TcpIpv4PortForwardDialedDuration *int64 `protobuf:"varint,127,opt,name=tcp_ipv4_port_forward_dialed_duration,json=tcpIpv4PortForwardDialedDuration,proto3,oneof" json:"tcp_ipv4_port_forward_dialed_duration,omitempty"`
  174. TcpIpv4PortForwardFailedCount *int64 `protobuf:"varint,128,opt,name=tcp_ipv4_port_forward_failed_count,json=tcpIpv4PortForwardFailedCount,proto3,oneof" json:"tcp_ipv4_port_forward_failed_count,omitempty"`
  175. TcpIpv4PortForwardFailedDuration *int64 `protobuf:"varint,129,opt,name=tcp_ipv4_port_forward_failed_duration,json=tcpIpv4PortForwardFailedDuration,proto3,oneof" json:"tcp_ipv4_port_forward_failed_duration,omitempty"`
  176. TcpIpv6PortForwardDialedCount *int64 `protobuf:"varint,130,opt,name=tcp_ipv6_port_forward_dialed_count,json=tcpIpv6PortForwardDialedCount,proto3,oneof" json:"tcp_ipv6_port_forward_dialed_count,omitempty"`
  177. TcpIpv6PortForwardDialedDuration *int64 `protobuf:"varint,131,opt,name=tcp_ipv6_port_forward_dialed_duration,json=tcpIpv6PortForwardDialedDuration,proto3,oneof" json:"tcp_ipv6_port_forward_dialed_duration,omitempty"`
  178. TcpIpv6PortForwardFailedCount *int64 `protobuf:"varint,132,opt,name=tcp_ipv6_port_forward_failed_count,json=tcpIpv6PortForwardFailedCount,proto3,oneof" json:"tcp_ipv6_port_forward_failed_count,omitempty"`
  179. TcpIpv6PortForwardFailedDuration *int64 `protobuf:"varint,133,opt,name=tcp_ipv6_port_forward_failed_duration,json=tcpIpv6PortForwardFailedDuration,proto3,oneof" json:"tcp_ipv6_port_forward_failed_duration,omitempty"`
  180. TcpPortForwardDialedCount *int64 `protobuf:"varint,134,opt,name=tcp_port_forward_dialed_count,json=tcpPortForwardDialedCount,proto3,oneof" json:"tcp_port_forward_dialed_count,omitempty"`
  181. TcpPortForwardDialedDuration *int64 `protobuf:"varint,135,opt,name=tcp_port_forward_dialed_duration,json=tcpPortForwardDialedDuration,proto3,oneof" json:"tcp_port_forward_dialed_duration,omitempty"`
  182. TcpPortForwardFailedCount *int64 `protobuf:"varint,136,opt,name=tcp_port_forward_failed_count,json=tcpPortForwardFailedCount,proto3,oneof" json:"tcp_port_forward_failed_count,omitempty"`
  183. TcpPortForwardFailedDuration *int64 `protobuf:"varint,137,opt,name=tcp_port_forward_failed_duration,json=tcpPortForwardFailedDuration,proto3,oneof" json:"tcp_port_forward_failed_duration,omitempty"`
  184. TcpPortForwardRejectedDialingLimitCount *int64 `protobuf:"varint,138,opt,name=tcp_port_forward_rejected_dialing_limit_count,json=tcpPortForwardRejectedDialingLimitCount,proto3,oneof" json:"tcp_port_forward_rejected_dialing_limit_count,omitempty"`
  185. TcpPortForwardRejectedDisallowedCount *int64 `protobuf:"varint,139,opt,name=tcp_port_forward_rejected_disallowed_count,json=tcpPortForwardRejectedDisallowedCount,proto3,oneof" json:"tcp_port_forward_rejected_disallowed_count,omitempty"`
  186. TcpPortForwards *int64 `protobuf:"varint,140,opt,name=tcp_port_forwards,json=tcpPortForwards,proto3,oneof" json:"tcp_port_forwards,omitempty"`
  187. UdpPortForwardRejectedDisallowedCount *int64 `protobuf:"varint,141,opt,name=udp_port_forward_rejected_disallowed_count,json=udpPortForwardRejectedDisallowedCount,proto3,oneof" json:"udp_port_forward_rejected_disallowed_count,omitempty"`
  188. UdpPortForwards *int64 `protobuf:"varint,142,opt,name=udp_port_forwards,json=udpPortForwards,proto3,oneof" json:"udp_port_forwards,omitempty"`
  189. TotalTcpPortForwards *int64 `protobuf:"varint,143,opt,name=total_tcp_port_forwards,json=totalTcpPortForwards,proto3,oneof" json:"total_tcp_port_forwards,omitempty"`
  190. TotalUdpPortForwards *int64 `protobuf:"varint,144,opt,name=total_udp_port_forwards,json=totalUdpPortForwards,proto3,oneof" json:"total_udp_port_forwards,omitempty"`
  191. unknownFields protoimpl.UnknownFields
  192. sizeCache protoimpl.SizeCache
  193. }
  194. func (x *ServerLoad) Reset() {
  195. *x = ServerLoad{}
  196. mi := &file_ca_psiphon_psiphond_server_load_proto_msgTypes[2]
  197. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  198. ms.StoreMessageInfo(mi)
  199. }
  200. func (x *ServerLoad) String() string {
  201. return protoimpl.X.MessageStringOf(x)
  202. }
  203. func (*ServerLoad) ProtoMessage() {}
  204. func (x *ServerLoad) ProtoReflect() protoreflect.Message {
  205. mi := &file_ca_psiphon_psiphond_server_load_proto_msgTypes[2]
  206. if x != nil {
  207. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  208. if ms.LoadMessageInfo() == nil {
  209. ms.StoreMessageInfo(mi)
  210. }
  211. return ms
  212. }
  213. return mi.MessageOf(x)
  214. }
  215. // Deprecated: Use ServerLoad.ProtoReflect.Descriptor instead.
  216. func (*ServerLoad) Descriptor() ([]byte, []int) {
  217. return file_ca_psiphon_psiphond_server_load_proto_rawDescGZIP(), []int{2}
  218. }
  219. func (x *ServerLoad) GetCpuPercent() float64 {
  220. if x != nil && x.CpuPercent != nil {
  221. return *x.CpuPercent
  222. }
  223. return 0
  224. }
  225. func (x *ServerLoad) GetHeapAlloc() uint64 {
  226. if x != nil && x.HeapAlloc != nil {
  227. return *x.HeapAlloc
  228. }
  229. return 0
  230. }
  231. func (x *ServerLoad) GetHeapIdle() uint64 {
  232. if x != nil && x.HeapIdle != nil {
  233. return *x.HeapIdle
  234. }
  235. return 0
  236. }
  237. func (x *ServerLoad) GetHeapInuse() uint64 {
  238. if x != nil && x.HeapInuse != nil {
  239. return *x.HeapInuse
  240. }
  241. return 0
  242. }
  243. func (x *ServerLoad) GetHeapObjects() uint64 {
  244. if x != nil && x.HeapObjects != nil {
  245. return *x.HeapObjects
  246. }
  247. return 0
  248. }
  249. func (x *ServerLoad) GetHeapReleased() uint64 {
  250. if x != nil && x.HeapReleased != nil {
  251. return *x.HeapReleased
  252. }
  253. return 0
  254. }
  255. func (x *ServerLoad) GetHeapSys() uint64 {
  256. if x != nil && x.HeapSys != nil {
  257. return *x.HeapSys
  258. }
  259. return 0
  260. }
  261. func (x *ServerLoad) GetNetworkBytesReceived() int64 {
  262. if x != nil && x.NetworkBytesReceived != nil {
  263. return *x.NetworkBytesReceived
  264. }
  265. return 0
  266. }
  267. func (x *ServerLoad) GetNetworkBytesSent() int64 {
  268. if x != nil && x.NetworkBytesSent != nil {
  269. return *x.NetworkBytesSent
  270. }
  271. return 0
  272. }
  273. func (x *ServerLoad) GetEstablishTunnels() bool {
  274. if x != nil && x.EstablishTunnels != nil {
  275. return *x.EstablishTunnels
  276. }
  277. return false
  278. }
  279. func (x *ServerLoad) GetEstablishTunnelsLimitedCount() int64 {
  280. if x != nil && x.EstablishTunnelsLimitedCount != nil {
  281. return *x.EstablishTunnelsLimitedCount
  282. }
  283. return 0
  284. }
  285. func (x *ServerLoad) GetLastGc() *timestamppb.Timestamp {
  286. if x != nil {
  287. return x.LastGc
  288. }
  289. return nil
  290. }
  291. func (x *ServerLoad) GetNumForcedGc() uint32 {
  292. if x != nil && x.NumForcedGc != nil {
  293. return *x.NumForcedGc
  294. }
  295. return 0
  296. }
  297. func (x *ServerLoad) GetNumGc() uint32 {
  298. if x != nil && x.NumGc != nil {
  299. return *x.NumGc
  300. }
  301. return 0
  302. }
  303. func (x *ServerLoad) GetNumGoroutine() uint32 {
  304. if x != nil && x.NumGoroutine != nil {
  305. return *x.NumGoroutine
  306. }
  307. return 0
  308. }
  309. func (x *ServerLoad) GetReplayDeleteReplayCount() int64 {
  310. if x != nil && x.ReplayDeleteReplayCount != nil {
  311. return *x.ReplayDeleteReplayCount
  312. }
  313. return 0
  314. }
  315. func (x *ServerLoad) GetReplayFailedReplayCount() int64 {
  316. if x != nil && x.ReplayFailedReplayCount != nil {
  317. return *x.ReplayFailedReplayCount
  318. }
  319. return 0
  320. }
  321. func (x *ServerLoad) GetReplayGetReplayHitCount() int64 {
  322. if x != nil && x.ReplayGetReplayHitCount != nil {
  323. return *x.ReplayGetReplayHitCount
  324. }
  325. return 0
  326. }
  327. func (x *ServerLoad) GetReplayGetReplayMissCount() int64 {
  328. if x != nil && x.ReplayGetReplayMissCount != nil {
  329. return *x.ReplayGetReplayMissCount
  330. }
  331. return 0
  332. }
  333. func (x *ServerLoad) GetReplayMaxCacheEntries() int64 {
  334. if x != nil && x.ReplayMaxCacheEntries != nil {
  335. return *x.ReplayMaxCacheEntries
  336. }
  337. return 0
  338. }
  339. func (x *ServerLoad) GetReplaySetReplayCount() int64 {
  340. if x != nil && x.ReplaySetReplayCount != nil {
  341. return *x.ReplaySetReplayCount
  342. }
  343. return 0
  344. }
  345. func (x *ServerLoad) GetServerTacticsCacheHitCount() int64 {
  346. if x != nil && x.ServerTacticsCacheHitCount != nil {
  347. return *x.ServerTacticsCacheHitCount
  348. }
  349. return 0
  350. }
  351. func (x *ServerLoad) GetServerTacticsCacheMissCount() int64 {
  352. if x != nil && x.ServerTacticsCacheMissCount != nil {
  353. return *x.ServerTacticsCacheMissCount
  354. }
  355. return 0
  356. }
  357. func (x *ServerLoad) GetServerTacticsMaxCacheEntries() int64 {
  358. if x != nil && x.ServerTacticsMaxCacheEntries != nil {
  359. return *x.ServerTacticsMaxCacheEntries
  360. }
  361. return 0
  362. }
  363. func (x *ServerLoad) GetServerTacticsMaxParameterReferences() int64 {
  364. if x != nil && x.ServerTacticsMaxParameterReferences != nil {
  365. return *x.ServerTacticsMaxParameterReferences
  366. }
  367. return 0
  368. }
  369. func (x *ServerLoad) GetDialingTcpPortForwards() int64 {
  370. if x != nil && x.DialingTcpPortForwards != nil {
  371. return *x.DialingTcpPortForwards
  372. }
  373. return 0
  374. }
  375. func (x *ServerLoad) GetTcpIpv4PortForwardDialedCount() int64 {
  376. if x != nil && x.TcpIpv4PortForwardDialedCount != nil {
  377. return *x.TcpIpv4PortForwardDialedCount
  378. }
  379. return 0
  380. }
  381. func (x *ServerLoad) GetTcpIpv4PortForwardDialedDuration() int64 {
  382. if x != nil && x.TcpIpv4PortForwardDialedDuration != nil {
  383. return *x.TcpIpv4PortForwardDialedDuration
  384. }
  385. return 0
  386. }
  387. func (x *ServerLoad) GetTcpIpv4PortForwardFailedCount() int64 {
  388. if x != nil && x.TcpIpv4PortForwardFailedCount != nil {
  389. return *x.TcpIpv4PortForwardFailedCount
  390. }
  391. return 0
  392. }
  393. func (x *ServerLoad) GetTcpIpv4PortForwardFailedDuration() int64 {
  394. if x != nil && x.TcpIpv4PortForwardFailedDuration != nil {
  395. return *x.TcpIpv4PortForwardFailedDuration
  396. }
  397. return 0
  398. }
  399. func (x *ServerLoad) GetTcpIpv6PortForwardDialedCount() int64 {
  400. if x != nil && x.TcpIpv6PortForwardDialedCount != nil {
  401. return *x.TcpIpv6PortForwardDialedCount
  402. }
  403. return 0
  404. }
  405. func (x *ServerLoad) GetTcpIpv6PortForwardDialedDuration() int64 {
  406. if x != nil && x.TcpIpv6PortForwardDialedDuration != nil {
  407. return *x.TcpIpv6PortForwardDialedDuration
  408. }
  409. return 0
  410. }
  411. func (x *ServerLoad) GetTcpIpv6PortForwardFailedCount() int64 {
  412. if x != nil && x.TcpIpv6PortForwardFailedCount != nil {
  413. return *x.TcpIpv6PortForwardFailedCount
  414. }
  415. return 0
  416. }
  417. func (x *ServerLoad) GetTcpIpv6PortForwardFailedDuration() int64 {
  418. if x != nil && x.TcpIpv6PortForwardFailedDuration != nil {
  419. return *x.TcpIpv6PortForwardFailedDuration
  420. }
  421. return 0
  422. }
  423. func (x *ServerLoad) GetTcpPortForwardDialedCount() int64 {
  424. if x != nil && x.TcpPortForwardDialedCount != nil {
  425. return *x.TcpPortForwardDialedCount
  426. }
  427. return 0
  428. }
  429. func (x *ServerLoad) GetTcpPortForwardDialedDuration() int64 {
  430. if x != nil && x.TcpPortForwardDialedDuration != nil {
  431. return *x.TcpPortForwardDialedDuration
  432. }
  433. return 0
  434. }
  435. func (x *ServerLoad) GetTcpPortForwardFailedCount() int64 {
  436. if x != nil && x.TcpPortForwardFailedCount != nil {
  437. return *x.TcpPortForwardFailedCount
  438. }
  439. return 0
  440. }
  441. func (x *ServerLoad) GetTcpPortForwardFailedDuration() int64 {
  442. if x != nil && x.TcpPortForwardFailedDuration != nil {
  443. return *x.TcpPortForwardFailedDuration
  444. }
  445. return 0
  446. }
  447. func (x *ServerLoad) GetTcpPortForwardRejectedDialingLimitCount() int64 {
  448. if x != nil && x.TcpPortForwardRejectedDialingLimitCount != nil {
  449. return *x.TcpPortForwardRejectedDialingLimitCount
  450. }
  451. return 0
  452. }
  453. func (x *ServerLoad) GetTcpPortForwardRejectedDisallowedCount() int64 {
  454. if x != nil && x.TcpPortForwardRejectedDisallowedCount != nil {
  455. return *x.TcpPortForwardRejectedDisallowedCount
  456. }
  457. return 0
  458. }
  459. func (x *ServerLoad) GetTcpPortForwards() int64 {
  460. if x != nil && x.TcpPortForwards != nil {
  461. return *x.TcpPortForwards
  462. }
  463. return 0
  464. }
  465. func (x *ServerLoad) GetUdpPortForwardRejectedDisallowedCount() int64 {
  466. if x != nil && x.UdpPortForwardRejectedDisallowedCount != nil {
  467. return *x.UdpPortForwardRejectedDisallowedCount
  468. }
  469. return 0
  470. }
  471. func (x *ServerLoad) GetUdpPortForwards() int64 {
  472. if x != nil && x.UdpPortForwards != nil {
  473. return *x.UdpPortForwards
  474. }
  475. return 0
  476. }
  477. func (x *ServerLoad) GetTotalTcpPortForwards() int64 {
  478. if x != nil && x.TotalTcpPortForwards != nil {
  479. return *x.TotalTcpPortForwards
  480. }
  481. return 0
  482. }
  483. func (x *ServerLoad) GetTotalUdpPortForwards() int64 {
  484. if x != nil && x.TotalUdpPortForwards != nil {
  485. return *x.TotalUdpPortForwards
  486. }
  487. return 0
  488. }
  489. var File_ca_psiphon_psiphond_server_load_proto protoreflect.FileDescriptor
  490. const file_ca_psiphon_psiphond_server_load_proto_rawDesc = "" +
  491. "\n" +
  492. "%ca.psiphon.psiphond/server_load.proto\x12\x13ca.psiphon.psiphond\x1a\x1fgoogle/protobuf/timestamp.proto\"\xfd\x01\n" +
  493. "\x12ServerLoadProtocol\x12\x1b\n" +
  494. "\x06region\x18d \x01(\tH\x00R\x06region\x88\x01\x01\x12\x1f\n" +
  495. "\bprotocol\x18e \x01(\tH\x01R\bprotocol\x88\x01\x01\x12.\n" +
  496. "\x10accepted_clients\x18f \x01(\x03H\x02R\x0facceptedClients\x88\x01\x01\x124\n" +
  497. "\x13established_clients\x18g \x01(\x03H\x03R\x12establishedClients\x88\x01\x01B\t\n" +
  498. "\a_regionB\v\n" +
  499. "\t_protocolB\x13\n" +
  500. "\x11_accepted_clientsB\x16\n" +
  501. "\x14_established_clients\"\xbc\x02\n" +
  502. "\rServerLoadDNS\x12\"\n" +
  503. "\n" +
  504. "dns_server\x18d \x01(\tH\x00R\tdnsServer\x88\x01\x01\x12 \n" +
  505. "\tdns_count\x18e \x01(\x03H\x01R\bdnsCount\x88\x01\x01\x12&\n" +
  506. "\fdns_duration\x18f \x01(\x03H\x02R\vdnsDuration\x88\x01\x01\x12-\n" +
  507. "\x10dns_failed_count\x18g \x01(\x03H\x03R\x0ednsFailedCount\x88\x01\x01\x123\n" +
  508. "\x13dns_failed_duration\x18h \x01(\x03H\x04R\x11dnsFailedDuration\x88\x01\x01B\r\n" +
  509. "\v_dns_serverB\f\n" +
  510. "\n" +
  511. "_dns_countB\x0f\n" +
  512. "\r_dns_durationB\x13\n" +
  513. "\x11_dns_failed_countB\x16\n" +
  514. "\x14_dns_failed_duration\"\xbc!\n" +
  515. "\n" +
  516. "ServerLoad\x12$\n" +
  517. "\vcpu_percent\x18d \x01(\x01H\x00R\n" +
  518. "cpuPercent\x88\x01\x01\x12\"\n" +
  519. "\n" +
  520. "heap_alloc\x18e \x01(\x04H\x01R\theapAlloc\x88\x01\x01\x12 \n" +
  521. "\theap_idle\x18f \x01(\x04H\x02R\bheapIdle\x88\x01\x01\x12\"\n" +
  522. "\n" +
  523. "heap_inuse\x18g \x01(\x04H\x03R\theapInuse\x88\x01\x01\x12&\n" +
  524. "\fheap_objects\x18h \x01(\x04H\x04R\vheapObjects\x88\x01\x01\x12(\n" +
  525. "\rheap_released\x18i \x01(\x04H\x05R\fheapReleased\x88\x01\x01\x12\x1e\n" +
  526. "\bheap_sys\x18j \x01(\x04H\x06R\aheapSys\x88\x01\x01\x129\n" +
  527. "\x16network_bytes_received\x18k \x01(\x03H\aR\x14networkBytesReceived\x88\x01\x01\x121\n" +
  528. "\x12network_bytes_sent\x18l \x01(\x03H\bR\x10networkBytesSent\x88\x01\x01\x120\n" +
  529. "\x11establish_tunnels\x18m \x01(\bH\tR\x10establishTunnels\x88\x01\x01\x12J\n" +
  530. "\x1festablish_tunnels_limited_count\x18n \x01(\x03H\n" +
  531. "R\x1cestablishTunnelsLimitedCount\x88\x01\x01\x128\n" +
  532. "\alast_gc\x18o \x01(\v2\x1a.google.protobuf.TimestampH\vR\x06lastGc\x88\x01\x01\x12'\n" +
  533. "\rnum_forced_gc\x18p \x01(\rH\fR\vnumForcedGc\x88\x01\x01\x12\x1a\n" +
  534. "\x06num_gc\x18q \x01(\rH\rR\x05numGc\x88\x01\x01\x12(\n" +
  535. "\rnum_goroutine\x18r \x01(\rH\x0eR\fnumGoroutine\x88\x01\x01\x12@\n" +
  536. "\x1areplay_delete_replay_count\x18s \x01(\x03H\x0fR\x17replayDeleteReplayCount\x88\x01\x01\x12@\n" +
  537. "\x1areplay_failed_replay_count\x18t \x01(\x03H\x10R\x17replayFailedReplayCount\x88\x01\x01\x12A\n" +
  538. "\x1breplay_get_replay_hit_count\x18u \x01(\x03H\x11R\x17replayGetReplayHitCount\x88\x01\x01\x12C\n" +
  539. "\x1creplay_get_replay_miss_count\x18v \x01(\x03H\x12R\x18replayGetReplayMissCount\x88\x01\x01\x12<\n" +
  540. "\x18replay_max_cache_entries\x18w \x01(\x03H\x13R\x15replayMaxCacheEntries\x88\x01\x01\x12:\n" +
  541. "\x17replay_set_replay_count\x18x \x01(\x03H\x14R\x14replaySetReplayCount\x88\x01\x01\x12G\n" +
  542. "\x1eserver_tactics_cache_hit_count\x18y \x01(\x03H\x15R\x1aserverTacticsCacheHitCount\x88\x01\x01\x12I\n" +
  543. "\x1fserver_tactics_cache_miss_count\x18z \x01(\x03H\x16R\x1bserverTacticsCacheMissCount\x88\x01\x01\x12K\n" +
  544. " server_tactics_max_cache_entries\x18{ \x01(\x03H\x17R\x1cserverTacticsMaxCacheEntries\x88\x01\x01\x12Y\n" +
  545. "'server_tactics_max_parameter_references\x18| \x01(\x03H\x18R#serverTacticsMaxParameterReferences\x88\x01\x01\x12>\n" +
  546. "\x19dialing_tcp_port_forwards\x18} \x01(\x03H\x19R\x16dialingTcpPortForwards\x88\x01\x01\x12N\n" +
  547. "\"tcp_ipv4_port_forward_dialed_count\x18~ \x01(\x03H\x1aR\x1dtcpIpv4PortForwardDialedCount\x88\x01\x01\x12T\n" +
  548. "%tcp_ipv4_port_forward_dialed_duration\x18\x7f \x01(\x03H\x1bR tcpIpv4PortForwardDialedDuration\x88\x01\x01\x12O\n" +
  549. "\"tcp_ipv4_port_forward_failed_count\x18\x80\x01 \x01(\x03H\x1cR\x1dtcpIpv4PortForwardFailedCount\x88\x01\x01\x12U\n" +
  550. "%tcp_ipv4_port_forward_failed_duration\x18\x81\x01 \x01(\x03H\x1dR tcpIpv4PortForwardFailedDuration\x88\x01\x01\x12O\n" +
  551. "\"tcp_ipv6_port_forward_dialed_count\x18\x82\x01 \x01(\x03H\x1eR\x1dtcpIpv6PortForwardDialedCount\x88\x01\x01\x12U\n" +
  552. "%tcp_ipv6_port_forward_dialed_duration\x18\x83\x01 \x01(\x03H\x1fR tcpIpv6PortForwardDialedDuration\x88\x01\x01\x12O\n" +
  553. "\"tcp_ipv6_port_forward_failed_count\x18\x84\x01 \x01(\x03H R\x1dtcpIpv6PortForwardFailedCount\x88\x01\x01\x12U\n" +
  554. "%tcp_ipv6_port_forward_failed_duration\x18\x85\x01 \x01(\x03H!R tcpIpv6PortForwardFailedDuration\x88\x01\x01\x12F\n" +
  555. "\x1dtcp_port_forward_dialed_count\x18\x86\x01 \x01(\x03H\"R\x19tcpPortForwardDialedCount\x88\x01\x01\x12L\n" +
  556. " tcp_port_forward_dialed_duration\x18\x87\x01 \x01(\x03H#R\x1ctcpPortForwardDialedDuration\x88\x01\x01\x12F\n" +
  557. "\x1dtcp_port_forward_failed_count\x18\x88\x01 \x01(\x03H$R\x19tcpPortForwardFailedCount\x88\x01\x01\x12L\n" +
  558. " tcp_port_forward_failed_duration\x18\x89\x01 \x01(\x03H%R\x1ctcpPortForwardFailedDuration\x88\x01\x01\x12d\n" +
  559. "-tcp_port_forward_rejected_dialing_limit_count\x18\x8a\x01 \x01(\x03H&R'tcpPortForwardRejectedDialingLimitCount\x88\x01\x01\x12_\n" +
  560. "*tcp_port_forward_rejected_disallowed_count\x18\x8b\x01 \x01(\x03H'R%tcpPortForwardRejectedDisallowedCount\x88\x01\x01\x120\n" +
  561. "\x11tcp_port_forwards\x18\x8c\x01 \x01(\x03H(R\x0ftcpPortForwards\x88\x01\x01\x12_\n" +
  562. "*udp_port_forward_rejected_disallowed_count\x18\x8d\x01 \x01(\x03H)R%udpPortForwardRejectedDisallowedCount\x88\x01\x01\x120\n" +
  563. "\x11udp_port_forwards\x18\x8e\x01 \x01(\x03H*R\x0fudpPortForwards\x88\x01\x01\x12;\n" +
  564. "\x17total_tcp_port_forwards\x18\x8f\x01 \x01(\x03H+R\x14totalTcpPortForwards\x88\x01\x01\x12;\n" +
  565. "\x17total_udp_port_forwards\x18\x90\x01 \x01(\x03H,R\x14totalUdpPortForwards\x88\x01\x01B\x0e\n" +
  566. "\f_cpu_percentB\r\n" +
  567. "\v_heap_allocB\f\n" +
  568. "\n" +
  569. "_heap_idleB\r\n" +
  570. "\v_heap_inuseB\x0f\n" +
  571. "\r_heap_objectsB\x10\n" +
  572. "\x0e_heap_releasedB\v\n" +
  573. "\t_heap_sysB\x19\n" +
  574. "\x17_network_bytes_receivedB\x15\n" +
  575. "\x13_network_bytes_sentB\x14\n" +
  576. "\x12_establish_tunnelsB\"\n" +
  577. " _establish_tunnels_limited_countB\n" +
  578. "\n" +
  579. "\b_last_gcB\x10\n" +
  580. "\x0e_num_forced_gcB\t\n" +
  581. "\a_num_gcB\x10\n" +
  582. "\x0e_num_goroutineB\x1d\n" +
  583. "\x1b_replay_delete_replay_countB\x1d\n" +
  584. "\x1b_replay_failed_replay_countB\x1e\n" +
  585. "\x1c_replay_get_replay_hit_countB\x1f\n" +
  586. "\x1d_replay_get_replay_miss_countB\x1b\n" +
  587. "\x19_replay_max_cache_entriesB\x1a\n" +
  588. "\x18_replay_set_replay_countB!\n" +
  589. "\x1f_server_tactics_cache_hit_countB\"\n" +
  590. " _server_tactics_cache_miss_countB#\n" +
  591. "!_server_tactics_max_cache_entriesB*\n" +
  592. "(_server_tactics_max_parameter_referencesB\x1c\n" +
  593. "\x1a_dialing_tcp_port_forwardsB%\n" +
  594. "#_tcp_ipv4_port_forward_dialed_countB(\n" +
  595. "&_tcp_ipv4_port_forward_dialed_durationB%\n" +
  596. "#_tcp_ipv4_port_forward_failed_countB(\n" +
  597. "&_tcp_ipv4_port_forward_failed_durationB%\n" +
  598. "#_tcp_ipv6_port_forward_dialed_countB(\n" +
  599. "&_tcp_ipv6_port_forward_dialed_durationB%\n" +
  600. "#_tcp_ipv6_port_forward_failed_countB(\n" +
  601. "&_tcp_ipv6_port_forward_failed_durationB \n" +
  602. "\x1e_tcp_port_forward_dialed_countB#\n" +
  603. "!_tcp_port_forward_dialed_durationB \n" +
  604. "\x1e_tcp_port_forward_failed_countB#\n" +
  605. "!_tcp_port_forward_failed_durationB0\n" +
  606. "._tcp_port_forward_rejected_dialing_limit_countB-\n" +
  607. "+_tcp_port_forward_rejected_disallowed_countB\x14\n" +
  608. "\x12_tcp_port_forwardsB-\n" +
  609. "+_udp_port_forward_rejected_disallowed_countB\x14\n" +
  610. "\x12_udp_port_forwardsB\x1a\n" +
  611. "\x18_total_tcp_port_forwardsB\x1a\n" +
  612. "\x18_total_udp_port_forwardsBHZFgithub.com/Psiphon-Labs/psiphon-tunnel-core/psiphon/server/pb/psiphondb\x06proto3"
  613. var (
  614. file_ca_psiphon_psiphond_server_load_proto_rawDescOnce sync.Once
  615. file_ca_psiphon_psiphond_server_load_proto_rawDescData []byte
  616. )
  617. func file_ca_psiphon_psiphond_server_load_proto_rawDescGZIP() []byte {
  618. file_ca_psiphon_psiphond_server_load_proto_rawDescOnce.Do(func() {
  619. file_ca_psiphon_psiphond_server_load_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_ca_psiphon_psiphond_server_load_proto_rawDesc), len(file_ca_psiphon_psiphond_server_load_proto_rawDesc)))
  620. })
  621. return file_ca_psiphon_psiphond_server_load_proto_rawDescData
  622. }
  623. var file_ca_psiphon_psiphond_server_load_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
  624. var file_ca_psiphon_psiphond_server_load_proto_goTypes = []any{
  625. (*ServerLoadProtocol)(nil), // 0: ca.psiphon.psiphond.ServerLoadProtocol
  626. (*ServerLoadDNS)(nil), // 1: ca.psiphon.psiphond.ServerLoadDNS
  627. (*ServerLoad)(nil), // 2: ca.psiphon.psiphond.ServerLoad
  628. (*timestamppb.Timestamp)(nil), // 3: google.protobuf.Timestamp
  629. }
  630. var file_ca_psiphon_psiphond_server_load_proto_depIdxs = []int32{
  631. 3, // 0: ca.psiphon.psiphond.ServerLoad.last_gc:type_name -> google.protobuf.Timestamp
  632. 1, // [1:1] is the sub-list for method output_type
  633. 1, // [1:1] is the sub-list for method input_type
  634. 1, // [1:1] is the sub-list for extension type_name
  635. 1, // [1:1] is the sub-list for extension extendee
  636. 0, // [0:1] is the sub-list for field type_name
  637. }
  638. func init() { file_ca_psiphon_psiphond_server_load_proto_init() }
  639. func file_ca_psiphon_psiphond_server_load_proto_init() {
  640. if File_ca_psiphon_psiphond_server_load_proto != nil {
  641. return
  642. }
  643. file_ca_psiphon_psiphond_server_load_proto_msgTypes[0].OneofWrappers = []any{}
  644. file_ca_psiphon_psiphond_server_load_proto_msgTypes[1].OneofWrappers = []any{}
  645. file_ca_psiphon_psiphond_server_load_proto_msgTypes[2].OneofWrappers = []any{}
  646. type x struct{}
  647. out := protoimpl.TypeBuilder{
  648. File: protoimpl.DescBuilder{
  649. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  650. RawDescriptor: unsafe.Slice(unsafe.StringData(file_ca_psiphon_psiphond_server_load_proto_rawDesc), len(file_ca_psiphon_psiphond_server_load_proto_rawDesc)),
  651. NumEnums: 0,
  652. NumMessages: 3,
  653. NumExtensions: 0,
  654. NumServices: 0,
  655. },
  656. GoTypes: file_ca_psiphon_psiphond_server_load_proto_goTypes,
  657. DependencyIndexes: file_ca_psiphon_psiphond_server_load_proto_depIdxs,
  658. MessageInfos: file_ca_psiphon_psiphond_server_load_proto_msgTypes,
  659. }.Build()
  660. File_ca_psiphon_psiphond_server_load_proto = out.File
  661. file_ca_psiphon_psiphond_server_load_proto_goTypes = nil
  662. file_ca_psiphon_psiphond_server_load_proto_depIdxs = nil
  663. }