diff --git a/grpcdemo.proto b/grpcdemo.proto deleted file mode 100644 index 056f56c..0000000 --- a/grpcdemo.proto +++ /dev/null @@ -1,17 +0,0 @@ -// Protobuf Definitions For TundraWare Inc. grpc Demo - - -// The date service - -service HostDateTime { - - rpc GetDateTime () returns (CurrentDateTime) {} - -} - -// The response message containing the current date and time - -message CurrentDateTime { - string message = 1; - -} diff --git a/proto/grpcdemo.proto b/proto/grpcdemo.proto new file mode 100644 index 0000000..b7ace85 --- /dev/null +++ b/proto/grpcdemo.proto @@ -0,0 +1,26 @@ +// Protobuf Definitions For TundraWare Inc. grpc Demo + +// Using Protobuf 3 + +syntax = "proto3"; + + +// The date service + +service HostDateTime { + + rpc GetDateTime (Null) returns (CurrentDateTime) {} +} + +// Argument placeholder + +message Null{ + string null = 1; +} + + +// The response message containing the current date and time + +message CurrentDateTime { + string currentdatetime = 1; +}