config.pb.go 8.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // versions:
  3. // protoc-gen-go v1.27.1
  4. // protoc v3.18.0
  5. // source: proxy/mtproto/config.proto
  6. package mtproto
  7. import (
  8. protocol "github.com/xtls/xray-core/common/protocol"
  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 Account struct {
  21. state protoimpl.MessageState
  22. sizeCache protoimpl.SizeCache
  23. unknownFields protoimpl.UnknownFields
  24. Secret []byte `protobuf:"bytes,1,opt,name=secret,proto3" json:"secret,omitempty"`
  25. }
  26. func (x *Account) Reset() {
  27. *x = Account{}
  28. if protoimpl.UnsafeEnabled {
  29. mi := &file_proxy_mtproto_config_proto_msgTypes[0]
  30. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  31. ms.StoreMessageInfo(mi)
  32. }
  33. }
  34. func (x *Account) String() string {
  35. return protoimpl.X.MessageStringOf(x)
  36. }
  37. func (*Account) ProtoMessage() {}
  38. func (x *Account) ProtoReflect() protoreflect.Message {
  39. mi := &file_proxy_mtproto_config_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 Account.ProtoReflect.Descriptor instead.
  50. func (*Account) Descriptor() ([]byte, []int) {
  51. return file_proxy_mtproto_config_proto_rawDescGZIP(), []int{0}
  52. }
  53. func (x *Account) GetSecret() []byte {
  54. if x != nil {
  55. return x.Secret
  56. }
  57. return nil
  58. }
  59. type ServerConfig struct {
  60. state protoimpl.MessageState
  61. sizeCache protoimpl.SizeCache
  62. unknownFields protoimpl.UnknownFields
  63. // User is a list of users that allowed to connect to this inbound.
  64. // Although this is a repeated field, only the first user is effective for
  65. // now.
  66. User []*protocol.User `protobuf:"bytes,1,rep,name=user,proto3" json:"user,omitempty"`
  67. }
  68. func (x *ServerConfig) Reset() {
  69. *x = ServerConfig{}
  70. if protoimpl.UnsafeEnabled {
  71. mi := &file_proxy_mtproto_config_proto_msgTypes[1]
  72. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  73. ms.StoreMessageInfo(mi)
  74. }
  75. }
  76. func (x *ServerConfig) String() string {
  77. return protoimpl.X.MessageStringOf(x)
  78. }
  79. func (*ServerConfig) ProtoMessage() {}
  80. func (x *ServerConfig) ProtoReflect() protoreflect.Message {
  81. mi := &file_proxy_mtproto_config_proto_msgTypes[1]
  82. if protoimpl.UnsafeEnabled && x != nil {
  83. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  84. if ms.LoadMessageInfo() == nil {
  85. ms.StoreMessageInfo(mi)
  86. }
  87. return ms
  88. }
  89. return mi.MessageOf(x)
  90. }
  91. // Deprecated: Use ServerConfig.ProtoReflect.Descriptor instead.
  92. func (*ServerConfig) Descriptor() ([]byte, []int) {
  93. return file_proxy_mtproto_config_proto_rawDescGZIP(), []int{1}
  94. }
  95. func (x *ServerConfig) GetUser() []*protocol.User {
  96. if x != nil {
  97. return x.User
  98. }
  99. return nil
  100. }
  101. type ClientConfig struct {
  102. state protoimpl.MessageState
  103. sizeCache protoimpl.SizeCache
  104. unknownFields protoimpl.UnknownFields
  105. }
  106. func (x *ClientConfig) Reset() {
  107. *x = ClientConfig{}
  108. if protoimpl.UnsafeEnabled {
  109. mi := &file_proxy_mtproto_config_proto_msgTypes[2]
  110. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  111. ms.StoreMessageInfo(mi)
  112. }
  113. }
  114. func (x *ClientConfig) String() string {
  115. return protoimpl.X.MessageStringOf(x)
  116. }
  117. func (*ClientConfig) ProtoMessage() {}
  118. func (x *ClientConfig) ProtoReflect() protoreflect.Message {
  119. mi := &file_proxy_mtproto_config_proto_msgTypes[2]
  120. if protoimpl.UnsafeEnabled && x != nil {
  121. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  122. if ms.LoadMessageInfo() == nil {
  123. ms.StoreMessageInfo(mi)
  124. }
  125. return ms
  126. }
  127. return mi.MessageOf(x)
  128. }
  129. // Deprecated: Use ClientConfig.ProtoReflect.Descriptor instead.
  130. func (*ClientConfig) Descriptor() ([]byte, []int) {
  131. return file_proxy_mtproto_config_proto_rawDescGZIP(), []int{2}
  132. }
  133. var File_proxy_mtproto_config_proto protoreflect.FileDescriptor
  134. var file_proxy_mtproto_config_proto_rawDesc = []byte{
  135. 0x0a, 0x1a, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2f, 0x6d, 0x74, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f,
  136. 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x12, 0x78, 0x72,
  137. 0x61, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x6d, 0x74, 0x70, 0x72, 0x6f, 0x74, 0x6f,
  138. 0x1a, 0x1a, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f,
  139. 0x6c, 0x2f, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x21, 0x0a, 0x07,
  140. 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x65, 0x63, 0x72, 0x65,
  141. 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x06, 0x73, 0x65, 0x63, 0x72, 0x65, 0x74, 0x22,
  142. 0x3e, 0x0a, 0x0c, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12,
  143. 0x2e, 0x0a, 0x04, 0x75, 0x73, 0x65, 0x72, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1a, 0x2e,
  144. 0x78, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74,
  145. 0x6f, 0x63, 0x6f, 0x6c, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x52, 0x04, 0x75, 0x73, 0x65, 0x72, 0x22,
  146. 0x0e, 0x0a, 0x0c, 0x43, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x42,
  147. 0x58, 0x0a, 0x16, 0x63, 0x6f, 0x6d, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x78,
  148. 0x79, 0x2e, 0x6d, 0x74, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x27, 0x67, 0x69, 0x74,
  149. 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x78, 0x74, 0x6c, 0x73, 0x2f, 0x78, 0x72, 0x61,
  150. 0x79, 0x2d, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2f, 0x6d, 0x74, 0x70,
  151. 0x72, 0x6f, 0x74, 0x6f, 0xaa, 0x02, 0x12, 0x58, 0x72, 0x61, 0x79, 0x2e, 0x50, 0x72, 0x6f, 0x78,
  152. 0x79, 0x2e, 0x4d, 0x74, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f,
  153. 0x33,
  154. }
  155. var (
  156. file_proxy_mtproto_config_proto_rawDescOnce sync.Once
  157. file_proxy_mtproto_config_proto_rawDescData = file_proxy_mtproto_config_proto_rawDesc
  158. )
  159. func file_proxy_mtproto_config_proto_rawDescGZIP() []byte {
  160. file_proxy_mtproto_config_proto_rawDescOnce.Do(func() {
  161. file_proxy_mtproto_config_proto_rawDescData = protoimpl.X.CompressGZIP(file_proxy_mtproto_config_proto_rawDescData)
  162. })
  163. return file_proxy_mtproto_config_proto_rawDescData
  164. }
  165. var file_proxy_mtproto_config_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
  166. var file_proxy_mtproto_config_proto_goTypes = []interface{}{
  167. (*Account)(nil), // 0: xray.proxy.mtproto.Account
  168. (*ServerConfig)(nil), // 1: xray.proxy.mtproto.ServerConfig
  169. (*ClientConfig)(nil), // 2: xray.proxy.mtproto.ClientConfig
  170. (*protocol.User)(nil), // 3: xray.common.protocol.User
  171. }
  172. var file_proxy_mtproto_config_proto_depIdxs = []int32{
  173. 3, // 0: xray.proxy.mtproto.ServerConfig.user:type_name -> xray.common.protocol.User
  174. 1, // [1:1] is the sub-list for method output_type
  175. 1, // [1:1] is the sub-list for method input_type
  176. 1, // [1:1] is the sub-list for extension type_name
  177. 1, // [1:1] is the sub-list for extension extendee
  178. 0, // [0:1] is the sub-list for field type_name
  179. }
  180. func init() { file_proxy_mtproto_config_proto_init() }
  181. func file_proxy_mtproto_config_proto_init() {
  182. if File_proxy_mtproto_config_proto != nil {
  183. return
  184. }
  185. if !protoimpl.UnsafeEnabled {
  186. file_proxy_mtproto_config_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
  187. switch v := v.(*Account); i {
  188. case 0:
  189. return &v.state
  190. case 1:
  191. return &v.sizeCache
  192. case 2:
  193. return &v.unknownFields
  194. default:
  195. return nil
  196. }
  197. }
  198. file_proxy_mtproto_config_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
  199. switch v := v.(*ServerConfig); i {
  200. case 0:
  201. return &v.state
  202. case 1:
  203. return &v.sizeCache
  204. case 2:
  205. return &v.unknownFields
  206. default:
  207. return nil
  208. }
  209. }
  210. file_proxy_mtproto_config_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
  211. switch v := v.(*ClientConfig); i {
  212. case 0:
  213. return &v.state
  214. case 1:
  215. return &v.sizeCache
  216. case 2:
  217. return &v.unknownFields
  218. default:
  219. return nil
  220. }
  221. }
  222. }
  223. type x struct{}
  224. out := protoimpl.TypeBuilder{
  225. File: protoimpl.DescBuilder{
  226. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  227. RawDescriptor: file_proxy_mtproto_config_proto_rawDesc,
  228. NumEnums: 0,
  229. NumMessages: 3,
  230. NumExtensions: 0,
  231. NumServices: 0,
  232. },
  233. GoTypes: file_proxy_mtproto_config_proto_goTypes,
  234. DependencyIndexes: file_proxy_mtproto_config_proto_depIdxs,
  235. MessageInfos: file_proxy_mtproto_config_proto_msgTypes,
  236. }.Build()
  237. File_proxy_mtproto_config_proto = out.File
  238. file_proxy_mtproto_config_proto_rawDesc = nil
  239. file_proxy_mtproto_config_proto_goTypes = nil
  240. file_proxy_mtproto_config_proto_depIdxs = nil
  241. }