// Code generated by protoc-gen-go. DO NOT EDIT. // source: user.proto package pb import ( context "context" fmt "fmt" proto "github.com/golang/protobuf/proto" _ "google.golang.org/genproto/googleapis/api/annotations" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" math "math" ) // 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.ProtoPackageIsVersion3 // 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_116e343673f7ffaf, []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_116e343673f7ffaf, []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_116e343673f7ffaf, []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_116e343673f7ffaf, []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 (m *UserListRequest) XXX_Merge(src proto.Message) { xxx_messageInfo_UserListRequest.Merge(m, 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,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"` 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_116e343673f7ffaf, []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 (m *UserCreateRequest) XXX_Merge(src proto.Message) { xxx_messageInfo_UserCreateRequest.Merge(m, 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 } func (m *UserCreateRequest) GetDescription() string { if m != nil { return m.Description } return "" } type UserUpdateRequest struct { 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"` 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_116e343673f7ffaf, []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 (m *UserUpdateRequest) XXX_Merge(src proto.Message) { xxx_messageInfo_UserUpdateRequest.Merge(m, 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 } func (m *UserUpdateRequest) GetDescription() string { if m != nil { return m.Description } return "" } type UserDeleteRequest struct { Username string `protobuf:"bytes,1,opt,name=username,proto3" 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_116e343673f7ffaf, []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 (m *UserDeleteRequest) XXX_Merge(src proto.Message) { xxx_messageInfo_UserDeleteRequest.Merge(m, 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,proto3" 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_116e343673f7ffaf, []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 (m *UserRenewRequest) XXX_Merge(src proto.Message) { xxx_messageInfo_UserRenewRequest.Merge(m, 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,proto3" 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_116e343673f7ffaf, []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 (m *UserGenConfigRequest) XXX_Merge(src proto.Message) { xxx_messageInfo_UserGenConfigRequest.Merge(m, 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,proto3" 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_116e343673f7ffaf, []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 (m *UserResponse) XXX_Merge(src proto.Message) { xxx_messageInfo_UserResponse.Merge(m, 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,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"` 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_116e343673f7ffaf, []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 (m *UserResponse_User) XXX_Merge(src proto.Message) { xxx_messageInfo_UserResponse_User.Merge(m, 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 "" } func (m *UserResponse_User) GetDescription() string { if m != nil { return m.Description } return "" } type UserGenConfigResponse struct { ClientConfig string `protobuf:"bytes,1,opt,name=client_config,json=clientConfig,proto3" 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_116e343673f7ffaf, []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 (m *UserGenConfigResponse) XXX_Merge(src proto.Message) { xxx_messageInfo_UserGenConfigResponse.Merge(m, 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.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) 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") } func init() { proto.RegisterFile("user.proto", fileDescriptor_116e343673f7ffaf) } var fileDescriptor_116e343673f7ffaf = []byte{ // 853 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x95, 0x4f, 0x6f, 0xe3, 0x44, 0x14, 0xc0, 0xeb, 0xfc, 0x71, 0xe2, 0xe7, 0xb4, 0x75, 0xa7, 0x2d, 0xeb, 0x86, 0x5d, 0xc8, 0x1a, 0x01, 0xd1, 0x22, 0x25, 0x50, 0xf6, 0x80, 0x56, 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 0x3a, 0x4a, 0x21, 0x43, 0xa8, 0xeb, 0x59, 0x27, 0x27, 0xab, 0xd0, 0xd5, 0xe8, 0x6f, 0x01, 0x3e, 0xd2, 0xc0, 0x07, 0x01, 0x59, 0x03, 0x72, 0x15, 0xa4, 0x78, 0x29, 0x38, 0xcb, 0xc7, 0x25, 0xfe, 0x22, 0x7a, 0x73, 0x3d, 0xb4, 0xcf, 0xb6, 0x58, 0xca, 0x0b, 0x1e, 0xeb, 0x0b, 0xde, 0x0d, 0xde, 0x59, 0xbb, 0x60, 0x82, 0xcc, 0x34, 0xc6, 0x33, 0xeb, 0xc9, 0xd8, 0xd6, 0xbf, 0xe0, 0xcf, 0xff, 0x0b, 0x00, 0x00, 0xff, 0xff, 0xd7, 0xfc, 0x4a, 0x18, 0xb2, 0x07, 0x00, 0x00, } // 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) } // UnimplementedUserServiceServer can be embedded to have forward compatible implementations. type UnimplementedUserServiceServer struct { } func (*UnimplementedUserServiceServer) List(ctx context.Context, req *UserListRequest) (*UserResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method List not implemented") } func (*UnimplementedUserServiceServer) Create(ctx context.Context, req *UserCreateRequest) (*UserResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method Create not implemented") } func (*UnimplementedUserServiceServer) Update(ctx context.Context, req *UserUpdateRequest) (*UserResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method Update not implemented") } func (*UnimplementedUserServiceServer) Delete(ctx context.Context, req *UserDeleteRequest) (*UserResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method Delete not implemented") } func (*UnimplementedUserServiceServer) Renew(ctx context.Context, req *UserRenewRequest) (*UserResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method Renew not implemented") } func (*UnimplementedUserServiceServer) GenConfig(ctx context.Context, req *UserGenConfigRequest) (*UserGenConfigResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method GenConfig not implemented") } 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", }