config.pb.go 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // versions:
  3. // protoc-gen-go v1.36.11
  4. // protoc v6.33.5
  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. unsafe "unsafe"
  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 `protogen:"open.v1"`
  23. Address *net.IPOrDomain `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
  24. Port uint32 `protobuf:"varint,2,opt,name=port,proto3" json:"port,omitempty"`
  25. PortMap map[string]string `protobuf:"bytes,3,rep,name=port_map,json=portMap,proto3" json:"port_map,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
  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. unknownFields protoimpl.UnknownFields
  31. sizeCache protoimpl.SizeCache
  32. }
  33. func (x *Config) Reset() {
  34. *x = Config{}
  35. mi := &file_proxy_dokodemo_config_proto_msgTypes[0]
  36. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  37. ms.StoreMessageInfo(mi)
  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 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) GetPortMap() map[string]string {
  71. if x != nil {
  72. return x.PortMap
  73. }
  74. return nil
  75. }
  76. func (x *Config) GetNetworks() []net.Network {
  77. if x != nil {
  78. return x.Networks
  79. }
  80. return nil
  81. }
  82. func (x *Config) GetFollowRedirect() bool {
  83. if x != nil {
  84. return x.FollowRedirect
  85. }
  86. return false
  87. }
  88. func (x *Config) GetUserLevel() uint32 {
  89. if x != nil {
  90. return x.UserLevel
  91. }
  92. return 0
  93. }
  94. var File_proxy_dokodemo_config_proto protoreflect.FileDescriptor
  95. const file_proxy_dokodemo_config_proto_rawDesc = "" +
  96. "\n" +
  97. "\x1bproxy/dokodemo/config.proto\x12\x13xray.proxy.dokodemo\x1a\x18common/net/address.proto\x1a\x18common/net/network.proto\"\xd2\x02\n" +
  98. "\x06Config\x125\n" +
  99. "\aaddress\x18\x01 \x01(\v2\x1b.xray.common.net.IPOrDomainR\aaddress\x12\x12\n" +
  100. "\x04port\x18\x02 \x01(\rR\x04port\x12C\n" +
  101. "\bport_map\x18\x03 \x03(\v2(.xray.proxy.dokodemo.Config.PortMapEntryR\aportMap\x124\n" +
  102. "\bnetworks\x18\a \x03(\x0e2\x18.xray.common.net.NetworkR\bnetworks\x12'\n" +
  103. "\x0ffollow_redirect\x18\x05 \x01(\bR\x0efollowRedirect\x12\x1d\n" +
  104. "\n" +
  105. "user_level\x18\x06 \x01(\rR\tuserLevel\x1a:\n" +
  106. "\fPortMapEntry\x12\x10\n" +
  107. "\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" +
  108. "\x05value\x18\x02 \x01(\tR\x05value:\x028\x01B[\n" +
  109. "\x17com.xray.proxy.dokodemoP\x01Z(github.com/xtls/xray-core/proxy/dokodemo\xaa\x02\x13Xray.Proxy.Dokodemob\x06proto3"
  110. var (
  111. file_proxy_dokodemo_config_proto_rawDescOnce sync.Once
  112. file_proxy_dokodemo_config_proto_rawDescData []byte
  113. )
  114. func file_proxy_dokodemo_config_proto_rawDescGZIP() []byte {
  115. file_proxy_dokodemo_config_proto_rawDescOnce.Do(func() {
  116. file_proxy_dokodemo_config_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_proxy_dokodemo_config_proto_rawDesc), len(file_proxy_dokodemo_config_proto_rawDesc)))
  117. })
  118. return file_proxy_dokodemo_config_proto_rawDescData
  119. }
  120. var file_proxy_dokodemo_config_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
  121. var file_proxy_dokodemo_config_proto_goTypes = []any{
  122. (*Config)(nil), // 0: xray.proxy.dokodemo.Config
  123. nil, // 1: xray.proxy.dokodemo.Config.PortMapEntry
  124. (*net.IPOrDomain)(nil), // 2: xray.common.net.IPOrDomain
  125. (net.Network)(0), // 3: xray.common.net.Network
  126. }
  127. var file_proxy_dokodemo_config_proto_depIdxs = []int32{
  128. 2, // 0: xray.proxy.dokodemo.Config.address:type_name -> xray.common.net.IPOrDomain
  129. 1, // 1: xray.proxy.dokodemo.Config.port_map:type_name -> xray.proxy.dokodemo.Config.PortMapEntry
  130. 3, // 2: xray.proxy.dokodemo.Config.networks:type_name -> xray.common.net.Network
  131. 3, // [3:3] is the sub-list for method output_type
  132. 3, // [3:3] is the sub-list for method input_type
  133. 3, // [3:3] is the sub-list for extension type_name
  134. 3, // [3:3] is the sub-list for extension extendee
  135. 0, // [0:3] is the sub-list for field type_name
  136. }
  137. func init() { file_proxy_dokodemo_config_proto_init() }
  138. func file_proxy_dokodemo_config_proto_init() {
  139. if File_proxy_dokodemo_config_proto != nil {
  140. return
  141. }
  142. type x struct{}
  143. out := protoimpl.TypeBuilder{
  144. File: protoimpl.DescBuilder{
  145. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  146. RawDescriptor: unsafe.Slice(unsafe.StringData(file_proxy_dokodemo_config_proto_rawDesc), len(file_proxy_dokodemo_config_proto_rawDesc)),
  147. NumEnums: 0,
  148. NumMessages: 2,
  149. NumExtensions: 0,
  150. NumServices: 0,
  151. },
  152. GoTypes: file_proxy_dokodemo_config_proto_goTypes,
  153. DependencyIndexes: file_proxy_dokodemo_config_proto_depIdxs,
  154. MessageInfos: file_proxy_dokodemo_config_proto_msgTypes,
  155. }.Build()
  156. File_proxy_dokodemo_config_proto = out.File
  157. file_proxy_dokodemo_config_proto_goTypes = nil
  158. file_proxy_dokodemo_config_proto_depIdxs = nil
  159. }