Compare commits

..

9 Commits

Author SHA1 Message Date
daniel.w 4a87e93fd2 add checkout verify code 2024-08-26 15:00:29 +08:00
daniel.w 3899ef10d8 update notification 2024-08-26 09:48:06 +08:00
daniel.w adfe8a5fad update notification 2024-08-26 09:46:17 +08:00
daniel.w 8364957f08 add member checkout pwd pb 2024-08-26 06:29:08 +08:00
daniel.w de3f8985b5 fix proto name 2024-08-25 22:16:51 +08:00
daniel.w f77db960e2 init member api 2024-08-25 22:03:49 +08:00
daniel.w b4439a6c15 init member api 2024-08-25 22:01:18 +08:00
王性驊 c6e12fa33d 更新 pkg/notification/service_grpc.pb.go 2024-08-25 13:57:30 +00:00
王性驊 cf3b0d2fe6 更新 pkg/member/service_grpc.pb.go 2024-08-25 13:57:05 +00:00
6 changed files with 868 additions and 765 deletions

File diff suppressed because it is too large Load Diff

View File

@ -2,7 +2,7 @@
// versions: // versions:
// - protoc-gen-go-grpc v1.4.0 // - protoc-gen-go-grpc v1.4.0
// - protoc v3.19.4 // - protoc v3.19.4
// source: generate/protobuf/service.proto // source: generate/protobuf/member.proto
package member package member
@ -19,19 +19,21 @@ import (
const _ = grpc.SupportPackageIsVersion8 const _ = grpc.SupportPackageIsVersion8
const ( const (
Account_CreateUserAccount_FullMethodName = "/member.Account/CreateUserAccount" Account_CreateUserAccount_FullMethodName = "/member.Account/CreateUserAccount"
Account_GetUserAccountInfo_FullMethodName = "/member.Account/GetUserAccountInfo" Account_GetUserAccountInfo_FullMethodName = "/member.Account/GetUserAccountInfo"
Account_UpdateUserToken_FullMethodName = "/member.Account/UpdateUserToken" Account_UpdateUserToken_FullMethodName = "/member.Account/UpdateUserToken"
Account_GetUidByAccount_FullMethodName = "/member.Account/GetUidByAccount" Account_GetUidByAccount_FullMethodName = "/member.Account/GetUidByAccount"
Account_BindAccount_FullMethodName = "/member.Account/BindAccount" Account_BindAccount_FullMethodName = "/member.Account/BindAccount"
Account_BindUserInfo_FullMethodName = "/member.Account/BindUserInfo" Account_BindUserInfo_FullMethodName = "/member.Account/BindUserInfo"
Account_UpdateUserInfo_FullMethodName = "/member.Account/UpdateUserInfo" Account_UpdateUserInfo_FullMethodName = "/member.Account/UpdateUserInfo"
Account_UpdateStatus_FullMethodName = "/member.Account/UpdateStatus" Account_UpdateStatus_FullMethodName = "/member.Account/UpdateStatus"
Account_GetUserInfo_FullMethodName = "/member.Account/GetUserInfo" Account_GetUserInfo_FullMethodName = "/member.Account/GetUserInfo"
Account_ListMember_FullMethodName = "/member.Account/ListMember" Account_ListMember_FullMethodName = "/member.Account/ListMember"
Account_GenerateRefreshCode_FullMethodName = "/member.Account/GenerateRefreshCode" Account_GenerateRefreshCode_FullMethodName = "/member.Account/GenerateRefreshCode"
Account_VerifyRefreshCode_FullMethodName = "/member.Account/VerifyRefreshCode" Account_VerifyRefreshCode_FullMethodName = "/member.Account/VerifyRefreshCode"
Account_VerifyGoogleAuthResult_FullMethodName = "/member.Account/VerifyGoogleAuthResult" Account_CheckRefreshCode_FullMethodName = "/member.Account/CheckRefreshCode"
Account_VerifyGoogleAuthResult_FullMethodName = "/member.Account/VerifyGoogleAuthResult"
Account_VerifyPlatformAuthResult_FullMethodName = "/member.Account/VerifyPlatformAuthResult"
) )
// AccountClient is the client API for Account service. // AccountClient is the client API for Account service.
@ -62,8 +64,12 @@ type AccountClient interface {
GenerateRefreshCode(ctx context.Context, in *GenerateRefreshCodeReq, opts ...grpc.CallOption) (*GenerateRefreshCodeResp, error) GenerateRefreshCode(ctx context.Context, in *GenerateRefreshCodeReq, opts ...grpc.CallOption) (*GenerateRefreshCodeResp, error)
// VerifyRefreshCode 驗證忘記密碼 token // VerifyRefreshCode 驗證忘記密碼 token
VerifyRefreshCode(ctx context.Context, in *VerifyRefreshCodeReq, opts ...grpc.CallOption) (*OKResp, error) VerifyRefreshCode(ctx context.Context, in *VerifyRefreshCodeReq, opts ...grpc.CallOption) (*OKResp, error)
// CheckRefreshCode 驗證忘記密碼 token 不刪除,只確認)
CheckRefreshCode(ctx context.Context, in *VerifyRefreshCodeReq, opts ...grpc.CallOption) (*OKResp, error)
// VerifyGoogleAuthResult 驗證 google 登入是否有效 // VerifyGoogleAuthResult 驗證 google 登入是否有效
VerifyGoogleAuthResult(ctx context.Context, in *VerifyAuthResultReq, opts ...grpc.CallOption) (*VerifyAuthResultResp, error) VerifyGoogleAuthResult(ctx context.Context, in *VerifyAuthResultReq, opts ...grpc.CallOption) (*VerifyAuthResultResp, error)
// VerifyPlatformAuthResult 驗證 google 登入是否有效
VerifyPlatformAuthResult(ctx context.Context, in *VerifyAuthResultReq, opts ...grpc.CallOption) (*VerifyAuthResultResp, error)
} }
type accountClient struct { type accountClient struct {
@ -194,6 +200,16 @@ func (c *accountClient) VerifyRefreshCode(ctx context.Context, in *VerifyRefresh
return out, nil return out, nil
} }
func (c *accountClient) CheckRefreshCode(ctx context.Context, in *VerifyRefreshCodeReq, opts ...grpc.CallOption) (*OKResp, error) {
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
out := new(OKResp)
err := c.cc.Invoke(ctx, Account_CheckRefreshCode_FullMethodName, in, out, cOpts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *accountClient) VerifyGoogleAuthResult(ctx context.Context, in *VerifyAuthResultReq, opts ...grpc.CallOption) (*VerifyAuthResultResp, error) { func (c *accountClient) VerifyGoogleAuthResult(ctx context.Context, in *VerifyAuthResultReq, opts ...grpc.CallOption) (*VerifyAuthResultResp, error) {
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
out := new(VerifyAuthResultResp) out := new(VerifyAuthResultResp)
@ -204,6 +220,16 @@ func (c *accountClient) VerifyGoogleAuthResult(ctx context.Context, in *VerifyAu
return out, nil return out, nil
} }
func (c *accountClient) VerifyPlatformAuthResult(ctx context.Context, in *VerifyAuthResultReq, opts ...grpc.CallOption) (*VerifyAuthResultResp, error) {
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
out := new(VerifyAuthResultResp)
err := c.cc.Invoke(ctx, Account_VerifyPlatformAuthResult_FullMethodName, in, out, cOpts...)
if err != nil {
return nil, err
}
return out, nil
}
// AccountServer is the server API for Account service. // AccountServer is the server API for Account service.
// All implementations must embed UnimplementedAccountServer // All implementations must embed UnimplementedAccountServer
// for forward compatibility // for forward compatibility
@ -232,8 +258,12 @@ type AccountServer interface {
GenerateRefreshCode(context.Context, *GenerateRefreshCodeReq) (*GenerateRefreshCodeResp, error) GenerateRefreshCode(context.Context, *GenerateRefreshCodeReq) (*GenerateRefreshCodeResp, error)
// VerifyRefreshCode 驗證忘記密碼 token // VerifyRefreshCode 驗證忘記密碼 token
VerifyRefreshCode(context.Context, *VerifyRefreshCodeReq) (*OKResp, error) VerifyRefreshCode(context.Context, *VerifyRefreshCodeReq) (*OKResp, error)
// CheckRefreshCode 驗證忘記密碼 token 不刪除,只確認)
CheckRefreshCode(context.Context, *VerifyRefreshCodeReq) (*OKResp, error)
// VerifyGoogleAuthResult 驗證 google 登入是否有效 // VerifyGoogleAuthResult 驗證 google 登入是否有效
VerifyGoogleAuthResult(context.Context, *VerifyAuthResultReq) (*VerifyAuthResultResp, error) VerifyGoogleAuthResult(context.Context, *VerifyAuthResultReq) (*VerifyAuthResultResp, error)
// VerifyPlatformAuthResult 驗證 google 登入是否有效
VerifyPlatformAuthResult(context.Context, *VerifyAuthResultReq) (*VerifyAuthResultResp, error)
mustEmbedUnimplementedAccountServer() mustEmbedUnimplementedAccountServer()
} }
@ -277,9 +307,15 @@ func (UnimplementedAccountServer) GenerateRefreshCode(context.Context, *Generate
func (UnimplementedAccountServer) VerifyRefreshCode(context.Context, *VerifyRefreshCodeReq) (*OKResp, error) { func (UnimplementedAccountServer) VerifyRefreshCode(context.Context, *VerifyRefreshCodeReq) (*OKResp, error) {
return nil, status.Errorf(codes.Unimplemented, "method VerifyRefreshCode not implemented") return nil, status.Errorf(codes.Unimplemented, "method VerifyRefreshCode not implemented")
} }
func (UnimplementedAccountServer) CheckRefreshCode(context.Context, *VerifyRefreshCodeReq) (*OKResp, error) {
return nil, status.Errorf(codes.Unimplemented, "method CheckRefreshCode not implemented")
}
func (UnimplementedAccountServer) VerifyGoogleAuthResult(context.Context, *VerifyAuthResultReq) (*VerifyAuthResultResp, error) { func (UnimplementedAccountServer) VerifyGoogleAuthResult(context.Context, *VerifyAuthResultReq) (*VerifyAuthResultResp, error) {
return nil, status.Errorf(codes.Unimplemented, "method VerifyGoogleAuthResult not implemented") return nil, status.Errorf(codes.Unimplemented, "method VerifyGoogleAuthResult not implemented")
} }
func (UnimplementedAccountServer) VerifyPlatformAuthResult(context.Context, *VerifyAuthResultReq) (*VerifyAuthResultResp, error) {
return nil, status.Errorf(codes.Unimplemented, "method VerifyPlatformAuthResult not implemented")
}
func (UnimplementedAccountServer) mustEmbedUnimplementedAccountServer() {} func (UnimplementedAccountServer) mustEmbedUnimplementedAccountServer() {}
// UnsafeAccountServer may be embedded to opt out of forward compatibility for this service. // UnsafeAccountServer may be embedded to opt out of forward compatibility for this service.
@ -509,6 +545,24 @@ func _Account_VerifyRefreshCode_Handler(srv interface{}, ctx context.Context, de
return interceptor(ctx, in, info, handler) return interceptor(ctx, in, info, handler)
} }
func _Account_CheckRefreshCode_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(VerifyRefreshCodeReq)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(AccountServer).CheckRefreshCode(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: Account_CheckRefreshCode_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(AccountServer).CheckRefreshCode(ctx, req.(*VerifyRefreshCodeReq))
}
return interceptor(ctx, in, info, handler)
}
func _Account_VerifyGoogleAuthResult_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { func _Account_VerifyGoogleAuthResult_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(VerifyAuthResultReq) in := new(VerifyAuthResultReq)
if err := dec(in); err != nil { if err := dec(in); err != nil {
@ -527,6 +581,24 @@ func _Account_VerifyGoogleAuthResult_Handler(srv interface{}, ctx context.Contex
return interceptor(ctx, in, info, handler) return interceptor(ctx, in, info, handler)
} }
func _Account_VerifyPlatformAuthResult_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(VerifyAuthResultReq)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(AccountServer).VerifyPlatformAuthResult(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: Account_VerifyPlatformAuthResult_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(AccountServer).VerifyPlatformAuthResult(ctx, req.(*VerifyAuthResultReq))
}
return interceptor(ctx, in, info, handler)
}
// Account_ServiceDesc is the grpc.ServiceDesc for Account service. // Account_ServiceDesc is the grpc.ServiceDesc for Account service.
// It's only intended for direct use with grpc.RegisterService, // It's only intended for direct use with grpc.RegisterService,
// and not to be introspected or modified (even as a copy) // and not to be introspected or modified (even as a copy)
@ -582,11 +654,19 @@ var Account_ServiceDesc = grpc.ServiceDesc{
MethodName: "VerifyRefreshCode", MethodName: "VerifyRefreshCode",
Handler: _Account_VerifyRefreshCode_Handler, Handler: _Account_VerifyRefreshCode_Handler,
}, },
{
MethodName: "CheckRefreshCode",
Handler: _Account_CheckRefreshCode_Handler,
},
{ {
MethodName: "VerifyGoogleAuthResult", MethodName: "VerifyGoogleAuthResult",
Handler: _Account_VerifyGoogleAuthResult_Handler, Handler: _Account_VerifyGoogleAuthResult_Handler,
}, },
{
MethodName: "VerifyPlatformAuthResult",
Handler: _Account_VerifyPlatformAuthResult_Handler,
},
}, },
Streams: []grpc.StreamDesc{}, Streams: []grpc.StreamDesc{},
Metadata: "generate/protobuf/service.proto", Metadata: "generate/protobuf/member.proto",
} }

View File

