From 194c0e9cc42fe563d5cac30083a40b5a277fb82f Mon Sep 17 00:00:00 2001 From: "daniel.w" Date: Sat, 24 Aug 2024 23:14:06 +0800 Subject: [PATCH 1/2] add notification --- go.mod | 12 + pkg/notification/service.pb.go | 486 ++++++++++++++++++++++++++++ pkg/notification/service_grpc.pb.go | 232 +++++++++++++ 3 files changed, 730 insertions(+) create mode 100644 pkg/notification/service.pb.go create mode 100644 pkg/notification/service_grpc.pb.go diff --git a/go.mod b/go.mod index 27dc1aa..345240e 100644 --- a/go.mod +++ b/go.mod @@ -1,3 +1,15 @@ module code.30cm.net/digimon/proto-all go 1.22.3 + +require ( + google.golang.org/grpc v1.65.0 + google.golang.org/protobuf v1.34.2 +) + +require ( + golang.org/x/net v0.25.0 // indirect + golang.org/x/sys v0.20.0 // indirect + golang.org/x/text v0.15.0 // indirect + google.golang.org/genproto/googleapis/rpc v0.0.0-20240528184218-531527333157 // indirect +) diff --git a/pkg/notification/service.pb.go b/pkg/notification/service.pb.go new file mode 100644 index 0000000..3a8a9f5 --- /dev/null +++ b/pkg/notification/service.pb.go @@ -0,0 +1,486 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.34.2 +// protoc v3.19.4 +// source: generate/protobuf/service.proto + +package notification + +import ( + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" +) + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +// OKResp +type OKResp struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *OKResp) Reset() { + *x = OKResp{} + if protoimpl.UnsafeEnabled { + mi := &file_generate_protobuf_service_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *OKResp) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*OKResp) ProtoMessage() {} + +func (x *OKResp) ProtoReflect() protoreflect.Message { + mi := &file_generate_protobuf_service_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use OKResp.ProtoReflect.Descriptor instead. +func (*OKResp) Descriptor() ([]byte, []int) { + return file_generate_protobuf_service_proto_rawDescGZIP(), []int{0} +} + +// NoneReq +type NoneReq struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *NoneReq) Reset() { + *x = NoneReq{} + if protoimpl.UnsafeEnabled { + mi := &file_generate_protobuf_service_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *NoneReq) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*NoneReq) ProtoMessage() {} + +func (x *NoneReq) ProtoReflect() protoreflect.Message { + mi := &file_generate_protobuf_service_proto_msgTypes[1] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use NoneReq.ProtoReflect.Descriptor instead. +func (*NoneReq) Descriptor() ([]byte, []int) { + return file_generate_protobuf_service_proto_rawDescGZIP(), []int{1} +} + +type SendMailReq struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + To string `protobuf:"bytes,1,opt,name=to,proto3" json:"to,omitempty"` + Subject string `protobuf:"bytes,2,opt,name=subject,proto3" json:"subject,omitempty"` + Body string `protobuf:"bytes,3,opt,name=body,proto3" json:"body,omitempty"` + From string `protobuf:"bytes,4,opt,name=from,proto3" json:"from,omitempty"` +} + +func (x *SendMailReq) Reset() { + *x = SendMailReq{} + if protoimpl.UnsafeEnabled { + mi := &file_generate_protobuf_service_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *SendMailReq) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*SendMailReq) ProtoMessage() {} + +func (x *SendMailReq) ProtoReflect() protoreflect.Message { + mi := &file_generate_protobuf_service_proto_msgTypes[2] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use SendMailReq.ProtoReflect.Descriptor instead. +func (*SendMailReq) Descriptor() ([]byte, []int) { + return file_generate_protobuf_service_proto_rawDescGZIP(), []int{2} +} + +func (x *SendMailReq) GetTo() string { + if x != nil { + return x.To + } + return "" +} + +func (x *SendMailReq) GetSubject() string { + if x != nil { + return x.Subject + } + return "" +} + +func (x *SendMailReq) GetBody() string { + if x != nil { + return x.Body + } + return "" +} + +func (x *SendMailReq) GetFrom() string { + if x != nil { + return x.From + } + return "" +} + +type SendSMSReq struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + To string `protobuf:"bytes,1,opt,name=to,proto3" json:"to,omitempty"` + Body string `protobuf:"bytes,2,opt,name=body,proto3" json:"body,omitempty"` + RecipientName string `protobuf:"bytes,3,opt,name=recipient_name,json=recipientName,proto3" json:"recipient_name,omitempty"` +} + +func (x *SendSMSReq) Reset() { + *x = SendSMSReq{} + if protoimpl.UnsafeEnabled { + mi := &file_generate_protobuf_service_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *SendSMSReq) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*SendSMSReq) ProtoMessage() {} + +func (x *SendSMSReq) ProtoReflect() protoreflect.Message { + mi := &file_generate_protobuf_service_proto_msgTypes[3] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use SendSMSReq.ProtoReflect.Descriptor instead. +func (*SendSMSReq) Descriptor() ([]byte, []int) { + return file_generate_protobuf_service_proto_rawDescGZIP(), []int{3} +} + +func (x *SendSMSReq) GetTo() string { + if x != nil { + return x.To + } + return "" +} + +func (x *SendSMSReq) GetBody() string { + if x != nil { + return x.Body + } + return "" +} + +func (x *SendSMSReq) GetRecipientName() string { + if x != nil { + return x.RecipientName + } + return "" +} + +type SendByTemplateIDReq struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + To string `protobuf:"bytes,1,opt,name=to,proto3" json:"to,omitempty"` + TemplateId string `protobuf:"bytes,2,opt,name=template_id,json=templateId,proto3" json:"template_id,omitempty"` + Lang string `protobuf:"bytes,3,opt,name=lang,proto3" json:"lang,omitempty"` + ContentData map[string]string `protobuf:"bytes,4,rep,name=content_data,json=contentData,proto3" json:"content_data,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` +} + +func (x *SendByTemplateIDReq) Reset() { + *x = SendByTemplateIDReq{} + if protoimpl.UnsafeEnabled { + mi := &file_generate_protobuf_service_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *SendByTemplateIDReq) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*SendByTemplateIDReq) ProtoMessage() {} + +func (x *SendByTemplateIDReq) ProtoReflect() protoreflect.Message { + mi := &file_generate_protobuf_service_proto_msgTypes[4] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use SendByTemplateIDReq.ProtoReflect.Descriptor instead. +func (*SendByTemplateIDReq) Descriptor() ([]byte, []int) { + return file_generate_protobuf_service_proto_rawDescGZIP(), []int{4} +} + +func (x *SendByTemplateIDReq) GetTo() string { + if x != nil { + return x.To + } + return "" +} + +func (x *SendByTemplateIDReq) GetTemplateId() string { + if x != nil { + return x.TemplateId + } + return "" +} + +func (x *SendByTemplateIDReq) GetLang() string { + if x != nil { + return x.Lang + } + return "" +} + +func (x *SendByTemplateIDReq) GetContentData() map[string]string { + if x != nil { + return x.ContentData + } + return nil +} + +var File_generate_protobuf_service_proto protoreflect.FileDescriptor + +var file_generate_protobuf_service_proto_rawDesc = []byte{ + 0x0a, 0x1f, 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, + 0x6f, 0x12, 0x0c, 0x6e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, + 0x08, 0x0a, 0x06, 0x4f, 0x4b, 0x52, 0x65, 0x73, 0x70, 0x22, 0x09, 0x0a, 0x07, 0x4e, 0x6f, 0x6e, + 0x65, 0x52, 0x65, 0x71, 0x22, 0x5f, 0x0a, 0x0b, 0x53, 0x65, 0x6e, 0x64, 0x4d, 0x61, 0x69, 0x6c, + 0x52, 0x65, 0x71, 0x12, 0x0e, 0x0a, 0x02, 0x74, 0x6f, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x02, 0x74, 0x6f, 0x12, 0x18, 0x0a, 0x07, 0x73, 0x75, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x73, 0x75, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x12, 0x12, 0x0a, + 0x04, 0x62, 0x6f, 0x64, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x62, 0x6f, 0x64, + 0x79, 0x12, 0x12, 0x0a, 0x04, 0x66, 0x72, 0x6f, 0x6d, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x04, 0x66, 0x72, 0x6f, 0x6d, 0x22, 0x57, 0x0a, 0x0a, 0x53, 0x65, 0x6e, 0x64, 0x53, 0x4d, 0x53, + 0x52, 0x65, 0x71, 0x12, 0x0e, 0x0a, 0x02, 0x74, 0x6f, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x02, 0x74, 0x6f, 0x12, 0x12, 0x0a, 0x04, 0x62, 0x6f, 0x64, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x04, 0x62, 0x6f, 0x64, 0x79, 0x12, 0x25, 0x0a, 0x0e, 0x72, 0x65, 0x63, 0x69, 0x70, + 0x69, 0x65, 0x6e, 0x74, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x0d, 0x72, 0x65, 0x63, 0x69, 0x70, 0x69, 0x65, 0x6e, 0x74, 0x4e, 0x61, 0x6d, 0x65, 0x22, 0xf1, + 0x01, 0x0a, 0x13, 0x53, 0x65, 0x6e, 0x64, 0x42, 0x79, 0x54, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, + 0x65, 0x49, 0x44, 0x52, 0x65, 0x71, 0x12, 0x0e, 0x0a, 0x02, 0x74, 0x6f, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x02, 0x74, 0x6f, 0x12, 0x1f, 0x0a, 0x0b, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, + 0x74, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x74, 0x65, 0x6d, + 0x70, 0x6c, 0x61, 0x74, 0x65, 0x49, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6c, 0x61, 0x6e, 0x67, 0x18, + 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6c, 0x61, 0x6e, 0x67, 0x12, 0x55, 0x0a, 0x0c, 0x63, + 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x5f, 0x64, 0x61, 0x74, 0x61, 0x18, 0x04, 0x20, 0x03, 0x28, + 0x0b, 0x32, 0x32, 0x2e, 0x6e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x2e, 0x53, 0x65, 0x6e, 0x64, 0x42, 0x79, 0x54, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x49, + 0x44, 0x52, 0x65, 0x71, 0x2e, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x44, 0x61, 0x74, 0x61, + 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0b, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x44, 0x61, + 0x74, 0x61, 0x1a, 0x3e, 0x0a, 0x10, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x44, 0x61, 0x74, + 0x61, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, + 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, + 0x38, 0x01, 0x32, 0xa8, 0x02, 0x0a, 0x0d, 0x53, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x53, 0x65, 0x72, + 0x76, 0x69, 0x63, 0x65, 0x12, 0x3b, 0x0a, 0x08, 0x53, 0x65, 0x6e, 0x64, 0x4d, 0x61, 0x69, 0x6c, + 0x12, 0x19, 0x2e, 0x6e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 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, 0x70, 0x12, 0x4f, 0x0a, 0x14, + 0x53, 0x65, 0x6e, 0x64, 0x4d, 0x61, 0x69, 0x6c, 0x42, 0x79, 0x54, 0x65, 0x6d, 0x70, 0x6c, 0x61, + 0x74, 0x65, 0x49, 0x64, 0x12, 0x21, 0x2e, 0x6e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x2e, 0x53, 0x65, 0x6e, 0x64, 0x42, 0x79, 0x54, 0x65, 0x6d, 0x70, 0x6c, 0x61, + 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, 0x12, 0x4e, 0x0a, + 0x13, 0x53, 0x65, 0x6e, 0x64, 0x53, 0x6d, 0x73, 0x42, 0x79, 0x54, 0x65, 0x6d, 0x70, 0x6c, 0x61, + 0x74, 0x65, 0x49, 0x64, 0x12, 0x21, 0x2e, 0x6e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x2e, 0x53, 0x65, 0x6e, 0x64, 0x42, 0x79, 0x54, 0x65, 0x6d, 0x70, 0x6c, 0x61, + 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 ( + file_generate_protobuf_service_proto_rawDescOnce sync.Once + file_generate_protobuf_service_proto_rawDescData = file_generate_protobuf_service_proto_rawDesc +) + +func file_generate_protobuf_service_proto_rawDescGZIP() []byte { + file_generate_protobuf_service_proto_rawDescOnce.Do(func() { + file_generate_protobuf_service_proto_rawDescData = protoimpl.X.CompressGZIP(file_generate_protobuf_service_proto_rawDescData) + }) + return file_generate_protobuf_service_proto_rawDescData +} + +var file_generate_protobuf_service_proto_msgTypes = make([]protoimpl.MessageInfo, 6) +var file_generate_protobuf_service_proto_goTypes = []any{ + (*OKResp)(nil), // 0: notification.OKResp + (*NoneReq)(nil), // 1: notification.NoneReq + (*SendMailReq)(nil), // 2: notification.SendMailReq + (*SendSMSReq)(nil), // 3: notification.SendSMSReq + (*SendByTemplateIDReq)(nil), // 4: notification.SendByTemplateIDReq + nil, // 5: notification.SendByTemplateIDReq.ContentDataEntry +} +var file_generate_protobuf_service_proto_depIdxs = []int32{ + 5, // 0: notification.SendByTemplateIDReq.content_data:type_name -> notification.SendByTemplateIDReq.ContentDataEntry + 2, // 1: notification.SenderService.SendMail:input_type -> notification.SendMailReq + 3, // 2: notification.SenderService.SendSms:input_type -> notification.SendSMSReq + 4, // 3: notification.SenderService.SendMailByTemplateId:input_type -> notification.SendByTemplateIDReq + 4, // 4: notification.SenderService.SendSmsByTemplateId:input_type -> notification.SendByTemplateIDReq + 0, // 5: notification.SenderService.SendMail:output_type -> notification.OKResp + 0, // 6: notification.SenderService.SendSms:output_type -> notification.OKResp + 0, // 7: notification.SenderService.SendMailByTemplateId:output_type -> notification.OKResp + 0, // 8: notification.SenderService.SendSmsByTemplateId:output_type -> notification.OKResp + 5, // [5:9] is the sub-list for method output_type + 1, // [1:5] is the sub-list for method input_type + 1, // [1:1] is the sub-list for extension type_name + 1, // [1:1] is the sub-list for extension extendee + 0, // [0:1] is the sub-list for field type_name +} + +func init() { file_generate_protobuf_service_proto_init() } +func file_generate_protobuf_service_proto_init() { + if File_generate_protobuf_service_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_generate_protobuf_service_proto_msgTypes[0].Exporter = func(v any, i int) any { + switch v := v.(*OKResp); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_generate_protobuf_service_proto_msgTypes[1].Exporter = func(v any, i int) any { + switch v := v.(*NoneReq); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_generate_protobuf_service_proto_msgTypes[2].Exporter = func(v any, i int) any { + switch v := v.(*SendMailReq); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_generate_protobuf_service_proto_msgTypes[3].Exporter = func(v any, i int) any { + switch v := v.(*SendSMSReq); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_generate_protobuf_service_proto_msgTypes[4].Exporter = func(v any, i int) any { + switch v := v.(*SendByTemplateIDReq); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_generate_protobuf_service_proto_rawDesc, + NumEnums: 0, + NumMessages: 6, + NumExtensions: 0, + NumServices: 1, + }, + GoTypes: file_generate_protobuf_service_proto_goTypes, + DependencyIndexes: file_generate_protobuf_service_proto_depIdxs, + MessageInfos: file_generate_protobuf_service_proto_msgTypes, + }.Build() + File_generate_protobuf_service_proto = out.File + file_generate_protobuf_service_proto_rawDesc = nil + file_generate_protobuf_service_proto_goTypes = nil + file_generate_protobuf_service_proto_depIdxs = nil +} diff --git a/pkg/notification/service_grpc.pb.go b/pkg/notification/service_grpc.pb.go new file mode 100644 index 0000000..52f7497 --- /dev/null +++ b/pkg/notification/service_grpc.pb.go @@ -0,0 +1,232 @@ +// Code generated by protoc-gen-go-grpc. DO NOT EDIT. +// versions: +// - protoc-gen-go-grpc v1.4.0 +// - protoc v3.19.4 +// source: generate/protobuf/service.proto + +package notification + +import ( + context "context" + grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" +) + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the grpc package it is being compiled against. +// Requires gRPC-Go v1.62.0 or later. +const _ = grpc.SupportPackageIsVersion8 + +const ( + SenderService_SendMail_FullMethodName = "/notification.SenderService/SendMail" + SenderService_SendSms_FullMethodName = "/notification.SenderService/SendSms" + SenderService_SendMailByTemplateId_FullMethodName = "/notification.SenderService/SendMailByTemplateId" + SenderService_SendSmsByTemplateId_FullMethodName = "/notification.SenderService/SendSmsByTemplateId" +) + +// SenderServiceClient is the client API for SenderService service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. +type SenderServiceClient interface { + // SendMail 寄信 + SendMail(ctx context.Context, in *SendMailReq, opts ...grpc.CallOption) (*OKResp, error) + // SendSms 寄簡訊 + SendSms(ctx context.Context, in *SendSMSReq, opts ...grpc.CallOption) (*OKResp, error) + // SendMailByTemplateId 寄送模板信件 + SendMailByTemplateId(ctx context.Context, in *SendByTemplateIDReq, opts ...grpc.CallOption) (*OKResp, error) + // SendSmsByTemplateId 寄送模板簡訊 + SendSmsByTemplateId(ctx context.Context, in *SendByTemplateIDReq, opts ...grpc.CallOption) (*OKResp, error) +} + +type senderServiceClient struct { + cc grpc.ClientConnInterface +} + +func NewSenderServiceClient(cc grpc.ClientConnInterface) SenderServiceClient { + return &senderServiceClient{cc} +} + +func (c *senderServiceClient) SendMail(ctx context.Context, in *SendMailReq, opts ...grpc.CallOption) (*OKResp, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(OKResp) + err := c.cc.Invoke(ctx, SenderService_SendMail_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *senderServiceClient) SendSms(ctx context.Context, in *SendSMSReq, opts ...grpc.CallOption) (*OKResp, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(OKResp) + err := c.cc.Invoke(ctx, SenderService_SendSms_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *senderServiceClient) SendMailByTemplateId(ctx context.Context, in *SendByTemplateIDReq, opts ...grpc.CallOption) (*OKResp, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(OKResp) + err := c.cc.Invoke(ctx, SenderService_SendMailByTemplateId_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *senderServiceClient) SendSmsByTemplateId(ctx context.Context, in *SendByTemplateIDReq, opts ...grpc.CallOption) (*OKResp, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(OKResp) + err := c.cc.Invoke(ctx, SenderService_SendSmsByTemplateId_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +// SenderServiceServer is the server API for SenderService service. +// All implementations must embed UnimplementedSenderServiceServer +// for forward compatibility +type SenderServiceServer interface { + // SendMail 寄信 + SendMail(context.Context, *SendMailReq) (*OKResp, error) + // SendSms 寄簡訊 + SendSms(context.Context, *SendSMSReq) (*OKResp, error) + // SendMailByTemplateId 寄送模板信件 + SendMailByTemplateId(context.Context, *SendByTemplateIDReq) (*OKResp, error) + // SendSmsByTemplateId 寄送模板簡訊 + SendSmsByTemplateId(context.Context, *SendByTemplateIDReq) (*OKResp, error) + mustEmbedUnimplementedSenderServiceServer() +} + +// UnimplementedSenderServiceServer must be embedded to have forward compatible implementations. +type UnimplementedSenderServiceServer struct { +} + +func (UnimplementedSenderServiceServer) SendMail(context.Context, *SendMailReq) (*OKResp, error) { + return nil, status.Errorf(codes.Unimplemented, "method SendMail not implemented") +} +func (UnimplementedSenderServiceServer) SendSms(context.Context, *SendSMSReq) (*OKResp, error) { + return nil, status.Errorf(codes.Unimplemented, "method SendSms not implemented") +} +func (UnimplementedSenderServiceServer) SendMailByTemplateId(context.Context, *SendByTemplateIDReq) (*OKResp, error) { + return nil, status.Errorf(codes.Unimplemented, "method SendMailByTemplateId not implemented") +} +func (UnimplementedSenderServiceServer) SendSmsByTemplateId(context.Context, *SendByTemplateIDReq) (*OKResp, error) { + return nil, status.Errorf(codes.Unimplemented, "method SendSmsByTemplateId not implemented") +} +func (UnimplementedSenderServiceServer) mustEmbedUnimplementedSenderServiceServer() {} + +// UnsafeSenderServiceServer may be embedded to opt out of forward compatibility for this service. +// Use of this interface is not recommended, as added methods to SenderServiceServer will +// result in compilation errors. +type UnsafeSenderServiceServer interface { + mustEmbedUnimplementedSenderServiceServer() +} + +func RegisterSenderServiceServer(s grpc.ServiceRegistrar, srv SenderServiceServer) { + s.RegisterService(&SenderService_ServiceDesc, srv) +} + +func _SenderService_SendMail_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(SendMailReq) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(SenderServiceServer).SendMail(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: SenderService_SendMail_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(SenderServiceServer).SendMail(ctx, req.(*SendMailReq)) + } + return interceptor(ctx, in, info, handler) +} + +func _SenderService_SendSms_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(SendSMSReq) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(SenderServiceServer).SendSms(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: SenderService_SendSms_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(SenderServiceServer).SendSms(ctx, req.(*SendSMSReq)) + } + return interceptor(ctx, in, info, handler) +} + +func _SenderService_SendMailByTemplateId_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(SendByTemplateIDReq) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(SenderServiceServer).SendMailByTemplateId(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: SenderService_SendMailByTemplateId_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(SenderServiceServer).SendMailByTemplateId(ctx, req.(*SendByTemplateIDReq)) + } + return interceptor(ctx, in, info, handler) +} + +func _SenderService_SendSmsByTemplateId_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(SendByTemplateIDReq) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(SenderServiceServer).SendSmsByTemplateId(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: SenderService_SendSmsByTemplateId_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(SenderServiceServer).SendSmsByTemplateId(ctx, req.(*SendByTemplateIDReq)) + } + return interceptor(ctx, in, info, handler) +} + +// SenderService_ServiceDesc is the grpc.ServiceDesc for SenderService service. +// It's only intended for direct use with grpc.RegisterService, +// and not to be introspected or modified (even as a copy) +var SenderService_ServiceDesc = grpc.ServiceDesc{ + ServiceName: "notification.SenderService", + HandlerType: (*SenderServiceServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "SendMail", + Handler: _SenderService_SendMail_Handler, + }, + { + MethodName: "SendSms", + Handler: _SenderService_SendSms_Handler, + }, + { + MethodName: "SendMailByTemplateId", + Handler: _SenderService_SendMailByTemplateId_Handler, + }, + { + MethodName: "SendSmsByTemplateId", + Handler: _SenderService_SendSmsByTemplateId_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "generate/protobuf/service.proto", +} -- 2.40.1 From da7a6a23115f2d978d2b5d78ca3f26cb33629a5c Mon Sep 17 00:00:00 2001 From: "daniel.w" Date: Sat, 24 Aug 2024 23:16:19 +0800 Subject: [PATCH 2/2] add member --- pkg/member/service.pb.go | 2416 +++++++++++++++++++++++++++++++++ pkg/member/service_grpc.pb.go | 592 ++++++++ 2 files changed, 3008 insertions(+) create mode 100644 pkg/member/service.pb.go create mode 100644 pkg/member/service_grpc.pb.go diff --git a/pkg/member/service.pb.go b/pkg/member/service.pb.go new file mode 100644 index 0000000..5c8391d --- /dev/null +++ b/pkg/member/service.pb.go @@ -0,0 +1,2416 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.34.2 +// protoc v3.19.4 +// source: generate/protobuf/service.proto + +package member + +import ( + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" +) + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +// ================ enum ================ +type VerifyType int32 + +const ( + VerifyType_VERIFY_NONE VerifyType = 0 // 初始(異常) + VerifyType_VERIFY_EMAIL VerifyType = 1 + VerifyType_VERIFY_PHONE VerifyType = 2 + VerifyType_VERIFY_GOOGLE VerifyType = 3 // google 驗證器 + VerifyType_VERIFY_NOT VerifyType = 4 // 尚未 +) + +// Enum value maps for VerifyType. +var ( + VerifyType_name = map[int32]string{ + 0: "VERIFY_NONE", + 1: "VERIFY_EMAIL", + 2: "VERIFY_PHONE", + 3: "VERIFY_GOOGLE", + 4: "VERIFY_NOT", + } + VerifyType_value = map[string]int32{ + "VERIFY_NONE": 0, + "VERIFY_EMAIL": 1, + "VERIFY_PHONE": 2, + "VERIFY_GOOGLE": 3, + "VERIFY_NOT": 4, + } +) + +func (x VerifyType) Enum() *VerifyType { + p := new(VerifyType) + *p = x + return p +} + +func (x VerifyType) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (VerifyType) Descriptor() protoreflect.EnumDescriptor { + return file_generate_protobuf_service_proto_enumTypes[0].Descriptor() +} + +func (VerifyType) Type() protoreflect.EnumType { + return &file_generate_protobuf_service_proto_enumTypes[0] +} + +func (x VerifyType) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use VerifyType.Descriptor instead. +func (VerifyType) EnumDescriptor() ([]byte, []int) { + return file_generate_protobuf_service_proto_rawDescGZIP(), []int{0} +} + +type AlarmType int32 + +const ( + AlarmType_ALARM_NONE AlarmType = 0 // 初始(異常) + AlarmType_ALARM_NOT AlarmType = 1 // 未告警 + AlarmType_ALARM_SYSTEM AlarmType = 2 // 系統告警中 +) + +// Enum value maps for AlarmType. +var ( + AlarmType_name = map[int32]string{ + 0: "ALARM_NONE", + 1: "ALARM_NOT", + 2: "ALARM_SYSTEM", + } + AlarmType_value = map[string]int32{ + "ALARM_NONE": 0, + "ALARM_NOT": 1, + "ALARM_SYSTEM": 2, + } +) + +func (x AlarmType) Enum() *AlarmType { + p := new(AlarmType) + *p = x + return p +} + +func (x AlarmType) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (AlarmType) Descriptor() protoreflect.EnumDescriptor { + return file_generate_protobuf_service_proto_enumTypes[1].Descriptor() +} + +func (AlarmType) Type() protoreflect.EnumType { + return &file_generate_protobuf_service_proto_enumTypes[1] +} + +func (x AlarmType) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use AlarmType.Descriptor instead. +func (AlarmType) EnumDescriptor() ([]byte, []int) { + return file_generate_protobuf_service_proto_rawDescGZIP(), []int{1} +} + +type MemberStatus int32 + +const ( + MemberStatus_STATUS_NONE MemberStatus = 0 // 初始(異常) + MemberStatus_STATUS_VERIFY MemberStatus = 1 // 尚未驗證 + MemberStatus_STATUS_COMPLETE MemberStatus = 2 // 帳號啟用中 + MemberStatus_STATUS_DISABLE MemberStatus = 3 // 帳號停權中 + MemberStatus_STATUS_EMAIL MemberStatus = 4 // 信箱以驗證 + MemberStatus_STATUS_PHONE MemberStatus = 5 // 手機以驗證 + MemberStatus_STATUS_GA MemberStatus = 6 // GA 已綁定 +) + +// Enum value maps for MemberStatus. +var ( + MemberStatus_name = map[int32]string{ + 0: "STATUS_NONE", + 1: "STATUS_VERIFY", + 2: "STATUS_COMPLETE", + 3: "STATUS_DISABLE", + 4: "STATUS_EMAIL", + 5: "STATUS_PHONE", + 6: "STATUS_GA", + } + MemberStatus_value = map[string]int32{ + "STATUS_NONE": 0, + "STATUS_VERIFY": 1, + "STATUS_COMPLETE": 2, + "STATUS_DISABLE": 3, + "STATUS_EMAIL": 4, + "STATUS_PHONE": 5, + "STATUS_GA": 6, + } +) + +func (x MemberStatus) Enum() *MemberStatus { + p := new(MemberStatus) + *p = x + return p +} + +func (x MemberStatus) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (MemberStatus) Descriptor() protoreflect.EnumDescriptor { + return file_generate_protobuf_service_proto_enumTypes[2].Descriptor() +} + +func (MemberStatus) Type() protoreflect.EnumType { + return &file_generate_protobuf_service_proto_enumTypes[2] +} + +func (x MemberStatus) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use MemberStatus.Descriptor instead. +func (MemberStatus) EnumDescriptor() ([]byte, []int) { + return file_generate_protobuf_service_proto_rawDescGZIP(), []int{2} +} + +// OKResp +type OKResp struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *OKResp) Reset() { + *x = OKResp{} + if protoimpl.UnsafeEnabled { + mi := &file_generate_protobuf_service_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *OKResp) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*OKResp) ProtoMessage() {} + +func (x *OKResp) ProtoReflect() protoreflect.Message { + mi := &file_generate_protobuf_service_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use OKResp.ProtoReflect.Descriptor instead. +func (*OKResp) Descriptor() ([]byte, []int) { + return file_generate_protobuf_service_proto_rawDescGZIP(), []int{0} +} + +// NoneReq +type NoneReq struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *NoneReq) Reset() { + *x = NoneReq{} + if protoimpl.UnsafeEnabled { + mi := &file_generate_protobuf_service_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *NoneReq) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*NoneReq) ProtoMessage() {} + +func (x *NoneReq) ProtoReflect() protoreflect.Message { + mi := &file_generate_protobuf_service_proto_msgTypes[1] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use NoneReq.ProtoReflect.Descriptor instead. +func (*NoneReq) Descriptor() ([]byte, []int) { + return file_generate_protobuf_service_proto_rawDescGZIP(), []int{1} +} + +// ================ common ================ +type Pager struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Total int64 `protobuf:"varint,1,opt,name=total,proto3" json:"total,omitempty"` + Size int64 `protobuf:"varint,2,opt,name=size,proto3" json:"size,omitempty"` + Index int64 `protobuf:"varint,3,opt,name=index,proto3" json:"index,omitempty"` +} + +func (x *Pager) Reset() { + *x = Pager{} + if protoimpl.UnsafeEnabled { + mi := &file_generate_protobuf_service_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Pager) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Pager) ProtoMessage() {} + +func (x *Pager) ProtoReflect() protoreflect.Message { + mi := &file_generate_protobuf_service_proto_msgTypes[2] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use Pager.ProtoReflect.Descriptor instead. +func (*Pager) Descriptor() ([]byte, []int) { + return file_generate_protobuf_service_proto_rawDescGZIP(), []int{2} +} + +func (x *Pager) GetTotal() int64 { + if x != nil { + return x.Total + } + return 0 +} + +func (x *Pager) GetSize() int64 { + if x != nil { + return x.Size + } + return 0 +} + +func (x *Pager) GetIndex() int64 { + if x != nil { + return x.Index + } + return 0 +} + +// ================ account ================ +type CreateLoginUserReq struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + LoginId string `protobuf:"bytes,1,opt,name=login_id,json=loginId,proto3" json:"login_id,omitempty"` + Platform int64 `protobuf:"varint,2,opt,name=platform,proto3" json:"platform,omitempty"` + Token string `protobuf:"bytes,3,opt,name=token,proto3" json:"token,omitempty"` +} + +func (x *CreateLoginUserReq) Reset() { + *x = CreateLoginUserReq{} + if protoimpl.UnsafeEnabled { + mi := &file_generate_protobuf_service_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *CreateLoginUserReq) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CreateLoginUserReq) ProtoMessage() {} + +func (x *CreateLoginUserReq) ProtoReflect() protoreflect.Message { + mi := &file_generate_protobuf_service_proto_msgTypes[3] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use CreateLoginUserReq.ProtoReflect.Descriptor instead. +func (*CreateLoginUserReq) Descriptor() ([]byte, []int) { + return file_generate_protobuf_service_proto_rawDescGZIP(), []int{3} +} + +func (x *CreateLoginUserReq) GetLoginId() string { + if x != nil { + return x.LoginId + } + return "" +} + +func (x *CreateLoginUserReq) GetPlatform() int64 { + if x != nil { + return x.Platform + } + return 0 +} + +func (x *CreateLoginUserReq) GetToken() string { + if x != nil { + return x.Token + } + return "" +} + +type BindingUserReq struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Uid string `protobuf:"bytes,1,opt,name=uid,proto3" json:"uid,omitempty"` + LoginId string `protobuf:"bytes,2,opt,name=login_id,json=loginId,proto3" json:"login_id,omitempty"` + Type int64 `protobuf:"varint,3,opt,name=type,proto3" json:"type,omitempty"` +} + +func (x *BindingUserReq) Reset() { + *x = BindingUserReq{} + if protoimpl.UnsafeEnabled { + mi := &file_generate_protobuf_service_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *BindingUserReq) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*BindingUserReq) ProtoMessage() {} + +func (x *BindingUserReq) ProtoReflect() protoreflect.Message { + mi := &file_generate_protobuf_service_proto_msgTypes[4] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use BindingUserReq.ProtoReflect.Descriptor instead. +func (*BindingUserReq) Descriptor() ([]byte, []int) { + return file_generate_protobuf_service_proto_rawDescGZIP(), []int{4} +} + +func (x *BindingUserReq) GetUid() string { + if x != nil { + return x.Uid + } + return "" +} + +func (x *BindingUserReq) GetLoginId() string { + if x != nil { + return x.LoginId + } + return "" +} + +func (x *BindingUserReq) GetType() int64 { + if x != nil { + return x.Type + } + return 0 +} + +type BindingUserResp struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Uid string `protobuf:"bytes,1,opt,name=uid,proto3" json:"uid,omitempty"` + LoginId string `protobuf:"bytes,2,opt,name=login_id,json=loginId,proto3" json:"login_id,omitempty"` + Type int64 `protobuf:"varint,3,opt,name=type,proto3" json:"type,omitempty"` +} + +func (x *BindingUserResp) Reset() { + *x = BindingUserResp{} + if protoimpl.UnsafeEnabled { + mi := &file_generate_protobuf_service_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *BindingUserResp) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*BindingUserResp) ProtoMessage() {} + +func (x *BindingUserResp) ProtoReflect() protoreflect.Message { + mi := &file_generate_protobuf_service_proto_msgTypes[5] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use BindingUserResp.ProtoReflect.Descriptor instead. +func (*BindingUserResp) Descriptor() ([]byte, []int) { + return file_generate_protobuf_service_proto_rawDescGZIP(), []int{5} +} + +func (x *BindingUserResp) GetUid() string { + if x != nil { + return x.Uid + } + return "" +} + +func (x *BindingUserResp) GetLoginId() string { + if x != nil { + return x.LoginId + } + return "" +} + +func (x *BindingUserResp) GetType() int64 { + if x != nil { + return x.Type + } + return 0 +} + +type CreateUserInfoReq struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Uid string `protobuf:"bytes,1,opt,name=uid,proto3" json:"uid,omitempty"` + VerifyType VerifyType `protobuf:"varint,2,opt,name=verify_type,json=verifyType,proto3,enum=member.VerifyType" json:"verify_type,omitempty"` + AlarmType AlarmType `protobuf:"varint,3,opt,name=alarm_type,json=alarmType,proto3,enum=member.AlarmType" json:"alarm_type,omitempty"` + Status MemberStatus `protobuf:"varint,4,opt,name=status,proto3,enum=member.MemberStatus" json:"status,omitempty"` + Language string `protobuf:"bytes,5,opt,name=language,proto3" json:"language,omitempty"` + Currency string `protobuf:"bytes,6,opt,name=currency,proto3" json:"currency,omitempty"` + Avatar *string `protobuf:"bytes,7,opt,name=avatar,proto3,oneof" json:"avatar,omitempty"` + NickName *string `protobuf:"bytes,8,opt,name=nick_name,json=nickName,proto3,oneof" json:"nick_name,omitempty"` +} + +func (x *CreateUserInfoReq) Reset() { + *x = CreateUserInfoReq{} + if protoimpl.UnsafeEnabled { + mi := &file_generate_protobuf_service_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *CreateUserInfoReq) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CreateUserInfoReq) ProtoMessage() {} + +func (x *CreateUserInfoReq) ProtoReflect() protoreflect.Message { + mi := &file_generate_protobuf_service_proto_msgTypes[6] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use CreateUserInfoReq.ProtoReflect.Descriptor instead. +func (*CreateUserInfoReq) Descriptor() ([]byte, []int) { + return file_generate_protobuf_service_proto_rawDescGZIP(), []int{6} +} + +func (x *CreateUserInfoReq) GetUid() string { + if x != nil { + return x.Uid + } + return "" +} + +func (x *CreateUserInfoReq) GetVerifyType() VerifyType { + if x != nil { + return x.VerifyType + } + return VerifyType_VERIFY_NONE +} + +func (x *CreateUserInfoReq) GetAlarmType() AlarmType { + if x != nil { + return x.AlarmType + } + return AlarmType_ALARM_NONE +} + +func (x *CreateUserInfoReq) GetStatus() MemberStatus { + if x != nil { + return x.Status + } + return MemberStatus_STATUS_NONE +} + +func (x *CreateUserInfoReq) GetLanguage() string { + if x != nil { + return x.Language + } + return "" +} + +func (x *CreateUserInfoReq) GetCurrency() string { + if x != nil { + return x.Currency + } + return "" +} + +func (x *CreateUserInfoReq) GetAvatar() string { + if x != nil && x.Avatar != nil { + return *x.Avatar + } + return "" +} + +func (x *CreateUserInfoReq) GetNickName() string { + if x != nil && x.NickName != nil { + return *x.NickName + } + return "" +} + +type GetAccountInfoResp struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Data *CreateLoginUserReq `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` +} + +func (x *GetAccountInfoResp) Reset() { + *x = GetAccountInfoResp{} + if protoimpl.UnsafeEnabled { + mi := &file_generate_protobuf_service_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *GetAccountInfoResp) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetAccountInfoResp) ProtoMessage() {} + +func (x *GetAccountInfoResp) ProtoReflect() protoreflect.Message { + mi := &file_generate_protobuf_service_proto_msgTypes[7] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use GetAccountInfoResp.ProtoReflect.Descriptor instead. +func (*GetAccountInfoResp) Descriptor() ([]byte, []int) { + return file_generate_protobuf_service_proto_rawDescGZIP(), []int{7} +} + +func (x *GetAccountInfoResp) GetData() *CreateLoginUserReq { + if x != nil { + return x.Data + } + return nil +} + +// UpdateUserInfoReq 不處理邏輯給不給改,這裡只關新增修改刪除 +type UpdateUserInfoReq struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Uid string `protobuf:"bytes,1,opt,name=uid,proto3" json:"uid,omitempty"` + Language *string `protobuf:"bytes,2,opt,name=language,proto3,oneof" json:"language,omitempty"` + Currency *string `protobuf:"bytes,3,opt,name=currency,proto3,oneof" json:"currency,omitempty"` + NickName *string `protobuf:"bytes,4,opt,name=nick_name,json=nickName,proto3,oneof" json:"nick_name,omitempty"` + Avatar *string `protobuf:"bytes,5,opt,name=avatar,proto3,oneof" json:"avatar,omitempty"` + VerifyType *VerifyType `protobuf:"varint,6,opt,name=verify_type,json=verifyType,proto3,enum=member.VerifyType,oneof" json:"verify_type,omitempty"` + AlarmType *AlarmType `protobuf:"varint,7,opt,name=alarm_type,json=alarmType,proto3,enum=member.AlarmType,oneof" json:"alarm_type,omitempty"` + Status *MemberStatus `protobuf:"varint,8,opt,name=status,proto3,enum=member.MemberStatus,oneof" json:"status,omitempty"` +} + +func (x *UpdateUserInfoReq) Reset() { + *x = UpdateUserInfoReq{} + if protoimpl.UnsafeEnabled { + mi := &file_generate_protobuf_service_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *UpdateUserInfoReq) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UpdateUserInfoReq) ProtoMessage() {} + +func (x *UpdateUserInfoReq) ProtoReflect() protoreflect.Message { + mi := &file_generate_protobuf_service_proto_msgTypes[8] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use UpdateUserInfoReq.ProtoReflect.Descriptor instead. +func (*UpdateUserInfoReq) Descriptor() ([]byte, []int) { + return file_generate_protobuf_service_proto_rawDescGZIP(), []int{8} +} + +func (x *UpdateUserInfoReq) GetUid() string { + if x != nil { + return x.Uid + } + return "" +} + +func (x *UpdateUserInfoReq) GetLanguage() string { + if x != nil && x.Language != nil { + return *x.Language + } + return "" +} + +func (x *UpdateUserInfoReq) GetCurrency() string { + if x != nil && x.Currency != nil { + return *x.Currency + } + return "" +} + +func (x *UpdateUserInfoReq) GetNickName() string { + if x != nil && x.NickName != nil { + return *x.NickName + } + return "" +} + +func (x *UpdateUserInfoReq) GetAvatar() string { + if x != nil && x.Avatar != nil { + return *x.Avatar + } + return "" +} + +func (x *UpdateUserInfoReq) GetVerifyType() VerifyType { + if x != nil && x.VerifyType != nil { + return *x.VerifyType + } + return VerifyType_VERIFY_NONE +} + +func (x *UpdateUserInfoReq) GetAlarmType() AlarmType { + if x != nil && x.AlarmType != nil { + return *x.AlarmType + } + return AlarmType_ALARM_NONE +} + +func (x *UpdateUserInfoReq) GetStatus() MemberStatus { + if x != nil && x.Status != nil { + return *x.Status + } + return MemberStatus_STATUS_NONE +} + +type GetUIDByAccountReq struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Account string `protobuf:"bytes,1,opt,name=account,proto3" json:"account,omitempty"` +} + +func (x *GetUIDByAccountReq) Reset() { + *x = GetUIDByAccountReq{} + if protoimpl.UnsafeEnabled { + mi := &file_generate_protobuf_service_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *GetUIDByAccountReq) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetUIDByAccountReq) ProtoMessage() {} + +func (x *GetUIDByAccountReq) ProtoReflect() protoreflect.Message { + mi := &file_generate_protobuf_service_proto_msgTypes[9] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use GetUIDByAccountReq.ProtoReflect.Descriptor instead. +func (*GetUIDByAccountReq) Descriptor() ([]byte, []int) { + return file_generate_protobuf_service_proto_rawDescGZIP(), []int{9} +} + +func (x *GetUIDByAccountReq) GetAccount() string { + if x != nil { + return x.Account + } + return "" +} + +type GetUidByAccountResp struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Uid string `protobuf:"bytes,1,opt,name=uid,proto3" json:"uid,omitempty"` + Account string `protobuf:"bytes,2,opt,name=account,proto3" json:"account,omitempty"` +} + +func (x *GetUidByAccountResp) Reset() { + *x = GetUidByAccountResp{} + if protoimpl.UnsafeEnabled { + mi := &file_generate_protobuf_service_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *GetUidByAccountResp) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetUidByAccountResp) ProtoMessage() {} + +func (x *GetUidByAccountResp) ProtoReflect() protoreflect.Message { + mi := &file_generate_protobuf_service_proto_msgTypes[10] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use GetUidByAccountResp.ProtoReflect.Descriptor instead. +func (*GetUidByAccountResp) Descriptor() ([]byte, []int) { + return file_generate_protobuf_service_proto_rawDescGZIP(), []int{10} +} + +func (x *GetUidByAccountResp) GetUid() string { + if x != nil { + return x.Uid + } + return "" +} + +func (x *GetUidByAccountResp) GetAccount() string { + if x != nil { + return x.Account + } + return "" +} + +type UpdateTokenReq struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Account string `protobuf:"bytes,1,opt,name=account,proto3" json:"account,omitempty"` + Token string `protobuf:"bytes,2,opt,name=token,proto3" json:"token,omitempty"` + Platform int64 `protobuf:"varint,3,opt,name=platform,proto3" json:"platform,omitempty"` +} + +func (x *UpdateTokenReq) Reset() { + *x = UpdateTokenReq{} + if protoimpl.UnsafeEnabled { + mi := &file_generate_protobuf_service_proto_msgTypes[11] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *UpdateTokenReq) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UpdateTokenReq) ProtoMessage() {} + +func (x *UpdateTokenReq) ProtoReflect() protoreflect.Message { + mi := &file_generate_protobuf_service_proto_msgTypes[11] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use UpdateTokenReq.ProtoReflect.Descriptor instead. +func (*UpdateTokenReq) Descriptor() ([]byte, []int) { + return file_generate_protobuf_service_proto_rawDescGZIP(), []int{11} +} + +func (x *UpdateTokenReq) GetAccount() string { + if x != nil { + return x.Account + } + return "" +} + +func (x *UpdateTokenReq) GetToken() string { + if x != nil { + return x.Token + } + return "" +} + +func (x *UpdateTokenReq) GetPlatform() int64 { + if x != nil { + return x.Platform + } + return 0 +} + +type GenerateRefreshCodeReq struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Account string `protobuf:"bytes,1,opt,name=account,proto3" json:"account,omitempty"` + CodeType int32 `protobuf:"varint,2,opt,name=code_type,json=codeType,proto3" json:"code_type,omitempty"` +} + +func (x *GenerateRefreshCodeReq) Reset() { + *x = GenerateRefreshCodeReq{} + if protoimpl.UnsafeEnabled { + mi := &file_generate_protobuf_service_proto_msgTypes[12] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *GenerateRefreshCodeReq) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GenerateRefreshCodeReq) ProtoMessage() {} + +func (x *GenerateRefreshCodeReq) ProtoReflect() protoreflect.Message { + mi := &file_generate_protobuf_service_proto_msgTypes[12] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use GenerateRefreshCodeReq.ProtoReflect.Descriptor instead. +func (*GenerateRefreshCodeReq) Descriptor() ([]byte, []int) { + return file_generate_protobuf_service_proto_rawDescGZIP(), []int{12} +} + +func (x *GenerateRefreshCodeReq) GetAccount() string { + if x != nil { + return x.Account + } + return "" +} + +func (x *GenerateRefreshCodeReq) GetCodeType() int32 { + if x != nil { + return x.CodeType + } + return 0 +} + +type VerifyCode struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + VerifyCode string `protobuf:"bytes,1,opt,name=verify_code,json=verifyCode,proto3" json:"verify_code,omitempty"` +} + +func (x *VerifyCode) Reset() { + *x = VerifyCode{} + if protoimpl.UnsafeEnabled { + mi := &file_generate_protobuf_service_proto_msgTypes[13] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *VerifyCode) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*VerifyCode) ProtoMessage() {} + +func (x *VerifyCode) ProtoReflect() protoreflect.Message { + mi := &file_generate_protobuf_service_proto_msgTypes[13] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use VerifyCode.ProtoReflect.Descriptor instead. +func (*VerifyCode) Descriptor() ([]byte, []int) { + return file_generate_protobuf_service_proto_rawDescGZIP(), []int{13} +} + +func (x *VerifyCode) GetVerifyCode() string { + if x != nil { + return x.VerifyCode + } + return "" +} + +type GenerateRefreshCodeResp struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Data *VerifyCode `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` +} + +func (x *GenerateRefreshCodeResp) Reset() { + *x = GenerateRefreshCodeResp{} + if protoimpl.UnsafeEnabled { + mi := &file_generate_protobuf_service_proto_msgTypes[14] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *GenerateRefreshCodeResp) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GenerateRefreshCodeResp) ProtoMessage() {} + +func (x *GenerateRefreshCodeResp) ProtoReflect() protoreflect.Message { + mi := &file_generate_protobuf_service_proto_msgTypes[14] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use GenerateRefreshCodeResp.ProtoReflect.Descriptor instead. +func (*GenerateRefreshCodeResp) Descriptor() ([]byte, []int) { + return file_generate_protobuf_service_proto_rawDescGZIP(), []int{14} +} + +func (x *GenerateRefreshCodeResp) GetData() *VerifyCode { + if x != nil { + return x.Data + } + return nil +} + +type VerifyRefreshCodeReq struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Account string `protobuf:"bytes,1,opt,name=account,proto3" json:"account,omitempty"` + CodeType int32 `protobuf:"varint,2,opt,name=code_type,json=codeType,proto3" json:"code_type,omitempty"` + VerifyCode string `protobuf:"bytes,3,opt,name=verify_code,json=verifyCode,proto3" json:"verify_code,omitempty"` +} + +func (x *VerifyRefreshCodeReq) Reset() { + *x = VerifyRefreshCodeReq{} + if protoimpl.UnsafeEnabled { + mi := &file_generate_protobuf_service_proto_msgTypes[15] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *VerifyRefreshCodeReq) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*VerifyRefreshCodeReq) ProtoMessage() {} + +func (x *VerifyRefreshCodeReq) ProtoReflect() protoreflect.Message { + mi := &file_generate_protobuf_service_proto_msgTypes[15] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use VerifyRefreshCodeReq.ProtoReflect.Descriptor instead. +func (*VerifyRefreshCodeReq) Descriptor() ([]byte, []int) { + return file_generate_protobuf_service_proto_rawDescGZIP(), []int{15} +} + +func (x *VerifyRefreshCodeReq) GetAccount() string { + if x != nil { + return x.Account + } + return "" +} + +func (x *VerifyRefreshCodeReq) GetCodeType() int32 { + if x != nil { + return x.CodeType + } + return 0 +} + +func (x *VerifyRefreshCodeReq) GetVerifyCode() string { + if x != nil { + return x.VerifyCode + } + return "" +} + +type UpdateStatusReq struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Uid string `protobuf:"bytes,1,opt,name=uid,proto3" json:"uid,omitempty"` + Status MemberStatus `protobuf:"varint,2,opt,name=status,proto3,enum=member.MemberStatus" json:"status,omitempty"` +} + +func (x *UpdateStatusReq) Reset() { + *x = UpdateStatusReq{} + if protoimpl.UnsafeEnabled { + mi := &file_generate_protobuf_service_proto_msgTypes[16] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *UpdateStatusReq) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UpdateStatusReq) ProtoMessage() {} + +func (x *UpdateStatusReq) ProtoReflect() protoreflect.Message { + mi := &file_generate_protobuf_service_proto_msgTypes[16] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use UpdateStatusReq.ProtoReflect.Descriptor instead. +func (*UpdateStatusReq) Descriptor() ([]byte, []int) { + return file_generate_protobuf_service_proto_rawDescGZIP(), []int{16} +} + +func (x *UpdateStatusReq) GetUid() string { + if x != nil { + return x.Uid + } + return "" +} + +func (x *UpdateStatusReq) GetStatus() MemberStatus { + if x != nil { + return x.Status + } + return MemberStatus_STATUS_NONE +} + +type GetUserInfoReq struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Uid string `protobuf:"bytes,1,opt,name=uid,proto3" json:"uid,omitempty"` + NickName *string `protobuf:"bytes,2,opt,name=nick_name,json=nickName,proto3,oneof" json:"nick_name,omitempty"` +} + +func (x *GetUserInfoReq) Reset() { + *x = GetUserInfoReq{} + if protoimpl.UnsafeEnabled { + mi := &file_generate_protobuf_service_proto_msgTypes[17] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *GetUserInfoReq) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetUserInfoReq) ProtoMessage() {} + +func (x *GetUserInfoReq) ProtoReflect() protoreflect.Message { + mi := &file_generate_protobuf_service_proto_msgTypes[17] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use GetUserInfoReq.ProtoReflect.Descriptor instead. +func (*GetUserInfoReq) Descriptor() ([]byte, []int) { + return file_generate_protobuf_service_proto_rawDescGZIP(), []int{17} +} + +func (x *GetUserInfoReq) GetUid() string { + if x != nil { + return x.Uid + } + return "" +} + +func (x *GetUserInfoReq) GetNickName() string { + if x != nil && x.NickName != nil { + return *x.NickName + } + return "" +} + +type UserInfo struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Uid string `protobuf:"bytes,1,opt,name=uid,proto3" json:"uid,omitempty"` + VerifyType VerifyType `protobuf:"varint,2,opt,name=verify_type,json=verifyType,proto3,enum=member.VerifyType" json:"verify_type,omitempty"` + AlarmType AlarmType `protobuf:"varint,3,opt,name=alarm_type,json=alarmType,proto3,enum=member.AlarmType" json:"alarm_type,omitempty"` + Status MemberStatus `protobuf:"varint,4,opt,name=status,proto3,enum=member.MemberStatus" json:"status,omitempty"` + Language string `protobuf:"bytes,5,opt,name=language,proto3" json:"language,omitempty"` + Currency string `protobuf:"bytes,6,opt,name=currency,proto3" json:"currency,omitempty"` + Avatar string `protobuf:"bytes,7,opt,name=avatar,proto3" json:"avatar,omitempty"` + CreateTime int64 `protobuf:"varint,8,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` + UpdateTime int64 `protobuf:"varint,9,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` + NickName *string `protobuf:"bytes,10,opt,name=nick_name,json=nickName,proto3,oneof" json:"nick_name,omitempty"` +} + +func (x *UserInfo) Reset() { + *x = UserInfo{} + if protoimpl.UnsafeEnabled { + mi := &file_generate_protobuf_service_proto_msgTypes[18] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *UserInfo) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UserInfo) ProtoMessage() {} + +func (x *UserInfo) ProtoReflect() protoreflect.Message { + mi := &file_generate_protobuf_service_proto_msgTypes[18] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use UserInfo.ProtoReflect.Descriptor instead. +func (*UserInfo) Descriptor() ([]byte, []int) { + return file_generate_protobuf_service_proto_rawDescGZIP(), []int{18} +} + +func (x *UserInfo) GetUid() string { + if x != nil { + return x.Uid + } + return "" +} + +func (x *UserInfo) GetVerifyType() VerifyType { + if x != nil { + return x.VerifyType + } + return VerifyType_VERIFY_NONE +} + +func (x *UserInfo) GetAlarmType() AlarmType { + if x != nil { + return x.AlarmType + } + return AlarmType_ALARM_NONE +} + +func (x *UserInfo) GetStatus() MemberStatus { + if x != nil { + return x.Status + } + return MemberStatus_STATUS_NONE +} + +func (x *UserInfo) GetLanguage() string { + if x != nil { + return x.Language + } + return "" +} + +func (x *UserInfo) GetCurrency() string { + if x != nil { + return x.Currency + } + return "" +} + +func (x *UserInfo) GetAvatar() string { + if x != nil { + return x.Avatar + } + return "" +} + +func (x *UserInfo) GetCreateTime() int64 { + if x != nil { + return x.CreateTime + } + return 0 +} + +func (x *UserInfo) GetUpdateTime() int64 { + if x != nil { + return x.UpdateTime + } + return 0 +} + +func (x *UserInfo) GetNickName() string { + if x != nil && x.NickName != nil { + return *x.NickName + } + return "" +} + +type GetUserInfoResp struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Data *UserInfo `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` +} + +func (x *GetUserInfoResp) Reset() { + *x = GetUserInfoResp{} + if protoimpl.UnsafeEnabled { + mi := &file_generate_protobuf_service_proto_msgTypes[19] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *GetUserInfoResp) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetUserInfoResp) ProtoMessage() {} + +func (x *GetUserInfoResp) ProtoReflect() protoreflect.Message { + mi := &file_generate_protobuf_service_proto_msgTypes[19] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use GetUserInfoResp.ProtoReflect.Descriptor instead. +func (*GetUserInfoResp) Descriptor() ([]byte, []int) { + return file_generate_protobuf_service_proto_rawDescGZIP(), []int{19} +} + +func (x *GetUserInfoResp) GetData() *UserInfo { + if x != nil { + return x.Data + } + return nil +} + +type ListUserInfoReq struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + VerifyType *VerifyType `protobuf:"varint,1,opt,name=verify_type,json=verifyType,proto3,enum=member.VerifyType,oneof" json:"verify_type,omitempty"` + AlarmType *AlarmType `protobuf:"varint,2,opt,name=alarm_type,json=alarmType,proto3,enum=member.AlarmType,oneof" json:"alarm_type,omitempty"` + Status *MemberStatus `protobuf:"varint,3,opt,name=status,proto3,enum=member.MemberStatus,oneof" json:"status,omitempty"` + CreateStartTime *int64 `protobuf:"varint,4,opt,name=create_start_time,json=createStartTime,proto3,oneof" json:"create_start_time,omitempty"` + CreateEndTime *int64 `protobuf:"varint,5,opt,name=create_end_time,json=createEndTime,proto3,oneof" json:"create_end_time,omitempty"` + PageSize int64 `protobuf:"varint,6,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` + PageIndex int64 `protobuf:"varint,7,opt,name=page_index,json=pageIndex,proto3" json:"page_index,omitempty"` +} + +func (x *ListUserInfoReq) Reset() { + *x = ListUserInfoReq{} + if protoimpl.UnsafeEnabled { + mi := &file_generate_protobuf_service_proto_msgTypes[20] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ListUserInfoReq) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListUserInfoReq) ProtoMessage() {} + +func (x *ListUserInfoReq) ProtoReflect() protoreflect.Message { + mi := &file_generate_protobuf_service_proto_msgTypes[20] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ListUserInfoReq.ProtoReflect.Descriptor instead. +func (*ListUserInfoReq) Descriptor() ([]byte, []int) { + return file_generate_protobuf_service_proto_rawDescGZIP(), []int{20} +} + +func (x *ListUserInfoReq) GetVerifyType() VerifyType { + if x != nil && x.VerifyType != nil { + return *x.VerifyType + } + return VerifyType_VERIFY_NONE +} + +func (x *ListUserInfoReq) GetAlarmType() AlarmType { + if x != nil && x.AlarmType != nil { + return *x.AlarmType + } + return AlarmType_ALARM_NONE +} + +func (x *ListUserInfoReq) GetStatus() MemberStatus { + if x != nil && x.Status != nil { + return *x.Status + } + return MemberStatus_STATUS_NONE +} + +func (x *ListUserInfoReq) GetCreateStartTime() int64 { + if x != nil && x.CreateStartTime != nil { + return *x.CreateStartTime + } + return 0 +} + +func (x *ListUserInfoReq) GetCreateEndTime() int64 { + if x != nil && x.CreateEndTime != nil { + return *x.CreateEndTime + } + return 0 +} + +func (x *ListUserInfoReq) GetPageSize() int64 { + if x != nil { + return x.PageSize + } + return 0 +} + +func (x *ListUserInfoReq) GetPageIndex() int64 { + if x != nil { + return x.PageIndex + } + return 0 +} + +type ListUserInfoResp struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Data []*UserInfo `protobuf:"bytes,1,rep,name=data,proto3" json:"data,omitempty"` + Page *Pager `protobuf:"bytes,2,opt,name=page,proto3" json:"page,omitempty"` +} + +func (x *ListUserInfoResp) Reset() { + *x = ListUserInfoResp{} + if protoimpl.UnsafeEnabled { + mi := &file_generate_protobuf_service_proto_msgTypes[21] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ListUserInfoResp) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListUserInfoResp) ProtoMessage() {} + +func (x *ListUserInfoResp) ProtoReflect() protoreflect.Message { + mi := &file_generate_protobuf_service_proto_msgTypes[21] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ListUserInfoResp.ProtoReflect.Descriptor instead. +func (*ListUserInfoResp) Descriptor() ([]byte, []int) { + return file_generate_protobuf_service_proto_rawDescGZIP(), []int{21} +} + +func (x *ListUserInfoResp) GetData() []*UserInfo { + if x != nil { + return x.Data + } + return nil +} + +func (x *ListUserInfoResp) GetPage() *Pager { + if x != nil { + return x.Page + } + return nil +} + +type VerifyAuthResultReq struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"` +} + +func (x *VerifyAuthResultReq) Reset() { + *x = VerifyAuthResultReq{} + if protoimpl.UnsafeEnabled { + mi := &file_generate_protobuf_service_proto_msgTypes[22] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *VerifyAuthResultReq) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*VerifyAuthResultReq) ProtoMessage() {} + +func (x *VerifyAuthResultReq) ProtoReflect() protoreflect.Message { + mi := &file_generate_protobuf_service_proto_msgTypes[22] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use VerifyAuthResultReq.ProtoReflect.Descriptor instead. +func (*VerifyAuthResultReq) Descriptor() ([]byte, []int) { + return file_generate_protobuf_service_proto_rawDescGZIP(), []int{22} +} + +func (x *VerifyAuthResultReq) GetToken() string { + if x != nil { + return x.Token + } + return "" +} + +type VerifyAuthResultResp struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Status bool `protobuf:"varint,1,opt,name=status,proto3" json:"status,omitempty"` +} + +func (x *VerifyAuthResultResp) Reset() { + *x = VerifyAuthResultResp{} + if protoimpl.UnsafeEnabled { + mi := &file_generate_protobuf_service_proto_msgTypes[23] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *VerifyAuthResultResp) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*VerifyAuthResultResp) ProtoMessage() {} + +func (x *VerifyAuthResultResp) ProtoReflect() protoreflect.Message { + mi := &file_generate_protobuf_service_proto_msgTypes[23] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use VerifyAuthResultResp.ProtoReflect.Descriptor instead. +func (*VerifyAuthResultResp) Descriptor() ([]byte, []int) { + return file_generate_protobuf_service_proto_rawDescGZIP(), []int{23} +} + +func (x *VerifyAuthResultResp) GetStatus() bool { + if x != nil { + return x.Status + } + return false +} + +type TwitterAccessTokenResp struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"` +} + +func (x *TwitterAccessTokenResp) Reset() { + *x = TwitterAccessTokenResp{} + if protoimpl.UnsafeEnabled { + mi := &file_generate_protobuf_service_proto_msgTypes[24] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *TwitterAccessTokenResp) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*TwitterAccessTokenResp) ProtoMessage() {} + +func (x *TwitterAccessTokenResp) ProtoReflect() protoreflect.Message { + mi := &file_generate_protobuf_service_proto_msgTypes[24] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use TwitterAccessTokenResp.ProtoReflect.Descriptor instead. +func (*TwitterAccessTokenResp) Descriptor() ([]byte, []int) { + return file_generate_protobuf_service_proto_rawDescGZIP(), []int{24} +} + +func (x *TwitterAccessTokenResp) GetToken() string { + if x != nil { + return x.Token + } + return "" +} + +var File_generate_protobuf_service_proto protoreflect.FileDescriptor + +var file_generate_protobuf_service_proto_rawDesc = []byte{ + 0x0a, 0x1f, 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, + 0x6f, 0x12, 0x06, 0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x22, 0x08, 0x0a, 0x06, 0x4f, 0x4b, 0x52, + 0x65, 0x73, 0x70, 0x22, 0x09, 0x0a, 0x07, 0x4e, 0x6f, 0x6e, 0x65, 0x52, 0x65, 0x71, 0x22, 0x47, + 0x0a, 0x05, 0x50, 0x61, 0x67, 0x65, 0x72, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x6f, 0x74, 0x61, 0x6c, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x12, 0x12, 0x0a, + 0x04, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x04, 0x73, 0x69, 0x7a, + 0x65, 0x12, 0x14, 0x0a, 0x05, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, + 0x52, 0x05, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x22, 0x61, 0x0a, 0x12, 0x43, 0x72, 0x65, 0x61, 0x74, + 0x65, 0x4c, 0x6f, 0x67, 0x69, 0x6e, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x71, 0x12, 0x19, 0x0a, + 0x08, 0x6c, 0x6f, 0x67, 0x69, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x07, 0x6c, 0x6f, 0x67, 0x69, 0x6e, 0x49, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x6c, 0x61, 0x74, + 0x66, 0x6f, 0x72, 0x6d, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x08, 0x70, 0x6c, 0x61, 0x74, + 0x66, 0x6f, 0x72, 0x6d, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x03, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x51, 0x0a, 0x0e, 0x42, 0x69, + 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x71, 0x12, 0x10, 0x0a, 0x03, + 0x75, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x69, 0x64, 0x12, 0x19, + 0x0a, 0x08, 0x6c, 0x6f, 0x67, 0x69, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x07, 0x6c, 0x6f, 0x67, 0x69, 0x6e, 0x49, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x79, 0x70, + 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x22, 0x52, 0x0a, + 0x0f, 0x42, 0x69, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, + 0x12, 0x10, 0x0a, 0x03, 0x75, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, + 0x69, 0x64, 0x12, 0x19, 0x0a, 0x08, 0x6c, 0x6f, 0x67, 0x69, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6c, 0x6f, 0x67, 0x69, 0x6e, 0x49, 0x64, 0x12, 0x12, 0x0a, + 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x04, 0x74, 0x79, 0x70, + 0x65, 0x22, 0xca, 0x02, 0x0a, 0x11, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x55, 0x73, 0x65, 0x72, + 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x71, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x69, 0x64, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x69, 0x64, 0x12, 0x33, 0x0a, 0x0b, 0x76, 0x65, 0x72, + 0x69, 0x66, 0x79, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x12, + 0x2e, 0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x2e, 0x56, 0x65, 0x72, 0x69, 0x66, 0x79, 0x54, 0x79, + 0x70, 0x65, 0x52, 0x0a, 0x76, 0x65, 0x72, 0x69, 0x66, 0x79, 0x54, 0x79, 0x70, 0x65, 0x12, 0x30, + 0x0a, 0x0a, 0x61, 0x6c, 0x61, 0x72, 0x6d, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x03, 0x20, 0x01, + 0x28, 0x0e, 0x32, 0x11, 0x2e, 0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x2e, 0x41, 0x6c, 0x61, 0x72, + 0x6d, 0x54, 0x79, 0x70, 0x65, 0x52, 0x09, 0x61, 0x6c, 0x61, 0x72, 0x6d, 0x54, 0x79, 0x70, 0x65, + 0x12, 0x2c, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, + 0x32, 0x14, 0x2e, 0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x2e, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, + 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x1a, + 0x0a, 0x08, 0x6c, 0x61, 0x6e, 0x67, 0x75, 0x61, 0x67, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x08, 0x6c, 0x61, 0x6e, 0x67, 0x75, 0x61, 0x67, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x63, 0x75, + 0x72, 0x72, 0x65, 0x6e, 0x63, 0x79, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x63, 0x75, + 0x72, 0x72, 0x65, 0x6e, 0x63, 0x79, 0x12, 0x1b, 0x0a, 0x06, 0x61, 0x76, 0x61, 0x74, 0x61, 0x72, + 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x06, 0x61, 0x76, 0x61, 0x74, 0x61, 0x72, + 0x88, 0x01, 0x01, 0x12, 0x20, 0x0a, 0x09, 0x6e, 0x69, 0x63, 0x6b, 0x5f, 0x6e, 0x61, 0x6d, 0x65, + 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x48, 0x01, 0x52, 0x08, 0x6e, 0x69, 0x63, 0x6b, 0x4e, 0x61, + 0x6d, 0x65, 0x88, 0x01, 0x01, 0x42, 0x09, 0x0a, 0x07, 0x5f, 0x61, 0x76, 0x61, 0x74, 0x61, 0x72, + 0x42, 0x0c, 0x0a, 0x0a, 0x5f, 0x6e, 0x69, 0x63, 0x6b, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x44, + 0x0a, 0x12, 0x47, 0x65, 0x74, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x49, 0x6e, 0x66, 0x6f, + 0x52, 0x65, 0x73, 0x70, 0x12, 0x2e, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x2e, 0x43, 0x72, 0x65, 0x61, + 0x74, 0x65, 0x4c, 0x6f, 0x67, 0x69, 0x6e, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x71, 0x52, 0x04, + 0x64, 0x61, 0x74, 0x61, 0x22, 0xa7, 0x03, 0x0a, 0x11, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x55, + 0x73, 0x65, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x71, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x69, + 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x69, 0x64, 0x12, 0x1f, 0x0a, 0x08, + 0x6c, 0x61, 0x6e, 0x67, 0x75, 0x61, 0x67, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, + 0x52, 0x08, 0x6c, 0x61, 0x6e, 0x67, 0x75, 0x61, 0x67, 0x65, 0x88, 0x01, 0x01, 0x12, 0x1f, 0x0a, + 0x08, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x63, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x48, + 0x01, 0x52, 0x08, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x63, 0x79, 0x88, 0x01, 0x01, 0x12, 0x20, + 0x0a, 0x09, 0x6e, 0x69, 0x63, 0x6b, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, + 0x09, 0x48, 0x02, 0x52, 0x08, 0x6e, 0x69, 0x63, 0x6b, 0x4e, 0x61, 0x6d, 0x65, 0x88, 0x01, 0x01, + 0x12, 0x1b, 0x0a, 0x06, 0x61, 0x76, 0x61, 0x74, 0x61, 0x72, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, + 0x48, 0x03, 0x52, 0x06, 0x61, 0x76, 0x61, 0x74, 0x61, 0x72, 0x88, 0x01, 0x01, 0x12, 0x38, 0x0a, + 0x0b, 0x76, 0x65, 0x72, 0x69, 0x66, 0x79, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x06, 0x20, 0x01, + 0x28, 0x0e, 0x32, 0x12, 0x2e, 0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x2e, 0x56, 0x65, 0x72, 0x69, + 0x66, 0x79, 0x54, 0x79, 0x70, 0x65, 0x48, 0x04, 0x52, 0x0a, 0x76, 0x65, 0x72, 0x69, 0x66, 0x79, + 0x54, 0x79, 0x70, 0x65, 0x88, 0x01, 0x01, 0x12, 0x35, 0x0a, 0x0a, 0x61, 0x6c, 0x61, 0x72, 0x6d, + 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x11, 0x2e, 0x6d, 0x65, + 0x6d, 0x62, 0x65, 0x72, 0x2e, 0x41, 0x6c, 0x61, 0x72, 0x6d, 0x54, 0x79, 0x70, 0x65, 0x48, 0x05, + 0x52, 0x09, 0x61, 0x6c, 0x61, 0x72, 0x6d, 0x54, 0x79, 0x70, 0x65, 0x88, 0x01, 0x01, 0x12, 0x31, + 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x14, + 0x2e, 0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x2e, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x53, 0x74, + 0x61, 0x74, 0x75, 0x73, 0x48, 0x06, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x88, 0x01, + 0x01, 0x42, 0x0b, 0x0a, 0x09, 0x5f, 0x6c, 0x61, 0x6e, 0x67, 0x75, 0x61, 0x67, 0x65, 0x42, 0x0b, + 0x0a, 0x09, 0x5f, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x63, 0x79, 0x42, 0x0c, 0x0a, 0x0a, 0x5f, + 0x6e, 0x69, 0x63, 0x6b, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x42, 0x09, 0x0a, 0x07, 0x5f, 0x61, 0x76, + 0x61, 0x74, 0x61, 0x72, 0x42, 0x0e, 0x0a, 0x0c, 0x5f, 0x76, 0x65, 0x72, 0x69, 0x66, 0x79, 0x5f, + 0x74, 0x79, 0x70, 0x65, 0x42, 0x0d, 0x0a, 0x0b, 0x5f, 0x61, 0x6c, 0x61, 0x72, 0x6d, 0x5f, 0x74, + 0x79, 0x70, 0x65, 0x42, 0x09, 0x0a, 0x07, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x22, 0x2e, + 0x0a, 0x12, 0x47, 0x65, 0x74, 0x55, 0x49, 0x44, 0x42, 0x79, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, + 0x74, 0x52, 0x65, 0x71, 0x12, 0x18, 0x0a, 0x07, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x22, 0x41, + 0x0a, 0x13, 0x47, 0x65, 0x74, 0x55, 0x69, 0x64, 0x42, 0x79, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, + 0x74, 0x52, 0x65, 0x73, 0x70, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x03, 0x75, 0x69, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x61, 0x63, 0x63, 0x6f, 0x75, + 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, + 0x74, 0x22, 0x5c, 0x0a, 0x0e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, + 0x52, 0x65, 0x71, 0x12, 0x18, 0x0a, 0x07, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x14, 0x0a, + 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x6f, + 0x6b, 0x65, 0x6e, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x18, + 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x08, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x22, + 0x4f, 0x0a, 0x16, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x52, 0x65, 0x66, 0x72, 0x65, + 0x73, 0x68, 0x43, 0x6f, 0x64, 0x65, 0x52, 0x65, 0x71, 0x12, 0x18, 0x0a, 0x07, 0x61, 0x63, 0x63, + 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x61, 0x63, 0x63, 0x6f, + 0x75, 0x6e, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x63, 0x6f, 0x64, 0x65, 0x5f, 0x74, 0x79, 0x70, 0x65, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x63, 0x6f, 0x64, 0x65, 0x54, 0x79, 0x70, 0x65, + 0x22, 0x2d, 0x0a, 0x0a, 0x56, 0x65, 0x72, 0x69, 0x66, 0x79, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x1f, + 0x0a, 0x0b, 0x76, 0x65, 0x72, 0x69, 0x66, 0x79, 0x5f, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x0a, 0x76, 0x65, 0x72, 0x69, 0x66, 0x79, 0x43, 0x6f, 0x64, 0x65, 0x22, + 0x41, 0x0a, 0x17, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x52, 0x65, 0x66, 0x72, 0x65, + 0x73, 0x68, 0x43, 0x6f, 0x64, 0x65, 0x52, 0x65, 0x73, 0x70, 0x12, 0x26, 0x0a, 0x04, 0x64, 0x61, + 0x74, 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x6d, 0x65, 0x6d, 0x62, 0x65, + 0x72, 0x2e, 0x56, 0x65, 0x72, 0x69, 0x66, 0x79, 0x43, 0x6f, 0x64, 0x65, 0x52, 0x04, 0x64, 0x61, + 0x74, 0x61, 0x22, 0x6e, 0x0a, 0x14, 0x56, 0x65, 0x72, 0x69, 0x66, 0x79, 0x52, 0x65, 0x66, 0x72, + 0x65, 0x73, 0x68, 0x43, 0x6f, 0x64, 0x65, 0x52, 0x65, 0x71, 0x12, 0x18, 0x0a, 0x07, 0x61, 0x63, + 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x61, 0x63, 0x63, + 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x63, 0x6f, 0x64, 0x65, 0x5f, 0x74, 0x79, 0x70, + 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x63, 0x6f, 0x64, 0x65, 0x54, 0x79, 0x70, + 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x76, 0x65, 0x72, 0x69, 0x66, 0x79, 0x5f, 0x63, 0x6f, 0x64, 0x65, + 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x76, 0x65, 0x72, 0x69, 0x66, 0x79, 0x43, 0x6f, + 0x64, 0x65, 0x22, 0x51, 0x0a, 0x0f, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x53, 0x74, 0x61, 0x74, + 0x75, 0x73, 0x52, 0x65, 0x71, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x03, 0x75, 0x69, 0x64, 0x12, 0x2c, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, + 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x14, 0x2e, 0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72, + 0x2e, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, + 0x74, 0x61, 0x74, 0x75, 0x73, 0x22, 0x52, 0x0a, 0x0e, 0x47, 0x65, 0x74, 0x55, 0x73, 0x65, 0x72, + 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x71, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x69, 0x64, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x69, 0x64, 0x12, 0x20, 0x0a, 0x09, 0x6e, 0x69, 0x63, + 0x6b, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x08, + 0x6e, 0x69, 0x63, 0x6b, 0x4e, 0x61, 0x6d, 0x65, 0x88, 0x01, 0x01, 0x42, 0x0c, 0x0a, 0x0a, 0x5f, + 0x6e, 0x69, 0x63, 0x6b, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0xf3, 0x02, 0x0a, 0x08, 0x55, 0x73, + 0x65, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x69, 0x64, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x69, 0x64, 0x12, 0x33, 0x0a, 0x0b, 0x76, 0x65, 0x72, 0x69, + 0x66, 0x79, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x12, 0x2e, + 0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x2e, 0x56, 0x65, 0x72, 0x69, 0x66, 0x79, 0x54, 0x79, 0x70, + 0x65, 0x52, 0x0a, 0x76, 0x65, 0x72, 0x69, 0x66, 0x79, 0x54, 0x79, 0x70, 0x65, 0x12, 0x30, 0x0a, + 0x0a, 0x61, 0x6c, 0x61, 0x72, 0x6d, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, + 0x0e, 0x32, 0x11, 0x2e, 0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x2e, 0x41, 0x6c, 0x61, 0x72, 0x6d, + 0x54, 0x79, 0x70, 0x65, 0x52, 0x09, 0x61, 0x6c, 0x61, 0x72, 0x6d, 0x54, 0x79, 0x70, 0x65, 0x12, + 0x2c, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, 0x32, + 0x14, 0x2e, 0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x2e, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x53, + 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x1a, 0x0a, + 0x08, 0x6c, 0x61, 0x6e, 0x67, 0x75, 0x61, 0x67, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x08, 0x6c, 0x61, 0x6e, 0x67, 0x75, 0x61, 0x67, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x63, 0x75, 0x72, + 0x72, 0x65, 0x6e, 0x63, 0x79, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x63, 0x75, 0x72, + 0x72, 0x65, 0x6e, 0x63, 0x79, 0x12, 0x16, 0x0a, 0x06, 0x61, 0x76, 0x61, 0x74, 0x61, 0x72, 0x18, + 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x61, 0x76, 0x61, 0x74, 0x61, 0x72, 0x12, 0x1f, 0x0a, + 0x0b, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x08, 0x20, 0x01, + 0x28, 0x03, 0x52, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x1f, + 0x0a, 0x0b, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x09, 0x20, + 0x01, 0x28, 0x03, 0x52, 0x0a, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x12, + 0x20, 0x0a, 0x09, 0x6e, 0x69, 0x63, 0x6b, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x0a, 0x20, 0x01, + 0x28, 0x09, 0x48, 0x00, 0x52, 0x08, 0x6e, 0x69, 0x63, 0x6b, 0x4e, 0x61, 0x6d, 0x65, 0x88, 0x01, + 0x01, 0x42, 0x0c, 0x0a, 0x0a, 0x5f, 0x6e, 0x69, 0x63, 0x6b, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x22, + 0x37, 0x0a, 0x0f, 0x47, 0x65, 0x74, 0x55, 0x73, 0x65, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, + 0x73, 0x70, 0x12, 0x24, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x10, 0x2e, 0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x49, 0x6e, + 0x66, 0x6f, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x22, 0xa3, 0x03, 0x0a, 0x0f, 0x4c, 0x69, 0x73, + 0x74, 0x55, 0x73, 0x65, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x71, 0x12, 0x38, 0x0a, 0x0b, + 0x76, 0x65, 0x72, 0x69, 0x66, 0x79, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x0e, 0x32, 0x12, 0x2e, 0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x2e, 0x56, 0x65, 0x72, 0x69, 0x66, + 0x79, 0x54, 0x79, 0x70, 0x65, 0x48, 0x00, 0x52, 0x0a, 0x76, 0x65, 0x72, 0x69, 0x66, 0x79, 0x54, + 0x79, 0x70, 0x65, 0x88, 0x01, 0x01, 0x12, 0x35, 0x0a, 0x0a, 0x61, 0x6c, 0x61, 0x72, 0x6d, 0x5f, + 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x11, 0x2e, 0x6d, 0x65, 0x6d, + 0x62, 0x65, 0x72, 0x2e, 0x41, 0x6c, 0x61, 0x72, 0x6d, 0x54, 0x79, 0x70, 0x65, 0x48, 0x01, 0x52, + 0x09, 0x61, 0x6c, 0x61, 0x72, 0x6d, 0x54, 0x79, 0x70, 0x65, 0x88, 0x01, 0x01, 0x12, 0x31, 0x0a, + 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x14, 0x2e, + 0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x2e, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x53, 0x74, 0x61, + 0x74, 0x75, 0x73, 0x48, 0x02, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x88, 0x01, 0x01, + 0x12, 0x2f, 0x0a, 0x11, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x5f, 0x73, 0x74, 0x61, 0x72, 0x74, + 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x48, 0x03, 0x52, 0x0f, 0x63, + 0x72, 0x65, 0x61, 0x74, 0x65, 0x53, 0x74, 0x61, 0x72, 0x74, 0x54, 0x69, 0x6d, 0x65, 0x88, 0x01, + 0x01, 0x12, 0x2b, 0x0a, 0x0f, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x5f, 0x65, 0x6e, 0x64, 0x5f, + 0x74, 0x69, 0x6d, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x03, 0x48, 0x04, 0x52, 0x0d, 0x63, 0x72, + 0x65, 0x61, 0x74, 0x65, 0x45, 0x6e, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x88, 0x01, 0x01, 0x12, 0x1b, + 0x0a, 0x09, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, + 0x03, 0x52, 0x08, 0x70, 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x70, + 0x61, 0x67, 0x65, 0x5f, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x18, 0x07, 0x20, 0x01, 0x28, 0x03, 0x52, + 0x09, 0x70, 0x61, 0x67, 0x65, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x42, 0x0e, 0x0a, 0x0c, 0x5f, 0x76, + 0x65, 0x72, 0x69, 0x66, 0x79, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x42, 0x0d, 0x0a, 0x0b, 0x5f, 0x61, + 0x6c, 0x61, 0x72, 0x6d, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x42, 0x09, 0x0a, 0x07, 0x5f, 0x73, 0x74, + 0x61, 0x74, 0x75, 0x73, 0x42, 0x14, 0x0a, 0x12, 0x5f, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x5f, + 0x73, 0x74, 0x61, 0x72, 0x74, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x42, 0x12, 0x0a, 0x10, 0x5f, 0x63, + 0x72, 0x65, 0x61, 0x74, 0x65, 0x5f, 0x65, 0x6e, 0x64, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x22, 0x5b, + 0x0a, 0x10, 0x4c, 0x69, 0x73, 0x74, 0x55, 0x73, 0x65, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, + 0x73, 0x70, 0x12, 0x24, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, + 0x32, 0x10, 0x2e, 0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x49, 0x6e, + 0x66, 0x6f, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x12, 0x21, 0x0a, 0x04, 0x70, 0x61, 0x67, 0x65, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0d, 0x2e, 0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x2e, + 0x50, 0x61, 0x67, 0x65, 0x72, 0x52, 0x04, 0x70, 0x61, 0x67, 0x65, 0x22, 0x2b, 0x0a, 0x13, 0x56, + 0x65, 0x72, 0x69, 0x66, 0x79, 0x41, 0x75, 0x74, 0x68, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 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, 0x2e, 0x0a, 0x14, 0x56, 0x65, 0x72, 0x69, + 0x66, 0x79, 0x41, 0x75, 0x74, 0x68, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x52, 0x65, 0x73, 0x70, + 0x12, 0x16, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, + 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x22, 0x2e, 0x0a, 0x16, 0x54, 0x77, 0x69, 0x74, + 0x74, 0x65, 0x72, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 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, 0x2a, 0x64, 0x0a, 0x0a, 0x56, 0x65, 0x72, 0x69, + 0x66, 0x79, 0x54, 0x79, 0x70, 0x65, 0x12, 0x0f, 0x0a, 0x0b, 0x56, 0x45, 0x52, 0x49, 0x46, 0x59, + 0x5f, 0x4e, 0x4f, 0x4e, 0x45, 0x10, 0x00, 0x12, 0x10, 0x0a, 0x0c, 0x56, 0x45, 0x52, 0x49, 0x46, + 0x59, 0x5f, 0x45, 0x4d, 0x41, 0x49, 0x4c, 0x10, 0x01, 0x12, 0x10, 0x0a, 0x0c, 0x56, 0x45, 0x52, + 0x49, 0x46, 0x59, 0x5f, 0x50, 0x48, 0x4f, 0x4e, 0x45, 0x10, 0x02, 0x12, 0x11, 0x0a, 0x0d, 0x56, + 0x45, 0x52, 0x49, 0x46, 0x59, 0x5f, 0x47, 0x4f, 0x4f, 0x47, 0x4c, 0x45, 0x10, 0x03, 0x12, 0x0e, + 0x0a, 0x0a, 0x56, 0x45, 0x52, 0x49, 0x46, 0x59, 0x5f, 0x4e, 0x4f, 0x54, 0x10, 0x04, 0x2a, 0x3c, + 0x0a, 0x09, 0x41, 0x6c, 0x61, 0x72, 0x6d, 0x54, 0x79, 0x70, 0x65, 0x12, 0x0e, 0x0a, 0x0a, 0x41, + 0x4c, 0x41, 0x52, 0x4d, 0x5f, 0x4e, 0x4f, 0x4e, 0x45, 0x10, 0x00, 0x12, 0x0d, 0x0a, 0x09, 0x41, + 0x4c, 0x41, 0x52, 0x4d, 0x5f, 0x4e, 0x4f, 0x54, 0x10, 0x01, 0x12, 0x10, 0x0a, 0x0c, 0x41, 0x4c, + 0x41, 0x52, 0x4d, 0x5f, 0x53, 0x59, 0x53, 0x54, 0x45, 0x4d, 0x10, 0x02, 0x2a, 0x8e, 0x01, 0x0a, + 0x0c, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x0f, 0x0a, + 0x0b, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x4e, 0x4f, 0x4e, 0x45, 0x10, 0x00, 0x12, 0x11, + 0x0a, 0x0d, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x56, 0x45, 0x52, 0x49, 0x46, 0x59, 0x10, + 0x01, 0x12, 0x13, 0x0a, 0x0f, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x43, 0x4f, 0x4d, 0x50, + 0x4c, 0x45, 0x54, 0x45, 0x10, 0x02, 0x12, 0x12, 0x0a, 0x0e, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, + 0x5f, 0x44, 0x49, 0x53, 0x41, 0x42, 0x4c, 0x45, 0x10, 0x03, 0x12, 0x10, 0x0a, 0x0c, 0x53, 0x54, + 0x41, 0x54, 0x55, 0x53, 0x5f, 0x45, 0x4d, 0x41, 0x49, 0x4c, 0x10, 0x04, 0x12, 0x10, 0x0a, 0x0c, + 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x50, 0x48, 0x4f, 0x4e, 0x45, 0x10, 0x05, 0x12, 0x0d, + 0x0a, 0x09, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x47, 0x41, 0x10, 0x06, 0x32, 0x81, 0x07, + 0x0a, 0x07, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x3f, 0x0a, 0x11, 0x43, 0x72, 0x65, + 0x61, 0x74, 0x65, 0x55, 0x73, 0x65, 0x72, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x1a, + 0x2e, 0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4c, 0x6f, + 0x67, 0x69, 0x6e, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x71, 0x1a, 0x0e, 0x2e, 0x6d, 0x65, 0x6d, + 0x62, 0x65, 0x72, 0x2e, 0x4f, 0x4b, 0x52, 0x65, 0x73, 0x70, 0x12, 0x4c, 0x0a, 0x12, 0x47, 0x65, + 0x74, 0x55, 0x73, 0x65, 0x72, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x49, 0x6e, 0x66, 0x6f, + 0x12, 0x1a, 0x2e, 0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x2e, 0x47, 0x65, 0x74, 0x55, 0x49, 0x44, + 0x42, 0x79, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x1a, 0x1a, 0x2e, 0x6d, + 0x65, 0x6d, 0x62, 0x65, 0x72, 0x2e, 0x47, 0x65, 0x74, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, + 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x73, 0x70, 0x12, 0x39, 0x0a, 0x0f, 0x55, 0x70, 0x64, 0x61, + 0x74, 0x65, 0x55, 0x73, 0x65, 0x72, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x16, 0x2e, 0x6d, 0x65, + 0x6d, 0x62, 0x65, 0x72, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, + 0x52, 0x65, 0x71, 0x1a, 0x0e, 0x2e, 0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x2e, 0x4f, 0x4b, 0x52, + 0x65, 0x73, 0x70, 0x12, 0x4a, 0x0a, 0x0f, 0x47, 0x65, 0x74, 0x55, 0x69, 0x64, 0x42, 0x79, 0x41, + 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x1a, 0x2e, 0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x2e, + 0x47, 0x65, 0x74, 0x55, 0x49, 0x44, 0x42, 0x79, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x52, + 0x65, 0x71, 0x1a, 0x1b, 0x2e, 0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x2e, 0x47, 0x65, 0x74, 0x55, + 0x69, 0x64, 0x42, 0x79, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x12, + 0x3e, 0x0a, 0x0b, 0x42, 0x69, 0x6e, 0x64, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x16, + 0x2e, 0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x2e, 0x42, 0x69, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x55, + 0x73, 0x65, 0x72, 0x52, 0x65, 0x71, 0x1a, 0x17, 0x2e, 0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x2e, + 0x42, 0x69, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x12, + 0x39, 0x0a, 0x0c, 0x42, 0x69, 0x6e, 0x64, 0x55, 0x73, 0x65, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x12, + 0x19, 0x2e, 0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x55, + 0x73, 0x65, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x71, 0x1a, 0x0e, 0x2e, 0x6d, 0x65, 0x6d, + 0x62, 0x65, 0x72, 0x2e, 0x4f, 0x4b, 0x52, 0x65, 0x73, 0x70, 0x12, 0x3b, 0x0a, 0x0e, 0x55, 0x70, + 0x64, 0x61, 0x74, 0x65, 0x55, 0x73, 0x65, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x19, 0x2e, 0x6d, + 0x65, 0x6d, 0x62, 0x65, 0x72, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x55, 0x73, 0x65, 0x72, + 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x71, 0x1a, 0x0e, 0x2e, 0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72, + 0x2e, 0x4f, 0x4b, 0x52, 0x65, 0x73, 0x70, 0x12, 0x37, 0x0a, 0x0c, 0x55, 0x70, 0x64, 0x61, 0x74, + 0x65, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x17, 0x2e, 0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72, + 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, 0x71, + 0x1a, 0x0e, 0x2e, 0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x2e, 0x4f, 0x4b, 0x52, 0x65, 0x73, 0x70, + 0x12, 0x3e, 0x0a, 0x0b, 0x47, 0x65, 0x74, 0x55, 0x73, 0x65, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x12, + 0x16, 0x2e, 0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x2e, 0x47, 0x65, 0x74, 0x55, 0x73, 0x65, 0x72, + 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x71, 0x1a, 0x17, 0x2e, 0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72, + 0x2e, 0x47, 0x65, 0x74, 0x55, 0x73, 0x65, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x73, 0x70, + 0x12, 0x3f, 0x0a, 0x0a, 0x4c, 0x69, 0x73, 0x74, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x12, 0x17, + 0x2e, 0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x55, 0x73, 0x65, 0x72, + 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x71, 0x1a, 0x18, 0x2e, 0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72, + 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x55, 0x73, 0x65, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x73, + 0x70, 0x12, 0x56, 0x0a, 0x13, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x52, 0x65, 0x66, + 0x72, 0x65, 0x73, 0x68, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x1e, 0x2e, 0x6d, 0x65, 0x6d, 0x62, 0x65, + 0x72, 0x2e, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x52, 0x65, 0x66, 0x72, 0x65, 0x73, + 0x68, 0x43, 0x6f, 0x64, 0x65, 0x52, 0x65, 0x71, 0x1a, 0x1f, 0x2e, 0x6d, 0x65, 0x6d, 0x62, 0x65, + 0x72, 0x2e, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x52, 0x65, 0x66, 0x72, 0x65, 0x73, + 0x68, 0x43, 0x6f, 0x64, 0x65, 0x52, 0x65, 0x73, 0x70, 0x12, 0x41, 0x0a, 0x11, 0x56, 0x65, 0x72, + 0x69, 0x66, 0x79, 0x52, 0x65, 0x66, 0x72, 0x65, 0x73, 0x68, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x1c, + 0x2e, 0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x2e, 0x56, 0x65, 0x72, 0x69, 0x66, 0x79, 0x52, 0x65, + 0x66, 0x72, 0x65, 0x73, 0x68, 0x43, 0x6f, 0x64, 0x65, 0x52, 0x65, 0x71, 0x1a, 0x0e, 0x2e, 0x6d, + 0x65, 0x6d, 0x62, 0x65, 0x72, 0x2e, 0x4f, 0x4b, 0x52, 0x65, 0x73, 0x70, 0x12, 0x53, 0x0a, 0x16, + 0x56, 0x65, 0x72, 0x69, 0x66, 0x79, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x41, 0x75, 0x74, 0x68, + 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x12, 0x1b, 0x2e, 0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x2e, + 0x56, 0x65, 0x72, 0x69, 0x66, 0x79, 0x41, 0x75, 0x74, 0x68, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, + 0x52, 0x65, 0x71, 0x1a, 0x1c, 0x2e, 0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x2e, 0x56, 0x65, 0x72, + 0x69, 0x66, 0x79, 0x41, 0x75, 0x74, 0x68, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x52, 0x65, 0x73, + 0x70, 0x42, 0x0a, 0x5a, 0x08, 0x2e, 0x2f, 0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x62, 0x06, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_generate_protobuf_service_proto_rawDescOnce sync.Once + file_generate_protobuf_service_proto_rawDescData = file_generate_protobuf_service_proto_rawDesc +) + +func file_generate_protobuf_service_proto_rawDescGZIP() []byte { + file_generate_protobuf_service_proto_rawDescOnce.Do(func() { + file_generate_protobuf_service_proto_rawDescData = protoimpl.X.CompressGZIP(file_generate_protobuf_service_proto_rawDescData) + }) + return file_generate_protobuf_service_proto_rawDescData +} + +var file_generate_protobuf_service_proto_enumTypes = make([]protoimpl.EnumInfo, 3) +var file_generate_protobuf_service_proto_msgTypes = make([]protoimpl.MessageInfo, 25) +var file_generate_protobuf_service_proto_goTypes = []any{ + (VerifyType)(0), // 0: member.VerifyType + (AlarmType)(0), // 1: member.AlarmType + (MemberStatus)(0), // 2: member.MemberStatus + (*OKResp)(nil), // 3: member.OKResp + (*NoneReq)(nil), // 4: member.NoneReq + (*Pager)(nil), // 5: member.Pager + (*CreateLoginUserReq)(nil), // 6: member.CreateLoginUserReq + (*BindingUserReq)(nil), // 7: member.BindingUserReq + (*BindingUserResp)(nil), // 8: member.BindingUserResp + (*CreateUserInfoReq)(nil), // 9: member.CreateUserInfoReq + (*GetAccountInfoResp)(nil), // 10: member.GetAccountInfoResp + (*UpdateUserInfoReq)(nil), // 11: member.UpdateUserInfoReq + (*GetUIDByAccountReq)(nil), // 12: member.GetUIDByAccountReq + (*GetUidByAccountResp)(nil), // 13: member.GetUidByAccountResp + (*UpdateTokenReq)(nil), // 14: member.UpdateTokenReq + (*GenerateRefreshCodeReq)(nil), // 15: member.GenerateRefreshCodeReq + (*VerifyCode)(nil), // 16: member.VerifyCode + (*GenerateRefreshCodeResp)(nil), // 17: member.GenerateRefreshCodeResp + (*VerifyRefreshCodeReq)(nil), // 18: member.VerifyRefreshCodeReq + (*UpdateStatusReq)(nil), // 19: member.UpdateStatusReq + (*GetUserInfoReq)(nil), // 20: member.GetUserInfoReq + (*UserInfo)(nil), // 21: member.UserInfo + (*GetUserInfoResp)(nil), // 22: member.GetUserInfoResp + (*ListUserInfoReq)(nil), // 23: member.ListUserInfoReq + (*ListUserInfoResp)(nil), // 24: member.ListUserInfoResp + (*VerifyAuthResultReq)(nil), // 25: member.VerifyAuthResultReq + (*VerifyAuthResultResp)(nil), // 26: member.VerifyAuthResultResp + (*TwitterAccessTokenResp)(nil), // 27: member.TwitterAccessTokenResp +} +var file_generate_protobuf_service_proto_depIdxs = []int32{ + 0, // 0: member.CreateUserInfoReq.verify_type:type_name -> member.VerifyType + 1, // 1: member.CreateUserInfoReq.alarm_type:type_name -> member.AlarmType + 2, // 2: member.CreateUserInfoReq.status:type_name -> member.MemberStatus + 6, // 3: member.GetAccountInfoResp.data:type_name -> member.CreateLoginUserReq + 0, // 4: member.UpdateUserInfoReq.verify_type:type_name -> member.VerifyType + 1, // 5: member.UpdateUserInfoReq.alarm_type:type_name -> member.AlarmType + 2, // 6: member.UpdateUserInfoReq.status:type_name -> member.MemberStatus + 16, // 7: member.GenerateRefreshCodeResp.data:type_name -> member.VerifyCode + 2, // 8: member.UpdateStatusReq.status:type_name -> member.MemberStatus + 0, // 9: member.UserInfo.verify_type:type_name -> member.VerifyType + 1, // 10: member.UserInfo.alarm_type:type_name -> member.AlarmType + 2, // 11: member.UserInfo.status:type_name -> member.MemberStatus + 21, // 12: member.GetUserInfoResp.data:type_name -> member.UserInfo + 0, // 13: member.ListUserInfoReq.verify_type:type_name -> member.VerifyType + 1, // 14: member.ListUserInfoReq.alarm_type:type_name -> member.AlarmType + 2, // 15: member.ListUserInfoReq.status:type_name -> member.MemberStatus + 21, // 16: member.ListUserInfoResp.data:type_name -> member.UserInfo + 5, // 17: member.ListUserInfoResp.page:type_name -> member.Pager + 6, // 18: member.Account.CreateUserAccount:input_type -> member.CreateLoginUserReq + 12, // 19: member.Account.GetUserAccountInfo:input_type -> member.GetUIDByAccountReq + 14, // 20: member.Account.UpdateUserToken:input_type -> member.UpdateTokenReq + 12, // 21: member.Account.GetUidByAccount:input_type -> member.GetUIDByAccountReq + 7, // 22: member.Account.BindAccount:input_type -> member.BindingUserReq + 9, // 23: member.Account.BindUserInfo:input_type -> member.CreateUserInfoReq + 11, // 24: member.Account.UpdateUserInfo:input_type -> member.UpdateUserInfoReq + 19, // 25: member.Account.UpdateStatus:input_type -> member.UpdateStatusReq + 20, // 26: member.Account.GetUserInfo:input_type -> member.GetUserInfoReq + 23, // 27: member.Account.ListMember:input_type -> member.ListUserInfoReq + 15, // 28: member.Account.GenerateRefreshCode:input_type -> member.GenerateRefreshCodeReq + 18, // 29: member.Account.VerifyRefreshCode:input_type -> member.VerifyRefreshCodeReq + 25, // 30: member.Account.VerifyGoogleAuthResult:input_type -> member.VerifyAuthResultReq + 3, // 31: member.Account.CreateUserAccount:output_type -> member.OKResp + 10, // 32: member.Account.GetUserAccountInfo:output_type -> member.GetAccountInfoResp + 3, // 33: member.Account.UpdateUserToken:output_type -> member.OKResp + 13, // 34: member.Account.GetUidByAccount:output_type -> member.GetUidByAccountResp + 8, // 35: member.Account.BindAccount:output_type -> member.BindingUserResp + 3, // 36: member.Account.BindUserInfo:output_type -> member.OKResp + 3, // 37: member.Account.UpdateUserInfo:output_type -> member.OKResp + 3, // 38: member.Account.UpdateStatus:output_type -> member.OKResp + 22, // 39: member.Account.GetUserInfo:output_type -> member.GetUserInfoResp + 24, // 40: member.Account.ListMember:output_type -> member.ListUserInfoResp + 17, // 41: member.Account.GenerateRefreshCode:output_type -> member.GenerateRefreshCodeResp + 3, // 42: member.Account.VerifyRefreshCode:output_type -> member.OKResp + 26, // 43: member.Account.VerifyGoogleAuthResult:output_type -> member.VerifyAuthResultResp + 31, // [31:44] is the sub-list for method output_type + 18, // [18:31] is the sub-list for method input_type + 18, // [18:18] is the sub-list for extension type_name + 18, // [18:18] is the sub-list for extension extendee + 0, // [0:18] is the sub-list for field type_name +} + +func init() { file_generate_protobuf_service_proto_init() } +func file_generate_protobuf_service_proto_init() { + if File_generate_protobuf_service_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_generate_protobuf_service_proto_msgTypes[0].Exporter = func(v any, i int) any { + switch v := v.(*OKResp); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_generate_protobuf_service_proto_msgTypes[1].Exporter = func(v any, i int) any { + switch v := v.(*NoneReq); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_generate_protobuf_service_proto_msgTypes[2].Exporter = func(v any, i int) any { + switch v := v.(*Pager); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_generate_protobuf_service_proto_msgTypes[3].Exporter = func(v any, i int) any { + switch v := v.(*CreateLoginUserReq); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_generate_protobuf_service_proto_msgTypes[4].Exporter = func(v any, i int) any { + switch v := v.(*BindingUserReq); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_generate_protobuf_service_proto_msgTypes[5].Exporter = func(v any, i int) any { + switch v := v.(*BindingUserResp); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_generate_protobuf_service_proto_msgTypes[6].Exporter = func(v any, i int) any { + switch v := v.(*CreateUserInfoReq); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_generate_protobuf_service_proto_msgTypes[7].Exporter = func(v any, i int) any { + switch v := v.(*GetAccountInfoResp); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_generate_protobuf_service_proto_msgTypes[8].Exporter = func(v any, i int) any { + switch v := v.(*UpdateUserInfoReq); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_generate_protobuf_service_proto_msgTypes[9].Exporter = func(v any, i int) any { + switch v := v.(*GetUIDByAccountReq); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_generate_protobuf_service_proto_msgTypes[10].Exporter = func(v any, i int) any { + switch v := v.(*GetUidByAccountResp); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_generate_protobuf_service_proto_msgTypes[11].Exporter = func(v any, i int) any { + switch v := v.(*UpdateTokenReq); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_generate_protobuf_service_proto_msgTypes[12].Exporter = func(v any, i int) any { + switch v := v.(*GenerateRefreshCodeReq); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_generate_protobuf_service_proto_msgTypes[13].Exporter = func(v any, i int) any { + switch v := v.(*VerifyCode); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_generate_protobuf_service_proto_msgTypes[14].Exporter = func(v any, i int) any { + switch v := v.(*GenerateRefreshCodeResp); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_generate_protobuf_service_proto_msgTypes[15].Exporter = func(v any, i int) any { + switch v := v.(*VerifyRefreshCodeReq); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_generate_protobuf_service_proto_msgTypes[16].Exporter = func(v any, i int) any { + switch v := v.(*UpdateStatusReq); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_generate_protobuf_service_proto_msgTypes[17].Exporter = func(v any, i int) any { + switch v := v.(*GetUserInfoReq); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_generate_protobuf_service_proto_msgTypes[18].Exporter = func(v any, i int) any { + switch v := v.(*UserInfo); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_generate_protobuf_service_proto_msgTypes[19].Exporter = func(v any, i int) any { + switch v := v.(*GetUserInfoResp); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_generate_protobuf_service_proto_msgTypes[20].Exporter = func(v any, i int) any { + switch v := v.(*ListUserInfoReq); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_generate_protobuf_service_proto_msgTypes[21].Exporter = func(v any, i int) any { + switch v := v.(*ListUserInfoResp); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_generate_protobuf_service_proto_msgTypes[22].Exporter = func(v any, i int) any { + switch v := v.(*VerifyAuthResultReq); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_generate_protobuf_service_proto_msgTypes[23].Exporter = func(v any, i int) any { + switch v := v.(*VerifyAuthResultResp); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_generate_protobuf_service_proto_msgTypes[24].Exporter = func(v any, i int) any { + switch v := v.(*TwitterAccessTokenResp); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + file_generate_protobuf_service_proto_msgTypes[6].OneofWrappers = []any{} + file_generate_protobuf_service_proto_msgTypes[8].OneofWrappers = []any{} + file_generate_protobuf_service_proto_msgTypes[17].OneofWrappers = []any{} + file_generate_protobuf_service_proto_msgTypes[18].OneofWrappers = []any{} + file_generate_protobuf_service_proto_msgTypes[20].OneofWrappers = []any{} + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_generate_protobuf_service_proto_rawDesc, + NumEnums: 3, + NumMessages: 25, + NumExtensions: 0, + NumServices: 1, + }, + GoTypes: file_generate_protobuf_service_proto_goTypes, + DependencyIndexes: file_generate_protobuf_service_proto_depIdxs, + EnumInfos: file_generate_protobuf_service_proto_enumTypes, + MessageInfos: file_generate_protobuf_service_proto_msgTypes, + }.Build() + File_generate_protobuf_service_proto = out.File + file_generate_protobuf_service_proto_rawDesc = nil + file_generate_protobuf_service_proto_goTypes = nil + file_generate_protobuf_service_proto_depIdxs = nil +} diff --git a/pkg/member/service_grpc.pb.go b/pkg/member/service_grpc.pb.go new file mode 100644 index 0000000..134247e --- /dev/null +++ b/pkg/member/service_grpc.pb.go @@ -0,0 +1,592 @@ +// Code generated by protoc-gen-go-grpc. DO NOT EDIT. +// versions: +// - protoc-gen-go-grpc v1.4.0 +// - protoc v3.19.4 +// source: generate/protobuf/service.proto + +package member + +import ( + context "context" + grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" +) + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the grpc package it is being compiled against. +// Requires gRPC-Go v1.62.0 or later. +const _ = grpc.SupportPackageIsVersion8 + +const ( + Account_CreateUserAccount_FullMethodName = "/member.Account/CreateUserAccount" + Account_GetUserAccountInfo_FullMethodName = "/member.Account/GetUserAccountInfo" + Account_UpdateUserToken_FullMethodName = "/member.Account/UpdateUserToken" + Account_GetUidByAccount_FullMethodName = "/member.Account/GetUidByAccount" + Account_BindAccount_FullMethodName = "/member.Account/BindAccount" + Account_BindUserInfo_FullMethodName = "/member.Account/BindUserInfo" + Account_UpdateUserInfo_FullMethodName = "/member.Account/UpdateUserInfo" + Account_UpdateStatus_FullMethodName = "/member.Account/UpdateStatus" + Account_GetUserInfo_FullMethodName = "/member.Account/GetUserInfo" + Account_ListMember_FullMethodName = "/member.Account/ListMember" + Account_GenerateRefreshCode_FullMethodName = "/member.Account/GenerateRefreshCode" + Account_VerifyRefreshCode_FullMethodName = "/member.Account/VerifyRefreshCode" + Account_VerifyGoogleAuthResult_FullMethodName = "/member.Account/VerifyGoogleAuthResult" +) + +// AccountClient is the client API for Account service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. +type AccountClient interface { + // CreateUserAccount 建立帳號與密碼 -> 可登入,但可不可以做其他事情看業務流程,也可以只註冊就好 + CreateUserAccount(ctx context.Context, in *CreateLoginUserReq, opts ...grpc.CallOption) (*OKResp, error) + // GetUserAccountInfo 取得帳號密碼資料 + GetUserAccountInfo(ctx context.Context, in *GetUIDByAccountReq, opts ...grpc.CallOption) (*GetAccountInfoResp, error) + // UpdateUserToken 更新密碼 + UpdateUserToken(ctx context.Context, in *UpdateTokenReq, opts ...grpc.CallOption) (*OKResp, error) + // GetUidByAccount 用帳號換取 UID + GetUidByAccount(ctx context.Context, in *GetUIDByAccountReq, opts ...grpc.CallOption) (*GetUidByAccountResp, error) + // BindAccount 綁定帳號 -> account bind to UID + BindAccount(ctx context.Context, in *BindingUserReq, opts ...grpc.CallOption) (*BindingUserResp, error) + // BindUserInfo 初次,綁定 User Info + BindUserInfo(ctx context.Context, in *CreateUserInfoReq, opts ...grpc.CallOption) (*OKResp, error) + // UpdateUserInfo 更新 User Info + UpdateUserInfo(ctx context.Context, in *UpdateUserInfoReq, opts ...grpc.CallOption) (*OKResp, error) + // UpdateStatus 修改狀態 + UpdateStatus(ctx context.Context, in *UpdateStatusReq, opts ...grpc.CallOption) (*OKResp, error) + // GetUserInfo 取得會員資訊 + GetUserInfo(ctx context.Context, in *GetUserInfoReq, opts ...grpc.CallOption) (*GetUserInfoResp, error) + // ListMember 取得會員列表 + ListMember(ctx context.Context, in *ListUserInfoReq, opts ...grpc.CallOption) (*ListUserInfoResp, error) + // GenerateRefreshCode 這個帳號驗證碼(十分鐘),通用的 + GenerateRefreshCode(ctx context.Context, in *GenerateRefreshCodeReq, opts ...grpc.CallOption) (*GenerateRefreshCodeResp, error) + // VerifyRefreshCode 驗證忘記密碼 token + VerifyRefreshCode(ctx context.Context, in *VerifyRefreshCodeReq, opts ...grpc.CallOption) (*OKResp, error) + // VerifyGoogleAuthResult 驗證 google 登入是否有效 + VerifyGoogleAuthResult(ctx context.Context, in *VerifyAuthResultReq, opts ...grpc.CallOption) (*VerifyAuthResultResp, error) +} + +type accountClient struct { + cc grpc.ClientConnInterface +} + +func NewAccountClient(cc grpc.ClientConnInterface) AccountClient { + return &accountClient{cc} +} + +func (c *accountClient) CreateUserAccount(ctx context.Context, in *CreateLoginUserReq, opts ...grpc.CallOption) (*OKResp, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(OKResp) + err := c.cc.Invoke(ctx, Account_CreateUserAccount_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *accountClient) GetUserAccountInfo(ctx context.Context, in *GetUIDByAccountReq, opts ...grpc.CallOption) (*GetAccountInfoResp, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(GetAccountInfoResp) + err := c.cc.Invoke(ctx, Account_GetUserAccountInfo_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *accountClient) UpdateUserToken(ctx context.Context, in *UpdateTokenReq, opts ...grpc.CallOption) (*OKResp, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(OKResp) + err := c.cc.Invoke(ctx, Account_UpdateUserToken_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *accountClient) GetUidByAccount(ctx context.Context, in *GetUIDByAccountReq, opts ...grpc.CallOption) (*GetUidByAccountResp, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(GetUidByAccountResp) + err := c.cc.Invoke(ctx, Account_GetUidByAccount_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *accountClient) BindAccount(ctx context.Context, in *BindingUserReq, opts ...grpc.CallOption) (*BindingUserResp, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(BindingUserResp) + err := c.cc.Invoke(ctx, Account_BindAccount_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *accountClient) BindUserInfo(ctx context.Context, in *CreateUserInfoReq, opts ...grpc.CallOption) (*OKResp, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(OKResp) + err := c.cc.Invoke(ctx, Account_BindUserInfo_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *accountClient) UpdateUserInfo(ctx context.Context, in *UpdateUserInfoReq, opts ...grpc.CallOption) (*OKResp, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(OKResp) + err := c.cc.Invoke(ctx, Account_UpdateUserInfo_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *accountClient) UpdateStatus(ctx context.Context, in *UpdateStatusReq, opts ...grpc.CallOption) (*OKResp, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(OKResp) + err := c.cc.Invoke(ctx, Account_UpdateStatus_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *accountClient) GetUserInfo(ctx context.Context, in *GetUserInfoReq, opts ...grpc.CallOption) (*GetUserInfoResp, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(GetUserInfoResp) + err := c.cc.Invoke(ctx, Account_GetUserInfo_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *accountClient) ListMember(ctx context.Context, in *ListUserInfoReq, opts ...grpc.CallOption) (*ListUserInfoResp, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(ListUserInfoResp) + err := c.cc.Invoke(ctx, Account_ListMember_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *accountClient) GenerateRefreshCode(ctx context.Context, in *GenerateRefreshCodeReq, opts ...grpc.CallOption) (*GenerateRefreshCodeResp, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(GenerateRefreshCodeResp) + err := c.cc.Invoke(ctx, Account_GenerateRefreshCode_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *accountClient) VerifyRefreshCode(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_VerifyRefreshCode_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) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(VerifyAuthResultResp) + err := c.cc.Invoke(ctx, Account_VerifyGoogleAuthResult_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +// AccountServer is the server API for Account service. +// All implementations must embed UnimplementedAccountServer +// for forward compatibility +type AccountServer interface { + // CreateUserAccount 建立帳號與密碼 -> 可登入,但可不可以做其他事情看業務流程,也可以只註冊就好 + CreateUserAccount(context.Context, *CreateLoginUserReq) (*OKResp, error) + // GetUserAccountInfo 取得帳號密碼資料 + GetUserAccountInfo(context.Context, *GetUIDByAccountReq) (*GetAccountInfoResp, error) + // UpdateUserToken 更新密碼 + UpdateUserToken(context.Context, *UpdateTokenReq) (*OKResp, error) + // GetUidByAccount 用帳號換取 UID + GetUidByAccount(context.Context, *GetUIDByAccountReq) (*GetUidByAccountResp, error) + // BindAccount 綁定帳號 -> account bind to UID + BindAccount(context.Context, *BindingUserReq) (*BindingUserResp, error) + // BindUserInfo 初次,綁定 User Info + BindUserInfo(context.Context, *CreateUserInfoReq) (*OKResp, error) + // UpdateUserInfo 更新 User Info + UpdateUserInfo(context.Context, *UpdateUserInfoReq) (*OKResp, error) + // UpdateStatus 修改狀態 + UpdateStatus(context.Context, *UpdateStatusReq) (*OKResp, error) + // GetUserInfo 取得會員資訊 + GetUserInfo(context.Context, *GetUserInfoReq) (*GetUserInfoResp, error) + // ListMember 取得會員列表 + ListMember(context.Context, *ListUserInfoReq) (*ListUserInfoResp, error) + // GenerateRefreshCode 這個帳號驗證碼(十分鐘),通用的 + GenerateRefreshCode(context.Context, *GenerateRefreshCodeReq) (*GenerateRefreshCodeResp, error) + // VerifyRefreshCode 驗證忘記密碼 token + VerifyRefreshCode(context.Context, *VerifyRefreshCodeReq) (*OKResp, error) + // VerifyGoogleAuthResult 驗證 google 登入是否有效 + VerifyGoogleAuthResult(context.Context, *VerifyAuthResultReq) (*VerifyAuthResultResp, error) + mustEmbedUnimplementedAccountServer() +} + +// UnimplementedAccountServer must be embedded to have forward compatible implementations. +type UnimplementedAccountServer struct { +} + +func (UnimplementedAccountServer) CreateUserAccount(context.Context, *CreateLoginUserReq) (*OKResp, error) { + return nil, status.Errorf(codes.Unimplemented, "method CreateUserAccount not implemented") +} +func (UnimplementedAccountServer) GetUserAccountInfo(context.Context, *GetUIDByAccountReq) (*GetAccountInfoResp, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetUserAccountInfo not implemented") +} +func (UnimplementedAccountServer) UpdateUserToken(context.Context, *UpdateTokenReq) (*OKResp, error) { + return nil, status.Errorf(codes.Unimplemented, "method UpdateUserToken not implemented") +} +func (UnimplementedAccountServer) GetUidByAccount(context.Context, *GetUIDByAccountReq) (*GetUidByAccountResp, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetUidByAccount not implemented") +} +func (UnimplementedAccountServer) BindAccount(context.Context, *BindingUserReq) (*BindingUserResp, error) { + return nil, status.Errorf(codes.Unimplemented, "method BindAccount not implemented") +} +func (UnimplementedAccountServer) BindUserInfo(context.Context, *CreateUserInfoReq) (*OKResp, error) { + return nil, status.Errorf(codes.Unimplemented, "method BindUserInfo not implemented") +} +func (UnimplementedAccountServer) UpdateUserInfo(context.Context, *UpdateUserInfoReq) (*OKResp, error) { + return nil, status.Errorf(codes.Unimplemented, "method UpdateUserInfo not implemented") +} +func (UnimplementedAccountServer) UpdateStatus(context.Context, *UpdateStatusReq) (*OKResp, error) { + return nil, status.Errorf(codes.Unimplemented, "method UpdateStatus not implemented") +} +func (UnimplementedAccountServer) GetUserInfo(context.Context, *GetUserInfoReq) (*GetUserInfoResp, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetUserInfo not implemented") +} +func (UnimplementedAccountServer) ListMember(context.Context, *ListUserInfoReq) (*ListUserInfoResp, error) { + return nil, status.Errorf(codes.Unimplemented, "method ListMember not implemented") +} +func (UnimplementedAccountServer) GenerateRefreshCode(context.Context, *GenerateRefreshCodeReq) (*GenerateRefreshCodeResp, error) { + return nil, status.Errorf(codes.Unimplemented, "method GenerateRefreshCode not implemented") +} +func (UnimplementedAccountServer) VerifyRefreshCode(context.Context, *VerifyRefreshCodeReq) (*OKResp, error) { + return nil, status.Errorf(codes.Unimplemented, "method VerifyRefreshCode not implemented") +} +func (UnimplementedAccountServer) VerifyGoogleAuthResult(context.Context, *VerifyAuthResultReq) (*VerifyAuthResultResp, error) { + return nil, status.Errorf(codes.Unimplemented, "method VerifyGoogleAuthResult not implemented") +} +func (UnimplementedAccountServer) mustEmbedUnimplementedAccountServer() {} + +// UnsafeAccountServer may be embedded to opt out of forward compatibility for this service. +// Use of this interface is not recommended, as added methods to AccountServer will +// result in compilation errors. +type UnsafeAccountServer interface { + mustEmbedUnimplementedAccountServer() +} + +func RegisterAccountServer(s grpc.ServiceRegistrar, srv AccountServer) { + s.RegisterService(&Account_ServiceDesc, srv) +} + +func _Account_CreateUserAccount_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(CreateLoginUserReq) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AccountServer).CreateUserAccount(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Account_CreateUserAccount_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AccountServer).CreateUserAccount(ctx, req.(*CreateLoginUserReq)) + } + return interceptor(ctx, in, info, handler) +} + +func _Account_GetUserAccountInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(GetUIDByAccountReq) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AccountServer).GetUserAccountInfo(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Account_GetUserAccountInfo_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AccountServer).GetUserAccountInfo(ctx, req.(*GetUIDByAccountReq)) + } + return interceptor(ctx, in, info, handler) +} + +func _Account_UpdateUserToken_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(UpdateTokenReq) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AccountServer).UpdateUserToken(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Account_UpdateUserToken_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AccountServer).UpdateUserToken(ctx, req.(*UpdateTokenReq)) + } + return interceptor(ctx, in, info, handler) +} + +func _Account_GetUidByAccount_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(GetUIDByAccountReq) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AccountServer).GetUidByAccount(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Account_GetUidByAccount_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AccountServer).GetUidByAccount(ctx, req.(*GetUIDByAccountReq)) + } + return interceptor(ctx, in, info, handler) +} + +func _Account_BindAccount_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(BindingUserReq) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AccountServer).BindAccount(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Account_BindAccount_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AccountServer).BindAccount(ctx, req.(*BindingUserReq)) + } + return interceptor(ctx, in, info, handler) +} + +func _Account_BindUserInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(CreateUserInfoReq) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AccountServer).BindUserInfo(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Account_BindUserInfo_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AccountServer).BindUserInfo(ctx, req.(*CreateUserInfoReq)) + } + return interceptor(ctx, in, info, handler) +} + +func _Account_UpdateUserInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(UpdateUserInfoReq) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AccountServer).UpdateUserInfo(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Account_UpdateUserInfo_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AccountServer).UpdateUserInfo(ctx, req.(*UpdateUserInfoReq)) + } + return interceptor(ctx, in, info, handler) +} + +func _Account_UpdateStatus_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(UpdateStatusReq) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AccountServer).UpdateStatus(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Account_UpdateStatus_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AccountServer).UpdateStatus(ctx, req.(*UpdateStatusReq)) + } + return interceptor(ctx, in, info, handler) +} + +func _Account_GetUserInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(GetUserInfoReq) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AccountServer).GetUserInfo(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Account_GetUserInfo_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AccountServer).GetUserInfo(ctx, req.(*GetUserInfoReq)) + } + return interceptor(ctx, in, info, handler) +} + +func _Account_ListMember_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ListUserInfoReq) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AccountServer).ListMember(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Account_ListMember_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AccountServer).ListMember(ctx, req.(*ListUserInfoReq)) + } + return interceptor(ctx, in, info, handler) +} + +func _Account_GenerateRefreshCode_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(GenerateRefreshCodeReq) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AccountServer).GenerateRefreshCode(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Account_GenerateRefreshCode_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AccountServer).GenerateRefreshCode(ctx, req.(*GenerateRefreshCodeReq)) + } + return interceptor(ctx, in, info, handler) +} + +func _Account_VerifyRefreshCode_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).VerifyRefreshCode(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Account_VerifyRefreshCode_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AccountServer).VerifyRefreshCode(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) { + in := new(VerifyAuthResultReq) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AccountServer).VerifyGoogleAuthResult(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Account_VerifyGoogleAuthResult_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AccountServer).VerifyGoogleAuthResult(ctx, req.(*VerifyAuthResultReq)) + } + return interceptor(ctx, in, info, handler) +} + +// Account_ServiceDesc is the grpc.ServiceDesc for Account service. +// It's only intended for direct use with grpc.RegisterService, +// and not to be introspected or modified (even as a copy) +var Account_ServiceDesc = grpc.ServiceDesc{ + ServiceName: "member.Account", + HandlerType: (*AccountServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "CreateUserAccount", + Handler: _Account_CreateUserAccount_Handler, + }, + { + MethodName: "GetUserAccountInfo", + Handler: _Account_GetUserAccountInfo_Handler, + }, + { + MethodName: "UpdateUserToken", + Handler: _Account_UpdateUserToken_Handler, + }, + { + MethodName: "GetUidByAccount", + Handler: _Account_GetUidByAccount_Handler, + }, + { + MethodName: "BindAccount", + Handler: _Account_BindAccount_Handler, + }, + { + MethodName: "BindUserInfo", + Handler: _Account_BindUserInfo_Handler, + }, + { + MethodName: "UpdateUserInfo", + Handler: _Account_UpdateUserInfo_Handler, + }, + { + MethodName: "UpdateStatus", + Handler: _Account_UpdateStatus_Handler, + }, + { + MethodName: "GetUserInfo", + Handler: _Account_GetUserInfo_Handler, + }, + { + MethodName: "ListMember", + Handler: _Account_ListMember_Handler, + }, + { + MethodName: "GenerateRefreshCode", + Handler: _Account_GenerateRefreshCode_Handler, + }, + { + MethodName: "VerifyRefreshCode", + Handler: _Account_VerifyRefreshCode_Handler, + }, + { + MethodName: "VerifyGoogleAuthResult", + Handler: _Account_VerifyGoogleAuthResult_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "generate/protobuf/service.proto", +} -- 2.40.1