command.pb.go 7.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // versions:
  3. // protoc-gen-go v1.36.11
  4. // protoc v6.33.5
  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. unsafe "unsafe"
  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. type GetOutboundStatusRequest struct {
  22. state protoimpl.MessageState `protogen:"open.v1"`
  23. unknownFields protoimpl.UnknownFields
  24. sizeCache protoimpl.SizeCache
  25. }
  26. func (x *GetOutboundStatusRequest) Reset() {
  27. *x = GetOutboundStatusRequest{}
  28. mi := &file_app_observatory_command_command_proto_msgTypes[0]
  29. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  30. ms.StoreMessageInfo(mi)
  31. }
  32. func (x *GetOutboundStatusRequest) String() string {
  33. return protoimpl.X.MessageStringOf(x)
  34. }
  35. func (*GetOutboundStatusRequest) ProtoMessage() {}
  36. func (x *GetOutboundStatusRequest) ProtoReflect() protoreflect.Message {
  37. mi := &file_app_observatory_command_command_proto_msgTypes[0]
  38. if x != nil {
  39. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  40. if ms.LoadMessageInfo() == nil {
  41. ms.StoreMessageInfo(mi)
  42. }
  43. return ms
  44. }
  45. return mi.MessageOf(x)
  46. }
  47. // Deprecated: Use GetOutboundStatusRequest.ProtoReflect.Descriptor instead.
  48. func (*GetOutboundStatusRequest) Descriptor() ([]byte, []int) {
  49. return file_app_observatory_command_command_proto_rawDescGZIP(), []int{0}
  50. }
  51. type GetOutboundStatusResponse struct {
  52. state protoimpl.MessageState `protogen:"open.v1"`
  53. Status *observatory.ObservationResult `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"`
  54. unknownFields protoimpl.UnknownFields
  55. sizeCache protoimpl.SizeCache
  56. }
  57. func (x *GetOutboundStatusResponse) Reset() {
  58. *x = GetOutboundStatusResponse{}
  59. mi := &file_app_observatory_command_command_proto_msgTypes[1]
  60. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  61. ms.StoreMessageInfo(mi)
  62. }
  63. func (x *GetOutboundStatusResponse) String() string {
  64. return protoimpl.X.MessageStringOf(x)
  65. }
  66. func (*GetOutboundStatusResponse) ProtoMessage() {}
  67. func (x *GetOutboundStatusResponse) ProtoReflect() protoreflect.Message {
  68. mi := &file_app_observatory_command_command_proto_msgTypes[1]
  69. if x != nil {
  70. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  71. if ms.LoadMessageInfo() == nil {
  72. ms.StoreMessageInfo(mi)
  73. }
  74. return ms
  75. }
  76. return mi.MessageOf(x)
  77. }
  78. // Deprecated: Use GetOutboundStatusResponse.ProtoReflect.Descriptor instead.
  79. func (*GetOutboundStatusResponse) Descriptor() ([]byte, []int) {
  80. return file_app_observatory_command_command_proto_rawDescGZIP(), []int{1}
  81. }
  82. func (x *GetOutboundStatusResponse) GetStatus() *observatory.ObservationResult {
  83. if x != nil {
  84. return x.Status
  85. }
  86. return nil
  87. }
  88. type Config struct {
  89. state protoimpl.MessageState `protogen:"open.v1"`
  90. unknownFields protoimpl.UnknownFields
  91. sizeCache protoimpl.SizeCache
  92. }
  93. func (x *Config) Reset() {
  94. *x = Config{}
  95. mi := &file_app_observatory_command_command_proto_msgTypes[2]
  96. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  97. ms.StoreMessageInfo(mi)
  98. }
  99. func (x *Config) String() string {
  100. return protoimpl.X.MessageStringOf(x)
  101. }
  102. func (*Config) ProtoMessage() {}
  103. func (x *Config) ProtoReflect() protoreflect.Message {
  104. mi := &file_app_observatory_command_command_proto_msgTypes[2]
  105. if x != nil {
  106. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  107. if ms.LoadMessageInfo() == nil {
  108. ms.StoreMessageInfo(mi)
  109. }
  110. return ms
  111. }
  112. return mi.MessageOf(x)
  113. }
  114. // Deprecated: Use Config.ProtoReflect.Descriptor instead.
  115. func (*Config) Descriptor() ([]byte, []int) {
  116. return file_app_observatory_command_command_proto_rawDescGZIP(), []int{2}
  117. }
  118. var File_app_observatory_command_command_proto protoreflect.FileDescriptor
  119. const file_app_observatory_command_command_proto_rawDesc = "" +
  120. "\n" +
  121. "%app/observatory/command/command.proto\x12!xray.core.app.observatory.command\x1a\x1capp/observatory/config.proto\"\x1a\n" +
  122. "\x18GetOutboundStatusRequest\"a\n" +
  123. "\x19GetOutboundStatusResponse\x12D\n" +
  124. "\x06status\x18\x01 \x01(\v2,.xray.core.app.observatory.ObservationResultR\x06status\"\b\n" +
  125. "\x06Config2\xa7\x01\n" +
  126. "\x12ObservatoryService\x12\x90\x01\n" +
  127. "\x11GetOutboundStatus\x12;.xray.core.app.observatory.command.GetOutboundStatusRequest\x1a<.xray.core.app.observatory.command.GetOutboundStatusResponse\"\x00B\x80\x01\n" +
  128. "%com.xray.core.app.observatory.commandP\x01Z1github.com/xtls/xray-core/app/observatory/command\xaa\x02!Xray.Core.App.Observatory.Commandb\x06proto3"
  129. var (
  130. file_app_observatory_command_command_proto_rawDescOnce sync.Once
  131. file_app_observatory_command_command_proto_rawDescData []byte
  132. )
  133. func file_app_observatory_command_command_proto_rawDescGZIP() []byte {
  134. file_app_observatory_command_command_proto_rawDescOnce.Do(func() {
  135. 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)))
  136. })
  137. return file_app_observatory_command_command_proto_rawDescData
  138. }
  139. var file_app_observatory_command_command_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
  140. var file_app_observatory_command_command_proto_goTypes = []any{
  141. (*GetOutboundStatusRequest)(nil), // 0: xray.core.app.observatory.command.GetOutboundStatusRequest
  142. (*GetOutboundStatusResponse)(nil), // 1: xray.core.app.observatory.command.GetOutboundStatusResponse
  143. (*Config)(nil), // 2: xray.core.app.observatory.command.Config
  144. (*observatory.ObservationResult)(nil), // 3: xray.core.app.observatory.ObservationResult
  145. }
  146. var file_app_observatory_command_command_proto_depIdxs = []int32{
  147. 3, // 0: xray.core.app.observatory.command.GetOutboundStatusResponse.status:type_name -> xray.core.app.observatory.ObservationResult
  148. 0, // 1: xray.core.app.observatory.command.ObservatoryService.GetOutboundStatus:input_type -> xray.core.app.observatory.command.GetOutboundStatusRequest
  149. 1, // 2: xray.core.app.observatory.command.ObservatoryService.GetOutboundStatus:output_type -> xray.core.app.observatory.command.GetOutboundStatusResponse
  150. 2, // [2:3] is the sub-list for method output_type
  151. 1, // [1:2] is the sub-list for method input_type
  152. 1, // [1:1] is the sub-list for extension type_name
  153. 1, // [1:1] is the sub-list for extension extendee
  154. 0, // [0:1] is the sub-list for field type_name
  155. }
  156. func init() { file_app_observatory_command_command_proto_init() }
  157. func file_app_observatory_command_command_proto_init() {
  158. if File_app_observatory_command_command_proto != nil {
  159. return
  160. }
  161. type x struct{}
  162. out := protoimpl.TypeBuilder{
  163. File: protoimpl.DescBuilder{
  164. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  165. RawDescriptor: unsafe.Slice(unsafe.StringData(file_app_observatory_command_command_proto_rawDesc), len(file_app_observatory_command_command_proto_rawDesc)),
  166. NumEnums: 0,
  167. NumMessages: 3,
  168. NumExtensions: 0,
  169. NumServices: 1,
  170. },
  171. GoTypes: file_app_observatory_command_command_proto_goTypes,
  172. DependencyIndexes: file_app_observatory_command_command_proto_depIdxs,
  173. MessageInfos: file_app_observatory_command_command_proto_msgTypes,
  174. }.Build()
  175. File_app_observatory_command_command_proto = out.File
  176. file_app_observatory_command_command_proto_goTypes = nil
  177. file_app_observatory_command_command_proto_depIdxs = nil
  178. }