codemp-proto/proto/common.proto

28 lines
517 B
Protocol Buffer
Raw Normal View History

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.
2024-08-21 20:16:14 +02:00
required uint64 hi = 1;
// The least significant bits of the UUID.
2024-08-21 20:16:14 +02:00
required uint64 lo = 2;
}
// Message representing a user.
message User {
// The UUID of the user.
required Identity id = 1;
// The name of a user.
2024-08-22 01:01:17 +02:00
required string name = 2;
}
// A generic empty message.
message Empty { }