// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.36.8 // protoc (unknown) // source: private.proto package cloud import ( protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" sync "sync" unsafe "unsafe" ) 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) ) // 请求消息定义 type CreatePrivateDataRequest struct { state protoimpl.MessageState `protogen:"open.v1"` CloudId uint64 `protobuf:"varint,1,opt,name=cloud_id,json=cloudId,proto3" json:"cloud_id,omitempty"` CloudIdentity string `protobuf:"bytes,2,opt,name=cloud_identity,json=cloudIdentity,proto3" json:"cloud_identity,omitempty"` DataType string `protobuf:"bytes,3,opt,name=data_type,json=dataType,proto3" json:"data_type,omitempty"` // 数据类型: password, card, document, etc. Title string `protobuf:"bytes,4,opt,name=title,proto3" json:"title,omitempty"` // 标题 Description string `protobuf:"bytes,5,opt,name=description,proto3" json:"description,omitempty"` // 描述 Data string `protobuf:"bytes,6,opt,name=data,proto3" json:"data,omitempty"` // 加密存储的实际数据 IsEncrypted bool `protobuf:"varint,7,opt,name=is_encrypted,json=isEncrypted,proto3" json:"is_encrypted,omitempty"` // 是否已加密 Tags string `protobuf:"bytes,8,opt,name=tags,proto3" json:"tags,omitempty"` // 标签 unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *CreatePrivateDataRequest) Reset() { *x = CreatePrivateDataRequest{} mi := &file_private_proto_msgTypes[0] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *CreatePrivateDataRequest) String() string { return protoimpl.X.MessageStringOf(x) } func (*CreatePrivateDataRequest) ProtoMessage() {} func (x *CreatePrivateDataRequest) ProtoReflect() protoreflect.Message { mi := &file_private_proto_msgTypes[0] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use CreatePrivateDataRequest.ProtoReflect.Descriptor instead. func (*CreatePrivateDataRequest) Descriptor() ([]byte, []int) { return file_private_proto_rawDescGZIP(), []int{0} } func (x *CreatePrivateDataRequest) GetCloudId() uint64 { if x != nil { return x.CloudId } return 0 } func (x *CreatePrivateDataRequest) GetCloudIdentity() string { if x != nil { return x.CloudIdentity } return "" } func (x *CreatePrivateDataRequest) GetDataType() string { if x != nil { return x.DataType } return "" } func (x *CreatePrivateDataRequest) GetTitle() string { if x != nil { return x.Title } return "" } func (x *CreatePrivateDataRequest) GetDescription() string { if x != nil { return x.Description } return "" } func (x *CreatePrivateDataRequest) GetData() string { if x != nil { return x.Data } return "" } func (x *CreatePrivateDataRequest) GetIsEncrypted() bool { if x != nil { return x.IsEncrypted } return false } func (x *CreatePrivateDataRequest) GetTags() string { if x != nil { return x.Tags } return "" } type ListPrivateDataResponse struct { state protoimpl.MessageState `protogen:"open.v1"` Data []*CloudPrivateItem `protobuf:"bytes,1,rep,name=data,proto3" json:"data,omitempty"` Total int64 `protobuf:"varint,2,opt,name=total,proto3" json:"total,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *ListPrivateDataResponse) Reset() { *x = ListPrivateDataResponse{} mi := &file_private_proto_msgTypes[1] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *ListPrivateDataResponse) String() string { return protoimpl.X.MessageStringOf(x) } func (*ListPrivateDataResponse) ProtoMessage() {} func (x *ListPrivateDataResponse) ProtoReflect() protoreflect.Message { mi := &file_private_proto_msgTypes[1] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use ListPrivateDataResponse.ProtoReflect.Descriptor instead. func (*ListPrivateDataResponse) Descriptor() ([]byte, []int) { return file_private_proto_rawDescGZIP(), []int{1} } func (x *ListPrivateDataResponse) GetData() []*CloudPrivateItem { if x != nil { return x.Data } return nil } func (x *ListPrivateDataResponse) GetTotal() int64 { if x != nil { return x.Total } return 0 } type DataRequest struct { state protoimpl.MessageState `protogen:"open.v1"` Data string `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` // 数据 Key string `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"` // 密钥KEY unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *DataRequest) Reset() { *x = DataRequest{} mi := &file_private_proto_msgTypes[2] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *DataRequest) String() string { return protoimpl.X.MessageStringOf(x) } func (*DataRequest) ProtoMessage() {} func (x *DataRequest) ProtoReflect() protoreflect.Message { mi := &file_private_proto_msgTypes[2] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use DataRequest.ProtoReflect.Descriptor instead. func (*DataRequest) Descriptor() ([]byte, []int) { return file_private_proto_rawDescGZIP(), []int{2} } func (x *DataRequest) GetData() string { if x != nil { return x.Data } return "" } func (x *DataRequest) GetKey() string { if x != nil { return x.Key } return "" } // 个人隐私数据模型 type CloudPrivateItem struct { state protoimpl.MessageState `protogen:"open.v1"` Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Identity string `protobuf:"bytes,2,opt,name=identity,proto3" json:"identity,omitempty"` DataType string `protobuf:"bytes,3,opt,name=data_type,json=dataType,proto3" json:"data_type,omitempty"` // 数据类型: password, card, document, etc. Title string `protobuf:"bytes,4,opt,name=title,proto3" json:"title,omitempty"` // 标题 Description string `protobuf:"bytes,5,opt,name=description,proto3" json:"description,omitempty"` // 描述 Data string `protobuf:"bytes,6,opt,name=data,proto3" json:"data,omitempty"` // 加密存储的实际数据 IsEncrypted bool `protobuf:"varint,7,opt,name=is_encrypted,json=isEncrypted,proto3" json:"is_encrypted,omitempty"` // 是否已加密 Tags string `protobuf:"bytes,8,opt,name=tags,proto3" json:"tags,omitempty"` // 标签 CreatedAt string `protobuf:"bytes,9,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` UpdatedAt string `protobuf:"bytes,10,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *CloudPrivateItem) Reset() { *x = CloudPrivateItem{} mi := &file_private_proto_msgTypes[3] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *CloudPrivateItem) String() string { return protoimpl.X.MessageStringOf(x) } func (*CloudPrivateItem) ProtoMessage() {} func (x *CloudPrivateItem) ProtoReflect() protoreflect.Message { mi := &file_private_proto_msgTypes[3] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use CloudPrivateItem.ProtoReflect.Descriptor instead. func (*CloudPrivateItem) Descriptor() ([]byte, []int) { return file_private_proto_rawDescGZIP(), []int{3} } func (x *CloudPrivateItem) GetId() uint64 { if x != nil { return x.Id } return 0 } func (x *CloudPrivateItem) GetIdentity() string { if x != nil { return x.Identity } return "" } func (x *CloudPrivateItem) GetDataType() string { if x != nil { return x.DataType } return "" } func (x *CloudPrivateItem) GetTitle() string { if x != nil { return x.Title } return "" } func (x *CloudPrivateItem) GetDescription() string { if x != nil { return x.Description } return "" } func (x *CloudPrivateItem) GetData() string { if x != nil { return x.Data } return "" } func (x *CloudPrivateItem) GetIsEncrypted() bool { if x != nil { return x.IsEncrypted } return false } func (x *CloudPrivateItem) GetTags() string { if x != nil { return x.Tags } return "" } func (x *CloudPrivateItem) GetCreatedAt() string { if x != nil { return x.CreatedAt } return "" } func (x *CloudPrivateItem) GetUpdatedAt() string { if x != nil { return x.UpdatedAt } return "" } var File_private_proto protoreflect.FileDescriptor const file_private_proto_rawDesc = "" + "\n" + "\rprivate.proto\x12\x05cloud\x1a\fblocks.proto\"\xfc\x01\n" + "\x18CreatePrivateDataRequest\x12\x19\n" + "\bcloud_id\x18\x01 \x01(\x04R\acloudId\x12%\n" + "\x0ecloud_identity\x18\x02 \x01(\tR\rcloudIdentity\x12\x1b\n" + "\tdata_type\x18\x03 \x01(\tR\bdataType\x12\x14\n" + "\x05title\x18\x04 \x01(\tR\x05title\x12 \n" + "\vdescription\x18\x05 \x01(\tR\vdescription\x12\x12\n" + "\x04data\x18\x06 \x01(\tR\x04data\x12!\n" + "\fis_encrypted\x18\a \x01(\bR\visEncrypted\x12\x12\n" + "\x04tags\x18\b \x01(\tR\x04tags\"\\\n" + "\x17ListPrivateDataResponse\x12+\n" + "\x04data\x18\x01 \x03(\v2\x17.cloud.CloudPrivateItemR\x04data\x12\x14\n" + "\x05total\x18\x02 \x01(\x03R\x05total\"3\n" + "\vDataRequest\x12\x12\n" + "\x04data\x18\x01 \x01(\tR\x04data\x12\x10\n" + "\x03key\x18\x02 \x01(\tR\x03key\"\x9c\x02\n" + "\x10CloudPrivateItem\x12\x0e\n" + "\x02id\x18\x01 \x01(\x04R\x02id\x12\x1a\n" + "\bidentity\x18\x02 \x01(\tR\bidentity\x12\x1b\n" + "\tdata_type\x18\x03 \x01(\tR\bdataType\x12\x14\n" + "\x05title\x18\x04 \x01(\tR\x05title\x12 \n" + "\vdescription\x18\x05 \x01(\tR\vdescription\x12\x12\n" + "\x04data\x18\x06 \x01(\tR\x04data\x12!\n" + "\fis_encrypted\x18\a \x01(\bR\visEncrypted\x12\x12\n" + "\x04tags\x18\b \x01(\tR\x04tags\x12\x1d\n" + "\n" + "created_at\x18\t \x01(\tR\tcreatedAt\x12\x1d\n" + "\n" + "updated_at\x18\n" + " \x01(\tR\tupdatedAt2\xe0\x04\n" + "\aPrivate\x12H\n" + "\x11CreatePrivateData\x12\x1f.cloud.CreatePrivateDataRequest\x1a\x12.cloud.StatusReply\x12>\n" + "\x0eGetPrivateData\x12\x13.cloud.IdentRequest\x1a\x17.cloud.CloudPrivateItem\x12@\n" + "\x11UpdatePrivateData\x12\x17.cloud.CloudPrivateItem\x1a\x12.cloud.StatusReply\x12<\n" + "\x11DeletePrivateData\x12\x13.cloud.IdentRequest\x1a\x12.cloud.StatusReply\x12F\n" + "\x0fListPrivateData\x12\x13.cloud.FetchRequest\x1a\x1e.cloud.ListPrivateDataResponse\x12K\n" + "\x14GetPrivateDataByType\x12\x13.cloud.FetchRequest\x1a\x1e.cloud.ListPrivateDataResponse\x12H\n" + "\x11SearchPrivateData\x12\x13.cloud.FetchRequest\x1a\x1e.cloud.ListPrivateDataResponse\x125\n" + "\vEncryptData\x12\x12.cloud.DataRequest\x1a\x12.cloud.StatusReply\x125\n" + "\vDecryptData\x12\x12.cloud.DataRequest\x1a\x12.cloud.StatusReplyB\tZ\a.;cloudb\x06proto3" var ( file_private_proto_rawDescOnce sync.Once file_private_proto_rawDescData []byte ) func file_private_proto_rawDescGZIP() []byte { file_private_proto_rawDescOnce.Do(func() { file_private_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_private_proto_rawDesc), len(file_private_proto_rawDesc))) }) return file_private_proto_rawDescData } var file_private_proto_msgTypes = make([]protoimpl.MessageInfo, 4) var file_private_proto_goTypes = []any{ (*CreatePrivateDataRequest)(nil), // 0: cloud.CreatePrivateDataRequest (*ListPrivateDataResponse)(nil), // 1: cloud.ListPrivateDataResponse (*DataRequest)(nil), // 2: cloud.DataRequest (*CloudPrivateItem)(nil), // 3: cloud.CloudPrivateItem (*IdentRequest)(nil), // 4: cloud.IdentRequest (*FetchRequest)(nil), // 5: cloud.FetchRequest (*StatusReply)(nil), // 6: cloud.StatusReply } var file_private_proto_depIdxs = []int32{ 3, // 0: cloud.ListPrivateDataResponse.data:type_name -> cloud.CloudPrivateItem 0, // 1: cloud.Private.CreatePrivateData:input_type -> cloud.CreatePrivateDataRequest 4, // 2: cloud.Private.GetPrivateData:input_type -> cloud.IdentRequest 3, // 3: cloud.Private.UpdatePrivateData:input_type -> cloud.CloudPrivateItem 4, // 4: cloud.Private.DeletePrivateData:input_type -> cloud.IdentRequest 5, // 5: cloud.Private.ListPrivateData:input_type -> cloud.FetchRequest 5, // 6: cloud.Private.GetPrivateDataByType:input_type -> cloud.FetchRequest 5, // 7: cloud.Private.SearchPrivateData:input_type -> cloud.FetchRequest 2, // 8: cloud.Private.EncryptData:input_type -> cloud.DataRequest 2, // 9: cloud.Private.DecryptData:input_type -> cloud.DataRequest 6, // 10: cloud.Private.CreatePrivateData:output_type -> cloud.StatusReply 3, // 11: cloud.Private.GetPrivateData:output_type -> cloud.CloudPrivateItem 6, // 12: cloud.Private.UpdatePrivateData:output_type -> cloud.StatusReply 6, // 13: cloud.Private.DeletePrivateData:output_type -> cloud.StatusReply 1, // 14: cloud.Private.ListPrivateData:output_type -> cloud.ListPrivateDataResponse 1, // 15: cloud.Private.GetPrivateDataByType:output_type -> cloud.ListPrivateDataResponse 1, // 16: cloud.Private.SearchPrivateData:output_type -> cloud.ListPrivateDataResponse 6, // 17: cloud.Private.EncryptData:output_type -> cloud.StatusReply 6, // 18: cloud.Private.DecryptData:output_type -> cloud.StatusReply 10, // [10:19] is the sub-list for method output_type 1, // [1:10] 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_private_proto_init() } func file_private_proto_init() { if File_private_proto != nil { return } file_blocks_proto_init() type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: unsafe.Slice(unsafe.StringData(file_private_proto_rawDesc), len(file_private_proto_rawDesc)), NumEnums: 0, NumMessages: 4, NumExtensions: 0, NumServices: 1, }, GoTypes: file_private_proto_goTypes, DependencyIndexes: file_private_proto_depIdxs, MessageInfos: file_private_proto_msgTypes, }.Build() File_private_proto = out.File file_private_proto_goTypes = nil file_private_proto_depIdxs = nil }