Skip to content

Commit

Permalink
Merge pull request #37 from Concordium/vh/concordium-net-sdk
Browse files Browse the repository at this point in the history
Add namespace for C# projects.
  • Loading branch information
abizjak authored May 19, 2023
2 parents 74cb8df + 69452a8 commit cdc5923
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
4 changes: 4 additions & 0 deletions v2/concordium/health.proto
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ option java_package = "com.concordium.grpc.v2";
// If not generating Java code, this option has no effect.
option java_multiple_files = true;

// This specifies the package we want to use for our generated C# classes.
// Has no effect on code generated on other languages.
option csharp_namespace = "Concordium.Grpc.V2";

// Parameters to the node health query. The default message gives a good
// default.
message NodeHealthRequest {}
Expand Down
4 changes: 4 additions & 0 deletions v2/concordium/service.proto
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ package concordium.v2;
// Has no effect on code generated on other languages.
option java_package = "com.concordium.grpc.v2";

// This specifies the package we want to use for our generated C# classes.
// Has no effect on code generated on other languages.
option csharp_namespace = "Concordium.Grpc.V2";

// This specifies that separate .java files will be generated for each of the Java classes/enums/etc. generated for the top-level messages, services, and enumerations,
// and the wrapper Java class generated for this .proto file won't contain any nested classes/enums/etc.
// If not generating Java code, this option has no effect.
Expand Down
4 changes: 4 additions & 0 deletions v2/concordium/types.proto
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ option java_package = "com.concordium.grpc.v2";
// If not generating Java code, this option has no effect.
option java_multiple_files = true;

// This specifies the package we want to use for our generated C# classes.
// Has no effect on code generated on other languages.
option csharp_namespace = "Concordium.Grpc.V2";

// A message that contains no information.
message Empty {
}
Expand Down

0 comments on commit cdc5923

Please sign in to comment.