452 lines
11 KiB
Go
452 lines
11 KiB
Go
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
// versions:
|
|
// protoc-gen-go v1.36.10
|
|
// protoc v6.33.0
|
|
// source: vpn.proto
|
|
|
|
package out
|
|
|
|
import (
|
|
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
|
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
|
reflect "reflect"
|
|
unsafe "unsafe"
|
|
)
|
|
|
|
const (
|
|
// Verify that this generated code is sufficiently up-to-date.
|
|
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
|
|
// Verify that runtime/protoimpl is sufficiently up-to-date.
|
|
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
|
|
)
|
|
|
|
type PeerStatus struct {
|
|
state protoimpl.MessageState `protogen:"opaque.v1"`
|
|
xxx_hidden_Pubkey *string `protobuf:"bytes,1,opt,name=pubkey"`
|
|
xxx_hidden_Ipv4 *string `protobuf:"bytes,2,opt,name=ipv4"`
|
|
xxx_hidden_Enabled bool `protobuf:"varint,3,opt,name=enabled"`
|
|
xxx_hidden_Nick *string `protobuf:"bytes,4,opt,name=nick"`
|
|
xxx_hidden_Beacon int64 `protobuf:"varint,5,opt,name=beacon"`
|
|
XXX_raceDetectHookData protoimpl.RaceDetectHookData
|
|
XXX_presence [1]uint32
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *PeerStatus) Reset() {
|
|
*x = PeerStatus{}
|
|
mi := &file_vpn_proto_msgTypes[0]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *PeerStatus) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*PeerStatus) ProtoMessage() {}
|
|
|
|
func (x *PeerStatus) ProtoReflect() protoreflect.Message {
|
|
mi := &file_vpn_proto_msgTypes[0]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
func (x *PeerStatus) GetPubkey() string {
|
|
if x != nil {
|
|
if x.xxx_hidden_Pubkey != nil {
|
|
return *x.xxx_hidden_Pubkey
|
|
}
|
|
return ""
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *PeerStatus) GetIpv4() string {
|
|
if x != nil {
|
|
if x.xxx_hidden_Ipv4 != nil {
|
|
return *x.xxx_hidden_Ipv4
|
|
}
|
|
return ""
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *PeerStatus) GetEnabled() bool {
|
|
if x != nil {
|
|
return x.xxx_hidden_Enabled
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (x *PeerStatus) GetNick() string {
|
|
if x != nil {
|
|
if x.xxx_hidden_Nick != nil {
|
|
return *x.xxx_hidden_Nick
|
|
}
|
|
return ""
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *PeerStatus) GetBeacon() int64 {
|
|
if x != nil {
|
|
return x.xxx_hidden_Beacon
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *PeerStatus) SetPubkey(v string) {
|
|
x.xxx_hidden_Pubkey = &v
|
|
protoimpl.X.SetPresent(&(x.XXX_presence[0]), 0, 5)
|
|
}
|
|
|
|
func (x *PeerStatus) SetIpv4(v string) {
|
|
x.xxx_hidden_Ipv4 = &v
|
|
protoimpl.X.SetPresent(&(x.XXX_presence[0]), 1, 5)
|
|
}
|
|
|
|
func (x *PeerStatus) SetEnabled(v bool) {
|
|
x.xxx_hidden_Enabled = v
|
|
protoimpl.X.SetPresent(&(x.XXX_presence[0]), 2, 5)
|
|
}
|
|
|
|
func (x *PeerStatus) SetNick(v string) {
|
|
x.xxx_hidden_Nick = &v
|
|
protoimpl.X.SetPresent(&(x.XXX_presence[0]), 3, 5)
|
|
}
|
|
|
|
func (x *PeerStatus) SetBeacon(v int64) {
|
|
x.xxx_hidden_Beacon = v
|
|
protoimpl.X.SetPresent(&(x.XXX_presence[0]), 4, 5)
|
|
}
|
|
|
|
func (x *PeerStatus) HasPubkey() bool {
|
|
if x == nil {
|
|
return false
|
|
}
|
|
return protoimpl.X.Present(&(x.XXX_presence[0]), 0)
|
|
}
|
|
|
|
func (x *PeerStatus) HasIpv4() bool {
|
|
if x == nil {
|
|
return false
|
|
}
|
|
return protoimpl.X.Present(&(x.XXX_presence[0]), 1)
|
|
}
|
|
|
|
func (x *PeerStatus) HasEnabled() bool {
|
|
if x == nil {
|
|
return false
|
|
}
|
|
return protoimpl.X.Present(&(x.XXX_presence[0]), 2)
|
|
}
|
|
|
|
func (x *PeerStatus) HasNick() bool {
|
|
if x == nil {
|
|
return false
|
|
}
|
|
return protoimpl.X.Present(&(x.XXX_presence[0]), 3)
|
|
}
|
|
|
|
func (x *PeerStatus) HasBeacon() bool {
|
|
if x == nil {
|
|
return false
|
|
}
|
|
return protoimpl.X.Present(&(x.XXX_presence[0]), 4)
|
|
}
|
|
|
|
func (x *PeerStatus) ClearPubkey() {
|
|
protoimpl.X.ClearPresent(&(x.XXX_presence[0]), 0)
|
|
x.xxx_hidden_Pubkey = nil
|
|
}
|
|
|
|
func (x *PeerStatus) ClearIpv4() {
|
|
protoimpl.X.ClearPresent(&(x.XXX_presence[0]), 1)
|
|
x.xxx_hidden_Ipv4 = nil
|
|
}
|
|
|
|
func (x *PeerStatus) ClearEnabled() {
|
|
protoimpl.X.ClearPresent(&(x.XXX_presence[0]), 2)
|
|
x.xxx_hidden_Enabled = false
|
|
}
|
|
|
|
func (x *PeerStatus) ClearNick() {
|
|
protoimpl.X.ClearPresent(&(x.XXX_presence[0]), 3)
|
|
x.xxx_hidden_Nick = nil
|
|
}
|
|
|
|
func (x *PeerStatus) ClearBeacon() {
|
|
protoimpl.X.ClearPresent(&(x.XXX_presence[0]), 4)
|
|
x.xxx_hidden_Beacon = 0
|
|
}
|
|
|
|
type PeerStatus_builder struct {
|
|
_ [0]func() // Prevents comparability and use of unkeyed literals for the builder.
|
|
|
|
Pubkey *string
|
|
Ipv4 *string
|
|
Enabled *bool
|
|
Nick *string
|
|
Beacon *int64
|
|
}
|
|
|
|
func (b0 PeerStatus_builder) Build() *PeerStatus {
|
|
m0 := &PeerStatus{}
|
|
b, x := &b0, m0
|
|
_, _ = b, x
|
|
if b.Pubkey != nil {
|
|
protoimpl.X.SetPresentNonAtomic(&(x.XXX_presence[0]), 0, 5)
|
|
x.xxx_hidden_Pubkey = b.Pubkey
|
|
}
|
|
if b.Ipv4 != nil {
|
|
protoimpl.X.SetPresentNonAtomic(&(x.XXX_presence[0]), 1, 5)
|
|
x.xxx_hidden_Ipv4 = b.Ipv4
|
|
}
|
|
if b.Enabled != nil {
|
|
protoimpl.X.SetPresentNonAtomic(&(x.XXX_presence[0]), 2, 5)
|
|
x.xxx_hidden_Enabled = *b.Enabled
|
|
}
|
|
if b.Nick != nil {
|
|
protoimpl.X.SetPresentNonAtomic(&(x.XXX_presence[0]), 3, 5)
|
|
x.xxx_hidden_Nick = b.Nick
|
|
}
|
|
if b.Beacon != nil {
|
|
protoimpl.X.SetPresentNonAtomic(&(x.XXX_presence[0]), 4, 5)
|
|
x.xxx_hidden_Beacon = *b.Beacon
|
|
}
|
|
return m0
|
|
}
|
|
|
|
type PeerResp struct {
|
|
state protoimpl.MessageState `protogen:"opaque.v1"`
|
|
xxx_hidden_Peers *[]*PeerStatus `protobuf:"bytes,1,rep,name=peers"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *PeerResp) Reset() {
|
|
*x = PeerResp{}
|
|
mi := &file_vpn_proto_msgTypes[1]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *PeerResp) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*PeerResp) ProtoMessage() {}
|
|
|
|
func (x *PeerResp) ProtoReflect() protoreflect.Message {
|
|
mi := &file_vpn_proto_msgTypes[1]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
func (x *PeerResp) GetPeers() []*PeerStatus {
|
|
if x != nil {
|
|
if x.xxx_hidden_Peers != nil {
|
|
return *x.xxx_hidden_Peers
|
|
}
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *PeerResp) SetPeers(v []*PeerStatus) {
|
|
x.xxx_hidden_Peers = &v
|
|
}
|
|
|
|
type PeerResp_builder struct {
|
|
_ [0]func() // Prevents comparability and use of unkeyed literals for the builder.
|
|
|
|
Peers []*PeerStatus
|
|
}
|
|
|
|
func (b0 PeerResp_builder) Build() *PeerResp {
|
|
m0 := &PeerResp{}
|
|
b, x := &b0, m0
|
|
_, _ = b, x
|
|
x.xxx_hidden_Peers = &b.Peers
|
|
return m0
|
|
}
|
|
|
|
type PeerReq struct {
|
|
state protoimpl.MessageState `protogen:"opaque.v1"`
|
|
xxx_hidden_Name *string `protobuf:"bytes,1,req,name=name"`
|
|
xxx_hidden_Ip4 *string `protobuf:"bytes,2,opt,name=ip4"`
|
|
XXX_raceDetectHookData protoimpl.RaceDetectHookData
|
|
XXX_presence [1]uint32
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *PeerReq) Reset() {
|
|
*x = PeerReq{}
|
|
mi := &file_vpn_proto_msgTypes[2]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *PeerReq) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*PeerReq) ProtoMessage() {}
|
|
|
|
func (x *PeerReq) ProtoReflect() protoreflect.Message {
|
|
mi := &file_vpn_proto_msgTypes[2]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
func (x *PeerReq) GetName() string {
|
|
if x != nil {
|
|
if x.xxx_hidden_Name != nil {
|
|
return *x.xxx_hidden_Name
|
|
}
|
|
return ""
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *PeerReq) GetIp4() string {
|
|
if x != nil {
|
|
if x.xxx_hidden_Ip4 != nil {
|
|
return *x.xxx_hidden_Ip4
|
|
}
|
|
return ""
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *PeerReq) SetName(v string) {
|
|
x.xxx_hidden_Name = &v
|
|
protoimpl.X.SetPresent(&(x.XXX_presence[0]), 0, 2)
|
|
}
|
|
|
|
func (x *PeerReq) SetIp4(v string) {
|
|
x.xxx_hidden_Ip4 = &v
|
|
protoimpl.X.SetPresent(&(x.XXX_presence[0]), 1, 2)
|
|
}
|
|
|
|
func (x *PeerReq) HasName() bool {
|
|
if x == nil {
|
|
return false
|
|
}
|
|
return protoimpl.X.Present(&(x.XXX_presence[0]), 0)
|
|
}
|
|
|
|
func (x *PeerReq) HasIp4() bool {
|
|
if x == nil {
|
|
return false
|
|
}
|
|
return protoimpl.X.Present(&(x.XXX_presence[0]), 1)
|
|
}
|
|
|
|
func (x *PeerReq) ClearName() {
|
|
protoimpl.X.ClearPresent(&(x.XXX_presence[0]), 0)
|
|
x.xxx_hidden_Name = nil
|
|
}
|
|
|
|
func (x *PeerReq) ClearIp4() {
|
|
protoimpl.X.ClearPresent(&(x.XXX_presence[0]), 1)
|
|
x.xxx_hidden_Ip4 = nil
|
|
}
|
|
|
|
type PeerReq_builder struct {
|
|
_ [0]func() // Prevents comparability and use of unkeyed literals for the builder.
|
|
|
|
Name *string
|
|
Ip4 *string
|
|
}
|
|
|
|
func (b0 PeerReq_builder) Build() *PeerReq {
|
|
m0 := &PeerReq{}
|
|
b, x := &b0, m0
|
|
_, _ = b, x
|
|
if b.Name != nil {
|
|
protoimpl.X.SetPresentNonAtomic(&(x.XXX_presence[0]), 0, 2)
|
|
x.xxx_hidden_Name = b.Name
|
|
}
|
|
if b.Ip4 != nil {
|
|
protoimpl.X.SetPresentNonAtomic(&(x.XXX_presence[0]), 1, 2)
|
|
x.xxx_hidden_Ip4 = b.Ip4
|
|
}
|
|
return m0
|
|
}
|
|
|
|
var File_vpn_proto protoreflect.FileDescriptor
|
|
|
|
const file_vpn_proto_rawDesc = "" +
|
|
"\n" +
|
|
"\tvpn.proto\x12\bprotovpn\"~\n" +
|
|
"\n" +
|
|
"PeerStatus\x12\x16\n" +
|
|
"\x06pubkey\x18\x01 \x01(\tR\x06pubkey\x12\x12\n" +
|
|
"\x04ipv4\x18\x02 \x01(\tR\x04ipv4\x12\x18\n" +
|
|
"\aenabled\x18\x03 \x01(\bR\aenabled\x12\x12\n" +
|
|
"\x04nick\x18\x04 \x01(\tR\x04nick\x12\x16\n" +
|
|
"\x06beacon\x18\x05 \x01(\x03R\x06beacon\"6\n" +
|
|
"\bPeerResp\x12*\n" +
|
|
"\x05peers\x18\x01 \x03(\v2\x14.protovpn.PeerStatusR\x05peers\"=\n" +
|
|
"\aPeerReq\x12\x19\n" +
|
|
"\x04name\x18\x01 \x01(\tB\x05\xaa\x01\x02\b\x03R\x04name\x12\x17\n" +
|
|
"\x03ip4\x18\x02 \x01(\tB\x05\xaa\x01\x02\b\x01R\x03ip4B!Z\x1fgit.jasinco.work/wgcl/proto/outb\beditionsp\xe9\a"
|
|
|
|
var file_vpn_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
|
|
var file_vpn_proto_goTypes = []any{
|
|
(*PeerStatus)(nil), // 0: protovpn.PeerStatus
|
|
(*PeerResp)(nil), // 1: protovpn.PeerResp
|
|
(*PeerReq)(nil), // 2: protovpn.PeerReq
|
|
}
|
|
var file_vpn_proto_depIdxs = []int32{
|
|
0, // 0: protovpn.PeerResp.peers:type_name -> protovpn.PeerStatus
|
|
1, // [1:1] is the sub-list for method output_type
|
|
1, // [1:1] is the sub-list for method input_type
|
|
1, // [1:1] is the sub-list for extension type_name
|
|
1, // [1:1] is the sub-list for extension extendee
|
|
0, // [0:1] is the sub-list for field type_name
|
|
}
|
|
|
|
func init() { file_vpn_proto_init() }
|
|
func file_vpn_proto_init() {
|
|
if File_vpn_proto != nil {
|
|
return
|
|
}
|
|
type x struct{}
|
|
out := protoimpl.TypeBuilder{
|
|
File: protoimpl.DescBuilder{
|
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
|
RawDescriptor: unsafe.Slice(unsafe.StringData(file_vpn_proto_rawDesc), len(file_vpn_proto_rawDesc)),
|
|
NumEnums: 0,
|
|
NumMessages: 3,
|
|
NumExtensions: 0,
|
|
NumServices: 0,
|
|
},
|
|
GoTypes: file_vpn_proto_goTypes,
|
|
DependencyIndexes: file_vpn_proto_depIdxs,
|
|
MessageInfos: file_vpn_proto_msgTypes,
|
|
}.Build()
|
|
File_vpn_proto = out.File
|
|
file_vpn_proto_goTypes = nil
|
|
file_vpn_proto_depIdxs = nil
|
|
}
|