Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove Set API from uTwin #252

Merged
merged 1 commit into from
Nov 25, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 {}
Loading