codemp-proto/proto/common.proto
zaaarf 966e4c6211
docs: written docs
Co-authored-by: alemi <me@alemi.dev>
2024-09-05 00:08:07 +02:00

27 lines
517 B
Protocol Buffer

syntax = "proto2";
package common;
// The authentication token, as a string.
message Token {
required string token = 1;
}
// Message representing a UUID.
message Identity {
// The most significant bits of the UUID.
required uint64 hi = 1;
// The least significant bits of the UUID.
required uint64 lo = 2;
}
// Message representing a user.
message User {
// The UUID of the user.
required Identity id = 1;
// The name of a user.
required string name = 2;
}
// A generic empty message.
message Empty { }