Skip to content

Commit

Permalink
Replace protocol Empty message with custom one, so we remove the depe…
Browse files Browse the repository at this point in the history
…ndency on protobuf built-in messages (#79)
  • Loading branch information
slinkydeveloper authored Mar 22, 2024
1 parent 61ae44b commit 26d91e6
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions dev/restate/service/protocol.proto
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@ syntax = "proto3";

package dev.restate.service.protocol;

import "google/protobuf/empty.proto";

option java_package = "dev.restate.generated.service.protocol";
option go_package = "restate.dev/sdk-go/pb/service/protocol";

Expand Down Expand Up @@ -49,7 +47,7 @@ message CompletionMessage {
uint32 entry_index = 1;

oneof result {
google.protobuf.Empty empty = 13;
Empty empty = 13;
bytes value = 14;
Failure failure = 15;
};
Expand Down Expand Up @@ -130,7 +128,7 @@ message GetStateEntryMessage {
bytes key = 1;

oneof result {
google.protobuf.Empty empty = 13;
Empty empty = 13;
bytes value = 14;
Failure failure = 15;
};
Expand Down Expand Up @@ -182,7 +180,7 @@ message SleepEntryMessage {
uint64 wake_up_time = 1;

oneof result {
google.protobuf.Empty empty = 13;
Empty empty = 13;
Failure failure = 15;
}
}
Expand Down Expand Up @@ -267,3 +265,6 @@ message Header {
string key = 1;
string value = 2;
}

message Empty {
}

0 comments on commit 26d91e6

Please sign in to comment.