config.pb.go 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645
  1. package observatory
  2. import (
  3. _ "github.com/v2fly/v2ray-core/v5/common/protoext"
  4. protoreflect "google.golang.org/protobuf/reflect/protoreflect"
  5. protoimpl "google.golang.org/protobuf/runtime/protoimpl"
  6. reflect "reflect"
  7. sync "sync"
  8. )
  9. const (
  10. // Verify that this generated code is sufficiently up-to-date.
  11. _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
  12. // Verify that runtime/protoimpl is sufficiently up-to-date.
  13. _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
  14. )
  15. type ObservationResult struct {
  16. state protoimpl.MessageState
  17. sizeCache protoimpl.SizeCache
  18. unknownFields protoimpl.UnknownFields
  19. Status []*OutboundStatus `protobuf:"bytes,1,rep,name=status,proto3" json:"status,omitempty"`
  20. }
  21. func (x *ObservationResult) Reset() {
  22. *x = ObservationResult{}
  23. if protoimpl.UnsafeEnabled {
  24. mi := &file_app_observatory_config_proto_msgTypes[0]
  25. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  26. ms.StoreMessageInfo(mi)
  27. }
  28. }
  29. func (x *ObservationResult) String() string {
  30. return protoimpl.X.MessageStringOf(x)
  31. }
  32. func (*ObservationResult) ProtoMessage() {}
  33. func (x *ObservationResult) ProtoReflect() protoreflect.Message {
  34. mi := &file_app_observatory_config_proto_msgTypes[0]
  35. if protoimpl.UnsafeEnabled && x != nil {
  36. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  37. if ms.LoadMessageInfo() == nil {
  38. ms.StoreMessageInfo(mi)
  39. }
  40. return ms
  41. }
  42. return mi.MessageOf(x)
  43. }
  44. // Deprecated: Use ObservationResult.ProtoReflect.Descriptor instead.
  45. func (*ObservationResult) Descriptor() ([]byte, []int) {
  46. return file_app_observatory_config_proto_rawDescGZIP(), []int{0}
  47. }
  48. func (x *ObservationResult) GetStatus() []*OutboundStatus {
  49. if x != nil {
  50. return x.Status
  51. }
  52. return nil
  53. }
  54. type HealthPingMeasurementResult struct {
  55. state protoimpl.MessageState
  56. sizeCache protoimpl.SizeCache
  57. unknownFields protoimpl.UnknownFields
  58. All int64 `protobuf:"varint,1,opt,name=all,proto3" json:"all,omitempty"`
  59. Fail int64 `protobuf:"varint,2,opt,name=fail,proto3" json:"fail,omitempty"`
  60. Deviation int64 `protobuf:"varint,3,opt,name=deviation,proto3" json:"deviation,omitempty"`
  61. Average int64 `protobuf:"varint,4,opt,name=average,proto3" json:"average,omitempty"`
  62. Max int64 `protobuf:"varint,5,opt,name=max,proto3" json:"max,omitempty"`
  63. Min int64 `protobuf:"varint,6,opt,name=min,proto3" json:"min,omitempty"`
  64. }
  65. func (x *HealthPingMeasurementResult) Reset() {
  66. *x = HealthPingMeasurementResult{}
  67. if protoimpl.UnsafeEnabled {
  68. mi := &file_app_observatory_config_proto_msgTypes[1]
  69. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  70. ms.StoreMessageInfo(mi)
  71. }
  72. }
  73. func (x *HealthPingMeasurementResult) String() string {
  74. return protoimpl.X.MessageStringOf(x)
  75. }
  76. func (*HealthPingMeasurementResult) ProtoMessage() {}
  77. func (x *HealthPingMeasurementResult) ProtoReflect() protoreflect.Message {
  78. mi := &file_app_observatory_config_proto_msgTypes[1]
  79. if protoimpl.UnsafeEnabled && x != nil {
  80. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  81. if ms.LoadMessageInfo() == nil {
  82. ms.StoreMessageInfo(mi)
  83. }
  84. return ms
  85. }
  86. return mi.MessageOf(x)
  87. }
  88. // Deprecated: Use HealthPingMeasurementResult.ProtoReflect.Descriptor instead.
  89. func (*HealthPingMeasurementResult) Descriptor() ([]byte, []int) {
  90. return file_app_observatory_config_proto_rawDescGZIP(), []int{1}
  91. }
  92. func (x *HealthPingMeasurementResult) GetAll() int64 {
  93. if x != nil {
  94. return x.All
  95. }
  96. return 0
  97. }
  98. func (x *HealthPingMeasurementResult) GetFail() int64 {
  99. if x != nil {
  100. return x.Fail
  101. }
  102. return 0
  103. }
  104. func (x *HealthPingMeasurementResult) GetDeviation() int64 {
  105. if x != nil {
  106. return x.Deviation
  107. }
  108. return 0
  109. }
  110. func (x *HealthPingMeasurementResult) GetAverage() int64 {
  111. if x != nil {
  112. return x.Average
  113. }
  114. return 0
  115. }
  116. func (x *HealthPingMeasurementResult) GetMax() int64 {
  117. if x != nil {
  118. return x.Max
  119. }
  120. return 0
  121. }
  122. func (x *HealthPingMeasurementResult) GetMin() int64 {
  123. if x != nil {
  124. return x.Min
  125. }
  126. return 0
  127. }
  128. type OutboundStatus struct {
  129. state protoimpl.MessageState
  130. sizeCache protoimpl.SizeCache
  131. unknownFields protoimpl.UnknownFields
  132. // @Document Whether this outbound is usable
  133. // @Restriction ReadOnlyForUser
  134. Alive bool `protobuf:"varint,1,opt,name=alive,proto3" json:"alive,omitempty"`
  135. // @Document The time for probe request to finish.
  136. // @Type time.ms
  137. // @Restriction ReadOnlyForUser
  138. Delay int64 `protobuf:"varint,2,opt,name=delay,proto3" json:"delay,omitempty"`
  139. // @Document The last error caused this outbound failed to relay probe request
  140. // @Restriction NotMachineReadable
  141. LastErrorReason string `protobuf:"bytes,3,opt,name=last_error_reason,json=lastErrorReason,proto3" json:"last_error_reason,omitempty"`
  142. // @Document The outbound tag for this Server
  143. // @Type id.outboundTag
  144. OutboundTag string `protobuf:"bytes,4,opt,name=outbound_tag,json=outboundTag,proto3" json:"outbound_tag,omitempty"`
  145. // @Document The time this outbound is known to be alive
  146. // @Type id.outboundTag
  147. LastSeenTime int64 `protobuf:"varint,5,opt,name=last_seen_time,json=lastSeenTime,proto3" json:"last_seen_time,omitempty"`
  148. // @Document The time this outbound is tried
  149. // @Type id.outboundTag
  150. LastTryTime int64 `protobuf:"varint,6,opt,name=last_try_time,json=lastTryTime,proto3" json:"last_try_time,omitempty"`
  151. HealthPing *HealthPingMeasurementResult `protobuf:"bytes,7,opt,name=health_ping,json=healthPing,proto3" json:"health_ping,omitempty"`
  152. }
  153. func (x *OutboundStatus) Reset() {
  154. *x = OutboundStatus{}
  155. if protoimpl.UnsafeEnabled {
  156. mi := &file_app_observatory_config_proto_msgTypes[2]
  157. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  158. ms.StoreMessageInfo(mi)
  159. }
  160. }
  161. func (x *OutboundStatus) String() string {
  162. return protoimpl.X.MessageStringOf(x)
  163. }
  164. func (*OutboundStatus) ProtoMessage() {}
  165. func (x *OutboundStatus) ProtoReflect() protoreflect.Message {
  166. mi := &file_app_observatory_config_proto_msgTypes[2]
  167. if protoimpl.UnsafeEnabled && x != nil {
  168. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  169. if ms.LoadMessageInfo() == nil {
  170. ms.StoreMessageInfo(mi)
  171. }
  172. return ms
  173. }
  174. return mi.MessageOf(x)
  175. }
  176. // Deprecated: Use OutboundStatus.ProtoReflect.Descriptor instead.
  177. func (*OutboundStatus) Descriptor() ([]byte, []int) {
  178. return file_app_observatory_config_proto_rawDescGZIP(), []int{2}
  179. }
  180. func (x *OutboundStatus) GetAlive() bool {
  181. if x != nil {
  182. return x.Alive
  183. }
  184. return false
  185. }
  186. func (x *OutboundStatus) GetDelay() int64 {
  187. if x != nil {
  188. return x.Delay
  189. }
  190. return 0
  191. }
  192. func (x *OutboundStatus) GetLastErrorReason() string {
  193. if x != nil {
  194. return x.LastErrorReason
  195. }
  196. return ""
  197. }
  198. func (x *OutboundStatus) GetOutboundTag() string {
  199. if x != nil {
  200. return x.OutboundTag
  201. }
  202. return ""
  203. }
  204. func (x *OutboundStatus) GetLastSeenTime() int64 {
  205. if x != nil {
  206. return x.LastSeenTime
  207. }
  208. return 0
  209. }
  210. func (x *OutboundStatus) GetLastTryTime() int64 {
  211. if x != nil {
  212. return x.LastTryTime
  213. }
  214. return 0
  215. }
  216. func (x *OutboundStatus) GetHealthPing() *HealthPingMeasurementResult {
  217. if x != nil {
  218. return x.HealthPing
  219. }
  220. return nil
  221. }
  222. type ProbeResult struct {
  223. state protoimpl.MessageState
  224. sizeCache protoimpl.SizeCache
  225. unknownFields protoimpl.UnknownFields
  226. // @Document Whether this outbound is usable
  227. // @Restriction ReadOnlyForUser
  228. Alive bool `protobuf:"varint,1,opt,name=alive,proto3" json:"alive,omitempty"`
  229. // @Document The time for probe request to finish.
  230. // @Type time.ms
  231. // @Restriction ReadOnlyForUser
  232. Delay int64 `protobuf:"varint,2,opt,name=delay,proto3" json:"delay,omitempty"`
  233. // @Document The error caused this outbound failed to relay probe request
  234. // @Restriction NotMachineReadable
  235. LastErrorReason string `protobuf:"bytes,3,opt,name=last_error_reason,json=lastErrorReason,proto3" json:"last_error_reason,omitempty"`
  236. }
  237. func (x *ProbeResult) Reset() {
  238. *x = ProbeResult{}
  239. if protoimpl.UnsafeEnabled {
  240. mi := &file_app_observatory_config_proto_msgTypes[3]
  241. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  242. ms.StoreMessageInfo(mi)
  243. }
  244. }
  245. func (x *ProbeResult) String() string {
  246. return protoimpl.X.MessageStringOf(x)
  247. }
  248. func (*ProbeResult) ProtoMessage() {}
  249. func (x *ProbeResult) ProtoReflect() protoreflect.Message {
  250. mi := &file_app_observatory_config_proto_msgTypes[3]
  251. if protoimpl.UnsafeEnabled && x != nil {
  252. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  253. if ms.LoadMessageInfo() == nil {
  254. ms.StoreMessageInfo(mi)
  255. }
  256. return ms
  257. }
  258. return mi.MessageOf(x)
  259. }
  260. // Deprecated: Use ProbeResult.ProtoReflect.Descriptor instead.
  261. func (*ProbeResult) Descriptor() ([]byte, []int) {
  262. return file_app_observatory_config_proto_rawDescGZIP(), []int{3}
  263. }
  264. func (x *ProbeResult) GetAlive() bool {
  265. if x != nil {
  266. return x.Alive
  267. }
  268. return false
  269. }
  270. func (x *ProbeResult) GetDelay() int64 {
  271. if x != nil {
  272. return x.Delay
  273. }
  274. return 0
  275. }
  276. func (x *ProbeResult) GetLastErrorReason() string {
  277. if x != nil {
  278. return x.LastErrorReason
  279. }
  280. return ""
  281. }
  282. type Intensity struct {
  283. state protoimpl.MessageState
  284. sizeCache protoimpl.SizeCache
  285. unknownFields protoimpl.UnknownFields
  286. // @Document The time interval for a probe request in ms.
  287. // @Type time.ms
  288. ProbeInterval uint32 `protobuf:"varint,1,opt,name=probe_interval,json=probeInterval,proto3" json:"probe_interval,omitempty"`
  289. }
  290. func (x *Intensity) Reset() {
  291. *x = Intensity{}
  292. if protoimpl.UnsafeEnabled {
  293. mi := &file_app_observatory_config_proto_msgTypes[4]
  294. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  295. ms.StoreMessageInfo(mi)
  296. }
  297. }
  298. func (x *Intensity) String() string {
  299. return protoimpl.X.MessageStringOf(x)
  300. }
  301. func (*Intensity) ProtoMessage() {}
  302. func (x *Intensity) ProtoReflect() protoreflect.Message {
  303. mi := &file_app_observatory_config_proto_msgTypes[4]
  304. if protoimpl.UnsafeEnabled && x != nil {
  305. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  306. if ms.LoadMessageInfo() == nil {
  307. ms.StoreMessageInfo(mi)
  308. }
  309. return ms
  310. }
  311. return mi.MessageOf(x)
  312. }
  313. // Deprecated: Use Intensity.ProtoReflect.Descriptor instead.
  314. func (*Intensity) Descriptor() ([]byte, []int) {
  315. return file_app_observatory_config_proto_rawDescGZIP(), []int{4}
  316. }
  317. func (x *Intensity) GetProbeInterval() uint32 {
  318. if x != nil {
  319. return x.ProbeInterval
  320. }
  321. return 0
  322. }
  323. type Config struct {
  324. state protoimpl.MessageState
  325. sizeCache protoimpl.SizeCache
  326. unknownFields protoimpl.UnknownFields
  327. // @Document The selectors for outbound under observation
  328. SubjectSelector []string `protobuf:"bytes,2,rep,name=subject_selector,json=subjectSelector,proto3" json:"subject_selector,omitempty"`
  329. ProbeUrl string `protobuf:"bytes,3,opt,name=probe_url,json=probeUrl,proto3" json:"probe_url,omitempty"`
  330. ProbeInterval int64 `protobuf:"varint,4,opt,name=probe_interval,json=probeInterval,proto3" json:"probe_interval,omitempty"`
  331. }
  332. func (x *Config) Reset() {
  333. *x = Config{}
  334. if protoimpl.UnsafeEnabled {
  335. mi := &file_app_observatory_config_proto_msgTypes[5]
  336. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  337. ms.StoreMessageInfo(mi)
  338. }
  339. }
  340. func (x *Config) String() string {
  341. return protoimpl.X.MessageStringOf(x)
  342. }
  343. func (*Config) ProtoMessage() {}
  344. func (x *Config) ProtoReflect() protoreflect.Message {
  345. mi := &file_app_observatory_config_proto_msgTypes[5]
  346. if protoimpl.UnsafeEnabled && x != nil {
  347. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  348. if ms.LoadMessageInfo() == nil {
  349. ms.StoreMessageInfo(mi)
  350. }
  351. return ms
  352. }
  353. return mi.MessageOf(x)
  354. }
  355. // Deprecated: Use Config.ProtoReflect.Descriptor instead.
  356. func (*Config) Descriptor() ([]byte, []int) {
  357. return file_app_observatory_config_proto_rawDescGZIP(), []int{5}
  358. }
  359. func (x *Config) GetSubjectSelector() []string {
  360. if x != nil {
  361. return x.SubjectSelector
  362. }
  363. return nil
  364. }
  365. func (x *Config) GetProbeUrl() string {
  366. if x != nil {
  367. return x.ProbeUrl
  368. }
  369. return ""
  370. }
  371. func (x *Config) GetProbeInterval() int64 {
  372. if x != nil {
  373. return x.ProbeInterval
  374. }
  375. return 0
  376. }
  377. var File_app_observatory_config_proto protoreflect.FileDescriptor
  378. var file_app_observatory_config_proto_rawDesc = []byte{
  379. 0x0a, 0x1c, 0x61, 0x70, 0x70, 0x2f, 0x6f, 0x62, 0x73, 0x65, 0x72, 0x76, 0x61, 0x74, 0x6f, 0x72,
  380. 0x79, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1a,
  381. 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x6f,
  382. 0x62, 0x73, 0x65, 0x72, 0x76, 0x61, 0x74, 0x6f, 0x72, 0x79, 0x1a, 0x20, 0x63, 0x6f, 0x6d, 0x6d,
  383. 0x6f, 0x6e, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x65, 0x78, 0x74, 0x2f, 0x65, 0x78, 0x74, 0x65,
  384. 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x57, 0x0a, 0x11,
  385. 0x4f, 0x62, 0x73, 0x65, 0x72, 0x76, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x75, 0x6c,
  386. 0x74, 0x12, 0x42, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28,
  387. 0x0b, 0x32, 0x2a, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61,
  388. 0x70, 0x70, 0x2e, 0x6f, 0x62, 0x73, 0x65, 0x72, 0x76, 0x61, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x4f,
  389. 0x75, 0x74, 0x62, 0x6f, 0x75, 0x6e, 0x64, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73,
  390. 0x74, 0x61, 0x74, 0x75, 0x73, 0x22, 0x9f, 0x01, 0x0a, 0x1b, 0x48, 0x65, 0x61, 0x6c, 0x74, 0x68,
  391. 0x50, 0x69, 0x6e, 0x67, 0x4d, 0x65, 0x61, 0x73, 0x75, 0x72, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x52,
  392. 0x65, 0x73, 0x75, 0x6c, 0x74, 0x12, 0x10, 0x0a, 0x03, 0x61, 0x6c, 0x6c, 0x18, 0x01, 0x20, 0x01,
  393. 0x28, 0x03, 0x52, 0x03, 0x61, 0x6c, 0x6c, 0x12, 0x12, 0x0a, 0x04, 0x66, 0x61, 0x69, 0x6c, 0x18,
  394. 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x04, 0x66, 0x61, 0x69, 0x6c, 0x12, 0x1c, 0x0a, 0x09, 0x64,
  395. 0x65, 0x76, 0x69, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09,
  396. 0x64, 0x65, 0x76, 0x69, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x18, 0x0a, 0x07, 0x61, 0x76, 0x65,
  397. 0x72, 0x61, 0x67, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x07, 0x61, 0x76, 0x65, 0x72,
  398. 0x61, 0x67, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x6d, 0x61, 0x78, 0x18, 0x05, 0x20, 0x01, 0x28, 0x03,
  399. 0x52, 0x03, 0x6d, 0x61, 0x78, 0x12, 0x10, 0x0a, 0x03, 0x6d, 0x69, 0x6e, 0x18, 0x06, 0x20, 0x01,
  400. 0x28, 0x03, 0x52, 0x03, 0x6d, 0x69, 0x6e, 0x22, 0xaf, 0x02, 0x0a, 0x0e, 0x4f, 0x75, 0x74, 0x62,
  401. 0x6f, 0x75, 0x6e, 0x64, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x14, 0x0a, 0x05, 0x61, 0x6c,
  402. 0x69, 0x76, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x05, 0x61, 0x6c, 0x69, 0x76, 0x65,
  403. 0x12, 0x14, 0x0a, 0x05, 0x64, 0x65, 0x6c, 0x61, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52,
  404. 0x05, 0x64, 0x65, 0x6c, 0x61, 0x79, 0x12, 0x2a, 0x0a, 0x11, 0x6c, 0x61, 0x73, 0x74, 0x5f, 0x65,
  405. 0x72, 0x72, 0x6f, 0x72, 0x5f, 0x72, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28,
  406. 0x09, 0x52, 0x0f, 0x6c, 0x61, 0x73, 0x74, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x52, 0x65, 0x61, 0x73,
  407. 0x6f, 0x6e, 0x12, 0x21, 0x0a, 0x0c, 0x6f, 0x75, 0x74, 0x62, 0x6f, 0x75, 0x6e, 0x64, 0x5f, 0x74,
  408. 0x61, 0x67, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x6f, 0x75, 0x74, 0x62, 0x6f, 0x75,
  409. 0x6e, 0x64, 0x54, 0x61, 0x67, 0x12, 0x24, 0x0a, 0x0e, 0x6c, 0x61, 0x73, 0x74, 0x5f, 0x73, 0x65,
  410. 0x65, 0x6e, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0c, 0x6c,
  411. 0x61, 0x73, 0x74, 0x53, 0x65, 0x65, 0x6e, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x22, 0x0a, 0x0d, 0x6c,
  412. 0x61, 0x73, 0x74, 0x5f, 0x74, 0x72, 0x79, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x06, 0x20, 0x01,
  413. 0x28, 0x03, 0x52, 0x0b, 0x6c, 0x61, 0x73, 0x74, 0x54, 0x72, 0x79, 0x54, 0x69, 0x6d, 0x65, 0x12,
  414. 0x58, 0x0a, 0x0b, 0x68, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x5f, 0x70, 0x69, 0x6e, 0x67, 0x18, 0x07,
  415. 0x20, 0x01, 0x28, 0x0b, 0x32, 0x37, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72,
  416. 0x65, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x6f, 0x62, 0x73, 0x65, 0x72, 0x76, 0x61, 0x74, 0x6f, 0x72,
  417. 0x79, 0x2e, 0x48, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x50, 0x69, 0x6e, 0x67, 0x4d, 0x65, 0x61, 0x73,
  418. 0x75, 0x72, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x52, 0x0a, 0x68,
  419. 0x65, 0x61, 0x6c, 0x74, 0x68, 0x50, 0x69, 0x6e, 0x67, 0x22, 0x65, 0x0a, 0x0b, 0x50, 0x72, 0x6f,
  420. 0x62, 0x65, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x61, 0x6c, 0x69, 0x76,
  421. 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x05, 0x61, 0x6c, 0x69, 0x76, 0x65, 0x12, 0x14,
  422. 0x0a, 0x05, 0x64, 0x65, 0x6c, 0x61, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x64,
  423. 0x65, 0x6c, 0x61, 0x79, 0x12, 0x2a, 0x0a, 0x11, 0x6c, 0x61, 0x73, 0x74, 0x5f, 0x65, 0x72, 0x72,
  424. 0x6f, 0x72, 0x5f, 0x72, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52,
  425. 0x0f, 0x6c, 0x61, 0x73, 0x74, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x52, 0x65, 0x61, 0x73, 0x6f, 0x6e,
  426. 0x22, 0x32, 0x0a, 0x09, 0x49, 0x6e, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x74, 0x79, 0x12, 0x25, 0x0a,
  427. 0x0e, 0x70, 0x72, 0x6f, 0x62, 0x65, 0x5f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x76, 0x61, 0x6c, 0x18,
  428. 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0d, 0x70, 0x72, 0x6f, 0x62, 0x65, 0x49, 0x6e, 0x74, 0x65,
  429. 0x72, 0x76, 0x61, 0x6c, 0x22, 0xa1, 0x01, 0x0a, 0x06, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12,
  430. 0x29, 0x0a, 0x10, 0x73, 0x75, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x73, 0x65, 0x6c, 0x65, 0x63,
  431. 0x74, 0x6f, 0x72, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0f, 0x73, 0x75, 0x62, 0x6a, 0x65,
  432. 0x63, 0x74, 0x53, 0x65, 0x6c, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x12, 0x1b, 0x0a, 0x09, 0x70, 0x72,
  433. 0x6f, 0x62, 0x65, 0x5f, 0x75, 0x72, 0x6c, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x70,
  434. 0x72, 0x6f, 0x62, 0x65, 0x55, 0x72, 0x6c, 0x12, 0x25, 0x0a, 0x0e, 0x70, 0x72, 0x6f, 0x62, 0x65,
  435. 0x5f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x76, 0x61, 0x6c, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52,
  436. 0x0d, 0x70, 0x72, 0x6f, 0x62, 0x65, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x76, 0x61, 0x6c, 0x3a, 0x28,
  437. 0x82, 0xb5, 0x18, 0x09, 0x0a, 0x07, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x82, 0xb5, 0x18,
  438. 0x17, 0x12, 0x15, 0x62, 0x61, 0x63, 0x6b, 0x67, 0x72, 0x6f, 0x75, 0x6e, 0x64, 0x4f, 0x62, 0x73,
  439. 0x65, 0x72, 0x76, 0x61, 0x74, 0x6f, 0x72, 0x79, 0x42, 0x6f, 0x0a, 0x1e, 0x63, 0x6f, 0x6d, 0x2e,
  440. 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x6f,
  441. 0x62, 0x73, 0x65, 0x72, 0x76, 0x61, 0x74, 0x6f, 0x72, 0x79, 0x50, 0x01, 0x5a, 0x2e, 0x67, 0x69,
  442. 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x76, 0x32, 0x66, 0x6c, 0x79, 0x2f, 0x76,
  443. 0x32, 0x72, 0x61, 0x79, 0x2d, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x76, 0x35, 0x2f, 0x61, 0x70, 0x70,
  444. 0x2f, 0x6f, 0x62, 0x73, 0x65, 0x72, 0x76, 0x61, 0x74, 0x6f, 0x72, 0x79, 0xaa, 0x02, 0x1a, 0x56,
  445. 0x32, 0x52, 0x61, 0x79, 0x2e, 0x43, 0x6f, 0x72, 0x65, 0x2e, 0x41, 0x70, 0x70, 0x2e, 0x4f, 0x62,
  446. 0x73, 0x65, 0x72, 0x76, 0x61, 0x74, 0x6f, 0x72, 0x79, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f,
  447. 0x33,
  448. }
  449. var (
  450. file_app_observatory_config_proto_rawDescOnce sync.Once
  451. file_app_observatory_config_proto_rawDescData = file_app_observatory_config_proto_rawDesc
  452. )
  453. func file_app_observatory_config_proto_rawDescGZIP() []byte {
  454. file_app_observatory_config_proto_rawDescOnce.Do(func() {
  455. file_app_observatory_config_proto_rawDescData = protoimpl.X.CompressGZIP(file_app_observatory_config_proto_rawDescData)
  456. })
  457. return file_app_observatory_config_proto_rawDescData
  458. }
  459. var file_app_observatory_config_proto_msgTypes = make([]protoimpl.MessageInfo, 6)
  460. var file_app_observatory_config_proto_goTypes = []interface{}{
  461. (*ObservationResult)(nil), // 0: v2ray.core.app.observatory.ObservationResult
  462. (*HealthPingMeasurementResult)(nil), // 1: v2ray.core.app.observatory.HealthPingMeasurementResult
  463. (*OutboundStatus)(nil), // 2: v2ray.core.app.observatory.OutboundStatus
  464. (*ProbeResult)(nil), // 3: v2ray.core.app.observatory.ProbeResult
  465. (*Intensity)(nil), // 4: v2ray.core.app.observatory.Intensity
  466. (*Config)(nil), // 5: v2ray.core.app.observatory.Config
  467. }
  468. var file_app_observatory_config_proto_depIdxs = []int32{
  469. 2, // 0: v2ray.core.app.observatory.ObservationResult.status:type_name -> v2ray.core.app.observatory.OutboundStatus
  470. 1, // 1: v2ray.core.app.observatory.OutboundStatus.health_ping:type_name -> v2ray.core.app.observatory.HealthPingMeasurementResult
  471. 2, // [2:2] is the sub-list for method output_type
  472. 2, // [2:2] is the sub-list for method input_type
  473. 2, // [2:2] is the sub-list for extension type_name
  474. 2, // [2:2] is the sub-list for extension extendee
  475. 0, // [0:2] is the sub-list for field type_name
  476. }
  477. func init() { file_app_observatory_config_proto_init() }
  478. func file_app_observatory_config_proto_init() {
  479. if File_app_observatory_config_proto != nil {
  480. return
  481. }
  482. if !protoimpl.UnsafeEnabled {
  483. file_app_observatory_config_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
  484. switch v := v.(*ObservationResult); i {
  485. case 0:
  486. return &v.state
  487. case 1:
  488. return &v.sizeCache
  489. case 2:
  490. return &v.unknownFields
  491. default:
  492. return nil
  493. }
  494. }
  495. file_app_observatory_config_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
  496. switch v := v.(*HealthPingMeasurementResult); i {
  497. case 0:
  498. return &v.state
  499. case 1:
  500. return &v.sizeCache
  501. case 2:
  502. return &v.unknownFields
  503. default:
  504. return nil
  505. }
  506. }
  507. file_app_observatory_config_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
  508. switch v := v.(*OutboundStatus); i {
  509. case 0:
  510. return &v.state
  511. case 1:
  512. return &v.sizeCache
  513. case 2:
  514. return &v.unknownFields
  515. default:
  516. return nil
  517. }
  518. }
  519. file_app_observatory_config_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
  520. switch v := v.(*ProbeResult); i {
  521. case 0:
  522. return &v.state
  523. case 1:
  524. return &v.sizeCache
  525. case 2:
  526. return &v.unknownFields
  527. default:
  528. return nil
  529. }
  530. }
  531. file_app_observatory_config_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
  532. switch v := v.(*Intensity); i {
  533. case 0:
  534. return &v.state
  535. case 1:
  536. return &v.sizeCache
  537. case 2:
  538. return &v.unknownFields
  539. default:
  540. return nil
  541. }
  542. }
  543. file_app_observatory_config_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
  544. switch v := v.(*Config); i {
  545. case 0:
  546. return &v.state
  547. case 1:
  548. return &v.sizeCache
  549. case 2:
  550. return &v.unknownFields
  551. default:
  552. return nil
  553. }
  554. }
  555. }
  556. type x struct{}
  557. out := protoimpl.TypeBuilder{
  558. File: protoimpl.DescBuilder{
  559. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  560. RawDescriptor: file_app_observatory_config_proto_rawDesc,
  561. NumEnums: 0,
  562. NumMessages: 6,
  563. NumExtensions: 0,
  564. NumServices: 0,
  565. },
  566. GoTypes: file_app_observatory_config_proto_goTypes,
  567. DependencyIndexes: file_app_observatory_config_proto_depIdxs,
  568. MessageInfos: file_app_observatory_config_proto_msgTypes,
  569. }.Build()
  570. File_app_observatory_config_proto = out.File
  571. file_app_observatory_config_proto_rawDesc = nil
  572. file_app_observatory_config_proto_goTypes = nil
  573. file_app_observatory_config_proto_depIdxs = nil
  574. }