config.pb.go 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287
  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/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. protocol "v2ray.com/core/common/protocol"
  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 Fallback struct {
  25. state protoimpl.MessageState
  26. sizeCache protoimpl.SizeCache
  27. unknownFields protoimpl.UnknownFields
  28. Alpn string `protobuf:"bytes,1,opt,name=alpn,proto3" json:"alpn,omitempty"`
  29. Path string `protobuf:"bytes,2,opt,name=path,proto3" json:"path,omitempty"`
  30. Type string `protobuf:"bytes,3,opt,name=type,proto3" json:"type,omitempty"`
  31. Dest string `protobuf:"bytes,4,opt,name=dest,proto3" json:"dest,omitempty"`
  32. Xver uint64 `protobuf:"varint,5,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) GetAlpn() string {
  62. if x != nil {
  63. return x.Alpn
  64. }
  65. return ""
  66. }
  67. func (x *Fallback) GetPath() string {
  68. if x != nil {
  69. return x.Path
  70. }
  71. return ""
  72. }
  73. func (x *Fallback) GetType() string {
  74. if x != nil {
  75. return x.Type
  76. }
  77. return ""
  78. }
  79. func (x *Fallback) GetDest() string {
  80. if x != nil {
  81. return x.Dest
  82. }
  83. return ""
  84. }
  85. func (x *Fallback) GetXver() uint64 {
  86. if x != nil {
  87. return x.Xver
  88. }
  89. return 0
  90. }
  91. type Config struct {
  92. state protoimpl.MessageState
  93. sizeCache protoimpl.SizeCache
  94. unknownFields protoimpl.UnknownFields
  95. Clients []*protocol.User `protobuf:"bytes,1,rep,name=clients,proto3" json:"clients,omitempty"`
  96. // Decryption settings. Only applies to server side, and only accepts "none"
  97. // for now.
  98. Decryption string `protobuf:"bytes,2,opt,name=decryption,proto3" json:"decryption,omitempty"`
  99. Fallbacks []*Fallback `protobuf:"bytes,3,rep,name=fallbacks,proto3" json:"fallbacks,omitempty"`
  100. }
  101. func (x *Config) Reset() {
  102. *x = Config{}
  103. if protoimpl.UnsafeEnabled {
  104. mi := &file_proxy_vless_inbound_config_proto_msgTypes[1]
  105. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  106. ms.StoreMessageInfo(mi)
  107. }
  108. }
  109. func (x *Config) String() string {
  110. return protoimpl.X.MessageStringOf(x)
  111. }
  112. func (*Config) ProtoMessage() {}
  113. func (x *Config) ProtoReflect() protoreflect.Message {
  114. mi := &file_proxy_vless_inbound_config_proto_msgTypes[1]
  115. if protoimpl.UnsafeEnabled && x != nil {
  116. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  117. if ms.LoadMessageInfo() == nil {
  118. ms.StoreMessageInfo(mi)
  119. }
  120. return ms
  121. }
  122. return mi.MessageOf(x)
  123. }
  124. // Deprecated: Use Config.ProtoReflect.Descriptor instead.
  125. func (*Config) Descriptor() ([]byte, []int) {
  126. return file_proxy_vless_inbound_config_proto_rawDescGZIP(), []int{1}
  127. }
  128. func (x *Config) GetClients() []*protocol.User {
  129. if x != nil {
  130. return x.Clients
  131. }
  132. return nil
  133. }
  134. func (x *Config) GetDecryption() string {
  135. if x != nil {
  136. return x.Decryption
  137. }
  138. return ""
  139. }
  140. func (x *Config) GetFallbacks() []*Fallback {
  141. if x != nil {
  142. return x.Fallbacks
  143. }
  144. return nil
  145. }
  146. var File_proxy_vless_inbound_config_proto protoreflect.FileDescriptor
  147. var file_proxy_vless_inbound_config_proto_rawDesc = []byte{
  148. 0x0a, 0x20, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2f, 0x76, 0x6c, 0x65, 0x73, 0x73, 0x2f, 0x69, 0x6e,
  149. 0x62, 0x6f, 0x75, 0x6e, 0x64, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x70, 0x72, 0x6f,
  150. 0x74, 0x6f, 0x12, 0x1e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x70,
  151. 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x76, 0x6c, 0x65, 0x73, 0x73, 0x2e, 0x69, 0x6e, 0x62, 0x6f, 0x75,
  152. 0x6e, 0x64, 0x1a, 0x1a, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f,
  153. 0x63, 0x6f, 0x6c, 0x2f, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x6e,
  154. 0x0a, 0x08, 0x46, 0x61, 0x6c, 0x6c, 0x62, 0x61, 0x63, 0x6b, 0x12, 0x12, 0x0a, 0x04, 0x61, 0x6c,
  155. 0x70, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x61, 0x6c, 0x70, 0x6e, 0x12, 0x12,
  156. 0x0a, 0x04, 0x70, 0x61, 0x74, 0x68, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x70, 0x61,
  157. 0x74, 0x68, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09,
  158. 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x64, 0x65, 0x73, 0x74, 0x18, 0x04,
  159. 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x64, 0x65, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x78, 0x76,
  160. 0x65, 0x72, 0x18, 0x05, 0x20, 0x01, 0x28, 0x04, 0x52, 0x04, 0x78, 0x76, 0x65, 0x72, 0x22, 0xac,
  161. 0x01, 0x0a, 0x06, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x3a, 0x0a, 0x07, 0x63, 0x6c, 0x69,
  162. 0x65, 0x6e, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x76, 0x32, 0x72,
  163. 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x70,
  164. 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x52, 0x07, 0x63, 0x6c,
  165. 0x69, 0x65, 0x6e, 0x74, 0x73, 0x12, 0x1e, 0x0a, 0x0a, 0x64, 0x65, 0x63, 0x72, 0x79, 0x70, 0x74,
  166. 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x64, 0x65, 0x63, 0x72, 0x79,
  167. 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x46, 0x0a, 0x09, 0x66, 0x61, 0x6c, 0x6c, 0x62, 0x61, 0x63,
  168. 0x6b, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x28, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79,
  169. 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x76, 0x6c, 0x65, 0x73,
  170. 0x73, 0x2e, 0x69, 0x6e, 0x62, 0x6f, 0x75, 0x6e, 0x64, 0x2e, 0x46, 0x61, 0x6c, 0x6c, 0x62, 0x61,
  171. 0x63, 0x6b, 0x52, 0x09, 0x66, 0x61, 0x6c, 0x6c, 0x62, 0x61, 0x63, 0x6b, 0x73, 0x42, 0x6b, 0x0a,
  172. 0x22, 0x63, 0x6f, 0x6d, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e,
  173. 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x76, 0x6c, 0x65, 0x73, 0x73, 0x2e, 0x69, 0x6e, 0x62, 0x6f,
  174. 0x75, 0x6e, 0x64, 0x50, 0x01, 0x5a, 0x22, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x6d,
  175. 0x2f, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2f, 0x76, 0x6c, 0x65, 0x73,
  176. 0x73, 0x2f, 0x69, 0x6e, 0x62, 0x6f, 0x75, 0x6e, 0x64, 0xaa, 0x02, 0x1e, 0x56, 0x32, 0x52, 0x61,
  177. 0x79, 0x2e, 0x43, 0x6f, 0x72, 0x65, 0x2e, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x56, 0x6c, 0x65,
  178. 0x73, 0x73, 0x2e, 0x49, 0x6e, 0x62, 0x6f, 0x75, 0x6e, 0x64, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74,
  179. 0x6f, 0x33,
  180. }
  181. var (
  182. file_proxy_vless_inbound_config_proto_rawDescOnce sync.Once
  183. file_proxy_vless_inbound_config_proto_rawDescData = file_proxy_vless_inbound_config_proto_rawDesc
  184. )
  185. func file_proxy_vless_inbound_config_proto_rawDescGZIP() []byte {
  186. file_proxy_vless_inbound_config_proto_rawDescOnce.Do(func() {
  187. file_proxy_vless_inbound_config_proto_rawDescData = protoimpl.X.CompressGZIP(file_proxy_vless_inbound_config_proto_rawDescData)
  188. })
  189. return file_proxy_vless_inbound_config_proto_rawDescData
  190. }
  191. var file_proxy_vless_inbound_config_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
  192. var file_proxy_vless_inbound_config_proto_goTypes = []interface{}{
  193. (*Fallback)(nil), // 0: v2ray.core.proxy.vless.inbound.Fallback
  194. (*Config)(nil), // 1: v2ray.core.proxy.vless.inbound.Config
  195. (*protocol.User)(nil), // 2: v2ray.core.common.protocol.User
  196. }
  197. var file_proxy_vless_inbound_config_proto_depIdxs = []int32{
  198. 2, // 0: v2ray.core.proxy.vless.inbound.Config.clients:type_name -> v2ray.core.common.protocol.User
  199. 0, // 1: v2ray.core.proxy.vless.inbound.Config.fallbacks:type_name -> v2ray.core.proxy.vless.inbound.Fallback
  200. 2, // [2:2] is the sub-list for method output_type
  201. 2, // [2:2] is the sub-list for method input_type
  202. 2, // [2:2] is the sub-list for extension type_name
  203. 2, // [2:2] is the sub-list for extension extendee
  204. 0, // [0:2] is the sub-list for field type_name
  205. }
  206. func init() { file_proxy_vless_inbound_config_proto_init() }
  207. func file_proxy_vless_inbound_config_proto_init() {
  208. if File_proxy_vless_inbound_config_proto != nil {
  209. return
  210. }
  211. if !protoimpl.UnsafeEnabled {
  212. file_proxy_vless_inbound_config_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
  213. switch v := v.(*Fallback); i {
  214. case 0:
  215. return &v.state
  216. case 1:
  217. return &v.sizeCache
  218. case 2:
  219. return &v.unknownFields
  220. default:
  221. return nil
  222. }
  223. }
  224. file_proxy_vless_inbound_config_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
  225. switch v := v.(*Config); i {
  226. case 0:
  227. return &v.state
  228. case 1:
  229. return &v.sizeCache
  230. case 2:
  231. return &v.unknownFields
  232. default:
  233. return nil
  234. }
  235. }
  236. }
  237. type x struct{}
  238. out := protoimpl.TypeBuilder{
  239. File: protoimpl.DescBuilder{
  240. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  241. RawDescriptor: file_proxy_vless_inbound_config_proto_rawDesc,
  242. NumEnums: 0,
  243. NumMessages: 2,
  244. NumExtensions: 0,
  245. NumServices: 0,
  246. },
  247. GoTypes: file_proxy_vless_inbound_config_proto_goTypes,
  248. DependencyIndexes: file_proxy_vless_inbound_config_proto_depIdxs,
  249. MessageInfos: file_proxy_vless_inbound_config_proto_msgTypes,
  250. }.Build()
  251. File_proxy_vless_inbound_config_proto = out.File
  252. file_proxy_vless_inbound_config_proto_rawDesc = nil
  253. file_proxy_vless_inbound_config_proto_goTypes = nil
  254. file_proxy_vless_inbound_config_proto_depIdxs = nil
  255. }