Files
WireMock.Net/test/WireMock.Net.Tests/Grpc/greet.proto
Stef Heyenrath 44c1c7aaa8 Fix google protobuf WellKnownTypes: Empty, Duration and Timestamp (#1231)
* Fix google protobuf WellKnownTypes: Timestamp and Duration

* Fix protobuf Empty

* .

* small refactor

* 006

* fix

* policy

* ---

* <PackageReference Include="ProtoBufJsonConverter" Version="0.7.0" />
2025-01-09 18:50:16 +01:00

41 lines
882 B
Protocol Buffer

syntax = "proto3";
package greet;
import "google/protobuf/empty.proto";
import "google/protobuf/timestamp.proto";
import "google/protobuf/duration.proto";
service Greeter {
rpc SayNothing (google.protobuf.Empty) returns (google.protobuf.Empty);
rpc SayHello (HelloRequest) returns (HelloReply);
rpc SayEmpty (MyMessageEmpty) returns (MyMessageEmpty);
rpc SayTimestamp (MyMessageTimestamp) returns (MyMessageTimestamp);
rpc SayDuration (MyMessageDuration) returns (MyMessageDuration);
}
message HelloRequest {
string name = 1;
}
message HelloReply {
string message = 1;
enum PhoneType {
none = 0;
mobile = 1;
home = 2;
}
PhoneType phoneType = 2;
}
message MyMessageTimestamp {
google.protobuf.Timestamp ts = 1;
}
message MyMessageDuration {
google.protobuf.Duration du = 1;
}
message MyMessageEmpty {
google.protobuf.Empty e = 1;
}