This repository was archived by the owner on Feb 12, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 23
/
Copy pathTestMessage.proto
64 lines (54 loc) · 1.53 KB
/
TestMessage.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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
syntax = "proto3";
package gojek.beast;
import "google/protobuf/timestamp.proto";
import "google/protobuf/duration.proto";
import "google/protobuf/struct.proto";
import "google/type/date.proto";
option java_multiple_files = true;
option java_package = "com.gojek.beast";
option java_outer_classname = "TestMessageProto";
message TestKey {
string order_number = 1;
string order_url = 2;
}
message TestMessage {
string order_number = 1;
string order_url = 2;
string order_details = 3;
google.protobuf.Timestamp created_at = 4;
gojek.beast.Status status = 5;
int64 discount = 6;
bool success = 7;
float price = 8;
map<string, string> current_state = 9;
bytes user_token = 10;
google.protobuf.Duration trip_duration = 11;
repeated string aliases = 12;
google.protobuf.Struct properties = 13;
google.type.Date order_date = 14;
repeated google.protobuf.Timestamp updated_at = 15;
repeated google.protobuf.Struct attributes = 16;
}
message TestMessageChild {
string order_number = 1;
bool success = 7;
}
message TestNestedMessage {
string nested_id = 1;
TestMessage single_message = 2;
}
message TestRecursiveMessage {
string string_value = 1;
float float_value = 2;
TestRecursiveMessage recursive_message = 3;
}
message TestNestedRepeatedMessage {
TestMessage single_message = 1;
repeated TestMessage repeated_message = 2;
int32 number_field = 3;
repeated int32 repeated_number_field = 4;
}
enum Status {
COMPLETED = 0;
CANCELLED = 1;
}