forked from stephenh/ts-proto
-
Notifications
You must be signed in to change notification settings - Fork 0
/
simple.proto
49 lines (40 loc) · 2.26 KB
/
simple.proto
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
syntax = "proto3";
import "google/protobuf/empty.proto";
import "google/protobuf/timestamp.proto";
import "google/protobuf/wrappers.proto";
import "google/protobuf/struct.proto";
package simple;
// Test
service Test {
option deprecated = true;
// Unary
rpc Unary (google.protobuf.Empty) returns (google.protobuf.Empty) {
option deprecated = true;
}
rpc UnaryStringValue(google.protobuf.StringValue) returns (google.protobuf.StringValue);
rpc UnaryInt64Value(google.protobuf.Int64Value) returns (google.protobuf.Int64Value);
rpc UnaryUint64Value(google.protobuf.UInt64Value) returns (google.protobuf.UInt64Value);
rpc UnaryInt32Value(google.protobuf.Int32Value) returns (google.protobuf.Int32Value);
rpc UnaryUInt32Value(google.protobuf.UInt32Value) returns (google.protobuf.UInt32Value);
rpc UnaryBytesValue(google.protobuf.BytesValue) returns (google.protobuf.BytesValue);
rpc UnaryFloatValue(google.protobuf.FloatValue) returns (google.protobuf.FloatValue);
rpc UnaryDoubleValue(google.protobuf.DoubleValue) returns (google.protobuf.DoubleValue);
rpc UnaryBoolValue(google.protobuf.BoolValue) returns (google.protobuf.BoolValue);
rpc UnaryTimestamp(google.protobuf.Timestamp) returns (google.protobuf.Timestamp);
rpc Struct(google.protobuf.Struct) returns (google.protobuf.Struct);
rpc Value(google.protobuf.Value) returns (google.protobuf.Value);
rpc ListValue(google.protobuf.ListValue) returns (google.protobuf.ListValue);
// Server Streaming
rpc ServerStreaming (TestMessage) returns (stream TestMessage) {}
rpc ServerStreamingStringValue (google.protobuf.StringValue) returns (stream google.protobuf.StringValue) {}
rpc ServerStreamingStruct(google.protobuf.Struct) returns (stream google.protobuf.Struct) {}
// Client Streaming
rpc ClientStreaming (stream TestMessage) returns (TestMessage) {}
rpc ClientStreamingStringValue (stream google.protobuf.StringValue) returns (google.protobuf.StringValue) {}
// Bidi Streaming
rpc BidiStreaming (stream TestMessage) returns (stream TestMessage) {}
rpc BidiStreamingStringValue (stream google.protobuf.StringValue) returns (stream google.protobuf.StringValue) {}
}
message TestMessage {
google.protobuf.Timestamp timestamp = 1;
}