config.pb.go 9.4 KB

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