go.ligato.io/vpp-agent/v3@v3.5.0/proto/ligato/vpp/wireguard/wireguard.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: ligato/vpp/wireguard/wireguard.proto 6 7 package vpp_wg 8 9 import ( 10 _ "go.ligato.io/vpp-agent/v3/proto/ligato" 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 Peer struct { 25 state protoimpl.MessageState 26 sizeCache protoimpl.SizeCache 27 unknownFields protoimpl.UnknownFields 28 29 // Public-key base64 30 PublicKey string `protobuf:"bytes,1,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty"` 31 // Peer UDP port 32 Port uint32 `protobuf:"varint,2,opt,name=port,proto3" json:"port,omitempty"` 33 // Keepalive interval (sec) 34 PersistentKeepalive uint32 `protobuf:"varint,3,opt,name=persistent_keepalive,json=persistentKeepalive,proto3" json:"persistent_keepalive,omitempty"` 35 // Endpoint IP 36 Endpoint string `protobuf:"bytes,4,opt,name=endpoint,proto3" json:"endpoint,omitempty"` 37 // The name of the wireguard interface to which this peer belongs 38 WgIfName string `protobuf:"bytes,5,opt,name=wg_if_name,json=wgIfName,proto3" json:"wg_if_name,omitempty"` 39 // Flags 40 // WIREGUARD_PEER_STATUS_DEAD = 0x1 41 Flags uint32 `protobuf:"varint,6,opt,name=flags,proto3" json:"flags,omitempty"` 42 // Allowed IPs 43 AllowedIps []string `protobuf:"bytes,7,rep,name=allowed_ips,json=allowedIps,proto3" json:"allowed_ips,omitempty"` 44 } 45 46 func (x *Peer) Reset() { 47 *x = Peer{} 48 if protoimpl.UnsafeEnabled { 49 mi := &file_ligato_vpp_wireguard_wireguard_proto_msgTypes[0] 50 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 51 ms.StoreMessageInfo(mi) 52 } 53 } 54 55 func (x *Peer) String() string { 56 return protoimpl.X.MessageStringOf(x) 57 } 58 59 func (*Peer) ProtoMessage() {} 60 61 func (x *Peer) ProtoReflect() protoreflect.Message { 62 mi := &file_ligato_vpp_wireguard_wireguard_proto_msgTypes[0] 63 if protoimpl.UnsafeEnabled && x != nil { 64 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 65 if ms.LoadMessageInfo() == nil { 66 ms.StoreMessageInfo(mi) 67 } 68 return ms 69 } 70 return mi.MessageOf(x) 71 } 72 73 // Deprecated: Use Peer.ProtoReflect.Descriptor instead. 74 func (*Peer) Descriptor() ([]byte, []int) { 75 return file_ligato_vpp_wireguard_wireguard_proto_rawDescGZIP(), []int{0} 76 } 77 78 func (x *Peer) GetPublicKey() string { 79 if x != nil { 80 return x.PublicKey 81 } 82 return "" 83 } 84 85 func (x *Peer) GetPort() uint32 { 86 if x != nil { 87 return x.Port 88 } 89 return 0 90 } 91 92 func (x *Peer) GetPersistentKeepalive() uint32 { 93 if x != nil { 94 return x.PersistentKeepalive 95 } 96 return 0 97 } 98 99 func (x *Peer) GetEndpoint() string { 100 if x != nil { 101 return x.Endpoint 102 } 103 return "" 104 } 105 106 func (x *Peer) GetWgIfName() string { 107 if x != nil { 108 return x.WgIfName 109 } 110 return "" 111 } 112 113 func (x *Peer) GetFlags() uint32 { 114 if x != nil { 115 return x.Flags 116 } 117 return 0 118 } 119 120 func (x *Peer) GetAllowedIps() []string { 121 if x != nil { 122 return x.AllowedIps 123 } 124 return nil 125 } 126 127 var File_ligato_vpp_wireguard_wireguard_proto protoreflect.FileDescriptor 128 129 var file_ligato_vpp_wireguard_wireguard_proto_rawDesc = []byte{ 130 0x0a, 0x24, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2f, 0x76, 0x70, 0x70, 0x2f, 0x77, 0x69, 0x72, 131 0x65, 0x67, 0x75, 0x61, 0x72, 0x64, 0x2f, 0x77, 0x69, 0x72, 0x65, 0x67, 0x75, 0x61, 0x72, 0x64, 132 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x14, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2e, 0x76, 133 0x70, 0x70, 0x2e, 0x77, 0x69, 0x72, 0x65, 0x67, 0x75, 0x61, 0x72, 0x64, 0x1a, 0x18, 0x6c, 0x69, 134 0x67, 0x61, 0x74, 0x6f, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 135 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xf6, 0x01, 0x0a, 0x04, 0x50, 0x65, 0x65, 0x72, 0x12, 136 0x1d, 0x0a, 0x0a, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 137 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x4b, 0x65, 0x79, 0x12, 0x1d, 138 0x0a, 0x04, 0x70, 0x6f, 0x72, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x42, 0x09, 0x82, 0x7d, 139 0x06, 0x12, 0x04, 0x10, 0xff, 0xff, 0x03, 0x52, 0x04, 0x70, 0x6f, 0x72, 0x74, 0x12, 0x31, 0x0a, 140 0x14, 0x70, 0x65, 0x72, 0x73, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x74, 0x5f, 0x6b, 0x65, 0x65, 0x70, 141 0x61, 0x6c, 0x69, 0x76, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x13, 0x70, 0x65, 0x72, 142 0x73, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x74, 0x4b, 0x65, 0x65, 0x70, 0x61, 0x6c, 0x69, 0x76, 0x65, 143 0x12, 0x21, 0x0a, 0x08, 0x65, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x18, 0x04, 0x20, 0x01, 144 0x28, 0x09, 0x42, 0x05, 0x82, 0x7d, 0x02, 0x08, 0x01, 0x52, 0x08, 0x65, 0x6e, 0x64, 0x70, 0x6f, 145 0x69, 0x6e, 0x74, 0x12, 0x1c, 0x0a, 0x0a, 0x77, 0x67, 0x5f, 0x69, 0x66, 0x5f, 0x6e, 0x61, 0x6d, 146 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x77, 0x67, 0x49, 0x66, 0x4e, 0x61, 0x6d, 147 0x65, 0x12, 0x14, 0x0a, 0x05, 0x66, 0x6c, 0x61, 0x67, 0x73, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0d, 148 0x52, 0x05, 0x66, 0x6c, 0x61, 0x67, 0x73, 0x12, 0x26, 0x0a, 0x0b, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 149 0x65, 0x64, 0x5f, 0x69, 0x70, 0x73, 0x18, 0x07, 0x20, 0x03, 0x28, 0x09, 0x42, 0x05, 0x82, 0x7d, 150 0x02, 0x08, 0x01, 0x52, 0x0a, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x65, 0x64, 0x49, 0x70, 0x73, 0x42, 151 0x3d, 0x5a, 0x3b, 0x67, 0x6f, 0x2e, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2e, 0x69, 0x6f, 0x2f, 152 0x76, 0x70, 0x70, 0x2d, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2f, 0x76, 0x33, 0x2f, 0x70, 0x72, 0x6f, 153 0x74, 0x6f, 0x2f, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2f, 0x76, 0x70, 0x70, 0x2f, 0x77, 0x69, 154 0x72, 0x65, 0x67, 0x75, 0x61, 0x72, 0x64, 0x3b, 0x76, 0x70, 0x70, 0x5f, 0x77, 0x67, 0x62, 0x06, 155 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, 156 } 157 158 var ( 159 file_ligato_vpp_wireguard_wireguard_proto_rawDescOnce sync.Once 160 file_ligato_vpp_wireguard_wireguard_proto_rawDescData = file_ligato_vpp_wireguard_wireguard_proto_rawDesc 161 ) 162 163 func file_ligato_vpp_wireguard_wireguard_proto_rawDescGZIP() []byte { 164 file_ligato_vpp_wireguard_wireguard_proto_rawDescOnce.Do(func() { 165 file_ligato_vpp_wireguard_wireguard_proto_rawDescData = protoimpl.X.CompressGZIP(file_ligato_vpp_wireguard_wireguard_proto_rawDescData) 166 }) 167 return file_ligato_vpp_wireguard_wireguard_proto_rawDescData 168 } 169 170 var file_ligato_vpp_wireguard_wireguard_proto_msgTypes = make([]protoimpl.MessageInfo, 1) 171 var file_ligato_vpp_wireguard_wireguard_proto_goTypes = []interface{}{ 172 (*Peer)(nil), // 0: ligato.vpp.wireguard.Peer 173 } 174 var file_ligato_vpp_wireguard_wireguard_proto_depIdxs = []int32{ 175 0, // [0:0] is the sub-list for method output_type 176 0, // [0:0] is the sub-list for method input_type 177 0, // [0:0] is the sub-list for extension type_name 178 0, // [0:0] is the sub-list for extension extendee 179 0, // [0:0] is the sub-list for field type_name 180 } 181 182 func init() { file_ligato_vpp_wireguard_wireguard_proto_init() } 183 func file_ligato_vpp_wireguard_wireguard_proto_init() { 184 if File_ligato_vpp_wireguard_wireguard_proto != nil { 185 return 186 } 187 if !protoimpl.UnsafeEnabled { 188 file_ligato_vpp_wireguard_wireguard_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 189 switch v := v.(*Peer); i { 190 case 0: 191 return &v.state 192 case 1: 193 return &v.sizeCache 194 case 2: 195 return &v.unknownFields 196 default: 197 return nil 198 } 199 } 200 } 201 type x struct{} 202 out := protoimpl.TypeBuilder{ 203 File: protoimpl.DescBuilder{ 204 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 205 RawDescriptor: file_ligato_vpp_wireguard_wireguard_proto_rawDesc, 206 NumEnums: 0, 207 NumMessages: 1, 208 NumExtensions: 0, 209 NumServices: 0, 210 }, 211 GoTypes: file_ligato_vpp_wireguard_wireguard_proto_goTypes, 212 DependencyIndexes: file_ligato_vpp_wireguard_wireguard_proto_depIdxs, 213 MessageInfos: file_ligato_vpp_wireguard_wireguard_proto_msgTypes, 214 }.Build() 215 File_ligato_vpp_wireguard_wireguard_proto = out.File 216 file_ligato_vpp_wireguard_wireguard_proto_rawDesc = nil 217 file_ligato_vpp_wireguard_wireguard_proto_goTypes = nil 218 file_ligato_vpp_wireguard_wireguard_proto_depIdxs = nil 219 }