config.pb.go 7.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // versions:
  3. // protoc-gen-go v1.34.2
  4. // protoc v5.28.0
  5. // source: proxy/dokodemo/config.proto
  6. package dokodemo
  7. import (
  8. net "github.com/xtls/xray-core/common/net"
  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. Address *net.IPOrDomain `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
  25. Port uint32 `protobuf:"varint,2,opt,name=port,proto3" json:"port,omitempty"`
  26. // List of networks that the Dokodemo accepts.
  27. Networks []net.Network `protobuf:"varint,7,rep,packed,name=networks,proto3,enum=xray.common.net.Network" json:"networks,omitempty"`
  28. FollowRedirect bool `protobuf:"varint,5,opt,name=follow_redirect,json=followRedirect,proto3" json:"follow_redirect,omitempty"`
  29. UserLevel uint32 `protobuf:"varint,6,opt,name=user_level,json=userLevel,proto3" json:"user_level,omitempty"`
  30. }
  31. func (x *Config) Reset() {
  32. *x = Config{}
  33. if protoimpl.UnsafeEnabled {
  34. mi := &file_proxy_dokodemo_config_proto_msgTypes[0]
  35. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  36. ms.StoreMessageInfo(mi)
  37. }
  38. }
  39. func (x *Config) String() string {
  40. return protoimpl.X.MessageStringOf(x)
  41. }
  42. func (*Config) ProtoMessage() {}
  43. func (x *Config) ProtoReflect() protoreflect.Message {
  44. mi := &file_proxy_dokodemo_config_proto_msgTypes[0]
  45. if protoimpl.UnsafeEnabled && x != nil {
  46. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  47. if ms.LoadMessageInfo() == nil {
  48. ms.StoreMessageInfo(mi)
  49. }
  50. return ms
  51. }
  52. return mi.MessageOf(x)
  53. }
  54. // Deprecated: Use Config.ProtoReflect.Descriptor instead.
  55. func (*Config) Descriptor() ([]byte, []int) {
  56. return file_proxy_dokodemo_config_proto_rawDescGZIP(), []int{0}
  57. }
  58. func (x *Config) GetAddress() *net.IPOrDomain {
  59. if x != nil {
  60. return x.Address
  61. }
  62. return nil
  63. }
  64. func (x *Config) GetPort() uint32 {
  65. if x != nil {
  66. return x.Port
  67. }
  68. return 0
  69. }
  70. func (x *Config) GetNetworks() []net.Network {
  71. if x != nil {
  72. return x.Networks
  73. }
  74. return nil
  75. }
  76. func (x *Config) GetFollowRedirect() bool {
  77. if x != nil {
  78. return x.FollowRedirect
  79. }
  80. return false
  81. }
  82. func (x *Config) GetUserLevel() uint32 {
  83. if x != nil {
  84. return x.UserLevel
  85. }
  86. return 0
  87. }
  88. var File_proxy_dokodemo_config_proto protoreflect.FileDescriptor
  89. var file_proxy_dokodemo_config_proto_rawDesc = []byte{
  90. 0x0a, 0x1b, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2f, 0x64, 0x6f, 0x6b, 0x6f, 0x64, 0x65, 0x6d, 0x6f,
  91. 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x13, 0x78,
  92. 0x72, 0x61, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x64, 0x6f, 0x6b, 0x6f, 0x64, 0x65,
  93. 0x6d, 0x6f, 0x1a, 0x18, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x6e, 0x65, 0x74, 0x2f, 0x61,
  94. 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x18, 0x63, 0x6f,
  95. 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x6e, 0x65, 0x74, 0x2f, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b,
  96. 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xd1, 0x01, 0x0a, 0x06, 0x43, 0x6f, 0x6e, 0x66, 0x69,
  97. 0x67, 0x12, 0x35, 0x0a, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01,
  98. 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e,
  99. 0x2e, 0x6e, 0x65, 0x74, 0x2e, 0x49, 0x50, 0x4f, 0x72, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x52,
  100. 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x6f, 0x72, 0x74,
  101. 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x04, 0x70, 0x6f, 0x72, 0x74, 0x12, 0x34, 0x0a, 0x08,
  102. 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x73, 0x18, 0x07, 0x20, 0x03, 0x28, 0x0e, 0x32, 0x18,
  103. 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x6e, 0x65, 0x74,
  104. 0x2e, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x52, 0x08, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72,
  105. 0x6b, 0x73, 0x12, 0x27, 0x0a, 0x0f, 0x66, 0x6f, 0x6c, 0x6c, 0x6f, 0x77, 0x5f, 0x72, 0x65, 0x64,
  106. 0x69, 0x72, 0x65, 0x63, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0e, 0x66, 0x6f, 0x6c,
  107. 0x6c, 0x6f, 0x77, 0x52, 0x65, 0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x75,
  108. 0x73, 0x65, 0x72, 0x5f, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0d, 0x52,
  109. 0x09, 0x75, 0x73, 0x65, 0x72, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x42, 0x5b, 0x0a, 0x17, 0x63, 0x6f,
  110. 0x6d, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x64, 0x6f, 0x6b,
  111. 0x6f, 0x64, 0x65, 0x6d, 0x6f, 0x50, 0x01, 0x5a, 0x28, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e,
  112. 0x63, 0x6f, 0x6d, 0x2f, 0x78, 0x74, 0x6c, 0x73, 0x2f, 0x78, 0x72, 0x61, 0x79, 0x2d, 0x63, 0x6f,
  113. 0x72, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2f, 0x64, 0x6f, 0x6b, 0x6f, 0x64, 0x65, 0x6d,
  114. 0x6f, 0xaa, 0x02, 0x13, 0x58, 0x72, 0x61, 0x79, 0x2e, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x44,
  115. 0x6f, 0x6b, 0x6f, 0x64, 0x65, 0x6d, 0x6f, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
  116. }
  117. var (
  118. file_proxy_dokodemo_config_proto_rawDescOnce sync.Once
  119. file_proxy_dokodemo_config_proto_rawDescData = file_proxy_dokodemo_config_proto_rawDesc
  120. )
  121. func file_proxy_dokodemo_config_proto_rawDescGZIP() []byte {
  122. file_proxy_dokodemo_config_proto_rawDescOnce.Do(func() {
  123. file_proxy_dokodemo_config_proto_rawDescData = protoimpl.X.CompressGZIP(file_proxy_dokodemo_config_proto_rawDescData)
  124. })
  125. return file_proxy_dokodemo_config_proto_rawDescData
  126. }
  127. var file_proxy_dokodemo_config_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
  128. var file_proxy_dokodemo_config_proto_goTypes = []any{
  129. (*Config)(nil), // 0: xray.proxy.dokodemo.Config
  130. (*net.IPOrDomain)(nil), // 1: xray.common.net.IPOrDomain
  131. (net.Network)(0), // 2: xray.common.net.Network
  132. }
  133. var file_proxy_dokodemo_config_proto_depIdxs = []int32{
  134. 1, // 0: xray.proxy.dokodemo.Config.address:type_name -> xray.common.net.IPOrDomain
  135. 2, // 1: xray.proxy.dokodemo.Config.networks:type_name -> xray.common.net.Network
  136. 2, // [2:2] is the sub-list for method output_type
  137. 2, // [2:2] is the sub-list for method input_type
  138. 2, // [2:2] is the sub-list for extension type_name
  139. 2, // [2:2] is the sub-list for extension extendee
  140. 0, // [0:2] is the sub-list for field type_name
  141. }
  142. func init() { file_proxy_dokodemo_config_proto_init() }
  143. func file_proxy_dokodemo_config_proto_init() {
  144. if File_proxy_dokodemo_config_proto != nil {
  145. return
  146. }
  147. if !protoimpl.UnsafeEnabled {
  148. file_proxy_dokodemo_config_proto_msgTypes[0].Exporter = func(v any, i int) any {
  149. switch v := v.(*Config); i {
  150. case 0:
  151. return &v.state
  152. case 1:
  153. return &v.sizeCache
  154. case 2:
  155. return &v.unknownFields
  156. default:
  157. return nil
  158. }
  159. }
  160. }
  161. type x struct{}
  162. out := protoimpl.TypeBuilder{
  163. File: protoimpl.DescBuilder{
  164. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  165. RawDescriptor: file_proxy_dokodemo_config_proto_rawDesc,
  166. NumEnums: 0,
  167. NumMessages: 1,
  168. NumExtensions: 0,
  169. NumServices: 0,
  170. },
  171. GoTypes: file_proxy_dokodemo_config_proto_goTypes,
  172. DependencyIndexes: file_proxy_dokodemo_config_proto_depIdxs,
  173. MessageInfos: file_proxy_dokodemo_config_proto_msgTypes,
  174. }.Build()
  175. File_proxy_dokodemo_config_proto = out.File
  176. file_proxy_dokodemo_config_proto_rawDesc = nil
  177. file_proxy_dokodemo_config_proto_goTypes = nil
  178. file_proxy_dokodemo_config_proto_depIdxs = nil
  179. }