command.pb.go 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // versions:
  3. // protoc-gen-go v1.27.1
  4. // protoc v3.15.6
  5. // source: app/observatory/command/command.proto
  6. package command
  7. import (
  8. observatory "github.com/v2fly/v2ray-core/v4/app/observatory"
  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. type GetOutboundStatusRequest struct {
  21. state protoimpl.MessageState
  22. sizeCache protoimpl.SizeCache
  23. unknownFields protoimpl.UnknownFields
  24. Tag string `protobuf:"bytes,1,opt,name=Tag,proto3" json:"Tag,omitempty"`
  25. }
  26. func (x *GetOutboundStatusRequest) Reset() {
  27. *x = GetOutboundStatusRequest{}
  28. if protoimpl.UnsafeEnabled {
  29. mi := &file_app_observatory_command_command_proto_msgTypes[0]
  30. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  31. ms.StoreMessageInfo(mi)
  32. }
  33. }
  34. func (x *GetOutboundStatusRequest) String() string {
  35. return protoimpl.X.MessageStringOf(x)
  36. }
  37. func (*GetOutboundStatusRequest) ProtoMessage() {}
  38. func (x *GetOutboundStatusRequest) ProtoReflect() protoreflect.Message {
  39. mi := &file_app_observatory_command_command_proto_msgTypes[0]
  40. if protoimpl.UnsafeEnabled && x != nil {
  41. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  42. if ms.LoadMessageInfo() == nil {
  43. ms.StoreMessageInfo(mi)
  44. }
  45. return ms
  46. }
  47. return mi.MessageOf(x)
  48. }
  49. // Deprecated: Use GetOutboundStatusRequest.ProtoReflect.Descriptor instead.
  50. func (*GetOutboundStatusRequest) Descriptor() ([]byte, []int) {
  51. return file_app_observatory_command_command_proto_rawDescGZIP(), []int{0}
  52. }
  53. func (x *GetOutboundStatusRequest) GetTag() string {
  54. if x != nil {
  55. return x.Tag
  56. }
  57. return ""
  58. }
  59. type GetOutboundStatusResponse struct {
  60. state protoimpl.MessageState
  61. sizeCache protoimpl.SizeCache
  62. unknownFields protoimpl.UnknownFields
  63. Status *observatory.ObservationResult `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"`
  64. }
  65. func (x *GetOutboundStatusResponse) Reset() {
  66. *x = GetOutboundStatusResponse{}
  67. if protoimpl.UnsafeEnabled {
  68. mi := &file_app_observatory_command_command_proto_msgTypes[1]
  69. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  70. ms.StoreMessageInfo(mi)
  71. }
  72. }
  73. func (x *GetOutboundStatusResponse) String() string {
  74. return protoimpl.X.MessageStringOf(x)
  75. }
  76. func (*GetOutboundStatusResponse) ProtoMessage() {}
  77. func (x *GetOutboundStatusResponse) ProtoReflect() protoreflect.Message {
  78. mi := &file_app_observatory_command_command_proto_msgTypes[1]
  79. if protoimpl.UnsafeEnabled && x != nil {
  80. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  81. if ms.LoadMessageInfo() == nil {
  82. ms.StoreMessageInfo(mi)
  83. }
  84. return ms
  85. }
  86. return mi.MessageOf(x)
  87. }
  88. // Deprecated: Use GetOutboundStatusResponse.ProtoReflect.Descriptor instead.
  89. func (*GetOutboundStatusResponse) Descriptor() ([]byte, []int) {
  90. return file_app_observatory_command_command_proto_rawDescGZIP(), []int{1}
  91. }
  92. func (x *GetOutboundStatusResponse) GetStatus() *observatory.ObservationResult {
  93. if x != nil {
  94. return x.Status
  95. }
  96. return nil
  97. }
  98. type Config struct {
  99. state protoimpl.MessageState
  100. sizeCache protoimpl.SizeCache
  101. unknownFields protoimpl.UnknownFields
  102. }
  103. func (x *Config) Reset() {
  104. *x = Config{}
  105. if protoimpl.UnsafeEnabled {
  106. mi := &file_app_observatory_command_command_proto_msgTypes[2]
  107. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  108. ms.StoreMessageInfo(mi)
  109. }
  110. }
  111. func (x *Config) String() string {
  112. return protoimpl.X.MessageStringOf(x)
  113. }
  114. func (*Config) ProtoMessage() {}
  115. func (x *Config) ProtoReflect() protoreflect.Message {
  116. mi := &file_app_observatory_command_command_proto_msgTypes[2]
  117. if protoimpl.UnsafeEnabled && x != nil {
  118. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  119. if ms.LoadMessageInfo() == nil {
  120. ms.StoreMessageInfo(mi)
  121. }
  122. return ms
  123. }
  124. return mi.MessageOf(x)
  125. }
  126. // Deprecated: Use Config.ProtoReflect.Descriptor instead.
  127. func (*Config) Descriptor() ([]byte, []int) {
  128. return file_app_observatory_command_command_proto_rawDescGZIP(), []int{2}
  129. }
  130. var File_app_observatory_command_command_proto protoreflect.FileDescriptor
  131. var file_app_observatory_command_command_proto_rawDesc = []byte{
  132. 0x0a, 0x25, 0x61, 0x70, 0x70, 0x2f, 0x6f, 0x62, 0x73, 0x65, 0x72, 0x76, 0x61, 0x74, 0x6f, 0x72,
  133. 0x79, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e,
  134. 0x64, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x22, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63,
  135. 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x6f, 0x62, 0x73, 0x65, 0x72, 0x76, 0x61, 0x74,
  136. 0x6f, 0x72, 0x79, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x1a, 0x1c, 0x61, 0x70, 0x70,
  137. 0x2f, 0x6f, 0x62, 0x73, 0x65, 0x72, 0x76, 0x61, 0x74, 0x6f, 0x72, 0x79, 0x2f, 0x63, 0x6f, 0x6e,
  138. 0x66, 0x69, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x2c, 0x0a, 0x18, 0x47, 0x65, 0x74,
  139. 0x4f, 0x75, 0x74, 0x62, 0x6f, 0x75, 0x6e, 0x64, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x65,
  140. 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x10, 0x0a, 0x03, 0x54, 0x61, 0x67, 0x18, 0x01, 0x20, 0x01,
  141. 0x28, 0x09, 0x52, 0x03, 0x54, 0x61, 0x67, 0x22, 0x62, 0x0a, 0x19, 0x47, 0x65, 0x74, 0x4f, 0x75,
  142. 0x74, 0x62, 0x6f, 0x75, 0x6e, 0x64, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, 0x73, 0x70,
  143. 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x45, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x01,
  144. 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2d, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72,
  145. 0x65, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x6f, 0x62, 0x73, 0x65, 0x72, 0x76, 0x61, 0x74, 0x6f, 0x72,
  146. 0x79, 0x2e, 0x4f, 0x62, 0x73, 0x65, 0x72, 0x76, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73,
  147. 0x75, 0x6c, 0x74, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x22, 0x08, 0x0a, 0x06, 0x43,
  148. 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x32, 0xa9, 0x01, 0x0a, 0x12, 0x4f, 0x62, 0x73, 0x65, 0x72, 0x76,
  149. 0x61, 0x74, 0x6f, 0x72, 0x79, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x92, 0x01, 0x0a,
  150. 0x11, 0x47, 0x65, 0x74, 0x4f, 0x75, 0x74, 0x62, 0x6f, 0x75, 0x6e, 0x64, 0x53, 0x74, 0x61, 0x74,
  151. 0x75, 0x73, 0x12, 0x3c, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e,
  152. 0x61, 0x70, 0x70, 0x2e, 0x6f, 0x62, 0x73, 0x65, 0x72, 0x76, 0x61, 0x74, 0x6f, 0x72, 0x79, 0x2e,
  153. 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x2e, 0x47, 0x65, 0x74, 0x4f, 0x75, 0x74, 0x62, 0x6f,
  154. 0x75, 0x6e, 0x64, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
  155. 0x1a, 0x3d, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x70,
  156. 0x70, 0x2e, 0x6f, 0x62, 0x73, 0x65, 0x72, 0x76, 0x61, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x63, 0x6f,
  157. 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x2e, 0x47, 0x65, 0x74, 0x4f, 0x75, 0x74, 0x62, 0x6f, 0x75, 0x6e,
  158. 0x64, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22,
  159. 0x00, 0x42, 0x87, 0x01, 0x0a, 0x26, 0x63, 0x6f, 0x6d, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e,
  160. 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x6f, 0x62, 0x73, 0x65, 0x72, 0x76, 0x61,
  161. 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x50, 0x01, 0x5a, 0x36,
  162. 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x76, 0x32, 0x66, 0x6c, 0x79,
  163. 0x2f, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2d, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x76, 0x34, 0x2f, 0x61,
  164. 0x70, 0x70, 0x2f, 0x6f, 0x62, 0x73, 0x65, 0x72, 0x76, 0x61, 0x74, 0x6f, 0x72, 0x79, 0x2f, 0x63,
  165. 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0xaa, 0x02, 0x22, 0x56, 0x32, 0x52, 0x61, 0x79, 0x2e, 0x43,
  166. 0x6f, 0x72, 0x65, 0x2e, 0x41, 0x70, 0x70, 0x2e, 0x4f, 0x62, 0x73, 0x65, 0x72, 0x76, 0x61, 0x74,
  167. 0x6f, 0x72, 0x79, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x62, 0x06, 0x70, 0x72, 0x6f,
  168. 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. }