config.pb.go 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // versions:
  3. // protoc-gen-go v1.25.0
  4. // protoc v3.13.0
  5. // source: app/observatory/config.proto
  6. package observatory
  7. import (
  8. proto "github.com/golang/protobuf/proto"
  9. protoreflect "google.golang.org/protobuf/reflect/protoreflect"
  10. protoimpl "google.golang.org/protobuf/runtime/protoimpl"
  11. reflect "reflect"
  12. sync "sync"
  13. )
  14. const (
  15. // Verify that this generated code is sufficiently up-to-date.
  16. _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
  17. // Verify that runtime/protoimpl is sufficiently up-to-date.
  18. _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
  19. )
  20. // This is a compile-time assertion that a sufficiently up-to-date version
  21. // of the legacy proto package is being used.
  22. const _ = proto.ProtoPackageIsVersion4
  23. type OutboundStatus struct {
  24. state protoimpl.MessageState
  25. sizeCache protoimpl.SizeCache
  26. unknownFields protoimpl.UnknownFields
  27. // @Document Whether this outbound is usable
  28. //@Restriction ReadOnlyForUser
  29. Alive bool `protobuf:"varint,1,opt,name=alive,proto3" json:"alive,omitempty"`
  30. // @Document The time for probe request to finish.
  31. //@Type time.ms
  32. //@Restriction ReadOnlyForUser
  33. Delay uint32 `protobuf:"varint,2,opt,name=delay,proto3" json:"delay,omitempty"`
  34. // @Document The last error caused this outbound failed to relay probe request
  35. //@Restriction NotMachineReadable
  36. LastErrorReason string `protobuf:"bytes,3,opt,name=last_error_reason,json=lastErrorReason,proto3" json:"last_error_reason,omitempty"`
  37. // @Document The outbound tag for this Server
  38. //@Type id.outboundTag
  39. OutboundTag string `protobuf:"bytes,4,opt,name=outbound_tag,json=outboundTag,proto3" json:"outbound_tag,omitempty"`
  40. }
  41. func (x *OutboundStatus) Reset() {
  42. *x = OutboundStatus{}
  43. if protoimpl.UnsafeEnabled {
  44. mi := &file_app_observatory_config_proto_msgTypes[0]
  45. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  46. ms.StoreMessageInfo(mi)
  47. }
  48. }
  49. func (x *OutboundStatus) String() string {
  50. return protoimpl.X.MessageStringOf(x)
  51. }
  52. func (*OutboundStatus) ProtoMessage() {}
  53. func (x *OutboundStatus) ProtoReflect() protoreflect.Message {
  54. mi := &file_app_observatory_config_proto_msgTypes[0]
  55. if protoimpl.UnsafeEnabled && x != nil {
  56. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  57. if ms.LoadMessageInfo() == nil {
  58. ms.StoreMessageInfo(mi)
  59. }
  60. return ms
  61. }
  62. return mi.MessageOf(x)
  63. }
  64. // Deprecated: Use OutboundStatus.ProtoReflect.Descriptor instead.
  65. func (*OutboundStatus) Descriptor() ([]byte, []int) {
  66. return file_app_observatory_config_proto_rawDescGZIP(), []int{0}
  67. }
  68. func (x *OutboundStatus) GetAlive() bool {
  69. if x != nil {
  70. return x.Alive
  71. }
  72. return false
  73. }
  74. func (x *OutboundStatus) GetDelay() uint32 {
  75. if x != nil {
  76. return x.Delay
  77. }
  78. return 0
  79. }
  80. func (x *OutboundStatus) GetLastErrorReason() string {
  81. if x != nil {
  82. return x.LastErrorReason
  83. }
  84. return ""
  85. }
  86. func (x *OutboundStatus) GetOutboundTag() string {
  87. if x != nil {
  88. return x.OutboundTag
  89. }
  90. return ""
  91. }
  92. type Intensity struct {
  93. state protoimpl.MessageState
  94. sizeCache protoimpl.SizeCache
  95. unknownFields protoimpl.UnknownFields
  96. // @Document The time interval for a probe request in ms.
  97. //@Type time.ms
  98. ProbeInterval uint32 `protobuf:"varint,1,opt,name=probe_interval,json=probeInterval,proto3" json:"probe_interval,omitempty"`
  99. }
  100. func (x *Intensity) Reset() {
  101. *x = Intensity{}
  102. if protoimpl.UnsafeEnabled {
  103. mi := &file_app_observatory_config_proto_msgTypes[1]
  104. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  105. ms.StoreMessageInfo(mi)
  106. }
  107. }
  108. func (x *Intensity) String() string {
  109. return protoimpl.X.MessageStringOf(x)
  110. }
  111. func (*Intensity) ProtoMessage() {}
  112. func (x *Intensity) ProtoReflect() protoreflect.Message {
  113. mi := &file_app_observatory_config_proto_msgTypes[1]
  114. if protoimpl.UnsafeEnabled && x != nil {
  115. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  116. if ms.LoadMessageInfo() == nil {
  117. ms.StoreMessageInfo(mi)
  118. }
  119. return ms
  120. }
  121. return mi.MessageOf(x)
  122. }
  123. // Deprecated: Use Intensity.ProtoReflect.Descriptor instead.
  124. func (*Intensity) Descriptor() ([]byte, []int) {
  125. return file_app_observatory_config_proto_rawDescGZIP(), []int{1}
  126. }
  127. func (x *Intensity) GetProbeInterval() uint32 {
  128. if x != nil {
  129. return x.ProbeInterval
  130. }
  131. return 0
  132. }
  133. type Config struct {
  134. state protoimpl.MessageState
  135. sizeCache protoimpl.SizeCache
  136. unknownFields protoimpl.UnknownFields
  137. // @Document The selectors for outbound under observation
  138. SubjectSelector []string `protobuf:"bytes,2,rep,name=subject_selector,json=subjectSelector,proto3" json:"subject_selector,omitempty"`
  139. }
  140. func (x *Config) Reset() {
  141. *x = Config{}
  142. if protoimpl.UnsafeEnabled {
  143. mi := &file_app_observatory_config_proto_msgTypes[2]
  144. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  145. ms.StoreMessageInfo(mi)
  146. }
  147. }
  148. func (x *Config) String() string {
  149. return protoimpl.X.MessageStringOf(x)
  150. }
  151. func (*Config) ProtoMessage() {}
  152. func (x *Config) ProtoReflect() protoreflect.Message {
  153. mi := &file_app_observatory_config_proto_msgTypes[2]
  154. if protoimpl.UnsafeEnabled && x != nil {
  155. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  156. if ms.LoadMessageInfo() == nil {
  157. ms.StoreMessageInfo(mi)
  158. }
  159. return ms
  160. }
  161. return mi.MessageOf(x)
  162. }
  163. // Deprecated: Use Config.ProtoReflect.Descriptor instead.
  164. func (*Config) Descriptor() ([]byte, []int) {
  165. return file_app_observatory_config_proto_rawDescGZIP(), []int{2}
  166. }
  167. func (x *Config) GetSubjectSelector() []string {
  168. if x != nil {
  169. return x.SubjectSelector
  170. }
  171. return nil
  172. }
  173. var File_app_observatory_config_proto protoreflect.FileDescriptor
  174. var file_app_observatory_config_proto_rawDesc = []byte{
  175. 0x0a, 0x1c, 0x61, 0x70, 0x70, 0x2f, 0x6f, 0x62, 0x73, 0x65, 0x72, 0x76, 0x61, 0x74, 0x6f, 0x72,
  176. 0x79, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1a,
  177. 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x6f,
  178. 0x62, 0x73, 0x65, 0x72, 0x76, 0x61, 0x74, 0x6f, 0x72, 0x79, 0x22, 0x8b, 0x01, 0x0a, 0x0e, 0x4f,
  179. 0x75, 0x74, 0x62, 0x6f, 0x75, 0x6e, 0x64, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x14, 0x0a,
  180. 0x05, 0x61, 0x6c, 0x69, 0x76, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x05, 0x61, 0x6c,
  181. 0x69, 0x76, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x64, 0x65, 0x6c, 0x61, 0x79, 0x18, 0x02, 0x20, 0x01,
  182. 0x28, 0x0d, 0x52, 0x05, 0x64, 0x65, 0x6c, 0x61, 0x79, 0x12, 0x2a, 0x0a, 0x11, 0x6c, 0x61, 0x73,
  183. 0x74, 0x5f, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x5f, 0x72, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x18, 0x03,
  184. 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, 0x6c, 0x61, 0x73, 0x74, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x52,
  185. 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x12, 0x21, 0x0a, 0x0c, 0x6f, 0x75, 0x74, 0x62, 0x6f, 0x75, 0x6e,
  186. 0x64, 0x5f, 0x74, 0x61, 0x67, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x6f, 0x75, 0x74,
  187. 0x62, 0x6f, 0x75, 0x6e, 0x64, 0x54, 0x61, 0x67, 0x22, 0x32, 0x0a, 0x09, 0x49, 0x6e, 0x74, 0x65,
  188. 0x6e, 0x73, 0x69, 0x74, 0x79, 0x12, 0x25, 0x0a, 0x0e, 0x70, 0x72, 0x6f, 0x62, 0x65, 0x5f, 0x69,
  189. 0x6e, 0x74, 0x65, 0x72, 0x76, 0x61, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0d, 0x70,
  190. 0x72, 0x6f, 0x62, 0x65, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x76, 0x61, 0x6c, 0x22, 0x33, 0x0a, 0x06,
  191. 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x29, 0x0a, 0x10, 0x73, 0x75, 0x62, 0x6a, 0x65, 0x63,
  192. 0x74, 0x5f, 0x73, 0x65, 0x6c, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09,
  193. 0x52, 0x0f, 0x73, 0x75, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x53, 0x65, 0x6c, 0x65, 0x63, 0x74, 0x6f,
  194. 0x72, 0x42, 0x6f, 0x0a, 0x1e, 0x63, 0x6f, 0x6d, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63,
  195. 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x6f, 0x62, 0x73, 0x65, 0x72, 0x76, 0x61, 0x74,
  196. 0x6f, 0x72, 0x79, 0x50, 0x01, 0x5a, 0x2e, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f,
  197. 0x6d, 0x2f, 0x76, 0x32, 0x66, 0x6c, 0x79, 0x2f, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2d, 0x63, 0x6f,
  198. 0x72, 0x65, 0x2f, 0x76, 0x34, 0x2f, 0x61, 0x70, 0x70, 0x2f, 0x6f, 0x62, 0x73, 0x65, 0x72, 0x76,
  199. 0x61, 0x74, 0x6f, 0x72, 0x79, 0xaa, 0x02, 0x1a, 0x56, 0x32, 0x52, 0x61, 0x79, 0x2e, 0x43, 0x6f,
  200. 0x72, 0x65, 0x2e, 0x41, 0x70, 0x70, 0x2e, 0x4f, 0x62, 0x73, 0x65, 0x72, 0x76, 0x61, 0x74, 0x6f,
  201. 0x72, 0x79, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
  202. }
  203. var (
  204. file_app_observatory_config_proto_rawDescOnce sync.Once
  205. file_app_observatory_config_proto_rawDescData = file_app_observatory_config_proto_rawDesc
  206. )
  207. func file_app_observatory_config_proto_rawDescGZIP() []byte {
  208. file_app_observatory_config_proto_rawDescOnce.Do(func() {
  209. file_app_observatory_config_proto_rawDescData = protoimpl.X.CompressGZIP(file_app_observatory_config_proto_rawDescData)
  210. })
  211. return file_app_observatory_config_proto_rawDescData
  212. }
  213. var file_app_observatory_config_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
  214. var file_app_observatory_config_proto_goTypes = []interface{}{
  215. (*OutboundStatus)(nil), // 0: v2ray.core.app.observatory.OutboundStatus
  216. (*Intensity)(nil), // 1: v2ray.core.app.observatory.Intensity
  217. (*Config)(nil), // 2: v2ray.core.app.observatory.Config
  218. }
  219. var file_app_observatory_config_proto_depIdxs = []int32{
  220. 0, // [0:0] is the sub-list for method output_type
  221. 0, // [0:0] is the sub-list for method input_type
  222. 0, // [0:0] is the sub-list for extension type_name
  223. 0, // [0:0] is the sub-list for extension extendee
  224. 0, // [0:0] is the sub-list for field type_name
  225. }
  226. func init() { file_app_observatory_config_proto_init() }
  227. func file_app_observatory_config_proto_init() {
  228. if File_app_observatory_config_proto != nil {
  229. return
  230. }
  231. if !protoimpl.UnsafeEnabled {
  232. file_app_observatory_config_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
  233. switch v := v.(*OutboundStatus); i {
  234. case 0:
  235. return &v.state
  236. case 1:
  237. return &v.sizeCache
  238. case 2:
  239. return &v.unknownFields
  240. default:
  241. return nil
  242. }
  243. }
  244. file_app_observatory_config_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
  245. switch v := v.(*Intensity); i {
  246. case 0:
  247. return &v.state
  248. case 1:
  249. return &v.sizeCache
  250. case 2:
  251. return &v.unknownFields
  252. default:
  253. return nil
  254. }
  255. }
  256. file_app_observatory_config_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
  257. switch v := v.(*Config); i {
  258. case 0:
  259. return &v.state
  260. case 1:
  261. return &v.sizeCache
  262. case 2:
  263. return &v.unknownFields
  264. default:
  265. return nil
  266. }
  267. }
  268. }
  269. type x struct{}
  270. out := protoimpl.TypeBuilder{
  271. File: protoimpl.DescBuilder{
  272. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  273. RawDescriptor: file_app_observatory_config_proto_rawDesc,
  274. NumEnums: 0,
  275. NumMessages: 3,
  276. NumExtensions: 0,
  277. NumServices: 0,
  278. },
  279. GoTypes: file_app_observatory_config_proto_goTypes,
  280. DependencyIndexes: file_app_observatory_config_proto_depIdxs,
  281. MessageInfos: file_app_observatory_config_proto_msgTypes,
  282. }.Build()
  283. File_app_observatory_config_proto = out.File
  284. file_app_observatory_config_proto_rawDesc = nil
  285. file_app_observatory_config_proto_goTypes = nil
  286. file_app_observatory_config_proto_depIdxs = nil
  287. }