| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093 |
- // Code generated by protoc-gen-go. DO NOT EDIT.
- // versions:
- // protoc-gen-go v1.26.0
- // protoc v3.12.4
- // source: user.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 UserUpdateRequest_GWPref int32
- const (
- UserUpdateRequest_NOPREF UserUpdateRequest_GWPref = 0
- UserUpdateRequest_NOGW UserUpdateRequest_GWPref = 1
- UserUpdateRequest_GW UserUpdateRequest_GWPref = 2
- )
- // Enum value maps for UserUpdateRequest_GWPref.
- var (
- UserUpdateRequest_GWPref_name = map[int32]string{
- 0: "NOPREF",
- 1: "NOGW",
- 2: "GW",
- }
- UserUpdateRequest_GWPref_value = map[string]int32{
- "NOPREF": 0,
- "NOGW": 1,
- "GW": 2,
- }
- )
- func (x UserUpdateRequest_GWPref) Enum() *UserUpdateRequest_GWPref {
- p := new(UserUpdateRequest_GWPref)
- *p = x
- return p
- }
- func (x UserUpdateRequest_GWPref) String() string {
- return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
- }
- func (UserUpdateRequest_GWPref) Descriptor() protoreflect.EnumDescriptor {
- return file_user_proto_enumTypes[0].Descriptor()
- }
- func (UserUpdateRequest_GWPref) Type() protoreflect.EnumType {
- return &file_user_proto_enumTypes[0]
- }
- func (x UserUpdateRequest_GWPref) Number() protoreflect.EnumNumber {
- return protoreflect.EnumNumber(x)
- }
- // Deprecated: Use UserUpdateRequest_GWPref.Descriptor instead.
- func (UserUpdateRequest_GWPref) EnumDescriptor() ([]byte, []int) {
- return file_user_proto_rawDescGZIP(), []int{2, 0}
- }
- type UserUpdateRequest_StaticPref int32
- const (
- UserUpdateRequest_NOPREFSTATIC UserUpdateRequest_StaticPref = 0
- UserUpdateRequest_NOSTATIC UserUpdateRequest_StaticPref = 1
- UserUpdateRequest_STATIC UserUpdateRequest_StaticPref = 2
- )
- // Enum value maps for UserUpdateRequest_StaticPref.
- var (
- UserUpdateRequest_StaticPref_name = map[int32]string{
- 0: "NOPREFSTATIC",
- 1: "NOSTATIC",
- 2: "STATIC",
- }
- UserUpdateRequest_StaticPref_value = map[string]int32{
- "NOPREFSTATIC": 0,
- "NOSTATIC": 1,
- "STATIC": 2,
- }
- )
- func (x UserUpdateRequest_StaticPref) Enum() *UserUpdateRequest_StaticPref {
- p := new(UserUpdateRequest_StaticPref)
- *p = x
- return p
- }
- func (x UserUpdateRequest_StaticPref) String() string {
- return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
- }
- func (UserUpdateRequest_StaticPref) Descriptor() protoreflect.EnumDescriptor {
- return file_user_proto_enumTypes[1].Descriptor()
- }
- func (UserUpdateRequest_StaticPref) Type() protoreflect.EnumType {
- return &file_user_proto_enumTypes[1]
- }
- func (x UserUpdateRequest_StaticPref) Number() protoreflect.EnumNumber {
- return protoreflect.EnumNumber(x)
- }
- // Deprecated: Use UserUpdateRequest_StaticPref.Descriptor instead.
- func (UserUpdateRequest_StaticPref) EnumDescriptor() ([]byte, []int) {
- return file_user_proto_rawDescGZIP(), []int{2, 1}
- }
- type UserUpdateRequest_AdminPref int32
- const (
- UserUpdateRequest_NOPREFADMIN UserUpdateRequest_AdminPref = 0
- UserUpdateRequest_NOADMIN UserUpdateRequest_AdminPref = 1
- UserUpdateRequest_ADMIN UserUpdateRequest_AdminPref = 2
- )
- // Enum value maps for UserUpdateRequest_AdminPref.
- var (
- UserUpdateRequest_AdminPref_name = map[int32]string{
- 0: "NOPREFADMIN",
- 1: "NOADMIN",
- 2: "ADMIN",
- }
- UserUpdateRequest_AdminPref_value = map[string]int32{
- "NOPREFADMIN": 0,
- "NOADMIN": 1,
- "ADMIN": 2,
- }
- )
- func (x UserUpdateRequest_AdminPref) Enum() *UserUpdateRequest_AdminPref {
- p := new(UserUpdateRequest_AdminPref)
- *p = x
- return p
- }
- func (x UserUpdateRequest_AdminPref) String() string {
- return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
- }
- func (UserUpdateRequest_AdminPref) Descriptor() protoreflect.EnumDescriptor {
- return file_user_proto_enumTypes[2].Descriptor()
- }
- func (UserUpdateRequest_AdminPref) Type() protoreflect.EnumType {
- return &file_user_proto_enumTypes[2]
- }
- func (x UserUpdateRequest_AdminPref) Number() protoreflect.EnumNumber {
- return protoreflect.EnumNumber(x)
- }
- // Deprecated: Use UserUpdateRequest_AdminPref.Descriptor instead.
- func (UserUpdateRequest_AdminPref) EnumDescriptor() ([]byte, []int) {
- return file_user_proto_rawDescGZIP(), []int{2, 2}
- }
- type UserListRequest struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
- }
- func (x *UserListRequest) Reset() {
- *x = UserListRequest{}
- if protoimpl.UnsafeEnabled {
- mi := &file_user_proto_msgTypes[0]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
- func (x *UserListRequest) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*UserListRequest) ProtoMessage() {}
- func (x *UserListRequest) ProtoReflect() protoreflect.Message {
- mi := &file_user_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 UserListRequest.ProtoReflect.Descriptor instead.
- func (*UserListRequest) Descriptor() ([]byte, []int) {
- return file_user_proto_rawDescGZIP(), []int{0}
- }
- type UserCreateRequest struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
- Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"`
- Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"`
- NoGw bool `protobuf:"varint,3,opt,name=no_gw,json=noGw,proto3" json:"no_gw,omitempty"`
- HostId uint32 `protobuf:"varint,4,opt,name=host_id,json=hostId,proto3" json:"host_id,omitempty"`
- IsAdmin bool `protobuf:"varint,5,opt,name=is_admin,json=isAdmin,proto3" json:"is_admin,omitempty"`
- Description string `protobuf:"bytes,6,opt,name=description,proto3" json:"description,omitempty"`
- }
- func (x *UserCreateRequest) Reset() {
- *x = UserCreateRequest{}
- if protoimpl.UnsafeEnabled {
- mi := &file_user_proto_msgTypes[1]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
- func (x *UserCreateRequest) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*UserCreateRequest) ProtoMessage() {}
- func (x *UserCreateRequest) ProtoReflect() protoreflect.Message {
- mi := &file_user_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 UserCreateRequest.ProtoReflect.Descriptor instead.
- func (*UserCreateRequest) Descriptor() ([]byte, []int) {
- return file_user_proto_rawDescGZIP(), []int{1}
- }
- func (x *UserCreateRequest) GetUsername() string {
- if x != nil {
- return x.Username
- }
- return ""
- }
- func (x *UserCreateRequest) GetPassword() string {
- if x != nil {
- return x.Password
- }
- return ""
- }
- func (x *UserCreateRequest) GetNoGw() bool {
- if x != nil {
- return x.NoGw
- }
- return false
- }
- func (x *UserCreateRequest) GetHostId() uint32 {
- if x != nil {
- return x.HostId
- }
- return 0
- }
- func (x *UserCreateRequest) GetIsAdmin() bool {
- if x != nil {
- return x.IsAdmin
- }
- return false
- }
- func (x *UserCreateRequest) GetDescription() string {
- if x != nil {
- return x.Description
- }
- return ""
- }
- type UserUpdateRequest struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
- Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"`
- Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"`
- Gwpref UserUpdateRequest_GWPref `protobuf:"varint,3,opt,name=gwpref,proto3,enum=pb.UserUpdateRequest_GWPref" json:"gwpref,omitempty"`
- HostId uint32 `protobuf:"varint,4,opt,name=host_id,json=hostId,proto3" json:"host_id,omitempty"`
- StaticPref UserUpdateRequest_StaticPref `protobuf:"varint,5,opt,name=static_pref,json=staticPref,proto3,enum=pb.UserUpdateRequest_StaticPref" json:"static_pref,omitempty"`
- AdminPref UserUpdateRequest_AdminPref `protobuf:"varint,6,opt,name=admin_pref,json=adminPref,proto3,enum=pb.UserUpdateRequest_AdminPref" json:"admin_pref,omitempty"`
- Description string `protobuf:"bytes,7,opt,name=description,proto3" json:"description,omitempty"`
- }
- func (x *UserUpdateRequest) Reset() {
- *x = UserUpdateRequest{}
- if protoimpl.UnsafeEnabled {
- mi := &file_user_proto_msgTypes[2]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
- func (x *UserUpdateRequest) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*UserUpdateRequest) ProtoMessage() {}
- func (x *UserUpdateRequest) ProtoReflect() protoreflect.Message {
- mi := &file_user_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 UserUpdateRequest.ProtoReflect.Descriptor instead.
- func (*UserUpdateRequest) Descriptor() ([]byte, []int) {
- return file_user_proto_rawDescGZIP(), []int{2}
- }
- func (x *UserUpdateRequest) GetUsername() string {
- if x != nil {
- return x.Username
- }
- return ""
- }
- func (x *UserUpdateRequest) GetPassword() string {
- if x != nil {
- return x.Password
- }
- return ""
- }
- func (x *UserUpdateRequest) GetGwpref() UserUpdateRequest_GWPref {
- if x != nil {
- return x.Gwpref
- }
- return UserUpdateRequest_NOPREF
- }
- func (x *UserUpdateRequest) GetHostId() uint32 {
- if x != nil {
- return x.HostId
- }
- return 0
- }
- func (x *UserUpdateRequest) GetStaticPref() UserUpdateRequest_StaticPref {
- if x != nil {
- return x.StaticPref
- }
- return UserUpdateRequest_NOPREFSTATIC
- }
- func (x *UserUpdateRequest) GetAdminPref() UserUpdateRequest_AdminPref {
- if x != nil {
- return x.AdminPref
- }
- return UserUpdateRequest_NOPREFADMIN
- }
- func (x *UserUpdateRequest) GetDescription() string {
- if x != nil {
- return x.Description
- }
- return ""
- }
- type UserDeleteRequest struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
- Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"`
- }
- func (x *UserDeleteRequest) Reset() {
- *x = UserDeleteRequest{}
- if protoimpl.UnsafeEnabled {
- mi := &file_user_proto_msgTypes[3]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
- func (x *UserDeleteRequest) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*UserDeleteRequest) ProtoMessage() {}
- func (x *UserDeleteRequest) ProtoReflect() protoreflect.Message {
- mi := &file_user_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 UserDeleteRequest.ProtoReflect.Descriptor instead.
- func (*UserDeleteRequest) Descriptor() ([]byte, []int) {
- return file_user_proto_rawDescGZIP(), []int{3}
- }
- func (x *UserDeleteRequest) GetUsername() string {
- if x != nil {
- return x.Username
- }
- return ""
- }
- type UserRenewRequest struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
- Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"`
- }
- func (x *UserRenewRequest) Reset() {
- *x = UserRenewRequest{}
- if protoimpl.UnsafeEnabled {
- mi := &file_user_proto_msgTypes[4]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
- func (x *UserRenewRequest) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*UserRenewRequest) ProtoMessage() {}
- func (x *UserRenewRequest) ProtoReflect() protoreflect.Message {
- mi := &file_user_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 UserRenewRequest.ProtoReflect.Descriptor instead.
- func (*UserRenewRequest) Descriptor() ([]byte, []int) {
- return file_user_proto_rawDescGZIP(), []int{4}
- }
- func (x *UserRenewRequest) GetUsername() string {
- if x != nil {
- return x.Username
- }
- return ""
- }
- type UserGenConfigRequest struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
- Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"`
- }
- func (x *UserGenConfigRequest) Reset() {
- *x = UserGenConfigRequest{}
- if protoimpl.UnsafeEnabled {
- mi := &file_user_proto_msgTypes[5]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
- func (x *UserGenConfigRequest) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*UserGenConfigRequest) ProtoMessage() {}
- func (x *UserGenConfigRequest) ProtoReflect() protoreflect.Message {
- mi := &file_user_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 UserGenConfigRequest.ProtoReflect.Descriptor instead.
- func (*UserGenConfigRequest) Descriptor() ([]byte, []int) {
- return file_user_proto_rawDescGZIP(), []int{5}
- }
- func (x *UserGenConfigRequest) GetUsername() string {
- if x != nil {
- return x.Username
- }
- return ""
- }
- type UserResponse struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
- Users []*UserResponse_User `protobuf:"bytes,1,rep,name=users,proto3" json:"users,omitempty"`
- }
- func (x *UserResponse) Reset() {
- *x = UserResponse{}
- if protoimpl.UnsafeEnabled {
- mi := &file_user_proto_msgTypes[6]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
- func (x *UserResponse) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*UserResponse) ProtoMessage() {}
- func (x *UserResponse) ProtoReflect() protoreflect.Message {
- mi := &file_user_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 UserResponse.ProtoReflect.Descriptor instead.
- func (*UserResponse) Descriptor() ([]byte, []int) {
- return file_user_proto_rawDescGZIP(), []int{6}
- }
- func (x *UserResponse) GetUsers() []*UserResponse_User {
- if x != nil {
- return x.Users
- }
- return nil
- }
- type UserGenConfigResponse struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
- ClientConfig string `protobuf:"bytes,1,opt,name=client_config,json=clientConfig,proto3" json:"client_config,omitempty"`
- }
- func (x *UserGenConfigResponse) Reset() {
- *x = UserGenConfigResponse{}
- if protoimpl.UnsafeEnabled {
- mi := &file_user_proto_msgTypes[7]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
- func (x *UserGenConfigResponse) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*UserGenConfigResponse) ProtoMessage() {}
- func (x *UserGenConfigResponse) ProtoReflect() protoreflect.Message {
- mi := &file_user_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 UserGenConfigResponse.ProtoReflect.Descriptor instead.
- func (*UserGenConfigResponse) Descriptor() ([]byte, []int) {
- return file_user_proto_rawDescGZIP(), []int{7}
- }
- func (x *UserGenConfigResponse) GetClientConfig() string {
- if x != nil {
- return x.ClientConfig
- }
- return ""
- }
- type UserResponse_User struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
- Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"`
- ServerSerialNumber string `protobuf:"bytes,2,opt,name=server_serial_number,json=serverSerialNumber,proto3" json:"server_serial_number,omitempty"`
- Cert string `protobuf:"bytes,3,opt,name=cert,proto3" json:"cert,omitempty"`
- CreatedAt string `protobuf:"bytes,4,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
- IpNet string `protobuf:"bytes,5,opt,name=ip_net,json=ipNet,proto3" json:"ip_net,omitempty"`
- NoGw bool `protobuf:"varint,6,opt,name=no_gw,json=noGw,proto3" json:"no_gw,omitempty"`
- HostId uint32 `protobuf:"varint,7,opt,name=host_id,json=hostId,proto3" json:"host_id,omitempty"`
- IsAdmin bool `protobuf:"varint,8,opt,name=is_admin,json=isAdmin,proto3" json:"is_admin,omitempty"`
- IsConnected bool `protobuf:"varint,9,opt,name=is_connected,json=isConnected,proto3" json:"is_connected,omitempty"`
- ConnectedSince string `protobuf:"bytes,10,opt,name=connected_since,json=connectedSince,proto3" json:"connected_since,omitempty"`
- BytesSent uint64 `protobuf:"varint,11,opt,name=bytes_sent,json=bytesSent,proto3" json:"bytes_sent,omitempty"`
- BytesReceived uint64 `protobuf:"varint,12,opt,name=bytes_received,json=bytesReceived,proto3" json:"bytes_received,omitempty"`
- ExpiresAt string `protobuf:"bytes,13,opt,name=expires_at,json=expiresAt,proto3" json:"expires_at,omitempty"`
- Description string `protobuf:"bytes,14,opt,name=description,proto3" json:"description,omitempty"`
- }
- func (x *UserResponse_User) Reset() {
- *x = UserResponse_User{}
- if protoimpl.UnsafeEnabled {
- mi := &file_user_proto_msgTypes[8]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
- func (x *UserResponse_User) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*UserResponse_User) ProtoMessage() {}
- func (x *UserResponse_User) ProtoReflect() protoreflect.Message {
- mi := &file_user_proto_msgTypes[8]
- 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 UserResponse_User.ProtoReflect.Descriptor instead.
- func (*UserResponse_User) Descriptor() ([]byte, []int) {
- return file_user_proto_rawDescGZIP(), []int{6, 0}
- }
- func (x *UserResponse_User) GetUsername() string {
- if x != nil {
- return x.Username
- }
- return ""
- }
- func (x *UserResponse_User) GetServerSerialNumber() string {
- if x != nil {
- return x.ServerSerialNumber
- }
- return ""
- }
- func (x *UserResponse_User) GetCert() string {
- if x != nil {
- return x.Cert
- }
- return ""
- }
- func (x *UserResponse_User) GetCreatedAt() string {
- if x != nil {
- return x.CreatedAt
- }
- return ""
- }
- func (x *UserResponse_User) GetIpNet() string {
- if x != nil {
- return x.IpNet
- }
- return ""
- }
- func (x *UserResponse_User) GetNoGw() bool {
- if x != nil {
- return x.NoGw
- }
- return false
- }
- func (x *UserResponse_User) GetHostId() uint32 {
- if x != nil {
- return x.HostId
- }
- return 0
- }
- func (x *UserResponse_User) GetIsAdmin() bool {
- if x != nil {
- return x.IsAdmin
- }
- return false
- }
- func (x *UserResponse_User) GetIsConnected() bool {
- if x != nil {
- return x.IsConnected
- }
- return false
- }
- func (x *UserResponse_User) GetConnectedSince() string {
- if x != nil {
- return x.ConnectedSince
- }
- return ""
- }
- func (x *UserResponse_User) GetBytesSent() uint64 {
- if x != nil {
- return x.BytesSent
- }
- return 0
- }
- func (x *UserResponse_User) GetBytesReceived() uint64 {
- if x != nil {
- return x.BytesReceived
- }
- return 0
- }
- func (x *UserResponse_User) GetExpiresAt() string {
- if x != nil {
- return x.ExpiresAt
- }
- return ""
- }
- func (x *UserResponse_User) GetDescription() string {
- if x != nil {
- return x.Description
- }
- return ""
- }
- var File_user_proto protoreflect.FileDescriptor
- var file_user_proto_rawDesc = []byte{
- 0x0a, 0x0a, 0x75, 0x73, 0x65, 0x72, 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, 0x11,
- 0x0a, 0x0f, 0x55, 0x73, 0x65, 0x72, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
- 0x74, 0x22, 0xb6, 0x01, 0x0a, 0x11, 0x55, 0x73, 0x65, 0x72, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65,
- 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x75, 0x73, 0x65, 0x72, 0x6e,
- 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x75, 0x73, 0x65, 0x72, 0x6e,
- 0x61, 0x6d, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x18,
- 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x12,
- 0x13, 0x0a, 0x05, 0x6e, 0x6f, 0x5f, 0x67, 0x77, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x04,
- 0x6e, 0x6f, 0x47, 0x77, 0x12, 0x17, 0x0a, 0x07, 0x68, 0x6f, 0x73, 0x74, 0x5f, 0x69, 0x64, 0x18,
- 0x04, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x06, 0x68, 0x6f, 0x73, 0x74, 0x49, 0x64, 0x12, 0x19, 0x0a,
- 0x08, 0x69, 0x73, 0x5f, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 0x52,
- 0x07, 0x69, 0x73, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63,
- 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64,
- 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0xd7, 0x03, 0x0a, 0x11, 0x55,
- 0x73, 0x65, 0x72, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
- 0x12, 0x1a, 0x0a, 0x08, 0x75, 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01,
- 0x28, 0x09, 0x52, 0x08, 0x75, 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1a, 0x0a, 0x08,
- 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08,
- 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x12, 0x34, 0x0a, 0x06, 0x67, 0x77, 0x70, 0x72,
- 0x65, 0x66, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1c, 0x2e, 0x70, 0x62, 0x2e, 0x55, 0x73,
- 0x65, 0x72, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e,
- 0x47, 0x57, 0x50, 0x72, 0x65, 0x66, 0x52, 0x06, 0x67, 0x77, 0x70, 0x72, 0x65, 0x66, 0x12, 0x17,
- 0x0a, 0x07, 0x68, 0x6f, 0x73, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0d, 0x52,
- 0x06, 0x68, 0x6f, 0x73, 0x74, 0x49, 0x64, 0x12, 0x41, 0x0a, 0x0b, 0x73, 0x74, 0x61, 0x74, 0x69,
- 0x63, 0x5f, 0x70, 0x72, 0x65, 0x66, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x20, 0x2e, 0x70,
- 0x62, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75,
- 0x65, 0x73, 0x74, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x69, 0x63, 0x50, 0x72, 0x65, 0x66, 0x52, 0x0a,
- 0x73, 0x74, 0x61, 0x74, 0x69, 0x63, 0x50, 0x72, 0x65, 0x66, 0x12, 0x3e, 0x0a, 0x0a, 0x61, 0x64,
- 0x6d, 0x69, 0x6e, 0x5f, 0x70, 0x72, 0x65, 0x66, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1f,
- 0x2e, 0x70, 0x62, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x52, 0x65,
- 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x50, 0x72, 0x65, 0x66, 0x52,
- 0x09, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x50, 0x72, 0x65, 0x66, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65,
- 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52,
- 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x26, 0x0a, 0x06,
- 0x47, 0x57, 0x50, 0x72, 0x65, 0x66, 0x12, 0x0a, 0x0a, 0x06, 0x4e, 0x4f, 0x50, 0x52, 0x45, 0x46,
- 0x10, 0x00, 0x12, 0x08, 0x0a, 0x04, 0x4e, 0x4f, 0x47, 0x57, 0x10, 0x01, 0x12, 0x06, 0x0a, 0x02,
- 0x47, 0x57, 0x10, 0x02, 0x22, 0x38, 0x0a, 0x0a, 0x53, 0x74, 0x61, 0x74, 0x69, 0x63, 0x50, 0x72,
- 0x65, 0x66, 0x12, 0x10, 0x0a, 0x0c, 0x4e, 0x4f, 0x50, 0x52, 0x45, 0x46, 0x53, 0x54, 0x41, 0x54,
- 0x49, 0x43, 0x10, 0x00, 0x12, 0x0c, 0x0a, 0x08, 0x4e, 0x4f, 0x53, 0x54, 0x41, 0x54, 0x49, 0x43,
- 0x10, 0x01, 0x12, 0x0a, 0x0a, 0x06, 0x53, 0x54, 0x41, 0x54, 0x49, 0x43, 0x10, 0x02, 0x22, 0x34,
- 0x0a, 0x09, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x50, 0x72, 0x65, 0x66, 0x12, 0x0f, 0x0a, 0x0b, 0x4e,
- 0x4f, 0x50, 0x52, 0x45, 0x46, 0x41, 0x44, 0x4d, 0x49, 0x4e, 0x10, 0x00, 0x12, 0x0b, 0x0a, 0x07,
- 0x4e, 0x4f, 0x41, 0x44, 0x4d, 0x49, 0x4e, 0x10, 0x01, 0x12, 0x09, 0x0a, 0x05, 0x41, 0x44, 0x4d,
- 0x49, 0x4e, 0x10, 0x02, 0x22, 0x2f, 0x0a, 0x11, 0x55, 0x73, 0x65, 0x72, 0x44, 0x65, 0x6c, 0x65,
- 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x75, 0x73, 0x65,
- 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x75, 0x73, 0x65,
- 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x2e, 0x0a, 0x10, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x6e,
- 0x65, 0x77, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x75, 0x73, 0x65,
- 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x75, 0x73, 0x65,
- 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x32, 0x0a, 0x14, 0x55, 0x73, 0x65, 0x72, 0x47, 0x65, 0x6e,
- 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1a, 0x0a,
- 0x08, 0x75, 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52,
- 0x08, 0x75, 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0xf8, 0x03, 0x0a, 0x0c, 0x55, 0x73,
- 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2b, 0x0a, 0x05, 0x75, 0x73,
- 0x65, 0x72, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x70, 0x62, 0x2e, 0x55,
- 0x73, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x55, 0x73, 0x65, 0x72,
- 0x52, 0x05, 0x75, 0x73, 0x65, 0x72, 0x73, 0x1a, 0xba, 0x03, 0x0a, 0x04, 0x55, 0x73, 0x65, 0x72,
- 0x12, 0x1a, 0x0a, 0x08, 0x75, 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01,
- 0x28, 0x09, 0x52, 0x08, 0x75, 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x30, 0x0a, 0x14,
- 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x5f, 0x73, 0x65, 0x72, 0x69, 0x61, 0x6c, 0x5f, 0x6e, 0x75,
- 0x6d, 0x62, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x12, 0x73, 0x65, 0x72, 0x76,
- 0x65, 0x72, 0x53, 0x65, 0x72, 0x69, 0x61, 0x6c, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x12, 0x12,
- 0x0a, 0x04, 0x63, 0x65, 0x72, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x63, 0x65,
- 0x72, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74,
- 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x41,
- 0x74, 0x12, 0x15, 0x0a, 0x06, 0x69, 0x70, 0x5f, 0x6e, 0x65, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28,
- 0x09, 0x52, 0x05, 0x69, 0x70, 0x4e, 0x65, 0x74, 0x12, 0x13, 0x0a, 0x05, 0x6e, 0x6f, 0x5f, 0x67,
- 0x77, 0x18, 0x06, 0x20, 0x01, 0x28, 0x08, 0x52, 0x04, 0x6e, 0x6f, 0x47, 0x77, 0x12, 0x17, 0x0a,
- 0x07, 0x68, 0x6f, 0x73, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x06,
- 0x68, 0x6f, 0x73, 0x74, 0x49, 0x64, 0x12, 0x19, 0x0a, 0x08, 0x69, 0x73, 0x5f, 0x61, 0x64, 0x6d,
- 0x69, 0x6e, 0x18, 0x08, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x69, 0x73, 0x41, 0x64, 0x6d, 0x69,
- 0x6e, 0x12, 0x21, 0x0a, 0x0c, 0x69, 0x73, 0x5f, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x65,
- 0x64, 0x18, 0x09, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0b, 0x69, 0x73, 0x43, 0x6f, 0x6e, 0x6e, 0x65,
- 0x63, 0x74, 0x65, 0x64, 0x12, 0x27, 0x0a, 0x0f, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x65,
- 0x64, 0x5f, 0x73, 0x69, 0x6e, 0x63, 0x65, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x63,
- 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x65, 0x64, 0x53, 0x69, 0x6e, 0x63, 0x65, 0x12, 0x1d, 0x0a,
- 0x0a, 0x62, 0x79, 0x74, 0x65, 0x73, 0x5f, 0x73, 0x65, 0x6e, 0x74, 0x18, 0x0b, 0x20, 0x01, 0x28,
- 0x04, 0x52, 0x09, 0x62, 0x79, 0x74, 0x65, 0x73, 0x53, 0x65, 0x6e, 0x74, 0x12, 0x25, 0x0a, 0x0e,
- 0x62, 0x79, 0x74, 0x65, 0x73, 0x5f, 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x64, 0x18, 0x0c,
- 0x20, 0x01, 0x28, 0x04, 0x52, 0x0d, 0x62, 0x79, 0x74, 0x65, 0x73, 0x52, 0x65, 0x63, 0x65, 0x69,
- 0x76, 0x65, 0x64, 0x12, 0x1d, 0x0a, 0x0a, 0x65, 0x78, 0x70, 0x69, 0x72, 0x65, 0x73, 0x5f, 0x61,
- 0x74, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x65, 0x78, 0x70, 0x69, 0x72, 0x65, 0x73,
- 0x41, 0x74, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f,
- 0x6e, 0x18, 0x0e, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70,
- 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x3c, 0x0a, 0x15, 0x55, 0x73, 0x65, 0x72, 0x47, 0x65, 0x6e, 0x43,
- 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x23, 0x0a,
- 0x0d, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x01,
- 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x43, 0x6f, 0x6e, 0x66,
- 0x69, 0x67, 0x32, 0x85, 0x04, 0x0a, 0x0b, 0x55, 0x73, 0x65, 0x72, 0x53, 0x65, 0x72, 0x76, 0x69,
- 0x63, 0x65, 0x12, 0x48, 0x0a, 0x04, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x13, 0x2e, 0x70, 0x62, 0x2e,
- 0x55, 0x73, 0x65, 0x72, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a,
- 0x10, 0x2e, 0x70, 0x62, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73,
- 0x65, 0x22, 0x19, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x13, 0x12, 0x11, 0x2f, 0x61, 0x70, 0x69, 0x2f,
- 0x76, 0x31, 0x2f, 0x75, 0x73, 0x65, 0x72, 0x2f, 0x6c, 0x69, 0x73, 0x74, 0x12, 0x51, 0x0a, 0x06,
- 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x12, 0x15, 0x2e, 0x70, 0x62, 0x2e, 0x55, 0x73, 0x65, 0x72,
- 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x10, 0x2e,
- 0x70, 0x62, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22,
- 0x1e, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x18, 0x22, 0x13, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31,
- 0x2f, 0x75, 0x73, 0x65, 0x72, 0x2f, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x3a, 0x01, 0x2a, 0x12,
- 0x51, 0x0a, 0x06, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x12, 0x15, 0x2e, 0x70, 0x62, 0x2e, 0x55,
- 0x73, 0x65, 0x72, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
- 0x1a, 0x10, 0x2e, 0x70, 0x62, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e,
- 0x73, 0x65, 0x22, 0x1e, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x18, 0x22, 0x13, 0x2f, 0x61, 0x70, 0x69,
- 0x2f, 0x76, 0x31, 0x2f, 0x75, 0x73, 0x65, 0x72, 0x2f, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x3a,
- 0x01, 0x2a, 0x12, 0x51, 0x0a, 0x06, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x12, 0x15, 0x2e, 0x70,
- 0x62, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75,
- 0x65, 0x73, 0x74, 0x1a, 0x10, 0x2e, 0x70, 0x62, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x73,
- 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x1e, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x18, 0x22, 0x13, 0x2f,
- 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x75, 0x73, 0x65, 0x72, 0x2f, 0x64, 0x65, 0x6c, 0x65,
- 0x74, 0x65, 0x3a, 0x01, 0x2a, 0x12, 0x4e, 0x0a, 0x05, 0x52, 0x65, 0x6e, 0x65, 0x77, 0x12, 0x14,
- 0x2e, 0x70, 0x62, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x6e, 0x65, 0x77, 0x52, 0x65, 0x71,
- 0x75, 0x65, 0x73, 0x74, 0x1a, 0x10, 0x2e, 0x70, 0x62, 0x2e, 0x55, 0x73, 0x65, 0x72, 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, 0x75, 0x73, 0x65, 0x72, 0x2f, 0x72, 0x65, 0x6e,
- 0x65, 0x77, 0x3a, 0x01, 0x2a, 0x12, 0x63, 0x0a, 0x09, 0x47, 0x65, 0x6e, 0x43, 0x6f, 0x6e, 0x66,
- 0x69, 0x67, 0x12, 0x18, 0x2e, 0x70, 0x62, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x47, 0x65, 0x6e, 0x43,
- 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x19, 0x2e, 0x70,
- 0x62, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x47, 0x65, 0x6e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52,
- 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x21, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1b, 0x22,
- 0x16, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x75, 0x73, 0x65, 0x72, 0x2f, 0x67, 0x65,
- 0x6e, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x3a, 0x01, 0x2a, 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_user_proto_rawDescOnce sync.Once
- file_user_proto_rawDescData = file_user_proto_rawDesc
- )
- func file_user_proto_rawDescGZIP() []byte {
- file_user_proto_rawDescOnce.Do(func() {
- file_user_proto_rawDescData = protoimpl.X.CompressGZIP(file_user_proto_rawDescData)
- })
- return file_user_proto_rawDescData
- }
- var file_user_proto_enumTypes = make([]protoimpl.EnumInfo, 3)
- var file_user_proto_msgTypes = make([]protoimpl.MessageInfo, 9)
- var file_user_proto_goTypes = []interface{}{
- (UserUpdateRequest_GWPref)(0), // 0: pb.UserUpdateRequest.GWPref
- (UserUpdateRequest_StaticPref)(0), // 1: pb.UserUpdateRequest.StaticPref
- (UserUpdateRequest_AdminPref)(0), // 2: pb.UserUpdateRequest.AdminPref
- (*UserListRequest)(nil), // 3: pb.UserListRequest
- (*UserCreateRequest)(nil), // 4: pb.UserCreateRequest
- (*UserUpdateRequest)(nil), // 5: pb.UserUpdateRequest
- (*UserDeleteRequest)(nil), // 6: pb.UserDeleteRequest
- (*UserRenewRequest)(nil), // 7: pb.UserRenewRequest
- (*UserGenConfigRequest)(nil), // 8: pb.UserGenConfigRequest
- (*UserResponse)(nil), // 9: pb.UserResponse
- (*UserGenConfigResponse)(nil), // 10: pb.UserGenConfigResponse
- (*UserResponse_User)(nil), // 11: pb.UserResponse.User
- }
- var file_user_proto_depIdxs = []int32{
- 0, // 0: pb.UserUpdateRequest.gwpref:type_name -> pb.UserUpdateRequest.GWPref
- 1, // 1: pb.UserUpdateRequest.static_pref:type_name -> pb.UserUpdateRequest.StaticPref
- 2, // 2: pb.UserUpdateRequest.admin_pref:type_name -> pb.UserUpdateRequest.AdminPref
- 11, // 3: pb.UserResponse.users:type_name -> pb.UserResponse.User
- 3, // 4: pb.UserService.List:input_type -> pb.UserListRequest
- 4, // 5: pb.UserService.Create:input_type -> pb.UserCreateRequest
- 5, // 6: pb.UserService.Update:input_type -> pb.UserUpdateRequest
- 6, // 7: pb.UserService.Delete:input_type -> pb.UserDeleteRequest
- 7, // 8: pb.UserService.Renew:input_type -> pb.UserRenewRequest
- 8, // 9: pb.UserService.GenConfig:input_type -> pb.UserGenConfigRequest
- 9, // 10: pb.UserService.List:output_type -> pb.UserResponse
- 9, // 11: pb.UserService.Create:output_type -> pb.UserResponse
- 9, // 12: pb.UserService.Update:output_type -> pb.UserResponse
- 9, // 13: pb.UserService.Delete:output_type -> pb.UserResponse
- 9, // 14: pb.UserService.Renew:output_type -> pb.UserResponse
- 10, // 15: pb.UserService.GenConfig:output_type -> pb.UserGenConfigResponse
- 10, // [10:16] is the sub-list for method output_type
- 4, // [4:10] is the sub-list for method input_type
- 4, // [4:4] is the sub-list for extension type_name
- 4, // [4:4] is the sub-list for extension extendee
- 0, // [0:4] is the sub-list for field type_name
- }
- func init() { file_user_proto_init() }
- func file_user_proto_init() {
- if File_user_proto != nil {
- return
- }
- if !protoimpl.UnsafeEnabled {
- file_user_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*UserListRequest); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- file_user_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*UserCreateRequest); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- file_user_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*UserUpdateRequest); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- file_user_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*UserDeleteRequest); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- file_user_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*UserRenewRequest); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- file_user_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*UserGenConfigRequest); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- file_user_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*UserResponse); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- file_user_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*UserGenConfigResponse); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- file_user_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*UserResponse_User); 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_user_proto_rawDesc,
- NumEnums: 3,
- NumMessages: 9,
- NumExtensions: 0,
- NumServices: 1,
- },
- GoTypes: file_user_proto_goTypes,
- DependencyIndexes: file_user_proto_depIdxs,
- EnumInfos: file_user_proto_enumTypes,
- MessageInfos: file_user_proto_msgTypes,
- }.Build()
- File_user_proto = out.File
- file_user_proto_rawDesc = nil
- file_user_proto_goTypes = nil
- file_user_proto_depIdxs = nil
- }
|