config.pb.go 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // versions:
  3. // protoc-gen-go v1.25.0
  4. // protoc v3.12.3
  5. // source: v2ray.com/core/proxy/vless/inbound/config.proto
  6. package inbound
  7. import (
  8. proto "github.com/golang/protobuf/proto"
  9. protoreflect "google.golang.org/protobuf/reflect/protoreflect"
  10. protoimpl "google.golang.org/protobuf/runtime/protoimpl"
  11. reflect "reflect"
  12. sync "sync"
  13. net "v2ray.com/core/common/net"
  14. protocol "v2ray.com/core/common/protocol"
  15. )
  16. const (
  17. // Verify that this generated code is sufficiently up-to-date.
  18. _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
  19. // Verify that runtime/protoimpl is sufficiently up-to-date.
  20. _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
  21. )
  22. // This is a compile-time assertion that a sufficiently up-to-date version
  23. // of the legacy proto package is being used.
  24. const _ = proto.ProtoPackageIsVersion4
  25. type Fallback struct {
  26. state protoimpl.MessageState
  27. sizeCache protoimpl.SizeCache
  28. unknownFields protoimpl.UnknownFields
  29. Addr *net.IPOrDomain `protobuf:"bytes,1,opt,name=addr,proto3" json:"addr,omitempty"`
  30. Port uint32 `protobuf:"varint,2,opt,name=port,proto3" json:"port,omitempty"`
  31. Unix string `protobuf:"bytes,3,opt,name=unix,proto3" json:"unix,omitempty"`
  32. }
  33. func (x *Fallback) Reset() {
  34. *x = Fallback{}
  35. if protoimpl.UnsafeEnabled {
  36. mi := &file_v2ray_com_core_proxy_vless_inbound_config_proto_msgTypes[0]
  37. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  38. ms.StoreMessageInfo(mi)
  39. }
  40. }
  41. func (x *Fallback) String() string {
  42. return protoimpl.X.MessageStringOf(x)
  43. }
  44. func (*Fallback) ProtoMessage() {}
  45. func (x *Fallback) ProtoReflect() protoreflect.Message {
  46. mi := &file_v2ray_com_core_proxy_vless_inbound_config_proto_msgTypes[0]
  47. if protoimpl.UnsafeEnabled && x != nil {
  48. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  49. if ms.LoadMessageInfo() == nil {
  50. ms.StoreMessageInfo(mi)
  51. }
  52. return ms
  53. }
  54. return mi.MessageOf(x)
  55. }
  56. // Deprecated: Use Fallback.ProtoReflect.Descriptor instead.
  57. func (*Fallback) Descriptor() ([]byte, []int) {
  58. return file_v2ray_com_core_proxy_vless_inbound_config_proto_rawDescGZIP(), []int{0}
  59. }
  60. func (x *Fallback) GetAddr() *net.IPOrDomain {
  61. if x != nil {
  62. return x.Addr
  63. }
  64. return nil
  65. }
  66. func (x *Fallback) GetPort() uint32 {
  67. if x != nil {
  68. return x.Port
  69. }
  70. return 0
  71. }
  72. func (x *Fallback) GetUnix() string {
  73. if x != nil {
  74. return x.Unix
  75. }
  76. return ""
  77. }
  78. type Config struct {
  79. state protoimpl.MessageState
  80. sizeCache protoimpl.SizeCache
  81. unknownFields protoimpl.UnknownFields
  82. User []*protocol.User `protobuf:"bytes,1,rep,name=user,proto3" json:"user,omitempty"`
  83. // Decryption settings. Only applies to server side, and only accepts "none" for now.
  84. Decryption string `protobuf:"bytes,2,opt,name=decryption,proto3" json:"decryption,omitempty"`
  85. Fallback *Fallback `protobuf:"bytes,3,opt,name=fallback,proto3" json:"fallback,omitempty"`
  86. }
  87. func (x *Config) Reset() {
  88. *x = Config{}
  89. if protoimpl.UnsafeEnabled {
  90. mi := &file_v2ray_com_core_proxy_vless_inbound_config_proto_msgTypes[1]
  91. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  92. ms.StoreMessageInfo(mi)
  93. }
  94. }
  95. func (x *Config) String() string {
  96. return protoimpl.X.MessageStringOf(x)
  97. }
  98. func (*Config) ProtoMessage() {}
  99. func (x *Config) ProtoReflect() protoreflect.Message {
  100. mi := &file_v2ray_com_core_proxy_vless_inbound_config_proto_msgTypes[1]
  101. if protoimpl.UnsafeEnabled && x != nil {
  102. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  103. if ms.LoadMessageInfo() == nil {
  104. ms.StoreMessageInfo(mi)
  105. }
  106. return ms
  107. }
  108. return mi.MessageOf(x)
  109. }
  110. // Deprecated: Use Config.ProtoReflect.Descriptor instead.
  111. func (*Config) Descriptor() ([]byte, []int) {
  112. return file_v2ray_com_core_proxy_vless_inbound_config_proto_rawDescGZIP(), []int{1}
  113. }
  114. func (x *Config) GetUser() []*protocol.User {
  115. if x != nil {
  116. return x.User
  117. }
  118. return nil
  119. }
  120. func (x *Config) GetDecryption() string {
  121. if x != nil {
  122. return x.Decryption
  123. }
  124. return ""
  125. }
  126. func (x *Config) GetFallback() *Fallback {
  127. if x != nil {
  128. return x.Fallback
  129. }
  130. return nil
  131. }
  132. var File_v2ray_com_core_proxy_vless_inbound_config_proto protoreflect.FileDescriptor
  133. var file_v2ray_com_core_proxy_vless_inbound_config_proto_rawDesc = []byte{
  134. 0x0a, 0x2f, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x63, 0x6f, 0x72, 0x65,
  135. 0x2f, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2f, 0x76, 0x6c, 0x65, 0x73, 0x73, 0x2f, 0x69, 0x6e, 0x62,
  136. 0x6f, 0x75, 0x6e, 0x64, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74,
  137. 0x6f, 0x12, 0x1e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x70, 0x72,
  138. 0x6f, 0x78, 0x79, 0x2e, 0x76, 0x6c, 0x65, 0x73, 0x73, 0x2e, 0x69, 0x6e, 0x62, 0x6f, 0x75, 0x6e,
  139. 0x64, 0x1a, 0x27, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x63, 0x6f, 0x72,
  140. 0x65, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x6e, 0x65, 0x74, 0x2f, 0x61, 0x64, 0x64,
  141. 0x72, 0x65, 0x73, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x29, 0x76, 0x32, 0x72, 0x61,
  142. 0x79, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f,
  143. 0x6e, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2f, 0x75, 0x73, 0x65, 0x72, 0x2e,
  144. 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x69, 0x0a, 0x08, 0x46, 0x61, 0x6c, 0x6c, 0x62, 0x61, 0x63,
  145. 0x6b, 0x12, 0x35, 0x0a, 0x04, 0x61, 0x64, 0x64, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32,
  146. 0x21, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x63, 0x6f, 0x6d,
  147. 0x6d, 0x6f, 0x6e, 0x2e, 0x6e, 0x65, 0x74, 0x2e, 0x49, 0x50, 0x4f, 0x72, 0x44, 0x6f, 0x6d, 0x61,
  148. 0x69, 0x6e, 0x52, 0x04, 0x61, 0x64, 0x64, 0x72, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x6f, 0x72, 0x74,
  149. 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x04, 0x70, 0x6f, 0x72, 0x74, 0x12, 0x12, 0x0a, 0x04,
  150. 0x75, 0x6e, 0x69, 0x78, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x75, 0x6e, 0x69, 0x78,
  151. 0x22, 0xa4, 0x01, 0x0a, 0x06, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x34, 0x0a, 0x04, 0x75,
  152. 0x73, 0x65, 0x72, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x76, 0x32, 0x72, 0x61,
  153. 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x70, 0x72,
  154. 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x52, 0x04, 0x75, 0x73, 0x65,
  155. 0x72, 0x12, 0x1e, 0x0a, 0x0a, 0x64, 0x65, 0x63, 0x72, 0x79, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18,
  156. 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x64, 0x65, 0x63, 0x72, 0x79, 0x70, 0x74, 0x69, 0x6f,
  157. 0x6e, 0x12, 0x44, 0x0a, 0x08, 0x66, 0x61, 0x6c, 0x6c, 0x62, 0x61, 0x63, 0x6b, 0x18, 0x03, 0x20,
  158. 0x01, 0x28, 0x0b, 0x32, 0x28, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65,
  159. 0x2e, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x76, 0x6c, 0x65, 0x73, 0x73, 0x2e, 0x69, 0x6e, 0x62,
  160. 0x6f, 0x75, 0x6e, 0x64, 0x2e, 0x46, 0x61, 0x6c, 0x6c, 0x62, 0x61, 0x63, 0x6b, 0x52, 0x08, 0x66,
  161. 0x61, 0x6c, 0x6c, 0x62, 0x61, 0x63, 0x6b, 0x42, 0x50, 0x0a, 0x22, 0x63, 0x6f, 0x6d, 0x2e, 0x76,
  162. 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2e,
  163. 0x76, 0x6c, 0x65, 0x73, 0x73, 0x2e, 0x69, 0x6e, 0x62, 0x6f, 0x75, 0x6e, 0x64, 0x50, 0x01, 0x5a,
  164. 0x07, 0x69, 0x6e, 0x62, 0x6f, 0x75, 0x6e, 0x64, 0xaa, 0x02, 0x1e, 0x56, 0x32, 0x52, 0x61, 0x79,
  165. 0x2e, 0x43, 0x6f, 0x72, 0x65, 0x2e, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x56, 0x6c, 0x65, 0x73,
  166. 0x73, 0x2e, 0x49, 0x6e, 0x62, 0x6f, 0x75, 0x6e, 0x64, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f,
  167. 0x33,
  168. }
  169. var (
  170. file_v2ray_com_core_proxy_vless_inbound_config_proto_rawDescOnce sync.Once
  171. file_v2ray_com_core_proxy_vless_inbound_config_proto_rawDescData = file_v2ray_com_core_proxy_vless_inbound_config_proto_rawDesc
  172. )
  173. func file_v2ray_com_core_proxy_vless_inbound_config_proto_rawDescGZIP() []byte {
  174. file_v2ray_com_core_proxy_vless_inbound_config_proto_rawDescOnce.Do(func() {
  175. file_v2ray_com_core_proxy_vless_inbound_config_proto_rawDescData = protoimpl.X.CompressGZIP(file_v2ray_com_core_proxy_vless_inbound_config_proto_rawDescData)
  176. })
  177. return file_v2ray_com_core_proxy_vless_inbound_config_proto_rawDescData
  178. }
  179. var file_v2ray_com_core_proxy_vless_inbound_config_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
  180. var file_v2ray_com_core_proxy_vless_inbound_config_proto_goTypes = []interface{}{
  181. (*Fallback)(nil), // 0: v2ray.core.proxy.vless.inbound.Fallback
  182. (*Config)(nil), // 1: v2ray.core.proxy.vless.inbound.Config
  183. (*net.IPOrDomain)(nil), // 2: v2ray.core.common.net.IPOrDomain
  184. (*protocol.User)(nil), // 3: v2ray.core.common.protocol.User
  185. }
  186. var file_v2ray_com_core_proxy_vless_inbound_config_proto_depIdxs = []int32{
  187. 2, // 0: v2ray.core.proxy.vless.inbound.Fallback.addr:type_name -> v2ray.core.common.net.IPOrDomain
  188. 3, // 1: v2ray.core.proxy.vless.inbound.Config.user:type_name -> v2ray.core.common.protocol.User
  189. 0, // 2: v2ray.core.proxy.vless.inbound.Config.fallback:type_name -> v2ray.core.proxy.vless.inbound.Fallback
  190. 3, // [3:3] is the sub-list for method output_type
  191. 3, // [3:3] is the sub-list for method input_type
  192. 3, // [3:3] is the sub-list for extension type_name
  193. 3, // [3:3] is the sub-list for extension extendee
  194. 0, // [0:3] is the sub-list for field type_name
  195. }
  196. func init() { file_v2ray_com_core_proxy_vless_inbound_config_proto_init() }
  197. func file_v2ray_com_core_proxy_vless_inbound_config_proto_init() {
  198. if File_v2ray_com_core_proxy_vless_inbound_config_proto != nil {
  199. return
  200. }
  201. if !protoimpl.UnsafeEnabled {
  202. file_v2ray_com_core_proxy_vless_inbound_config_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
  203. switch v := v.(*Fallback); i {
  204. case 0:
  205. return &v.state
  206. case 1:
  207. return &v.sizeCache
  208. case 2:
  209. return &v.unknownFields
  210. default:
  211. return nil
  212. }
  213. }
  214. file_v2ray_com_core_proxy_vless_inbound_config_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
  215. switch v := v.(*Config); i {
  216. case 0:
  217. return &v.state
  218. case 1:
  219. return &v.sizeCache
  220. case 2:
  221. return &v.unknownFields
  222. default:
  223. return nil
  224. }
  225. }
  226. }
  227. type x struct{}
  228. out := protoimpl.TypeBuilder{
  229. File: protoimpl.DescBuilder{
  230. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  231. RawDescriptor: file_v2ray_com_core_proxy_vless_inbound_config_proto_rawDesc,
  232. NumEnums: 0,
  233. NumMessages: 2,
  234. NumExtensions: 0,
  235. NumServices: 0,
  236. },
  237. GoTypes: file_v2ray_com_core_proxy_vless_inbound_config_proto_goTypes,
  238. DependencyIndexes: file_v2ray_com_core_proxy_vless_inbound_config_proto_depIdxs,
  239. MessageInfos: file_v2ray_com_core_proxy_vless_inbound_config_proto_msgTypes,
  240. }.Build()
  241. File_v2ray_com_core_proxy_vless_inbound_config_proto = out.File
  242. file_v2ray_com_core_proxy_vless_inbound_config_proto_rawDesc = nil
  243. file_v2ray_com_core_proxy_vless_inbound_config_proto_goTypes = nil
  244. file_v2ray_com_core_proxy_vless_inbound_config_proto_depIdxs = nil
  245. }