config.pb.go 10.0 KB

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