github.com/v2fly/v2ray-core/v4@v4.45.2/proxy/freedom/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/freedom/config.proto 6 7 package freedom 8 9 import ( 10 protocol "github.com/v2fly/v2ray-core/v4/common/protocol" 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_DomainStrategy int32 25 26 const ( 27 Config_AS_IS Config_DomainStrategy = 0 28 Config_USE_IP Config_DomainStrategy = 1 29 Config_USE_IP4 Config_DomainStrategy = 2 30 Config_USE_IP6 Config_DomainStrategy = 3 31 ) 32 33 // Enum value maps for Config_DomainStrategy. 34 var ( 35 Config_DomainStrategy_name = map[int32]string{ 36 0: "AS_IS", 37 1: "USE_IP", 38 2: "USE_IP4", 39 3: "USE_IP6", 40 } 41 Config_DomainStrategy_value = map[string]int32{ 42 "AS_IS": 0, 43 "USE_IP": 1, 44 "USE_IP4": 2, 45 "USE_IP6": 3, 46 } 47 ) 48 49 func (x Config_DomainStrategy) Enum() *Config_DomainStrategy { 50 p := new(Config_DomainStrategy) 51 *p = x 52 return p 53 } 54 55 func (x Config_DomainStrategy) String() string { 56 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) 57 } 58 59 func (Config_DomainStrategy) Descriptor() protoreflect.EnumDescriptor { 60 return file_proxy_freedom_config_proto_enumTypes[0].Descriptor() 61 } 62 63 func (Config_DomainStrategy) Type() protoreflect.EnumType { 64 return &file_proxy_freedom_config_proto_enumTypes[0] 65 } 66 67 func (x Config_DomainStrategy) Number() protoreflect.EnumNumber { 68 return protoreflect.EnumNumber(x) 69 } 70 71 // Deprecated: Use Config_DomainStrategy.Descriptor instead. 72 func (Config_DomainStrategy) EnumDescriptor() ([]byte, []int) { 73 return file_proxy_freedom_config_proto_rawDescGZIP(), []int{1, 0} 74 } 75 76 type DestinationOverride struct { 77 state protoimpl.MessageState 78 sizeCache protoimpl.SizeCache 79 unknownFields protoimpl.UnknownFields 80 81 Server *protocol.ServerEndpoint `protobuf:"bytes,1,opt,name=server,proto3" json:"server,omitempty"` 82 } 83 84 func (x *DestinationOverride) Reset() { 85 *x = DestinationOverride{} 86 if protoimpl.UnsafeEnabled { 87 mi := &file_proxy_freedom_config_proto_msgTypes[0] 88 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 89 ms.StoreMessageInfo(mi) 90 } 91 } 92 93 func (x *DestinationOverride) String() string { 94 return protoimpl.X.MessageStringOf(x) 95 } 96 97 func (*DestinationOverride) ProtoMessage() {} 98 99 func (x *DestinationOverride) ProtoReflect() protoreflect.Message { 100 mi := &file_proxy_freedom_config_proto_msgTypes[0] 101 if protoimpl.UnsafeEnabled && x != nil { 102 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 103 if ms.LoadMessageInfo() == nil { 104 ms.StoreMessageInfo(mi) 105 } 106 return ms 107 } 108 return mi.MessageOf(x) 109 } 110 111 // Deprecated: Use DestinationOverride.ProtoReflect.Descriptor instead. 112 func (*DestinationOverride) Descriptor() ([]byte, []int) { 113 return file_proxy_freedom_config_proto_rawDescGZIP(), []int{0} 114 } 115 116 func (x *DestinationOverride) GetServer() *protocol.ServerEndpoint { 117 if x != nil { 118 return x.Server 119 } 120 return nil 121 } 122 123 type Config struct { 124 state protoimpl.MessageState 125 sizeCache protoimpl.SizeCache 126 unknownFields protoimpl.UnknownFields 127 128 DomainStrategy Config_DomainStrategy `protobuf:"varint,1,opt,name=domain_strategy,json=domainStrategy,proto3,enum=v2ray.core.proxy.freedom.Config_DomainStrategy" json:"domain_strategy,omitempty"` 129 // Deprecated: Do not use. 130 Timeout uint32 `protobuf:"varint,2,opt,name=timeout,proto3" json:"timeout,omitempty"` 131 DestinationOverride *DestinationOverride `protobuf:"bytes,3,opt,name=destination_override,json=destinationOverride,proto3" json:"destination_override,omitempty"` 132 UserLevel uint32 `protobuf:"varint,4,opt,name=user_level,json=userLevel,proto3" json:"user_level,omitempty"` 133 } 134 135 func (x *Config) Reset() { 136 *x = Config{} 137 if protoimpl.UnsafeEnabled { 138 mi := &file_proxy_freedom_config_proto_msgTypes[1] 139 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 140 ms.StoreMessageInfo(mi) 141 } 142 } 143 144 func (x *Config) String() string { 145 return protoimpl.X.MessageStringOf(x) 146 } 147 148 func (*Config) ProtoMessage() {} 149 150 func (x *Config) ProtoReflect() protoreflect.Message { 151 mi := &file_proxy_freedom_config_proto_msgTypes[1] 152 if protoimpl.UnsafeEnabled && x != nil { 153 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 154 if ms.LoadMessageInfo() == nil { 155 ms.StoreMessageInfo(mi) 156 } 157 return ms 158 } 159 return mi.MessageOf(x) 160 } 161 162 // Deprecated: Use Config.ProtoReflect.Descriptor instead. 163 func (*Config) Descriptor() ([]byte, []int) { 164 return file_proxy_freedom_config_proto_rawDescGZIP(), []int{1} 165 } 166 167 func (x *Config) GetDomainStrategy() Config_DomainStrategy { 168 if x != nil { 169 return x.DomainStrategy 170 } 171 return Config_AS_IS 172 } 173 174 // Deprecated: Do not use. 175 func (x *Config) GetTimeout() uint32 { 176 if x != nil { 177 return x.Timeout 178 } 179 return 0 180 } 181 182 func (x *Config) GetDestinationOverride() *DestinationOverride { 183 if x != nil { 184 return x.DestinationOverride 185 } 186 return nil 187 } 188 189 func (x *Config) GetUserLevel() uint32 { 190 if x != nil { 191 return x.UserLevel 192 } 193 return 0 194 } 195 196 var File_proxy_freedom_config_proto protoreflect.FileDescriptor 197 198 var file_proxy_freedom_config_proto_rawDesc = []byte{ 199 0x0a, 0x1a, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2f, 0x66, 0x72, 0x65, 0x65, 0x64, 0x6f, 0x6d, 0x2f, 200 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x18, 0x76, 0x32, 201 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x66, 202 0x72, 0x65, 0x65, 0x64, 0x6f, 0x6d, 0x1a, 0x21, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x70, 203 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x5f, 0x73, 204 0x70, 0x65, 0x63, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x59, 0x0a, 0x13, 0x44, 0x65, 0x73, 205 0x74, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4f, 0x76, 0x65, 0x72, 0x72, 0x69, 0x64, 0x65, 206 0x12, 0x42, 0x0a, 0x06, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 207 0x32, 0x2a, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x63, 0x6f, 208 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2e, 0x53, 0x65, 209 0x72, 0x76, 0x65, 0x72, 0x45, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x52, 0x06, 0x73, 0x65, 210 0x72, 0x76, 0x65, 0x72, 0x22, 0xc4, 0x02, 0x0a, 0x06, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 211 0x58, 0x0a, 0x0f, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x5f, 0x73, 0x74, 0x72, 0x61, 0x74, 0x65, 212 0x67, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2f, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 213 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x66, 0x72, 0x65, 0x65, 214 0x64, 0x6f, 0x6d, 0x2e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x44, 0x6f, 0x6d, 0x61, 0x69, 215 0x6e, 0x53, 0x74, 0x72, 0x61, 0x74, 0x65, 0x67, 0x79, 0x52, 0x0e, 0x64, 0x6f, 0x6d, 0x61, 0x69, 216 0x6e, 0x53, 0x74, 0x72, 0x61, 0x74, 0x65, 0x67, 0x79, 0x12, 0x1c, 0x0a, 0x07, 0x74, 0x69, 0x6d, 217 0x65, 0x6f, 0x75, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x42, 0x02, 0x18, 0x01, 0x52, 0x07, 218 0x74, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x12, 0x60, 0x0a, 0x14, 0x64, 0x65, 0x73, 0x74, 0x69, 219 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x6f, 0x76, 0x65, 0x72, 0x72, 0x69, 0x64, 0x65, 0x18, 220 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2d, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 221 0x72, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x66, 0x72, 0x65, 0x65, 0x64, 0x6f, 0x6d, 222 0x2e, 0x44, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4f, 0x76, 0x65, 0x72, 223 0x72, 0x69, 0x64, 0x65, 0x52, 0x13, 0x64, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 224 0x6e, 0x4f, 0x76, 0x65, 0x72, 0x72, 0x69, 0x64, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x75, 0x73, 0x65, 225 0x72, 0x5f, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x09, 0x75, 226 0x73, 0x65, 0x72, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x22, 0x41, 0x0a, 0x0e, 0x44, 0x6f, 0x6d, 0x61, 227 0x69, 0x6e, 0x53, 0x74, 0x72, 0x61, 0x74, 0x65, 0x67, 0x79, 0x12, 0x09, 0x0a, 0x05, 0x41, 0x53, 228 0x5f, 0x49, 0x53, 0x10, 0x00, 0x12, 0x0a, 0x0a, 0x06, 0x55, 0x53, 0x45, 0x5f, 0x49, 0x50, 0x10, 229 0x01, 0x12, 0x0b, 0x0a, 0x07, 0x55, 0x53, 0x45, 0x5f, 0x49, 0x50, 0x34, 0x10, 0x02, 0x12, 0x0b, 230 0x0a, 0x07, 0x55, 0x53, 0x45, 0x5f, 0x49, 0x50, 0x36, 0x10, 0x03, 0x42, 0x69, 0x0a, 0x1c, 0x63, 231 0x6f, 0x6d, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x70, 0x72, 232 0x6f, 0x78, 0x79, 0x2e, 0x66, 0x72, 0x65, 0x65, 0x64, 0x6f, 0x6d, 0x50, 0x01, 0x5a, 0x2c, 0x67, 233 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x76, 0x32, 0x66, 0x6c, 0x79, 0x2f, 234 0x76, 0x32, 0x72, 0x61, 0x79, 0x2d, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x76, 0x34, 0x2f, 0x70, 0x72, 235 0x6f, 0x78, 0x79, 0x2f, 0x66, 0x72, 0x65, 0x65, 0x64, 0x6f, 0x6d, 0xaa, 0x02, 0x18, 0x56, 0x32, 236 0x52, 0x61, 0x79, 0x2e, 0x43, 0x6f, 0x72, 0x65, 0x2e, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x46, 237 0x72, 0x65, 0x65, 0x64, 0x6f, 0x6d, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, 238 } 239 240 var ( 241 file_proxy_freedom_config_proto_rawDescOnce sync.Once 242 file_proxy_freedom_config_proto_rawDescData = file_proxy_freedom_config_proto_rawDesc 243 ) 244 245 func file_proxy_freedom_config_proto_rawDescGZIP() []byte { 246 file_proxy_freedom_config_proto_rawDescOnce.Do(func() { 247 file_proxy_freedom_config_proto_rawDescData = protoimpl.X.CompressGZIP(file_proxy_freedom_config_proto_rawDescData) 248 }) 249 return file_proxy_freedom_config_proto_rawDescData 250 } 251 252 var file_proxy_freedom_config_proto_enumTypes = make([]protoimpl.EnumInfo, 1) 253 var file_proxy_freedom_config_proto_msgTypes = make([]protoimpl.MessageInfo, 2) 254 var file_proxy_freedom_config_proto_goTypes = []interface{}{ 255 (Config_DomainStrategy)(0), // 0: v2ray.core.proxy.freedom.Config.DomainStrategy 256 (*DestinationOverride)(nil), // 1: v2ray.core.proxy.freedom.DestinationOverride 257 (*Config)(nil), // 2: v2ray.core.proxy.freedom.Config 258 (*protocol.ServerEndpoint)(nil), // 3: v2ray.core.common.protocol.ServerEndpoint 259 } 260 var file_proxy_freedom_config_proto_depIdxs = []int32{ 261 3, // 0: v2ray.core.proxy.freedom.DestinationOverride.server:type_name -> v2ray.core.common.protocol.ServerEndpoint 262 0, // 1: v2ray.core.proxy.freedom.Config.domain_strategy:type_name -> v2ray.core.proxy.freedom.Config.DomainStrategy 263 1, // 2: v2ray.core.proxy.freedom.Config.destination_override:type_name -> v2ray.core.proxy.freedom.DestinationOverride 264 3, // [3:3] is the sub-list for method output_type 265 3, // [3:3] is the sub-list for method input_type 266 3, // [3:3] is the sub-list for extension type_name 267 3, // [3:3] is the sub-list for extension extendee 268 0, // [0:3] is the sub-list for field type_name 269 } 270 271 func init() { file_proxy_freedom_config_proto_init() } 272 func file_proxy_freedom_config_proto_init() { 273 if File_proxy_freedom_config_proto != nil { 274 return 275 } 276 if !protoimpl.UnsafeEnabled { 277 file_proxy_freedom_config_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 278 switch v := v.(*DestinationOverride); i { 279 case 0: 280 return &v.state 281 case 1: 282 return &v.sizeCache 283 case 2: 284 return &v.unknownFields 285 default: 286 return nil 287 } 288 } 289 file_proxy_freedom_config_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { 290 switch v := v.(*Config); i { 291 case 0: 292 return &v.state 293 case 1: 294 return &v.sizeCache 295 case 2: 296 return &v.unknownFields 297 default: 298 return nil 299 } 300 } 301 } 302 type x struct{} 303 out := protoimpl.TypeBuilder{ 304 File: protoimpl.DescBuilder{ 305 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 306 RawDescriptor: file_proxy_freedom_config_proto_rawDesc, 307 NumEnums: 1, 308 NumMessages: 2, 309 NumExtensions: 0, 310 NumServices: 0, 311 }, 312 GoTypes: file_proxy_freedom_config_proto_goTypes, 313 DependencyIndexes: file_proxy_freedom_config_proto_depIdxs, 314 EnumInfos: file_proxy_freedom_config_proto_enumTypes, 315 MessageInfos: file_proxy_freedom_config_proto_msgTypes, 316 }.Build() 317 File_proxy_freedom_config_proto = out.File 318 file_proxy_freedom_config_proto_rawDesc = nil 319 file_proxy_freedom_config_proto_goTypes = nil 320 file_proxy_freedom_config_proto_depIdxs = nil 321 }