2023-07-30 01:35:00 +08:00
|
|
|
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
|
|
// versions:
|
|
|
|
// protoc-gen-go v1.31.0
|
|
|
|
// protoc (unknown)
|
|
|
|
// source: api/v2/user_service.proto
|
|
|
|
|
|
|
|
package apiv2
|
|
|
|
|
|
|
|
import (
|
|
|
|
_ "google.golang.org/genproto/googleapis/api/annotations"
|
|
|
|
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
|
|
|
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
2023-10-21 12:19:06 +08:00
|
|
|
fieldmaskpb "google.golang.org/protobuf/types/known/fieldmaskpb"
|
2023-09-10 18:56:24 +08:00
|
|
|
timestamppb "google.golang.org/protobuf/types/known/timestamppb"
|
2023-07-30 01:35:00 +08:00
|
|
|
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)
|
|
|
|
)
|
|
|
|
|
2023-09-10 18:56:24 +08:00
|
|
|
type User_Role int32
|
2023-07-30 01:35:00 +08:00
|
|
|
|
|
|
|
const (
|
2023-09-10 18:56:24 +08:00
|
|
|
User_ROLE_UNSPECIFIED User_Role = 0
|
|
|
|
User_HOST User_Role = 1
|
|
|
|
User_ADMIN User_Role = 2
|
|
|
|
User_USER User_Role = 3
|
2023-07-30 01:35:00 +08:00
|
|
|
)
|
|
|
|
|
2023-09-10 18:56:24 +08:00
|
|
|
// Enum value maps for User_Role.
|
2023-07-30 01:35:00 +08:00
|
|
|
var (
|
2023-09-10 18:56:24 +08:00
|
|
|
User_Role_name = map[int32]string{
|
2023-07-30 01:35:00 +08:00
|
|
|
0: "ROLE_UNSPECIFIED",
|
|
|
|
1: "HOST",
|
|
|
|
2: "ADMIN",
|
|
|
|
3: "USER",
|
|
|
|
}
|
2023-09-10 18:56:24 +08:00
|
|
|
User_Role_value = map[string]int32{
|
2023-07-30 01:35:00 +08:00
|
|
|
"ROLE_UNSPECIFIED": 0,
|
|
|
|
"HOST": 1,
|
|
|
|
"ADMIN": 2,
|
|
|
|
"USER": 3,
|
|
|
|
}
|
|
|
|
)
|
|
|
|
|
2023-09-10 18:56:24 +08:00
|
|
|
func (x User_Role) Enum() *User_Role {
|
|
|
|
p := new(User_Role)
|
2023-07-30 01:35:00 +08:00
|
|
|
*p = x
|
|
|
|
return p
|
|
|
|
}
|
|
|
|
|
2023-09-10 18:56:24 +08:00
|
|
|
func (x User_Role) String() string {
|
2023-07-30 01:35:00 +08:00
|
|
|
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
|
|
|
|
}
|
|
|
|
|
2023-09-10 18:56:24 +08:00
|
|
|
func (User_Role) Descriptor() protoreflect.EnumDescriptor {
|
2023-07-30 01:35:00 +08:00
|
|
|
return file_api_v2_user_service_proto_enumTypes[0].Descriptor()
|
|
|
|
}
|
|
|
|
|
2023-09-10 18:56:24 +08:00
|
|
|
func (User_Role) Type() protoreflect.EnumType {
|
2023-07-30 01:35:00 +08:00
|
|
|
return &file_api_v2_user_service_proto_enumTypes[0]
|
|
|
|
}
|
|
|
|
|
2023-09-10 18:56:24 +08:00
|
|
|
func (x User_Role) Number() protoreflect.EnumNumber {
|
2023-07-30 01:35:00 +08:00
|
|
|
return protoreflect.EnumNumber(x)
|
|
|
|
}
|
|
|
|
|
2023-09-10 18:56:24 +08:00
|
|
|
// Deprecated: Use User_Role.Descriptor instead.
|
|
|
|
func (User_Role) EnumDescriptor() ([]byte, []int) {
|
|
|
|
return file_api_v2_user_service_proto_rawDescGZIP(), []int{0, 0}
|
2023-07-30 01:35:00 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
type User struct {
|
|
|
|
state protoimpl.MessageState
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
2023-11-05 23:03:43 +08:00
|
|
|
// The name of the user.
|
|
|
|
// Format: users/{username}
|
|
|
|
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
|
|
|
|
Id int32 `protobuf:"varint,2,opt,name=id,proto3" json:"id,omitempty"`
|
2023-09-14 19:18:54 +08:00
|
|
|
Role User_Role `protobuf:"varint,3,opt,name=role,proto3,enum=memos.api.v2.User_Role" json:"role,omitempty"`
|
2023-12-23 19:23:39 +08:00
|
|
|
Username string `protobuf:"bytes,4,opt,name=username,proto3" json:"username,omitempty"`
|
|
|
|
Email string `protobuf:"bytes,5,opt,name=email,proto3" json:"email,omitempty"`
|
|
|
|
Nickname string `protobuf:"bytes,6,opt,name=nickname,proto3" json:"nickname,omitempty"`
|
|
|
|
AvatarUrl string `protobuf:"bytes,7,opt,name=avatar_url,json=avatarUrl,proto3" json:"avatar_url,omitempty"`
|
|
|
|
Password string `protobuf:"bytes,8,opt,name=password,proto3" json:"password,omitempty"`
|
|
|
|
RowStatus RowStatus `protobuf:"varint,9,opt,name=row_status,json=rowStatus,proto3,enum=memos.api.v2.RowStatus" json:"row_status,omitempty"`
|
|
|
|
CreateTime *timestamppb.Timestamp `protobuf:"bytes,10,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
|
|
|
|
UpdateTime *timestamppb.Timestamp `protobuf:"bytes,11,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"`
|
2023-07-30 01:35:00 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
func (x *User) Reset() {
|
|
|
|
*x = User{}
|
|
|
|
if protoimpl.UnsafeEnabled {
|
|
|
|
mi := &file_api_v2_user_service_proto_msgTypes[0]
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *User) String() string {
|
|
|
|
return protoimpl.X.MessageStringOf(x)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (*User) ProtoMessage() {}
|
|
|
|
|
|
|
|
func (x *User) ProtoReflect() protoreflect.Message {
|
|
|
|
mi := &file_api_v2_user_service_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 User.ProtoReflect.Descriptor instead.
|
|
|
|
func (*User) Descriptor() ([]byte, []int) {
|
|
|
|
return file_api_v2_user_service_proto_rawDescGZIP(), []int{0}
|
|
|
|
}
|
|
|
|
|
2023-11-05 23:03:43 +08:00
|
|
|
func (x *User) GetName() string {
|
2023-07-30 01:35:00 +08:00
|
|
|
if x != nil {
|
2023-11-05 23:03:43 +08:00
|
|
|
return x.Name
|
2023-07-30 01:35:00 +08:00
|
|
|
}
|
2023-11-05 23:03:43 +08:00
|
|
|
return ""
|
2023-07-30 01:35:00 +08:00
|
|
|
}
|
|
|
|
|
2023-11-05 23:03:43 +08:00
|
|
|
func (x *User) GetId() int32 {
|
2023-07-30 01:35:00 +08:00
|
|
|
if x != nil {
|
2023-11-05 23:03:43 +08:00
|
|
|
return x.Id
|
2023-07-30 01:35:00 +08:00
|
|
|
}
|
2023-11-05 23:03:43 +08:00
|
|
|
return 0
|
2023-07-30 01:35:00 +08:00
|
|
|
}
|
|
|
|
|
2023-09-10 18:56:24 +08:00
|
|
|
func (x *User) GetRole() User_Role {
|
2023-07-30 01:35:00 +08:00
|
|
|
if x != nil {
|
|
|
|
return x.Role
|
|
|
|
}
|
2023-09-10 18:56:24 +08:00
|
|
|
return User_ROLE_UNSPECIFIED
|
2023-07-30 01:35:00 +08:00
|
|
|
}
|
|
|
|
|
2023-12-23 19:23:39 +08:00
|
|
|
func (x *User) GetUsername() string {
|
|
|
|
if x != nil {
|
|
|
|
return x.Username
|
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
2023-07-30 01:35:00 +08:00
|
|
|
func (x *User) GetEmail() string {
|
|
|
|
if x != nil {
|
|
|
|
return x.Email
|
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *User) GetNickname() string {
|
|
|
|
if x != nil {
|
|
|
|
return x.Nickname
|
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *User) GetAvatarUrl() string {
|
|
|
|
if x != nil {
|
|
|
|
return x.AvatarUrl
|
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
2023-09-10 18:56:24 +08:00
|
|
|
func (x *User) GetPassword() string {
|
|
|
|
if x != nil {
|
|
|
|
return x.Password
|
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
2023-09-14 19:18:54 +08:00
|
|
|
func (x *User) GetRowStatus() RowStatus {
|
|
|
|
if x != nil {
|
|
|
|
return x.RowStatus
|
|
|
|
}
|
|
|
|
return RowStatus_ROW_STATUS_UNSPECIFIED
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *User) GetCreateTime() *timestamppb.Timestamp {
|
|
|
|
if x != nil {
|
|
|
|
return x.CreateTime
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *User) GetUpdateTime() *timestamppb.Timestamp {
|
|
|
|
if x != nil {
|
|
|
|
return x.UpdateTime
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2023-12-23 08:35:54 +08:00
|
|
|
type ListUsersRequest struct {
|
|
|
|
state protoimpl.MessageState
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *ListUsersRequest) Reset() {
|
|
|
|
*x = ListUsersRequest{}
|
|
|
|
if protoimpl.UnsafeEnabled {
|
|
|
|
mi := &file_api_v2_user_service_proto_msgTypes[1]
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *ListUsersRequest) String() string {
|
|
|
|
return protoimpl.X.MessageStringOf(x)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (*ListUsersRequest) ProtoMessage() {}
|
|
|
|
|
|
|
|
func (x *ListUsersRequest) ProtoReflect() protoreflect.Message {
|
|
|
|
mi := &file_api_v2_user_service_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 ListUsersRequest.ProtoReflect.Descriptor instead.
|
|
|
|
func (*ListUsersRequest) Descriptor() ([]byte, []int) {
|
|
|
|
return file_api_v2_user_service_proto_rawDescGZIP(), []int{1}
|
|
|
|
}
|
|
|
|
|
|
|
|
type ListUsersResponse struct {
|
|
|
|
state protoimpl.MessageState
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
|
|
|
Users []*User `protobuf:"bytes,1,rep,name=users,proto3" json:"users,omitempty"`
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *ListUsersResponse) Reset() {
|
|
|
|
*x = ListUsersResponse{}
|
|
|
|
if protoimpl.UnsafeEnabled {
|
|
|
|
mi := &file_api_v2_user_service_proto_msgTypes[2]
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *ListUsersResponse) String() string {
|
|
|
|
return protoimpl.X.MessageStringOf(x)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (*ListUsersResponse) ProtoMessage() {}
|
|
|
|
|
|
|
|
func (x *ListUsersResponse) ProtoReflect() protoreflect.Message {
|
|
|
|
mi := &file_api_v2_user_service_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 ListUsersResponse.ProtoReflect.Descriptor instead.
|
|
|
|
func (*ListUsersResponse) Descriptor() ([]byte, []int) {
|
|
|
|
return file_api_v2_user_service_proto_rawDescGZIP(), []int{2}
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *ListUsersResponse) GetUsers() []*User {
|
|
|
|
if x != nil {
|
|
|
|
return x.Users
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2023-07-30 01:35:00 +08:00
|
|
|
type GetUserRequest struct {
|
|
|
|
state protoimpl.MessageState
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
2023-11-05 23:03:43 +08:00
|
|
|
// The name of the user.
|
|
|
|
// Format: users/{username}
|
|
|
|
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
|
2023-07-30 01:35:00 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
func (x *GetUserRequest) Reset() {
|
|
|
|
*x = GetUserRequest{}
|
|
|
|
if protoimpl.UnsafeEnabled {
|
2023-12-23 08:35:54 +08:00
|
|
|
mi := &file_api_v2_user_service_proto_msgTypes[3]
|
2023-07-30 01:35:00 +08:00
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *GetUserRequest) String() string {
|
|
|
|
return protoimpl.X.MessageStringOf(x)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (*GetUserRequest) ProtoMessage() {}
|
|
|
|
|
|
|
|
func (x *GetUserRequest) ProtoReflect() protoreflect.Message {
|
2023-12-23 08:35:54 +08:00
|
|
|
mi := &file_api_v2_user_service_proto_msgTypes[3]
|
2023-07-30 01:35:00 +08:00
|
|
|
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 GetUserRequest.ProtoReflect.Descriptor instead.
|
|
|
|
func (*GetUserRequest) Descriptor() ([]byte, []int) {
|
2023-12-23 08:35:54 +08:00
|
|
|
return file_api_v2_user_service_proto_rawDescGZIP(), []int{3}
|
2023-07-30 01:35:00 +08:00
|
|
|
}
|
|
|
|
|
2023-11-05 23:03:43 +08:00
|
|
|
func (x *GetUserRequest) GetName() string {
|
2023-07-30 01:35:00 +08:00
|
|
|
if x != nil {
|
2023-11-05 23:03:43 +08:00
|
|
|
return x.Name
|
2023-07-30 01:35:00 +08:00
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
|
|
|
type GetUserResponse struct {
|
|
|
|
state protoimpl.MessageState
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
|
|
|
User *User `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"`
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *GetUserResponse) Reset() {
|
|
|
|
*x = GetUserResponse{}
|
|
|
|
if protoimpl.UnsafeEnabled {
|
2023-12-23 08:35:54 +08:00
|
|
|
mi := &file_api_v2_user_service_proto_msgTypes[4]
|
2023-07-30 01:35:00 +08:00
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *GetUserResponse) String() string {
|
|
|
|
return protoimpl.X.MessageStringOf(x)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (*GetUserResponse) ProtoMessage() {}
|
|
|
|
|
|
|
|
func (x *GetUserResponse) ProtoReflect() protoreflect.Message {
|
2023-12-23 08:35:54 +08:00
|
|
|
mi := &file_api_v2_user_service_proto_msgTypes[4]
|
2023-07-30 01:35:00 +08:00
|
|
|
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 GetUserResponse.ProtoReflect.Descriptor instead.
|
|
|
|
func (*GetUserResponse) Descriptor() ([]byte, []int) {
|
2023-12-23 08:35:54 +08:00
|
|
|
return file_api_v2_user_service_proto_rawDescGZIP(), []int{4}
|
2023-07-30 01:35:00 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
func (x *GetUserResponse) GetUser() *User {
|
|
|
|
if x != nil {
|
|
|
|
return x.User
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2023-10-21 12:19:06 +08:00
|
|
|
type CreateUserRequest struct {
|
|
|
|
state protoimpl.MessageState
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
|
|
|
User *User `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"`
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *CreateUserRequest) Reset() {
|
|
|
|
*x = CreateUserRequest{}
|
|
|
|
if protoimpl.UnsafeEnabled {
|
2023-12-23 08:35:54 +08:00
|
|
|
mi := &file_api_v2_user_service_proto_msgTypes[5]
|
2023-10-21 12:19:06 +08:00
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *CreateUserRequest) String() string {
|
|
|
|
return protoimpl.X.MessageStringOf(x)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (*CreateUserRequest) ProtoMessage() {}
|
|
|
|
|
|
|
|
func (x *CreateUserRequest) ProtoReflect() protoreflect.Message {
|
2023-12-23 08:35:54 +08:00
|
|
|
mi := &file_api_v2_user_service_proto_msgTypes[5]
|
2023-10-21 12:19:06 +08:00
|
|
|
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 CreateUserRequest.ProtoReflect.Descriptor instead.
|
|
|
|
func (*CreateUserRequest) Descriptor() ([]byte, []int) {
|
2023-12-23 08:35:54 +08:00
|
|
|
return file_api_v2_user_service_proto_rawDescGZIP(), []int{5}
|
2023-10-21 12:19:06 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
func (x *CreateUserRequest) GetUser() *User {
|
|
|
|
if x != nil {
|
|
|
|
return x.User
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
type CreateUserResponse struct {
|
|
|
|
state protoimpl.MessageState
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
|
|
|
User *User `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"`
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *CreateUserResponse) Reset() {
|
|
|
|
*x = CreateUserResponse{}
|
|
|
|
if protoimpl.UnsafeEnabled {
|
2023-12-23 08:35:54 +08:00
|
|
|
mi := &file_api_v2_user_service_proto_msgTypes[6]
|
2023-10-21 12:19:06 +08:00
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *CreateUserResponse) String() string {
|
|
|
|
return protoimpl.X.MessageStringOf(x)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (*CreateUserResponse) ProtoMessage() {}
|
|
|
|
|
|
|
|
func (x *CreateUserResponse) ProtoReflect() protoreflect.Message {
|
2023-12-23 08:35:54 +08:00
|
|
|
mi := &file_api_v2_user_service_proto_msgTypes[6]
|
2023-10-21 12:19:06 +08:00
|
|
|
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 CreateUserResponse.ProtoReflect.Descriptor instead.
|
|
|
|
func (*CreateUserResponse) Descriptor() ([]byte, []int) {
|
2023-12-23 08:35:54 +08:00
|
|
|
return file_api_v2_user_service_proto_rawDescGZIP(), []int{6}
|
2023-10-21 12:19:06 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
func (x *CreateUserResponse) GetUser() *User {
|
|
|
|
if x != nil {
|
|
|
|
return x.User
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2023-09-10 18:56:24 +08:00
|
|
|
type UpdateUserRequest struct {
|
|
|
|
state protoimpl.MessageState
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
2023-10-21 12:19:06 +08:00
|
|
|
User *User `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"`
|
|
|
|
UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`
|
2023-09-10 18:56:24 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
func (x *UpdateUserRequest) Reset() {
|
|
|
|
*x = UpdateUserRequest{}
|
|
|
|
if protoimpl.UnsafeEnabled {
|
2023-12-23 08:35:54 +08:00
|
|
|
mi := &file_api_v2_user_service_proto_msgTypes[7]
|
2023-09-10 18:56:24 +08:00
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *UpdateUserRequest) String() string {
|
|
|
|
return protoimpl.X.MessageStringOf(x)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (*UpdateUserRequest) ProtoMessage() {}
|
|
|
|
|
|
|
|
func (x *UpdateUserRequest) ProtoReflect() protoreflect.Message {
|
2023-12-23 08:35:54 +08:00
|
|
|
mi := &file_api_v2_user_service_proto_msgTypes[7]
|
2023-09-10 18:56:24 +08:00
|
|
|
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 UpdateUserRequest.ProtoReflect.Descriptor instead.
|
|
|
|
func (*UpdateUserRequest) Descriptor() ([]byte, []int) {
|
2023-12-23 08:35:54 +08:00
|
|
|
return file_api_v2_user_service_proto_rawDescGZIP(), []int{7}
|
2023-09-10 18:56:24 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
func (x *UpdateUserRequest) GetUser() *User {
|
|
|
|
if x != nil {
|
|
|
|
return x.User
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2023-10-21 12:19:06 +08:00
|
|
|
func (x *UpdateUserRequest) GetUpdateMask() *fieldmaskpb.FieldMask {
|
2023-09-10 18:56:24 +08:00
|
|
|
if x != nil {
|
|
|
|
return x.UpdateMask
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
type UpdateUserResponse struct {
|
|
|
|
state protoimpl.MessageState
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
|
|
|
User *User `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"`
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *UpdateUserResponse) Reset() {
|
|
|
|
*x = UpdateUserResponse{}
|
|
|
|
if protoimpl.UnsafeEnabled {
|
2023-12-23 08:35:54 +08:00
|
|
|
mi := &file_api_v2_user_service_proto_msgTypes[8]
|
2023-09-10 18:56:24 +08:00
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *UpdateUserResponse) String() string {
|
|
|
|
return protoimpl.X.MessageStringOf(x)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (*UpdateUserResponse) ProtoMessage() {}
|
|
|
|
|
|
|
|
func (x *UpdateUserResponse) ProtoReflect() protoreflect.Message {
|
2023-12-23 08:35:54 +08:00
|
|
|
mi := &file_api_v2_user_service_proto_msgTypes[8]
|
2023-09-10 18:56:24 +08:00
|
|
|
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 UpdateUserResponse.ProtoReflect.Descriptor instead.
|
|
|
|
func (*UpdateUserResponse) Descriptor() ([]byte, []int) {
|
2023-12-23 08:35:54 +08:00
|
|
|
return file_api_v2_user_service_proto_rawDescGZIP(), []int{8}
|
2023-09-10 18:56:24 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
func (x *UpdateUserResponse) GetUser() *User {
|
|
|
|
if x != nil {
|
|
|
|
return x.User
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2023-11-22 22:52:19 +08:00
|
|
|
type DeleteUserRequest struct {
|
|
|
|
state protoimpl.MessageState
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
|
|
|
// The name of the user.
|
|
|
|
// Format: users/{username}
|
|
|
|
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *DeleteUserRequest) Reset() {
|
|
|
|
*x = DeleteUserRequest{}
|
|
|
|
if protoimpl.UnsafeEnabled {
|
2023-12-23 08:35:54 +08:00
|
|
|
mi := &file_api_v2_user_service_proto_msgTypes[9]
|
2023-11-22 22:52:19 +08:00
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *DeleteUserRequest) String() string {
|
|
|
|
return protoimpl.X.MessageStringOf(x)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (*DeleteUserRequest) ProtoMessage() {}
|
|
|
|
|
|
|
|
func (x *DeleteUserRequest) ProtoReflect() protoreflect.Message {
|
2023-12-23 08:35:54 +08:00
|
|
|
mi := &file_api_v2_user_service_proto_msgTypes[9]
|
2023-11-22 22:52:19 +08:00
|
|
|
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 DeleteUserRequest.ProtoReflect.Descriptor instead.
|
|
|
|
func (*DeleteUserRequest) Descriptor() ([]byte, []int) {
|
2023-12-23 08:35:54 +08:00
|
|
|
return file_api_v2_user_service_proto_rawDescGZIP(), []int{9}
|
2023-11-22 22:52:19 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
func (x *DeleteUserRequest) GetName() string {
|
|
|
|
if x != nil {
|
|
|
|
return x.Name
|
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
|
|
|
type DeleteUserResponse struct {
|
|
|
|
state protoimpl.MessageState
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *DeleteUserResponse) Reset() {
|
|
|
|
*x = DeleteUserResponse{}
|
|
|
|
if protoimpl.UnsafeEnabled {
|
2023-12-23 08:35:54 +08:00
|
|
|
mi := &file_api_v2_user_service_proto_msgTypes[10]
|
2023-11-22 22:52:19 +08:00
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *DeleteUserResponse) String() string {
|
|
|
|
return protoimpl.X.MessageStringOf(x)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (*DeleteUserResponse) ProtoMessage() {}
|
|
|
|
|
|
|
|
func (x *DeleteUserResponse) ProtoReflect() protoreflect.Message {
|
2023-12-23 08:35:54 +08:00
|
|
|
mi := &file_api_v2_user_service_proto_msgTypes[10]
|
2023-11-22 22:52:19 +08:00
|
|
|
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 DeleteUserResponse.ProtoReflect.Descriptor instead.
|
|
|
|
func (*DeleteUserResponse) Descriptor() ([]byte, []int) {
|
2023-12-23 08:35:54 +08:00
|
|
|
return file_api_v2_user_service_proto_rawDescGZIP(), []int{10}
|
2023-11-22 22:52:19 +08:00
|
|
|
}
|
|
|
|
|
2023-11-30 23:08:54 +08:00
|
|
|
type UserSetting struct {
|
|
|
|
state protoimpl.MessageState
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
|
|
|
// The name of the user.
|
|
|
|
// Format: users/{username}
|
|
|
|
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
|
|
|
|
// The preferred locale of the user.
|
|
|
|
Locale string `protobuf:"bytes,2,opt,name=locale,proto3" json:"locale,omitempty"`
|
|
|
|
// The preferred appearance of the user.
|
|
|
|
Appearance string `protobuf:"bytes,3,opt,name=appearance,proto3" json:"appearance,omitempty"`
|
|
|
|
// The default visibility of the memo.
|
|
|
|
MemoVisibility string `protobuf:"bytes,4,opt,name=memo_visibility,json=memoVisibility,proto3" json:"memo_visibility,omitempty"`
|
|
|
|
// The telegram user id of the user.
|
|
|
|
TelegramUserId string `protobuf:"bytes,5,opt,name=telegram_user_id,json=telegramUserId,proto3" json:"telegram_user_id,omitempty"`
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *UserSetting) Reset() {
|
|
|
|
*x = UserSetting{}
|
|
|
|
if protoimpl.UnsafeEnabled {
|
2023-12-23 08:35:54 +08:00
|
|
|
mi := &file_api_v2_user_service_proto_msgTypes[11]
|
2023-11-30 23:08:54 +08:00
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *UserSetting) String() string {
|
|
|
|
return protoimpl.X.MessageStringOf(x)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (*UserSetting) ProtoMessage() {}
|
|
|
|
|
|
|
|
func (x *UserSetting) ProtoReflect() protoreflect.Message {
|
2023-12-23 08:35:54 +08:00
|
|
|
mi := &file_api_v2_user_service_proto_msgTypes[11]
|
2023-11-30 23:08:54 +08:00
|
|
|
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 UserSetting.ProtoReflect.Descriptor instead.
|
|
|
|
func (*UserSetting) Descriptor() ([]byte, []int) {
|
2023-12-23 08:35:54 +08:00
|
|
|
return file_api_v2_user_service_proto_rawDescGZIP(), []int{11}
|
2023-11-30 23:08:54 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
func (x *UserSetting) GetName() string {
|
|
|
|
if x != nil {
|
|
|
|
return x.Name
|
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *UserSetting) GetLocale() string {
|
|
|
|
if x != nil {
|
|
|
|
return x.Locale
|
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *UserSetting) GetAppearance() string {
|
|
|
|
if x != nil {
|
|
|
|
return x.Appearance
|
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *UserSetting) GetMemoVisibility() string {
|
|
|
|
if x != nil {
|
|
|
|
return x.MemoVisibility
|
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *UserSetting) GetTelegramUserId() string {
|
|
|
|
if x != nil {
|
|
|
|
return x.TelegramUserId
|
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
2023-12-01 09:03:30 +08:00
|
|
|
type GetUserSettingRequest struct {
|
2023-11-30 23:08:54 +08:00
|
|
|
state protoimpl.MessageState
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
|
|
|
// The name of the user.
|
|
|
|
// Format: users/{username}
|
|
|
|
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
|
|
|
|
}
|
|
|
|
|
2023-12-01 09:03:30 +08:00
|
|
|
func (x *GetUserSettingRequest) Reset() {
|
|
|
|
*x = GetUserSettingRequest{}
|
2023-11-30 23:08:54 +08:00
|
|
|
if protoimpl.UnsafeEnabled {
|
2023-12-23 08:35:54 +08:00
|
|
|
mi := &file_api_v2_user_service_proto_msgTypes[12]
|
2023-11-30 23:08:54 +08:00
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-12-01 09:03:30 +08:00
|
|
|
func (x *GetUserSettingRequest) String() string {
|
2023-11-30 23:08:54 +08:00
|
|
|
return protoimpl.X.MessageStringOf(x)
|
|
|
|
}
|
|
|
|
|
2023-12-01 09:03:30 +08:00
|
|
|
func (*GetUserSettingRequest) ProtoMessage() {}
|
2023-11-30 23:08:54 +08:00
|
|
|
|
2023-12-01 09:03:30 +08:00
|
|
|
func (x *GetUserSettingRequest) ProtoReflect() protoreflect.Message {
|
2023-12-23 08:35:54 +08:00
|
|
|
mi := &file_api_v2_user_service_proto_msgTypes[12]
|
2023-11-30 23:08:54 +08:00
|
|
|
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)
|
|
|
|
}
|
|
|
|
|
2023-12-01 09:03:30 +08:00
|
|
|
// Deprecated: Use GetUserSettingRequest.ProtoReflect.Descriptor instead.
|
|
|
|
func (*GetUserSettingRequest) Descriptor() ([]byte, []int) {
|
2023-12-23 08:35:54 +08:00
|
|
|
return file_api_v2_user_service_proto_rawDescGZIP(), []int{12}
|
2023-11-30 23:08:54 +08:00
|
|
|
}
|
|
|
|
|
2023-12-01 09:03:30 +08:00
|
|
|
func (x *GetUserSettingRequest) GetName() string {
|
2023-11-30 23:08:54 +08:00
|
|
|
if x != nil {
|
|
|
|
return x.Name
|
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
2023-12-01 09:03:30 +08:00
|
|
|
type GetUserSettingResponse struct {
|
2023-11-30 23:08:54 +08:00
|
|
|
state protoimpl.MessageState
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
2023-12-01 09:03:30 +08:00
|
|
|
Setting *UserSetting `protobuf:"bytes,1,opt,name=setting,proto3" json:"setting,omitempty"`
|
2023-11-30 23:08:54 +08:00
|
|
|
}
|
|
|
|
|
2023-12-01 09:03:30 +08:00
|
|
|
func (x *GetUserSettingResponse) Reset() {
|
|
|
|
*x = GetUserSettingResponse{}
|
2023-11-30 23:08:54 +08:00
|
|
|
if protoimpl.UnsafeEnabled {
|
2023-12-23 08:35:54 +08:00
|
|
|
mi := &file_api_v2_user_service_proto_msgTypes[13]
|
2023-11-30 23:08:54 +08:00
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-12-01 09:03:30 +08:00
|
|
|
func (x *GetUserSettingResponse) String() string {
|
2023-11-30 23:08:54 +08:00
|
|
|
return protoimpl.X.MessageStringOf(x)
|
|
|
|
}
|
|
|
|
|
2023-12-01 09:03:30 +08:00
|
|
|
func (*GetUserSettingResponse) ProtoMessage() {}
|
2023-11-30 23:08:54 +08:00
|
|
|
|
2023-12-01 09:03:30 +08:00
|
|
|
func (x *GetUserSettingResponse) ProtoReflect() protoreflect.Message {
|
2023-12-23 08:35:54 +08:00
|
|
|
mi := &file_api_v2_user_service_proto_msgTypes[13]
|
2023-11-30 23:08:54 +08:00
|
|
|
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)
|
|
|
|
}
|
|
|
|
|
2023-12-01 09:03:30 +08:00
|
|
|
// Deprecated: Use GetUserSettingResponse.ProtoReflect.Descriptor instead.
|
|
|
|
func (*GetUserSettingResponse) Descriptor() ([]byte, []int) {
|
2023-12-23 08:35:54 +08:00
|
|
|
return file_api_v2_user_service_proto_rawDescGZIP(), []int{13}
|
2023-11-30 23:08:54 +08:00
|
|
|
}
|
|
|
|
|
2023-12-01 09:03:30 +08:00
|
|
|
func (x *GetUserSettingResponse) GetSetting() *UserSetting {
|
2023-11-30 23:08:54 +08:00
|
|
|
if x != nil {
|
2023-12-01 09:03:30 +08:00
|
|
|
return x.Setting
|
2023-11-30 23:08:54 +08:00
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2023-12-01 09:03:30 +08:00
|
|
|
type UpdateUserSettingRequest struct {
|
2023-11-30 23:08:54 +08:00
|
|
|
state protoimpl.MessageState
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
2023-12-01 09:03:30 +08:00
|
|
|
Setting *UserSetting `protobuf:"bytes,1,opt,name=setting,proto3" json:"setting,omitempty"`
|
2023-11-30 23:08:54 +08:00
|
|
|
UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`
|
|
|
|
}
|
|
|
|
|
2023-12-01 09:03:30 +08:00
|
|
|
func (x *UpdateUserSettingRequest) Reset() {
|
|
|
|
*x = UpdateUserSettingRequest{}
|
2023-11-30 23:08:54 +08:00
|
|
|
if protoimpl.UnsafeEnabled {
|
2023-12-23 08:35:54 +08:00
|
|
|
mi := &file_api_v2_user_service_proto_msgTypes[14]
|
2023-11-30 23:08:54 +08:00
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-12-01 09:03:30 +08:00
|
|
|
func (x *UpdateUserSettingRequest) String() string {
|
2023-11-30 23:08:54 +08:00
|
|
|
return protoimpl.X.MessageStringOf(x)
|
|
|
|
}
|
|
|
|
|
2023-12-01 09:03:30 +08:00
|
|
|
func (*UpdateUserSettingRequest) ProtoMessage() {}
|
2023-11-30 23:08:54 +08:00
|
|
|
|
2023-12-01 09:03:30 +08:00
|
|
|
func (x *UpdateUserSettingRequest) ProtoReflect() protoreflect.Message {
|
2023-12-23 08:35:54 +08:00
|
|
|
mi := &file_api_v2_user_service_proto_msgTypes[14]
|
2023-11-30 23:08:54 +08:00
|
|
|
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)
|
|
|
|
}
|
|
|
|
|
2023-12-01 09:03:30 +08:00
|
|
|
// Deprecated: Use UpdateUserSettingRequest.ProtoReflect.Descriptor instead.
|
|
|
|
func (*UpdateUserSettingRequest) Descriptor() ([]byte, []int) {
|
2023-12-23 08:35:54 +08:00
|
|
|
return file_api_v2_user_service_proto_rawDescGZIP(), []int{14}
|
2023-11-30 23:08:54 +08:00
|
|
|
}
|
|
|
|
|
2023-12-01 09:03:30 +08:00
|
|
|
func (x *UpdateUserSettingRequest) GetSetting() *UserSetting {
|
2023-11-30 23:08:54 +08:00
|
|
|
if x != nil {
|
2023-12-01 09:03:30 +08:00
|
|
|
return x.Setting
|
2023-11-30 23:08:54 +08:00
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2023-12-01 09:03:30 +08:00
|
|
|
func (x *UpdateUserSettingRequest) GetUpdateMask() *fieldmaskpb.FieldMask {
|
2023-11-30 23:08:54 +08:00
|
|
|
if x != nil {
|
|
|
|
return x.UpdateMask
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2023-12-01 09:03:30 +08:00
|
|
|
type UpdateUserSettingResponse struct {
|
2023-11-30 23:08:54 +08:00
|
|
|
state protoimpl.MessageState
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
2023-12-01 09:03:30 +08:00
|
|
|
Setting *UserSetting `protobuf:"bytes,1,opt,name=setting,proto3" json:"setting,omitempty"`
|
2023-11-30 23:08:54 +08:00
|
|
|
}
|
|
|
|
|
2023-12-01 09:03:30 +08:00
|
|
|
func (x *UpdateUserSettingResponse) Reset() {
|
|
|
|
*x = UpdateUserSettingResponse{}
|
2023-11-30 23:08:54 +08:00
|
|
|
if protoimpl.UnsafeEnabled {
|
2023-12-23 08:35:54 +08:00
|
|
|
mi := &file_api_v2_user_service_proto_msgTypes[15]
|
2023-11-30 23:08:54 +08:00
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-12-01 09:03:30 +08:00
|
|
|
func (x *UpdateUserSettingResponse) String() string {
|
2023-11-30 23:08:54 +08:00
|
|
|
return protoimpl.X.MessageStringOf(x)
|
|
|
|
}
|
|
|
|
|
2023-12-01 09:03:30 +08:00
|
|
|
func (*UpdateUserSettingResponse) ProtoMessage() {}
|
2023-11-30 23:08:54 +08:00
|
|
|
|
2023-12-01 09:03:30 +08:00
|
|
|
func (x *UpdateUserSettingResponse) ProtoReflect() protoreflect.Message {
|
2023-12-23 08:35:54 +08:00
|
|
|
mi := &file_api_v2_user_service_proto_msgTypes[15]
|
2023-11-30 23:08:54 +08:00
|
|
|
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)
|
|
|
|
}
|
|
|
|
|
2023-12-01 09:03:30 +08:00
|
|
|
// Deprecated: Use UpdateUserSettingResponse.ProtoReflect.Descriptor instead.
|
|
|
|
func (*UpdateUserSettingResponse) Descriptor() ([]byte, []int) {
|
2023-12-23 08:35:54 +08:00
|
|
|
return file_api_v2_user_service_proto_rawDescGZIP(), []int{15}
|
2023-11-30 23:08:54 +08:00
|
|
|
}
|
|
|
|
|
2023-12-01 09:03:30 +08:00
|
|
|
func (x *UpdateUserSettingResponse) GetSetting() *UserSetting {
|
2023-11-30 23:08:54 +08:00
|
|
|
if x != nil {
|
2023-12-01 09:03:30 +08:00
|
|
|
return x.Setting
|
2023-11-30 23:08:54 +08:00
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2023-11-06 08:05:07 +08:00
|
|
|
type UserAccessToken struct {
|
|
|
|
state protoimpl.MessageState
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
|
|
|
AccessToken string `protobuf:"bytes,1,opt,name=access_token,json=accessToken,proto3" json:"access_token,omitempty"`
|
|
|
|
Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
|
|
|
|
IssuedAt *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=issued_at,json=issuedAt,proto3" json:"issued_at,omitempty"`
|
|
|
|
ExpiresAt *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=expires_at,json=expiresAt,proto3" json:"expires_at,omitempty"`
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *UserAccessToken) Reset() {
|
|
|
|
*x = UserAccessToken{}
|
|
|
|
if protoimpl.UnsafeEnabled {
|
2023-12-23 08:35:54 +08:00
|
|
|
mi := &file_api_v2_user_service_proto_msgTypes[16]
|
2023-11-06 08:05:07 +08:00
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *UserAccessToken) String() string {
|
|
|
|
return protoimpl.X.MessageStringOf(x)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (*UserAccessToken) ProtoMessage() {}
|
|
|
|
|
|
|
|
func (x *UserAccessToken) ProtoReflect() protoreflect.Message {
|
2023-12-23 08:35:54 +08:00
|
|
|
mi := &file_api_v2_user_service_proto_msgTypes[16]
|
2023-11-06 08:05:07 +08:00
|
|
|
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 UserAccessToken.ProtoReflect.Descriptor instead.
|
|
|
|
func (*UserAccessToken) Descriptor() ([]byte, []int) {
|
2023-12-23 08:35:54 +08:00
|
|
|
return file_api_v2_user_service_proto_rawDescGZIP(), []int{16}
|
2023-11-06 08:05:07 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
func (x *UserAccessToken) GetAccessToken() string {
|
|
|
|
if x != nil {
|
|
|
|
return x.AccessToken
|
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *UserAccessToken) GetDescription() string {
|
|
|
|
if x != nil {
|
|
|
|
return x.Description
|
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *UserAccessToken) GetIssuedAt() *timestamppb.Timestamp {
|
|
|
|
if x != nil {
|
|
|
|
return x.IssuedAt
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *UserAccessToken) GetExpiresAt() *timestamppb.Timestamp {
|
|
|
|
if x != nil {
|
|
|
|
return x.ExpiresAt
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2023-09-14 19:18:54 +08:00
|
|
|
type ListUserAccessTokensRequest struct {
|
2023-07-30 09:53:24 +08:00
|
|
|
state protoimpl.MessageState
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
2023-11-05 23:03:43 +08:00
|
|
|
// The name of the user.
|
|
|
|
// Format: users/{username}
|
|
|
|
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
|
2023-07-30 09:53:24 +08:00
|
|
|
}
|
|
|
|
|
2023-09-14 19:18:54 +08:00
|
|
|
func (x *ListUserAccessTokensRequest) Reset() {
|
|
|
|
*x = ListUserAccessTokensRequest{}
|
2023-07-30 09:53:24 +08:00
|
|
|
if protoimpl.UnsafeEnabled {
|
2023-12-23 08:35:54 +08:00
|
|
|
mi := &file_api_v2_user_service_proto_msgTypes[17]
|
2023-07-30 09:53:24 +08:00
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-09-14 19:18:54 +08:00
|
|
|
func (x *ListUserAccessTokensRequest) String() string {
|
2023-07-30 09:53:24 +08:00
|
|
|
return protoimpl.X.MessageStringOf(x)
|
|
|
|
}
|
|
|
|
|
2023-09-14 19:18:54 +08:00
|
|
|
func (*ListUserAccessTokensRequest) ProtoMessage() {}
|
2023-07-30 09:53:24 +08:00
|
|
|
|
2023-09-14 19:18:54 +08:00
|
|
|
func (x *ListUserAccessTokensRequest) ProtoReflect() protoreflect.Message {
|
2023-12-23 08:35:54 +08:00
|
|
|
mi := &file_api_v2_user_service_proto_msgTypes[17]
|
2023-07-30 09:53:24 +08:00
|
|
|
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)
|
|
|
|
}
|
|
|
|
|
2023-09-14 19:18:54 +08:00
|
|
|
// Deprecated: Use ListUserAccessTokensRequest.ProtoReflect.Descriptor instead.
|
|
|
|
func (*ListUserAccessTokensRequest) Descriptor() ([]byte, []int) {
|
2023-12-23 08:35:54 +08:00
|
|
|
return file_api_v2_user_service_proto_rawDescGZIP(), []int{17}
|
2023-07-30 09:53:24 +08:00
|
|
|
}
|
|
|
|
|
2023-11-05 23:03:43 +08:00
|
|
|
func (x *ListUserAccessTokensRequest) GetName() string {
|
2023-07-30 09:53:24 +08:00
|
|
|
if x != nil {
|
2023-11-05 23:03:43 +08:00
|
|
|
return x.Name
|
2023-09-14 19:18:54 +08:00
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
|
|
|
type ListUserAccessTokensResponse struct {
|
|
|
|
state protoimpl.MessageState
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
|
|
|
AccessTokens []*UserAccessToken `protobuf:"bytes,1,rep,name=access_tokens,json=accessTokens,proto3" json:"access_tokens,omitempty"`
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *ListUserAccessTokensResponse) Reset() {
|
|
|
|
*x = ListUserAccessTokensResponse{}
|
|
|
|
if protoimpl.UnsafeEnabled {
|
2023-12-23 08:35:54 +08:00
|
|
|
mi := &file_api_v2_user_service_proto_msgTypes[18]
|
2023-09-14 19:18:54 +08:00
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
ms.StoreMessageInfo(mi)
|
2023-07-30 09:53:24 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-09-14 19:18:54 +08:00
|
|
|
func (x *ListUserAccessTokensResponse) String() string {
|
|
|
|
return protoimpl.X.MessageStringOf(x)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (*ListUserAccessTokensResponse) ProtoMessage() {}
|
|
|
|
|
|
|
|
func (x *ListUserAccessTokensResponse) ProtoReflect() protoreflect.Message {
|
2023-12-23 08:35:54 +08:00
|
|
|
mi := &file_api_v2_user_service_proto_msgTypes[18]
|
2023-09-14 19:18:54 +08:00
|
|
|
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 ListUserAccessTokensResponse.ProtoReflect.Descriptor instead.
|
|
|
|
func (*ListUserAccessTokensResponse) Descriptor() ([]byte, []int) {
|
2023-12-23 08:35:54 +08:00
|
|
|
return file_api_v2_user_service_proto_rawDescGZIP(), []int{18}
|
2023-09-14 19:18:54 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
func (x *ListUserAccessTokensResponse) GetAccessTokens() []*UserAccessToken {
|
2023-07-30 09:53:24 +08:00
|
|
|
if x != nil {
|
2023-09-14 19:18:54 +08:00
|
|
|
return x.AccessTokens
|
2023-07-30 09:53:24 +08:00
|
|
|
}
|
2023-09-14 19:18:54 +08:00
|
|
|
return nil
|
2023-07-30 09:53:24 +08:00
|
|
|
}
|
|
|
|
|
2023-09-14 19:18:54 +08:00
|
|
|
type CreateUserAccessTokenRequest struct {
|
|
|
|
state protoimpl.MessageState
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
2023-11-05 23:03:43 +08:00
|
|
|
// The name of the user.
|
|
|
|
// Format: users/{username}
|
|
|
|
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
|
2023-09-20 20:48:34 +08:00
|
|
|
Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
|
|
|
|
ExpiresAt *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=expires_at,json=expiresAt,proto3,oneof" json:"expires_at,omitempty"`
|
2023-09-14 19:18:54 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
func (x *CreateUserAccessTokenRequest) Reset() {
|
|
|
|
*x = CreateUserAccessTokenRequest{}
|
|
|
|
if protoimpl.UnsafeEnabled {
|
2023-12-23 08:35:54 +08:00
|
|
|
mi := &file_api_v2_user_service_proto_msgTypes[19]
|
2023-09-14 19:18:54 +08:00
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *CreateUserAccessTokenRequest) String() string {
|
|
|
|
return protoimpl.X.MessageStringOf(x)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (*CreateUserAccessTokenRequest) ProtoMessage() {}
|
|
|
|
|
|
|
|
func (x *CreateUserAccessTokenRequest) ProtoReflect() protoreflect.Message {
|
2023-12-23 08:35:54 +08:00
|
|
|
mi := &file_api_v2_user_service_proto_msgTypes[19]
|
2023-09-14 19:18:54 +08:00
|
|
|
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 CreateUserAccessTokenRequest.ProtoReflect.Descriptor instead.
|
|
|
|
func (*CreateUserAccessTokenRequest) Descriptor() ([]byte, []int) {
|
2023-12-23 08:35:54 +08:00
|
|
|
return file_api_v2_user_service_proto_rawDescGZIP(), []int{19}
|
2023-09-14 19:18:54 +08:00
|
|
|
}
|
|
|
|
|
2023-11-05 23:03:43 +08:00
|
|
|
func (x *CreateUserAccessTokenRequest) GetName() string {
|
2023-07-30 09:53:24 +08:00
|
|
|
if x != nil {
|
2023-11-05 23:03:43 +08:00
|
|
|
return x.Name
|
2023-09-14 19:18:54 +08:00
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
2023-09-20 20:48:34 +08:00
|
|
|
func (x *CreateUserAccessTokenRequest) GetDescription() string {
|
2023-09-14 19:18:54 +08:00
|
|
|
if x != nil {
|
2023-09-20 20:48:34 +08:00
|
|
|
return x.Description
|
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *CreateUserAccessTokenRequest) GetExpiresAt() *timestamppb.Timestamp {
|
|
|
|
if x != nil {
|
|
|
|
return x.ExpiresAt
|
2023-07-30 09:53:24 +08:00
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2023-09-14 19:18:54 +08:00
|
|
|
type CreateUserAccessTokenResponse struct {
|
2023-07-30 09:53:24 +08:00
|
|
|
state protoimpl.MessageState
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
2023-09-14 19:18:54 +08:00
|
|
|
AccessToken *UserAccessToken `protobuf:"bytes,1,opt,name=access_token,json=accessToken,proto3" json:"access_token,omitempty"`
|
2023-07-30 09:53:24 +08:00
|
|
|
}
|
|
|
|
|
2023-09-14 19:18:54 +08:00
|
|
|
func (x *CreateUserAccessTokenResponse) Reset() {
|
|
|
|
*x = CreateUserAccessTokenResponse{}
|
2023-07-30 09:53:24 +08:00
|
|
|
if protoimpl.UnsafeEnabled {
|
2023-12-23 08:35:54 +08:00
|
|
|
mi := &file_api_v2_user_service_proto_msgTypes[20]
|
2023-07-30 09:53:24 +08:00
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-09-14 19:18:54 +08:00
|
|
|
func (x *CreateUserAccessTokenResponse) String() string {
|
2023-07-30 09:53:24 +08:00
|
|
|
return protoimpl.X.MessageStringOf(x)
|
|
|
|
}
|
|
|
|
|
2023-09-14 19:18:54 +08:00
|
|
|
func (*CreateUserAccessTokenResponse) ProtoMessage() {}
|
2023-07-30 09:53:24 +08:00
|
|
|
|
2023-09-14 19:18:54 +08:00
|
|
|
func (x *CreateUserAccessTokenResponse) ProtoReflect() protoreflect.Message {
|
2023-12-23 08:35:54 +08:00
|
|
|
mi := &file_api_v2_user_service_proto_msgTypes[20]
|
2023-07-30 09:53:24 +08:00
|
|
|
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)
|
|
|
|
}
|
|
|
|
|
2023-09-14 19:18:54 +08:00
|
|
|
// Deprecated: Use CreateUserAccessTokenResponse.ProtoReflect.Descriptor instead.
|
|
|
|
func (*CreateUserAccessTokenResponse) Descriptor() ([]byte, []int) {
|
2023-12-23 08:35:54 +08:00
|
|
|
return file_api_v2_user_service_proto_rawDescGZIP(), []int{20}
|
2023-07-30 09:53:24 +08:00
|
|
|
}
|
|
|
|
|
2023-09-14 19:18:54 +08:00
|
|
|
func (x *CreateUserAccessTokenResponse) GetAccessToken() *UserAccessToken {
|
|
|
|
if x != nil {
|
|
|
|
return x.AccessToken
|
2023-07-30 09:53:24 +08:00
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2023-09-14 19:18:54 +08:00
|
|
|
type DeleteUserAccessTokenRequest struct {
|
|
|
|
state protoimpl.MessageState
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
2023-11-05 23:03:43 +08:00
|
|
|
// The name of the user.
|
|
|
|
// Format: users/{username}
|
|
|
|
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
|
2023-09-14 19:18:54 +08:00
|
|
|
// access_token is the access token to delete.
|
|
|
|
AccessToken string `protobuf:"bytes,2,opt,name=access_token,json=accessToken,proto3" json:"access_token,omitempty"`
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *DeleteUserAccessTokenRequest) Reset() {
|
|
|
|
*x = DeleteUserAccessTokenRequest{}
|
|
|
|
if protoimpl.UnsafeEnabled {
|
2023-12-23 08:35:54 +08:00
|
|
|
mi := &file_api_v2_user_service_proto_msgTypes[21]
|
2023-09-14 19:18:54 +08:00
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *DeleteUserAccessTokenRequest) String() string {
|
|
|
|
return protoimpl.X.MessageStringOf(x)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (*DeleteUserAccessTokenRequest) ProtoMessage() {}
|
|
|
|
|
|
|
|
func (x *DeleteUserAccessTokenRequest) ProtoReflect() protoreflect.Message {
|
2023-12-23 08:35:54 +08:00
|
|
|
mi := &file_api_v2_user_service_proto_msgTypes[21]
|
2023-09-14 19:18:54 +08:00
|
|
|
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 DeleteUserAccessTokenRequest.ProtoReflect.Descriptor instead.
|
|
|
|
func (*DeleteUserAccessTokenRequest) Descriptor() ([]byte, []int) {
|
2023-12-23 08:35:54 +08:00
|
|
|
return file_api_v2_user_service_proto_rawDescGZIP(), []int{21}
|
2023-09-14 19:18:54 +08:00
|
|
|
}
|
|
|
|
|
2023-11-05 23:03:43 +08:00
|
|
|
func (x *DeleteUserAccessTokenRequest) GetName() string {
|
2023-09-14 19:18:54 +08:00
|
|
|
if x != nil {
|
2023-11-05 23:03:43 +08:00
|
|
|
return x.Name
|
2023-07-30 09:53:24 +08:00
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
2023-09-14 19:18:54 +08:00
|
|
|
func (x *DeleteUserAccessTokenRequest) GetAccessToken() string {
|
|
|
|
if x != nil {
|
|
|
|
return x.AccessToken
|
2023-07-30 09:53:24 +08:00
|
|
|
}
|
2023-09-14 19:18:54 +08:00
|
|
|
return ""
|
2023-07-30 09:53:24 +08:00
|
|
|
}
|
|
|
|
|
2023-09-14 19:18:54 +08:00
|
|
|
type DeleteUserAccessTokenResponse struct {
|
|
|
|
state protoimpl.MessageState
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
unknownFields protoimpl.UnknownFields
|
2023-07-30 09:53:24 +08:00
|
|
|
}
|
|
|
|
|
2023-09-14 19:18:54 +08:00
|
|
|
func (x *DeleteUserAccessTokenResponse) Reset() {
|
|
|
|
*x = DeleteUserAccessTokenResponse{}
|
|
|
|
if protoimpl.UnsafeEnabled {
|
2023-12-23 08:35:54 +08:00
|
|
|
mi := &file_api_v2_user_service_proto_msgTypes[22]
|
2023-09-14 19:18:54 +08:00
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
2023-07-30 09:53:24 +08:00
|
|
|
}
|
|
|
|
|
2023-09-14 19:18:54 +08:00
|
|
|
func (x *DeleteUserAccessTokenResponse) String() string {
|
|
|
|
return protoimpl.X.MessageStringOf(x)
|
2023-07-30 09:53:24 +08:00
|
|
|
}
|
|
|
|
|
2023-09-14 19:18:54 +08:00
|
|
|
func (*DeleteUserAccessTokenResponse) ProtoMessage() {}
|
2023-07-30 09:53:24 +08:00
|
|
|
|
2023-09-14 19:18:54 +08:00
|
|
|
func (x *DeleteUserAccessTokenResponse) ProtoReflect() protoreflect.Message {
|
2023-12-23 08:35:54 +08:00
|
|
|
mi := &file_api_v2_user_service_proto_msgTypes[22]
|
2023-09-14 19:18:54 +08:00
|
|
|
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 DeleteUserAccessTokenResponse.ProtoReflect.Descriptor instead.
|
|
|
|
func (*DeleteUserAccessTokenResponse) Descriptor() ([]byte, []int) {
|
2023-12-23 08:35:54 +08:00
|
|
|
return file_api_v2_user_service_proto_rawDescGZIP(), []int{22}
|
2023-09-14 19:18:54 +08:00
|
|
|
}
|
|
|
|
|
2023-07-30 01:35:00 +08:00
|
|
|
var File_api_v2_user_service_proto protoreflect.FileDescriptor
|
|
|
|
|
|
|
|
var file_api_v2_user_service_proto_rawDesc = []byte{
|
|
|
|
0x0a, 0x19, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x32, 0x2f, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x73, 0x65,
|
|
|
|
0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0c, 0x6d, 0x65, 0x6d,
|
|
|
|
0x6f, 0x73, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x32, 0x1a, 0x13, 0x61, 0x70, 0x69, 0x2f, 0x76,
|
2023-09-14 19:18:54 +08:00
|
|
|
0x32, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 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, 0x1a, 0x17, 0x67, 0x6f,
|
|
|
|
0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x2e,
|
|
|
|
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70,
|
|
|
|
0x69, 0x2f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x62, 0x65, 0x68, 0x61, 0x76, 0x69, 0x6f, 0x72,
|
2023-10-21 12:19:06 +08:00
|
|
|
0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x20, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70,
|
|
|
|
0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x6d, 0x61,
|
|
|
|
0x73, 0x6b, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
|
|
|
|
0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74,
|
2023-12-23 19:23:39 +08:00
|
|
|
0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xd4, 0x03, 0x0a, 0x04, 0x55, 0x73,
|
2023-11-05 23:03:43 +08:00
|
|
|
0x65, 0x72, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09,
|
|
|
|
0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01,
|
|
|
|
0x28, 0x05, 0x52, 0x02, 0x69, 0x64, 0x12, 0x2b, 0x0a, 0x04, 0x72, 0x6f, 0x6c, 0x65, 0x18, 0x03,
|
|
|
|
0x20, 0x01, 0x28, 0x0e, 0x32, 0x17, 0x2e, 0x6d, 0x65, 0x6d, 0x6f, 0x73, 0x2e, 0x61, 0x70, 0x69,
|
|
|
|
0x2e, 0x76, 0x32, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x2e, 0x52, 0x6f, 0x6c, 0x65, 0x52, 0x04, 0x72,
|
2023-12-23 19:23:39 +08:00
|
|
|
0x6f, 0x6c, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x75, 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x18,
|
|
|
|
0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x75, 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x12,
|
|
|
|
0x14, 0x0a, 0x05, 0x65, 0x6d, 0x61, 0x69, 0x6c, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05,
|
|
|
|
0x65, 0x6d, 0x61, 0x69, 0x6c, 0x12, 0x1a, 0x0a, 0x08, 0x6e, 0x69, 0x63, 0x6b, 0x6e, 0x61, 0x6d,
|
|
|
|
0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6e, 0x69, 0x63, 0x6b, 0x6e, 0x61, 0x6d,
|
|
|
|
0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x61, 0x76, 0x61, 0x74, 0x61, 0x72, 0x5f, 0x75, 0x72, 0x6c, 0x18,
|
|
|
|
0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x61, 0x76, 0x61, 0x74, 0x61, 0x72, 0x55, 0x72, 0x6c,
|
|
|
|
0x12, 0x1f, 0x0a, 0x08, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x18, 0x08, 0x20, 0x01,
|
|
|
|
0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x04, 0x52, 0x08, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72,
|
|
|
|
0x64, 0x12, 0x36, 0x0a, 0x0a, 0x72, 0x6f, 0x77, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18,
|
|
|
|
0x09, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x17, 0x2e, 0x6d, 0x65, 0x6d, 0x6f, 0x73, 0x2e, 0x61, 0x70,
|
|
|
|
0x69, 0x2e, 0x76, 0x32, 0x2e, 0x52, 0x6f, 0x77, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x09,
|
|
|
|
0x72, 0x6f, 0x77, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x3b, 0x0a, 0x0b, 0x63, 0x72, 0x65,
|
|
|
|
0x61, 0x74, 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a,
|
|
|
|
0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66,
|
|
|
|
0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x0a, 0x63, 0x72, 0x65, 0x61,
|
|
|
|
0x74, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x3b, 0x0a, 0x0b, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65,
|
|
|
|
0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f,
|
|
|
|
0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69,
|
|
|
|
0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x0a, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x54,
|
|
|
|
0x69, 0x6d, 0x65, 0x22, 0x3b, 0x0a, 0x04, 0x52, 0x6f, 0x6c, 0x65, 0x12, 0x14, 0x0a, 0x10, 0x52,
|
|
|
|
0x4f, 0x4c, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10,
|
|
|
|
0x00, 0x12, 0x08, 0x0a, 0x04, 0x48, 0x4f, 0x53, 0x54, 0x10, 0x01, 0x12, 0x09, 0x0a, 0x05, 0x41,
|
|
|
|
0x44, 0x4d, 0x49, 0x4e, 0x10, 0x02, 0x12, 0x08, 0x0a, 0x04, 0x55, 0x53, 0x45, 0x52, 0x10, 0x03,
|
|
|
|
0x22, 0x12, 0x0a, 0x10, 0x4c, 0x69, 0x73, 0x74, 0x55, 0x73, 0x65, 0x72, 0x73, 0x52, 0x65, 0x71,
|
|
|
|
0x75, 0x65, 0x73, 0x74, 0x22, 0x3d, 0x0a, 0x11, 0x4c, 0x69, 0x73, 0x74, 0x55, 0x73, 0x65, 0x72,
|
|
|
|
0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x28, 0x0a, 0x05, 0x75, 0x73, 0x65,
|
|
|
|
0x72, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x6d, 0x65, 0x6d, 0x6f, 0x73,
|
|
|
|
0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x32, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x52, 0x05, 0x75, 0x73,
|
|
|
|
0x65, 0x72, 0x73, 0x22, 0x24, 0x0a, 0x0e, 0x47, 0x65, 0x74, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65,
|
2023-12-23 08:35:54 +08:00
|
|
|
0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20,
|
2023-12-23 19:23:39 +08:00
|
|
|
0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x39, 0x0a, 0x0f, 0x47, 0x65, 0x74,
|
|
|
|
0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x26, 0x0a, 0x04,
|
|
|
|
0x75, 0x73, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x6d, 0x65, 0x6d,
|
|
|
|
0x6f, 0x73, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x32, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x52, 0x04,
|
|
|
|
0x75, 0x73, 0x65, 0x72, 0x22, 0x3b, 0x0a, 0x11, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x55, 0x73,
|
|
|
|
0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x26, 0x0a, 0x04, 0x75, 0x73, 0x65,
|
|
|
|
0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x6d, 0x65, 0x6d, 0x6f, 0x73, 0x2e,
|
|
|
|
0x61, 0x70, 0x69, 0x2e, 0x76, 0x32, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x52, 0x04, 0x75, 0x73, 0x65,
|
|
|
|
0x72, 0x22, 0x3c, 0x0a, 0x12, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x55, 0x73, 0x65, 0x72, 0x52,
|
|
|
|
0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x26, 0x0a, 0x04, 0x75, 0x73, 0x65, 0x72, 0x18,
|
|
|
|
0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x6d, 0x65, 0x6d, 0x6f, 0x73, 0x2e, 0x61, 0x70,
|
|
|
|
0x69, 0x2e, 0x76, 0x32, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x52, 0x04, 0x75, 0x73, 0x65, 0x72, 0x22,
|
|
|
|
0x7d, 0x0a, 0x11, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x71,
|
|
|
|
0x75, 0x65, 0x73, 0x74, 0x12, 0x2b, 0x0a, 0x04, 0x75, 0x73, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01,
|
|
|
|
0x28, 0x0b, 0x32, 0x12, 0x2e, 0x6d, 0x65, 0x6d, 0x6f, 0x73, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76,
|
|
|
|
0x32, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x04, 0x75, 0x73, 0x65,
|
|
|
|
0x72, 0x12, 0x3b, 0x0a, 0x0b, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x6d, 0x61, 0x73, 0x6b,
|
2023-12-23 08:35:54 +08:00
|
|
|
0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e,
|
|
|
|
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x4d, 0x61,
|
2023-12-23 19:23:39 +08:00
|
|
|
0x73, 0x6b, 0x52, 0x0a, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4d, 0x61, 0x73, 0x6b, 0x22, 0x3c,
|
|
|
|
0x0a, 0x12, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70,
|
|
|
|
0x6f, 0x6e, 0x73, 0x65, 0x12, 0x26, 0x0a, 0x04, 0x75, 0x73, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01,
|
|
|
|
0x28, 0x0b, 0x32, 0x12, 0x2e, 0x6d, 0x65, 0x6d, 0x6f, 0x73, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76,
|
|
|
|
0x32, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x52, 0x04, 0x75, 0x73, 0x65, 0x72, 0x22, 0x27, 0x0a, 0x11,
|
|
|
|
0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
|
|
|
|
0x74, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52,
|
|
|
|
0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x14, 0x0a, 0x12, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x55,
|
2024-03-04 11:21:48 +08:00
|
|
|
0x73, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0xac, 0x01, 0x0a, 0x0b,
|
2023-12-23 19:23:39 +08:00
|
|
|
0x55, 0x73, 0x65, 0x72, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x12, 0x12, 0x0a, 0x04, 0x6e,
|
|
|
|
0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12,
|
|
|
|
0x16, 0x0a, 0x06, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52,
|
|
|
|
0x06, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x65, 0x12, 0x1e, 0x0a, 0x0a, 0x61, 0x70, 0x70, 0x65, 0x61,
|
|
|
|
0x72, 0x61, 0x6e, 0x63, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x61, 0x70, 0x70,
|
|
|
|
0x65, 0x61, 0x72, 0x61, 0x6e, 0x63, 0x65, 0x12, 0x27, 0x0a, 0x0f, 0x6d, 0x65, 0x6d, 0x6f, 0x5f,
|
|
|
|
0x76, 0x69, 0x73, 0x69, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09,
|
|
|
|
0x52, 0x0e, 0x6d, 0x65, 0x6d, 0x6f, 0x56, 0x69, 0x73, 0x69, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79,
|
|
|
|
0x12, 0x28, 0x0a, 0x10, 0x74, 0x65, 0x6c, 0x65, 0x67, 0x72, 0x61, 0x6d, 0x5f, 0x75, 0x73, 0x65,
|
|
|
|
0x72, 0x5f, 0x69, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x74, 0x65, 0x6c, 0x65,
|
2024-03-04 11:21:48 +08:00
|
|
|
0x67, 0x72, 0x61, 0x6d, 0x55, 0x73, 0x65, 0x72, 0x49, 0x64, 0x22, 0x2b, 0x0a, 0x15, 0x47, 0x65,
|
|
|
|
0x74, 0x55, 0x73, 0x65, 0x72, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x52, 0x65, 0x71, 0x75,
|
|
|
|
0x65, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28,
|
|
|
|
0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x4d, 0x0a, 0x16, 0x47, 0x65, 0x74, 0x55, 0x73,
|
|
|
|
0x65, 0x72, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73,
|
|
|
|
0x65, 0x12, 0x33, 0x0a, 0x07, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x18, 0x01, 0x20, 0x01,
|
|
|
|
0x28, 0x0b, 0x32, 0x19, 0x2e, 0x6d, 0x65, 0x6d, 0x6f, 0x73, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76,
|
|
|
|
0x32, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x52, 0x07, 0x73,
|
|
|
|
0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x22, 0x91, 0x01, 0x0a, 0x18, 0x55, 0x70, 0x64, 0x61, 0x74,
|
|
|
|
0x65, 0x55, 0x73, 0x65, 0x72, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x52, 0x65, 0x71, 0x75,
|
|
|
|
0x65, 0x73, 0x74, 0x12, 0x38, 0x0a, 0x07, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x18, 0x01,
|
|
|
|
0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x6d, 0x65, 0x6d, 0x6f, 0x73, 0x2e, 0x61, 0x70, 0x69,
|
|
|
|
0x2e, 0x76, 0x32, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x42,
|
|
|
|
0x03, 0xe0, 0x41, 0x02, 0x52, 0x07, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x12, 0x3b, 0x0a,
|
|
|
|
0x0b, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x18, 0x02, 0x20, 0x01,
|
|
|
|
0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74,
|
|
|
|
0x6f, 0x62, 0x75, 0x66, 0x2e, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x4d, 0x61, 0x73, 0x6b, 0x52, 0x0a,
|
|
|
|
0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4d, 0x61, 0x73, 0x6b, 0x22, 0x50, 0x0a, 0x19, 0x55, 0x70,
|
2023-12-23 19:23:39 +08:00
|
|
|
0x64, 0x61, 0x74, 0x65, 0x55, 0x73, 0x65, 0x72, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x52,
|
2024-03-04 11:21:48 +08:00
|
|
|
0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x33, 0x0a, 0x07, 0x73, 0x65, 0x74, 0x74, 0x69,
|
|
|
|
0x6e, 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x6d, 0x65, 0x6d, 0x6f, 0x73,
|
|
|
|
0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x32, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x53, 0x65, 0x74, 0x74,
|
|
|
|
0x69, 0x6e, 0x67, 0x52, 0x07, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x22, 0xca, 0x01, 0x0a,
|
|
|
|
0x0f, 0x55, 0x73, 0x65, 0x72, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x54, 0x6f, 0x6b, 0x65, 0x6e,
|
|
|
|
0x12, 0x21, 0x0a, 0x0c, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e,
|
|
|
|
0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x54, 0x6f,
|
|
|
|
0x6b, 0x65, 0x6e, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69,
|
|
|
|
0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69,
|
|
|
|
0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x37, 0x0a, 0x09, 0x69, 0x73, 0x73, 0x75, 0x65, 0x64, 0x5f,
|
|
|
|
0x61, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
|
|
|
|
0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73,
|
|
|
|
0x74, 0x61, 0x6d, 0x70, 0x52, 0x08, 0x69, 0x73, 0x73, 0x75, 0x65, 0x64, 0x41, 0x74, 0x12, 0x39,
|
|
|
|
0x0a, 0x0a, 0x65, 0x78, 0x70, 0x69, 0x72, 0x65, 0x73, 0x5f, 0x61, 0x74, 0x18, 0x04, 0x20, 0x01,
|
|
|
|
0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74,
|
|
|
|
0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x09,
|
|
|
|
0x65, 0x78, 0x70, 0x69, 0x72, 0x65, 0x73, 0x41, 0x74, 0x22, 0x31, 0x0a, 0x1b, 0x4c, 0x69, 0x73,
|
|
|
|
0x74, 0x55, 0x73, 0x65, 0x72, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x54, 0x6f, 0x6b, 0x65, 0x6e,
|
|
|
|
0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65,
|
|
|
|
0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x62, 0x0a, 0x1c,
|
2024-02-07 21:45:11 +08:00
|
|
|
0x4c, 0x69, 0x73, 0x74, 0x55, 0x73, 0x65, 0x72, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x54, 0x6f,
|
2024-03-04 11:21:48 +08:00
|
|
|
0x6b, 0x65, 0x6e, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x42, 0x0a, 0x0d,
|
|
|
|
0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x73, 0x18, 0x01, 0x20,
|
|
|
|
0x03, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x6d, 0x65, 0x6d, 0x6f, 0x73, 0x2e, 0x61, 0x70, 0x69, 0x2e,
|
|
|
|
0x76, 0x32, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x54, 0x6f, 0x6b,
|
|
|
|
0x65, 0x6e, 0x52, 0x0c, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x73,
|
|
|
|
0x22, 0xa3, 0x01, 0x0a, 0x1c, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x55, 0x73, 0x65, 0x72, 0x41,
|
|
|
|
0x63, 0x63, 0x65, 0x73, 0x73, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
|
|
|
|
0x74, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52,
|
|
|
|
0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70,
|
|
|
|
0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63,
|
|
|
|
0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x3e, 0x0a, 0x0a, 0x65, 0x78, 0x70, 0x69, 0x72,
|
|
|
|
0x65, 0x73, 0x5f, 0x61, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f,
|
|
|
|
0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69,
|
|
|
|
0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x48, 0x00, 0x52, 0x09, 0x65, 0x78, 0x70, 0x69, 0x72,
|
|
|
|
0x65, 0x73, 0x41, 0x74, 0x88, 0x01, 0x01, 0x42, 0x0d, 0x0a, 0x0b, 0x5f, 0x65, 0x78, 0x70, 0x69,
|
|
|
|
0x72, 0x65, 0x73, 0x5f, 0x61, 0x74, 0x22, 0x61, 0x0a, 0x1d, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65,
|
2023-12-23 19:23:39 +08:00
|
|
|
0x55, 0x73, 0x65, 0x72, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x52,
|
2024-03-04 11:21:48 +08:00
|
|
|
0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x40, 0x0a, 0x0c, 0x61, 0x63, 0x63, 0x65, 0x73,
|
|
|
|
0x73, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e,
|
|
|
|
0x6d, 0x65, 0x6d, 0x6f, 0x73, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x32, 0x2e, 0x55, 0x73, 0x65,
|
|
|
|
0x72, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x52, 0x0b, 0x61, 0x63,
|
|
|
|
0x63, 0x65, 0x73, 0x73, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x55, 0x0a, 0x1c, 0x44, 0x65, 0x6c,
|
|
|
|
0x65, 0x74, 0x65, 0x55, 0x73, 0x65, 0x72, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x54, 0x6f, 0x6b,
|
|
|
|
0x65, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d,
|
|
|
|
0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x21, 0x0a,
|
|
|
|
0x0c, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20,
|
|
|
|
0x01, 0x28, 0x09, 0x52, 0x0b, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x54, 0x6f, 0x6b, 0x65, 0x6e,
|
|
|
|
0x22, 0x1f, 0x0a, 0x1d, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x55, 0x73, 0x65, 0x72, 0x41, 0x63,
|
|
|
|
0x63, 0x65, 0x73, 0x73, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73,
|
|
|
|
0x65, 0x32, 0xb5, 0x0b, 0x0a, 0x0b, 0x55, 0x73, 0x65, 0x72, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63,
|
|
|
|
0x65, 0x12, 0x63, 0x0a, 0x09, 0x4c, 0x69, 0x73, 0x74, 0x55, 0x73, 0x65, 0x72, 0x73, 0x12, 0x1e,
|
|
|
|
0x2e, 0x6d, 0x65, 0x6d, 0x6f, 0x73, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x32, 0x2e, 0x4c, 0x69,
|
|
|
|
0x73, 0x74, 0x55, 0x73, 0x65, 0x72, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1f,
|
|
|
|
0x2e, 0x6d, 0x65, 0x6d, 0x6f, 0x73, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x32, 0x2e, 0x4c, 0x69,
|
|
|
|
0x73, 0x74, 0x55, 0x73, 0x65, 0x72, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22,
|
|
|
|
0x15, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x0f, 0x12, 0x0d, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x32,
|
|
|
|
0x2f, 0x75, 0x73, 0x65, 0x72, 0x73, 0x12, 0x6d, 0x0a, 0x07, 0x47, 0x65, 0x74, 0x55, 0x73, 0x65,
|
|
|
|
0x72, 0x12, 0x1c, 0x2e, 0x6d, 0x65, 0x6d, 0x6f, 0x73, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x32,
|
|
|
|
0x2e, 0x47, 0x65, 0x74, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a,
|
|
|
|
0x1d, 0x2e, 0x6d, 0x65, 0x6d, 0x6f, 0x73, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x32, 0x2e, 0x47,
|
|
|
|
0x65, 0x74, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x25,
|
|
|
|
0xda, 0x41, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x18, 0x12, 0x16, 0x2f,
|
|
|
|
0x61, 0x70, 0x69, 0x2f, 0x76, 0x32, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x75, 0x73, 0x65,
|
|
|
|
0x72, 0x73, 0x2f, 0x2a, 0x7d, 0x12, 0x73, 0x0a, 0x0a, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x55,
|
|
|
|
0x73, 0x65, 0x72, 0x12, 0x1f, 0x2e, 0x6d, 0x65, 0x6d, 0x6f, 0x73, 0x2e, 0x61, 0x70, 0x69, 0x2e,
|
|
|
|
0x76, 0x32, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x71,
|
|
|
|
0x75, 0x65, 0x73, 0x74, 0x1a, 0x20, 0x2e, 0x6d, 0x65, 0x6d, 0x6f, 0x73, 0x2e, 0x61, 0x70, 0x69,
|
|
|
|
0x2e, 0x76, 0x32, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65,
|
|
|
|
0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x22, 0xda, 0x41, 0x04, 0x75, 0x73, 0x65, 0x72, 0x82,
|
|
|
|
0xd3, 0xe4, 0x93, 0x02, 0x15, 0x3a, 0x04, 0x75, 0x73, 0x65, 0x72, 0x22, 0x0d, 0x2f, 0x61, 0x70,
|
|
|
|
0x69, 0x2f, 0x76, 0x32, 0x2f, 0x75, 0x73, 0x65, 0x72, 0x73, 0x12, 0x8d, 0x01, 0x0a, 0x0a, 0x55,
|
|
|
|
0x70, 0x64, 0x61, 0x74, 0x65, 0x55, 0x73, 0x65, 0x72, 0x12, 0x1f, 0x2e, 0x6d, 0x65, 0x6d, 0x6f,
|
|
|
|
0x73, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x32, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x55,
|
|
|
|
0x73, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x20, 0x2e, 0x6d, 0x65, 0x6d,
|
|
|
|
0x6f, 0x73, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x32, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65,
|
|
|
|
0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x3c, 0xda, 0x41,
|
|
|
|
0x10, 0x75, 0x73, 0x65, 0x72, 0x2c, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x6d, 0x61, 0x73,
|
|
|
|
0x6b, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x23, 0x3a, 0x04, 0x75, 0x73, 0x65, 0x72, 0x32, 0x1b, 0x2f,
|
|
|
|
0x61, 0x70, 0x69, 0x2f, 0x76, 0x32, 0x2f, 0x7b, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x6e, 0x61, 0x6d,
|
|
|
|
0x65, 0x3d, 0x75, 0x73, 0x65, 0x72, 0x73, 0x2f, 0x2a, 0x7d, 0x12, 0x76, 0x0a, 0x0a, 0x44, 0x65,
|
|
|
|
0x6c, 0x65, 0x74, 0x65, 0x55, 0x73, 0x65, 0x72, 0x12, 0x1f, 0x2e, 0x6d, 0x65, 0x6d, 0x6f, 0x73,
|
|
|
|
0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x32, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x55, 0x73,
|
|
|
|
0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x20, 0x2e, 0x6d, 0x65, 0x6d, 0x6f,
|
|
|
|
0x73, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x32, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x55,
|
|
|
|
0x73, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x25, 0xda, 0x41, 0x04,
|
|
|
|
0x6e, 0x61, 0x6d, 0x65, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x18, 0x2a, 0x16, 0x2f, 0x61, 0x70, 0x69,
|
|
|
|
0x2f, 0x76, 0x32, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x75, 0x73, 0x65, 0x72, 0x73, 0x2f,
|
|
|
|
0x2a, 0x7d, 0x12, 0x8a, 0x01, 0x0a, 0x0e, 0x47, 0x65, 0x74, 0x55, 0x73, 0x65, 0x72, 0x53, 0x65,
|
|
|
|
0x74, 0x74, 0x69, 0x6e, 0x67, 0x12, 0x23, 0x2e, 0x6d, 0x65, 0x6d, 0x6f, 0x73, 0x2e, 0x61, 0x70,
|
|
|
|
0x69, 0x2e, 0x76, 0x32, 0x2e, 0x47, 0x65, 0x74, 0x55, 0x73, 0x65, 0x72, 0x53, 0x65, 0x74, 0x74,
|
|
|
|
0x69, 0x6e, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x24, 0x2e, 0x6d, 0x65, 0x6d,
|
|
|
|
0x6f, 0x73, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x32, 0x2e, 0x47, 0x65, 0x74, 0x55, 0x73, 0x65,
|
|
|
|
0x72, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65,
|
|
|
|
0x22, 0x2d, 0xda, 0x41, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x20, 0x12,
|
|
|
|
0x1e, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x32, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x75,
|
|
|
|
0x73, 0x65, 0x72, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x12,
|
|
|
|
0xb3, 0x01, 0x0a, 0x11, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x55, 0x73, 0x65, 0x72, 0x53, 0x65,
|
|
|
|
0x74, 0x74, 0x69, 0x6e, 0x67, 0x12, 0x26, 0x2e, 0x6d, 0x65, 0x6d, 0x6f, 0x73, 0x2e, 0x61, 0x70,
|
|
|
|
0x69, 0x2e, 0x76, 0x32, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x55, 0x73, 0x65, 0x72, 0x53,
|
|
|
|
0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x27, 0x2e,
|
2024-02-06 20:55:27 +08:00
|
|
|
0x6d, 0x65, 0x6d, 0x6f, 0x73, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x32, 0x2e, 0x55, 0x70, 0x64,
|
2024-03-04 11:21:48 +08:00
|
|
|
0x61, 0x74, 0x65, 0x55, 0x73, 0x65, 0x72, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x52, 0x65,
|
|
|
|
0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x4d, 0xda, 0x41, 0x13, 0x73, 0x65, 0x74, 0x74, 0x69,
|
|
|
|
0x6e, 0x67, 0x2c, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x82, 0xd3,
|
|
|
|
0xe4, 0x93, 0x02, 0x31, 0x3a, 0x07, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x32, 0x26, 0x2f,
|
|
|
|
0x61, 0x70, 0x69, 0x2f, 0x76, 0x32, 0x2f, 0x7b, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x2e,
|
|
|
|
0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x75, 0x73, 0x65, 0x72, 0x73, 0x2f, 0x2a, 0x2f, 0x73, 0x65, 0x74,
|
|
|
|
0x74, 0x69, 0x6e, 0x67, 0x7d, 0x12, 0xa2, 0x01, 0x0a, 0x14, 0x4c, 0x69, 0x73, 0x74, 0x55, 0x73,
|
|
|
|
0x65, 0x72, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x73, 0x12, 0x29,
|
|
|
|
0x2e, 0x6d, 0x65, 0x6d, 0x6f, 0x73, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x32, 0x2e, 0x4c, 0x69,
|
|
|
|
0x73, 0x74, 0x55, 0x73, 0x65, 0x72, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x54, 0x6f, 0x6b, 0x65,
|
|
|
|
0x6e, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2a, 0x2e, 0x6d, 0x65, 0x6d, 0x6f,
|
|
|
|
0x73, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x32, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x55, 0x73, 0x65,
|
|
|
|
0x72, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x73, 0x52, 0x65, 0x73,
|
|
|
|
0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x33, 0xda, 0x41, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x82, 0xd3,
|
|
|
|
0xe4, 0x93, 0x02, 0x26, 0x12, 0x24, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x32, 0x2f, 0x7b, 0x6e,
|
|
|
|
0x61, 0x6d, 0x65, 0x3d, 0x75, 0x73, 0x65, 0x72, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x61, 0x63, 0x63,
|
|
|
|
0x65, 0x73, 0x73, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x73, 0x12, 0xa8, 0x01, 0x0a, 0x15, 0x43,
|
|
|
|
0x72, 0x65, 0x61, 0x74, 0x65, 0x55, 0x73, 0x65, 0x72, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x54,
|
|
|
|
0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x2a, 0x2e, 0x6d, 0x65, 0x6d, 0x6f, 0x73, 0x2e, 0x61, 0x70, 0x69,
|
|
|
|
0x2e, 0x76, 0x32, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x55, 0x73, 0x65, 0x72, 0x41, 0x63,
|
|
|
|
0x63, 0x65, 0x73, 0x73, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
|
|
|
|
0x1a, 0x2b, 0x2e, 0x6d, 0x65, 0x6d, 0x6f, 0x73, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x32, 0x2e,
|
|
|
|
0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x55, 0x73, 0x65, 0x72, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73,
|
|
|
|
0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x36, 0xda,
|
|
|
|
0x41, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x29, 0x3a, 0x01, 0x2a, 0x22,
|
|
|
|
0x24, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x32, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x75,
|
|
|
|
0x73, 0x65, 0x72, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x74,
|
|
|
|
0x6f, 0x6b, 0x65, 0x6e, 0x73, 0x12, 0xc1, 0x01, 0x0a, 0x15, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65,
|
|
|
|
0x55, 0x73, 0x65, 0x72, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12,
|
|
|
|
0x2a, 0x2e, 0x6d, 0x65, 0x6d, 0x6f, 0x73, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x32, 0x2e, 0x44,
|
|
|
|
0x65, 0x6c, 0x65, 0x74, 0x65, 0x55, 0x73, 0x65, 0x72, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x54,
|
|
|
|
0x6f, 0x6b, 0x65, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2b, 0x2e, 0x6d, 0x65,
|
2023-12-23 08:35:54 +08:00
|
|
|
0x6d, 0x6f, 0x73, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x32, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74,
|
2024-03-04 11:21:48 +08:00
|
|
|
0x65, 0x55, 0x73, 0x65, 0x72, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x54, 0x6f, 0x6b, 0x65, 0x6e,
|
|
|
|
0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x4f, 0xda, 0x41, 0x11, 0x6e, 0x61, 0x6d,
|
|
|
|
0x65, 0x2c, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x82, 0xd3,
|
|
|
|
0xe4, 0x93, 0x02, 0x35, 0x2a, 0x33, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x32, 0x2f, 0x7b, 0x6e,
|
|
|
|
0x61, 0x6d, 0x65, 0x3d, 0x75, 0x73, 0x65, 0x72, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x61, 0x63, 0x63,
|
|
|
|
0x65, 0x73, 0x73, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x73, 0x2f, 0x7b, 0x61, 0x63, 0x63, 0x65,
|
|
|
|
0x73, 0x73, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x7d, 0x42, 0xa8, 0x01, 0x0a, 0x10, 0x63, 0x6f,
|
|
|
|
0x6d, 0x2e, 0x6d, 0x65, 0x6d, 0x6f, 0x73, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x32, 0x42, 0x10,
|
|
|
|
0x55, 0x73, 0x65, 0x72, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f,
|
|
|
|
0x50, 0x01, 0x5a, 0x30, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x75,
|
|
|
|
0x73, 0x65, 0x6d, 0x65, 0x6d, 0x6f, 0x73, 0x2f, 0x6d, 0x65, 0x6d, 0x6f, 0x73, 0x2f, 0x70, 0x72,
|
|
|
|
0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x32, 0x3b, 0x61,
|
|
|
|
0x70, 0x69, 0x76, 0x32, 0xa2, 0x02, 0x03, 0x4d, 0x41, 0x58, 0xaa, 0x02, 0x0c, 0x4d, 0x65, 0x6d,
|
|
|
|
0x6f, 0x73, 0x2e, 0x41, 0x70, 0x69, 0x2e, 0x56, 0x32, 0xca, 0x02, 0x0c, 0x4d, 0x65, 0x6d, 0x6f,
|
|
|
|
0x73, 0x5c, 0x41, 0x70, 0x69, 0x5c, 0x56, 0x32, 0xe2, 0x02, 0x18, 0x4d, 0x65, 0x6d, 0x6f, 0x73,
|
|
|
|
0x5c, 0x41, 0x70, 0x69, 0x5c, 0x56, 0x32, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64,
|
|
|
|
0x61, 0x74, 0x61, 0xea, 0x02, 0x0e, 0x4d, 0x65, 0x6d, 0x6f, 0x73, 0x3a, 0x3a, 0x41, 0x70, 0x69,
|
|
|
|
0x3a, 0x3a, 0x56, 0x32, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
2023-07-30 01:35:00 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
var (
|
|
|
|
file_api_v2_user_service_proto_rawDescOnce sync.Once
|
|
|
|
file_api_v2_user_service_proto_rawDescData = file_api_v2_user_service_proto_rawDesc
|
|
|
|
)
|
|
|
|
|
|
|
|
func file_api_v2_user_service_proto_rawDescGZIP() []byte {
|
|
|
|
file_api_v2_user_service_proto_rawDescOnce.Do(func() {
|
|
|
|
file_api_v2_user_service_proto_rawDescData = protoimpl.X.CompressGZIP(file_api_v2_user_service_proto_rawDescData)
|
|
|
|
})
|
|
|
|
return file_api_v2_user_service_proto_rawDescData
|
|
|
|
}
|
|
|
|
|
2023-09-14 19:18:54 +08:00
|
|
|
var file_api_v2_user_service_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
|
2023-12-23 08:35:54 +08:00
|
|
|
var file_api_v2_user_service_proto_msgTypes = make([]protoimpl.MessageInfo, 23)
|
2023-07-30 01:35:00 +08:00
|
|
|
var file_api_v2_user_service_proto_goTypes = []interface{}{
|
2023-09-14 19:18:54 +08:00
|
|
|
(User_Role)(0), // 0: memos.api.v2.User.Role
|
|
|
|
(*User)(nil), // 1: memos.api.v2.User
|
2023-12-23 08:35:54 +08:00
|
|
|
(*ListUsersRequest)(nil), // 2: memos.api.v2.ListUsersRequest
|
|
|
|
(*ListUsersResponse)(nil), // 3: memos.api.v2.ListUsersResponse
|
|
|
|
(*GetUserRequest)(nil), // 4: memos.api.v2.GetUserRequest
|
|
|
|
(*GetUserResponse)(nil), // 5: memos.api.v2.GetUserResponse
|
|
|
|
(*CreateUserRequest)(nil), // 6: memos.api.v2.CreateUserRequest
|
|
|
|
(*CreateUserResponse)(nil), // 7: memos.api.v2.CreateUserResponse
|
|
|
|
(*UpdateUserRequest)(nil), // 8: memos.api.v2.UpdateUserRequest
|
|
|
|
(*UpdateUserResponse)(nil), // 9: memos.api.v2.UpdateUserResponse
|
|
|
|
(*DeleteUserRequest)(nil), // 10: memos.api.v2.DeleteUserRequest
|
|
|
|
(*DeleteUserResponse)(nil), // 11: memos.api.v2.DeleteUserResponse
|
|
|
|
(*UserSetting)(nil), // 12: memos.api.v2.UserSetting
|
|
|
|
(*GetUserSettingRequest)(nil), // 13: memos.api.v2.GetUserSettingRequest
|
|
|
|
(*GetUserSettingResponse)(nil), // 14: memos.api.v2.GetUserSettingResponse
|
|
|
|
(*UpdateUserSettingRequest)(nil), // 15: memos.api.v2.UpdateUserSettingRequest
|
|
|
|
(*UpdateUserSettingResponse)(nil), // 16: memos.api.v2.UpdateUserSettingResponse
|
|
|
|
(*UserAccessToken)(nil), // 17: memos.api.v2.UserAccessToken
|
|
|
|
(*ListUserAccessTokensRequest)(nil), // 18: memos.api.v2.ListUserAccessTokensRequest
|
|
|
|
(*ListUserAccessTokensResponse)(nil), // 19: memos.api.v2.ListUserAccessTokensResponse
|
|
|
|
(*CreateUserAccessTokenRequest)(nil), // 20: memos.api.v2.CreateUserAccessTokenRequest
|
|
|
|
(*CreateUserAccessTokenResponse)(nil), // 21: memos.api.v2.CreateUserAccessTokenResponse
|
|
|
|
(*DeleteUserAccessTokenRequest)(nil), // 22: memos.api.v2.DeleteUserAccessTokenRequest
|
|
|
|
(*DeleteUserAccessTokenResponse)(nil), // 23: memos.api.v2.DeleteUserAccessTokenResponse
|
|
|
|
(RowStatus)(0), // 24: memos.api.v2.RowStatus
|
|
|
|
(*timestamppb.Timestamp)(nil), // 25: google.protobuf.Timestamp
|
|
|
|
(*fieldmaskpb.FieldMask)(nil), // 26: google.protobuf.FieldMask
|
2023-07-30 01:35:00 +08:00
|
|
|
}
|
|
|
|
var file_api_v2_user_service_proto_depIdxs = []int32{
|
2023-09-14 19:18:54 +08:00
|
|
|
0, // 0: memos.api.v2.User.role:type_name -> memos.api.v2.User.Role
|
2023-12-23 08:35:54 +08:00
|
|
|
24, // 1: memos.api.v2.User.row_status:type_name -> memos.api.v2.RowStatus
|
|
|
|
25, // 2: memos.api.v2.User.create_time:type_name -> google.protobuf.Timestamp
|
|
|
|
25, // 3: memos.api.v2.User.update_time:type_name -> google.protobuf.Timestamp
|
|
|
|
1, // 4: memos.api.v2.ListUsersResponse.users:type_name -> memos.api.v2.User
|
|
|
|
1, // 5: memos.api.v2.GetUserResponse.user:type_name -> memos.api.v2.User
|
|
|
|
1, // 6: memos.api.v2.CreateUserRequest.user:type_name -> memos.api.v2.User
|
|
|
|
1, // 7: memos.api.v2.CreateUserResponse.user:type_name -> memos.api.v2.User
|
|
|
|
1, // 8: memos.api.v2.UpdateUserRequest.user:type_name -> memos.api.v2.User
|
|
|
|
26, // 9: memos.api.v2.UpdateUserRequest.update_mask:type_name -> google.protobuf.FieldMask
|
|
|
|
1, // 10: memos.api.v2.UpdateUserResponse.user:type_name -> memos.api.v2.User
|
|
|
|
12, // 11: memos.api.v2.GetUserSettingResponse.setting:type_name -> memos.api.v2.UserSetting
|
|
|
|
12, // 12: memos.api.v2.UpdateUserSettingRequest.setting:type_name -> memos.api.v2.UserSetting
|
|
|
|
26, // 13: memos.api.v2.UpdateUserSettingRequest.update_mask:type_name -> google.protobuf.FieldMask
|
|
|
|
12, // 14: memos.api.v2.UpdateUserSettingResponse.setting:type_name -> memos.api.v2.UserSetting
|
|
|
|
25, // 15: memos.api.v2.UserAccessToken.issued_at:type_name -> google.protobuf.Timestamp
|
|
|
|
25, // 16: memos.api.v2.UserAccessToken.expires_at:type_name -> google.protobuf.Timestamp
|
|
|
|
17, // 17: memos.api.v2.ListUserAccessTokensResponse.access_tokens:type_name -> memos.api.v2.UserAccessToken
|
|
|
|
25, // 18: memos.api.v2.CreateUserAccessTokenRequest.expires_at:type_name -> google.protobuf.Timestamp
|
|
|
|
17, // 19: memos.api.v2.CreateUserAccessTokenResponse.access_token:type_name -> memos.api.v2.UserAccessToken
|
|
|
|
2, // 20: memos.api.v2.UserService.ListUsers:input_type -> memos.api.v2.ListUsersRequest
|
|
|
|
4, // 21: memos.api.v2.UserService.GetUser:input_type -> memos.api.v2.GetUserRequest
|
|
|
|
6, // 22: memos.api.v2.UserService.CreateUser:input_type -> memos.api.v2.CreateUserRequest
|
|
|
|
8, // 23: memos.api.v2.UserService.UpdateUser:input_type -> memos.api.v2.UpdateUserRequest
|
|
|
|
10, // 24: memos.api.v2.UserService.DeleteUser:input_type -> memos.api.v2.DeleteUserRequest
|
|
|
|
13, // 25: memos.api.v2.UserService.GetUserSetting:input_type -> memos.api.v2.GetUserSettingRequest
|
|
|
|
15, // 26: memos.api.v2.UserService.UpdateUserSetting:input_type -> memos.api.v2.UpdateUserSettingRequest
|
|
|
|
18, // 27: memos.api.v2.UserService.ListUserAccessTokens:input_type -> memos.api.v2.ListUserAccessTokensRequest
|
|
|
|
20, // 28: memos.api.v2.UserService.CreateUserAccessToken:input_type -> memos.api.v2.CreateUserAccessTokenRequest
|
|
|
|
22, // 29: memos.api.v2.UserService.DeleteUserAccessToken:input_type -> memos.api.v2.DeleteUserAccessTokenRequest
|
|
|
|
3, // 30: memos.api.v2.UserService.ListUsers:output_type -> memos.api.v2.ListUsersResponse
|
|
|
|
5, // 31: memos.api.v2.UserService.GetUser:output_type -> memos.api.v2.GetUserResponse
|
|
|
|
7, // 32: memos.api.v2.UserService.CreateUser:output_type -> memos.api.v2.CreateUserResponse
|
|
|
|
9, // 33: memos.api.v2.UserService.UpdateUser:output_type -> memos.api.v2.UpdateUserResponse
|
|
|
|
11, // 34: memos.api.v2.UserService.DeleteUser:output_type -> memos.api.v2.DeleteUserResponse
|
|
|
|
14, // 35: memos.api.v2.UserService.GetUserSetting:output_type -> memos.api.v2.GetUserSettingResponse
|
|
|
|
16, // 36: memos.api.v2.UserService.UpdateUserSetting:output_type -> memos.api.v2.UpdateUserSettingResponse
|
|
|
|
19, // 37: memos.api.v2.UserService.ListUserAccessTokens:output_type -> memos.api.v2.ListUserAccessTokensResponse
|
|
|
|
21, // 38: memos.api.v2.UserService.CreateUserAccessToken:output_type -> memos.api.v2.CreateUserAccessTokenResponse
|
|
|
|
23, // 39: memos.api.v2.UserService.DeleteUserAccessToken:output_type -> memos.api.v2.DeleteUserAccessTokenResponse
|
|
|
|
30, // [30:40] is the sub-list for method output_type
|
|
|
|
20, // [20:30] is the sub-list for method input_type
|
|
|
|
20, // [20:20] is the sub-list for extension type_name
|
|
|
|
20, // [20:20] is the sub-list for extension extendee
|
|
|
|
0, // [0:20] is the sub-list for field type_name
|
2023-07-30 01:35:00 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
func init() { file_api_v2_user_service_proto_init() }
|
|
|
|
func file_api_v2_user_service_proto_init() {
|
|
|
|
if File_api_v2_user_service_proto != nil {
|
|
|
|
return
|
|
|
|
}
|
|
|
|
file_api_v2_common_proto_init()
|
|
|
|
if !protoimpl.UnsafeEnabled {
|
|
|
|
file_api_v2_user_service_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
|
|
|
|
switch v := v.(*User); i {
|
|
|
|
case 0:
|
|
|
|
return &v.state
|
|
|
|
case 1:
|
|
|
|
return &v.sizeCache
|
|
|
|
case 2:
|
|
|
|
return &v.unknownFields
|
|
|
|
default:
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
}
|
|
|
|
file_api_v2_user_service_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
|
2023-12-23 08:35:54 +08:00
|
|
|
switch v := v.(*ListUsersRequest); i {
|
2023-07-30 01:35:00 +08:00
|
|
|
case 0:
|
|
|
|
return &v.state
|
|
|
|
case 1:
|
|
|
|
return &v.sizeCache
|
|
|
|
case 2:
|
|
|
|
return &v.unknownFields
|
|
|
|
default:
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
}
|
|
|
|
file_api_v2_user_service_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
|
2023-12-23 08:35:54 +08:00
|
|
|
switch v := v.(*ListUsersResponse); i {
|
2023-07-30 01:35:00 +08:00
|
|
|
case 0:
|
|
|
|
return &v.state
|
|
|
|
case 1:
|
|
|
|
return &v.sizeCache
|
|
|
|
case 2:
|
|
|
|
return &v.unknownFields
|
|
|
|
default:
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
}
|
2023-07-30 09:53:24 +08:00
|
|
|
file_api_v2_user_service_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
|
2023-12-23 08:35:54 +08:00
|
|
|
switch v := v.(*GetUserRequest); i {
|
2023-07-30 09:53:24 +08:00
|
|
|
case 0:
|
|
|
|
return &v.state
|
|
|
|
case 1:
|
|
|
|
return &v.sizeCache
|
|
|
|
case 2:
|
|
|
|
return &v.unknownFields
|
|
|
|
default:
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
}
|
|
|
|
file_api_v2_user_service_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
|
2023-12-23 08:35:54 +08:00
|
|
|
switch v := v.(*GetUserResponse); i {
|
2023-09-10 18:56:24 +08:00
|
|
|
case 0:
|
|
|
|
return &v.state
|
|
|
|
case 1:
|
|
|
|
return &v.sizeCache
|
|
|
|
case 2:
|
|
|
|
return &v.unknownFields
|
|
|
|
default:
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
}
|
|
|
|
file_api_v2_user_service_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
|
2023-12-23 08:35:54 +08:00
|
|
|
switch v := v.(*CreateUserRequest); i {
|
2023-09-10 18:56:24 +08:00
|
|
|
case 0:
|
|
|
|
return &v.state
|
|
|
|
case 1:
|
|
|
|
return &v.sizeCache
|
|
|
|
case 2:
|
|
|
|
return &v.unknownFields
|
|
|
|
default:
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
}
|
|
|
|
file_api_v2_user_service_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
|
2023-12-23 08:35:54 +08:00
|
|
|
switch v := v.(*CreateUserResponse); i {
|
2023-09-14 19:18:54 +08:00
|
|
|
case 0:
|
|
|
|
return &v.state
|
|
|
|
case 1:
|
|
|
|
return &v.sizeCache
|
|
|
|
case 2:
|
|
|
|
return &v.unknownFields
|
|
|
|
default:
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
}
|
|
|
|
file_api_v2_user_service_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
|
2023-12-23 08:35:54 +08:00
|
|
|
switch v := v.(*UpdateUserRequest); i {
|
2023-09-14 19:18:54 +08:00
|
|
|
case 0:
|
|
|
|
return &v.state
|
|
|
|
case 1:
|
|
|
|
return &v.sizeCache
|
|
|
|
case 2:
|
|
|
|
return &v.unknownFields
|
|
|
|
default:
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
}
|
|
|
|
file_api_v2_user_service_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} {
|
2023-12-23 08:35:54 +08:00
|
|
|
switch v := v.(*UpdateUserResponse); i {
|
2023-09-14 19:18:54 +08:00
|
|
|
case 0:
|
|
|
|
return &v.state
|
|
|
|
case 1:
|
|
|
|
return &v.sizeCache
|
|
|
|
case 2:
|
|
|
|
return &v.unknownFields
|
|
|
|
default:
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
}
|
|
|
|
file_api_v2_user_service_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} {
|
2023-12-23 08:35:54 +08:00
|
|
|
switch v := v.(*DeleteUserRequest); i {
|
2023-09-14 19:18:54 +08:00
|
|
|
case 0:
|
|
|
|
return &v.state
|
|
|
|
case 1:
|
|
|
|
return &v.sizeCache
|
|
|
|
case 2:
|
|
|
|
return &v.unknownFields
|
|
|
|
default:
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
}
|
|
|
|
file_api_v2_user_service_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} {
|
2023-12-23 08:35:54 +08:00
|
|
|
switch v := v.(*DeleteUserResponse); i {
|
2023-09-14 19:18:54 +08:00
|
|
|
case 0:
|
|
|
|
return &v.state
|
|
|
|
case 1:
|
|
|
|
return &v.sizeCache
|
|
|
|
case 2:
|
|
|
|
return &v.unknownFields
|
|
|
|
default:
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
}
|
|
|
|
file_api_v2_user_service_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} {
|
2023-12-23 08:35:54 +08:00
|
|
|
switch v := v.(*UserSetting); i {
|
2023-10-21 12:19:06 +08:00
|
|
|
case 0:
|
|
|
|
return &v.state
|
|
|
|
case 1:
|
|
|
|
return &v.sizeCache
|
|
|
|
case 2:
|
|
|
|
return &v.unknownFields
|
|
|
|
default:
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
}
|
|
|
|
file_api_v2_user_service_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} {
|
2023-12-23 08:35:54 +08:00
|
|
|
switch v := v.(*GetUserSettingRequest); i {
|
2023-10-21 12:19:06 +08:00
|
|
|
case 0:
|
|
|
|
return &v.state
|
|
|
|
case 1:
|
|
|
|
return &v.sizeCache
|
|
|
|
case 2:
|
|
|
|
return &v.unknownFields
|
|
|
|
default:
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
}
|
|
|
|
file_api_v2_user_service_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} {
|
2023-12-23 08:35:54 +08:00
|
|
|
switch v := v.(*GetUserSettingResponse); i {
|
2023-11-22 22:52:19 +08:00
|
|
|
case 0:
|
|
|
|
return &v.state
|
|
|
|
case 1:
|
|
|
|
return &v.sizeCache
|
|
|
|
case 2:
|
|
|
|
return &v.unknownFields
|
|
|
|
default:
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
}
|
|
|
|
file_api_v2_user_service_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} {
|
2023-12-23 08:35:54 +08:00
|
|
|
switch v := v.(*UpdateUserSettingRequest); i {
|
2023-11-22 22:52:19 +08:00
|
|
|
case 0:
|
|
|
|
return &v.state
|
|
|
|
case 1:
|
|
|
|
return &v.sizeCache
|
|
|
|
case 2:
|
|
|
|
return &v.unknownFields
|
|
|
|
default:
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
}
|
|
|
|
file_api_v2_user_service_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} {
|
2023-12-23 08:35:54 +08:00
|
|
|
switch v := v.(*UpdateUserSettingResponse); i {
|
2023-11-30 23:08:54 +08:00
|
|
|
case 0:
|
|
|
|
return &v.state
|
|
|
|
case 1:
|
|
|
|
return &v.sizeCache
|
|
|
|
case 2:
|
|
|
|
return &v.unknownFields
|
|
|
|
default:
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
}
|
|
|
|
file_api_v2_user_service_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} {
|
2023-12-23 08:35:54 +08:00
|
|
|
switch v := v.(*UserAccessToken); i {
|
2023-11-30 23:08:54 +08:00
|
|
|
case 0:
|
|
|
|
return &v.state
|
|
|
|
case 1:
|
|
|
|
return &v.sizeCache
|
|
|
|
case 2:
|
|
|
|
return &v.unknownFields
|
|
|
|
default:
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
}
|
|
|
|
file_api_v2_user_service_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} {
|
2023-12-23 08:35:54 +08:00
|
|
|
switch v := v.(*ListUserAccessTokensRequest); i {
|
2023-11-30 23:08:54 +08:00
|
|
|
case 0:
|
|
|
|
return &v.state
|
|
|
|
case 1:
|
|
|
|
return &v.sizeCache
|
|
|
|
case 2:
|
|
|
|
return &v.unknownFields
|
|
|
|
default:
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
}
|
|
|
|
file_api_v2_user_service_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} {
|
2023-12-23 08:35:54 +08:00
|
|
|
switch v := v.(*ListUserAccessTokensResponse); i {
|
2023-11-30 23:08:54 +08:00
|
|
|
case 0:
|
|
|
|
return &v.state
|
|
|
|
case 1:
|
|
|
|
return &v.sizeCache
|
|
|
|
case 2:
|
|
|
|
return &v.unknownFields
|
|
|
|
default:
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
}
|
|
|
|
file_api_v2_user_service_proto_msgTypes[19].Exporter = func(v interface{}, i int) interface{} {
|
2023-12-23 08:35:54 +08:00
|
|
|
switch v := v.(*CreateUserAccessTokenRequest); i {
|
2023-11-30 23:08:54 +08:00
|
|
|
case 0:
|
|
|
|
return &v.state
|
|
|
|
case 1:
|
|
|
|
return &v.sizeCache
|
|
|
|
case 2:
|
|
|
|
return &v.unknownFields
|
|
|
|
default:
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
}
|
|
|
|
file_api_v2_user_service_proto_msgTypes[20].Exporter = func(v interface{}, i int) interface{} {
|
2023-12-23 08:35:54 +08:00
|
|
|
switch v := v.(*CreateUserAccessTokenResponse); i {
|
|
|
|
case 0:
|
|
|
|
return &v.state
|
|
|
|
case 1:
|
|
|
|
return &v.sizeCache
|
|
|
|
case 2:
|
|
|
|
return &v.unknownFields
|
|
|
|
default:
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
}
|
|
|
|
file_api_v2_user_service_proto_msgTypes[21].Exporter = func(v interface{}, i int) interface{} {
|
|
|
|
switch v := v.(*DeleteUserAccessTokenRequest); i {
|
|
|
|
case 0:
|
|
|
|
return &v.state
|
|
|
|
case 1:
|
|
|
|
return &v.sizeCache
|
|
|
|
case 2:
|
|
|
|
return &v.unknownFields
|
|
|
|
default:
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
}
|
|
|
|
file_api_v2_user_service_proto_msgTypes[22].Exporter = func(v interface{}, i int) interface{} {
|
2023-11-06 08:05:07 +08:00
|
|
|
switch v := v.(*DeleteUserAccessTokenResponse); i {
|
2023-07-30 09:53:24 +08:00
|
|
|
case 0:
|
|
|
|
return &v.state
|
|
|
|
case 1:
|
|
|
|
return &v.sizeCache
|
|
|
|
case 2:
|
|
|
|
return &v.unknownFields
|
|
|
|
default:
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
}
|
2023-07-30 01:35:00 +08:00
|
|
|
}
|
2023-12-23 08:35:54 +08:00
|
|
|
file_api_v2_user_service_proto_msgTypes[19].OneofWrappers = []interface{}{}
|
2023-07-30 01:35:00 +08:00
|
|
|
type x struct{}
|
|
|
|
out := protoimpl.TypeBuilder{
|
|
|
|
File: protoimpl.DescBuilder{
|
|
|
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
|
|
|
RawDescriptor: file_api_v2_user_service_proto_rawDesc,
|
2023-09-14 19:18:54 +08:00
|
|
|
NumEnums: 1,
|
2023-12-23 08:35:54 +08:00
|
|
|
NumMessages: 23,
|
2023-07-30 01:35:00 +08:00
|
|
|
NumExtensions: 0,
|
|
|
|
NumServices: 1,
|
|
|
|
},
|
|
|
|
GoTypes: file_api_v2_user_service_proto_goTypes,
|
|
|
|
DependencyIndexes: file_api_v2_user_service_proto_depIdxs,
|
|
|
|
EnumInfos: file_api_v2_user_service_proto_enumTypes,
|
|
|
|
MessageInfos: file_api_v2_user_service_proto_msgTypes,
|
|
|
|
}.Build()
|
|
|
|
File_api_v2_user_service_proto = out.File
|
|
|
|
file_api_v2_user_service_proto_rawDesc = nil
|
|
|
|
file_api_v2_user_service_proto_goTypes = nil
|
|
|
|
file_api_v2_user_service_proto_depIdxs = nil
|
|
|
|
}
|