command.pb.go 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242
  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. unsafe "unsafe"
  10. )
  11. const (
  12. // Verify that this generated code is sufficiently up-to-date.
  13. _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
  14. // Verify that runtime/protoimpl is sufficiently up-to-date.
  15. _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
  16. )
  17. type GetOutboundStatusRequest struct {
  18. state protoimpl.MessageState `protogen:"open.v1"`
  19. Tag string `protobuf:"bytes,1,opt,name=Tag,proto3" json:"Tag,omitempty"`
  20. unknownFields protoimpl.UnknownFields
  21. sizeCache protoimpl.SizeCache
  22. }
  23. func (x *GetOutboundStatusRequest) Reset() {
  24. *x = GetOutboundStatusRequest{}
  25. mi := &file_app_observatory_command_command_proto_msgTypes[0]
  26. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  27. ms.StoreMessageInfo(mi)
  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 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 `protogen:"open.v1"`
  56. Status *observatory.ObservationResult `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"`
  57. unknownFields protoimpl.UnknownFields
  58. sizeCache protoimpl.SizeCache
  59. }
  60. func (x *GetOutboundStatusResponse) Reset() {
  61. *x = GetOutboundStatusResponse{}
  62. mi := &file_app_observatory_command_command_proto_msgTypes[1]
  63. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  64. ms.StoreMessageInfo(mi)
  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 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 `protogen:"open.v1"`
  93. unknownFields protoimpl.UnknownFields
  94. sizeCache protoimpl.SizeCache
  95. }
  96. func (x *Config) Reset() {
  97. *x = Config{}
  98. mi := &file_app_observatory_command_command_proto_msgTypes[2]
  99. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  100. ms.StoreMessageInfo(mi)
  101. }
  102. func (x *Config) String() string {
  103. return protoimpl.X.MessageStringOf(x)
  104. }
  105. func (*Config) ProtoMessage() {}
  106. func (x *Config) ProtoReflect() protoreflect.Message {
  107. mi := &file_app_observatory_command_command_proto_msgTypes[2]
  108. if x != nil {
  109. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  110. if ms.LoadMessageInfo() == nil {
  111. ms.StoreMessageInfo(mi)
  112. }
  113. return ms
  114. }
  115. return mi.MessageOf(x)
  116. }
  117. // Deprecated: Use Config.ProtoReflect.Descriptor instead.
  118. func (*Config) Descriptor() ([]byte, []int) {
  119. return file_app_observatory_command_command_proto_rawDescGZIP(), []int{2}
  120. }
  121. var File_app_observatory_command_command_proto protoreflect.FileDescriptor
  122. var file_app_observatory_command_command_proto_rawDesc = string([]byte{
  123. 0x0a, 0x25, 0x61, 0x70, 0x70, 0x2f, 0x6f, 0x62, 0x73, 0x65, 0x72, 0x76, 0x61, 0x74, 0x6f, 0x72,
  124. 0x79, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e,
  125. 0x64, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x22, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63,
  126. 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x6f, 0x62, 0x73, 0x65, 0x72, 0x76, 0x61, 0x74,
  127. 0x6f, 0x72, 0x79, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x1a, 0x20, 0x63, 0x6f, 0x6d,
  128. 0x6d, 0x6f, 0x6e, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x65, 0x78, 0x74, 0x2f, 0x65, 0x78, 0x74,
  129. 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1c, 0x61,
  130. 0x70, 0x70, 0x2f, 0x6f, 0x62, 0x73, 0x65, 0x72, 0x76, 0x61, 0x74, 0x6f, 0x72, 0x79, 0x2f, 0x63,
  131. 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x2c, 0x0a, 0x18, 0x47,
  132. 0x65, 0x74, 0x4f, 0x75, 0x74, 0x62, 0x6f, 0x75, 0x6e, 0x64, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73,
  133. 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x10, 0x0a, 0x03, 0x54, 0x61, 0x67, 0x18, 0x01,
  134. 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x54, 0x61, 0x67, 0x22, 0x62, 0x0a, 0x19, 0x47, 0x65, 0x74,
  135. 0x4f, 0x75, 0x74, 0x62, 0x6f, 0x75, 0x6e, 0x64, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x65,
  136. 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x45, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73,
  137. 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2d, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63,
  138. 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x6f, 0x62, 0x73, 0x65, 0x72, 0x76, 0x61, 0x74,
  139. 0x6f, 0x72, 0x79, 0x2e, 0x4f, 0x62, 0x73, 0x65, 0x72, 0x76, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52,
  140. 0x65, 0x73, 0x75, 0x6c, 0x74, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x22, 0x28, 0x0a,
  141. 0x06, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x3a, 0x1e, 0x82, 0xb5, 0x18, 0x1a, 0x0a, 0x0b, 0x67,
  142. 0x72, 0x70, 0x63, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x0b, 0x6f, 0x62, 0x73, 0x65,
  143. 0x72, 0x76, 0x61, 0x74, 0x6f, 0x72, 0x79, 0x32, 0xa9, 0x01, 0x0a, 0x12, 0x4f, 0x62, 0x73, 0x65,
  144. 0x72, 0x76, 0x61, 0x74, 0x6f, 0x72, 0x79, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x92,
  145. 0x01, 0x0a, 0x11, 0x47, 0x65, 0x74, 0x4f, 0x75, 0x74, 0x62, 0x6f, 0x75, 0x6e, 0x64, 0x53, 0x74,
  146. 0x61, 0x74, 0x75, 0x73, 0x12, 0x3c, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72,
  147. 0x65, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x6f, 0x62, 0x73, 0x65, 0x72, 0x76, 0x61, 0x74, 0x6f, 0x72,
  148. 0x79, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x2e, 0x47, 0x65, 0x74, 0x4f, 0x75, 0x74,
  149. 0x62, 0x6f, 0x75, 0x6e, 0x64, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65,
  150. 0x73, 0x74, 0x1a, 0x3d, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e,
  151. 0x61, 0x70, 0x70, 0x2e, 0x6f, 0x62, 0x73, 0x65, 0x72, 0x76, 0x61, 0x74, 0x6f, 0x72, 0x79, 0x2e,
  152. 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x2e, 0x47, 0x65, 0x74, 0x4f, 0x75, 0x74, 0x62, 0x6f,
  153. 0x75, 0x6e, 0x64, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73,
  154. 0x65, 0x22, 0x00, 0x42, 0x87, 0x01, 0x0a, 0x26, 0x63, 0x6f, 0x6d, 0x2e, 0x76, 0x32, 0x72, 0x61,
  155. 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x6f, 0x62, 0x73, 0x65, 0x72,
  156. 0x76, 0x61, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x50, 0x01,
  157. 0x5a, 0x36, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x76, 0x32, 0x66,
  158. 0x6c, 0x79, 0x2f, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2d, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x76, 0x35,
  159. 0x2f, 0x61, 0x70, 0x70, 0x2f, 0x6f, 0x62, 0x73, 0x65, 0x72, 0x76, 0x61, 0x74, 0x6f, 0x72, 0x79,
  160. 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0xaa, 0x02, 0x22, 0x56, 0x32, 0x52, 0x61, 0x79,
  161. 0x2e, 0x43, 0x6f, 0x72, 0x65, 0x2e, 0x41, 0x70, 0x70, 0x2e, 0x4f, 0x62, 0x73, 0x65, 0x72, 0x76,
  162. 0x61, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x62, 0x06, 0x70,
  163. 0x72, 0x6f, 0x74, 0x6f, 0x33,
  164. })
  165. var (
  166. file_app_observatory_command_command_proto_rawDescOnce sync.Once
  167. file_app_observatory_command_command_proto_rawDescData []byte
  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(unsafe.Slice(unsafe.StringData(file_app_observatory_command_command_proto_rawDesc), len(file_app_observatory_command_command_proto_rawDesc)))
  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 = []any{
  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. type x struct{}
  198. out := protoimpl.TypeBuilder{
  199. File: protoimpl.DescBuilder{
  200. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  201. RawDescriptor: unsafe.Slice(unsafe.StringData(file_app_observatory_command_command_proto_rawDesc), len(file_app_observatory_command_command_proto_rawDesc)),
  202. NumEnums: 0,
  203. NumMessages: 3,
  204. NumExtensions: 0,
  205. NumServices: 1,
  206. },
  207. GoTypes: file_app_observatory_command_command_proto_goTypes,
  208. DependencyIndexes: file_app_observatory_command_command_proto_depIdxs,
  209. MessageInfos: file_app_observatory_command_command_proto_msgTypes,
  210. }.Build()
  211. File_app_observatory_command_command_proto = out.File
  212. file_app_observatory_command_command_proto_goTypes = nil
  213. file_app_observatory_command_command_proto_depIdxs = nil
  214. }