🐛 Fix cloudfile proto
This commit is contained in:
@@ -45,7 +45,9 @@ public class CloudFileReferenceObject : ModelBase, ICloudFile
|
|||||||
Name = proto.Name,
|
Name = proto.Name,
|
||||||
FileMeta = GrpcTypeHelper.ConvertByteStringToObject<Dictionary<string, object?>>(proto.FileMeta) ?? [],
|
FileMeta = GrpcTypeHelper.ConvertByteStringToObject<Dictionary<string, object?>>(proto.FileMeta) ?? [],
|
||||||
UserMeta = GrpcTypeHelper.ConvertByteStringToObject<Dictionary<string, object?>>(proto.UserMeta) ?? [],
|
UserMeta = GrpcTypeHelper.ConvertByteStringToObject<Dictionary<string, object?>>(proto.UserMeta) ?? [],
|
||||||
SensitiveMarks = GrpcTypeHelper.ConvertByteStringToObject<List<ContentSensitiveMark>>(proto.SensitiveMarks) ?? [],
|
SensitiveMarks = proto.HasSensitiveMarks
|
||||||
|
? GrpcTypeHelper.ConvertByteStringToObject<List<ContentSensitiveMark>>(proto.SensitiveMarks)
|
||||||
|
: [],
|
||||||
MimeType = proto.MimeType,
|
MimeType = proto.MimeType,
|
||||||
Hash = proto.Hash,
|
Hash = proto.Hash,
|
||||||
Size = proto.Size,
|
Size = proto.Size,
|
||||||
|
@@ -24,7 +24,7 @@ message CloudFile {
|
|||||||
bytes file_meta = 3;
|
bytes file_meta = 3;
|
||||||
// User-defined metadata
|
// User-defined metadata
|
||||||
bytes user_meta = 4;
|
bytes user_meta = 4;
|
||||||
bytes sensitive_marks = 12;
|
optional bytes sensitive_marks = 12;
|
||||||
|
|
||||||
// MIME type of the file
|
// MIME type of the file
|
||||||
string mime_type = 5;
|
string mime_type = 5;
|
||||||
|
Reference in New Issue
Block a user