github.com/xmplusdev/xray-core@v1.8.10/proxy/dokodemo/config.pb.go (about) 1 // Code generated by protoc-gen-go. DO NOT EDIT. 2 // versions: 3 // protoc-gen-go v1.33.0 4 // protoc v4.23.1 5 // source: proxy/dokodemo/config.proto 6 7 package dokodemo 8 9 import ( 10 net "github.com/xmplusdev/xray-core/common/net" 11 protoreflect "google.golang.org/protobuf/reflect/protoreflect" 12 protoimpl "google.golang.org/protobuf/runtime/protoimpl" 13 reflect "reflect" 14 sync "sync" 15 ) 16 17 const ( 18 // Verify that this generated code is sufficiently up-to-date. 19 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) 20 // Verify that runtime/protoimpl is sufficiently up-to-date. 21 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) 22 ) 23 24 type Config struct { 25 state protoimpl.MessageState 26 sizeCache protoimpl.SizeCache 27 unknownFields protoimpl.UnknownFields 28 29 Address *net.IPOrDomain `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` 30 Port uint32 `protobuf:"varint,2,opt,name=port,proto3" json:"port,omitempty"` 31 // List of networks that the Dokodemo accepts. 32 // Deprecated. Use networks. 33 // 34 // Deprecated: Marked as deprecated in proxy/dokodemo/config.proto. 35 NetworkList *net.NetworkList `protobuf:"bytes,3,opt,name=network_list,json=networkList,proto3" json:"network_list,omitempty"` 36 // List of networks that the Dokodemo accepts. 37 Networks []net.Network `protobuf:"varint,7,rep,packed,name=networks,proto3,enum=xray.common.net.Network" json:"networks,omitempty"` 38 // Deprecated: Marked as deprecated in proxy/dokodemo/config.proto. 39 Timeout uint32 `protobuf:"varint,4,opt,name=timeout,proto3" json:"timeout,omitempty"` 40 FollowRedirect bool `protobuf:"varint,5,opt,name=follow_redirect,json=followRedirect,proto3" json:"follow_redirect,omitempty"` 41 UserLevel uint32 `protobuf:"varint,6,opt,name=user_level,json=userLevel,proto3" json:"user_level,omitempty"` 42 } 43 44 func (x *Config) Reset() { 45 *x = Config{} 46 if protoimpl.UnsafeEnabled { 47 mi := &file_proxy_dokodemo_config_proto_msgTypes[0] 48 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 49 ms.StoreMessageInfo(mi) 50 } 51 } 52 53 func (x *Config) String() string { 54 return protoimpl.X.MessageStringOf(x) 55 } 56 57 func (*Config) ProtoMessage() {} 58 59 func (x *Config) ProtoReflect() protoreflect.Message { 60 mi := &file_proxy_dokodemo_config_proto_msgTypes[0] 61 if protoimpl.UnsafeEnabled && x != nil { 62 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 63 if ms.LoadMessageInfo() == nil { 64 ms.StoreMessageInfo(mi) 65 } 66 return ms 67 } 68 return mi.MessageOf(x) 69 } 70 71 // Deprecated: Use Config.ProtoReflect.Descriptor instead. 72 func (*Config) Descriptor() ([]byte, []int) { 73 return file_proxy_dokodemo_config_proto_rawDescGZIP(), []int{0} 74 } 75 76 func (x *Config) GetAddress() *net.IPOrDomain { 77 if x != nil { 78 return x.Address 79 } 80 return nil 81 } 82 83 func (x *Config) GetPort() uint32 { 84 if x != nil { 85 return x.Port 86 } 87 return 0 88 } 89 90 // Deprecated: Marked as deprecated in proxy/dokodemo/config.proto. 91 func (x *Config) GetNetworkList() *net.NetworkList { 92 if x != nil { 93 return x.NetworkList 94 } 95 return nil 96 } 97 98 func (x *Config) GetNetworks() []net.Network { 99 if x != nil { 100 return x.Networks 101 } 102 return nil 103 } 104 105 // Deprecated: Marked as deprecated in proxy/dokodemo/config.proto. 106 func (x *Config) GetTimeout() uint32 { 107 if x != nil { 108 return x.Timeout 109 } 110 return 0 111 } 112 113 func (x *Config) GetFollowRedirect() bool { 114 if x != nil { 115 return x.FollowRedirect 116 } 117 return false 118 } 119 120 func (x *Config) GetUserLevel() uint32 { 121 if x != nil { 122 return x.UserLevel 123 } 124 return 0 125 } 126 127 var File_proxy_dokodemo_config_proto protoreflect.FileDescriptor 128 129 var file_proxy_dokodemo_config_proto_rawDesc = []byte{ 130 0x0a, 0x1b, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2f, 0x64, 0x6f, 0x6b, 0x6f, 0x64, 0x65, 0x6d, 0x6f, 131 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x13, 0x78, 132 0x72, 0x61, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x64, 0x6f, 0x6b, 0x6f, 0x64, 0x65, 133 0x6d, 0x6f, 0x1a, 0x18, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x6e, 0x65, 0x74, 0x2f, 0x61, 134 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x18, 0x63, 0x6f, 135 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x6e, 0x65, 0x74, 0x2f, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 136 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xb4, 0x02, 0x0a, 0x06, 0x43, 0x6f, 0x6e, 0x66, 0x69, 137 0x67, 0x12, 0x35, 0x0a, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 138 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 139 0x2e, 0x6e, 0x65, 0x74, 0x2e, 0x49, 0x50, 0x4f, 0x72, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x52, 140 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x6f, 0x72, 0x74, 141 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x04, 0x70, 0x6f, 0x72, 0x74, 0x12, 0x43, 0x0a, 0x0c, 142 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x5f, 0x6c, 0x69, 0x73, 0x74, 0x18, 0x03, 0x20, 0x01, 143 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 144 0x2e, 0x6e, 0x65, 0x74, 0x2e, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x4c, 0x69, 0x73, 0x74, 145 0x42, 0x02, 0x18, 0x01, 0x52, 0x0b, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x4c, 0x69, 0x73, 146 0x74, 0x12, 0x34, 0x0a, 0x08, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x73, 0x18, 0x07, 0x20, 147 0x03, 0x28, 0x0e, 0x32, 0x18, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 148 0x6e, 0x2e, 0x6e, 0x65, 0x74, 0x2e, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x52, 0x08, 0x6e, 149 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x73, 0x12, 0x1c, 0x0a, 0x07, 0x74, 0x69, 0x6d, 0x65, 0x6f, 150 0x75, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0d, 0x42, 0x02, 0x18, 0x01, 0x52, 0x07, 0x74, 0x69, 151 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x12, 0x27, 0x0a, 0x0f, 0x66, 0x6f, 0x6c, 0x6c, 0x6f, 0x77, 0x5f, 152 0x72, 0x65, 0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0e, 153 0x66, 0x6f, 0x6c, 0x6c, 0x6f, 0x77, 0x52, 0x65, 0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 0x12, 0x1d, 154 0x0a, 0x0a, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x18, 0x06, 0x20, 0x01, 155 0x28, 0x0d, 0x52, 0x09, 0x75, 0x73, 0x65, 0x72, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x42, 0x5b, 0x0a, 156 0x17, 0x63, 0x6f, 0x6d, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2e, 157 0x64, 0x6f, 0x6b, 0x6f, 0x64, 0x65, 0x6d, 0x6f, 0x50, 0x01, 0x5a, 0x28, 0x67, 0x69, 0x74, 0x68, 158 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x78, 0x74, 0x6c, 0x73, 0x2f, 0x78, 0x72, 0x61, 0x79, 159 0x2d, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2f, 0x64, 0x6f, 0x6b, 0x6f, 160 0x64, 0x65, 0x6d, 0x6f, 0xaa, 0x02, 0x13, 0x58, 0x72, 0x61, 0x79, 0x2e, 0x50, 0x72, 0x6f, 0x78, 161 0x79, 0x2e, 0x44, 0x6f, 0x6b, 0x6f, 0x64, 0x65, 0x6d, 0x6f, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 162 0x6f, 0x33, 163 } 164 165 var ( 166 file_proxy_dokodemo_config_proto_rawDescOnce sync.Once 167 file_proxy_dokodemo_config_proto_rawDescData = file_proxy_dokodemo_config_proto_rawDesc 168 ) 169 170 func file_proxy_dokodemo_config_proto_rawDescGZIP() []byte { 171 file_proxy_dokodemo_config_proto_rawDescOnce.Do(func() { 172 file_proxy_dokodemo_config_proto_rawDescData = protoimpl.X.CompressGZIP(file_proxy_dokodemo_config_proto_rawDescData) 173 }) 174 return file_proxy_dokodemo_config_proto_rawDescData 175 } 176 177 var file_proxy_dokodemo_config_proto_msgTypes = make([]protoimpl.MessageInfo, 1) 178 var file_proxy_dokodemo_config_proto_goTypes = []interface{}{ 179 (*Config)(nil), // 0: xray.proxy.dokodemo.Config 180 (*net.IPOrDomain)(nil), // 1: xray.common.net.IPOrDomain 181 (*net.NetworkList)(nil), // 2: xray.common.net.NetworkList 182 (net.Network)(0), // 3: xray.common.net.Network 183 } 184 var file_proxy_dokodemo_config_proto_depIdxs = []int32{ 185 1, // 0: xray.proxy.dokodemo.Config.address:type_name -> xray.common.net.IPOrDomain 186 2, // 1: xray.proxy.dokodemo.Config.network_list:type_name -> xray.common.net.NetworkList 187 3, // 2: xray.proxy.dokodemo.Config.networks:type_name -> xray.common.net.Network 188 3, // [3:3] is the sub-list for method output_type 189 3, // [3:3] is the sub-list for method input_type 190 3, // [3:3] is the sub-list for extension type_name 191 3, // [3:3] is the sub-list for extension extendee 192 0, // [0:3] is the sub-list for field type_name 193 } 194 195 func init() { file_proxy_dokodemo_config_proto_init() } 196 func file_proxy_dokodemo_config_proto_init() { 197 if File_proxy_dokodemo_config_proto != nil { 198 return 199 } 200 if !protoimpl.UnsafeEnabled { 201 file_proxy_dokodemo_config_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 202 switch v := v.(*Config); i { 203 case 0: 204 return &v.state 205 case 1: 206 return &v.sizeCache 207 case 2: 208 return &v.unknownFields 209 default: 210 return nil 211 } 212 } 213 } 214 type x struct{} 215 out := protoimpl.TypeBuilder{ 216 File: protoimpl.DescBuilder{ 217 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 218 RawDescriptor: file_proxy_dokodemo_config_proto_rawDesc, 219 NumEnums: 0, 220 NumMessages: 1, 221 NumExtensions: 0, 222 NumServices: 0, 223 }, 224 GoTypes: file_proxy_dokodemo_config_proto_goTypes, 225 DependencyIndexes: file_proxy_dokodemo_config_proto_depIdxs, 226 MessageInfos: file_proxy_dokodemo_config_proto_msgTypes, 227 }.Build() 228 File_proxy_dokodemo_config_proto = out.File 229 file_proxy_dokodemo_config_proto_rawDesc = nil 230 file_proxy_dokodemo_config_proto_goTypes = nil 231 file_proxy_dokodemo_config_proto_depIdxs = nil 232 }