config.pb.go 7.2 KB

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