config.pb.go 10 KB

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