| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888 |
- // Code generated by protoc-gen-go. DO NOT EDIT.
- // versions:
- // protoc-gen-go v1.26.0
- // protoc v3.12.4
- // source: vpn.proto
- package pb
- import (
- _ "google.golang.org/genproto/googleapis/api/annotations"
- protoreflect "google.golang.org/protobuf/reflect/protoreflect"
- protoimpl "google.golang.org/protobuf/runtime/protoimpl"
- reflect "reflect"
- sync "sync"
- )
- 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 VPNProto int32
- const (
- VPNProto_NOPREF VPNProto = 0
- VPNProto_UDP VPNProto = 1
- VPNProto_TCP VPNProto = 2
- )
- // Enum value maps for VPNProto.
- var (
- VPNProto_name = map[int32]string{
- 0: "NOPREF",
- 1: "UDP",
- 2: "TCP",
- }
- VPNProto_value = map[string]int32{
- "NOPREF": 0,
- "UDP": 1,
- "TCP": 2,
- }
- )
- func (x VPNProto) Enum() *VPNProto {
- p := new(VPNProto)
- *p = x
- return p
- }
- func (x VPNProto) String() string {
- return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
- }
- func (VPNProto) Descriptor() protoreflect.EnumDescriptor {
- return file_vpn_proto_enumTypes[0].Descriptor()
- }
- func (VPNProto) Type() protoreflect.EnumType {
- return &file_vpn_proto_enumTypes[0]
- }
- func (x VPNProto) Number() protoreflect.EnumNumber {
- return protoreflect.EnumNumber(x)
- }
- // Deprecated: Use VPNProto.Descriptor instead.
- func (VPNProto) EnumDescriptor() ([]byte, []int) {
- return file_vpn_proto_rawDescGZIP(), []int{0}
- }
- type VPNLZOPref int32
- const (
- VPNLZOPref_USE_LZO_NOPREF VPNLZOPref = 0
- VPNLZOPref_USE_LZO_ENABLE VPNLZOPref = 1
- VPNLZOPref_USE_LZO_DISABLE VPNLZOPref = 3
- )
- // Enum value maps for VPNLZOPref.
- var (
- VPNLZOPref_name = map[int32]string{
- 0: "USE_LZO_NOPREF",
- 1: "USE_LZO_ENABLE",
- 3: "USE_LZO_DISABLE",
- }
- VPNLZOPref_value = map[string]int32{
- "USE_LZO_NOPREF": 0,
- "USE_LZO_ENABLE": 1,
- "USE_LZO_DISABLE": 3,
- }
- )
- func (x VPNLZOPref) Enum() *VPNLZOPref {
- p := new(VPNLZOPref)
- *p = x
- return p
- }
- func (x VPNLZOPref) String() string {
- return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
- }
- func (VPNLZOPref) Descriptor() protoreflect.EnumDescriptor {
- return file_vpn_proto_enumTypes[1].Descriptor()
- }
- func (VPNLZOPref) Type() protoreflect.EnumType {
- return &file_vpn_proto_enumTypes[1]
- }
- func (x VPNLZOPref) Number() protoreflect.EnumNumber {
- return protoreflect.EnumNumber(x)
- }
- // Deprecated: Use VPNLZOPref.Descriptor instead.
- func (VPNLZOPref) EnumDescriptor() ([]byte, []int) {
- return file_vpn_proto_rawDescGZIP(), []int{1}
- }
- type VPNStatusRequest struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
- }
- func (x *VPNStatusRequest) Reset() {
- *x = VPNStatusRequest{}
- if protoimpl.UnsafeEnabled {
- mi := &file_vpn_proto_msgTypes[0]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
- func (x *VPNStatusRequest) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*VPNStatusRequest) ProtoMessage() {}
- func (x *VPNStatusRequest) ProtoReflect() protoreflect.Message {
- mi := &file_vpn_proto_msgTypes[0]
- if protoimpl.UnsafeEnabled && x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
- }
- // Deprecated: Use VPNStatusRequest.ProtoReflect.Descriptor instead.
- func (*VPNStatusRequest) Descriptor() ([]byte, []int) {
- return file_vpn_proto_rawDescGZIP(), []int{0}
- }
- type VPNInitRequest struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
- Hostname string `protobuf:"bytes,1,opt,name=hostname,proto3" json:"hostname,omitempty"`
- Port string `protobuf:"bytes,2,opt,name=port,proto3" json:"port,omitempty"`
- ProtoPref VPNProto `protobuf:"varint,3,opt,name=proto_pref,json=protoPref,proto3,enum=pb.VPNProto" json:"proto_pref,omitempty"`
- IpBlock string `protobuf:"bytes,4,opt,name=ip_block,json=ipBlock,proto3" json:"ip_block,omitempty"`
- Dns string `protobuf:"bytes,5,opt,name=dns,proto3" json:"dns,omitempty"`
- KeepalivePeriod string `protobuf:"bytes,6,opt,name=keepalive_period,json=keepalivePeriod,proto3" json:"keepalive_period,omitempty"`
- KeepaliveTimeout string `protobuf:"bytes,7,opt,name=keepalive_timeout,json=keepaliveTimeout,proto3" json:"keepalive_timeout,omitempty"`
- UseLzo bool `protobuf:"varint,8,opt,name=use_lzo,json=useLzo,proto3" json:"use_lzo,omitempty"`
- }
- func (x *VPNInitRequest) Reset() {
- *x = VPNInitRequest{}
- if protoimpl.UnsafeEnabled {
- mi := &file_vpn_proto_msgTypes[1]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
- func (x *VPNInitRequest) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*VPNInitRequest) ProtoMessage() {}
- func (x *VPNInitRequest) ProtoReflect() protoreflect.Message {
- mi := &file_vpn_proto_msgTypes[1]
- if protoimpl.UnsafeEnabled && x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
- }
- // Deprecated: Use VPNInitRequest.ProtoReflect.Descriptor instead.
- func (*VPNInitRequest) Descriptor() ([]byte, []int) {
- return file_vpn_proto_rawDescGZIP(), []int{1}
- }
- func (x *VPNInitRequest) GetHostname() string {
- if x != nil {
- return x.Hostname
- }
- return ""
- }
- func (x *VPNInitRequest) GetPort() string {
- if x != nil {
- return x.Port
- }
- return ""
- }
- func (x *VPNInitRequest) GetProtoPref() VPNProto {
- if x != nil {
- return x.ProtoPref
- }
- return VPNProto_NOPREF
- }
- func (x *VPNInitRequest) GetIpBlock() string {
- if x != nil {
- return x.IpBlock
- }
- return ""
- }
- func (x *VPNInitRequest) GetDns() string {
- if x != nil {
- return x.Dns
- }
- return ""
- }
- func (x *VPNInitRequest) GetKeepalivePeriod() string {
- if x != nil {
- return x.KeepalivePeriod
- }
- return ""
- }
- func (x *VPNInitRequest) GetKeepaliveTimeout() string {
- if x != nil {
- return x.KeepaliveTimeout
- }
- return ""
- }
- func (x *VPNInitRequest) GetUseLzo() bool {
- if x != nil {
- return x.UseLzo
- }
- return false
- }
- type VPNUpdateRequest struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
- IpBlock string `protobuf:"bytes,1,opt,name=ip_block,json=ipBlock,proto3" json:"ip_block,omitempty"`
- Dns string `protobuf:"bytes,2,opt,name=dns,proto3" json:"dns,omitempty"`
- LzoPref VPNLZOPref `protobuf:"varint,3,opt,name=lzo_pref,json=lzoPref,proto3,enum=pb.VPNLZOPref" json:"lzo_pref,omitempty"`
- }
- func (x *VPNUpdateRequest) Reset() {
- *x = VPNUpdateRequest{}
- if protoimpl.UnsafeEnabled {
- mi := &file_vpn_proto_msgTypes[2]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
- func (x *VPNUpdateRequest) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*VPNUpdateRequest) ProtoMessage() {}
- func (x *VPNUpdateRequest) ProtoReflect() protoreflect.Message {
- mi := &file_vpn_proto_msgTypes[2]
- if protoimpl.UnsafeEnabled && x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
- }
- // Deprecated: Use VPNUpdateRequest.ProtoReflect.Descriptor instead.
- func (*VPNUpdateRequest) Descriptor() ([]byte, []int) {
- return file_vpn_proto_rawDescGZIP(), []int{2}
- }
- func (x *VPNUpdateRequest) GetIpBlock() string {
- if x != nil {
- return x.IpBlock
- }
- return ""
- }
- func (x *VPNUpdateRequest) GetDns() string {
- if x != nil {
- return x.Dns
- }
- return ""
- }
- func (x *VPNUpdateRequest) GetLzoPref() VPNLZOPref {
- if x != nil {
- return x.LzoPref
- }
- return VPNLZOPref_USE_LZO_NOPREF
- }
- type VPNRestartRequest struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
- }
- func (x *VPNRestartRequest) Reset() {
- *x = VPNRestartRequest{}
- if protoimpl.UnsafeEnabled {
- mi := &file_vpn_proto_msgTypes[3]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
- func (x *VPNRestartRequest) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*VPNRestartRequest) ProtoMessage() {}
- func (x *VPNRestartRequest) ProtoReflect() protoreflect.Message {
- mi := &file_vpn_proto_msgTypes[3]
- if protoimpl.UnsafeEnabled && x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
- }
- // Deprecated: Use VPNRestartRequest.ProtoReflect.Descriptor instead.
- func (*VPNRestartRequest) Descriptor() ([]byte, []int) {
- return file_vpn_proto_rawDescGZIP(), []int{3}
- }
- type VPNStatusResponse struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
- Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
- SerialNumber string `protobuf:"bytes,2,opt,name=serial_number,json=serialNumber,proto3" json:"serial_number,omitempty"`
- Hostname string `protobuf:"bytes,3,opt,name=hostname,proto3" json:"hostname,omitempty"`
- Port string `protobuf:"bytes,4,opt,name=port,proto3" json:"port,omitempty"`
- Cert string `protobuf:"bytes,5,opt,name=cert,proto3" json:"cert,omitempty"`
- CaCert string `protobuf:"bytes,6,opt,name=ca_cert,json=caCert,proto3" json:"ca_cert,omitempty"`
- Net string `protobuf:"bytes,7,opt,name=net,proto3" json:"net,omitempty"`
- Mask string `protobuf:"bytes,8,opt,name=mask,proto3" json:"mask,omitempty"`
- CreatedAt string `protobuf:"bytes,9,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
- Proto string `protobuf:"bytes,10,opt,name=proto,proto3" json:"proto,omitempty"`
- Dns string `protobuf:"bytes,11,opt,name=dns,proto3" json:"dns,omitempty"`
- ExpiresAt string `protobuf:"bytes,12,opt,name=expires_at,json=expiresAt,proto3" json:"expires_at,omitempty"`
- CaExpiresAt string `protobuf:"bytes,13,opt,name=ca_expires_at,json=caExpiresAt,proto3" json:"ca_expires_at,omitempty"`
- UseLzo bool `protobuf:"varint,14,opt,name=use_lzo,json=useLzo,proto3" json:"use_lzo,omitempty"`
- }
- func (x *VPNStatusResponse) Reset() {
- *x = VPNStatusResponse{}
- if protoimpl.UnsafeEnabled {
- mi := &file_vpn_proto_msgTypes[4]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
- func (x *VPNStatusResponse) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*VPNStatusResponse) ProtoMessage() {}
- func (x *VPNStatusResponse) ProtoReflect() protoreflect.Message {
- mi := &file_vpn_proto_msgTypes[4]
- if protoimpl.UnsafeEnabled && x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
- }
- // Deprecated: Use VPNStatusResponse.ProtoReflect.Descriptor instead.
- func (*VPNStatusResponse) Descriptor() ([]byte, []int) {
- return file_vpn_proto_rawDescGZIP(), []int{4}
- }
- func (x *VPNStatusResponse) GetName() string {
- if x != nil {
- return x.Name
- }
- return ""
- }
- func (x *VPNStatusResponse) GetSerialNumber() string {
- if x != nil {
- return x.SerialNumber
- }
- return ""
- }
- func (x *VPNStatusResponse) GetHostname() string {
- if x != nil {
- return x.Hostname
- }
- return ""
- }
- func (x *VPNStatusResponse) GetPort() string {
- if x != nil {
- return x.Port
- }
- return ""
- }
- func (x *VPNStatusResponse) GetCert() string {
- if x != nil {
- return x.Cert
- }
- return ""
- }
- func (x *VPNStatusResponse) GetCaCert() string {
- if x != nil {
- return x.CaCert
- }
- return ""
- }
- func (x *VPNStatusResponse) GetNet() string {
- if x != nil {
- return x.Net
- }
- return ""
- }
- func (x *VPNStatusResponse) GetMask() string {
- if x != nil {
- return x.Mask
- }
- return ""
- }
- func (x *VPNStatusResponse) GetCreatedAt() string {
- if x != nil {
- return x.CreatedAt
- }
- return ""
- }
- func (x *VPNStatusResponse) GetProto() string {
- if x != nil {
- return x.Proto
- }
- return ""
- }
- func (x *VPNStatusResponse) GetDns() string {
- if x != nil {
- return x.Dns
- }
- return ""
- }
- func (x *VPNStatusResponse) GetExpiresAt() string {
- if x != nil {
- return x.ExpiresAt
- }
- return ""
- }
- func (x *VPNStatusResponse) GetCaExpiresAt() string {
- if x != nil {
- return x.CaExpiresAt
- }
- return ""
- }
- func (x *VPNStatusResponse) GetUseLzo() bool {
- if x != nil {
- return x.UseLzo
- }
- return false
- }
- type VPNInitResponse struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
- }
- func (x *VPNInitResponse) Reset() {
- *x = VPNInitResponse{}
- if protoimpl.UnsafeEnabled {
- mi := &file_vpn_proto_msgTypes[5]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
- func (x *VPNInitResponse) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*VPNInitResponse) ProtoMessage() {}
- func (x *VPNInitResponse) ProtoReflect() protoreflect.Message {
- mi := &file_vpn_proto_msgTypes[5]
- if protoimpl.UnsafeEnabled && x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
- }
- // Deprecated: Use VPNInitResponse.ProtoReflect.Descriptor instead.
- func (*VPNInitResponse) Descriptor() ([]byte, []int) {
- return file_vpn_proto_rawDescGZIP(), []int{5}
- }
- type VPNUpdateResponse struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
- }
- func (x *VPNUpdateResponse) Reset() {
- *x = VPNUpdateResponse{}
- if protoimpl.UnsafeEnabled {
- mi := &file_vpn_proto_msgTypes[6]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
- func (x *VPNUpdateResponse) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*VPNUpdateResponse) ProtoMessage() {}
- func (x *VPNUpdateResponse) ProtoReflect() protoreflect.Message {
- mi := &file_vpn_proto_msgTypes[6]
- if protoimpl.UnsafeEnabled && x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
- }
- // Deprecated: Use VPNUpdateResponse.ProtoReflect.Descriptor instead.
- func (*VPNUpdateResponse) Descriptor() ([]byte, []int) {
- return file_vpn_proto_rawDescGZIP(), []int{6}
- }
- type VPNRestartResponse struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
- }
- func (x *VPNRestartResponse) Reset() {
- *x = VPNRestartResponse{}
- if protoimpl.UnsafeEnabled {
- mi := &file_vpn_proto_msgTypes[7]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
- func (x *VPNRestartResponse) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*VPNRestartResponse) ProtoMessage() {}
- func (x *VPNRestartResponse) ProtoReflect() protoreflect.Message {
- mi := &file_vpn_proto_msgTypes[7]
- if protoimpl.UnsafeEnabled && x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
- }
- // Deprecated: Use VPNRestartResponse.ProtoReflect.Descriptor instead.
- func (*VPNRestartResponse) Descriptor() ([]byte, []int) {
- return file_vpn_proto_rawDescGZIP(), []int{7}
- }
- var File_vpn_proto protoreflect.FileDescriptor
- var file_vpn_proto_rawDesc = []byte{
- 0x0a, 0x09, 0x76, 0x70, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x02, 0x70, 0x62, 0x1a,
- 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x61, 0x6e, 0x6e, 0x6f,
- 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x12, 0x0a,
- 0x10, 0x56, 0x50, 0x4e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
- 0x74, 0x22, 0x8b, 0x02, 0x0a, 0x0e, 0x56, 0x50, 0x4e, 0x49, 0x6e, 0x69, 0x74, 0x52, 0x65, 0x71,
- 0x75, 0x65, 0x73, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x68, 0x6f, 0x73, 0x74, 0x6e, 0x61, 0x6d, 0x65,
- 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x68, 0x6f, 0x73, 0x74, 0x6e, 0x61, 0x6d, 0x65,
- 0x12, 0x12, 0x0a, 0x04, 0x70, 0x6f, 0x72, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04,
- 0x70, 0x6f, 0x72, 0x74, 0x12, 0x2b, 0x0a, 0x0a, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x5f, 0x70, 0x72,
- 0x65, 0x66, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x0c, 0x2e, 0x70, 0x62, 0x2e, 0x56, 0x50,
- 0x4e, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x52, 0x09, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x72, 0x65,
- 0x66, 0x12, 0x19, 0x0a, 0x08, 0x69, 0x70, 0x5f, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x18, 0x04, 0x20,
- 0x01, 0x28, 0x09, 0x52, 0x07, 0x69, 0x70, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x12, 0x10, 0x0a, 0x03,
- 0x64, 0x6e, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x64, 0x6e, 0x73, 0x12, 0x29,
- 0x0a, 0x10, 0x6b, 0x65, 0x65, 0x70, 0x61, 0x6c, 0x69, 0x76, 0x65, 0x5f, 0x70, 0x65, 0x72, 0x69,
- 0x6f, 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, 0x6b, 0x65, 0x65, 0x70, 0x61, 0x6c,
- 0x69, 0x76, 0x65, 0x50, 0x65, 0x72, 0x69, 0x6f, 0x64, 0x12, 0x2b, 0x0a, 0x11, 0x6b, 0x65, 0x65,
- 0x70, 0x61, 0x6c, 0x69, 0x76, 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x18, 0x07,
- 0x20, 0x01, 0x28, 0x09, 0x52, 0x10, 0x6b, 0x65, 0x65, 0x70, 0x61, 0x6c, 0x69, 0x76, 0x65, 0x54,
- 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x12, 0x17, 0x0a, 0x07, 0x75, 0x73, 0x65, 0x5f, 0x6c, 0x7a,
- 0x6f, 0x18, 0x08, 0x20, 0x01, 0x28, 0x08, 0x52, 0x06, 0x75, 0x73, 0x65, 0x4c, 0x7a, 0x6f, 0x22,
- 0x6a, 0x0a, 0x10, 0x56, 0x50, 0x4e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75,
- 0x65, 0x73, 0x74, 0x12, 0x19, 0x0a, 0x08, 0x69, 0x70, 0x5f, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x18,
- 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x69, 0x70, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x12, 0x10,
- 0x0a, 0x03, 0x64, 0x6e, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x64, 0x6e, 0x73,
- 0x12, 0x29, 0x0a, 0x08, 0x6c, 0x7a, 0x6f, 0x5f, 0x70, 0x72, 0x65, 0x66, 0x18, 0x03, 0x20, 0x01,
- 0x28, 0x0e, 0x32, 0x0e, 0x2e, 0x70, 0x62, 0x2e, 0x56, 0x50, 0x4e, 0x4c, 0x5a, 0x4f, 0x50, 0x72,
- 0x65, 0x66, 0x52, 0x07, 0x6c, 0x7a, 0x6f, 0x50, 0x72, 0x65, 0x66, 0x22, 0x13, 0x0a, 0x11, 0x56,
- 0x50, 0x4e, 0x52, 0x65, 0x73, 0x74, 0x61, 0x72, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
- 0x22, 0xf2, 0x02, 0x0a, 0x11, 0x56, 0x50, 0x4e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x65,
- 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01,
- 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x23, 0x0a, 0x0d, 0x73, 0x65,
- 0x72, 0x69, 0x61, 0x6c, 0x5f, 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28,
- 0x09, 0x52, 0x0c, 0x73, 0x65, 0x72, 0x69, 0x61, 0x6c, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x12,
- 0x1a, 0x0a, 0x08, 0x68, 0x6f, 0x73, 0x74, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28,
- 0x09, 0x52, 0x08, 0x68, 0x6f, 0x73, 0x74, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x70,
- 0x6f, 0x72, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x70, 0x6f, 0x72, 0x74, 0x12,
- 0x12, 0x0a, 0x04, 0x63, 0x65, 0x72, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x63,
- 0x65, 0x72, 0x74, 0x12, 0x17, 0x0a, 0x07, 0x63, 0x61, 0x5f, 0x63, 0x65, 0x72, 0x74, 0x18, 0x06,
- 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x63, 0x61, 0x43, 0x65, 0x72, 0x74, 0x12, 0x10, 0x0a, 0x03,
- 0x6e, 0x65, 0x74, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6e, 0x65, 0x74, 0x12, 0x12,
- 0x0a, 0x04, 0x6d, 0x61, 0x73, 0x6b, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6d, 0x61,
- 0x73, 0x6b, 0x12, 0x1d, 0x0a, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74,
- 0x18, 0x09, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x41,
- 0x74, 0x12, 0x14, 0x0a, 0x05, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x09,
- 0x52, 0x05, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x10, 0x0a, 0x03, 0x64, 0x6e, 0x73, 0x18, 0x0b,
- 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x64, 0x6e, 0x73, 0x12, 0x1d, 0x0a, 0x0a, 0x65, 0x78, 0x70,
- 0x69, 0x72, 0x65, 0x73, 0x5f, 0x61, 0x74, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x65,
- 0x78, 0x70, 0x69, 0x72, 0x65, 0x73, 0x41, 0x74, 0x12, 0x22, 0x0a, 0x0d, 0x63, 0x61, 0x5f, 0x65,
- 0x78, 0x70, 0x69, 0x72, 0x65, 0x73, 0x5f, 0x61, 0x74, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x09, 0x52,
- 0x0b, 0x63, 0x61, 0x45, 0x78, 0x70, 0x69, 0x72, 0x65, 0x73, 0x41, 0x74, 0x12, 0x17, 0x0a, 0x07,
- 0x75, 0x73, 0x65, 0x5f, 0x6c, 0x7a, 0x6f, 0x18, 0x0e, 0x20, 0x01, 0x28, 0x08, 0x52, 0x06, 0x75,
- 0x73, 0x65, 0x4c, 0x7a, 0x6f, 0x22, 0x11, 0x0a, 0x0f, 0x56, 0x50, 0x4e, 0x49, 0x6e, 0x69, 0x74,
- 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x13, 0x0a, 0x11, 0x56, 0x50, 0x4e, 0x55,
- 0x70, 0x64, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x14, 0x0a,
- 0x12, 0x56, 0x50, 0x4e, 0x52, 0x65, 0x73, 0x74, 0x61, 0x72, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f,
- 0x6e, 0x73, 0x65, 0x2a, 0x28, 0x0a, 0x08, 0x56, 0x50, 0x4e, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x12,
- 0x0a, 0x0a, 0x06, 0x4e, 0x4f, 0x50, 0x52, 0x45, 0x46, 0x10, 0x00, 0x12, 0x07, 0x0a, 0x03, 0x55,
- 0x44, 0x50, 0x10, 0x01, 0x12, 0x07, 0x0a, 0x03, 0x54, 0x43, 0x50, 0x10, 0x02, 0x2a, 0x49, 0x0a,
- 0x0a, 0x56, 0x50, 0x4e, 0x4c, 0x5a, 0x4f, 0x50, 0x72, 0x65, 0x66, 0x12, 0x12, 0x0a, 0x0e, 0x55,
- 0x53, 0x45, 0x5f, 0x4c, 0x5a, 0x4f, 0x5f, 0x4e, 0x4f, 0x50, 0x52, 0x45, 0x46, 0x10, 0x00, 0x12,
- 0x12, 0x0a, 0x0e, 0x55, 0x53, 0x45, 0x5f, 0x4c, 0x5a, 0x4f, 0x5f, 0x45, 0x4e, 0x41, 0x42, 0x4c,
- 0x45, 0x10, 0x01, 0x12, 0x13, 0x0a, 0x0f, 0x55, 0x53, 0x45, 0x5f, 0x4c, 0x5a, 0x4f, 0x5f, 0x44,
- 0x49, 0x53, 0x41, 0x42, 0x4c, 0x45, 0x10, 0x03, 0x32, 0xda, 0x02, 0x0a, 0x0a, 0x56, 0x50, 0x4e,
- 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x51, 0x0a, 0x06, 0x53, 0x74, 0x61, 0x74, 0x75,
- 0x73, 0x12, 0x14, 0x2e, 0x70, 0x62, 0x2e, 0x56, 0x50, 0x4e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73,
- 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x15, 0x2e, 0x70, 0x62, 0x2e, 0x56, 0x50, 0x4e,
- 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x1a,
- 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x14, 0x12, 0x12, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f,
- 0x76, 0x70, 0x6e, 0x2f, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x4c, 0x0a, 0x04, 0x49, 0x6e,
- 0x69, 0x74, 0x12, 0x12, 0x2e, 0x70, 0x62, 0x2e, 0x56, 0x50, 0x4e, 0x49, 0x6e, 0x69, 0x74, 0x52,
- 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x13, 0x2e, 0x70, 0x62, 0x2e, 0x56, 0x50, 0x4e, 0x49,
- 0x6e, 0x69, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x1b, 0x82, 0xd3, 0xe4,
- 0x93, 0x02, 0x15, 0x22, 0x10, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x76, 0x70, 0x6e,
- 0x2f, 0x69, 0x6e, 0x69, 0x74, 0x3a, 0x01, 0x2a, 0x12, 0x54, 0x0a, 0x06, 0x55, 0x70, 0x64, 0x61,
- 0x74, 0x65, 0x12, 0x14, 0x2e, 0x70, 0x62, 0x2e, 0x56, 0x50, 0x4e, 0x55, 0x70, 0x64, 0x61, 0x74,
- 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x15, 0x2e, 0x70, 0x62, 0x2e, 0x56, 0x50,
- 0x4e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22,
- 0x1d, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x17, 0x22, 0x12, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31,
- 0x2f, 0x76, 0x70, 0x6e, 0x2f, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x3a, 0x01, 0x2a, 0x12, 0x55,
- 0x0a, 0x07, 0x52, 0x65, 0x73, 0x74, 0x61, 0x72, 0x74, 0x12, 0x15, 0x2e, 0x70, 0x62, 0x2e, 0x56,
- 0x50, 0x4e, 0x52, 0x65, 0x73, 0x74, 0x61, 0x72, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
- 0x1a, 0x16, 0x2e, 0x70, 0x62, 0x2e, 0x56, 0x50, 0x4e, 0x52, 0x65, 0x73, 0x74, 0x61, 0x72, 0x74,
- 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x1b, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x15,
- 0x22, 0x13, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x76, 0x70, 0x6e, 0x2f, 0x72, 0x65,
- 0x73, 0x74, 0x61, 0x72, 0x74, 0x42, 0x1c, 0x5a, 0x1a, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e,
- 0x63, 0x6f, 0x6d, 0x2f, 0x63, 0x61, 0x64, 0x2f, 0x6f, 0x76, 0x70, 0x6d, 0x2f, 0x61, 0x70, 0x69,
- 0x2f, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
- }
- var (
- file_vpn_proto_rawDescOnce sync.Once
- file_vpn_proto_rawDescData = file_vpn_proto_rawDesc
- )
- func file_vpn_proto_rawDescGZIP() []byte {
- file_vpn_proto_rawDescOnce.Do(func() {
- file_vpn_proto_rawDescData = protoimpl.X.CompressGZIP(file_vpn_proto_rawDescData)
- })
- return file_vpn_proto_rawDescData
- }
- var file_vpn_proto_enumTypes = make([]protoimpl.EnumInfo, 2)
- var file_vpn_proto_msgTypes = make([]protoimpl.MessageInfo, 8)
- var file_vpn_proto_goTypes = []interface{}{
- (VPNProto)(0), // 0: pb.VPNProto
- (VPNLZOPref)(0), // 1: pb.VPNLZOPref
- (*VPNStatusRequest)(nil), // 2: pb.VPNStatusRequest
- (*VPNInitRequest)(nil), // 3: pb.VPNInitRequest
- (*VPNUpdateRequest)(nil), // 4: pb.VPNUpdateRequest
- (*VPNRestartRequest)(nil), // 5: pb.VPNRestartRequest
- (*VPNStatusResponse)(nil), // 6: pb.VPNStatusResponse
- (*VPNInitResponse)(nil), // 7: pb.VPNInitResponse
- (*VPNUpdateResponse)(nil), // 8: pb.VPNUpdateResponse
- (*VPNRestartResponse)(nil), // 9: pb.VPNRestartResponse
- }
- var file_vpn_proto_depIdxs = []int32{
- 0, // 0: pb.VPNInitRequest.proto_pref:type_name -> pb.VPNProto
- 1, // 1: pb.VPNUpdateRequest.lzo_pref:type_name -> pb.VPNLZOPref
- 2, // 2: pb.VPNService.Status:input_type -> pb.VPNStatusRequest
- 3, // 3: pb.VPNService.Init:input_type -> pb.VPNInitRequest
- 4, // 4: pb.VPNService.Update:input_type -> pb.VPNUpdateRequest
- 5, // 5: pb.VPNService.Restart:input_type -> pb.VPNRestartRequest
- 6, // 6: pb.VPNService.Status:output_type -> pb.VPNStatusResponse
- 7, // 7: pb.VPNService.Init:output_type -> pb.VPNInitResponse
- 8, // 8: pb.VPNService.Update:output_type -> pb.VPNUpdateResponse
- 9, // 9: pb.VPNService.Restart:output_type -> pb.VPNRestartResponse
- 6, // [6:10] is the sub-list for method output_type
- 2, // [2:6] is the sub-list for method input_type
- 2, // [2:2] is the sub-list for extension type_name
- 2, // [2:2] is the sub-list for extension extendee
- 0, // [0:2] 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
- }
- if !protoimpl.UnsafeEnabled {
- file_vpn_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*VPNStatusRequest); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- file_vpn_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*VPNInitRequest); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- file_vpn_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*VPNUpdateRequest); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- file_vpn_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*VPNRestartRequest); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- file_vpn_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*VPNStatusResponse); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- file_vpn_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*VPNInitResponse); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- file_vpn_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*VPNUpdateResponse); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- file_vpn_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*VPNRestartResponse); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- }
- type x struct{}
- out := protoimpl.TypeBuilder{
- File: protoimpl.DescBuilder{
- GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
- RawDescriptor: file_vpn_proto_rawDesc,
- NumEnums: 2,
- NumMessages: 8,
- NumExtensions: 0,
- NumServices: 1,
- },
- GoTypes: file_vpn_proto_goTypes,
- DependencyIndexes: file_vpn_proto_depIdxs,
- EnumInfos: file_vpn_proto_enumTypes,
- MessageInfos: file_vpn_proto_msgTypes,
- }.Build()
- File_vpn_proto = out.File
- file_vpn_proto_rawDesc = nil
- file_vpn_proto_goTypes = nil
- file_vpn_proto_depIdxs = nil
- }
|