config.pb.go 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // versions:
  3. // protoc-gen-go v1.25.0
  4. // protoc v3.13.0
  5. // source: proxy/vless/inbound/config.proto
  6. package inbound
  7. import (
  8. proto "github.com/golang/protobuf/proto"
  9. protoreflect "google.golang.org/protobuf/reflect/protoreflect"
  10. protoimpl "google.golang.org/protobuf/runtime/protoimpl"
  11. reflect "reflect"
  12. sync "sync"
  13. net "v2ray.com/core/common/net"
  14. protocol "v2ray.com/core/common/protocol"
  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. // This is a compile-time assertion that a sufficiently up-to-date version
  23. // of the legacy proto package is being used.
  24. const _ = proto.ProtoPackageIsVersion4
  25. type Fallback struct {
  26. state protoimpl.MessageState
  27. sizeCache protoimpl.SizeCache
  28. unknownFields protoimpl.UnknownFields
  29. Addr *net.IPOrDomain `protobuf:"bytes,1,opt,name=addr,proto3" json:"addr,omitempty"`
  30. Port uint32 `protobuf:"varint,2,opt,name=port,proto3" json:"port,omitempty"`
  31. Unix string `protobuf:"bytes,3,opt,name=unix,proto3" json:"unix,omitempty"`
  32. Xver uint32 `protobuf:"varint,4,opt,name=xver,proto3" json:"xver,omitempty"`
  33. }
  34. func (x *Fallback) Reset() {
  35. *x = Fallback{}
  36. if protoimpl.UnsafeEnabled {
  37. mi := &file_proxy_vless_inbound_config_proto_msgTypes[0]
  38. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  39. ms.StoreMessageInfo(mi)
  40. }
  41. }
  42. func (x *Fallback) String() string {
  43. return protoimpl.X.MessageStringOf(x)
  44. }
  45. func (*Fallback) ProtoMessage() {}
  46. func (x *Fallback) ProtoReflect() protoreflect.Message {
  47. mi := &file_proxy_vless_inbound_config_proto_msgTypes[0]
  48. if protoimpl.UnsafeEnabled && x != nil {
  49. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  50. if ms.LoadMessageInfo() == nil {
  51. ms.StoreMessageInfo(mi)
  52. }
  53. return ms
  54. }
  55. return mi.MessageOf(x)
  56. }
  57. // Deprecated: Use Fallback.ProtoReflect.Descriptor instead.
  58. func (*Fallback) Descriptor() ([]byte, []int) {
  59. return file_proxy_vless_inbound_config_proto_rawDescGZIP(), []int{0}
  60. }
  61. func (x *Fallback) GetAddr() *net.IPOrDomain {
  62. if x != nil {
  63. return x.Addr
  64. }
  65. return nil
  66. }
  67. func (x *Fallback) GetPort() uint32 {
  68. if x != nil {
  69. return x.Port
  70. }
  71. return 0
  72. }
  73. func (x *Fallback) GetUnix() string {
  74. if x != nil {
  75. return x.Unix
  76. }
  77. return ""
  78. }
  79. func (x *Fallback) GetXver() uint32 {
  80. if x != nil {
  81. return x.Xver
  82. }
  83. return 0
  84. }
  85. type FallbackH2 struct {
  86. state protoimpl.MessageState
  87. sizeCache protoimpl.SizeCache
  88. unknownFields protoimpl.UnknownFields
  89. Addr *net.IPOrDomain `protobuf:"bytes,1,opt,name=addr,proto3" json:"addr,omitempty"`
  90. Port uint32 `protobuf:"varint,2,opt,name=port,proto3" json:"port,omitempty"`
  91. Unix string `protobuf:"bytes,3,opt,name=unix,proto3" json:"unix,omitempty"`
  92. Xver uint32 `protobuf:"varint,4,opt,name=xver,proto3" json:"xver,omitempty"`
  93. }
  94. func (x *FallbackH2) Reset() {
  95. *x = FallbackH2{}
  96. if protoimpl.UnsafeEnabled {
  97. mi := &file_proxy_vless_inbound_config_proto_msgTypes[1]
  98. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  99. ms.StoreMessageInfo(mi)
  100. }
  101. }
  102. func (x *FallbackH2) String() string {
  103. return protoimpl.X.MessageStringOf(x)
  104. }
  105. func (*FallbackH2) ProtoMessage() {}
  106. func (x *FallbackH2) ProtoReflect() protoreflect.Message {
  107. mi := &file_proxy_vless_inbound_config_proto_msgTypes[1]
  108. if protoimpl.UnsafeEnabled && x != nil {
  109. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  110. if ms.LoadMessageInfo() == nil {
  111. ms.StoreMessageInfo(mi)
  112. }
  113. return ms
  114. }
  115. return mi.MessageOf(x)
  116. }
  117. // Deprecated: Use FallbackH2.ProtoReflect.Descriptor instead.
  118. func (*FallbackH2) Descriptor() ([]byte, []int) {
  119. return file_proxy_vless_inbound_config_proto_rawDescGZIP(), []int{1}
  120. }
  121. func (x *FallbackH2) GetAddr() *net.IPOrDomain {
  122. if x != nil {
  123. return x.Addr
  124. }
  125. return nil
  126. }
  127. func (x *FallbackH2) GetPort() uint32 {
  128. if x != nil {
  129. return x.Port
  130. }
  131. return 0
  132. }
  133. func (x *FallbackH2) GetUnix() string {
  134. if x != nil {
  135. return x.Unix
  136. }
  137. return ""
  138. }
  139. func (x *FallbackH2) GetXver() uint32 {
  140. if x != nil {
  141. return x.Xver
  142. }
  143. return 0
  144. }
  145. type Config struct {
  146. state protoimpl.MessageState
  147. sizeCache protoimpl.SizeCache
  148. unknownFields protoimpl.UnknownFields
  149. User []*protocol.User `protobuf:"bytes,1,rep,name=user,proto3" json:"user,omitempty"`
  150. // Decryption settings. Only applies to server side, and only accepts "none" for now.
  151. Decryption string `protobuf:"bytes,2,opt,name=decryption,proto3" json:"decryption,omitempty"`
  152. Fallback *Fallback `protobuf:"bytes,3,opt,name=fallback,proto3" json:"fallback,omitempty"`
  153. FallbackH2 *FallbackH2 `protobuf:"bytes,4,opt,name=fallback_h2,json=fallbackH2,proto3" json:"fallback_h2,omitempty"`
  154. }
  155. func (x *Config) Reset() {
  156. *x = Config{}
  157. if protoimpl.UnsafeEnabled {
  158. mi := &file_proxy_vless_inbound_config_proto_msgTypes[2]
  159. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  160. ms.StoreMessageInfo(mi)
  161. }
  162. }
  163. func (x *Config) String() string {
  164. return protoimpl.X.MessageStringOf(x)
  165. }
  166. func (*Config) ProtoMessage() {}
  167. func (x *Config) ProtoReflect() protoreflect.Message {
  168. mi := &file_proxy_vless_inbound_config_proto_msgTypes[2]
  169. if protoimpl.UnsafeEnabled && x != nil {
  170. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  171. if ms.LoadMessageInfo() == nil {
  172. ms.StoreMessageInfo(mi)
  173. }
  174. return ms
  175. }
  176. return mi.MessageOf(x)
  177. }
  178. // Deprecated: Use Config.ProtoReflect.Descriptor instead.
  179. func (*Config) Descriptor() ([]byte, []int) {
  180. return file_proxy_vless_inbound_config_proto_rawDescGZIP(), []int{2}
  181. }
  182. func (x *Config) GetUser() []*protocol.User {
  183. if x != nil {
  184. return x.User
  185. }
  186. return nil
  187. }
  188. func (x *Config) GetDecryption() string {
  189. if x != nil {
  190. return x.Decryption
  191. }
  192. return ""
  193. }
  194. func (x *Config) GetFallback() *Fallback {
  195. if x != nil {
  196. return x.Fallback
  197. }
  198. return nil
  199. }
  200. func (x *Config) GetFallbackH2() *FallbackH2 {
  201. if x != nil {
  202. return x.FallbackH2
  203. }
  204. return nil
  205. }
  206. var File_proxy_vless_inbound_config_proto protoreflect.FileDescriptor
  207. var file_proxy_vless_inbound_config_proto_rawDesc = []byte{
  208. 0x0a, 0x20, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2f, 0x76, 0x6c, 0x65, 0x73, 0x73, 0x2f, 0x69, 0x6e,
  209. 0x62, 0x6f, 0x75, 0x6e, 0x64, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x70, 0x72, 0x6f,
  210. 0x74, 0x6f, 0x12, 0x1e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x70,
  211. 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x76, 0x6c, 0x65, 0x73, 0x73, 0x2e, 0x69, 0x6e, 0x62, 0x6f, 0x75,
  212. 0x6e, 0x64, 0x1a, 0x18, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x6e, 0x65, 0x74, 0x2f, 0x61,
  213. 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1a, 0x63, 0x6f,
  214. 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2f, 0x75, 0x73,
  215. 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x7d, 0x0a, 0x08, 0x46, 0x61, 0x6c, 0x6c,
  216. 0x62, 0x61, 0x63, 0x6b, 0x12, 0x35, 0x0a, 0x04, 0x61, 0x64, 0x64, 0x72, 0x18, 0x01, 0x20, 0x01,
  217. 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e,
  218. 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x6e, 0x65, 0x74, 0x2e, 0x49, 0x50, 0x4f, 0x72, 0x44,
  219. 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x52, 0x04, 0x61, 0x64, 0x64, 0x72, 0x12, 0x12, 0x0a, 0x04, 0x70,
  220. 0x6f, 0x72, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x04, 0x70, 0x6f, 0x72, 0x74, 0x12,
  221. 0x12, 0x0a, 0x04, 0x75, 0x6e, 0x69, 0x78, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x75,
  222. 0x6e, 0x69, 0x78, 0x12, 0x12, 0x0a, 0x04, 0x78, 0x76, 0x65, 0x72, 0x18, 0x04, 0x20, 0x01, 0x28,
  223. 0x0d, 0x52, 0x04, 0x78, 0x76, 0x65, 0x72, 0x22, 0x80, 0x01, 0x0a, 0x0b, 0x46, 0x61, 0x6c, 0x6c,
  224. 0x62, 0x61, 0x63, 0x6b, 0x5f, 0x68, 0x32, 0x12, 0x35, 0x0a, 0x04, 0x61, 0x64, 0x64, 0x72, 0x18,
  225. 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f,
  226. 0x72, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x6e, 0x65, 0x74, 0x2e, 0x49, 0x50,
  227. 0x4f, 0x72, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x52, 0x04, 0x61, 0x64, 0x64, 0x72, 0x12, 0x12,
  228. 0x0a, 0x04, 0x70, 0x6f, 0x72, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x04, 0x70, 0x6f,
  229. 0x72, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x75, 0x6e, 0x69, 0x78, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09,
  230. 0x52, 0x04, 0x75, 0x6e, 0x69, 0x78, 0x12, 0x12, 0x0a, 0x04, 0x78, 0x76, 0x65, 0x72, 0x18, 0x04,
  231. 0x20, 0x01, 0x28, 0x0d, 0x52, 0x04, 0x78, 0x76, 0x65, 0x72, 0x22, 0xf2, 0x01, 0x0a, 0x06, 0x43,
  232. 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x34, 0x0a, 0x04, 0x75, 0x73, 0x65, 0x72, 0x18, 0x01, 0x20,
  233. 0x03, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65,
  234. 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c,
  235. 0x2e, 0x55, 0x73, 0x65, 0x72, 0x52, 0x04, 0x75, 0x73, 0x65, 0x72, 0x12, 0x1e, 0x0a, 0x0a, 0x64,
  236. 0x65, 0x63, 0x72, 0x79, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52,
  237. 0x0a, 0x64, 0x65, 0x63, 0x72, 0x79, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x44, 0x0a, 0x08, 0x66,
  238. 0x61, 0x6c, 0x6c, 0x62, 0x61, 0x63, 0x6b, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x28, 0x2e,
  239. 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x78, 0x79,
  240. 0x2e, 0x76, 0x6c, 0x65, 0x73, 0x73, 0x2e, 0x69, 0x6e, 0x62, 0x6f, 0x75, 0x6e, 0x64, 0x2e, 0x46,
  241. 0x61, 0x6c, 0x6c, 0x62, 0x61, 0x63, 0x6b, 0x52, 0x08, 0x66, 0x61, 0x6c, 0x6c, 0x62, 0x61, 0x63,
  242. 0x6b, 0x12, 0x4c, 0x0a, 0x0b, 0x66, 0x61, 0x6c, 0x6c, 0x62, 0x61, 0x63, 0x6b, 0x5f, 0x68, 0x32,
  243. 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2b, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63,
  244. 0x6f, 0x72, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x76, 0x6c, 0x65, 0x73, 0x73, 0x2e,
  245. 0x69, 0x6e, 0x62, 0x6f, 0x75, 0x6e, 0x64, 0x2e, 0x46, 0x61, 0x6c, 0x6c, 0x62, 0x61, 0x63, 0x6b,
  246. 0x5f, 0x68, 0x32, 0x52, 0x0a, 0x66, 0x61, 0x6c, 0x6c, 0x62, 0x61, 0x63, 0x6b, 0x48, 0x32, 0x42,
  247. 0x6b, 0x0a, 0x22, 0x63, 0x6f, 0x6d, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72,
  248. 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x76, 0x6c, 0x65, 0x73, 0x73, 0x2e, 0x69, 0x6e,
  249. 0x62, 0x6f, 0x75, 0x6e, 0x64, 0x50, 0x01, 0x5a, 0x22, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63,
  250. 0x6f, 0x6d, 0x2f, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2f, 0x76, 0x6c,
  251. 0x65, 0x73, 0x73, 0x2f, 0x69, 0x6e, 0x62, 0x6f, 0x75, 0x6e, 0x64, 0xaa, 0x02, 0x1e, 0x56, 0x32,
  252. 0x52, 0x61, 0x79, 0x2e, 0x43, 0x6f, 0x72, 0x65, 0x2e, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x56,
  253. 0x6c, 0x65, 0x73, 0x73, 0x2e, 0x49, 0x6e, 0x62, 0x6f, 0x75, 0x6e, 0x64, 0x62, 0x06, 0x70, 0x72,
  254. 0x6f, 0x74, 0x6f, 0x33,
  255. }
  256. var (
  257. file_proxy_vless_inbound_config_proto_rawDescOnce sync.Once
  258. file_proxy_vless_inbound_config_proto_rawDescData = file_proxy_vless_inbound_config_proto_rawDesc
  259. )
  260. func file_proxy_vless_inbound_config_proto_rawDescGZIP() []byte {
  261. file_proxy_vless_inbound_config_proto_rawDescOnce.Do(func() {
  262. file_proxy_vless_inbound_config_proto_rawDescData = protoimpl.X.CompressGZIP(file_proxy_vless_inbound_config_proto_rawDescData)
  263. })
  264. return file_proxy_vless_inbound_config_proto_rawDescData
  265. }
  266. var file_proxy_vless_inbound_config_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
  267. var file_proxy_vless_inbound_config_proto_goTypes = []interface{}{
  268. (*Fallback)(nil), // 0: v2ray.core.proxy.vless.inbound.Fallback
  269. (*FallbackH2)(nil), // 1: v2ray.core.proxy.vless.inbound.Fallback_h2
  270. (*Config)(nil), // 2: v2ray.core.proxy.vless.inbound.Config
  271. (*net.IPOrDomain)(nil), // 3: v2ray.core.common.net.IPOrDomain
  272. (*protocol.User)(nil), // 4: v2ray.core.common.protocol.User
  273. }
  274. var file_proxy_vless_inbound_config_proto_depIdxs = []int32{
  275. 3, // 0: v2ray.core.proxy.vless.inbound.Fallback.addr:type_name -> v2ray.core.common.net.IPOrDomain
  276. 3, // 1: v2ray.core.proxy.vless.inbound.Fallback_h2.addr:type_name -> v2ray.core.common.net.IPOrDomain
  277. 4, // 2: v2ray.core.proxy.vless.inbound.Config.user:type_name -> v2ray.core.common.protocol.User
  278. 0, // 3: v2ray.core.proxy.vless.inbound.Config.fallback:type_name -> v2ray.core.proxy.vless.inbound.Fallback
  279. 1, // 4: v2ray.core.proxy.vless.inbound.Config.fallback_h2:type_name -> v2ray.core.proxy.vless.inbound.Fallback_h2
  280. 5, // [5:5] is the sub-list for method output_type
  281. 5, // [5:5] is the sub-list for method input_type
  282. 5, // [5:5] is the sub-list for extension type_name
  283. 5, // [5:5] is the sub-list for extension extendee
  284. 0, // [0:5] is the sub-list for field type_name
  285. }
  286. func init() { file_proxy_vless_inbound_config_proto_init() }
  287. func file_proxy_vless_inbound_config_proto_init() {
  288. if File_proxy_vless_inbound_config_proto != nil {
  289. return
  290. }
  291. if !protoimpl.UnsafeEnabled {
  292. file_proxy_vless_inbound_config_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
  293. switch v := v.(*Fallback); i {
  294. case 0:
  295. return &v.state
  296. case 1:
  297. return &v.sizeCache
  298. case 2:
  299. return &v.unknownFields
  300. default:
  301. return nil
  302. }
  303. }
  304. file_proxy_vless_inbound_config_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
  305. switch v := v.(*FallbackH2); i {
  306. case 0:
  307. return &v.state
  308. case 1:
  309. return &v.sizeCache
  310. case 2:
  311. return &v.unknownFields
  312. default:
  313. return nil
  314. }
  315. }
  316. file_proxy_vless_inbound_config_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
  317. switch v := v.(*Config); i {
  318. case 0:
  319. return &v.state
  320. case 1:
  321. return &v.sizeCache
  322. case 2:
  323. return &v.unknownFields
  324. default:
  325. return nil
  326. }
  327. }
  328. }
  329. type x struct{}
  330. out := protoimpl.TypeBuilder{
  331. File: protoimpl.DescBuilder{
  332. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  333. RawDescriptor: file_proxy_vless_inbound_config_proto_rawDesc,
  334. NumEnums: 0,
  335. NumMessages: 3,
  336. NumExtensions: 0,
  337. NumServices: 0,
  338. },
  339. GoTypes: file_proxy_vless_inbound_config_proto_goTypes,
  340. DependencyIndexes: file_proxy_vless_inbound_config_proto_depIdxs,
  341. MessageInfos: file_proxy_vless_inbound_config_proto_msgTypes,
  342. }.Build()
  343. File_proxy_vless_inbound_config_proto = out.File
  344. file_proxy_vless_inbound_config_proto_rawDesc = nil
  345. file_proxy_vless_inbound_config_proto_goTypes = nil
  346. file_proxy_vless_inbound_config_proto_depIdxs = nil
  347. }