command.pb.go 11 KB

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