| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915 |
- // Code generated by protoc-gen-go. DO NOT EDIT.
- // source: user.proto
- package pb
- import proto "github.com/golang/protobuf/proto"
- import fmt "fmt"
- import math "math"
- import _ "google.golang.org/genproto/googleapis/api/annotations"
- import (
- context "golang.org/x/net/context"
- grpc "google.golang.org/grpc"
- )
- // Reference imports to suppress errors if they are not otherwise used.
- var _ = proto.Marshal
- var _ = fmt.Errorf
- var _ = math.Inf
- // This is a compile-time assertion to ensure that this generated file
- // is compatible with the proto package it is being compiled against.
- // A compilation error at this line likely means your copy of the
- // proto package needs to be updated.
- const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
- type UserUpdateRequest_GWPref int32
- const (
- UserUpdateRequest_NOPREF UserUpdateRequest_GWPref = 0
- UserUpdateRequest_NOGW UserUpdateRequest_GWPref = 1
- UserUpdateRequest_GW UserUpdateRequest_GWPref = 2
- )
- var UserUpdateRequest_GWPref_name = map[int32]string{
- 0: "NOPREF",
- 1: "NOGW",
- 2: "GW",
- }
- var UserUpdateRequest_GWPref_value = map[string]int32{
- "NOPREF": 0,
- "NOGW": 1,
- "GW": 2,
- }
- func (x UserUpdateRequest_GWPref) String() string {
- return proto.EnumName(UserUpdateRequest_GWPref_name, int32(x))
- }
- func (UserUpdateRequest_GWPref) EnumDescriptor() ([]byte, []int) {
- return fileDescriptor_user_df435338153e53fc, []int{2, 0}
- }
- type UserUpdateRequest_StaticPref int32
- const (
- UserUpdateRequest_NOPREFSTATIC UserUpdateRequest_StaticPref = 0
- UserUpdateRequest_NOSTATIC UserUpdateRequest_StaticPref = 1
- UserUpdateRequest_STATIC UserUpdateRequest_StaticPref = 2
- )
- var UserUpdateRequest_StaticPref_name = map[int32]string{
- 0: "NOPREFSTATIC",
- 1: "NOSTATIC",
- 2: "STATIC",
- }
- var UserUpdateRequest_StaticPref_value = map[string]int32{
- "NOPREFSTATIC": 0,
- "NOSTATIC": 1,
- "STATIC": 2,
- }
- func (x UserUpdateRequest_StaticPref) String() string {
- return proto.EnumName(UserUpdateRequest_StaticPref_name, int32(x))
- }
- func (UserUpdateRequest_StaticPref) EnumDescriptor() ([]byte, []int) {
- return fileDescriptor_user_df435338153e53fc, []int{2, 1}
- }
- type UserUpdateRequest_AdminPref int32
- const (
- UserUpdateRequest_NOPREFADMIN UserUpdateRequest_AdminPref = 0
- UserUpdateRequest_NOADMIN UserUpdateRequest_AdminPref = 1
- UserUpdateRequest_ADMIN UserUpdateRequest_AdminPref = 2
- )
- var UserUpdateRequest_AdminPref_name = map[int32]string{
- 0: "NOPREFADMIN",
- 1: "NOADMIN",
- 2: "ADMIN",
- }
- var UserUpdateRequest_AdminPref_value = map[string]int32{
- "NOPREFADMIN": 0,
- "NOADMIN": 1,
- "ADMIN": 2,
- }
- func (x UserUpdateRequest_AdminPref) String() string {
- return proto.EnumName(UserUpdateRequest_AdminPref_name, int32(x))
- }
- func (UserUpdateRequest_AdminPref) EnumDescriptor() ([]byte, []int) {
- return fileDescriptor_user_df435338153e53fc, []int{2, 2}
- }
- type UserListRequest struct {
- XXX_NoUnkeyedLiteral struct{} `json:"-"`
- XXX_unrecognized []byte `json:"-"`
- XXX_sizecache int32 `json:"-"`
- }
- func (m *UserListRequest) Reset() { *m = UserListRequest{} }
- func (m *UserListRequest) String() string { return proto.CompactTextString(m) }
- func (*UserListRequest) ProtoMessage() {}
- func (*UserListRequest) Descriptor() ([]byte, []int) {
- return fileDescriptor_user_df435338153e53fc, []int{0}
- }
- func (m *UserListRequest) XXX_Unmarshal(b []byte) error {
- return xxx_messageInfo_UserListRequest.Unmarshal(m, b)
- }
- func (m *UserListRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
- return xxx_messageInfo_UserListRequest.Marshal(b, m, deterministic)
- }
- func (dst *UserListRequest) XXX_Merge(src proto.Message) {
- xxx_messageInfo_UserListRequest.Merge(dst, src)
- }
- func (m *UserListRequest) XXX_Size() int {
- return xxx_messageInfo_UserListRequest.Size(m)
- }
- func (m *UserListRequest) XXX_DiscardUnknown() {
- xxx_messageInfo_UserListRequest.DiscardUnknown(m)
- }
- var xxx_messageInfo_UserListRequest proto.InternalMessageInfo
- type UserCreateRequest struct {
- Username string `protobuf:"bytes,1,opt,name=username" json:"username,omitempty"`
- Password string `protobuf:"bytes,2,opt,name=password" json:"password,omitempty"`
- NoGw bool `protobuf:"varint,3,opt,name=no_gw,json=noGw" json:"no_gw,omitempty"`
- HostId uint32 `protobuf:"varint,4,opt,name=host_id,json=hostId" json:"host_id,omitempty"`
- IsAdmin bool `protobuf:"varint,5,opt,name=is_admin,json=isAdmin" json:"is_admin,omitempty"`
- XXX_NoUnkeyedLiteral struct{} `json:"-"`
- XXX_unrecognized []byte `json:"-"`
- XXX_sizecache int32 `json:"-"`
- }
- func (m *UserCreateRequest) Reset() { *m = UserCreateRequest{} }
- func (m *UserCreateRequest) String() string { return proto.CompactTextString(m) }
- func (*UserCreateRequest) ProtoMessage() {}
- func (*UserCreateRequest) Descriptor() ([]byte, []int) {
- return fileDescriptor_user_df435338153e53fc, []int{1}
- }
- func (m *UserCreateRequest) XXX_Unmarshal(b []byte) error {
- return xxx_messageInfo_UserCreateRequest.Unmarshal(m, b)
- }
- func (m *UserCreateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
- return xxx_messageInfo_UserCreateRequest.Marshal(b, m, deterministic)
- }
- func (dst *UserCreateRequest) XXX_Merge(src proto.Message) {
- xxx_messageInfo_UserCreateRequest.Merge(dst, src)
- }
- func (m *UserCreateRequest) XXX_Size() int {
- return xxx_messageInfo_UserCreateRequest.Size(m)
- }
- func (m *UserCreateRequest) XXX_DiscardUnknown() {
- xxx_messageInfo_UserCreateRequest.DiscardUnknown(m)
- }
- var xxx_messageInfo_UserCreateRequest proto.InternalMessageInfo
- func (m *UserCreateRequest) GetUsername() string {
- if m != nil {
- return m.Username
- }
- return ""
- }
- func (m *UserCreateRequest) GetPassword() string {
- if m != nil {
- return m.Password
- }
- return ""
- }
- func (m *UserCreateRequest) GetNoGw() bool {
- if m != nil {
- return m.NoGw
- }
- return false
- }
- func (m *UserCreateRequest) GetHostId() uint32 {
- if m != nil {
- return m.HostId
- }
- return 0
- }
- func (m *UserCreateRequest) GetIsAdmin() bool {
- if m != nil {
- return m.IsAdmin
- }
- return false
- }
- type UserUpdateRequest struct {
- Username string `protobuf:"bytes,1,opt,name=username" json:"username,omitempty"`
- Password string `protobuf:"bytes,2,opt,name=password" json:"password,omitempty"`
- Gwpref UserUpdateRequest_GWPref `protobuf:"varint,3,opt,name=gwpref,enum=pb.UserUpdateRequest_GWPref" json:"gwpref,omitempty"`
- HostId uint32 `protobuf:"varint,4,opt,name=host_id,json=hostId" json:"host_id,omitempty"`
- StaticPref UserUpdateRequest_StaticPref `protobuf:"varint,5,opt,name=static_pref,json=staticPref,enum=pb.UserUpdateRequest_StaticPref" json:"static_pref,omitempty"`
- AdminPref UserUpdateRequest_AdminPref `protobuf:"varint,6,opt,name=admin_pref,json=adminPref,enum=pb.UserUpdateRequest_AdminPref" json:"admin_pref,omitempty"`
- XXX_NoUnkeyedLiteral struct{} `json:"-"`
- XXX_unrecognized []byte `json:"-"`
- XXX_sizecache int32 `json:"-"`
- }
- func (m *UserUpdateRequest) Reset() { *m = UserUpdateRequest{} }
- func (m *UserUpdateRequest) String() string { return proto.CompactTextString(m) }
- func (*UserUpdateRequest) ProtoMessage() {}
- func (*UserUpdateRequest) Descriptor() ([]byte, []int) {
- return fileDescriptor_user_df435338153e53fc, []int{2}
- }
- func (m *UserUpdateRequest) XXX_Unmarshal(b []byte) error {
- return xxx_messageInfo_UserUpdateRequest.Unmarshal(m, b)
- }
- func (m *UserUpdateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
- return xxx_messageInfo_UserUpdateRequest.Marshal(b, m, deterministic)
- }
- func (dst *UserUpdateRequest) XXX_Merge(src proto.Message) {
- xxx_messageInfo_UserUpdateRequest.Merge(dst, src)
- }
- func (m *UserUpdateRequest) XXX_Size() int {
- return xxx_messageInfo_UserUpdateRequest.Size(m)
- }
- func (m *UserUpdateRequest) XXX_DiscardUnknown() {
- xxx_messageInfo_UserUpdateRequest.DiscardUnknown(m)
- }
- var xxx_messageInfo_UserUpdateRequest proto.InternalMessageInfo
- func (m *UserUpdateRequest) GetUsername() string {
- if m != nil {
- return m.Username
- }
- return ""
- }
- func (m *UserUpdateRequest) GetPassword() string {
- if m != nil {
- return m.Password
- }
- return ""
- }
- func (m *UserUpdateRequest) GetGwpref() UserUpdateRequest_GWPref {
- if m != nil {
- return m.Gwpref
- }
- return UserUpdateRequest_NOPREF
- }
- func (m *UserUpdateRequest) GetHostId() uint32 {
- if m != nil {
- return m.HostId
- }
- return 0
- }
- func (m *UserUpdateRequest) GetStaticPref() UserUpdateRequest_StaticPref {
- if m != nil {
- return m.StaticPref
- }
- return UserUpdateRequest_NOPREFSTATIC
- }
- func (m *UserUpdateRequest) GetAdminPref() UserUpdateRequest_AdminPref {
- if m != nil {
- return m.AdminPref
- }
- return UserUpdateRequest_NOPREFADMIN
- }
- type UserDeleteRequest struct {
- Username string `protobuf:"bytes,1,opt,name=username" json:"username,omitempty"`
- XXX_NoUnkeyedLiteral struct{} `json:"-"`
- XXX_unrecognized []byte `json:"-"`
- XXX_sizecache int32 `json:"-"`
- }
- func (m *UserDeleteRequest) Reset() { *m = UserDeleteRequest{} }
- func (m *UserDeleteRequest) String() string { return proto.CompactTextString(m) }
- func (*UserDeleteRequest) ProtoMessage() {}
- func (*UserDeleteRequest) Descriptor() ([]byte, []int) {
- return fileDescriptor_user_df435338153e53fc, []int{3}
- }
- func (m *UserDeleteRequest) XXX_Unmarshal(b []byte) error {
- return xxx_messageInfo_UserDeleteRequest.Unmarshal(m, b)
- }
- func (m *UserDeleteRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
- return xxx_messageInfo_UserDeleteRequest.Marshal(b, m, deterministic)
- }
- func (dst *UserDeleteRequest) XXX_Merge(src proto.Message) {
- xxx_messageInfo_UserDeleteRequest.Merge(dst, src)
- }
- func (m *UserDeleteRequest) XXX_Size() int {
- return xxx_messageInfo_UserDeleteRequest.Size(m)
- }
- func (m *UserDeleteRequest) XXX_DiscardUnknown() {
- xxx_messageInfo_UserDeleteRequest.DiscardUnknown(m)
- }
- var xxx_messageInfo_UserDeleteRequest proto.InternalMessageInfo
- func (m *UserDeleteRequest) GetUsername() string {
- if m != nil {
- return m.Username
- }
- return ""
- }
- type UserRenewRequest struct {
- Username string `protobuf:"bytes,1,opt,name=username" json:"username,omitempty"`
- XXX_NoUnkeyedLiteral struct{} `json:"-"`
- XXX_unrecognized []byte `json:"-"`
- XXX_sizecache int32 `json:"-"`
- }
- func (m *UserRenewRequest) Reset() { *m = UserRenewRequest{} }
- func (m *UserRenewRequest) String() string { return proto.CompactTextString(m) }
- func (*UserRenewRequest) ProtoMessage() {}
- func (*UserRenewRequest) Descriptor() ([]byte, []int) {
- return fileDescriptor_user_df435338153e53fc, []int{4}
- }
- func (m *UserRenewRequest) XXX_Unmarshal(b []byte) error {
- return xxx_messageInfo_UserRenewRequest.Unmarshal(m, b)
- }
- func (m *UserRenewRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
- return xxx_messageInfo_UserRenewRequest.Marshal(b, m, deterministic)
- }
- func (dst *UserRenewRequest) XXX_Merge(src proto.Message) {
- xxx_messageInfo_UserRenewRequest.Merge(dst, src)
- }
- func (m *UserRenewRequest) XXX_Size() int {
- return xxx_messageInfo_UserRenewRequest.Size(m)
- }
- func (m *UserRenewRequest) XXX_DiscardUnknown() {
- xxx_messageInfo_UserRenewRequest.DiscardUnknown(m)
- }
- var xxx_messageInfo_UserRenewRequest proto.InternalMessageInfo
- func (m *UserRenewRequest) GetUsername() string {
- if m != nil {
- return m.Username
- }
- return ""
- }
- type UserGenConfigRequest struct {
- Username string `protobuf:"bytes,1,opt,name=username" json:"username,omitempty"`
- XXX_NoUnkeyedLiteral struct{} `json:"-"`
- XXX_unrecognized []byte `json:"-"`
- XXX_sizecache int32 `json:"-"`
- }
- func (m *UserGenConfigRequest) Reset() { *m = UserGenConfigRequest{} }
- func (m *UserGenConfigRequest) String() string { return proto.CompactTextString(m) }
- func (*UserGenConfigRequest) ProtoMessage() {}
- func (*UserGenConfigRequest) Descriptor() ([]byte, []int) {
- return fileDescriptor_user_df435338153e53fc, []int{5}
- }
- func (m *UserGenConfigRequest) XXX_Unmarshal(b []byte) error {
- return xxx_messageInfo_UserGenConfigRequest.Unmarshal(m, b)
- }
- func (m *UserGenConfigRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
- return xxx_messageInfo_UserGenConfigRequest.Marshal(b, m, deterministic)
- }
- func (dst *UserGenConfigRequest) XXX_Merge(src proto.Message) {
- xxx_messageInfo_UserGenConfigRequest.Merge(dst, src)
- }
- func (m *UserGenConfigRequest) XXX_Size() int {
- return xxx_messageInfo_UserGenConfigRequest.Size(m)
- }
- func (m *UserGenConfigRequest) XXX_DiscardUnknown() {
- xxx_messageInfo_UserGenConfigRequest.DiscardUnknown(m)
- }
- var xxx_messageInfo_UserGenConfigRequest proto.InternalMessageInfo
- func (m *UserGenConfigRequest) GetUsername() string {
- if m != nil {
- return m.Username
- }
- return ""
- }
- type UserResponse struct {
- Users []*UserResponse_User `protobuf:"bytes,1,rep,name=users" json:"users,omitempty"`
- XXX_NoUnkeyedLiteral struct{} `json:"-"`
- XXX_unrecognized []byte `json:"-"`
- XXX_sizecache int32 `json:"-"`
- }
- func (m *UserResponse) Reset() { *m = UserResponse{} }
- func (m *UserResponse) String() string { return proto.CompactTextString(m) }
- func (*UserResponse) ProtoMessage() {}
- func (*UserResponse) Descriptor() ([]byte, []int) {
- return fileDescriptor_user_df435338153e53fc, []int{6}
- }
- func (m *UserResponse) XXX_Unmarshal(b []byte) error {
- return xxx_messageInfo_UserResponse.Unmarshal(m, b)
- }
- func (m *UserResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
- return xxx_messageInfo_UserResponse.Marshal(b, m, deterministic)
- }
- func (dst *UserResponse) XXX_Merge(src proto.Message) {
- xxx_messageInfo_UserResponse.Merge(dst, src)
- }
- func (m *UserResponse) XXX_Size() int {
- return xxx_messageInfo_UserResponse.Size(m)
- }
- func (m *UserResponse) XXX_DiscardUnknown() {
- xxx_messageInfo_UserResponse.DiscardUnknown(m)
- }
- var xxx_messageInfo_UserResponse proto.InternalMessageInfo
- func (m *UserResponse) GetUsers() []*UserResponse_User {
- if m != nil {
- return m.Users
- }
- return nil
- }
- type UserResponse_User struct {
- Username string `protobuf:"bytes,1,opt,name=username" json:"username,omitempty"`
- ServerSerialNumber string `protobuf:"bytes,2,opt,name=server_serial_number,json=serverSerialNumber" json:"server_serial_number,omitempty"`
- Cert string `protobuf:"bytes,3,opt,name=cert" json:"cert,omitempty"`
- CreatedAt string `protobuf:"bytes,4,opt,name=created_at,json=createdAt" json:"created_at,omitempty"`
- IpNet string `protobuf:"bytes,5,opt,name=ip_net,json=ipNet" json:"ip_net,omitempty"`
- NoGw bool `protobuf:"varint,6,opt,name=no_gw,json=noGw" json:"no_gw,omitempty"`
- HostId uint32 `protobuf:"varint,7,opt,name=host_id,json=hostId" json:"host_id,omitempty"`
- IsAdmin bool `protobuf:"varint,8,opt,name=is_admin,json=isAdmin" json:"is_admin,omitempty"`
- IsConnected bool `protobuf:"varint,9,opt,name=is_connected,json=isConnected" json:"is_connected,omitempty"`
- ConnectedSince string `protobuf:"bytes,10,opt,name=connected_since,json=connectedSince" json:"connected_since,omitempty"`
- BytesSent uint64 `protobuf:"varint,11,opt,name=bytes_sent,json=bytesSent" json:"bytes_sent,omitempty"`
- BytesReceived uint64 `protobuf:"varint,12,opt,name=bytes_received,json=bytesReceived" json:"bytes_received,omitempty"`
- ExpiresAt string `protobuf:"bytes,13,opt,name=expires_at,json=expiresAt" json:"expires_at,omitempty"`
- XXX_NoUnkeyedLiteral struct{} `json:"-"`
- XXX_unrecognized []byte `json:"-"`
- XXX_sizecache int32 `json:"-"`
- }
- func (m *UserResponse_User) Reset() { *m = UserResponse_User{} }
- func (m *UserResponse_User) String() string { return proto.CompactTextString(m) }
- func (*UserResponse_User) ProtoMessage() {}
- func (*UserResponse_User) Descriptor() ([]byte, []int) {
- return fileDescriptor_user_df435338153e53fc, []int{6, 0}
- }
- func (m *UserResponse_User) XXX_Unmarshal(b []byte) error {
- return xxx_messageInfo_UserResponse_User.Unmarshal(m, b)
- }
- func (m *UserResponse_User) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
- return xxx_messageInfo_UserResponse_User.Marshal(b, m, deterministic)
- }
- func (dst *UserResponse_User) XXX_Merge(src proto.Message) {
- xxx_messageInfo_UserResponse_User.Merge(dst, src)
- }
- func (m *UserResponse_User) XXX_Size() int {
- return xxx_messageInfo_UserResponse_User.Size(m)
- }
- func (m *UserResponse_User) XXX_DiscardUnknown() {
- xxx_messageInfo_UserResponse_User.DiscardUnknown(m)
- }
- var xxx_messageInfo_UserResponse_User proto.InternalMessageInfo
- func (m *UserResponse_User) GetUsername() string {
- if m != nil {
- return m.Username
- }
- return ""
- }
- func (m *UserResponse_User) GetServerSerialNumber() string {
- if m != nil {
- return m.ServerSerialNumber
- }
- return ""
- }
- func (m *UserResponse_User) GetCert() string {
- if m != nil {
- return m.Cert
- }
- return ""
- }
- func (m *UserResponse_User) GetCreatedAt() string {
- if m != nil {
- return m.CreatedAt
- }
- return ""
- }
- func (m *UserResponse_User) GetIpNet() string {
- if m != nil {
- return m.IpNet
- }
- return ""
- }
- func (m *UserResponse_User) GetNoGw() bool {
- if m != nil {
- return m.NoGw
- }
- return false
- }
- func (m *UserResponse_User) GetHostId() uint32 {
- if m != nil {
- return m.HostId
- }
- return 0
- }
- func (m *UserResponse_User) GetIsAdmin() bool {
- if m != nil {
- return m.IsAdmin
- }
- return false
- }
- func (m *UserResponse_User) GetIsConnected() bool {
- if m != nil {
- return m.IsConnected
- }
- return false
- }
- func (m *UserResponse_User) GetConnectedSince() string {
- if m != nil {
- return m.ConnectedSince
- }
- return ""
- }
- func (m *UserResponse_User) GetBytesSent() uint64 {
- if m != nil {
- return m.BytesSent
- }
- return 0
- }
- func (m *UserResponse_User) GetBytesReceived() uint64 {
- if m != nil {
- return m.BytesReceived
- }
- return 0
- }
- func (m *UserResponse_User) GetExpiresAt() string {
- if m != nil {
- return m.ExpiresAt
- }
- return ""
- }
- type UserGenConfigResponse struct {
- ClientConfig string `protobuf:"bytes,1,opt,name=client_config,json=clientConfig" json:"client_config,omitempty"`
- XXX_NoUnkeyedLiteral struct{} `json:"-"`
- XXX_unrecognized []byte `json:"-"`
- XXX_sizecache int32 `json:"-"`
- }
- func (m *UserGenConfigResponse) Reset() { *m = UserGenConfigResponse{} }
- func (m *UserGenConfigResponse) String() string { return proto.CompactTextString(m) }
- func (*UserGenConfigResponse) ProtoMessage() {}
- func (*UserGenConfigResponse) Descriptor() ([]byte, []int) {
- return fileDescriptor_user_df435338153e53fc, []int{7}
- }
- func (m *UserGenConfigResponse) XXX_Unmarshal(b []byte) error {
- return xxx_messageInfo_UserGenConfigResponse.Unmarshal(m, b)
- }
- func (m *UserGenConfigResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
- return xxx_messageInfo_UserGenConfigResponse.Marshal(b, m, deterministic)
- }
- func (dst *UserGenConfigResponse) XXX_Merge(src proto.Message) {
- xxx_messageInfo_UserGenConfigResponse.Merge(dst, src)
- }
- func (m *UserGenConfigResponse) XXX_Size() int {
- return xxx_messageInfo_UserGenConfigResponse.Size(m)
- }
- func (m *UserGenConfigResponse) XXX_DiscardUnknown() {
- xxx_messageInfo_UserGenConfigResponse.DiscardUnknown(m)
- }
- var xxx_messageInfo_UserGenConfigResponse proto.InternalMessageInfo
- func (m *UserGenConfigResponse) GetClientConfig() string {
- if m != nil {
- return m.ClientConfig
- }
- return ""
- }
- func init() {
- proto.RegisterType((*UserListRequest)(nil), "pb.UserListRequest")
- proto.RegisterType((*UserCreateRequest)(nil), "pb.UserCreateRequest")
- proto.RegisterType((*UserUpdateRequest)(nil), "pb.UserUpdateRequest")
- proto.RegisterType((*UserDeleteRequest)(nil), "pb.UserDeleteRequest")
- proto.RegisterType((*UserRenewRequest)(nil), "pb.UserRenewRequest")
- proto.RegisterType((*UserGenConfigRequest)(nil), "pb.UserGenConfigRequest")
- proto.RegisterType((*UserResponse)(nil), "pb.UserResponse")
- proto.RegisterType((*UserResponse_User)(nil), "pb.UserResponse.User")
- proto.RegisterType((*UserGenConfigResponse)(nil), "pb.UserGenConfigResponse")
- proto.RegisterEnum("pb.UserUpdateRequest_GWPref", UserUpdateRequest_GWPref_name, UserUpdateRequest_GWPref_value)
- proto.RegisterEnum("pb.UserUpdateRequest_StaticPref", UserUpdateRequest_StaticPref_name, UserUpdateRequest_StaticPref_value)
- proto.RegisterEnum("pb.UserUpdateRequest_AdminPref", UserUpdateRequest_AdminPref_name, UserUpdateRequest_AdminPref_value)
- }
- // Reference imports to suppress errors if they are not otherwise used.
- var _ context.Context
- var _ grpc.ClientConn
- // This is a compile-time assertion to ensure that this generated file
- // is compatible with the grpc package it is being compiled against.
- const _ = grpc.SupportPackageIsVersion4
- // UserServiceClient is the client API for UserService service.
- //
- // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
- type UserServiceClient interface {
- List(ctx context.Context, in *UserListRequest, opts ...grpc.CallOption) (*UserResponse, error)
- Create(ctx context.Context, in *UserCreateRequest, opts ...grpc.CallOption) (*UserResponse, error)
- Update(ctx context.Context, in *UserUpdateRequest, opts ...grpc.CallOption) (*UserResponse, error)
- Delete(ctx context.Context, in *UserDeleteRequest, opts ...grpc.CallOption) (*UserResponse, error)
- Renew(ctx context.Context, in *UserRenewRequest, opts ...grpc.CallOption) (*UserResponse, error)
- GenConfig(ctx context.Context, in *UserGenConfigRequest, opts ...grpc.CallOption) (*UserGenConfigResponse, error)
- }
- type userServiceClient struct {
- cc *grpc.ClientConn
- }
- func NewUserServiceClient(cc *grpc.ClientConn) UserServiceClient {
- return &userServiceClient{cc}
- }
- func (c *userServiceClient) List(ctx context.Context, in *UserListRequest, opts ...grpc.CallOption) (*UserResponse, error) {
- out := new(UserResponse)
- err := c.cc.Invoke(ctx, "/pb.UserService/List", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *userServiceClient) Create(ctx context.Context, in *UserCreateRequest, opts ...grpc.CallOption) (*UserResponse, error) {
- out := new(UserResponse)
- err := c.cc.Invoke(ctx, "/pb.UserService/Create", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *userServiceClient) Update(ctx context.Context, in *UserUpdateRequest, opts ...grpc.CallOption) (*UserResponse, error) {
- out := new(UserResponse)
- err := c.cc.Invoke(ctx, "/pb.UserService/Update", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *userServiceClient) Delete(ctx context.Context, in *UserDeleteRequest, opts ...grpc.CallOption) (*UserResponse, error) {
- out := new(UserResponse)
- err := c.cc.Invoke(ctx, "/pb.UserService/Delete", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *userServiceClient) Renew(ctx context.Context, in *UserRenewRequest, opts ...grpc.CallOption) (*UserResponse, error) {
- out := new(UserResponse)
- err := c.cc.Invoke(ctx, "/pb.UserService/Renew", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *userServiceClient) GenConfig(ctx context.Context, in *UserGenConfigRequest, opts ...grpc.CallOption) (*UserGenConfigResponse, error) {
- out := new(UserGenConfigResponse)
- err := c.cc.Invoke(ctx, "/pb.UserService/GenConfig", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- // UserServiceServer is the server API for UserService service.
- type UserServiceServer interface {
- List(context.Context, *UserListRequest) (*UserResponse, error)
- Create(context.Context, *UserCreateRequest) (*UserResponse, error)
- Update(context.Context, *UserUpdateRequest) (*UserResponse, error)
- Delete(context.Context, *UserDeleteRequest) (*UserResponse, error)
- Renew(context.Context, *UserRenewRequest) (*UserResponse, error)
- GenConfig(context.Context, *UserGenConfigRequest) (*UserGenConfigResponse, error)
- }
- func RegisterUserServiceServer(s *grpc.Server, srv UserServiceServer) {
- s.RegisterService(&_UserService_serviceDesc, srv)
- }
- func _UserService_List_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(UserListRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(UserServiceServer).List(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.UserService/List",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(UserServiceServer).List(ctx, req.(*UserListRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _UserService_Create_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(UserCreateRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(UserServiceServer).Create(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.UserService/Create",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(UserServiceServer).Create(ctx, req.(*UserCreateRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _UserService_Update_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(UserUpdateRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(UserServiceServer).Update(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.UserService/Update",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(UserServiceServer).Update(ctx, req.(*UserUpdateRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _UserService_Delete_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(UserDeleteRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(UserServiceServer).Delete(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.UserService/Delete",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(UserServiceServer).Delete(ctx, req.(*UserDeleteRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _UserService_Renew_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(UserRenewRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(UserServiceServer).Renew(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.UserService/Renew",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(UserServiceServer).Renew(ctx, req.(*UserRenewRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _UserService_GenConfig_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(UserGenConfigRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(UserServiceServer).GenConfig(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.UserService/GenConfig",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(UserServiceServer).GenConfig(ctx, req.(*UserGenConfigRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- var _UserService_serviceDesc = grpc.ServiceDesc{
- ServiceName: "pb.UserService",
- HandlerType: (*UserServiceServer)(nil),
- Methods: []grpc.MethodDesc{
- {
- MethodName: "List",
- Handler: _UserService_List_Handler,
- },
- {
- MethodName: "Create",
- Handler: _UserService_Create_Handler,
- },
- {
- MethodName: "Update",
- Handler: _UserService_Update_Handler,
- },
- {
- MethodName: "Delete",
- Handler: _UserService_Delete_Handler,
- },
- {
- MethodName: "Renew",
- Handler: _UserService_Renew_Handler,
- },
- {
- MethodName: "GenConfig",
- Handler: _UserService_GenConfig_Handler,
- },
- },
- Streams: []grpc.StreamDesc{},
- Metadata: "user.proto",
- }
- func init() { proto.RegisterFile("user.proto", fileDescriptor_user_df435338153e53fc) }
- var fileDescriptor_user_df435338153e53fc = []byte{
- // 825 bytes of a gzipped FileDescriptorProto
- 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x95, 0xdd, 0x6e, 0xe3, 0x44,
- 0x14, 0x80, 0xeb, 0xc4, 0x71, 0xe3, 0x93, 0xb4, 0x75, 0xa7, 0x2d, 0xeb, 0x86, 0x5d, 0xc8, 0x1a,
- 0x01, 0xd1, 0x22, 0x25, 0x50, 0xf6, 0x02, 0xad, 0x10, 0x52, 0xd4, 0x85, 0x50, 0x09, 0x9c, 0xc5,
- 0xd9, 0x55, 0x2f, 0x2d, 0xc7, 0x3e, 0x09, 0x23, 0xa5, 0x63, 0x33, 0x33, 0x49, 0xe0, 0x16, 0x89,
- 0x27, 0x80, 0x0b, 0x5e, 0x84, 0x27, 0x41, 0xe2, 0x09, 0x78, 0x10, 0x34, 0x33, 0x4e, 0x42, 0x4a,
- 0x16, 0xe5, 0x62, 0xef, 0xe6, 0xfc, 0x7d, 0x73, 0x3c, 0xe7, 0xc7, 0x00, 0x73, 0x81, 0xbc, 0x5b,
- 0xf0, 0x5c, 0xe6, 0xa4, 0x52, 0x8c, 0x5b, 0x0f, 0xa7, 0x79, 0x3e, 0x9d, 0x61, 0x2f, 0x29, 0x68,
- 0x2f, 0x61, 0x2c, 0x97, 0x89, 0xa4, 0x39, 0x13, 0xc6, 0x23, 0x38, 0x85, 0x93, 0x57, 0x02, 0xf9,
- 0x37, 0x54, 0xc8, 0x08, 0x7f, 0x98, 0xa3, 0x90, 0xc1, 0x6f, 0x16, 0x9c, 0x2a, 0xdd, 0x35, 0xc7,
- 0x44, 0x62, 0xa9, 0x25, 0x2d, 0xa8, 0x2b, 0x30, 0x4b, 0xee, 0xd0, 0xb7, 0xda, 0x56, 0xc7, 0x8d,
- 0xd6, 0xb2, 0xb2, 0x15, 0x89, 0x10, 0xcb, 0x9c, 0x67, 0x7e, 0x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