github.com/v2fly/v2ray-core/v4@v4.45.2/proxy/dokodemo/config.pb.go (about) 1 // Code generated by protoc-gen-go. DO NOT EDIT. 2 // versions: 3 // protoc-gen-go v1.27.1 4 // protoc v3.17.3 5 // source: proxy/dokodemo/config.proto 6 7 package dokodemo 8 9 import ( 10 net "github.com/v2fly/v2ray-core/v4/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: Do not use. 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=v2ray.core.common.net.Network" json:"networks,omitempty"` 38 // Deprecated: Do not use. 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: Do not use. 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: Do not use. 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, 0x19, 0x76, 132 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2e, 133 0x64, 0x6f, 0x6b, 0x6f, 0x64, 0x65, 0x6d, 0x6f, 0x1a, 0x18, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 134 0x2f, 0x6e, 0x65, 0x74, 0x2f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x2e, 0x70, 0x72, 0x6f, 135 0x74, 0x6f, 0x1a, 0x18, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x6e, 0x65, 0x74, 0x2f, 0x6e, 136 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xc6, 0x02, 0x0a, 137 0x06, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x3b, 0x0a, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 138 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 139 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x6e, 0x65, 0x74, 140 0x2e, 0x49, 0x50, 0x4f, 0x72, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x52, 0x07, 0x61, 0x64, 0x64, 141 0x72, 0x65, 0x73, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x6f, 0x72, 0x74, 0x18, 0x02, 0x20, 0x01, 142 0x28, 0x0d, 0x52, 0x04, 0x70, 0x6f, 0x72, 0x74, 0x12, 0x49, 0x0a, 0x0c, 0x6e, 0x65, 0x74, 0x77, 143 0x6f, 0x72, 0x6b, 0x5f, 0x6c, 0x69, 0x73, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x22, 144 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 145 0x6f, 0x6e, 0x2e, 0x6e, 0x65, 0x74, 0x2e, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x4c, 0x69, 146 0x73, 0x74, 0x42, 0x02, 0x18, 0x01, 0x52, 0x0b, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x4c, 147 0x69, 0x73, 0x74, 0x12, 0x3a, 0x0a, 0x08, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x73, 0x18, 148 0x07, 0x20, 0x03, 0x28, 0x0e, 0x32, 0x1e, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 149 0x72, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x6e, 0x65, 0x74, 0x2e, 0x4e, 0x65, 150 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x52, 0x08, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x73, 0x12, 151 0x1c, 0x0a, 0x07, 0x74, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0d, 152 0x42, 0x02, 0x18, 0x01, 0x52, 0x07, 0x74, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x12, 0x27, 0x0a, 153 0x0f, 0x66, 0x6f, 0x6c, 0x6c, 0x6f, 0x77, 0x5f, 0x72, 0x65, 0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 154 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0e, 0x66, 0x6f, 0x6c, 0x6c, 0x6f, 0x77, 0x52, 0x65, 155 0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x6c, 156 0x65, 0x76, 0x65, 0x6c, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x09, 0x75, 0x73, 0x65, 0x72, 157 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x42, 0x6c, 0x0a, 0x1d, 0x63, 0x6f, 0x6d, 0x2e, 0x76, 0x32, 0x72, 158 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x64, 0x6f, 159 0x6b, 0x6f, 0x64, 0x65, 0x6d, 0x6f, 0x50, 0x01, 0x5a, 0x2d, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 160 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x76, 0x32, 0x66, 0x6c, 0x79, 0x2f, 0x76, 0x32, 0x72, 0x61, 0x79, 161 0x2d, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x76, 0x34, 0x2f, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2f, 0x64, 162 0x6f, 0x6b, 0x6f, 0x64, 0x65, 0x6d, 0x6f, 0xaa, 0x02, 0x19, 0x56, 0x32, 0x52, 0x61, 0x79, 0x2e, 163 0x43, 0x6f, 0x72, 0x65, 0x2e, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x44, 0x6f, 0x6b, 0x6f, 0x64, 164 0x65, 0x6d, 0x6f, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, 165 } 166 167 var ( 168 file_proxy_dokodemo_config_proto_rawDescOnce sync.Once 169 file_proxy_dokodemo_config_proto_rawDescData = file_proxy_dokodemo_config_proto_rawDesc 170 ) 171 172 func file_proxy_dokodemo_config_proto_rawDescGZIP() []byte { 173 file_proxy_dokodemo_config_proto_rawDescOnce.Do(func() { 174 file_proxy_dokodemo_config_proto_rawDescData = protoimpl.X.CompressGZIP(file_proxy_dokodemo_config_proto_rawDescData) 175 }) 176 return file_proxy_dokodemo_config_proto_rawDescData 177 } 178 179 var file_proxy_dokodemo_config_proto_msgTypes = make([]protoimpl.MessageInfo, 1) 180 var file_proxy_dokodemo_config_proto_goTypes = []interface{}{ 181 (*Config)(nil), // 0: v2ray.core.proxy.dokodemo.Config 182 (*net.IPOrDomain)(nil), // 1: v2ray.core.common.net.IPOrDomain 183 (*net.NetworkList)(nil), // 2: v2ray.core.common.net.NetworkList 184 (net.Network)(0), // 3: v2ray.core.common.net.Network 185 } 186 var file_proxy_dokodemo_config_proto_depIdxs = []int32{ 187 1, // 0: v2ray.core.proxy.dokodemo.Config.address:type_name -> v2ray.core.common.net.IPOrDomain 188 2, // 1: v2ray.core.proxy.dokodemo.Config.network_list:type_name -> v2ray.core.common.net.NetworkList 189 3, // 2: v2ray.core.proxy.dokodemo.Config.networks:type_name -> v2ray.core.common.net.Network 190 3, // [3:3] is the sub-list for method output_type 191 3, // [3:3] is the sub-list for method input_type 192 3, // [3:3] is the sub-list for extension type_name 193 3, // [3:3] is the sub-list for extension extendee 194 0, // [0:3] is the sub-list for field type_name 195 } 196 197 func init() { file_proxy_dokodemo_config_proto_init() } 198 func file_proxy_dokodemo_config_proto_init() { 199 if File_proxy_dokodemo_config_proto != nil { 200 return 201 } 202 if !protoimpl.UnsafeEnabled { 203 file_proxy_dokodemo_config_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 204 switch v := v.(*Config); i { 205 case 0: 206 return &v.state 207 case 1: 208 return &v.sizeCache 209 case 2: 210 return &v.unknownFields 211 default: 212 return nil 213 } 214 } 215 } 216 type x struct{} 217 out := protoimpl.TypeBuilder{ 218 File: protoimpl.DescBuilder{ 219 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 220 RawDescriptor: file_proxy_dokodemo_config_proto_rawDesc, 221 NumEnums: 0, 222 NumMessages: 1, 223 NumExtensions: 0, 224 NumServices: 0, 225 }, 226 GoTypes: file_proxy_dokodemo_config_proto_goTypes, 227 DependencyIndexes: file_proxy_dokodemo_config_proto_depIdxs, 228 MessageInfos: file_proxy_dokodemo_config_proto_msgTypes, 229 }.Build() 230 File_proxy_dokodemo_config_proto = out.File 231 file_proxy_dokodemo_config_proto_rawDesc = nil 232 file_proxy_dokodemo_config_proto_goTypes = nil 233 file_proxy_dokodemo_config_proto_depIdxs = nil 234 }