From 3cefb30bfe9b4a1cd57fcc997d5892ea2497ce0b Mon Sep 17 00:00:00 2001 From: Ruchir Chauhan Date: Tue, 9 Apr 2024 15:07:20 -0400 Subject: [PATCH] Making Uri proto, microuri support mandatory and longuri support optional (#110) * Update uri.proto to support microuri * Modify UEntity and UResource Ids to be required fields In order to make microuri support standard and mandatory, all the "Id" fields need to be required fields and the corresponding "name" fields have to be optional. * Incorporating suggestions Make all the fields optional, to allow long form only and micro form only. --- up-core-api/uprotocol/uri.proto | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/up-core-api/uprotocol/uri.proto b/up-core-api/uprotocol/uri.proto index 00cb1ef..08d27e7 100644 --- a/up-core-api/uprotocol/uri.proto +++ b/up-core-api/uprotocol/uri.proto @@ -74,8 +74,8 @@ message UAuthority { // A uE that publishes events is a Service role.
// A uE that consumes events is an Application role. message UEntity { - string name = 1; // Name of the entity - optional uint32 id = 2; // The numeric ID for the uEntity assigned from the name/number registry + optional string name = 1; // Name of the entity + optional uint32 id = 2; // The numeric ID for the uEntity assigned from the name/number registry optional uint32 version_major = 3; // optional major version of the uEntity optional uint32 version_minor = 4; // optional minor version of the uEntity } @@ -91,7 +91,7 @@ message UEntity { // Resources are unique when prepended with UAuthority that represents the device and // UEntity that represents the service. message UResource { - string name = 1; // Name of the resource + optional string name = 1; // Name of the resource optional string instance = 2; // Instance of the resource optional string message = 3; // Message type for the resource optional uint32 id = 4; // Numerical representation of the UResource portion of the UUri