github.com/xraypb/Xray-core@v1.8.1/proxy/wireguard/config.pb.go (about) 1 // Code generated by protoc-gen-go. DO NOT EDIT. 2 // versions: 3 // protoc-gen-go v1.28.1 4 // protoc v3.21.12 5 // source: proxy/wireguard/config.proto 6 7 package wireguard 8 9 import ( 10 protoreflect "google.golang.org/protobuf/reflect/protoreflect" 11 protoimpl "google.golang.org/protobuf/runtime/protoimpl" 12 reflect "reflect" 13 sync "sync" 14 ) 15 16 const ( 17 // Verify that this generated code is sufficiently up-to-date. 18 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) 19 // Verify that runtime/protoimpl is sufficiently up-to-date. 20 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) 21 ) 22 23 type PeerConfig struct { 24 state protoimpl.MessageState 25 sizeCache protoimpl.SizeCache 26 unknownFields protoimpl.UnknownFields 27 28 PublicKey string `protobuf:"bytes,1,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty"` 29 PreSharedKey string `protobuf:"bytes,2,opt,name=pre_shared_key,json=preSharedKey,proto3" json:"pre_shared_key,omitempty"` 30 Endpoint string `protobuf:"bytes,3,opt,name=endpoint,proto3" json:"endpoint,omitempty"` 31 KeepAlive int32 `protobuf:"varint,4,opt,name=keep_alive,json=keepAlive,proto3" json:"keep_alive,omitempty"` 32 AllowedIps []string `protobuf:"bytes,5,rep,name=allowed_ips,json=allowedIps,proto3" json:"allowed_ips,omitempty"` 33 } 34 35 func (x *PeerConfig) Reset() { 36 *x = PeerConfig{} 37 if protoimpl.UnsafeEnabled { 38 mi := &file_proxy_wireguard_config_proto_msgTypes[0] 39 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 40 ms.StoreMessageInfo(mi) 41 } 42 } 43 44 func (x *PeerConfig) String() string { 45 return protoimpl.X.MessageStringOf(x) 46 } 47 48 func (*PeerConfig) ProtoMessage() {} 49 50 func (x *PeerConfig) ProtoReflect() protoreflect.Message { 51 mi := &file_proxy_wireguard_config_proto_msgTypes[0] 52 if protoimpl.UnsafeEnabled && x != nil { 53 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 54 if ms.LoadMessageInfo() == nil { 55 ms.StoreMessageInfo(mi) 56 } 57 return ms 58 } 59 return mi.MessageOf(x) 60 } 61 62 // Deprecated: Use PeerConfig.ProtoReflect.Descriptor instead. 63 func (*PeerConfig) Descriptor() ([]byte, []int) { 64 return file_proxy_wireguard_config_proto_rawDescGZIP(), []int{0} 65 } 66 67 func (x *PeerConfig) GetPublicKey() string { 68 if x != nil { 69 return x.PublicKey 70 } 71 return "" 72 } 73 74 func (x *PeerConfig) GetPreSharedKey() string { 75 if x != nil { 76 return x.PreSharedKey 77 } 78 return "" 79 } 80 81 func (x *PeerConfig) GetEndpoint() string { 82 if x != nil { 83 return x.Endpoint 84 } 85 return "" 86 } 87 88 func (x *PeerConfig) GetKeepAlive() int32 { 89 if x != nil { 90 return x.KeepAlive 91 } 92 return 0 93 } 94 95 func (x *PeerConfig) GetAllowedIps() []string { 96 if x != nil { 97 return x.AllowedIps 98 } 99 return nil 100 } 101 102 type DeviceConfig struct { 103 state protoimpl.MessageState 104 sizeCache protoimpl.SizeCache 105 unknownFields protoimpl.UnknownFields 106 107 SecretKey string `protobuf:"bytes,1,opt,name=secret_key,json=secretKey,proto3" json:"secret_key,omitempty"` 108 Endpoint []string `protobuf:"bytes,2,rep,name=endpoint,proto3" json:"endpoint,omitempty"` 109 Peers []*PeerConfig `protobuf:"bytes,3,rep,name=peers,proto3" json:"peers,omitempty"` 110 Mtu int32 `protobuf:"varint,4,opt,name=mtu,proto3" json:"mtu,omitempty"` 111 NumWorkers int32 `protobuf:"varint,5,opt,name=num_workers,json=numWorkers,proto3" json:"num_workers,omitempty"` 112 Reserved []byte `protobuf:"bytes,6,opt,name=reserved,proto3" json:"reserved,omitempty"` 113 } 114 115 func (x *DeviceConfig) Reset() { 116 *x = DeviceConfig{} 117 if protoimpl.UnsafeEnabled { 118 mi := &file_proxy_wireguard_config_proto_msgTypes[1] 119 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 120 ms.StoreMessageInfo(mi) 121 } 122 } 123 124 func (x *DeviceConfig) String() string { 125 return protoimpl.X.MessageStringOf(x) 126 } 127 128 func (*DeviceConfig) ProtoMessage() {} 129 130 func (x *DeviceConfig) ProtoReflect() protoreflect.Message { 131 mi := &file_proxy_wireguard_config_proto_msgTypes[1] 132 if protoimpl.UnsafeEnabled && x != nil { 133 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 134 if ms.LoadMessageInfo() == nil { 135 ms.StoreMessageInfo(mi) 136 } 137 return ms 138 } 139 return mi.MessageOf(x) 140 } 141 142 // Deprecated: Use DeviceConfig.ProtoReflect.Descriptor instead. 143 func (*DeviceConfig) Descriptor() ([]byte, []int) { 144 return file_proxy_wireguard_config_proto_rawDescGZIP(), []int{1} 145 } 146 147 func (x *DeviceConfig) GetSecretKey() string { 148 if x != nil { 149 return x.SecretKey 150 } 151 return "" 152 } 153 154 func (x *DeviceConfig) GetEndpoint() []string { 155 if x != nil { 156 return x.Endpoint 157 } 158 return nil 159 } 160 161 func (x *DeviceConfig) GetPeers() []*PeerConfig { 162 if x != nil { 163 return x.Peers 164 } 165 return nil 166 } 167 168 func (x *DeviceConfig) GetMtu() int32 { 169 if x != nil { 170 return x.Mtu 171 } 172 return 0 173 } 174 175 func (x *DeviceConfig) GetNumWorkers() int32 { 176 if x != nil { 177 return x.NumWorkers 178 } 179 return 0 180 } 181 182 func (x *DeviceConfig) GetReserved() []byte { 183 if x != nil { 184 return x.Reserved 185 } 186 return nil 187 } 188 189 var File_proxy_wireguard_config_proto protoreflect.FileDescriptor 190 191 var file_proxy_wireguard_config_proto_rawDesc = []byte{ 192 0x0a, 0x1c, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2f, 0x77, 0x69, 0x72, 0x65, 0x67, 0x75, 0x61, 0x72, 193 0x64, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x14, 194 0x78, 0x72, 0x61, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x77, 0x69, 0x72, 0x65, 0x67, 195 0x75, 0x61, 0x72, 0x64, 0x22, 0xad, 0x01, 0x0a, 0x0a, 0x50, 0x65, 0x65, 0x72, 0x43, 0x6f, 0x6e, 196 0x66, 0x69, 0x67, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x5f, 0x6b, 0x65, 197 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x4b, 198 0x65, 0x79, 0x12, 0x24, 0x0a, 0x0e, 0x70, 0x72, 0x65, 0x5f, 0x73, 0x68, 0x61, 0x72, 0x65, 0x64, 199 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x70, 0x72, 0x65, 0x53, 200 0x68, 0x61, 0x72, 0x65, 0x64, 0x4b, 0x65, 0x79, 0x12, 0x1a, 0x0a, 0x08, 0x65, 0x6e, 0x64, 0x70, 201 0x6f, 0x69, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x65, 0x6e, 0x64, 0x70, 202 0x6f, 0x69, 0x6e, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x6b, 0x65, 0x65, 0x70, 0x5f, 0x61, 0x6c, 0x69, 203 0x76, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, 0x09, 0x6b, 0x65, 0x65, 0x70, 0x41, 0x6c, 204 0x69, 0x76, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x65, 0x64, 0x5f, 0x69, 205 0x70, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0a, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x65, 206 0x64, 0x49, 0x70, 0x73, 0x22, 0xd0, 0x01, 0x0a, 0x0c, 0x44, 0x65, 0x76, 0x69, 0x63, 0x65, 0x43, 207 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x1d, 0x0a, 0x0a, 0x73, 0x65, 0x63, 0x72, 0x65, 0x74, 0x5f, 208 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x73, 0x65, 0x63, 0x72, 0x65, 209 0x74, 0x4b, 0x65, 0x79, 0x12, 0x1a, 0x0a, 0x08, 0x65, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 210 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x08, 0x65, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 211 0x12, 0x36, 0x0a, 0x05, 0x70, 0x65, 0x65, 0x72, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 212 0x20, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x77, 0x69, 0x72, 213 0x65, 0x67, 0x75, 0x61, 0x72, 0x64, 0x2e, 0x50, 0x65, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x66, 0x69, 214 0x67, 0x52, 0x05, 0x70, 0x65, 0x65, 0x72, 0x73, 0x12, 0x10, 0x0a, 0x03, 0x6d, 0x74, 0x75, 0x18, 215 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, 0x03, 0x6d, 0x74, 0x75, 0x12, 0x1f, 0x0a, 0x0b, 0x6e, 0x75, 216 0x6d, 0x5f, 0x77, 0x6f, 0x72, 0x6b, 0x65, 0x72, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x05, 0x52, 217 0x0a, 0x6e, 0x75, 0x6d, 0x57, 0x6f, 0x72, 0x6b, 0x65, 0x72, 0x73, 0x12, 0x1a, 0x0a, 0x08, 0x72, 218 0x65, 0x73, 0x65, 0x72, 0x76, 0x65, 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x08, 0x72, 219 0x65, 0x73, 0x65, 0x72, 0x76, 0x65, 0x64, 0x42, 0x5e, 0x0a, 0x18, 0x63, 0x6f, 0x6d, 0x2e, 0x78, 220 0x72, 0x61, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x77, 0x69, 0x72, 0x65, 0x67, 0x75, 221 0x61, 0x72, 0x64, 0x50, 0x01, 0x5a, 0x29, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 222 0x6d, 0x2f, 0x78, 0x74, 0x6c, 0x73, 0x2f, 0x78, 0x72, 0x61, 0x79, 0x2d, 0x63, 0x6f, 0x72, 0x65, 223 0x2f, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2f, 0x77, 0x69, 0x72, 0x65, 0x67, 0x75, 0x61, 0x72, 0x64, 224 0xaa, 0x02, 0x14, 0x58, 0x72, 0x61, 0x79, 0x2e, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x57, 0x69, 225 0x72, 0x65, 0x47, 0x75, 0x61, 0x72, 0x64, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, 226 } 227 228 var ( 229 file_proxy_wireguard_config_proto_rawDescOnce sync.Once 230 file_proxy_wireguard_config_proto_rawDescData = file_proxy_wireguard_config_proto_rawDesc 231 ) 232 233 func file_proxy_wireguard_config_proto_rawDescGZIP() []byte { 234 file_proxy_wireguard_config_proto_rawDescOnce.Do(func() { 235 file_proxy_wireguard_config_proto_rawDescData = protoimpl.X.CompressGZIP(file_proxy_wireguard_config_proto_rawDescData) 236 }) 237 return file_proxy_wireguard_config_proto_rawDescData 238 } 239 240 var file_proxy_wireguard_config_proto_msgTypes = make([]protoimpl.MessageInfo, 2) 241 var file_proxy_wireguard_config_proto_goTypes = []interface{}{ 242 (*PeerConfig)(nil), // 0: xray.proxy.wireguard.PeerConfig 243 (*DeviceConfig)(nil), // 1: xray.proxy.wireguard.DeviceConfig 244 } 245 var file_proxy_wireguard_config_proto_depIdxs = []int32{ 246 0, // 0: xray.proxy.wireguard.DeviceConfig.peers:type_name -> xray.proxy.wireguard.PeerConfig 247 1, // [1:1] is the sub-list for method output_type 248 1, // [1:1] is the sub-list for method input_type 249 1, // [1:1] is the sub-list for extension type_name 250 1, // [1:1] is the sub-list for extension extendee 251 0, // [0:1] is the sub-list for field type_name 252 } 253 254 func init() { file_proxy_wireguard_config_proto_init() } 255 func file_proxy_wireguard_config_proto_init() { 256 if File_proxy_wireguard_config_proto != nil { 257 return 258 } 259 if !protoimpl.UnsafeEnabled { 260 file_proxy_wireguard_config_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 261 switch v := v.(*PeerConfig); i { 262 case 0: 263 return &v.state 264 case 1: 265 return &v.sizeCache 266 case 2: 267 return &v.unknownFields 268 default: 269 return nil 270 } 271 } 272 file_proxy_wireguard_config_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { 273 switch v := v.(*DeviceConfig); i { 274 case 0: 275 return &v.state 276 case 1: 277 return &v.sizeCache 278 case 2: 279 return &v.unknownFields 280 default: 281 return nil 282 } 283 } 284 } 285 type x struct{} 286 out := protoimpl.TypeBuilder{ 287 File: protoimpl.DescBuilder{ 288 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 289 RawDescriptor: file_proxy_wireguard_config_proto_rawDesc, 290 NumEnums: 0, 291 NumMessages: 2, 292 NumExtensions: 0, 293 NumServices: 0, 294 }, 295 GoTypes: file_proxy_wireguard_config_proto_goTypes, 296 DependencyIndexes: file_proxy_wireguard_config_proto_depIdxs, 297 MessageInfos: file_proxy_wireguard_config_proto_msgTypes, 298 }.Build() 299 File_proxy_wireguard_config_proto = out.File 300 file_proxy_wireguard_config_proto_rawDesc = nil 301 file_proxy_wireguard_config_proto_goTypes = nil 302 file_proxy_wireguard_config_proto_depIdxs = nil 303 }