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