...
 
Commits (2)
This diff is collapsed.
......@@ -2,7 +2,7 @@ syntax = "proto3";
package xyz.degreetech.o.client;
option go_package = "oclientpb";
option go_package = "clientpb";
option java_multiple_files = true;
option java_outer_classname = "IdentProto";
option java_package = "xyz.degreetech.o.client";
......@@ -44,5 +44,5 @@ message RequestBowls {
// Sent after the server sends the last Bowl.
// This _includes_ outage'd Bowls.
message Ready {
int32 bowls_received = 1;
int32 bowls_received = 1;
}
......@@ -2,7 +2,7 @@ syntax = "proto3";
package xyz.degreetech.o.server.fed;
option go_package = "ofedpb";
option go_package = "fedpb";
option java_multiple_files = true;
option java_outer_classname = "IdentProto";
option java_package = "xyz.degreetech.o.server.fed";
......
......@@ -2,7 +2,7 @@ syntax = "proto3";
package xyz.degreetech.o.server;
option go_package = "oserverpb";
option go_package = "serverpb";
option java_multiple_files = true;
option java_outer_classname = "IdentProto";
option java_package = "xyz.degreetech.o.server";
......
......@@ -7,9 +7,9 @@ option java_multiple_files = true;
option java_outer_classname = "EventProto";
option java_package = "xyz.degreetech.o";
import "shared/impl.proto";
import "google/protobuf/any.proto";
import "shared/impl.proto";
import "shared/obj.proto";
// Any additional protocols should send Event
// protos exactly like this one but define their
......@@ -32,4 +32,26 @@ message Event {
VersionedProtocol protocol = 1;
Type type = 2;
google.protobuf.Any data = 3;
// "backup" should be used in the chance
// that the receiving end is unable to handle
// the specified event
Event backup = 4;
}
message NonceResponse {
DomainedID from = 1;
bytes to = 2;
}
message MessageCreate {
oneof identifier {
DomainedID from = 1;
// These bytes should be used
// as a nonce, such that the client
// can understand when the message
// it wanted to send has been sent
bytes to = 2;
NonceResponse response = 3;
}
Message message = 4;
}
......@@ -8,16 +8,19 @@ option java_outer_classname = "ObjProto";
option java_package = "xyz.degreetech.o";
message Resource {
// Used for checking updates
// if a resource with the same
// URL has already been downloaded
// or cached.
string hash = 1;
oneof determiner {
// Used for checking updates
// if a resource with the same
// URL has already been downloaded
// or cached.
string hash = 1;
}
string domain = 2;
// Relative to the domain. A
// URL of "abc/xyz/foo/bar.png"
// means the client should look at
// "https://[domain]/abc/xyz/foo/bar.png".
string url = 2;
string url = 3;
}
message DomainedID {
......@@ -48,7 +51,7 @@ message Channel {
CHANNEL_FUNCTION_VIDEO = 3;
}
DomainedID id = 1;
DomainedID guild_id = 2;
DomainedID bowl_id = 2;
Type type = 3;
Function function = 4;
string name = 5;
......@@ -71,3 +74,13 @@ message User {
message Member {
DomainedID user_id = 1;
}
message Message {
DomainedID id = 1;
DomainedID author = 2;
DomainedID channel = 3;
string contents = 4;
reserved 5; // For embeds
repeated Resource attachments = 6;
reserved 7; // For reactions
}