config.pb.go 10.0 KB

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