config.pb.go 8.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // versions:
  3. // protoc-gen-go v1.30.0
  4. // protoc v3.21.12
  5. // source: app/tun/config.proto
  6. package tun
  7. import (
  8. routercommon "github.com/v2fly/v2ray-core/v5/app/router/routercommon"
  9. packetaddr "github.com/v2fly/v2ray-core/v5/common/net/packetaddr"
  10. _ "github.com/v2fly/v2ray-core/v5/common/protoext"
  11. protoreflect "google.golang.org/protobuf/reflect/protoreflect"
  12. protoimpl "google.golang.org/protobuf/runtime/protoimpl"
  13. reflect "reflect"
  14. sync "sync"
  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. type Config struct {
  23. state protoimpl.MessageState
  24. sizeCache protoimpl.SizeCache
  25. unknownFields protoimpl.UnknownFields
  26. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
  27. Mtu uint32 `protobuf:"varint,2,opt,name=mtu,proto3" json:"mtu,omitempty"`
  28. UserLevel uint32 `protobuf:"varint,3,opt,name=user_level,json=userLevel,proto3" json:"user_level,omitempty"`
  29. PacketEncoding packetaddr.PacketAddrType `protobuf:"varint,4,opt,name=packet_encoding,json=packetEncoding,proto3,enum=v2ray.core.net.packetaddr.PacketAddrType" json:"packet_encoding,omitempty"`
  30. Tag string `protobuf:"bytes,6,opt,name=tag,proto3" json:"tag,omitempty"`
  31. Ips []*routercommon.CIDR `protobuf:"bytes,7,rep,name=ips,proto3" json:"ips,omitempty"`
  32. }
  33. func (x *Config) Reset() {
  34. *x = Config{}
  35. if protoimpl.UnsafeEnabled {
  36. mi := &file_app_tun_config_proto_msgTypes[0]
  37. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  38. ms.StoreMessageInfo(mi)
  39. }
  40. }
  41. func (x *Config) String() string {
  42. return protoimpl.X.MessageStringOf(x)
  43. }
  44. func (*Config) ProtoMessage() {}
  45. func (x *Config) ProtoReflect() protoreflect.Message {
  46. mi := &file_app_tun_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 Config.ProtoReflect.Descriptor instead.
  57. func (*Config) Descriptor() ([]byte, []int) {
  58. return file_app_tun_config_proto_rawDescGZIP(), []int{0}
  59. }
  60. func (x *Config) GetName() string {
  61. if x != nil {
  62. return x.Name
  63. }
  64. return ""
  65. }
  66. func (x *Config) GetMtu() uint32 {
  67. if x != nil {
  68. return x.Mtu
  69. }
  70. return 0
  71. }
  72. func (x *Config) GetUserLevel() uint32 {
  73. if x != nil {
  74. return x.UserLevel
  75. }
  76. return 0
  77. }
  78. func (x *Config) GetPacketEncoding() packetaddr.PacketAddrType {
  79. if x != nil {
  80. return x.PacketEncoding
  81. }
  82. return packetaddr.PacketAddrType(0)
  83. }
  84. func (x *Config) GetTag() string {
  85. if x != nil {
  86. return x.Tag
  87. }
  88. return ""
  89. }
  90. func (x *Config) GetIps() []*routercommon.CIDR {
  91. if x != nil {
  92. return x.Ips
  93. }
  94. return nil
  95. }
  96. var File_app_tun_config_proto protoreflect.FileDescriptor
  97. var file_app_tun_config_proto_rawDesc = []byte{
  98. 0x0a, 0x14, 0x61, 0x70, 0x70, 0x2f, 0x74, 0x75, 0x6e, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67,
  99. 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x12, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f,
  100. 0x72, 0x65, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x74, 0x75, 0x6e, 0x1a, 0x24, 0x61, 0x70, 0x70, 0x2f,
  101. 0x72, 0x6f, 0x75, 0x74, 0x65, 0x72, 0x2f, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x72, 0x63, 0x6f, 0x6d,
  102. 0x6d, 0x6f, 0x6e, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
  103. 0x1a, 0x22, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x6e, 0x65, 0x74, 0x2f, 0x70, 0x61, 0x63,
  104. 0x6b, 0x65, 0x74, 0x61, 0x64, 0x64, 0x72, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x70,
  105. 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x20, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x70, 0x72, 0x6f,
  106. 0x74, 0x6f, 0x65, 0x78, 0x74, 0x2f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73,
  107. 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x83, 0x02, 0x0a, 0x06, 0x43, 0x6f, 0x6e, 0x66, 0x69,
  108. 0x67, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52,
  109. 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x6d, 0x74, 0x75, 0x18, 0x02, 0x20, 0x01,
  110. 0x28, 0x0d, 0x52, 0x03, 0x6d, 0x74, 0x75, 0x12, 0x1d, 0x0a, 0x0a, 0x75, 0x73, 0x65, 0x72, 0x5f,
  111. 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x09, 0x75, 0x73, 0x65,
  112. 0x72, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x12, 0x52, 0x0a, 0x0f, 0x70, 0x61, 0x63, 0x6b, 0x65, 0x74,
  113. 0x5f, 0x65, 0x6e, 0x63, 0x6f, 0x64, 0x69, 0x6e, 0x67, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, 0x32,
  114. 0x29, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x6e, 0x65, 0x74,
  115. 0x2e, 0x70, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x61, 0x64, 0x64, 0x72, 0x2e, 0x50, 0x61, 0x63, 0x6b,
  116. 0x65, 0x74, 0x41, 0x64, 0x64, 0x72, 0x54, 0x79, 0x70, 0x65, 0x52, 0x0e, 0x70, 0x61, 0x63, 0x6b,
  117. 0x65, 0x74, 0x45, 0x6e, 0x63, 0x6f, 0x64, 0x69, 0x6e, 0x67, 0x12, 0x10, 0x0a, 0x03, 0x74, 0x61,
  118. 0x67, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x74, 0x61, 0x67, 0x12, 0x3a, 0x0a, 0x03,
  119. 0x69, 0x70, 0x73, 0x18, 0x07, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x28, 0x2e, 0x76, 0x32, 0x72, 0x61,
  120. 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x72, 0x6f, 0x75, 0x74, 0x65,
  121. 0x72, 0x2e, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x72, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x43,
  122. 0x49, 0x44, 0x52, 0x52, 0x03, 0x69, 0x70, 0x73, 0x3a, 0x12, 0x82, 0xb5, 0x18, 0x0e, 0x0a, 0x07,
  123. 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x03, 0x74, 0x75, 0x6e, 0x42, 0x57, 0x0a, 0x16,
  124. 0x63, 0x6f, 0x6d, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61,
  125. 0x70, 0x70, 0x2e, 0x74, 0x75, 0x6e, 0x50, 0x01, 0x5a, 0x26, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62,
  126. 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x76, 0x32, 0x66, 0x6c, 0x79, 0x2f, 0x76, 0x32, 0x72, 0x61, 0x79,
  127. 0x2d, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x76, 0x35, 0x2f, 0x61, 0x70, 0x70, 0x2f, 0x74, 0x75, 0x6e,
  128. 0xaa, 0x02, 0x12, 0x56, 0x32, 0x52, 0x61, 0x79, 0x2e, 0x43, 0x6f, 0x72, 0x65, 0x2e, 0x41, 0x70,
  129. 0x70, 0x2e, 0x54, 0x75, 0x6e, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
  130. }
  131. var (
  132. file_app_tun_config_proto_rawDescOnce sync.Once
  133. file_app_tun_config_proto_rawDescData = file_app_tun_config_proto_rawDesc
  134. )
  135. func file_app_tun_config_proto_rawDescGZIP() []byte {
  136. file_app_tun_config_proto_rawDescOnce.Do(func() {
  137. file_app_tun_config_proto_rawDescData = protoimpl.X.CompressGZIP(file_app_tun_config_proto_rawDescData)
  138. })
  139. return file_app_tun_config_proto_rawDescData
  140. }
  141. var file_app_tun_config_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
  142. var file_app_tun_config_proto_goTypes = []interface{}{
  143. (*Config)(nil), // 0: v2ray.core.app.tun.Config
  144. (packetaddr.PacketAddrType)(0), // 1: v2ray.core.net.packetaddr.PacketAddrType
  145. (*routercommon.CIDR)(nil), // 2: v2ray.core.app.router.routercommon.CIDR
  146. }
  147. var file_app_tun_config_proto_depIdxs = []int32{
  148. 1, // 0: v2ray.core.app.tun.Config.packet_encoding:type_name -> v2ray.core.net.packetaddr.PacketAddrType
  149. 2, // 1: v2ray.core.app.tun.Config.ips:type_name -> v2ray.core.app.router.routercommon.CIDR
  150. 2, // [2:2] is the sub-list for method output_type
  151. 2, // [2:2] is the sub-list for method input_type
  152. 2, // [2:2] is the sub-list for extension type_name
  153. 2, // [2:2] is the sub-list for extension extendee
  154. 0, // [0:2] is the sub-list for field type_name
  155. }
  156. func init() { file_app_tun_config_proto_init() }
  157. func file_app_tun_config_proto_init() {
  158. if File_app_tun_config_proto != nil {
  159. return
  160. }
  161. if !protoimpl.UnsafeEnabled {
  162. file_app_tun_config_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
  163. switch v := v.(*Config); i {
  164. case 0:
  165. return &v.state
  166. case 1:
  167. return &v.sizeCache
  168. case 2:
  169. return &v.unknownFields
  170. default:
  171. return nil
  172. }
  173. }
  174. }
  175. type x struct{}
  176. out := protoimpl.TypeBuilder{
  177. File: protoimpl.DescBuilder{
  178. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  179. RawDescriptor: file_app_tun_config_proto_rawDesc,
  180. NumEnums: 0,
  181. NumMessages: 1,
  182. NumExtensions: 0,
  183. NumServices: 0,
  184. },
  185. GoTypes: file_app_tun_config_proto_goTypes,
  186. DependencyIndexes: file_app_tun_config_proto_depIdxs,
  187. MessageInfos: file_app_tun_config_proto_msgTypes,
  188. }.Build()
  189. File_app_tun_config_proto = out.File
  190. file_app_tun_config_proto_rawDesc = nil
  191. file_app_tun_config_proto_goTypes = nil
  192. file_app_tun_config_proto_depIdxs = nil
  193. }