Skip to content

Commit

Permalink
Remove Set API from uTwin (#252)
Browse files Browse the repository at this point in the history
The set API is not part of the public APIs that clients will use so it needs to be removed.

#221
  • Loading branch information
stevenhartley authored Nov 25, 2024
1 parent fec4ce9 commit 623c520
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions up-core-api/uprotocol/core/utwin/v2/utwin.proto
Original file line number Diff line number Diff line change
Expand Up @@ -42,16 +42,6 @@ service uTwin {
rpc GetLastMessages(GetLastMessagesRequest) returns (GetLastMessagesResponse) {
option (uprotocol.method_id) = 1;
}

// A call to SetLasMessage (typically from uBus) to update the uTwin internal cache
// with a message for a given topic (UMessage.source).
// If setting the value fails, the response is a UStatus with code
// - INVALID_ARGUMENT if uTwin encountered an issue with UMessage content (source field in particular)
// - PERMISSION_DENIED if requesting uE does not have permission to access the Topic
// - RESOURCE_EXHAUSTED if uTwin has no more memory available to store new UMessages
rpc SetLastMessage(SetLastMessageRequest) returns (SetLastMessageResponse) {
option (uprotocol.method_id) = 2;
}
}


Expand All @@ -78,11 +68,3 @@ message GetLastMessagesResponse {
// List of one or more messages and the results for fetching the message per topic
repeated MessageResponse responses = 2;
}

// The request message for the SetLastMessage operation.
message SetLastMessageRequest {
uprotocol.v1.UMessage message = 1;
}

// The (empty) response message representing the successful execution of the SetLastMessage operation.
message SetLastMessageResponse {}

0 comments on commit 623c520

Please sign in to comment.