config.pb.go 8.9 KB

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