config.pb.go 5.7 KB

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