config.pb.go 7.0 KB

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