syntax = "proto3"; package onprem.user.v1; option go_package="gitlab.com/on-prem-net/protocol/onprem/user/v1;userproto"; import "google/protobuf/timestamp.proto"; message FileInfo { string id = 1; uint32 size = 2; string filename = 3; optional google.protobuf.Timestamp created_at = 4; } message FindFileInfoRequest { message SizeAndHash { uint32 size = 1; bytes hash_md5 = 2; } oneof type { string id = 1; SizeAndHash size_and_hash = 2; }; } message FindFileInfoResponse { FileInfo file_info = 1; }