config.pb.go 8.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // versions:
  3. // protoc-gen-go v1.27.1
  4. // protoc v3.17.3
  5. // source: proxy/mtproto/config.proto
  6. package mtproto
  7. import (
  8. protocol "github.com/v2fly/v2ray-core/v4/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, 0x18, 0x76, 0x32,
  137. 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x6d,
  138. 0x74, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1a, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x70,
  139. 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2f, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f,
  140. 0x74, 0x6f, 0x22, 0x21, 0x0a, 0x07, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x16, 0x0a,
  141. 0x06, 0x73, 0x65, 0x63, 0x72, 0x65, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x06, 0x73,
  142. 0x65, 0x63, 0x72, 0x65, 0x74, 0x22, 0x44, 0x0a, 0x0c, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x43,
  143. 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x34, 0x0a, 0x04, 0x75, 0x73, 0x65, 0x72, 0x18, 0x01, 0x20,
  144. 0x03, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65,
  145. 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c,
  146. 0x2e, 0x55, 0x73, 0x65, 0x72, 0x52, 0x04, 0x75, 0x73, 0x65, 0x72, 0x22, 0x0e, 0x0a, 0x0c, 0x43,
  147. 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x42, 0x69, 0x0a, 0x1c, 0x63,
  148. 0x6f, 0x6d, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x70, 0x72,
  149. 0x6f, 0x78, 0x79, 0x2e, 0x6d, 0x74, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x2c, 0x67,
  150. 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x76, 0x32, 0x66, 0x6c, 0x79, 0x2f,
  151. 0x76, 0x32, 0x72, 0x61, 0x79, 0x2d, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x76, 0x34, 0x2f, 0x70, 0x72,
  152. 0x6f, 0x78, 0x79, 0x2f, 0x6d, 0x74, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0xaa, 0x02, 0x18, 0x56, 0x32,
  153. 0x52, 0x61, 0x79, 0x2e, 0x43, 0x6f, 0x72, 0x65, 0x2e, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x4d,
  154. 0x74, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
  155. }
  156. var (
  157. file_proxy_mtproto_config_proto_rawDescOnce sync.Once
  158. file_proxy_mtproto_config_proto_rawDescData = file_proxy_mtproto_config_proto_rawDesc
  159. )
  160. func file_proxy_mtproto_config_proto_rawDescGZIP() []byte {
  161. file_proxy_mtproto_config_proto_rawDescOnce.Do(func() {
  162. file_proxy_mtproto_config_proto_rawDescData = protoimpl.X.CompressGZIP(file_proxy_mtproto_config_proto_rawDescData)
  163. })
  164. return file_proxy_mtproto_config_proto_rawDescData
  165. }
  166. var file_proxy_mtproto_config_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
  167. var file_proxy_mtproto_config_proto_goTypes = []interface{}{
  168. (*Account)(nil), // 0: v2ray.core.proxy.mtproto.Account
  169. (*ServerConfig)(nil), // 1: v2ray.core.proxy.mtproto.ServerConfig
  170. (*ClientConfig)(nil), // 2: v2ray.core.proxy.mtproto.ClientConfig
  171. (*protocol.User)(nil), // 3: v2ray.core.common.protocol.User
  172. }
  173. var file_proxy_mtproto_config_proto_depIdxs = []int32{
  174. 3, // 0: v2ray.core.proxy.mtproto.ServerConfig.user:type_name -> v2ray.core.common.protocol.User
  175. 1, // [1:1] is the sub-list for method output_type
  176. 1, // [1:1] is the sub-list for method input_type
  177. 1, // [1:1] is the sub-list for extension type_name
  178. 1, // [1:1] is the sub-list for extension extendee
  179. 0, // [0:1] is the sub-list for field type_name
  180. }
  181. func init() { file_proxy_mtproto_config_proto_init() }
  182. func file_proxy_mtproto_config_proto_init() {
  183. if File_proxy_mtproto_config_proto != nil {
  184. return
  185. }
  186. if !protoimpl.UnsafeEnabled {
  187. file_proxy_mtproto_config_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
  188. switch v := v.(*Account); i {
  189. case 0:
  190. return &v.state
  191. case 1:
  192. return &v.sizeCache
  193. case 2:
  194. return &v.unknownFields
  195. default:
  196. return nil
  197. }
  198. }
  199. file_proxy_mtproto_config_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
  200. switch v := v.(*ServerConfig); i {
  201. case 0:
  202. return &v.state
  203. case 1:
  204. return &v.sizeCache
  205. case 2:
  206. return &v.unknownFields
  207. default:
  208. return nil
  209. }
  210. }
  211. file_proxy_mtproto_config_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
  212. switch v := v.(*ClientConfig); i {
  213. case 0:
  214. return &v.state
  215. case 1:
  216. return &v.sizeCache
  217. case 2:
  218. return &v.unknownFields
  219. default:
  220. return nil
  221. }
  222. }
  223. }
  224. type x struct{}
  225. out := protoimpl.TypeBuilder{
  226. File: protoimpl.DescBuilder{
  227. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  228. RawDescriptor: file_proxy_mtproto_config_proto_rawDesc,
  229. NumEnums: 0,
  230. NumMessages: 3,
  231. NumExtensions: 0,
  232. NumServices: 0,
  233. },
  234. GoTypes: file_proxy_mtproto_config_proto_goTypes,
  235. DependencyIndexes: file_proxy_mtproto_config_proto_depIdxs,
  236. MessageInfos: file_proxy_mtproto_config_proto_msgTypes,
  237. }.Build()
  238. File_proxy_mtproto_config_proto = out.File
  239. file_proxy_mtproto_config_proto_rawDesc = nil
  240. file_proxy_mtproto_config_proto_goTypes = nil
  241. file_proxy_mtproto_config_proto_depIdxs = nil
  242. }