command.pb.go 11 KB

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