config.pb.go 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390
  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/wireguard/config.proto
  6. package wireguard
  7. import (
  8. net "github.com/v2fly/v2ray-core/v4/common/net"
  9. protocol "github.com/v2fly/v2ray-core/v4/common/protocol"
  10. _ "github.com/v2fly/v2ray-core/v4/common/protoext"
  11. protoreflect "google.golang.org/protobuf/reflect/protoreflect"
  12. protoimpl "google.golang.org/protobuf/runtime/protoimpl"
  13. reflect "reflect"
  14. sync "sync"
  15. )
  16. const (
  17. // Verify that this generated code is sufficiently up-to-date.
  18. _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
  19. // Verify that runtime/protoimpl is sufficiently up-to-date.
  20. _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
  21. )
  22. type Config struct {
  23. state protoimpl.MessageState
  24. sizeCache protoimpl.SizeCache
  25. unknownFields protoimpl.UnknownFields
  26. Server *protocol.ServerEndpoint `protobuf:"bytes,1,opt,name=server,proto3" json:"server,omitempty"`
  27. Network net.Network `protobuf:"varint,2,opt,name=network,proto3,enum=v2ray.core.common.net.Network" json:"network,omitempty"`
  28. LocalAddress []string `protobuf:"bytes,3,rep,name=localAddress,proto3" json:"localAddress,omitempty"`
  29. PrivateKey string `protobuf:"bytes,4,opt,name=private_key,json=privateKey,proto3" json:"private_key,omitempty"`
  30. PeerPublicKey string `protobuf:"bytes,5,opt,name=peer_public_key,json=peerPublicKey,proto3" json:"peer_public_key,omitempty"`
  31. PreSharedKey string `protobuf:"bytes,6,opt,name=pre_shared_key,json=preSharedKey,proto3" json:"pre_shared_key,omitempty"`
  32. Mtu uint32 `protobuf:"varint,7,opt,name=mtu,proto3" json:"mtu,omitempty"`
  33. UserLevel uint32 `protobuf:"varint,8,opt,name=user_level,json=userLevel,proto3" json:"user_level,omitempty"`
  34. }
  35. func (x *Config) Reset() {
  36. *x = Config{}
  37. if protoimpl.UnsafeEnabled {
  38. mi := &file_proxy_wireguard_config_proto_msgTypes[0]
  39. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  40. ms.StoreMessageInfo(mi)
  41. }
  42. }
  43. func (x *Config) String() string {
  44. return protoimpl.X.MessageStringOf(x)
  45. }
  46. func (*Config) ProtoMessage() {}
  47. func (x *Config) ProtoReflect() protoreflect.Message {
  48. mi := &file_proxy_wireguard_config_proto_msgTypes[0]
  49. if protoimpl.UnsafeEnabled && x != nil {
  50. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  51. if ms.LoadMessageInfo() == nil {
  52. ms.StoreMessageInfo(mi)
  53. }
  54. return ms
  55. }
  56. return mi.MessageOf(x)
  57. }
  58. // Deprecated: Use Config.ProtoReflect.Descriptor instead.
  59. func (*Config) Descriptor() ([]byte, []int) {
  60. return file_proxy_wireguard_config_proto_rawDescGZIP(), []int{0}
  61. }
  62. func (x *Config) GetServer() *protocol.ServerEndpoint {
  63. if x != nil {
  64. return x.Server
  65. }
  66. return nil
  67. }
  68. func (x *Config) GetNetwork() net.Network {
  69. if x != nil {
  70. return x.Network
  71. }
  72. return net.Network(0)
  73. }
  74. func (x *Config) GetLocalAddress() []string {
  75. if x != nil {
  76. return x.LocalAddress
  77. }
  78. return nil
  79. }
  80. func (x *Config) GetPrivateKey() string {
  81. if x != nil {
  82. return x.PrivateKey
  83. }
  84. return ""
  85. }
  86. func (x *Config) GetPeerPublicKey() string {
  87. if x != nil {
  88. return x.PeerPublicKey
  89. }
  90. return ""
  91. }
  92. func (x *Config) GetPreSharedKey() string {
  93. if x != nil {
  94. return x.PreSharedKey
  95. }
  96. return ""
  97. }
  98. func (x *Config) GetMtu() uint32 {
  99. if x != nil {
  100. return x.Mtu
  101. }
  102. return 0
  103. }
  104. func (x *Config) GetUserLevel() uint32 {
  105. if x != nil {
  106. return x.UserLevel
  107. }
  108. return 0
  109. }
  110. type SimplifiedConfig struct {
  111. state protoimpl.MessageState
  112. sizeCache protoimpl.SizeCache
  113. unknownFields protoimpl.UnknownFields
  114. Address *net.IPOrDomain `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
  115. Port uint32 `protobuf:"varint,2,opt,name=port,proto3" json:"port,omitempty"`
  116. Network net.Network `protobuf:"varint,3,opt,name=network,proto3,enum=v2ray.core.common.net.Network" json:"network,omitempty"`
  117. LocalAddress []string `protobuf:"bytes,4,rep,name=localAddress,proto3" json:"localAddress,omitempty"`
  118. PrivateKey string `protobuf:"bytes,5,opt,name=private_key,json=privateKey,proto3" json:"private_key,omitempty"`
  119. PeerPublicKey string `protobuf:"bytes,6,opt,name=peer_public_key,json=peerPublicKey,proto3" json:"peer_public_key,omitempty"`
  120. PreSharedKey string `protobuf:"bytes,7,opt,name=pre_shared_key,json=preSharedKey,proto3" json:"pre_shared_key,omitempty"`
  121. Mtu uint32 `protobuf:"varint,8,opt,name=mtu,proto3" json:"mtu,omitempty"`
  122. UserLevel uint32 `protobuf:"varint,9,opt,name=user_level,json=userLevel,proto3" json:"user_level,omitempty"`
  123. }
  124. func (x *SimplifiedConfig) Reset() {
  125. *x = SimplifiedConfig{}
  126. if protoimpl.UnsafeEnabled {
  127. mi := &file_proxy_wireguard_config_proto_msgTypes[1]
  128. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  129. ms.StoreMessageInfo(mi)
  130. }
  131. }
  132. func (x *SimplifiedConfig) String() string {
  133. return protoimpl.X.MessageStringOf(x)
  134. }
  135. func (*SimplifiedConfig) ProtoMessage() {}
  136. func (x *SimplifiedConfig) ProtoReflect() protoreflect.Message {
  137. mi := &file_proxy_wireguard_config_proto_msgTypes[1]
  138. if protoimpl.UnsafeEnabled && x != nil {
  139. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  140. if ms.LoadMessageInfo() == nil {
  141. ms.StoreMessageInfo(mi)
  142. }
  143. return ms
  144. }
  145. return mi.MessageOf(x)
  146. }
  147. // Deprecated: Use SimplifiedConfig.ProtoReflect.Descriptor instead.
  148. func (*SimplifiedConfig) Descriptor() ([]byte, []int) {
  149. return file_proxy_wireguard_config_proto_rawDescGZIP(), []int{1}
  150. }
  151. func (x *SimplifiedConfig) GetAddress() *net.IPOrDomain {
  152. if x != nil {
  153. return x.Address
  154. }
  155. return nil
  156. }
  157. func (x *SimplifiedConfig) GetPort() uint32 {
  158. if x != nil {
  159. return x.Port
  160. }
  161. return 0
  162. }
  163. func (x *SimplifiedConfig) GetNetwork() net.Network {
  164. if x != nil {
  165. return x.Network
  166. }
  167. return net.Network(0)
  168. }
  169. func (x *SimplifiedConfig) GetLocalAddress() []string {
  170. if x != nil {
  171. return x.LocalAddress
  172. }
  173. return nil
  174. }
  175. func (x *SimplifiedConfig) GetPrivateKey() string {
  176. if x != nil {
  177. return x.PrivateKey
  178. }
  179. return ""
  180. }
  181. func (x *SimplifiedConfig) GetPeerPublicKey() string {
  182. if x != nil {
  183. return x.PeerPublicKey
  184. }
  185. return ""
  186. }
  187. func (x *SimplifiedConfig) GetPreSharedKey() string {
  188. if x != nil {
  189. return x.PreSharedKey
  190. }
  191. return ""
  192. }
  193. func (x *SimplifiedConfig) GetMtu() uint32 {
  194. if x != nil {
  195. return x.Mtu
  196. }
  197. return 0
  198. }
  199. func (x *SimplifiedConfig) GetUserLevel() uint32 {
  200. if x != nil {
  201. return x.UserLevel
  202. }
  203. return 0
  204. }
  205. var File_proxy_wireguard_config_proto protoreflect.FileDescriptor
  206. var file_proxy_wireguard_config_proto_rawDesc = []byte{
  207. 0x0a, 0x1c, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2f, 0x77, 0x69, 0x72, 0x65, 0x67, 0x75, 0x61, 0x72,
  208. 0x64, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1a,
  209. 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x78, 0x79,
  210. 0x2e, 0x77, 0x69, 0x72, 0x65, 0x67, 0x75, 0x61, 0x72, 0x64, 0x1a, 0x21, 0x63, 0x6f, 0x6d, 0x6d,
  211. 0x6f, 0x6e, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2f, 0x73, 0x65, 0x72, 0x76,
  212. 0x65, 0x72, 0x5f, 0x73, 0x70, 0x65, 0x63, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x20, 0x63,
  213. 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x65, 0x78, 0x74, 0x2f, 0x65,
  214. 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a,
  215. 0x18, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x6e, 0x65, 0x74, 0x2f, 0x61, 0x64, 0x64, 0x72,
  216. 0x65, 0x73, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x18, 0x63, 0x6f, 0x6d, 0x6d, 0x6f,
  217. 0x6e, 0x2f, 0x6e, 0x65, 0x74, 0x2f, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x2e, 0x70, 0x72,
  218. 0x6f, 0x74, 0x6f, 0x22, 0xca, 0x02, 0x0a, 0x06, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x42,
  219. 0x0a, 0x06, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2a,
  220. 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x6d,
  221. 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2e, 0x53, 0x65, 0x72, 0x76,
  222. 0x65, 0x72, 0x45, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x52, 0x06, 0x73, 0x65, 0x72, 0x76,
  223. 0x65, 0x72, 0x12, 0x38, 0x0a, 0x07, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x18, 0x02, 0x20,
  224. 0x01, 0x28, 0x0e, 0x32, 0x1e, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65,
  225. 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x6e, 0x65, 0x74, 0x2e, 0x4e, 0x65, 0x74, 0x77,
  226. 0x6f, 0x72, 0x6b, 0x52, 0x07, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x12, 0x22, 0x0a, 0x0c,
  227. 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x03, 0x20, 0x03,
  228. 0x28, 0x09, 0x52, 0x0c, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73,
  229. 0x12, 0x1f, 0x0a, 0x0b, 0x70, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x5f, 0x6b, 0x65, 0x79, 0x18,
  230. 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x70, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x4b, 0x65,
  231. 0x79, 0x12, 0x26, 0x0a, 0x0f, 0x70, 0x65, 0x65, 0x72, 0x5f, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63,
  232. 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x70, 0x65, 0x65, 0x72,
  233. 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x4b, 0x65, 0x79, 0x12, 0x24, 0x0a, 0x0e, 0x70, 0x72, 0x65,
  234. 0x5f, 0x73, 0x68, 0x61, 0x72, 0x65, 0x64, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x06, 0x20, 0x01, 0x28,
  235. 0x09, 0x52, 0x0c, 0x70, 0x72, 0x65, 0x53, 0x68, 0x61, 0x72, 0x65, 0x64, 0x4b, 0x65, 0x79, 0x12,
  236. 0x10, 0x0a, 0x03, 0x6d, 0x74, 0x75, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x03, 0x6d, 0x74,
  237. 0x75, 0x12, 0x1d, 0x0a, 0x0a, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x18,
  238. 0x08, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x09, 0x75, 0x73, 0x65, 0x72, 0x4c, 0x65, 0x76, 0x65, 0x6c,
  239. 0x22, 0x80, 0x03, 0x0a, 0x10, 0x53, 0x69, 0x6d, 0x70, 0x6c, 0x69, 0x66, 0x69, 0x65, 0x64, 0x43,
  240. 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x3b, 0x0a, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73,
  241. 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63,
  242. 0x6f, 0x72, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x6e, 0x65, 0x74, 0x2e, 0x49,
  243. 0x50, 0x4f, 0x72, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x52, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65,
  244. 0x73, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x6f, 0x72, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d,
  245. 0x52, 0x04, 0x70, 0x6f, 0x72, 0x74, 0x12, 0x38, 0x0a, 0x07, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72,
  246. 0x6b, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1e, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e,
  247. 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x6e, 0x65, 0x74, 0x2e,
  248. 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x52, 0x07, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b,
  249. 0x12, 0x22, 0x0a, 0x0c, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73,
  250. 0x18, 0x04, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0c, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x41, 0x64, 0x64,
  251. 0x72, 0x65, 0x73, 0x73, 0x12, 0x1f, 0x0a, 0x0b, 0x70, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x5f,
  252. 0x6b, 0x65, 0x79, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x70, 0x72, 0x69, 0x76, 0x61,
  253. 0x74, 0x65, 0x4b, 0x65, 0x79, 0x12, 0x26, 0x0a, 0x0f, 0x70, 0x65, 0x65, 0x72, 0x5f, 0x70, 0x75,
  254. 0x62, 0x6c, 0x69, 0x63, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d,
  255. 0x70, 0x65, 0x65, 0x72, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x4b, 0x65, 0x79, 0x12, 0x24, 0x0a,
  256. 0x0e, 0x70, 0x72, 0x65, 0x5f, 0x73, 0x68, 0x61, 0x72, 0x65, 0x64, 0x5f, 0x6b, 0x65, 0x79, 0x18,
  257. 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x70, 0x72, 0x65, 0x53, 0x68, 0x61, 0x72, 0x65, 0x64,
  258. 0x4b, 0x65, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6d, 0x74, 0x75, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0d,
  259. 0x52, 0x03, 0x6d, 0x74, 0x75, 0x12, 0x1d, 0x0a, 0x0a, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x6c, 0x65,
  260. 0x76, 0x65, 0x6c, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x09, 0x75, 0x73, 0x65, 0x72, 0x4c,
  261. 0x65, 0x76, 0x65, 0x6c, 0x3a, 0x1d, 0x82, 0xb5, 0x18, 0x0a, 0x0a, 0x08, 0x6f, 0x75, 0x74, 0x62,
  262. 0x6f, 0x75, 0x6e, 0x64, 0x82, 0xb5, 0x18, 0x0b, 0x12, 0x09, 0x77, 0x69, 0x72, 0x65, 0x67, 0x75,
  263. 0x61, 0x72, 0x64, 0x42, 0x6f, 0x0a, 0x1e, 0x63, 0x6f, 0x6d, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79,
  264. 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x77, 0x69, 0x72, 0x65,
  265. 0x67, 0x75, 0x61, 0x72, 0x64, 0x50, 0x01, 0x5a, 0x2e, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e,
  266. 0x63, 0x6f, 0x6d, 0x2f, 0x76, 0x32, 0x66, 0x6c, 0x79, 0x2f, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2d,
  267. 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x76, 0x34, 0x2f, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2f, 0x77, 0x69,
  268. 0x72, 0x65, 0x67, 0x75, 0x61, 0x72, 0x64, 0xaa, 0x02, 0x1a, 0x56, 0x32, 0x52, 0x61, 0x79, 0x2e,
  269. 0x43, 0x6f, 0x72, 0x65, 0x2e, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x57, 0x69, 0x72, 0x65, 0x47,
  270. 0x75, 0x61, 0x72, 0x64, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
  271. }
  272. var (
  273. file_proxy_wireguard_config_proto_rawDescOnce sync.Once
  274. file_proxy_wireguard_config_proto_rawDescData = file_proxy_wireguard_config_proto_rawDesc
  275. )
  276. func file_proxy_wireguard_config_proto_rawDescGZIP() []byte {
  277. file_proxy_wireguard_config_proto_rawDescOnce.Do(func() {
  278. file_proxy_wireguard_config_proto_rawDescData = protoimpl.X.CompressGZIP(file_proxy_wireguard_config_proto_rawDescData)
  279. })
  280. return file_proxy_wireguard_config_proto_rawDescData
  281. }
  282. var file_proxy_wireguard_config_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
  283. var file_proxy_wireguard_config_proto_goTypes = []interface{}{
  284. (*Config)(nil), // 0: v2ray.core.proxy.wireguard.Config
  285. (*SimplifiedConfig)(nil), // 1: v2ray.core.proxy.wireguard.SimplifiedConfig
  286. (*protocol.ServerEndpoint)(nil), // 2: v2ray.core.common.protocol.ServerEndpoint
  287. (net.Network)(0), // 3: v2ray.core.common.net.Network
  288. (*net.IPOrDomain)(nil), // 4: v2ray.core.common.net.IPOrDomain
  289. }
  290. var file_proxy_wireguard_config_proto_depIdxs = []int32{
  291. 2, // 0: v2ray.core.proxy.wireguard.Config.server:type_name -> v2ray.core.common.protocol.ServerEndpoint
  292. 3, // 1: v2ray.core.proxy.wireguard.Config.network:type_name -> v2ray.core.common.net.Network
  293. 4, // 2: v2ray.core.proxy.wireguard.SimplifiedConfig.address:type_name -> v2ray.core.common.net.IPOrDomain
  294. 3, // 3: v2ray.core.proxy.wireguard.SimplifiedConfig.network:type_name -> v2ray.core.common.net.Network
  295. 4, // [4:4] is the sub-list for method output_type
  296. 4, // [4:4] is the sub-list for method input_type
  297. 4, // [4:4] is the sub-list for extension type_name
  298. 4, // [4:4] is the sub-list for extension extendee
  299. 0, // [0:4] is the sub-list for field type_name
  300. }
  301. func init() { file_proxy_wireguard_config_proto_init() }
  302. func file_proxy_wireguard_config_proto_init() {
  303. if File_proxy_wireguard_config_proto != nil {
  304. return
  305. }
  306. if !protoimpl.UnsafeEnabled {
  307. file_proxy_wireguard_config_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
  308. switch v := v.(*Config); i {
  309. case 0:
  310. return &v.state
  311. case 1:
  312. return &v.sizeCache
  313. case 2:
  314. return &v.unknownFields
  315. default:
  316. return nil
  317. }
  318. }
  319. file_proxy_wireguard_config_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
  320. switch v := v.(*SimplifiedConfig); i {
  321. case 0:
  322. return &v.state
  323. case 1:
  324. return &v.sizeCache
  325. case 2:
  326. return &v.unknownFields
  327. default:
  328. return nil
  329. }
  330. }
  331. }
  332. type x struct{}
  333. out := protoimpl.TypeBuilder{
  334. File: protoimpl.DescBuilder{
  335. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  336. RawDescriptor: file_proxy_wireguard_config_proto_rawDesc,
  337. NumEnums: 0,
  338. NumMessages: 2,
  339. NumExtensions: 0,
  340. NumServices: 0,
  341. },
  342. GoTypes: file_proxy_wireguard_config_proto_goTypes,
  343. DependencyIndexes: file_proxy_wireguard_config_proto_depIdxs,
  344. MessageInfos: file_proxy_wireguard_config_proto_msgTypes,
  345. }.Build()
  346. File_proxy_wireguard_config_proto = out.File
  347. file_proxy_wireguard_config_proto_rawDesc = nil
  348. file_proxy_wireguard_config_proto_goTypes = nil
  349. file_proxy_wireguard_config_proto_depIdxs = nil
  350. }