server_load.pb.go 33 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754
  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 *int64 `protobuf:"varint,101,opt,name=heap_alloc,json=heapAlloc,proto3,oneof" json:"heap_alloc,omitempty"`
  148. HeapIdle *int64 `protobuf:"varint,102,opt,name=heap_idle,json=heapIdle,proto3,oneof" json:"heap_idle,omitempty"`
  149. HeapInuse *int64 `protobuf:"varint,103,opt,name=heap_inuse,json=heapInuse,proto3,oneof" json:"heap_inuse,omitempty"`
  150. HeapObjects *int64 `protobuf:"varint,104,opt,name=heap_objects,json=heapObjects,proto3,oneof" json:"heap_objects,omitempty"`
  151. HeapReleased *int64 `protobuf:"varint,105,opt,name=heap_released,json=heapReleased,proto3,oneof" json:"heap_released,omitempty"`
  152. HeapSys *int64 `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 *int64 `protobuf:"varint,112,opt,name=num_forced_gc,json=numForcedGc,proto3,oneof" json:"num_forced_gc,omitempty"`
  159. NumGc *int64 `protobuf:"varint,113,opt,name=num_gc,json=numGc,proto3,oneof" json:"num_gc,omitempty"`
  160. NumGoroutine *int64 `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. ServerEntryTag *string `protobuf:"bytes,145,opt,name=server_entry_tag,json=serverEntryTag,proto3,oneof" json:"server_entry_tag,omitempty"`
  192. unknownFields protoimpl.UnknownFields
  193. sizeCache protoimpl.SizeCache
  194. }
  195. func (x *ServerLoad) Reset() {
  196. *x = ServerLoad{}
  197. mi := &file_ca_psiphon_psiphond_server_load_proto_msgTypes[2]
  198. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  199. ms.StoreMessageInfo(mi)
  200. }
  201. func (x *ServerLoad) String() string {
  202. return protoimpl.X.MessageStringOf(x)
  203. }
  204. func (*ServerLoad) ProtoMessage() {}
  205. func (x *ServerLoad) ProtoReflect() protoreflect.Message {
  206. mi := &file_ca_psiphon_psiphond_server_load_proto_msgTypes[2]
  207. if x != nil {
  208. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  209. if ms.LoadMessageInfo() == nil {
  210. ms.StoreMessageInfo(mi)
  211. }
  212. return ms
  213. }
  214. return mi.MessageOf(x)
  215. }
  216. // Deprecated: Use ServerLoad.ProtoReflect.Descriptor instead.
  217. func (*ServerLoad) Descriptor() ([]byte, []int) {
  218. return file_ca_psiphon_psiphond_server_load_proto_rawDescGZIP(), []int{2}
  219. }
  220. func (x *ServerLoad) GetCpuPercent() float64 {
  221. if x != nil && x.CpuPercent != nil {
  222. return *x.CpuPercent
  223. }
  224. return 0
  225. }
  226. func (x *ServerLoad) GetHeapAlloc() int64 {
  227. if x != nil && x.HeapAlloc != nil {
  228. return *x.HeapAlloc
  229. }
  230. return 0
  231. }
  232. func (x *ServerLoad) GetHeapIdle() int64 {
  233. if x != nil && x.HeapIdle != nil {
  234. return *x.HeapIdle
  235. }
  236. return 0
  237. }
  238. func (x *ServerLoad) GetHeapInuse() int64 {
  239. if x != nil && x.HeapInuse != nil {
  240. return *x.HeapInuse
  241. }
  242. return 0
  243. }
  244. func (x *ServerLoad) GetHeapObjects() int64 {
  245. if x != nil && x.HeapObjects != nil {
  246. return *x.HeapObjects
  247. }
  248. return 0
  249. }
  250. func (x *ServerLoad) GetHeapReleased() int64 {
  251. if x != nil && x.HeapReleased != nil {
  252. return *x.HeapReleased
  253. }
  254. return 0
  255. }
  256. func (x *ServerLoad) GetHeapSys() int64 {
  257. if x != nil && x.HeapSys != nil {
  258. return *x.HeapSys
  259. }
  260. return 0
  261. }
  262. func (x *ServerLoad) GetNetworkBytesReceived() int64 {
  263. if x != nil && x.NetworkBytesReceived != nil {
  264. return *x.NetworkBytesReceived
  265. }
  266. return 0
  267. }
  268. func (x *ServerLoad) GetNetworkBytesSent() int64 {
  269. if x != nil && x.NetworkBytesSent != nil {
  270. return *x.NetworkBytesSent
  271. }
  272. return 0
  273. }
  274. func (x *ServerLoad) GetEstablishTunnels() bool {
  275. if x != nil && x.EstablishTunnels != nil {
  276. return *x.EstablishTunnels
  277. }
  278. return false
  279. }
  280. func (x *ServerLoad) GetEstablishTunnelsLimitedCount() int64 {
  281. if x != nil && x.EstablishTunnelsLimitedCount != nil {
  282. return *x.EstablishTunnelsLimitedCount
  283. }
  284. return 0
  285. }
  286. func (x *ServerLoad) GetLastGc() *timestamppb.Timestamp {
  287. if x != nil {
  288. return x.LastGc
  289. }
  290. return nil
  291. }
  292. func (x *ServerLoad) GetNumForcedGc() int64 {
  293. if x != nil && x.NumForcedGc != nil {
  294. return *x.NumForcedGc
  295. }
  296. return 0
  297. }
  298. func (x *ServerLoad) GetNumGc() int64 {
  299. if x != nil && x.NumGc != nil {
  300. return *x.NumGc
  301. }
  302. return 0
  303. }
  304. func (x *ServerLoad) GetNumGoroutine() int64 {
  305. if x != nil && x.NumGoroutine != nil {
  306. return *x.NumGoroutine
  307. }
  308. return 0
  309. }
  310. func (x *ServerLoad) GetReplayDeleteReplayCount() int64 {
  311. if x != nil && x.ReplayDeleteReplayCount != nil {
  312. return *x.ReplayDeleteReplayCount
  313. }
  314. return 0
  315. }
  316. func (x *ServerLoad) GetReplayFailedReplayCount() int64 {
  317. if x != nil && x.ReplayFailedReplayCount != nil {
  318. return *x.ReplayFailedReplayCount
  319. }
  320. return 0
  321. }
  322. func (x *ServerLoad) GetReplayGetReplayHitCount() int64 {
  323. if x != nil && x.ReplayGetReplayHitCount != nil {
  324. return *x.ReplayGetReplayHitCount
  325. }
  326. return 0
  327. }
  328. func (x *ServerLoad) GetReplayGetReplayMissCount() int64 {
  329. if x != nil && x.ReplayGetReplayMissCount != nil {
  330. return *x.ReplayGetReplayMissCount
  331. }
  332. return 0
  333. }
  334. func (x *ServerLoad) GetReplayMaxCacheEntries() int64 {
  335. if x != nil && x.ReplayMaxCacheEntries != nil {
  336. return *x.ReplayMaxCacheEntries
  337. }
  338. return 0
  339. }
  340. func (x *ServerLoad) GetReplaySetReplayCount() int64 {
  341. if x != nil && x.ReplaySetReplayCount != nil {
  342. return *x.ReplaySetReplayCount
  343. }
  344. return 0
  345. }
  346. func (x *ServerLoad) GetServerTacticsCacheHitCount() int64 {
  347. if x != nil && x.ServerTacticsCacheHitCount != nil {
  348. return *x.ServerTacticsCacheHitCount
  349. }
  350. return 0
  351. }
  352. func (x *ServerLoad) GetServerTacticsCacheMissCount() int64 {
  353. if x != nil && x.ServerTacticsCacheMissCount != nil {
  354. return *x.ServerTacticsCacheMissCount
  355. }
  356. return 0
  357. }
  358. func (x *ServerLoad) GetServerTacticsMaxCacheEntries() int64 {
  359. if x != nil && x.ServerTacticsMaxCacheEntries != nil {
  360. return *x.ServerTacticsMaxCacheEntries
  361. }
  362. return 0
  363. }
  364. func (x *ServerLoad) GetServerTacticsMaxParameterReferences() int64 {
  365. if x != nil && x.ServerTacticsMaxParameterReferences != nil {
  366. return *x.ServerTacticsMaxParameterReferences
  367. }
  368. return 0
  369. }
  370. func (x *ServerLoad) GetDialingTcpPortForwards() int64 {
  371. if x != nil && x.DialingTcpPortForwards != nil {
  372. return *x.DialingTcpPortForwards
  373. }
  374. return 0
  375. }
  376. func (x *ServerLoad) GetTcpIpv4PortForwardDialedCount() int64 {
  377. if x != nil && x.TcpIpv4PortForwardDialedCount != nil {
  378. return *x.TcpIpv4PortForwardDialedCount
  379. }
  380. return 0
  381. }
  382. func (x *ServerLoad) GetTcpIpv4PortForwardDialedDuration() int64 {
  383. if x != nil && x.TcpIpv4PortForwardDialedDuration != nil {
  384. return *x.TcpIpv4PortForwardDialedDuration
  385. }
  386. return 0
  387. }
  388. func (x *ServerLoad) GetTcpIpv4PortForwardFailedCount() int64 {
  389. if x != nil && x.TcpIpv4PortForwardFailedCount != nil {
  390. return *x.TcpIpv4PortForwardFailedCount
  391. }
  392. return 0
  393. }
  394. func (x *ServerLoad) GetTcpIpv4PortForwardFailedDuration() int64 {
  395. if x != nil && x.TcpIpv4PortForwardFailedDuration != nil {
  396. return *x.TcpIpv4PortForwardFailedDuration
  397. }
  398. return 0
  399. }
  400. func (x *ServerLoad) GetTcpIpv6PortForwardDialedCount() int64 {
  401. if x != nil && x.TcpIpv6PortForwardDialedCount != nil {
  402. return *x.TcpIpv6PortForwardDialedCount
  403. }
  404. return 0
  405. }
  406. func (x *ServerLoad) GetTcpIpv6PortForwardDialedDuration() int64 {
  407. if x != nil && x.TcpIpv6PortForwardDialedDuration != nil {
  408. return *x.TcpIpv6PortForwardDialedDuration
  409. }
  410. return 0
  411. }
  412. func (x *ServerLoad) GetTcpIpv6PortForwardFailedCount() int64 {
  413. if x != nil && x.TcpIpv6PortForwardFailedCount != nil {
  414. return *x.TcpIpv6PortForwardFailedCount
  415. }
  416. return 0
  417. }
  418. func (x *ServerLoad) GetTcpIpv6PortForwardFailedDuration() int64 {
  419. if x != nil && x.TcpIpv6PortForwardFailedDuration != nil {
  420. return *x.TcpIpv6PortForwardFailedDuration
  421. }
  422. return 0
  423. }
  424. func (x *ServerLoad) GetTcpPortForwardDialedCount() int64 {
  425. if x != nil && x.TcpPortForwardDialedCount != nil {
  426. return *x.TcpPortForwardDialedCount
  427. }
  428. return 0
  429. }
  430. func (x *ServerLoad) GetTcpPortForwardDialedDuration() int64 {
  431. if x != nil && x.TcpPortForwardDialedDuration != nil {
  432. return *x.TcpPortForwardDialedDuration
  433. }
  434. return 0
  435. }
  436. func (x *ServerLoad) GetTcpPortForwardFailedCount() int64 {
  437. if x != nil && x.TcpPortForwardFailedCount != nil {
  438. return *x.TcpPortForwardFailedCount
  439. }
  440. return 0
  441. }
  442. func (x *ServerLoad) GetTcpPortForwardFailedDuration() int64 {
  443. if x != nil && x.TcpPortForwardFailedDuration != nil {
  444. return *x.TcpPortForwardFailedDuration
  445. }
  446. return 0
  447. }
  448. func (x *ServerLoad) GetTcpPortForwardRejectedDialingLimitCount() int64 {
  449. if x != nil && x.TcpPortForwardRejectedDialingLimitCount != nil {
  450. return *x.TcpPortForwardRejectedDialingLimitCount
  451. }
  452. return 0
  453. }
  454. func (x *ServerLoad) GetTcpPortForwardRejectedDisallowedCount() int64 {
  455. if x != nil && x.TcpPortForwardRejectedDisallowedCount != nil {
  456. return *x.TcpPortForwardRejectedDisallowedCount
  457. }
  458. return 0
  459. }
  460. func (x *ServerLoad) GetTcpPortForwards() int64 {
  461. if x != nil && x.TcpPortForwards != nil {
  462. return *x.TcpPortForwards
  463. }
  464. return 0
  465. }
  466. func (x *ServerLoad) GetUdpPortForwardRejectedDisallowedCount() int64 {
  467. if x != nil && x.UdpPortForwardRejectedDisallowedCount != nil {
  468. return *x.UdpPortForwardRejectedDisallowedCount
  469. }
  470. return 0
  471. }
  472. func (x *ServerLoad) GetUdpPortForwards() int64 {
  473. if x != nil && x.UdpPortForwards != nil {
  474. return *x.UdpPortForwards
  475. }
  476. return 0
  477. }
  478. func (x *ServerLoad) GetTotalTcpPortForwards() int64 {
  479. if x != nil && x.TotalTcpPortForwards != nil {
  480. return *x.TotalTcpPortForwards
  481. }
  482. return 0
  483. }
  484. func (x *ServerLoad) GetTotalUdpPortForwards() int64 {
  485. if x != nil && x.TotalUdpPortForwards != nil {
  486. return *x.TotalUdpPortForwards
  487. }
  488. return 0
  489. }
  490. func (x *ServerLoad) GetServerEntryTag() string {
  491. if x != nil && x.ServerEntryTag != nil {
  492. return *x.ServerEntryTag
  493. }
  494. return ""
  495. }
  496. var File_ca_psiphon_psiphond_server_load_proto protoreflect.FileDescriptor
  497. const file_ca_psiphon_psiphond_server_load_proto_rawDesc = "" +
  498. "\n" +
  499. "%ca.psiphon.psiphond/server_load.proto\x12\x13ca.psiphon.psiphond\x1a\x1fgoogle/protobuf/timestamp.proto\"\xfd\x01\n" +
  500. "\x12ServerLoadProtocol\x12\x1b\n" +
  501. "\x06region\x18d \x01(\tH\x00R\x06region\x88\x01\x01\x12\x1f\n" +
  502. "\bprotocol\x18e \x01(\tH\x01R\bprotocol\x88\x01\x01\x12.\n" +
  503. "\x10accepted_clients\x18f \x01(\x03H\x02R\x0facceptedClients\x88\x01\x01\x124\n" +
  504. "\x13established_clients\x18g \x01(\x03H\x03R\x12establishedClients\x88\x01\x01B\t\n" +
  505. "\a_regionB\v\n" +
  506. "\t_protocolB\x13\n" +
  507. "\x11_accepted_clientsB\x16\n" +
  508. "\x14_established_clients\"\xbc\x02\n" +
  509. "\rServerLoadDNS\x12\"\n" +
  510. "\n" +
  511. "dns_server\x18d \x01(\tH\x00R\tdnsServer\x88\x01\x01\x12 \n" +
  512. "\tdns_count\x18e \x01(\x03H\x01R\bdnsCount\x88\x01\x01\x12&\n" +
  513. "\fdns_duration\x18f \x01(\x03H\x02R\vdnsDuration\x88\x01\x01\x12-\n" +
  514. "\x10dns_failed_count\x18g \x01(\x03H\x03R\x0ednsFailedCount\x88\x01\x01\x123\n" +
  515. "\x13dns_failed_duration\x18h \x01(\x03H\x04R\x11dnsFailedDuration\x88\x01\x01B\r\n" +
  516. "\v_dns_serverB\f\n" +
  517. "\n" +
  518. "_dns_countB\x0f\n" +
  519. "\r_dns_durationB\x13\n" +
  520. "\x11_dns_failed_countB\x16\n" +
  521. "\x14_dns_failed_duration\"\x81\"\n" +
  522. "\n" +
  523. "ServerLoad\x12$\n" +
  524. "\vcpu_percent\x18d \x01(\x01H\x00R\n" +
  525. "cpuPercent\x88\x01\x01\x12\"\n" +
  526. "\n" +
  527. "heap_alloc\x18e \x01(\x03H\x01R\theapAlloc\x88\x01\x01\x12 \n" +
  528. "\theap_idle\x18f \x01(\x03H\x02R\bheapIdle\x88\x01\x01\x12\"\n" +
  529. "\n" +
  530. "heap_inuse\x18g \x01(\x03H\x03R\theapInuse\x88\x01\x01\x12&\n" +
  531. "\fheap_objects\x18h \x01(\x03H\x04R\vheapObjects\x88\x01\x01\x12(\n" +
  532. "\rheap_released\x18i \x01(\x03H\x05R\fheapReleased\x88\x01\x01\x12\x1e\n" +
  533. "\bheap_sys\x18j \x01(\x03H\x06R\aheapSys\x88\x01\x01\x129\n" +
  534. "\x16network_bytes_received\x18k \x01(\x03H\aR\x14networkBytesReceived\x88\x01\x01\x121\n" +
  535. "\x12network_bytes_sent\x18l \x01(\x03H\bR\x10networkBytesSent\x88\x01\x01\x120\n" +
  536. "\x11establish_tunnels\x18m \x01(\bH\tR\x10establishTunnels\x88\x01\x01\x12J\n" +
  537. "\x1festablish_tunnels_limited_count\x18n \x01(\x03H\n" +
  538. "R\x1cestablishTunnelsLimitedCount\x88\x01\x01\x128\n" +
  539. "\alast_gc\x18o \x01(\v2\x1a.google.protobuf.TimestampH\vR\x06lastGc\x88\x01\x01\x12'\n" +
  540. "\rnum_forced_gc\x18p \x01(\x03H\fR\vnumForcedGc\x88\x01\x01\x12\x1a\n" +
  541. "\x06num_gc\x18q \x01(\x03H\rR\x05numGc\x88\x01\x01\x12(\n" +
  542. "\rnum_goroutine\x18r \x01(\x03H\x0eR\fnumGoroutine\x88\x01\x01\x12@\n" +
  543. "\x1areplay_delete_replay_count\x18s \x01(\x03H\x0fR\x17replayDeleteReplayCount\x88\x01\x01\x12@\n" +
  544. "\x1areplay_failed_replay_count\x18t \x01(\x03H\x10R\x17replayFailedReplayCount\x88\x01\x01\x12A\n" +
  545. "\x1breplay_get_replay_hit_count\x18u \x01(\x03H\x11R\x17replayGetReplayHitCount\x88\x01\x01\x12C\n" +
  546. "\x1creplay_get_replay_miss_count\x18v \x01(\x03H\x12R\x18replayGetReplayMissCount\x88\x01\x01\x12<\n" +
  547. "\x18replay_max_cache_entries\x18w \x01(\x03H\x13R\x15replayMaxCacheEntries\x88\x01\x01\x12:\n" +
  548. "\x17replay_set_replay_count\x18x \x01(\x03H\x14R\x14replaySetReplayCount\x88\x01\x01\x12G\n" +
  549. "\x1eserver_tactics_cache_hit_count\x18y \x01(\x03H\x15R\x1aserverTacticsCacheHitCount\x88\x01\x01\x12I\n" +
  550. "\x1fserver_tactics_cache_miss_count\x18z \x01(\x03H\x16R\x1bserverTacticsCacheMissCount\x88\x01\x01\x12K\n" +
  551. " server_tactics_max_cache_entries\x18{ \x01(\x03H\x17R\x1cserverTacticsMaxCacheEntries\x88\x01\x01\x12Y\n" +
  552. "'server_tactics_max_parameter_references\x18| \x01(\x03H\x18R#serverTacticsMaxParameterReferences\x88\x01\x01\x12>\n" +
  553. "\x19dialing_tcp_port_forwards\x18} \x01(\x03H\x19R\x16dialingTcpPortForwards\x88\x01\x01\x12N\n" +
  554. "\"tcp_ipv4_port_forward_dialed_count\x18~ \x01(\x03H\x1aR\x1dtcpIpv4PortForwardDialedCount\x88\x01\x01\x12T\n" +
  555. "%tcp_ipv4_port_forward_dialed_duration\x18\x7f \x01(\x03H\x1bR tcpIpv4PortForwardDialedDuration\x88\x01\x01\x12O\n" +
  556. "\"tcp_ipv4_port_forward_failed_count\x18\x80\x01 \x01(\x03H\x1cR\x1dtcpIpv4PortForwardFailedCount\x88\x01\x01\x12U\n" +
  557. "%tcp_ipv4_port_forward_failed_duration\x18\x81\x01 \x01(\x03H\x1dR tcpIpv4PortForwardFailedDuration\x88\x01\x01\x12O\n" +
  558. "\"tcp_ipv6_port_forward_dialed_count\x18\x82\x01 \x01(\x03H\x1eR\x1dtcpIpv6PortForwardDialedCount\x88\x01\x01\x12U\n" +
  559. "%tcp_ipv6_port_forward_dialed_duration\x18\x83\x01 \x01(\x03H\x1fR tcpIpv6PortForwardDialedDuration\x88\x01\x01\x12O\n" +
  560. "\"tcp_ipv6_port_forward_failed_count\x18\x84\x01 \x01(\x03H R\x1dtcpIpv6PortForwardFailedCount\x88\x01\x01\x12U\n" +
  561. "%tcp_ipv6_port_forward_failed_duration\x18\x85\x01 \x01(\x03H!R tcpIpv6PortForwardFailedDuration\x88\x01\x01\x12F\n" +
  562. "\x1dtcp_port_forward_dialed_count\x18\x86\x01 \x01(\x03H\"R\x19tcpPortForwardDialedCount\x88\x01\x01\x12L\n" +
  563. " tcp_port_forward_dialed_duration\x18\x87\x01 \x01(\x03H#R\x1ctcpPortForwardDialedDuration\x88\x01\x01\x12F\n" +
  564. "\x1dtcp_port_forward_failed_count\x18\x88\x01 \x01(\x03H$R\x19tcpPortForwardFailedCount\x88\x01\x01\x12L\n" +
  565. " tcp_port_forward_failed_duration\x18\x89\x01 \x01(\x03H%R\x1ctcpPortForwardFailedDuration\x88\x01\x01\x12d\n" +
  566. "-tcp_port_forward_rejected_dialing_limit_count\x18\x8a\x01 \x01(\x03H&R'tcpPortForwardRejectedDialingLimitCount\x88\x01\x01\x12_\n" +
  567. "*tcp_port_forward_rejected_disallowed_count\x18\x8b\x01 \x01(\x03H'R%tcpPortForwardRejectedDisallowedCount\x88\x01\x01\x120\n" +
  568. "\x11tcp_port_forwards\x18\x8c\x01 \x01(\x03H(R\x0ftcpPortForwards\x88\x01\x01\x12_\n" +
  569. "*udp_port_forward_rejected_disallowed_count\x18\x8d\x01 \x01(\x03H)R%udpPortForwardRejectedDisallowedCount\x88\x01\x01\x120\n" +
  570. "\x11udp_port_forwards\x18\x8e\x01 \x01(\x03H*R\x0fudpPortForwards\x88\x01\x01\x12;\n" +
  571. "\x17total_tcp_port_forwards\x18\x8f\x01 \x01(\x03H+R\x14totalTcpPortForwards\x88\x01\x01\x12;\n" +
  572. "\x17total_udp_port_forwards\x18\x90\x01 \x01(\x03H,R\x14totalUdpPortForwards\x88\x01\x01\x12.\n" +
  573. "\x10server_entry_tag\x18\x91\x01 \x01(\tH-R\x0eserverEntryTag\x88\x01\x01B\x0e\n" +
  574. "\f_cpu_percentB\r\n" +
  575. "\v_heap_allocB\f\n" +
  576. "\n" +
  577. "_heap_idleB\r\n" +
  578. "\v_heap_inuseB\x0f\n" +
  579. "\r_heap_objectsB\x10\n" +
  580. "\x0e_heap_releasedB\v\n" +
  581. "\t_heap_sysB\x19\n" +
  582. "\x17_network_bytes_receivedB\x15\n" +
  583. "\x13_network_bytes_sentB\x14\n" +
  584. "\x12_establish_tunnelsB\"\n" +
  585. " _establish_tunnels_limited_countB\n" +
  586. "\n" +
  587. "\b_last_gcB\x10\n" +
  588. "\x0e_num_forced_gcB\t\n" +
  589. "\a_num_gcB\x10\n" +
  590. "\x0e_num_goroutineB\x1d\n" +
  591. "\x1b_replay_delete_replay_countB\x1d\n" +
  592. "\x1b_replay_failed_replay_countB\x1e\n" +
  593. "\x1c_replay_get_replay_hit_countB\x1f\n" +
  594. "\x1d_replay_get_replay_miss_countB\x1b\n" +
  595. "\x19_replay_max_cache_entriesB\x1a\n" +
  596. "\x18_replay_set_replay_countB!\n" +
  597. "\x1f_server_tactics_cache_hit_countB\"\n" +
  598. " _server_tactics_cache_miss_countB#\n" +
  599. "!_server_tactics_max_cache_entriesB*\n" +
  600. "(_server_tactics_max_parameter_referencesB\x1c\n" +
  601. "\x1a_dialing_tcp_port_forwardsB%\n" +
  602. "#_tcp_ipv4_port_forward_dialed_countB(\n" +
  603. "&_tcp_ipv4_port_forward_dialed_durationB%\n" +
  604. "#_tcp_ipv4_port_forward_failed_countB(\n" +
  605. "&_tcp_ipv4_port_forward_failed_durationB%\n" +
  606. "#_tcp_ipv6_port_forward_dialed_countB(\n" +
  607. "&_tcp_ipv6_port_forward_dialed_durationB%\n" +
  608. "#_tcp_ipv6_port_forward_failed_countB(\n" +
  609. "&_tcp_ipv6_port_forward_failed_durationB \n" +
  610. "\x1e_tcp_port_forward_dialed_countB#\n" +
  611. "!_tcp_port_forward_dialed_durationB \n" +
  612. "\x1e_tcp_port_forward_failed_countB#\n" +
  613. "!_tcp_port_forward_failed_durationB0\n" +
  614. "._tcp_port_forward_rejected_dialing_limit_countB-\n" +
  615. "+_tcp_port_forward_rejected_disallowed_countB\x14\n" +
  616. "\x12_tcp_port_forwardsB-\n" +
  617. "+_udp_port_forward_rejected_disallowed_countB\x14\n" +
  618. "\x12_udp_port_forwardsB\x1a\n" +
  619. "\x18_total_tcp_port_forwardsB\x1a\n" +
  620. "\x18_total_udp_port_forwardsB\x13\n" +
  621. "\x11_server_entry_tagBHZFgithub.com/Psiphon-Labs/psiphon-tunnel-core/psiphon/server/pb/psiphondb\x06proto3"
  622. var (
  623. file_ca_psiphon_psiphond_server_load_proto_rawDescOnce sync.Once
  624. file_ca_psiphon_psiphond_server_load_proto_rawDescData []byte
  625. )
  626. func file_ca_psiphon_psiphond_server_load_proto_rawDescGZIP() []byte {
  627. file_ca_psiphon_psiphond_server_load_proto_rawDescOnce.Do(func() {
  628. 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)))
  629. })
  630. return file_ca_psiphon_psiphond_server_load_proto_rawDescData
  631. }
  632. var file_ca_psiphon_psiphond_server_load_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
  633. var file_ca_psiphon_psiphond_server_load_proto_goTypes = []any{
  634. (*ServerLoadProtocol)(nil), // 0: ca.psiphon.psiphond.ServerLoadProtocol
  635. (*ServerLoadDNS)(nil), // 1: ca.psiphon.psiphond.ServerLoadDNS
  636. (*ServerLoad)(nil), // 2: ca.psiphon.psiphond.ServerLoad
  637. (*timestamppb.Timestamp)(nil), // 3: google.protobuf.Timestamp
  638. }
  639. var file_ca_psiphon_psiphond_server_load_proto_depIdxs = []int32{
  640. 3, // 0: ca.psiphon.psiphond.ServerLoad.last_gc:type_name -> google.protobuf.Timestamp
  641. 1, // [1:1] is the sub-list for method output_type
  642. 1, // [1:1] is the sub-list for method input_type
  643. 1, // [1:1] is the sub-list for extension type_name
  644. 1, // [1:1] is the sub-list for extension extendee
  645. 0, // [0:1] is the sub-list for field type_name
  646. }
  647. func init() { file_ca_psiphon_psiphond_server_load_proto_init() }
  648. func file_ca_psiphon_psiphond_server_load_proto_init() {
  649. if File_ca_psiphon_psiphond_server_load_proto != nil {
  650. return
  651. }
  652. file_ca_psiphon_psiphond_server_load_proto_msgTypes[0].OneofWrappers = []any{}
  653. file_ca_psiphon_psiphond_server_load_proto_msgTypes[1].OneofWrappers = []any{}
  654. file_ca_psiphon_psiphond_server_load_proto_msgTypes[2].OneofWrappers = []any{}
  655. type x struct{}
  656. out := protoimpl.TypeBuilder{
  657. File: protoimpl.DescBuilder{
  658. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  659. RawDescriptor: unsafe.Slice(unsafe.StringData(file_ca_psiphon_psiphond_server_load_proto_rawDesc), len(file_ca_psiphon_psiphond_server_load_proto_rawDesc)),
  660. NumEnums: 0,
  661. NumMessages: 3,
  662. NumExtensions: 0,
  663. NumServices: 0,
  664. },
  665. GoTypes: file_ca_psiphon_psiphond_server_load_proto_goTypes,
  666. DependencyIndexes: file_ca_psiphon_psiphond_server_load_proto_depIdxs,
  667. MessageInfos: file_ca_psiphon_psiphond_server_load_proto_msgTypes,
  668. }.Build()
  669. File_ca_psiphon_psiphond_server_load_proto = out.File
  670. file_ca_psiphon_psiphond_server_load_proto_goTypes = nil
  671. file_ca_psiphon_psiphond_server_load_proto_depIdxs = nil
  672. }