@ -2,7 +2,7 @@
// versions: // versions:
// protoc-gen-go v1.34.2 // protoc-gen-go v1.34.2
// protoc v3.19.4 // protoc v3.19.4
// source: generate/protobuf/service.proto // source: generate/protobuf/notification.proto
package notification package notification
@ -30,7 +30,7 @@ type OKResp struct {
func (x *OKResp) Reset() { func (x *OKResp) Reset() {
*x = OKResp{} *x = OKResp{}
if protoimpl.UnsafeEnabled { if protoimpl.UnsafeEnabled {
mi := &file_generate_protobuf_service_proto_msgTypes[0] mi := &file_generate_protobuf_notification_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi) ms.StoreMessageInfo(mi)
} }
@ -43,7 +43,7 @@ func (x *OKResp) String() string {
func (*OKResp) ProtoMessage() {} func (*OKResp) ProtoMessage() {}
func (x *OKResp) ProtoReflect() protoreflect.Message { func (x *OKResp) ProtoReflect() protoreflect.Message {
mi := &file_generate_protobuf_service_proto_msgTypes[0] mi := &file_generate_protobuf_notification_proto_msgTypes[0]
if protoimpl.UnsafeEnabled && x != nil { if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil { if ms.LoadMessageInfo() == nil {
@ -56,7 +56,7 @@ func (x *OKResp) ProtoReflect() protoreflect.Message {
// Deprecated: Use OKResp.ProtoReflect.Descriptor instead. // Deprecated: Use OKResp.ProtoReflect.Descriptor instead.
func (*OKResp) Descriptor() ([]byte, []int) { func (*OKResp) Descriptor() ([]byte, []int) {
return file_generate_protobuf_service_proto_rawDescGZIP(), []int{0} return file_generate_protobuf_notification_proto_rawDescGZIP(), []int{0}
} }
// NoneReq // NoneReq
@ -69,7 +69,7 @@ type NoneReq struct {
func (x *NoneReq) Reset() { func (x *NoneReq) Reset() {
*x = NoneReq{} *x = NoneReq{}
if protoimpl.UnsafeEnabled { if protoimpl.UnsafeEnabled {
mi := &file_generate_protobuf_service_proto_msgTypes[1] mi := &file_generate_protobuf_notification_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi) ms.StoreMessageInfo(mi)
} }
@ -82,7 +82,7 @@ func (x *NoneReq) String() string {
func (*NoneReq) ProtoMessage() {} func (*NoneReq) ProtoMessage() {}
func (x *NoneReq) ProtoReflect() protoreflect.Message { func (x *NoneReq) ProtoReflect() protoreflect.Message {
mi := &file_generate_protobuf_service_proto_msgTypes[1] mi := &file_generate_protobuf_notification_proto_msgTypes[1]
if protoimpl.UnsafeEnabled && x != nil { if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil { if ms.LoadMessageInfo() == nil {
@ -95,7 +95,7 @@ func (x *NoneReq) ProtoReflect() protoreflect.Message {
// Deprecated: Use NoneReq.ProtoReflect.Descriptor instead. // Deprecated: Use NoneReq.ProtoReflect.Descriptor instead.
func (*NoneReq) Descriptor() ([]byte, []int) { func (*NoneReq) Descriptor() ([]byte, []int) {
return file_generate_protobuf_service_proto_rawDescGZIP(), []int{1} return file_generate_protobuf_notification_proto_rawDescGZIP(), []int{1}
} }
type SendMailReq struct { type SendMailReq struct {
@ -112,7 +112,7 @@ type SendMailReq struct {
func (x *SendMailReq) Reset() { func (x *SendMailReq) Reset() {
*x = SendMailReq{} *x = SendMailReq{}
if protoimpl.UnsafeEnabled { if protoimpl.UnsafeEnabled {
mi := &file_generate_protobuf_service_proto_msgTypes[2] mi := &file_generate_protobuf_notification_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi) ms.StoreMessageInfo(mi)
} }
@ -125,7 +125,7 @@ func (x *SendMailReq) String() string {
func (*SendMailReq) ProtoMessage() {} func (*SendMailReq) ProtoMessage() {}
func (x *SendMailReq) ProtoReflect() protoreflect.Message { func (x *SendMailReq) ProtoReflect() protoreflect.Message {
mi := &file_generate_protobuf_service_proto_msgTypes[2] mi := &file_generate_protobuf_notification_proto_msgTypes[2]
if protoimpl.UnsafeEnabled && x != nil { if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil { if ms.LoadMessageInfo() == nil {
@ -138,7 +138,7 @@ func (x *SendMailReq) ProtoReflect() protoreflect.Message {
// Deprecated: Use SendMailReq.ProtoReflect.Descriptor instead. // Deprecated: Use SendMailReq.ProtoReflect.Descriptor instead.
func (*SendMailReq) Descriptor() ([]byte, []int) { func (*SendMailReq) Descriptor() ([]byte, []int) {
return file_generate_protobuf_service_proto_rawDescGZIP(), []int{2} return file_generate_protobuf_notification_proto_rawDescGZIP(), []int{2}
} }
func (x *SendMailReq) GetTo() string { func (x *SendMailReq) GetTo() string {
@ -182,7 +182,7 @@ type SendSMSReq struct {
func (x *SendSMSReq) Reset() { func (x *SendSMSReq) Reset() {
*x = SendSMSReq{} *x = SendSMSReq{}
if protoimpl.UnsafeEnabled { if protoimpl.UnsafeEnabled {
mi := &file_generate_protobuf_service_proto_msgTypes[3] mi := &file_generate_protobuf_notification_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi) ms.StoreMessageInfo(mi)
} }
@ -195,7 +195,7 @@ func (x *SendSMSReq) String() string {
func (*SendSMSReq) ProtoMessage() {} func (*SendSMSReq) ProtoMessage() {}
func (x *SendSMSReq) ProtoReflect() protoreflect.Message { func (x *SendSMSReq) ProtoReflect() protoreflect.Message {
mi := &file_generate_protobuf_service_proto_msgTypes[3] mi := &file_generate_protobuf_notification_proto_msgTypes[3]
if protoimpl.UnsafeEnabled && x != nil { if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil { if ms.LoadMessageInfo() == nil {
@ -208,7 +208,7 @@ func (x *SendSMSReq) ProtoReflect() protoreflect.Message {
// Deprecated: Use SendSMSReq.ProtoReflect.Descriptor instead. // Deprecated: Use SendSMSReq.ProtoReflect.Descriptor instead.
func (*SendSMSReq) Descriptor() ([]byte, []int) { func (*SendSMSReq) Descriptor() ([]byte, []int) {
return file_generate_protobuf_service_proto_rawDescGZIP(), []int{3} return file_generate_protobuf_notification_proto_rawDescGZIP(), []int{3}
} }
func (x *SendSMSReq) GetTo() string { func (x *SendSMSReq) GetTo() string {
@ -246,7 +246,7 @@ type SendByTemplateIDReq struct {
func (x *SendByTemplateIDReq) Reset() { func (x *SendByTemplateIDReq) Reset() {
*x = SendByTemplateIDReq{} *x = SendByTemplateIDReq{}
if protoimpl.UnsafeEnabled { if protoimpl.UnsafeEnabled {
mi := &file_generate_protobuf_service_proto_msgTypes[4] mi := &file_generate_protobuf_notification_proto_msgTypes[4]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi) ms.StoreMessageInfo(mi)
} }
@ -259,7 +259,7 @@ func (x *SendByTemplateIDReq) String() string {
func (*SendByTemplateIDReq) ProtoMessage() {} func (*SendByTemplateIDReq) ProtoMessage() {}
func (x *SendByTemplateIDReq) ProtoReflect() protoreflect.Message { func (x *SendByTemplateIDReq) ProtoReflect() protoreflect.Message {
mi := &file_generate_protobuf_service_proto_msgTypes[4] mi := &file_generate_protobuf_notification_proto_msgTypes[4]
if protoimpl.UnsafeEnabled && x != nil { if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil { if ms.LoadMessageInfo() == nil {
@ -272,7 +272,7 @@ func (x *SendByTemplateIDReq) ProtoReflect() protoreflect.Message {
// Deprecated: Use SendByTemplateIDReq.ProtoReflect.Descriptor instead. // Deprecated: Use SendByTemplateIDReq.ProtoReflect.Descriptor instead.
func (*SendByTemplateIDReq) Descriptor() ([]byte, []int) { func (*SendByTemplateIDReq) Descriptor() ([]byte, []int) {
return file_generate_protobuf_service_proto_rawDescGZIP(), []int{4} return file_generate_protobuf_notification_proto_rawDescGZIP(), []int{4}
} }
func (x *SendByTemplateIDReq) GetTo() string { func (x *SendByTemplateIDReq) GetTo() string {
@ -303,77 +303,77 @@ func (x *SendByTemplateIDReq) GetContentData() map[string]string {
return nil return nil
} }
var File_generate_protobuf_service_proto protoreflect.FileDescriptor var File_generate_protobuf_notification_proto protoreflect.FileDescriptor
var file_generate_protobuf_service_proto_rawDesc = []byte{ var file_generate_protobuf_notification_proto_rawDesc = []byte{
0x0a, 0x1f, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x0a, 0x24, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f,
0x62, 0x75, 0x66, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x62, 0x75, 0x66, 0x2f, 0x6e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e,
0x6f, 0x12, 0x0c, 0x6e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0c, 0x6e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61,
0x08, 0x0a, 0x06, 0x4f, 0x4b, 0x52, 0x65, 0x73, 0x70, 0x22, 0x09, 0x0a, 0x07, 0x4e, 0x6f, 0x6e, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x08, 0x0a, 0x06, 0x4f, 0x4b, 0x52, 0x65, 0x73, 0x70, 0x22, 0x09,
0x65, 0x52, 0x65, 0x71, 0x22, 0x5f, 0x0a, 0x0b, 0x53, 0x65, 0x6e, 0x64, 0x4d, 0x61, 0x69, 0x6c, 0x0a, 0x07, 0x4e, 0x6f, 0x6e, 0x65, 0x52, 0x65, 0x71, 0x22, 0x5f, 0x0a, 0x0b, 0x53, 0x65, 0x6e,
0x52, 0x65, 0x71, 0x12, 0x0e, 0x0a, 0x02, 0x74, 0x6f, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x64, 0x4d, 0x61, 0x69, 0x6c, 0x52, 0x65, 0x71, 0x12, 0x0e, 0x0a, 0x02, 0x74, 0x6f, 0x18, 0x01,
0x02, 0x74, 0x6f, 0x12, 0x18, 0x0a, 0x07, 0x73, 0x75, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x74, 0x6f, 0x12, 0x18, 0x0a, 0x07, 0x73, 0x75, 0x62, 0x6a,
0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x73, 0x75, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x12, 0x12, 0x0a, 0x65, 0x63, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x73, 0x75, 0x62, 0x6a, 0x65,
0x04, 0x62, 0x6f, 0x64, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x62, 0x6f, 0x64, 0x63, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x62, 0x6f, 0x64, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09,
0x79, 0x12, 0x12, 0x0a, 0x04, 0x66, 0x72, 0x6f, 0x6d, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x52, 0x04, 0x62, 0x6f, 0x64, 0x79, 0x12, 0x12, 0x0a, 0x04, 0x66, 0x72, 0x6f, 0x6d, 0x18, 0x04,
0x04, 0x66, 0x72, 0x6f, 0x6d, 0x22, 0x57, 0x0a, 0x0a, 0x53, 0x65, 0x6e, 0x64, 0x53, 0x4d, 0x53, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x66, 0x72, 0x6f, 0x6d, 0x22, 0x57, 0x0a, 0x0a, 0x53, 0x65,
0x52, 0x65, 0x71, 0x12, 0x0e, 0x0a, 0x02, 0x74, 0x6f, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x6e, 0x64, 0x53, 0x4d, 0x53, 0x52, 0x65, 0x71, 0x12, 0x0e, 0x0a, 0x02, 0x74, 0x6f, 0x18, 0x01,
0x02, 0x74, 0x6f, 0x12, 0x12, 0x0a, 0x04, 0x62, 0x6f, 0x64, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x74, 0x6f, 0x12, 0x12, 0x0a, 0x04, 0x62, 0x6f, 0x64, 0x79,
0x09, 0x52, 0x04, 0x62, 0x6f, 0x64, 0x79, 0x12, 0x25, 0x0a, 0x0e, 0x72, 0x65, 0x63, 0x69, 0x70, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x62, 0x6f, 0x64, 0x79, 0x12, 0x25, 0x0a, 0x0e,
0x69, 0x65, 0x6e, 0x74, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x72, 0x65, 0x63, 0x69, 0x70, 0x69, 0x65, 0x6e, 0x74, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03,
0x0d, 0x72, 0x65, 0x63, 0x69, 0x70, 0x69, 0x65, 0x6e, 0x74, 0x4e, 0x61, 0x6d, 0x65, 0x22, 0xf1, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x72, 0x65, 0x63, 0x69, 0x70, 0x69, 0x65, 0x6e, 0x74, 0x4e,
0x01, 0x0a, 0x13, 0x53, 0x65, 0x6e, 0x64, 0x42, 0x79, 0x54, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x61, 0x6d, 0x65, 0x22, 0xf1, 0x01, 0x0a, 0x13, 0x53, 0x65, 0x6e, 0x64, 0x42, 0x79, 0x54, 0x65,
0x65, 0x49, 0x44, 0x52, 0x65, 0x71, 0x12, 0x0e, 0x0a, 0x02, 0x74, 0x6f, 0x18, 0x01, 0x20, 0x01, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x49, 0x44, 0x52, 0x65, 0x71, 0x12, 0x0e, 0x0a, 0x02, 0x74,
0x28, 0x09, 0x52, 0x02, 0x74, 0x6f, 0x12, 0x1f, 0x0a, 0x0b, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x6f, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x74, 0x6f, 0x12, 0x1f, 0x0a, 0x0b, 0x74,
0x74, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x74, 0x65, 0x6d, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09,
0x70, 0x6c, 0x61, 0x74, 0x65, 0x49, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6c, 0x61, 0x6e, 0x67, 0x18, 0x52, 0x0a, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x49, 0x64, 0x12, 0x12, 0x0a, 0x04,
0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6c, 0x61, 0x6e, 0x67, 0x12, 0x55, 0x0a, 0x0c, 0x63, 0x6c, 0x61, 0x6e, 0x67, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6c, 0x61, 0x6e, 0x67,
0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x5f, 0x64, 0x61, 0x74, 0x61, 0x18, 0x04, 0x20, 0x03, 0x28, 0x12, 0x55, 0x0a, 0x0c, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x5f, 0x64, 0x61, 0x74, 0x61,
0x0b, 0x32, 0x32, 0x2e, 0x6e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x32, 0x2e, 0x6e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63,
0x2e, 0x53, 0x65, 0x6e, 0x64, 0x42, 0x79, 0x54, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x49, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x53, 0x65, 0x6e, 0x64, 0x42, 0x79, 0x54, 0x65, 0x6d, 0x70,
0x44, 0x52, 0x65, 0x71, 0x2e, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x44, 0x61, 0x74, 0x61, 0x6c, 0x61, 0x74, 0x65, 0x49, 0x44, 0x52, 0x65, 0x71, 0x2e, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x6e,
0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0b, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x44, 0x61, 0x74, 0x44, 0x61, 0x74, 0x61, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0b, 0x63, 0x6f, 0x6e, 0x74,
0x74, 0x61, 0x1a, 0x3e, 0x0a, 0x10, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x44, 0x61, 0x74, 0x65, 0x6e, 0x74, 0x44, 0x61, 0x74, 0x61, 0x1a, 0x3e, 0x0a, 0x10, 0x43, 0x6f, 0x6e, 0x74, 0x65,
0x61, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x6e, 0x74, 0x44, 0x61, 0x74, 0x61, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b,
0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a,
0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61,
0x38, 0x01, 0x32, 0xa8, 0x02, 0x0a, 0x0d, 0x53, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x53, 0x65, 0x72, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x32, 0xa8, 0x02, 0x0a, 0x0d, 0x53, 0x65, 0x6e, 0x64,
0x76, 0x69, 0x63, 0x65, 0x12, 0x3b, 0x0a, 0x08, 0x53, 0x65, 0x6e, 0x64, 0x4d, 0x61, 0x69, 0x6c, 0x65, 0x72, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x3b, 0x0a, 0x08, 0x53, 0x65, 0x6e,
0x12, 0x19, 0x2e, 0x6e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x64, 0x4d, 0x61, 0x69, 0x6c, 0x12, 0x19, 0x2e, 0x6e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61,
0x53, 0x65, 0x6e, 0x64, 0x4d, 0x61, 0x69, 0x6c, 0x52, 0x65, 0x71, 0x1a, 0x14, 0x2e, 0x6e, 0x6f, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x53, 0x65, 0x6e, 0x64, 0x4d, 0x61, 0x69, 0x6c, 0x52, 0x65, 0x71,
0x1a, 0x14, 0x2e, 0x6e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e,
0x4f, 0x4b, 0x52, 0x65, 0x73, 0x70, 0x12, 0x39, 0x0a, 0x07, 0x53, 0x65, 0x6e, 0x64, 0x53, 0x6d,
0x73, 0x12, 0x18, 0x2e, 0x6e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e,
0x2e, 0x53, 0x65, 0x6e, 0x64, 0x53, 0x4d, 0x53, 0x52, 0x65, 0x71, 0x1a, 0x14, 0x2e, 0x6e, 0x6f,
0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x4f, 0x4b, 0x52, 0x65, 0x73, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x4f, 0x4b, 0x52, 0x65, 0x73,
0x70, 0x12, 0x39, 0x0a, 0x07, 0x53, 0x65, 0x6e, 0x64, 0x53, 0x6d, 0x73, 0x12, 0x18, 0x2e, 0x6e, 0x70, 0x12, 0x4f, 0x0a, 0x14, 0x53, 0x65, 0x6e, 0x64, 0x4d, 0x61, 0x69, 0x6c, 0x42, 0x79, 0x54,
0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x53, 0x65, 0x6e, 0x64, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x49, 0x64, 0x12, 0x21, 0x2e, 0x6e, 0x6f, 0x74, 0x69,
0x53, 0x4d, 0x53, 0x52, 0x65, 0x71, 0x1a, 0x14, 0x2e, 0x6e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x53, 0x65, 0x6e, 0x64, 0x42, 0x79, 0x54,
0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x4f, 0x4b, 0x52, 0x65, 0x73, 0x70, 0x12, 0x4f, 0x0a, 0x14, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x49, 0x44, 0x52, 0x65, 0x71, 0x1a, 0x14, 0x2e, 0x6e,
0x53, 0x65, 0x6e, 0x64, 0x4d, 0x61, 0x69, 0x6c, 0x42, 0x79, 0x54, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x4f, 0x4b, 0x52, 0x65,
0x74, 0x65, 0x49, 0x64, 0x12, 0x21, 0x2e, 0x6e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x73, 0x70, 0x12, 0x4e, 0x0a, 0x13, 0x53, 0x65, 0x6e, 0x64, 0x53, 0x6d, 0x73, 0x42, 0x79, 0x54,
0x69, 0x6f, 0x6e, 0x2e, 0x53, 0x65, 0x6e, 0x64, 0x42, 0x79, 0x54, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x49, 0x64, 0x12, 0x21, 0x2e, 0x6e, 0x6f, 0x74, 0x69,
0x74, 0x65, 0x49, 0x44, 0x52, 0x65, 0x71, 0x1a, 0x14, 0x2e, 0x6e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x53, 0x65, 0x6e, 0x64, 0x42, 0x79, 0x54,
0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x4f, 0x4b, 0x52, 0x65, 0x73, 0x70, 0x12, 0x4e, 0x0a, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x49, 0x44, 0x52, 0x65, 0x71, 0x1a, 0x14, 0x2e, 0x6e,
0x13, 0x53, 0x65, 0x6e, 0x64, 0x53, 0x6d, 0x73, 0x42, 0x79, 0x54, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x4f, 0x4b, 0x52, 0x65,
0x74, 0x65, 0x49, 0x64, 0x12, 0x21, 0x2e, 0x6e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x73, 0x70, 0x42, 0x10, 0x5a, 0x0e, 0x2e, 0x2f, 0x6e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61,
0x69, 0x6f, 0x6e, 0x2e, 0x53, 0x65, 0x6e, 0x64, 0x42, 0x79, 0x54, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
0x74, 0x65, 0x49, 0x44, 0x52, 0x65, 0x71, 0x1a, 0x14, 0x2e, 0x6e, 0x6f, 0x74, 0x69, 0x66, 0x69,
0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x4f, 0x4b, 0x52, 0x65, 0x73, 0x70, 0x42, 0x10, 0x5a,
0x0e, 0x2e, 0x2f, 0x6e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x62,
0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
} }
var ( var (
file_generate_protobuf_service_proto_rawDescOnce sync.Once file_generate_protobuf_notification_proto_rawDescOnce sync.Once
file_generate_protobuf_service_proto_rawDescData = file_generate_protobuf_service_proto_rawDesc file_generate_protobuf_notification_proto_rawDescData = file_generate_protobuf_notification_proto_rawDesc
) )
func file_generate_protobuf_service_proto_rawDescGZIP() []byte { func file_generate_protobuf_notification_proto_rawDescGZIP() []byte {
file_generate_protobuf_service_proto_rawDescOnce.Do(func() { file_generate_protobuf_notification_proto_rawDescOnce.Do(func() {
file_generate_protobuf_service_proto_rawDescData = protoimpl.X.CompressGZIP(file_generate_protobuf_service_proto_rawDescData) file_generate_protobuf_notification_proto_rawDescData = protoimpl.X.CompressGZIP(file_generate_protobuf_notification_proto_rawDescData)
}) })
return file_generate_protobuf_service_proto_rawDescData return file_generate_protobuf_notification_proto_rawDescData
} }
var file_generate_protobuf_service_proto_msgTypes = make([]protoimpl.MessageInfo, 6) var file_generate_protobuf_notification_proto_msgTypes = make([]protoimpl.MessageInfo, 6)
var file_generate_protobuf_service_proto_goTypes = []any{ var file_generate_protobuf_notification_proto_goTypes = []any{
(*OKResp)(nil), // 0: notification.OKResp (*OKResp)(nil), // 0: notification.OKResp
(*NoneReq)(nil), // 1: notification.NoneReq (*NoneReq)(nil), // 1: notification.NoneReq
(*SendMailReq)(nil), // 2: notification.SendMailReq (*SendMailReq)(nil), // 2: notification.SendMailReq
@ -381,7 +381,7 @@ var file_generate_protobuf_service_proto_goTypes = []any{
(*SendByTemplateIDReq)(nil), // 4: notification.SendByTemplateIDReq (*SendByTemplateIDReq)(nil), // 4: notification.SendByTemplateIDReq
nil, // 5: notification.SendByTemplateIDReq.ContentDataEntry nil, // 5: notification.SendByTemplateIDReq.ContentDataEntry
} }
var file_generate_protobuf_service_proto_depIdxs = []int32{ var file_generate_protobuf_notification_proto_depIdxs = []int32{
5, // 0: notification.SendByTemplateIDReq.content_data:type_name -> notification.SendByTemplateIDReq.ContentDataEntry 5, // 0: notification.SendByTemplateIDReq.content_data:type_name -> notification.SendByTemplateIDReq.ContentDataEntry
2, // 1: notification.SenderService.SendMail:input_type -> notification.SendMailReq 2, // 1: notification.SenderService.SendMail:input_type -> notification.SendMailReq
3, // 2: notification.SenderService.SendSms:input_type -> notification.SendSMSReq 3, // 2: notification.SenderService.SendSms:input_type -> notification.SendSMSReq
@ -398,13 +398,13 @@ var file_generate_protobuf_service_proto_depIdxs = []int32{
0, // [0:1] is the sub-list for field type_name 0, // [0:1] is the sub-list for field type_name
} }
func init() { file_generate_protobuf_service_proto_init() } func init() { file_generate_protobuf_notification_proto_init() }
func file_generate_protobuf_service_proto_init() { func file_generate_protobuf_notification_proto_init() {
if File_generate_protobuf_service_proto != nil { if File_generate_protobuf_notification_proto != nil {
return return
} }
if !protoimpl.UnsafeEnabled { if !protoimpl.UnsafeEnabled {
file_generate_protobuf_service_proto_msgTypes[0].Exporter = func(v any, i int) any { file_generate_protobuf_notification_proto_msgTypes[0].Exporter = func(v any, i int) any {
switch v := v.(*OKResp); i { switch v := v.(*OKResp); i {
case 0: case 0:
return &v.state return &v.state
@ -416,7 +416,7 @@ func file_generate_protobuf_service_proto_init() {
return nil return nil
} }
} }
file_generate_protobuf_service_proto_msgTypes[1].Exporter = func(v any, i int) any { file_generate_protobuf_notification_proto_msgTypes[1].Exporter = func(v any, i int) any {
switch v := v.(*NoneReq); i { switch v := v.(*NoneReq); i {
case 0: case 0:
return &v.state return &v.state
@ -428,7 +428,7 @@ func file_generate_protobuf_service_proto_init() {
return nil return nil
} }
} }
file_generate_protobuf_service_proto_msgTypes[2].Exporter = func(v any, i int) any { file_generate_protobuf_notification_proto_msgTypes[2].Exporter = func(v any, i int) any {
switch v := v.(*SendMailReq); i { switch v := v.(*SendMailReq); i {
case 0: case 0:
return &v.state return &v.state
@ -440,7 +440,7 @@ func file_generate_protobuf_service_proto_init() {
return nil return nil
} }
} }
file_generate_protobuf_service_proto_msgTypes[3].Exporter = func(v any, i int) any { file_generate_protobuf_notification_proto_msgTypes[3].Exporter = func(v any, i int) any {
switch v := v.(*SendSMSReq); i { switch v := v.(*SendSMSReq); i {
case 0: case 0:
return &v.state return &v.state
@ -452,7 +452,7 @@ func file_generate_protobuf_service_proto_init() {
return nil return nil
} }
} }
file_generate_protobuf_service_proto_msgTypes[4].Exporter = func(v any, i int) any { file_generate_protobuf_notification_proto_msgTypes[4].Exporter = func(v any, i int) any {
switch v := v.(*SendByTemplateIDReq); i { switch v := v.(*SendByTemplateIDReq); i {
case 0: case 0:
return &v.state return &v.state
@ -469,18 +469,18 @@ func file_generate_protobuf_service_proto_init() {
out := protoimpl.TypeBuilder{ out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{ File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(), GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_generate_protobuf_service_proto_rawDesc, RawDescriptor: file_generate_protobuf_notification_proto_rawDesc,
NumEnums: 0, NumEnums: 0,
NumMessages: 6, NumMessages: 6,
NumExtensions: 0, NumExtensions: 0,
NumServices: 1, NumServices: 1,
}, },
GoTypes: file_generate_protobuf_service_proto_goTypes, GoTypes: file_generate_protobuf_notification_proto_goTypes,
DependencyIndexes: file_generate_protobuf_service_proto_depIdxs, DependencyIndexes: file_generate_protobuf_notification_proto_depIdxs,
MessageInfos: file_generate_protobuf_service_proto_msgTypes, MessageInfos: file_generate_protobuf_notification_proto_msgTypes,
}.Build() }.Build()
File_generate_protobuf_service_proto = out.File File_generate_protobuf_notification_proto = out.File
file_generate_protobuf_service_proto_rawDesc = nil file_generate_protobuf_notification_proto_rawDesc = nil
file_generate_protobuf_service_proto_goTypes = nil file_generate_protobuf_notification_proto_goTypes = nil
file_generate_protobuf_service_proto_depIdxs = nil file_generate_protobuf_notification_proto_depIdxs = nil
} }

View File

@ -2,7 +2,7 @@
// versions: // versions:
// - protoc-gen-go-grpc v1.4.0 // - protoc-gen-go-grpc v1.4.0
// - protoc v3.19.4 // - protoc v3.19.4
// source: generate/protobuf/service.proto // source: generate/protobuf/notification.proto
package notification package notification
@ -228,5 +228,5 @@ var SenderService_ServiceDesc = grpc.ServiceDesc{
}, },
}, },
Streams: []grpc.StreamDesc{}, Streams: []grpc.StreamDesc{},
Metadata: "generate/protobuf/service.proto", Metadata: "generate/protobuf/notification.proto",
} }

View File

@ -2,16 +2,15 @@
// versions: // versions:
// protoc-gen-go v1.34.2 // protoc-gen-go v1.34.2
// protoc v3.19.4 // protoc v3.19.4
// source: generate/protobuf/service.proto // source: generate/protobuf/permission.proto
package permission package permission
import ( import (
reflect "reflect"
sync "sync"
protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl" protoimpl "google.golang.org/protobuf/runtime/protoimpl"
reflect "reflect"
sync "sync"
) )
const ( const (
@ -31,7 +30,7 @@ type OKResp struct {
func (x *OKResp) Reset() { func (x *OKResp) Reset() {
*x = OKResp{} *x = OKResp{}
if protoimpl.UnsafeEnabled { if protoimpl.UnsafeEnabled {
mi := &file_generate_protobuf_service_proto_msgTypes[0] mi := &file_generate_protobuf_permission_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi) ms.StoreMessageInfo(mi)
} }
@ -44,7 +43,7 @@ func (x *OKResp) String() string {
func (*OKResp) ProtoMessage() {} func (*OKResp) ProtoMessage() {}
func (x *OKResp) ProtoReflect() protoreflect.Message { func (x *OKResp) ProtoReflect() protoreflect.Message {
mi := &file_generate_protobuf_service_proto_msgTypes[0] mi := &file_generate_protobuf_permission_proto_msgTypes[0]
if protoimpl.UnsafeEnabled && x != nil { if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil { if ms.LoadMessageInfo() == nil {
@ -57,7 +56,7 @@ func (x *OKResp) ProtoReflect() protoreflect.Message {
// Deprecated: Use OKResp.ProtoReflect.Descriptor instead. // Deprecated: Use OKResp.ProtoReflect.Descriptor instead.
func (*OKResp) Descriptor() ([]byte, []int) { func (*OKResp) Descriptor() ([]byte, []int) {
return file_generate_protobuf_service_proto_rawDescGZIP(), []int{0} return file_generate_protobuf_permission_proto_rawDescGZIP(), []int{0}
} }
// NoneReq // NoneReq
@ -70,7 +69,7 @@ type NoneReq struct {
func (x *NoneReq) Reset() { func (x *NoneReq) Reset() {
*x = NoneReq{} *x = NoneReq{}
if protoimpl.UnsafeEnabled { if protoimpl.UnsafeEnabled {
mi := &file_generate_protobuf_service_proto_msgTypes[1] mi := &file_generate_protobuf_permission_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi) ms.StoreMessageInfo(mi)
} }
@ -83,7 +82,7 @@ func (x *NoneReq) String() string {
func (*NoneReq) ProtoMessage() {} func (*NoneReq) ProtoMessage() {}
func (x *NoneReq) ProtoReflect() protoreflect.Message { func (x *NoneReq) ProtoReflect() protoreflect.Message {
mi := &file_generate_protobuf_service_proto_msgTypes[1] mi := &file_generate_protobuf_permission_proto_msgTypes[1]
if protoimpl.UnsafeEnabled && x != nil { if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil { if ms.LoadMessageInfo() == nil {
@ -96,7 +95,7 @@ func (x *NoneReq) ProtoReflect() protoreflect.Message {
// Deprecated: Use NoneReq.ProtoReflect.Descriptor instead. // Deprecated: Use NoneReq.ProtoReflect.Descriptor instead.
func (*NoneReq) Descriptor() ([]byte, []int) { func (*NoneReq) Descriptor() ([]byte, []int) {
return file_generate_protobuf_service_proto_rawDescGZIP(), []int{1} return file_generate_protobuf_permission_proto_rawDescGZIP(), []int{1}
} }
// AuthorizationReq 定義授權請求的結構 // AuthorizationReq 定義授權請求的結構
@ -122,7 +121,7 @@ type AuthorizationReq struct {
func (x *AuthorizationReq) Reset() { func (x *AuthorizationReq) Reset() {
*x = AuthorizationReq{} *x = AuthorizationReq{}
if protoimpl.UnsafeEnabled { if protoimpl.UnsafeEnabled {
mi := &file_generate_protobuf_service_proto_msgTypes[2] mi := &file_generate_protobuf_permission_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi) ms.StoreMessageInfo(mi)
} }
@ -135,7 +134,7 @@ func (x *AuthorizationReq) String() string {
func (*AuthorizationReq) ProtoMessage() {} func (*AuthorizationReq) ProtoMessage() {}
func (x *AuthorizationReq) ProtoReflect() protoreflect.Message { func (x *AuthorizationReq) ProtoReflect() protoreflect.Message {
mi := &file_generate_protobuf_service_proto_msgTypes[2] mi := &file_generate_protobuf_permission_proto_msgTypes[2]
if protoimpl.UnsafeEnabled && x != nil { if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil { if ms.LoadMessageInfo() == nil {
@ -148,7 +147,7 @@ func (x *AuthorizationReq) ProtoReflect() protoreflect.Message {
// Deprecated: Use AuthorizationReq.ProtoReflect.Descriptor instead. // Deprecated: Use AuthorizationReq.ProtoReflect.Descriptor instead.
func (*AuthorizationReq) Descriptor() ([]byte, []int) { func (*AuthorizationReq) Descriptor() ([]byte, []int) {
return file_generate_protobuf_service_proto_rawDescGZIP(), []int{2} return file_generate_protobuf_permission_proto_rawDescGZIP(), []int{2}
} }
func (x *AuthorizationReq) GetGrantType() string { func (x *AuthorizationReq) GetGrantType() string {
@ -212,7 +211,7 @@ type TokenResp struct {
func (x *TokenResp) Reset() { func (x *TokenResp) Reset() {
*x = TokenResp{} *x = TokenResp{}
if protoimpl.UnsafeEnabled { if protoimpl.UnsafeEnabled {
mi := &file_generate_protobuf_service_proto_msgTypes[3] mi := &file_generate_protobuf_permission_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi) ms.StoreMessageInfo(mi)
} }
@ -225,7 +224,7 @@ func (x *TokenResp) String() string {
func (*TokenResp) ProtoMessage() {} func (*TokenResp) ProtoMessage() {}
func (x *TokenResp) ProtoReflect() protoreflect.Message { func (x *TokenResp) ProtoReflect() protoreflect.Message {
mi := &file_generate_protobuf_service_proto_msgTypes[3] mi := &file_generate_protobuf_permission_proto_msgTypes[3]
if protoimpl.UnsafeEnabled && x != nil { if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil { if ms.LoadMessageInfo() == nil {
@ -238,7 +237,7 @@ func (x *TokenResp) ProtoReflect() protoreflect.Message {
// Deprecated: Use TokenResp.ProtoReflect.Descriptor instead. // Deprecated: Use TokenResp.ProtoReflect.Descriptor instead.
func (*TokenResp) Descriptor() ([]byte, []int) { func (*TokenResp) Descriptor() ([]byte, []int) {
return file_generate_protobuf_service_proto_rawDescGZIP(), []int{3} return file_generate_protobuf_permission_proto_rawDescGZIP(), []int{3}
} }
func (x *TokenResp) GetAccessToken() string { func (x *TokenResp) GetAccessToken() string {
@ -282,7 +281,7 @@ type CreateOneTimeTokenReq struct {
func (x *CreateOneTimeTokenReq) Reset() { func (x *CreateOneTimeTokenReq) Reset() {
*x = CreateOneTimeTokenReq{} *x = CreateOneTimeTokenReq{}
if protoimpl.UnsafeEnabled { if protoimpl.UnsafeEnabled {
mi := &file_generate_protobuf_service_proto_msgTypes[4] mi := &file_generate_protobuf_permission_proto_msgTypes[4]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi) ms.StoreMessageInfo(mi)
} }
@ -295,7 +294,7 @@ func (x *CreateOneTimeTokenReq) String() string {
func (*CreateOneTimeTokenReq) ProtoMessage() {} func (*CreateOneTimeTokenReq) ProtoMessage() {}
func (x *CreateOneTimeTokenReq) ProtoReflect() protoreflect.Message { func (x *CreateOneTimeTokenReq) ProtoReflect() protoreflect.Message {
mi := &file_generate_protobuf_service_proto_msgTypes[4] mi := &file_generate_protobuf_permission_proto_msgTypes[4]
if protoimpl.UnsafeEnabled && x != nil { if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil { if ms.LoadMessageInfo() == nil {
@ -308,7 +307,7 @@ func (x *CreateOneTimeTokenReq) ProtoReflect() protoreflect.Message {
// Deprecated: Use CreateOneTimeTokenReq.ProtoReflect.Descriptor instead. // Deprecated: Use CreateOneTimeTokenReq.ProtoReflect.Descriptor instead.
func (*CreateOneTimeTokenReq) Descriptor() ([]byte, []int) { func (*CreateOneTimeTokenReq) Descriptor() ([]byte, []int) {
return file_generate_protobuf_service_proto_rawDescGZIP(), []int{4} return file_generate_protobuf_permission_proto_rawDescGZIP(), []int{4}
} }
func (x *CreateOneTimeTokenReq) GetToken() string { func (x *CreateOneTimeTokenReq) GetToken() string {
@ -329,7 +328,7 @@ type CreateOneTimeTokenResp struct {
func (x *CreateOneTimeTokenResp) Reset() { func (x *CreateOneTimeTokenResp) Reset() {
*x = CreateOneTimeTokenResp{} *x = CreateOneTimeTokenResp{}
if protoimpl.UnsafeEnabled { if protoimpl.UnsafeEnabled {
mi := &file_generate_protobuf_service_proto_msgTypes[5] mi := &file_generate_protobuf_permission_proto_msgTypes[5]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi) ms.StoreMessageInfo(mi)
} }
@ -342,7 +341,7 @@ func (x *CreateOneTimeTokenResp) String() string {
func (*CreateOneTimeTokenResp) ProtoMessage() {} func (*CreateOneTimeTokenResp) ProtoMessage() {}
func (x *CreateOneTimeTokenResp) ProtoReflect() protoreflect.Message { func (x *CreateOneTimeTokenResp) ProtoReflect() protoreflect.Message {
mi := &file_generate_protobuf_service_proto_msgTypes[5] mi := &file_generate_protobuf_permission_proto_msgTypes[5]
if protoimpl.UnsafeEnabled && x != nil { if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil { if ms.LoadMessageInfo() == nil {
@ -355,7 +354,7 @@ func (x *CreateOneTimeTokenResp) ProtoReflect() protoreflect.Message {
// Deprecated: Use CreateOneTimeTokenResp.ProtoReflect.Descriptor instead. // Deprecated: Use CreateOneTimeTokenResp.ProtoReflect.Descriptor instead.
func (*CreateOneTimeTokenResp) Descriptor() ([]byte, []int) { func (*CreateOneTimeTokenResp) Descriptor() ([]byte, []int) {
return file_generate_protobuf_service_proto_rawDescGZIP(), []int{5} return file_generate_protobuf_permission_proto_rawDescGZIP(), []int{5}
} }
func (x *CreateOneTimeTokenResp) GetOneTimeToken() string { func (x *CreateOneTimeTokenResp) GetOneTimeToken() string {
@ -380,7 +379,7 @@ type RefreshTokenReq struct {
func (x *RefreshTokenReq) Reset() { func (x *RefreshTokenReq) Reset() {
*x = RefreshTokenReq{} *x = RefreshTokenReq{}
if protoimpl.UnsafeEnabled { if protoimpl.UnsafeEnabled {
mi := &file_generate_protobuf_service_proto_msgTypes[6] mi := &file_generate_protobuf_permission_proto_msgTypes[6]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi) ms.StoreMessageInfo(mi)
} }
@ -393,7 +392,7 @@ func (x *RefreshTokenReq) String() string {
func (*RefreshTokenReq) ProtoMessage() {} func (*RefreshTokenReq) ProtoMessage() {}
func (x *RefreshTokenReq) ProtoReflect() protoreflect.Message { func (x *RefreshTokenReq) ProtoReflect() protoreflect.Message {
mi := &file_generate_protobuf_service_proto_msgTypes[6] mi := &file_generate_protobuf_permission_proto_msgTypes[6]
if protoimpl.UnsafeEnabled && x != nil { if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil { if ms.LoadMessageInfo() == nil {
@ -406,7 +405,7 @@ func (x *RefreshTokenReq) ProtoReflect() protoreflect.Message {
// Deprecated: Use RefreshTokenReq.ProtoReflect.Descriptor instead. // Deprecated: Use RefreshTokenReq.ProtoReflect.Descriptor instead.
func (*RefreshTokenReq) Descriptor() ([]byte, []int) { func (*RefreshTokenReq) Descriptor() ([]byte, []int) {
return file_generate_protobuf_service_proto_rawDescGZIP(), []int{6} return file_generate_protobuf_permission_proto_rawDescGZIP(), []int{6}
} }
func (x *RefreshTokenReq) GetToken() string { func (x *RefreshTokenReq) GetToken() string {
@ -452,7 +451,7 @@ type RefreshTokenResp struct {
func (x *RefreshTokenResp) Reset() { func (x *RefreshTokenResp) Reset() {
*x = RefreshTokenResp{} *x = RefreshTokenResp{}
if protoimpl.UnsafeEnabled { if protoimpl.UnsafeEnabled {
mi := &file_generate_protobuf_service_proto_msgTypes[7] mi := &file_generate_protobuf_permission_proto_msgTypes[7]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi) ms.StoreMessageInfo(mi)
} }
@ -465,7 +464,7 @@ func (x *RefreshTokenResp) String() string {
func (*RefreshTokenResp) ProtoMessage() {} func (*RefreshTokenResp) ProtoMessage() {}
func (x *RefreshTokenResp) ProtoReflect() protoreflect.Message { func (x *RefreshTokenResp) ProtoReflect() protoreflect.Message {
mi := &file_generate_protobuf_service_proto_msgTypes[7] mi := &file_generate_protobuf_permission_proto_msgTypes[7]
if protoimpl.UnsafeEnabled && x != nil { if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil { if ms.LoadMessageInfo() == nil {
@ -478,7 +477,7 @@ func (x *RefreshTokenResp) ProtoReflect() protoreflect.Message {
// Deprecated: Use RefreshTokenResp.ProtoReflect.Descriptor instead. // Deprecated: Use RefreshTokenResp.ProtoReflect.Descriptor instead.
func (*RefreshTokenResp) Descriptor() ([]byte, []int) { func (*RefreshTokenResp) Descriptor() ([]byte, []int) {
return file_generate_protobuf_service_proto_rawDescGZIP(), []int{7} return file_generate_protobuf_permission_proto_rawDescGZIP(), []int{7}
} }
func (x *RefreshTokenResp) GetToken() string { func (x *RefreshTokenResp) GetToken() string {
@ -521,7 +520,7 @@ type CancelTokenReq struct {
func (x *CancelTokenReq) Reset() { func (x *CancelTokenReq) Reset() {
*x = CancelTokenReq{} *x = CancelTokenReq{}
if protoimpl.UnsafeEnabled { if protoimpl.UnsafeEnabled {
mi := &file_generate_protobuf_service_proto_msgTypes[8] mi := &file_generate_protobuf_permission_proto_msgTypes[8]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi) ms.StoreMessageInfo(mi)
} }
@ -534,7 +533,7 @@ func (x *CancelTokenReq) String() string {
func (*CancelTokenReq) ProtoMessage() {} func (*CancelTokenReq) ProtoMessage() {}
func (x *CancelTokenReq) ProtoReflect() protoreflect.Message { func (x *CancelTokenReq) ProtoReflect() protoreflect.Message {
mi := &file_generate_protobuf_service_proto_msgTypes[8] mi := &file_generate_protobuf_permission_proto_msgTypes[8]
if protoimpl.UnsafeEnabled && x != nil { if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil { if ms.LoadMessageInfo() == nil {
@ -547,7 +546,7 @@ func (x *CancelTokenReq) ProtoReflect() protoreflect.Message {
// Deprecated: Use CancelTokenReq.ProtoReflect.Descriptor instead. // Deprecated: Use CancelTokenReq.ProtoReflect.Descriptor instead.
func (*CancelTokenReq) Descriptor() ([]byte, []int) { func (*CancelTokenReq) Descriptor() ([]byte, []int) {
return file_generate_protobuf_service_proto_rawDescGZIP(), []int{8} return file_generate_protobuf_permission_proto_rawDescGZIP(), []int{8}
} }
func (x *CancelTokenReq) GetToken() string { func (x *CancelTokenReq) GetToken() string {
@ -570,7 +569,7 @@ type DoTokenByUIDReq struct {
func (x *DoTokenByUIDReq) Reset() { func (x *DoTokenByUIDReq) Reset() {
*x = DoTokenByUIDReq{} *x = DoTokenByUIDReq{}
if protoimpl.UnsafeEnabled { if protoimpl.UnsafeEnabled {
mi := &file_generate_protobuf_service_proto_msgTypes[9] mi := &file_generate_protobuf_permission_proto_msgTypes[9]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi) ms.StoreMessageInfo(mi)
} }
@ -583,7 +582,7 @@ func (x *DoTokenByUIDReq) String() string {
func (*DoTokenByUIDReq) ProtoMessage() {} func (*DoTokenByUIDReq) ProtoMessage() {}
func (x *DoTokenByUIDReq) ProtoReflect() protoreflect.Message { func (x *DoTokenByUIDReq) ProtoReflect() protoreflect.Message {
mi := &file_generate_protobuf_service_proto_msgTypes[9] mi := &file_generate_protobuf_permission_proto_msgTypes[9]
if protoimpl.UnsafeEnabled && x != nil { if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil { if ms.LoadMessageInfo() == nil {
@ -596,7 +595,7 @@ func (x *DoTokenByUIDReq) ProtoReflect() protoreflect.Message {
// Deprecated: Use DoTokenByUIDReq.ProtoReflect.Descriptor instead. // Deprecated: Use DoTokenByUIDReq.ProtoReflect.Descriptor instead.
func (*DoTokenByUIDReq) Descriptor() ([]byte, []int) { func (*DoTokenByUIDReq) Descriptor() ([]byte, []int) {
return file_generate_protobuf_service_proto_rawDescGZIP(), []int{9} return file_generate_protobuf_permission_proto_rawDescGZIP(), []int{9}
} }
func (x *DoTokenByUIDReq) GetIds() []string { func (x *DoTokenByUIDReq) GetIds() []string {
@ -625,7 +624,7 @@ type QueryTokenByUIDReq struct {
func (x *QueryTokenByUIDReq) Reset() { func (x *QueryTokenByUIDReq) Reset() {
*x = QueryTokenByUIDReq{} *x = QueryTokenByUIDReq{}
if protoimpl.UnsafeEnabled { if protoimpl.UnsafeEnabled {
mi := &file_generate_protobuf_service_proto_msgTypes[10] mi := &file_generate_protobuf_permission_proto_msgTypes[10]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi) ms.StoreMessageInfo(mi)
} }
@ -638,7 +637,7 @@ func (x *QueryTokenByUIDReq) String() string {
func (*QueryTokenByUIDReq) ProtoMessage() {} func (*QueryTokenByUIDReq) ProtoMessage() {}
func (x *QueryTokenByUIDReq) ProtoReflect() protoreflect.Message { func (x *QueryTokenByUIDReq) ProtoReflect() protoreflect.Message {
mi := &file_generate_protobuf_service_proto_msgTypes[10] mi := &file_generate_protobuf_permission_proto_msgTypes[10]
if protoimpl.UnsafeEnabled && x != nil { if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil { if ms.LoadMessageInfo() == nil {
@ -651,7 +650,7 @@ func (x *QueryTokenByUIDReq) ProtoReflect() protoreflect.Message {
// Deprecated: Use QueryTokenByUIDReq.ProtoReflect.Descriptor instead. // Deprecated: Use QueryTokenByUIDReq.ProtoReflect.Descriptor instead.
func (*QueryTokenByUIDReq) Descriptor() ([]byte, []int) { func (*QueryTokenByUIDReq) Descriptor() ([]byte, []int) {
return file_generate_protobuf_service_proto_rawDescGZIP(), []int{10} return file_generate_protobuf_permission_proto_rawDescGZIP(), []int{10}
} }
func (x *QueryTokenByUIDReq) GetUid() string { func (x *QueryTokenByUIDReq) GetUid() string {
@ -673,7 +672,7 @@ type ValidationTokenReq struct {
func (x *ValidationTokenReq) Reset() { func (x *ValidationTokenReq) Reset() {
*x = ValidationTokenReq{} *x = ValidationTokenReq{}
if protoimpl.UnsafeEnabled { if protoimpl.UnsafeEnabled {
mi := &file_generate_protobuf_service_proto_msgTypes[11] mi := &file_generate_protobuf_permission_proto_msgTypes[11]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi) ms.StoreMessageInfo(mi)
} }
@ -686,7 +685,7 @@ func (x *ValidationTokenReq) String() string {
func (*ValidationTokenReq) ProtoMessage() {} func (*ValidationTokenReq) ProtoMessage() {}
func (x *ValidationTokenReq) ProtoReflect() protoreflect.Message { func (x *ValidationTokenReq) ProtoReflect() protoreflect.Message {
mi := &file_generate_protobuf_service_proto_msgTypes[11] mi := &file_generate_protobuf_permission_proto_msgTypes[11]
if protoimpl.UnsafeEnabled && x != nil { if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil { if ms.LoadMessageInfo() == nil {
@ -699,7 +698,7 @@ func (x *ValidationTokenReq) ProtoReflect() protoreflect.Message {
// Deprecated: Use ValidationTokenReq.ProtoReflect.Descriptor instead. // Deprecated: Use ValidationTokenReq.ProtoReflect.Descriptor instead.
func (*ValidationTokenReq) Descriptor() ([]byte, []int) { func (*ValidationTokenReq) Descriptor() ([]byte, []int) {
return file_generate_protobuf_service_proto_rawDescGZIP(), []int{11} return file_generate_protobuf_permission_proto_rawDescGZIP(), []int{11}
} }
func (x *ValidationTokenReq) GetToken() string { func (x *ValidationTokenReq) GetToken() string {
@ -722,7 +721,7 @@ type ValidationTokenResp struct {
func (x *ValidationTokenResp) Reset() { func (x *ValidationTokenResp) Reset() {
*x = ValidationTokenResp{} *x = ValidationTokenResp{}
if protoimpl.UnsafeEnabled { if protoimpl.UnsafeEnabled {
mi := &file_generate_protobuf_service_proto_msgTypes[12] mi := &file_generate_protobuf_permission_proto_msgTypes[12]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi) ms.StoreMessageInfo(mi)
} }
@ -735,7 +734,7 @@ func (x *ValidationTokenResp) String() string {
func (*ValidationTokenResp) ProtoMessage() {} func (*ValidationTokenResp) ProtoMessage() {}
func (x *ValidationTokenResp) ProtoReflect() protoreflect.Message { func (x *ValidationTokenResp) ProtoReflect() protoreflect.Message {
mi := &file_generate_protobuf_service_proto_msgTypes[12] mi := &file_generate_protobuf_permission_proto_msgTypes[12]
if protoimpl.UnsafeEnabled && x != nil { if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil { if ms.LoadMessageInfo() == nil {
@ -748,7 +747,7 @@ func (x *ValidationTokenResp) ProtoReflect() protoreflect.Message {
// Deprecated: Use ValidationTokenResp.ProtoReflect.Descriptor instead. // Deprecated: Use ValidationTokenResp.ProtoReflect.Descriptor instead.
func (*ValidationTokenResp) Descriptor() ([]byte, []int) { func (*ValidationTokenResp) Descriptor() ([]byte, []int) {
return file_generate_protobuf_service_proto_rawDescGZIP(), []int{12} return file_generate_protobuf_permission_proto_rawDescGZIP(), []int{12}
} }
func (x *ValidationTokenResp) GetToken() *Token { func (x *ValidationTokenResp) GetToken() *Token {
@ -796,7 +795,7 @@ type Token struct {
func (x *Token) Reset() { func (x *Token) Reset() {
*x = Token{} *x = Token{}
if protoimpl.UnsafeEnabled { if protoimpl.UnsafeEnabled {
mi := &file_generate_protobuf_service_proto_msgTypes[13] mi := &file_generate_protobuf_permission_proto_msgTypes[13]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi) ms.StoreMessageInfo(mi)
} }
@ -809,7 +808,7 @@ func (x *Token) String() string {
func (*Token) ProtoMessage() {} func (*Token) ProtoMessage() {}
func (x *Token) ProtoReflect() protoreflect.Message { func (x *Token) ProtoReflect() protoreflect.Message {
mi := &file_generate_protobuf_service_proto_msgTypes[13] mi := &file_generate_protobuf_permission_proto_msgTypes[13]
if protoimpl.UnsafeEnabled && x != nil { if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil { if ms.LoadMessageInfo() == nil {
@ -822,7 +821,7 @@ func (x *Token) ProtoReflect() protoreflect.Message {
// Deprecated: Use Token.ProtoReflect.Descriptor instead. // Deprecated: Use Token.ProtoReflect.Descriptor instead.
func (*Token) Descriptor() ([]byte, []int) { func (*Token) Descriptor() ([]byte, []int) {
return file_generate_protobuf_service_proto_rawDescGZIP(), []int{13} return file_generate_protobuf_permission_proto_rawDescGZIP(), []int{13}
} }
func (x *Token) GetId() string { func (x *Token) GetId() string {
@ -907,7 +906,7 @@ type DoTokenByDeviceIDReq struct {
func (x *DoTokenByDeviceIDReq) Reset() { func (x *DoTokenByDeviceIDReq) Reset() {
*x = DoTokenByDeviceIDReq{} *x = DoTokenByDeviceIDReq{}
if protoimpl.UnsafeEnabled { if protoimpl.UnsafeEnabled {
mi := &file_generate_protobuf_service_proto_msgTypes[14] mi := &file_generate_protobuf_permission_proto_msgTypes[14]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi) ms.StoreMessageInfo(mi)
} }
@ -920,7 +919,7 @@ func (x *DoTokenByDeviceIDReq) String() string {
func (*DoTokenByDeviceIDReq) ProtoMessage() {} func (*DoTokenByDeviceIDReq) ProtoMessage() {}
func (x *DoTokenByDeviceIDReq) ProtoReflect() protoreflect.Message { func (x *DoTokenByDeviceIDReq) ProtoReflect() protoreflect.Message {
mi := &file_generate_protobuf_service_proto_msgTypes[14] mi := &file_generate_protobuf_permission_proto_msgTypes[14]
if protoimpl.UnsafeEnabled && x != nil { if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil { if ms.LoadMessageInfo() == nil {
@ -933,7 +932,7 @@ func (x *DoTokenByDeviceIDReq) ProtoReflect() protoreflect.Message {
// Deprecated: Use DoTokenByDeviceIDReq.ProtoReflect.Descriptor instead. // Deprecated: Use DoTokenByDeviceIDReq.ProtoReflect.Descriptor instead.
func (*DoTokenByDeviceIDReq) Descriptor() ([]byte, []int) { func (*DoTokenByDeviceIDReq) Descriptor() ([]byte, []int) {
return file_generate_protobuf_service_proto_rawDescGZIP(), []int{14} return file_generate_protobuf_permission_proto_rawDescGZIP(), []int{14}
} }
func (x *DoTokenByDeviceIDReq) GetDeviceId() string { func (x *DoTokenByDeviceIDReq) GetDeviceId() string {
@ -954,7 +953,7 @@ type Tokens struct {
func (x *Tokens) Reset() { func (x *Tokens) Reset() {
*x = Tokens{} *x = Tokens{}
if protoimpl.UnsafeEnabled { if protoimpl.UnsafeEnabled {
mi := &file_generate_protobuf_service_proto_msgTypes[15] mi := &file_generate_protobuf_permission_proto_msgTypes[15]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi) ms.StoreMessageInfo(mi)
} }
@ -967,7 +966,7 @@ func (x *Tokens) String() string {
func (*Tokens) ProtoMessage() {} func (*Tokens) ProtoMessage() {}
func (x *Tokens) ProtoReflect() protoreflect.Message { func (x *Tokens) ProtoReflect() protoreflect.Message {
mi := &file_generate_protobuf_service_proto_msgTypes[15] mi := &file_generate_protobuf_permission_proto_msgTypes[15]
if protoimpl.UnsafeEnabled && x != nil { if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil { if ms.LoadMessageInfo() == nil {
@ -980,7 +979,7 @@ func (x *Tokens) ProtoReflect() protoreflect.Message {
// Deprecated: Use Tokens.ProtoReflect.Descriptor instead. // Deprecated: Use Tokens.ProtoReflect.Descriptor instead.
func (*Tokens) Descriptor() ([]byte, []int) { func (*Tokens) Descriptor() ([]byte, []int) {
return file_generate_protobuf_service_proto_rawDescGZIP(), []int{15} return file_generate_protobuf_permission_proto_rawDescGZIP(), []int{15}
} }
func (x *Tokens) GetToken() []*TokenResp { func (x *Tokens) GetToken() []*TokenResp {
@ -1001,7 +1000,7 @@ type CancelOneTimeTokenReq struct {
func (x *CancelOneTimeTokenReq) Reset() { func (x *CancelOneTimeTokenReq) Reset() {
*x = CancelOneTimeTokenReq{} *x = CancelOneTimeTokenReq{}
if protoimpl.UnsafeEnabled { if protoimpl.UnsafeEnabled {
mi := &file_generate_protobuf_service_proto_msgTypes[16] mi := &file_generate_protobuf_permission_proto_msgTypes[16]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi) ms.StoreMessageInfo(mi)
} }
@ -1014,7 +1013,7 @@ func (x *CancelOneTimeTokenReq) String() string {
func (*CancelOneTimeTokenReq) ProtoMessage() {} func (*CancelOneTimeTokenReq) ProtoMessage() {}
func (x *CancelOneTimeTokenReq) ProtoReflect() protoreflect.Message { func (x *CancelOneTimeTokenReq) ProtoReflect() protoreflect.Message {
mi := &file_generate_protobuf_service_proto_msgTypes[16] mi := &file_generate_protobuf_permission_proto_msgTypes[16]
if protoimpl.UnsafeEnabled && x != nil { if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil { if ms.LoadMessageInfo() == nil {
@ -1027,7 +1026,7 @@ func (x *CancelOneTimeTokenReq) ProtoReflect() protoreflect.Message {
// Deprecated: Use CancelOneTimeTokenReq.ProtoReflect.Descriptor instead. // Deprecated: Use CancelOneTimeTokenReq.ProtoReflect.Descriptor instead.
func (*CancelOneTimeTokenReq) Descriptor() ([]byte, []int) { func (*CancelOneTimeTokenReq) Descriptor() ([]byte, []int) {
return file_generate_protobuf_service_proto_rawDescGZIP(), []int{16} return file_generate_protobuf_permission_proto_rawDescGZIP(), []int{16}
} }
func (x *CancelOneTimeTokenReq) GetToken() []string { func (x *CancelOneTimeTokenReq) GetToken() []string {
@ -1037,183 +1036,183 @@ func (x *CancelOneTimeTokenReq) GetToken() []string {
return nil return nil
} }
var File_generate_protobuf_service_proto protoreflect.FileDescriptor var File_generate_protobuf_permission_proto protoreflect.FileDescriptor
var file_generate_protobuf_service_proto_rawDesc = []byte{ var file_generate_protobuf_permission_proto_rawDesc = []byte{
0x0a, 0x1f, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x0a, 0x22, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f,
0x62, 0x75, 0x66, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x62, 0x75, 0x66, 0x2f, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x2e, 0x70,
0x6f, 0x12, 0x0a, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x22, 0x08, 0x0a, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0a, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e,
0x06, 0x4f, 0x4b, 0x52, 0x65, 0x73, 0x70, 0x22, 0x09, 0x0a, 0x07, 0x4e, 0x6f, 0x6e, 0x65, 0x52, 0x22, 0x08, 0x0a, 0x06, 0x4f, 0x4b, 0x52, 0x65, 0x73, 0x70, 0x22, 0x09, 0x0a, 0x07, 0x4e, 0x6f,
0x65, 0x71, 0x22, 0x9d, 0x02, 0x0a, 0x10, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x61, 0x6e, 0x65, 0x52, 0x65, 0x71, 0x22, 0x9d, 0x02, 0x0a, 0x10, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72,
0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x12, 0x1d, 0x0a, 0x0a, 0x67, 0x72, 0x61, 0x6e, 0x74, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x12, 0x1d, 0x0a, 0x0a, 0x67, 0x72,
0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x67, 0x72, 0x61, 0x61, 0x6e, 0x74, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09,
0x6e, 0x74, 0x54, 0x79, 0x70, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x67, 0x72, 0x61, 0x6e, 0x74, 0x54, 0x79, 0x70, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x64, 0x65, 0x76,
0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x64, 0x65, 0x76, 0x69, 0x63, 0x69, 0x63, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x64, 0x65,
0x65, 0x49, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x73, 0x63, 0x6f, 0x70, 0x65, 0x18, 0x03, 0x20, 0x01, 0x76, 0x69, 0x63, 0x65, 0x49, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x73, 0x63, 0x6f, 0x70, 0x65, 0x18,
0x28, 0x09, 0x52, 0x05, 0x73, 0x63, 0x6f, 0x70, 0x65, 0x12, 0x3a, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x73, 0x63, 0x6f, 0x70, 0x65, 0x12, 0x3a, 0x0a, 0x04,
0x61, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x64, 0x61, 0x74, 0x61, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x70, 0x65, 0x72,
0x73, 0x69, 0x6f, 0x6e, 0x2e, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x2e, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a,
0x6f, 0x6e, 0x52, 0x65, 0x71, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x45, 0x6e, 0x74,
0x04, 0x64, 0x61, 0x74, 0x61, 0x12, 0x18, 0x0a, 0x07, 0x65, 0x78, 0x70, 0x69, 0x72, 0x65, 0x73, 0x72, 0x79, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x12, 0x18, 0x0a, 0x07, 0x65, 0x78, 0x70, 0x69,
0x18, 0x05, 0x20, 0x01, 0x28, 0x05, 0x52, 0x07, 0x65, 0x78, 0x70, 0x69, 0x72, 0x65, 0x73, 0x12, 0x72, 0x65, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x05, 0x52, 0x07, 0x65, 0x78, 0x70, 0x69, 0x72,
0x28, 0x0a, 0x10, 0x69, 0x73, 0x5f, 0x72, 0x65, 0x66, 0x72, 0x65, 0x73, 0x68, 0x5f, 0x74, 0x6f, 0x65, 0x73, 0x12, 0x28, 0x0a, 0x10, 0x69, 0x73, 0x5f, 0x72, 0x65, 0x66, 0x72, 0x65, 0x73, 0x68,
0x6b, 0x65, 0x6e, 0x18, 0x06, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0e, 0x69, 0x73, 0x52, 0x65, 0x66, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x06, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0e, 0x69, 0x73,
0x72, 0x65, 0x73, 0x68, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x1a, 0x37, 0x0a, 0x09, 0x44, 0x61, 0x74, 0x52, 0x65, 0x66, 0x72, 0x65, 0x73, 0x68, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x1a, 0x37, 0x0a, 0x09,
0x61, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x44, 0x61, 0x74, 0x61, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79,
0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76,
0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75,
0x38, 0x01, 0x22, 0x91, 0x01, 0x0a, 0x09, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x91, 0x01, 0x0a, 0x09, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x52,
0x12, 0x21, 0x0a, 0x0c, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x65, 0x73, 0x70, 0x12, 0x21, 0x0a, 0x0c, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x74, 0x6f,
0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x61, 0x63, 0x63, 0x65, 0x73,
0x6b, 0x65, 0x6e, 0x12, 0x1d, 0x0a, 0x0a, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x5f, 0x74, 0x79, 0x70, 0x73, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x1d, 0x0a, 0x0a, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x5f,
0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x54, 0x79, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x74, 0x6f, 0x6b, 0x65,
0x70, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x65, 0x78, 0x70, 0x69, 0x72, 0x65, 0x73, 0x5f, 0x69, 0x6e, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x65, 0x78, 0x70, 0x69, 0x72, 0x65, 0x73,
0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x09, 0x65, 0x78, 0x70, 0x69, 0x72, 0x65, 0x73, 0x49, 0x5f, 0x69, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x09, 0x65, 0x78, 0x70, 0x69, 0x72,
0x6e, 0x12, 0x23, 0x0a, 0x0d, 0x72, 0x65, 0x66, 0x72, 0x65, 0x73, 0x68, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x73, 0x49, 0x6e, 0x12, 0x23, 0x0a, 0x0d, 0x72, 0x65, 0x66, 0x72, 0x65, 0x73, 0x68, 0x5f,
0x65, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x72, 0x65, 0x66, 0x72, 0x65, 0x73, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x72, 0x65, 0x66,
0x68, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x2d, 0x0a, 0x15, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x72, 0x65, 0x73, 0x68, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x2d, 0x0a, 0x15, 0x43, 0x72, 0x65,
0x4f, 0x6e, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x52, 0x65, 0x71, 0x12, 0x61, 0x74, 0x65, 0x4f, 0x6e, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x52,
0x65, 0x71, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28,
0x09, 0x52, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x3e, 0x0a, 0x16, 0x43, 0x72, 0x65, 0x61,
0x74, 0x65, 0x4f, 0x6e, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x52, 0x65,
0x73, 0x70, 0x12, 0x24, 0x0a, 0x0e, 0x6f, 0x6e, 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x5f, 0x74,
0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x6f, 0x6e, 0x65, 0x54,
0x69, 0x6d, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x74, 0x0a, 0x0f, 0x52, 0x65, 0x66, 0x72,
0x65, 0x73, 0x68, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x52, 0x65, 0x71, 0x12, 0x14, 0x0a, 0x05, 0x74,
0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x6f, 0x6b, 0x65,
0x6e, 0x12, 0x14, 0x0a, 0x05, 0x73, 0x63, 0x6f, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09,
0x52, 0x05, 0x73, 0x63, 0x6f, 0x70, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x65, 0x78, 0x70, 0x69, 0x72,
0x65, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x07, 0x65, 0x78, 0x70, 0x69, 0x72, 0x65,
0x73, 0x12, 0x1b, 0x0a, 0x09, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x04,
0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x49, 0x64, 0x22, 0x8c,
0x01, 0x0a, 0x10, 0x52, 0x65, 0x66, 0x72, 0x65, 0x73, 0x68, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x52,
0x65, 0x73, 0x70, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x01, 0x20, 0x01,
0x28, 0x09, 0x52, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x24, 0x0a, 0x0e, 0x6f, 0x6e, 0x65,
0x5f, 0x74, 0x69, 0x6d, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28,
0x09, 0x52, 0x0c, 0x6f, 0x6e, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12,
0x1d, 0x0a, 0x0a, 0x65, 0x78, 0x70, 0x69, 0x72, 0x65, 0x73, 0x5f, 0x69, 0x6e, 0x18, 0x03, 0x20,
0x01, 0x28, 0x03, 0x52, 0x09, 0x65, 0x78, 0x70, 0x69, 0x72, 0x65, 0x73, 0x49, 0x6e, 0x12, 0x1d,
0x0a, 0x0a, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x04, 0x20, 0x01,
0x28, 0x09, 0x52, 0x09, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x22, 0x26, 0x0a,
0x0e, 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x52, 0x65, 0x71, 0x12,
0x14, 0x0a, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x14, 0x0a, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05,
0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x3e, 0x0a, 0x16, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x35, 0x0a, 0x0f, 0x44, 0x6f, 0x54, 0x6f, 0x6b, 0x65, 0x6e,
0x6e, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x12, 0x42, 0x79, 0x55, 0x49, 0x44, 0x52, 0x65, 0x71, 0x12, 0x10, 0x0a, 0x03, 0x69, 0x64, 0x73, 0x18,
0x24, 0x0a, 0x0e, 0x6f, 0x6e, 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x03, 0x69, 0x64, 0x73, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x69,
0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x6f, 0x6e, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x69, 0x64, 0x22, 0x26, 0x0a, 0x12,
0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x74, 0x0a, 0x0f, 0x52, 0x65, 0x66, 0x72, 0x65, 0x73, 0x68, 0x51, 0x75, 0x65, 0x72, 0x79, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x42, 0x79, 0x55, 0x49, 0x44, 0x52,
0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x52, 0x65, 0x71, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x65, 0x71, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52,
0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x14, 0x03, 0x75, 0x69, 0x64, 0x22, 0x2a, 0x0a, 0x12, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x69,
0x0a, 0x05, 0x73, 0x63, 0x6f, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x73, 0x6f, 0x6e, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x52, 0x65, 0x71, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x6f,
0x63, 0x6f, 0x70, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x65, 0x78, 0x70, 0x69, 0x72, 0x65, 0x73, 0x18, 0x6b, 0x65, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e,
0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x07, 0x65, 0x78, 0x70, 0x69, 0x72, 0x65, 0x73, 0x12, 0x1b, 0x22, 0xb6, 0x01, 0x0a, 0x13, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x54,
0x0a, 0x09, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x6f, 0x6b, 0x65, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x12, 0x27, 0x0a, 0x05, 0x74, 0x6f, 0x6b, 0x65,
0x09, 0x52, 0x08, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x49, 0x64, 0x22, 0x8c, 0x01, 0x0a, 0x10, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73,
0x52, 0x65, 0x66, 0x72, 0x65, 0x73, 0x68, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x73, 0x69, 0x6f, 0x6e, 0x2e, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x52, 0x05, 0x74, 0x6f, 0x6b, 0x65,
0x12, 0x14, 0x0a, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x6e, 0x12, 0x3d, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32,
0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x24, 0x0a, 0x0e, 0x6f, 0x6e, 0x65, 0x5f, 0x74, 0x69, 0x29, 0x2e, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x2e, 0x56, 0x61, 0x6c,
0x6d, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x69, 0x64, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x52, 0x65, 0x73, 0x70,
0x6f, 0x6e, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x1d, 0x0a, 0x0a, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61,
0x65, 0x78, 0x70, 0x69, 0x72, 0x65, 0x73, 0x5f, 0x69, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x1a, 0x37, 0x0a, 0x09, 0x44, 0x61, 0x74, 0x61, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a,
0x52, 0x09, 0x65, 0x78, 0x70, 0x69, 0x72, 0x65, 0x73, 0x49, 0x6e, 0x12, 0x1d, 0x0a, 0x0a, 0x74, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12,
0x6f, 0x6b, 0x65, 0x6e, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05,
0x09, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x22, 0x26, 0x0a, 0x0e, 0x43, 0x61, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0xce, 0x02, 0x0a, 0x05, 0x54, 0x6f,
0x6e, 0x63, 0x65, 0x6c, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x52, 0x65, 0x71, 0x12, 0x14, 0x0a, 0x05, 0x6b, 0x65, 0x6e, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52,
0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x6f, 0x6b, 0x02, 0x69, 0x64, 0x12, 0x1b, 0x0a, 0x09, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x64,
0x65, 0x6e, 0x22, 0x35, 0x0a, 0x0f, 0x44, 0x6f, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x42, 0x79, 0x55, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x49, 0x64,
0x49, 0x44, 0x52, 0x65, 0x71, 0x12, 0x10, 0x0a, 0x03, 0x69, 0x64, 0x73, 0x18, 0x01, 0x20, 0x03, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x75,
0x28, 0x09, 0x52, 0x03, 0x69, 0x64, 0x73, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x69, 0x64, 0x18, 0x02, 0x69, 0x64, 0x12, 0x1b, 0x0a, 0x09, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x69, 0x64, 0x18,
0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x69, 0x64, 0x22, 0x26, 0x0a, 0x12, 0x51, 0x75, 0x65, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x49, 0x64, 0x12,
0x72, 0x79, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x42, 0x79, 0x55, 0x49, 0x44, 0x52, 0x65, 0x71, 0x12, 0x21, 0x0a, 0x0c, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18,
0x10, 0x0a, 0x03, 0x75, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x69, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x54, 0x6f, 0x6b,
0x64, 0x22, 0x2a, 0x0a, 0x12, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x65, 0x6e, 0x12, 0x1d, 0x0a, 0x0a, 0x65, 0x78, 0x70, 0x69, 0x72, 0x65, 0x73, 0x5f, 0x69, 0x6e,
0x6f, 0x6b, 0x65, 0x6e, 0x52, 0x65, 0x71, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x06, 0x20, 0x01, 0x28, 0x05, 0x52, 0x09, 0x65, 0x78, 0x70, 0x69, 0x72, 0x65, 0x73, 0x49,
0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0xb6, 0x01, 0x6e, 0x12, 0x28, 0x0a, 0x10, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x63, 0x72, 0x65, 0x61,
0x0a, 0x13, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x6f, 0x6b, 0x65, 0x74, 0x65, 0x5f, 0x61, 0x74, 0x18, 0x07, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0e, 0x61, 0x63, 0x63,
0x6e, 0x52, 0x65, 0x73, 0x70, 0x12, 0x27, 0x0a, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x01, 0x65, 0x73, 0x73, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x41, 0x74, 0x12, 0x23, 0x0a, 0x0d, 0x72,
0x20, 0x01, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x65, 0x66, 0x72, 0x65, 0x73, 0x68, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x08, 0x20, 0x01,
0x6e, 0x2e, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x52, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x3d, 0x28, 0x09, 0x52, 0x0c, 0x72, 0x65, 0x66, 0x72, 0x65, 0x73, 0x68, 0x54, 0x6f, 0x6b, 0x65, 0x6e,
0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x70, 0x12, 0x2c, 0x0a, 0x12, 0x72, 0x65, 0x66, 0x72, 0x65, 0x73, 0x68, 0x5f, 0x65, 0x78, 0x70, 0x69,
0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x2e, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x72, 0x65, 0x73, 0x5f, 0x69, 0x6e, 0x18, 0x09, 0x20, 0x01, 0x28, 0x05, 0x52, 0x10, 0x72, 0x65,
0x74, 0x69, 0x6f, 0x6e, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x2e, 0x44, 0x61, 0x66, 0x72, 0x65, 0x73, 0x68, 0x45, 0x78, 0x70, 0x69, 0x72, 0x65, 0x73, 0x49, 0x6e, 0x12, 0x2a,
0x74, 0x61, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x1a, 0x37, 0x0a, 0x0a, 0x11, 0x72, 0x65, 0x66, 0x72, 0x65, 0x73, 0x68, 0x5f, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65,
0x09, 0x44, 0x61, 0x74, 0x61, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x5f, 0x61, 0x74, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0f, 0x72, 0x65, 0x66, 0x72, 0x65,
0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x73, 0x68, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x41, 0x74, 0x22, 0x33, 0x0a, 0x14, 0x44, 0x6f,
0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x42, 0x79, 0x44, 0x65, 0x76, 0x69, 0x63, 0x65, 0x49, 0x44, 0x52,
0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0xce, 0x02, 0x0a, 0x05, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x65, 0x71, 0x12, 0x1b, 0x0a, 0x09, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x69, 0x64, 0x18,
0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x49, 0x64, 0x22,
0x12, 0x1b, 0x0a, 0x09, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x35, 0x0a, 0x06, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x73, 0x12, 0x2b, 0x0a, 0x05, 0x74, 0x6f, 0x6b,
0x01, 0x28, 0x05, 0x52, 0x08, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x10, 0x0a, 0x65, 0x6e, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x70, 0x65, 0x72, 0x6d, 0x69,
0x03, 0x75, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x69, 0x64, 0x12, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x2e, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x52,
0x1b, 0x0a, 0x09, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x2d, 0x0a, 0x15, 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c,
0x28, 0x09, 0x52, 0x08, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x49, 0x64, 0x12, 0x21, 0x0a, 0x0c, 0x4f, 0x6e, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x52, 0x65, 0x71, 0x12,
0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x05, 0x20, 0x01, 0x14, 0x0a, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x05,
0x28, 0x09, 0x52, 0x0b, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x32, 0xff, 0x05, 0x0a, 0x0c, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x53,
0x1d, 0x0a, 0x0a, 0x65, 0x78, 0x70, 0x69, 0x72, 0x65, 0x73, 0x5f, 0x69, 0x6e, 0x18, 0x06, 0x20, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x3f, 0x0a, 0x08, 0x4e, 0x65, 0x77, 0x54, 0x6f, 0x6b,
0x01, 0x28, 0x05, 0x52, 0x09, 0x65, 0x78, 0x70, 0x69, 0x72, 0x65, 0x73, 0x49, 0x6e, 0x12, 0x28, 0x65, 0x6e, 0x12, 0x1c, 0x2e, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x2e,
0x0a, 0x10, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x5f, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71,
0x61, 0x74, 0x18, 0x07, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0e, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x1a, 0x15, 0x2e, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x2e, 0x54, 0x6f,
0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x41, 0x74, 0x12, 0x23, 0x0a, 0x0d, 0x72, 0x65, 0x66, 0x72, 0x6b, 0x65, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x12, 0x49, 0x0a, 0x0c, 0x52, 0x65, 0x66, 0x72, 0x65,
0x65, 0x73, 0x68, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x73, 0x68, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x1b, 0x2e, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73,
0x0c, 0x72, 0x65, 0x66, 0x72, 0x65, 0x73, 0x68, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x2c, 0x0a, 0x73, 0x69, 0x6f, 0x6e, 0x2e, 0x52, 0x65, 0x66, 0x72, 0x65, 0x73, 0x68, 0x54, 0x6f, 0x6b, 0x65,
0x12, 0x72, 0x65, 0x66, 0x72, 0x65, 0x73, 0x68, 0x5f, 0x65, 0x78, 0x70, 0x69, 0x72, 0x65, 0x73, 0x6e, 0x52, 0x65, 0x71, 0x1a, 0x1c, 0x2e, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f,
0x5f, 0x69, 0x6e, 0x18, 0x09, 0x20, 0x01, 0x28, 0x05, 0x52, 0x10, 0x72, 0x65, 0x66, 0x72, 0x65,
0x73, 0x68, 0x45, 0x78, 0x70, 0x69, 0x72, 0x65, 0x73, 0x49, 0x6e, 0x12, 0x2a, 0x0a, 0x11, 0x72,
0x65, 0x66, 0x72, 0x65, 0x73, 0x68, 0x5f, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x5f, 0x61, 0x74,
0x18, 0x0a, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0f, 0x72, 0x65, 0x66, 0x72, 0x65, 0x73, 0x68, 0x43,
0x72, 0x65, 0x61, 0x74, 0x65, 0x41, 0x74, 0x22, 0x33, 0x0a, 0x14, 0x44, 0x6f, 0x54, 0x6f, 0x6b,
0x65, 0x6e, 0x42, 0x79, 0x44, 0x65, 0x76, 0x69, 0x63, 0x65, 0x49, 0x44, 0x52, 0x65, 0x71, 0x12,
0x1b, 0x0a, 0x09, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01,
0x28, 0x09, 0x52, 0x08, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x49, 0x64, 0x22, 0x35, 0x0a, 0x06,
0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x73, 0x12, 0x2b, 0x0a, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18,
0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69,
0x6f, 0x6e, 0x2e, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x52, 0x05, 0x74, 0x6f,
0x6b, 0x65, 0x6e, 0x22, 0x2d, 0x0a, 0x15, 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x4f, 0x6e, 0x65,
0x54, 0x69, 0x6d, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x52, 0x65, 0x71, 0x12, 0x14, 0x0a, 0x05,
0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x05, 0x74, 0x6f, 0x6b,
0x65, 0x6e, 0x32, 0xff, 0x05, 0x0a, 0x0c, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x53, 0x65, 0x72, 0x76,
0x69, 0x63, 0x65, 0x12, 0x3f, 0x0a, 0x08, 0x4e, 0x65, 0x77, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12,
0x1c, 0x2e, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x2e, 0x41, 0x75, 0x74,
0x68, 0x6f, 0x72, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x1a, 0x15, 0x2e,
0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x2e, 0x54, 0x6f, 0x6b, 0x65, 0x6e,
0x52, 0x65, 0x73, 0x70, 0x12, 0x49, 0x0a, 0x0c, 0x52, 0x65, 0x66, 0x72, 0x65, 0x73, 0x68, 0x54,
0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x1b, 0x2e, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f,
0x6e, 0x2e, 0x52, 0x65, 0x66, 0x72, 0x65, 0x73, 0x68, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x52, 0x65, 0x6e, 0x2e, 0x52, 0x65, 0x66, 0x72, 0x65, 0x73, 0x68, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x52, 0x65,
0x71, 0x1a, 0x1c, 0x2e, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x2e, 0x52, 0x73, 0x70, 0x12, 0x3d, 0x0a, 0x0b, 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x54, 0x6f, 0x6b, 0x65,
0x65, 0x66, 0x72, 0x65, 0x73, 0x68, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x12, 0x6e, 0x12, 0x1a, 0x2e, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x2e, 0x43,
0x3d, 0x0a, 0x0b, 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x1a, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x52, 0x65, 0x71, 0x1a, 0x12, 0x2e,
0x2e, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x2e, 0x43, 0x61, 0x6e, 0x63, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x2e, 0x4f, 0x4b, 0x52, 0x65, 0x73,
0x65, 0x6c, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x52, 0x65, 0x71, 0x1a, 0x12, 0x2e, 0x70, 0x65, 0x72, 0x70, 0x12, 0x52, 0x0a, 0x0f, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x54,
0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x2e, 0x4f, 0x4b, 0x52, 0x65, 0x73, 0x70, 0x12, 0x52, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x1e, 0x2e, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f,
0x0a, 0x0f, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x2e, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x6f, 0x6b, 0x65,
0x6e, 0x12, 0x1e, 0x2e, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x2e, 0x56, 0x6e, 0x52, 0x65, 0x71, 0x1a, 0x1f, 0x2e, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f,
0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x52, 0x65, 0x6e, 0x2e, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x6f, 0x6b, 0x65,
0x71, 0x1a, 0x1f, 0x2e, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x2e, 0x56, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x12, 0x3f, 0x0a, 0x0c, 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x54,
0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x52, 0x65, 0x6f, 0x6b, 0x65, 0x6e, 0x73, 0x12, 0x1b, 0x2e, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69,
0x73, 0x70, 0x12, 0x3f, 0x0a, 0x0c, 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x54, 0x6f, 0x6b, 0x65, 0x6f, 0x6e, 0x2e, 0x44, 0x6f, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x42, 0x79, 0x55, 0x49, 0x44, 0x52,
0x6e, 0x73, 0x12, 0x1b, 0x2e, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x2e, 0x65, 0x71, 0x1a, 0x12, 0x2e, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x2e,
0x44, 0x6f, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x42, 0x79, 0x55, 0x49, 0x44, 0x52, 0x65, 0x71, 0x1a, 0x4f, 0x4b, 0x52, 0x65, 0x73, 0x70, 0x12, 0x4d, 0x0a, 0x15, 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c,
0x12, 0x2e, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x2e, 0x4f, 0x4b, 0x52, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x42, 0x79, 0x44, 0x65, 0x76, 0x69, 0x63, 0x65, 0x49, 0x64, 0x12,
0x65, 0x73, 0x70, 0x12, 0x4d, 0x0a, 0x15, 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x54, 0x6f, 0x6b, 0x20, 0x2e, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x2e, 0x44, 0x6f, 0x54,
0x65, 0x6e, 0x42, 0x79, 0x44, 0x65, 0x76, 0x69, 0x63, 0x65, 0x49, 0x64, 0x12, 0x20, 0x2e, 0x70, 0x6f, 0x6b, 0x65, 0x6e, 0x42, 0x79, 0x44, 0x65, 0x76, 0x69, 0x63, 0x65, 0x49, 0x44, 0x52, 0x65,
0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x2e, 0x44, 0x6f, 0x54, 0x6f, 0x6b, 0x65, 0x71, 0x1a, 0x12, 0x2e, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x2e, 0x4f,
0x6e, 0x42, 0x79, 0x44, 0x65, 0x76, 0x69, 0x63, 0x65, 0x49, 0x44, 0x52, 0x65, 0x71, 0x1a, 0x12, 0x4b, 0x52, 0x65, 0x73, 0x70, 0x12, 0x4f, 0x0a, 0x17, 0x47, 0x65, 0x74, 0x55, 0x73, 0x65, 0x72,
0x2e, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x2e, 0x4f, 0x4b, 0x52, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x73, 0x42, 0x79, 0x44, 0x65, 0x76, 0x69, 0x63, 0x65, 0x49, 0x64,
0x73, 0x70, 0x12, 0x4f, 0x0a, 0x17, 0x47, 0x65, 0x74, 0x55, 0x73, 0x65, 0x72, 0x54, 0x6f, 0x6b, 0x12, 0x20, 0x2e, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x2e, 0x44, 0x6f,
0x65, 0x6e, 0x73, 0x42, 0x79, 0x44, 0x65, 0x76, 0x69, 0x63, 0x65, 0x49, 0x64, 0x12, 0x20, 0x2e, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x42, 0x79, 0x44, 0x65, 0x76, 0x69, 0x63, 0x65, 0x49, 0x44, 0x52,
0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x2e, 0x44, 0x6f, 0x54, 0x6f, 0x6b, 0x65, 0x71, 0x1a, 0x12, 0x2e, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x2e,
0x65, 0x6e, 0x42, 0x79, 0x44, 0x65, 0x76, 0x69, 0x63, 0x65, 0x49, 0x44, 0x52, 0x65, 0x71, 0x1a, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x73, 0x12, 0x48, 0x0a, 0x12, 0x47, 0x65, 0x74, 0x55, 0x73, 0x65,
0x12, 0x2e, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x2e, 0x54, 0x6f, 0x6b, 0x72, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x73, 0x42, 0x79, 0x55, 0x69, 0x64, 0x12, 0x1e, 0x2e, 0x70,
0x65, 0x6e, 0x73, 0x12, 0x48, 0x0a, 0x12, 0x47, 0x65, 0x74, 0x55, 0x73, 0x65, 0x72, 0x54, 0x6f, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x54,
0x6b, 0x65, 0x6e, 0x73, 0x42, 0x79, 0x55, 0x69, 0x64, 0x12, 0x1e, 0x2e, 0x70, 0x65, 0x72, 0x6d, 0x6f, 0x6b, 0x65, 0x6e, 0x42, 0x79, 0x55, 0x49, 0x44, 0x52, 0x65, 0x71, 0x1a, 0x12, 0x2e, 0x70,
0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x54, 0x6f, 0x6b, 0x65, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x2e, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x73,
0x6e, 0x42, 0x79, 0x55, 0x49, 0x44, 0x52, 0x65, 0x71, 0x1a, 0x12, 0x2e, 0x70, 0x65, 0x72, 0x6d, 0x12, 0x58, 0x0a, 0x0f, 0x4e, 0x65, 0x77, 0x4f, 0x6e, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x54, 0x6f,
0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x2e, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x73, 0x12, 0x58, 0x0a, 0x6b, 0x65, 0x6e, 0x12, 0x21, 0x2e, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e,
0x0f, 0x4e, 0x65, 0x77, 0x4f, 0x6e, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e,
0x12, 0x21, 0x2e, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x2e, 0x43, 0x72,
0x65, 0x61, 0x74, 0x65, 0x4f, 0x6e, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e,
0x52, 0x65, 0x71, 0x1a, 0x22, 0x2e, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e,
0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4f, 0x6e, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x54, 0x6f, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4f, 0x6e, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x54, 0x6f,
0x6b, 0x65, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x12, 0x4b, 0x0a, 0x12, 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6b, 0x65, 0x6e, 0x52, 0x65, 0x71, 0x1a, 0x22, 0x2e, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73,
0x6c, 0x4f, 0x6e, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x21, 0x2e, 0x69, 0x6f, 0x6e, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4f, 0x6e, 0x65, 0x54, 0x69, 0x6d,
0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x2e, 0x43, 0x61, 0x6e, 0x63, 0x65, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x12, 0x4b, 0x0a, 0x12, 0x43, 0x61,
0x6c, 0x4f, 0x6e, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x52, 0x65, 0x71, 0x6e, 0x63, 0x65, 0x6c, 0x4f, 0x6e, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e,
0x1a, 0x12, 0x2e, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x2e, 0x4f, 0x4b, 0x12, 0x21, 0x2e, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x2e, 0x43, 0x61,
0x52, 0x65, 0x73, 0x70, 0x42, 0x0e, 0x5a, 0x0c, 0x2e, 0x2f, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x6e, 0x63, 0x65, 0x6c, 0x4f, 0x6e, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e,
0x73, 0x69, 0x6f, 0x6e, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, 0x52, 0x65, 0x71, 0x1a, 0x12, 0x2e, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e,
0x2e, 0x4f, 0x4b, 0x52, 0x65, 0x73, 0x70, 0x42, 0x0e, 0x5a, 0x0c, 0x2e, 0x2f, 0x70, 0x65, 0x72,
0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
} }
var ( var (
file_generate_protobuf_service_proto_rawDescOnce sync.Once file_generate_protobuf_permission_proto_rawDescOnce sync.Once
file_generate_protobuf_service_proto_rawDescData = file_generate_protobuf_service_proto_rawDesc file_generate_protobuf_permission_proto_rawDescData = file_generate_protobuf_permission_proto_rawDesc
) )
func file_generate_protobuf_service_proto_rawDescGZIP() []byte { func file_generate_protobuf_permission_proto_rawDescGZIP() []byte {
file_generate_protobuf_service_proto_rawDescOnce.Do(func() { file_generate_protobuf_permission_proto_rawDescOnce.Do(func() {
file_generate_protobuf_service_proto_rawDescData = protoimpl.X.CompressGZIP(file_generate_protobuf_service_proto_rawDescData) file_generate_protobuf_permission_proto_rawDescData = protoimpl.X.CompressGZIP(file_generate_protobuf_permission_proto_rawDescData)
}) })
return file_generate_protobuf_service_proto_rawDescData return file_generate_protobuf_permission_proto_rawDescData
} }
var file_generate_protobuf_service_proto_msgTypes = make([]protoimpl.MessageInfo, 19) var file_generate_protobuf_permission_proto_msgTypes = make([]protoimpl.MessageInfo, 19)
var file_generate_protobuf_service_proto_goTypes = []any{ var file_generate_protobuf_permission_proto_goTypes = []any{
(*OKResp)(nil), // 0: permission.OKResp (*OKResp)(nil), // 0: permission.OKResp
(*NoneReq)(nil), // 1: permission.NoneReq (*NoneReq)(nil), // 1: permission.NoneReq
(*AuthorizationReq)(nil), // 2: permission.AuthorizationReq (*AuthorizationReq)(nil), // 2: permission.AuthorizationReq
@ -1234,7 +1233,7 @@ var file_generate_protobuf_service_proto_goTypes = []any{
nil, // 17: permission.AuthorizationReq.DataEntry nil, // 17: permission.AuthorizationReq.DataEntry
nil, // 18: permission.ValidationTokenResp.DataEntry nil, // 18: permission.ValidationTokenResp.DataEntry
} }
var file_generate_protobuf_service_proto_depIdxs = []int32{ var file_generate_protobuf_permission_proto_depIdxs = []int32{
17, // 0: permission.AuthorizationReq.data:type_name -> permission.AuthorizationReq.DataEntry 17, // 0: permission.AuthorizationReq.data:type_name -> permission.AuthorizationReq.DataEntry
13, // 1: permission.ValidationTokenResp.token:type_name -> permission.Token 13, // 1: permission.ValidationTokenResp.token:type_name -> permission.Token
18, // 2: permission.ValidationTokenResp.data:type_name -> permission.ValidationTokenResp.DataEntry 18, // 2: permission.ValidationTokenResp.data:type_name -> permission.ValidationTokenResp.DataEntry
@ -1266,13 +1265,13 @@ var file_generate_protobuf_service_proto_depIdxs = []int32{
0, // [0:4] is the sub-list for field type_name 0, // [0:4] is the sub-list for field type_name
} }
func init() { file_generate_protobuf_service_proto_init() } func init() { file_generate_protobuf_permission_proto_init() }
func file_generate_protobuf_service_proto_init() { func file_generate_protobuf_permission_proto_init() {
if File_generate_protobuf_service_proto != nil { if File_generate_protobuf_permission_proto != nil {
return return
} }
if !protoimpl.UnsafeEnabled { if !protoimpl.UnsafeEnabled {
file_generate_protobuf_service_proto_msgTypes[0].Exporter = func(v any, i int) any { file_generate_protobuf_permission_proto_msgTypes[0].Exporter = func(v any, i int) any {
switch v := v.(*OKResp); i { switch v := v.(*OKResp); i {
case 0: case 0:
return &v.state return &v.state
@ -1284,7 +1283,7 @@ func file_generate_protobuf_service_proto_init() {
return nil return nil
} }
} }
file_generate_protobuf_service_proto_msgTypes[1].Exporter = func(v any, i int) any { file_generate_protobuf_permission_proto_msgTypes[1].Exporter = func(v any, i int) any {
switch v := v.(*NoneReq); i { switch v := v.(*NoneReq); i {
case 0: case 0:
return &v.state return &v.state
@ -1296,7 +1295,7 @@ func file_generate_protobuf_service_proto_init() {
return nil return nil
} }
} }
file_generate_protobuf_service_proto_msgTypes[2].Exporter = func(v any, i int) any { file_generate_protobuf_permission_proto_msgTypes[2].Exporter = func(v any, i int) any {
switch v := v.(*AuthorizationReq); i { switch v := v.(*AuthorizationReq); i {
case 0: case 0:
return &v.state return &v.state
@ -1308,7 +1307,7 @@ func file_generate_protobuf_service_proto_init() {
return nil return nil
} }
} }
file_generate_protobuf_service_proto_msgTypes[3].Exporter = func(v any, i int) any { file_generate_protobuf_permission_proto_msgTypes[3].Exporter = func(v any, i int) any {
switch v := v.(*TokenResp); i { switch v := v.(*TokenResp); i {
case 0: case 0:
return &v.state return &v.state
@ -1320,7 +1319,7 @@ func file_generate_protobuf_service_proto_init() {
return nil return nil
} }
} }
file_generate_protobuf_service_proto_msgTypes[4].Exporter = func(v any, i int) any { file_generate_protobuf_permission_proto_msgTypes[4].Exporter = func(v any, i int) any {
switch v := v.(*CreateOneTimeTokenReq); i { switch v := v.(*CreateOneTimeTokenReq); i {
case 0: case 0:
return &v.state return &v.state
@ -1332,7 +1331,7 @@ func file_generate_protobuf_service_proto_init() {
return nil return nil
} }
} }
file_generate_protobuf_service_proto_msgTypes[5].Exporter = func(v any, i int) any { file_generate_protobuf_permission_proto_msgTypes[5].Exporter = func(v any, i int) any {
switch v := v.(*CreateOneTimeTokenResp); i { switch v := v.(*CreateOneTimeTokenResp); i {
case 0: case 0:
return &v.state return &v.state
@ -1344,7 +1343,7 @@ func file_generate_protobuf_service_proto_init() {
return nil return nil
} }
} }
file_generate_protobuf_service_proto_msgTypes[6].Exporter = func(v any, i int) any { file_generate_protobuf_permission_proto_msgTypes[6].Exporter = func(v any, i int) any {
switch v := v.(*RefreshTokenReq); i { switch v := v.(*RefreshTokenReq); i {
case 0: case 0:
return &v.state return &v.state
@ -1356,7 +1355,7 @@ func file_generate_protobuf_service_proto_init() {
return nil return nil
} }
} }
file_generate_protobuf_service_proto_msgTypes[7].Exporter = func(v any, i int) any { file_generate_protobuf_permission_proto_msgTypes[7].Exporter = func(v any, i int) any {
switch v := v.(*RefreshTokenResp); i { switch v := v.(*RefreshTokenResp); i {
case 0: case 0:
return &v.state return &v.state
@ -1368,7 +1367,7 @@ func file_generate_protobuf_service_proto_init() {
return nil return nil
} }
} }
file_generate_protobuf_service_proto_msgTypes[8].Exporter = func(v any, i int) any { file_generate_protobuf_permission_proto_msgTypes[8].Exporter = func(v any, i int) any {
switch v := v.(*CancelTokenReq); i { switch v := v.(*CancelTokenReq); i {
case 0: case 0:
return &v.state return &v.state
@ -1380,7 +1379,7 @@ func file_generate_protobuf_service_proto_init() {
return nil return nil
} }
} }
file_generate_protobuf_service_proto_msgTypes[9].Exporter = func(v any, i int) any { file_generate_protobuf_permission_proto_msgTypes[9].Exporter = func(v any, i int) any {
switch v := v.(*DoTokenByUIDReq); i { switch v := v.(*DoTokenByUIDReq); i {
case 0: case 0:
return &v.state return &v.state
@ -1392,7 +1391,7 @@ func file_generate_protobuf_service_proto_init() {
return nil return nil
} }
} }
file_generate_protobuf_service_proto_msgTypes[10].Exporter = func(v any, i int) any { file_generate_protobuf_permission_proto_msgTypes[10].Exporter = func(v any, i int) any {
switch v := v.(*QueryTokenByUIDReq); i { switch v := v.(*QueryTokenByUIDReq); i {
case 0: case 0:
return &v.state return &v.state
@ -1404,7 +1403,7 @@ func file_generate_protobuf_service_proto_init() {
return nil return nil
} }
} }
file_generate_protobuf_service_proto_msgTypes[11].Exporter = func(v any, i int) any { file_generate_protobuf_permission_proto_msgTypes[11].Exporter = func(v any, i int) any {
switch v := v.(*ValidationTokenReq); i { switch v := v.(*ValidationTokenReq); i {
case 0: case 0:
return &v.state return &v.state
@ -1416,7 +1415,7 @@ func file_generate_protobuf_service_proto_init() {
return nil return nil
} }
} }
file_generate_protobuf_service_proto_msgTypes[12].Exporter = func(v any, i int) any { file_generate_protobuf_permission_proto_msgTypes[12].Exporter = func(v any, i int) any {
switch v := v.(*ValidationTokenResp); i { switch v := v.(*ValidationTokenResp); i {
case 0: case 0:
return &v.state return &v.state
@ -1428,7 +1427,7 @@ func file_generate_protobuf_service_proto_init() {
return nil return nil
} }
} }
file_generate_protobuf_service_proto_msgTypes[13].Exporter = func(v any, i int) any { file_generate_protobuf_permission_proto_msgTypes[13].Exporter = func(v any, i int) any {
switch v := v.(*Token); i { switch v := v.(*Token); i {
case 0: case 0:
return &v.state return &v.state
@ -1440,7 +1439,7 @@ func file_generate_protobuf_service_proto_init() {
return nil return nil
} }
} }
file_generate_protobuf_service_proto_msgTypes[14].Exporter = func(v any, i int) any { file_generate_protobuf_permission_proto_msgTypes[14].Exporter = func(v any, i int) any {
switch v := v.(*DoTokenByDeviceIDReq); i { switch v := v.(*DoTokenByDeviceIDReq); i {
case 0: case 0:
return &v.state return &v.state
@ -1452,7 +1451,7 @@ func file_generate_protobuf_service_proto_init() {
return nil return nil
} }
} }
file_generate_protobuf_service_proto_msgTypes[15].Exporter = func(v any, i int) any { file_generate_protobuf_permission_proto_msgTypes[15].Exporter = func(v any, i int) any {
switch v := v.(*Tokens); i { switch v := v.(*Tokens); i {
case 0: case 0:
return &v.state return &v.state
@ -1464,7 +1463,7 @@ func file_generate_protobuf_service_proto_init() {
return nil return nil
} }
} }
file_generate_protobuf_service_proto_msgTypes[16].Exporter = func(v any, i int) any { file_generate_protobuf_permission_proto_msgTypes[16].Exporter = func(v any, i int) any {
switch v := v.(*CancelOneTimeTokenReq); i { switch v := v.(*CancelOneTimeTokenReq); i {
case 0: case 0:
return &v.state return &v.state
@ -1481,18 +1480,18 @@ func file_generate_protobuf_service_proto_init() {
out := protoimpl.TypeBuilder{ out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{ File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(), GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_generate_protobuf_service_proto_rawDesc, RawDescriptor: file_generate_protobuf_permission_proto_rawDesc,
NumEnums: 0, NumEnums: 0,
NumMessages: 19, NumMessages: 19,
NumExtensions: 0, NumExtensions: 0,
NumServices: 1, NumServices: 1,
}, },
GoTypes: file_generate_protobuf_service_proto_goTypes, GoTypes: file_generate_protobuf_permission_proto_goTypes,
DependencyIndexes: file_generate_protobuf_service_proto_depIdxs, DependencyIndexes: file_generate_protobuf_permission_proto_depIdxs,
MessageInfos: file_generate_protobuf_service_proto_msgTypes, MessageInfos: file_generate_protobuf_permission_proto_msgTypes,
}.Build() }.Build()
File_generate_protobuf_service_proto = out.File File_generate_protobuf_permission_proto = out.File
file_generate_protobuf_service_proto_rawDesc = nil file_generate_protobuf_permission_proto_rawDesc = nil
file_generate_protobuf_service_proto_goTypes = nil file_generate_protobuf_permission_proto_goTypes = nil
file_generate_protobuf_service_proto_depIdxs = nil file_generate_protobuf_permission_proto_depIdxs = nil
} }

View File

@ -2,13 +2,12 @@
// versions: // versions:
// - protoc-gen-go-grpc v1.4.0 // - protoc-gen-go-grpc v1.4.0
// - protoc v3.19.4 // - protoc v3.19.4
// source: generate/protobuf/service.proto // source: generate/protobuf/permission.proto
package permission package permission
import ( import (
context "context" context "context"
grpc "google.golang.org/grpc" grpc "google.golang.org/grpc"
codes "google.golang.org/grpc/codes" codes "google.golang.org/grpc/codes"
status "google.golang.org/grpc/status" status "google.golang.org/grpc/status"
@ -477,5 +476,5 @@ var TokenService_ServiceDesc = grpc.ServiceDesc{
}, },
}, },
Streams: []grpc.StreamDesc{}, Streams: []grpc.StreamDesc{},
Metadata: "generate/protobuf/service.proto", Metadata: "generate/protobuf/permission.proto",
} }