config.pb.go 9.9 KB

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