config.pb.go 8.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // versions:
  3. // protoc-gen-go v1.36.11
  4. // protoc v6.33.5
  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. unsafe "unsafe"
  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. type Fallback struct {
  22. state protoimpl.MessageState `protogen:"open.v1"`
  23. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
  24. Alpn string `protobuf:"bytes,2,opt,name=alpn,proto3" json:"alpn,omitempty"`
  25. Path string `protobuf:"bytes,3,opt,name=path,proto3" json:"path,omitempty"`
  26. Type string `protobuf:"bytes,4,opt,name=type,proto3" json:"type,omitempty"`
  27. Dest string `protobuf:"bytes,5,opt,name=dest,proto3" json:"dest,omitempty"`
  28. Xver uint64 `protobuf:"varint,6,opt,name=xver,proto3" json:"xver,omitempty"`
  29. unknownFields protoimpl.UnknownFields
  30. sizeCache protoimpl.SizeCache
  31. }
  32. func (x *Fallback) Reset() {
  33. *x = Fallback{}
  34. mi := &file_proxy_vless_inbound_config_proto_msgTypes[0]
  35. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  36. ms.StoreMessageInfo(mi)
  37. }
  38. func (x *Fallback) String() string {
  39. return protoimpl.X.MessageStringOf(x)
  40. }
  41. func (*Fallback) ProtoMessage() {}
  42. func (x *Fallback) ProtoReflect() protoreflect.Message {
  43. mi := &file_proxy_vless_inbound_config_proto_msgTypes[0]
  44. if x != nil {
  45. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  46. if ms.LoadMessageInfo() == nil {
  47. ms.StoreMessageInfo(mi)
  48. }
  49. return ms
  50. }
  51. return mi.MessageOf(x)
  52. }
  53. // Deprecated: Use Fallback.ProtoReflect.Descriptor instead.
  54. func (*Fallback) Descriptor() ([]byte, []int) {
  55. return file_proxy_vless_inbound_config_proto_rawDescGZIP(), []int{0}
  56. }
  57. func (x *Fallback) GetName() string {
  58. if x != nil {
  59. return x.Name
  60. }
  61. return ""
  62. }
  63. func (x *Fallback) GetAlpn() string {
  64. if x != nil {
  65. return x.Alpn
  66. }
  67. return ""
  68. }
  69. func (x *Fallback) GetPath() string {
  70. if x != nil {
  71. return x.Path
  72. }
  73. return ""
  74. }
  75. func (x *Fallback) GetType() string {
  76. if x != nil {
  77. return x.Type
  78. }
  79. return ""
  80. }
  81. func (x *Fallback) GetDest() string {
  82. if x != nil {
  83. return x.Dest
  84. }
  85. return ""
  86. }
  87. func (x *Fallback) GetXver() uint64 {
  88. if x != nil {
  89. return x.Xver
  90. }
  91. return 0
  92. }
  93. type Config struct {
  94. state protoimpl.MessageState `protogen:"open.v1"`
  95. Clients []*protocol.User `protobuf:"bytes,1,rep,name=clients,proto3" json:"clients,omitempty"`
  96. Fallbacks []*Fallback `protobuf:"bytes,2,rep,name=fallbacks,proto3" json:"fallbacks,omitempty"`
  97. Decryption string `protobuf:"bytes,3,opt,name=decryption,proto3" json:"decryption,omitempty"`
  98. XorMode uint32 `protobuf:"varint,4,opt,name=xorMode,proto3" json:"xorMode,omitempty"`
  99. SecondsFrom int64 `protobuf:"varint,5,opt,name=seconds_from,json=secondsFrom,proto3" json:"seconds_from,omitempty"`
  100. SecondsTo int64 `protobuf:"varint,6,opt,name=seconds_to,json=secondsTo,proto3" json:"seconds_to,omitempty"`
  101. Padding string `protobuf:"bytes,7,opt,name=padding,proto3" json:"padding,omitempty"`
  102. unknownFields protoimpl.UnknownFields
  103. sizeCache protoimpl.SizeCache
  104. }
  105. func (x *Config) Reset() {
  106. *x = Config{}
  107. mi := &file_proxy_vless_inbound_config_proto_msgTypes[1]
  108. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  109. ms.StoreMessageInfo(mi)
  110. }
  111. func (x *Config) String() string {
  112. return protoimpl.X.MessageStringOf(x)
  113. }
  114. func (*Config) ProtoMessage() {}
  115. func (x *Config) ProtoReflect() protoreflect.Message {
  116. mi := &file_proxy_vless_inbound_config_proto_msgTypes[1]
  117. if x != nil {
  118. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  119. if ms.LoadMessageInfo() == nil {
  120. ms.StoreMessageInfo(mi)
  121. }
  122. return ms
  123. }
  124. return mi.MessageOf(x)
  125. }
  126. // Deprecated: Use Config.ProtoReflect.Descriptor instead.
  127. func (*Config) Descriptor() ([]byte, []int) {
  128. return file_proxy_vless_inbound_config_proto_rawDescGZIP(), []int{1}
  129. }
  130. func (x *Config) GetClients() []*protocol.User {
  131. if x != nil {
  132. return x.Clients
  133. }
  134. return nil
  135. }
  136. func (x *Config) GetFallbacks() []*Fallback {
  137. if x != nil {
  138. return x.Fallbacks
  139. }
  140. return nil
  141. }
  142. func (x *Config) GetDecryption() string {
  143. if x != nil {
  144. return x.Decryption
  145. }
  146. return ""
  147. }
  148. func (x *Config) GetXorMode() uint32 {
  149. if x != nil {
  150. return x.XorMode
  151. }
  152. return 0
  153. }
  154. func (x *Config) GetSecondsFrom() int64 {
  155. if x != nil {
  156. return x.SecondsFrom
  157. }
  158. return 0
  159. }
  160. func (x *Config) GetSecondsTo() int64 {
  161. if x != nil {
  162. return x.SecondsTo
  163. }
  164. return 0
  165. }
  166. func (x *Config) GetPadding() string {
  167. if x != nil {
  168. return x.Padding
  169. }
  170. return ""
  171. }
  172. var File_proxy_vless_inbound_config_proto protoreflect.FileDescriptor
  173. const file_proxy_vless_inbound_config_proto_rawDesc = "" +
  174. "\n" +
  175. " proxy/vless/inbound/config.proto\x12\x18xray.proxy.vless.inbound\x1a\x1acommon/protocol/user.proto\"\x82\x01\n" +
  176. "\bFallback\x12\x12\n" +
  177. "\x04name\x18\x01 \x01(\tR\x04name\x12\x12\n" +
  178. "\x04alpn\x18\x02 \x01(\tR\x04alpn\x12\x12\n" +
  179. "\x04path\x18\x03 \x01(\tR\x04path\x12\x12\n" +
  180. "\x04type\x18\x04 \x01(\tR\x04type\x12\x12\n" +
  181. "\x04dest\x18\x05 \x01(\tR\x04dest\x12\x12\n" +
  182. "\x04xver\x18\x06 \x01(\x04R\x04xver\"\x96\x02\n" +
  183. "\x06Config\x124\n" +
  184. "\aclients\x18\x01 \x03(\v2\x1a.xray.common.protocol.UserR\aclients\x12@\n" +
  185. "\tfallbacks\x18\x02 \x03(\v2\".xray.proxy.vless.inbound.FallbackR\tfallbacks\x12\x1e\n" +
  186. "\n" +
  187. "decryption\x18\x03 \x01(\tR\n" +
  188. "decryption\x12\x18\n" +
  189. "\axorMode\x18\x04 \x01(\rR\axorMode\x12!\n" +
  190. "\fseconds_from\x18\x05 \x01(\x03R\vsecondsFrom\x12\x1d\n" +
  191. "\n" +
  192. "seconds_to\x18\x06 \x01(\x03R\tsecondsTo\x12\x18\n" +
  193. "\apadding\x18\a \x01(\tR\apaddingBj\n" +
  194. "\x1ccom.xray.proxy.vless.inboundP\x01Z-github.com/xtls/xray-core/proxy/vless/inbound\xaa\x02\x18Xray.Proxy.Vless.Inboundb\x06proto3"
  195. var (
  196. file_proxy_vless_inbound_config_proto_rawDescOnce sync.Once
  197. file_proxy_vless_inbound_config_proto_rawDescData []byte
  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(unsafe.Slice(unsafe.StringData(file_proxy_vless_inbound_config_proto_rawDesc), len(file_proxy_vless_inbound_config_proto_rawDesc)))
  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: unsafe.Slice(unsafe.StringData(file_proxy_vless_inbound_config_proto_rawDesc), len(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_goTypes = nil
  241. file_proxy_vless_inbound_config_proto_depIdxs = nil
  242. }