command.pb.go 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283
  1. package command
  2. import (
  3. observatory "github.com/v2fly/v2ray-core/v5/app/observatory"
  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 GetOutboundStatusRequest struct {
  16. state protoimpl.MessageState
  17. sizeCache protoimpl.SizeCache
  18. unknownFields protoimpl.UnknownFields
  19. Tag string `protobuf:"bytes,1,opt,name=Tag,proto3" json:"Tag,omitempty"`
  20. }
  21. func (x *GetOutboundStatusRequest) Reset() {
  22. *x = GetOutboundStatusRequest{}
  23. if protoimpl.UnsafeEnabled {
  24. mi := &file_app_observatory_command_command_proto_msgTypes[0]
  25. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  26. ms.StoreMessageInfo(mi)
  27. }
  28. }
  29. func (x *GetOutboundStatusRequest) String() string {
  30. return protoimpl.X.MessageStringOf(x)
  31. }
  32. func (*GetOutboundStatusRequest) ProtoMessage() {}
  33. func (x *GetOutboundStatusRequest) ProtoReflect() protoreflect.Message {
  34. mi := &file_app_observatory_command_command_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 GetOutboundStatusRequest.ProtoReflect.Descriptor instead.
  45. func (*GetOutboundStatusRequest) Descriptor() ([]byte, []int) {
  46. return file_app_observatory_command_command_proto_rawDescGZIP(), []int{0}
  47. }
  48. func (x *GetOutboundStatusRequest) GetTag() string {
  49. if x != nil {
  50. return x.Tag
  51. }
  52. return ""
  53. }
  54. type GetOutboundStatusResponse struct {
  55. state protoimpl.MessageState
  56. sizeCache protoimpl.SizeCache
  57. unknownFields protoimpl.UnknownFields
  58. Status *observatory.ObservationResult `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"`
  59. }
  60. func (x *GetOutboundStatusResponse) Reset() {
  61. *x = GetOutboundStatusResponse{}
  62. if protoimpl.UnsafeEnabled {
  63. mi := &file_app_observatory_command_command_proto_msgTypes[1]
  64. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  65. ms.StoreMessageInfo(mi)
  66. }
  67. }
  68. func (x *GetOutboundStatusResponse) String() string {
  69. return protoimpl.X.MessageStringOf(x)
  70. }
  71. func (*GetOutboundStatusResponse) ProtoMessage() {}
  72. func (x *GetOutboundStatusResponse) ProtoReflect() protoreflect.Message {
  73. mi := &file_app_observatory_command_command_proto_msgTypes[1]
  74. if protoimpl.UnsafeEnabled && x != nil {
  75. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  76. if ms.LoadMessageInfo() == nil {
  77. ms.StoreMessageInfo(mi)
  78. }
  79. return ms
  80. }
  81. return mi.MessageOf(x)
  82. }
  83. // Deprecated: Use GetOutboundStatusResponse.ProtoReflect.Descriptor instead.
  84. func (*GetOutboundStatusResponse) Descriptor() ([]byte, []int) {
  85. return file_app_observatory_command_command_proto_rawDescGZIP(), []int{1}
  86. }
  87. func (x *GetOutboundStatusResponse) GetStatus() *observatory.ObservationResult {
  88. if x != nil {
  89. return x.Status
  90. }
  91. return nil
  92. }
  93. type Config struct {
  94. state protoimpl.MessageState
  95. sizeCache protoimpl.SizeCache
  96. unknownFields protoimpl.UnknownFields
  97. }
  98. func (x *Config) Reset() {
  99. *x = Config{}
  100. if protoimpl.UnsafeEnabled {
  101. mi := &file_app_observatory_command_command_proto_msgTypes[2]
  102. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  103. ms.StoreMessageInfo(mi)
  104. }
  105. }
  106. func (x *Config) String() string {
  107. return protoimpl.X.MessageStringOf(x)
  108. }
  109. func (*Config) ProtoMessage() {}
  110. func (x *Config) ProtoReflect() protoreflect.Message {
  111. mi := &file_app_observatory_command_command_proto_msgTypes[2]
  112. if protoimpl.UnsafeEnabled && x != nil {
  113. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  114. if ms.LoadMessageInfo() == nil {
  115. ms.StoreMessageInfo(mi)
  116. }
  117. return ms
  118. }
  119. return mi.MessageOf(x)
  120. }
  121. // Deprecated: Use Config.ProtoReflect.Descriptor instead.
  122. func (*Config) Descriptor() ([]byte, []int) {
  123. return file_app_observatory_command_command_proto_rawDescGZIP(), []int{2}
  124. }
  125. var File_app_observatory_command_command_proto protoreflect.FileDescriptor
  126. var file_app_observatory_command_command_proto_rawDesc = []byte{
  127. 0x0a, 0x25, 0x61, 0x70, 0x70, 0x2f, 0x6f, 0x62, 0x73, 0x65, 0x72, 0x76, 0x61, 0x74, 0x6f, 0x72,
  128. 0x79, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e,
  129. 0x64, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x22, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63,
  130. 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x6f, 0x62, 0x73, 0x65, 0x72, 0x76, 0x61, 0x74,
  131. 0x6f, 0x72, 0x79, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x1a, 0x1c, 0x61, 0x70, 0x70,
  132. 0x2f, 0x6f, 0x62, 0x73, 0x65, 0x72, 0x76, 0x61, 0x74, 0x6f, 0x72, 0x79, 0x2f, 0x63, 0x6f, 0x6e,
  133. 0x66, 0x69, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x2c, 0x0a, 0x18, 0x47, 0x65, 0x74,
  134. 0x4f, 0x75, 0x74, 0x62, 0x6f, 0x75, 0x6e, 0x64, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x65,
  135. 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x10, 0x0a, 0x03, 0x54, 0x61, 0x67, 0x18, 0x01, 0x20, 0x01,
  136. 0x28, 0x09, 0x52, 0x03, 0x54, 0x61, 0x67, 0x22, 0x62, 0x0a, 0x19, 0x47, 0x65, 0x74, 0x4f, 0x75,
  137. 0x74, 0x62, 0x6f, 0x75, 0x6e, 0x64, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, 0x73, 0x70,
  138. 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x45, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x01,
  139. 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2d, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72,
  140. 0x65, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x6f, 0x62, 0x73, 0x65, 0x72, 0x76, 0x61, 0x74, 0x6f, 0x72,
  141. 0x79, 0x2e, 0x4f, 0x62, 0x73, 0x65, 0x72, 0x76, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73,
  142. 0x75, 0x6c, 0x74, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x22, 0x08, 0x0a, 0x06, 0x43,
  143. 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x32, 0xa9, 0x01, 0x0a, 0x12, 0x4f, 0x62, 0x73, 0x65, 0x72, 0x76,
  144. 0x61, 0x74, 0x6f, 0x72, 0x79, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x92, 0x01, 0x0a,
  145. 0x11, 0x47, 0x65, 0x74, 0x4f, 0x75, 0x74, 0x62, 0x6f, 0x75, 0x6e, 0x64, 0x53, 0x74, 0x61, 0x74,
  146. 0x75, 0x73, 0x12, 0x3c, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e,
  147. 0x61, 0x70, 0x70, 0x2e, 0x6f, 0x62, 0x73, 0x65, 0x72, 0x76, 0x61, 0x74, 0x6f, 0x72, 0x79, 0x2e,
  148. 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x2e, 0x47, 0x65, 0x74, 0x4f, 0x75, 0x74, 0x62, 0x6f,
  149. 0x75, 0x6e, 0x64, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
  150. 0x1a, 0x3d, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x70,
  151. 0x70, 0x2e, 0x6f, 0x62, 0x73, 0x65, 0x72, 0x76, 0x61, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x63, 0x6f,
  152. 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x2e, 0x47, 0x65, 0x74, 0x4f, 0x75, 0x74, 0x62, 0x6f, 0x75, 0x6e,
  153. 0x64, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22,
  154. 0x00, 0x42, 0x87, 0x01, 0x0a, 0x26, 0x63, 0x6f, 0x6d, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e,
  155. 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x6f, 0x62, 0x73, 0x65, 0x72, 0x76, 0x61,
  156. 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x50, 0x01, 0x5a, 0x36,
  157. 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x76, 0x32, 0x66, 0x6c, 0x79,
  158. 0x2f, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2d, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x76, 0x35, 0x2f, 0x61,
  159. 0x70, 0x70, 0x2f, 0x6f, 0x62, 0x73, 0x65, 0x72, 0x76, 0x61, 0x74, 0x6f, 0x72, 0x79, 0x2f, 0x63,
  160. 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0xaa, 0x02, 0x22, 0x56, 0x32, 0x52, 0x61, 0x79, 0x2e, 0x43,
  161. 0x6f, 0x72, 0x65, 0x2e, 0x41, 0x70, 0x70, 0x2e, 0x4f, 0x62, 0x73, 0x65, 0x72, 0x76, 0x61, 0x74,
  162. 0x6f, 0x72, 0x79, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x62, 0x06, 0x70, 0x72, 0x6f,
  163. 0x74, 0x6f, 0x33,
  164. }
  165. var (
  166. file_app_observatory_command_command_proto_rawDescOnce sync.Once
  167. file_app_observatory_command_command_proto_rawDescData = file_app_observatory_command_command_proto_rawDesc
  168. )
  169. func file_app_observatory_command_command_proto_rawDescGZIP() []byte {
  170. file_app_observatory_command_command_proto_rawDescOnce.Do(func() {
  171. file_app_observatory_command_command_proto_rawDescData = protoimpl.X.CompressGZIP(file_app_observatory_command_command_proto_rawDescData)
  172. })
  173. return file_app_observatory_command_command_proto_rawDescData
  174. }
  175. var file_app_observatory_command_command_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
  176. var file_app_observatory_command_command_proto_goTypes = []interface{}{
  177. (*GetOutboundStatusRequest)(nil), // 0: v2ray.core.app.observatory.command.GetOutboundStatusRequest
  178. (*GetOutboundStatusResponse)(nil), // 1: v2ray.core.app.observatory.command.GetOutboundStatusResponse
  179. (*Config)(nil), // 2: v2ray.core.app.observatory.command.Config
  180. (*observatory.ObservationResult)(nil), // 3: v2ray.core.app.observatory.ObservationResult
  181. }
  182. var file_app_observatory_command_command_proto_depIdxs = []int32{
  183. 3, // 0: v2ray.core.app.observatory.command.GetOutboundStatusResponse.status:type_name -> v2ray.core.app.observatory.ObservationResult
  184. 0, // 1: v2ray.core.app.observatory.command.ObservatoryService.GetOutboundStatus:input_type -> v2ray.core.app.observatory.command.GetOutboundStatusRequest
  185. 1, // 2: v2ray.core.app.observatory.command.ObservatoryService.GetOutboundStatus:output_type -> v2ray.core.app.observatory.command.GetOutboundStatusResponse
  186. 2, // [2:3] is the sub-list for method output_type
  187. 1, // [1:2] is the sub-list for method input_type
  188. 1, // [1:1] is the sub-list for extension type_name
  189. 1, // [1:1] is the sub-list for extension extendee
  190. 0, // [0:1] is the sub-list for field type_name
  191. }
  192. func init() { file_app_observatory_command_command_proto_init() }
  193. func file_app_observatory_command_command_proto_init() {
  194. if File_app_observatory_command_command_proto != nil {
  195. return
  196. }
  197. if !protoimpl.UnsafeEnabled {
  198. file_app_observatory_command_command_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
  199. switch v := v.(*GetOutboundStatusRequest); i {
  200. case 0:
  201. return &v.state
  202. case 1:
  203. return &v.sizeCache
  204. case 2:
  205. return &v.unknownFields
  206. default:
  207. return nil
  208. }
  209. }
  210. file_app_observatory_command_command_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
  211. switch v := v.(*GetOutboundStatusResponse); i {
  212. case 0:
  213. return &v.state
  214. case 1:
  215. return &v.sizeCache
  216. case 2:
  217. return &v.unknownFields
  218. default:
  219. return nil
  220. }
  221. }
  222. file_app_observatory_command_command_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
  223. switch v := v.(*Config); i {
  224. case 0:
  225. return &v.state
  226. case 1:
  227. return &v.sizeCache
  228. case 2:
  229. return &v.unknownFields
  230. default:
  231. return nil
  232. }
  233. }
  234. }
  235. type x struct{}
  236. out := protoimpl.TypeBuilder{
  237. File: protoimpl.DescBuilder{
  238. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  239. RawDescriptor: file_app_observatory_command_command_proto_rawDesc,
  240. NumEnums: 0,
  241. NumMessages: 3,
  242. NumExtensions: 0,
  243. NumServices: 1,
  244. },
  245. GoTypes: file_app_observatory_command_command_proto_goTypes,
  246. DependencyIndexes: file_app_observatory_command_command_proto_depIdxs,
  247. MessageInfos: file_app_observatory_command_command_proto_msgTypes,
  248. }.Build()
  249. File_app_observatory_command_command_proto = out.File
  250. file_app_observatory_command_command_proto_rawDesc = nil
  251. file_app_observatory_command_command_proto_goTypes = nil
  252. file_app_observatory_command_command_proto_depIdxs = nil
  253. }