config.pb.go 17 KB

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