Skip to content

Commit

Permalink
Merge pull request #235 from gregmedd/bugfix/cpp/enable-service-gener…
Browse files Browse the repository at this point in the history
…ation

Enable generic service generation in C++
  • Loading branch information
stevenhartley authored Sep 19, 2024
2 parents da5ca97 + 6622fc1 commit 2919c5b
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 0 deletions.
3 changes: 3 additions & 0 deletions up-core-api/uprotocol/core/udiscovery/v3/udiscovery.proto
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ option java_package = "org.eclipse.uprotocol.core.udiscovery.v3";
option java_outer_classname = "UDiscoveryProto";
option java_multiple_files = true;

// Enables generation of generic service attributes in C++
option cc_generic_services = true;

// Platform USE Discovery Service Interface
service uDiscovery {
option (uprotocol.service_name) = "core.udiscovery"; // Service name
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ option java_package = "org.eclipse.uprotocol.core.usubscription.v3";
option java_outer_classname = "USubscriptionProto";
option java_multiple_files = true;

// Enables generation of generic service attributes in C++
option cc_generic_services = true;

// Subscription Service Interface definition
service uSubscription {
option (uprotocol.service_name) = "core.usubscription"; // Service name
Expand Down
3 changes: 3 additions & 0 deletions up-core-api/uprotocol/core/utwin/v2/utwin.proto
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ option java_package = "org.eclipse.uprotocol.core.utwin.v2";
option java_outer_classname = "UTwinProto";
option java_multiple_files = true;

// Enables generation of generic service attributes in C++
option cc_generic_services = true;

// uTwin Service interface definition
service uTwin {
option (uprotocol.service_name) = "core.utwin"; // Service name
Expand Down
3 changes: 3 additions & 0 deletions up-core-api/uprotocol/uoptions.proto
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ import "google/protobuf/descriptor.proto";
option java_package = "org.eclipse.uprotocol";
option java_multiple_files = true;

// Enables generation of generic service attributes in C++
option cc_generic_services = true;


/////////////////////////////////////////////////////////
// RESERVED UPROTOCOL OPTION IDS
Expand Down

0 comments on commit 2919c5b

Please sign in to comment.