command.pb.go 12 KB

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