-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrss_client.proto
61 lines (45 loc) · 1.74 KB
/
rss_client.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
syntax = "proto3";
package RSS;// RSS=Road Surface Status
// Resource: https://github.com/protocolbuffers/protobuf/blob/main/examples/addressbook.proto
// Imports
// Resource: https://developers.google.com/protocol-buffers/docs/overview#common-types
import "google/protobuf/timestamp.proto";
import "google/type/datetime.proto";
import "google/type/latlng.proto";
import "google/type/postal_address.proto";
// [START global_declaration]
option optimize_for = SPEED; // Enabled by default
// [END global_declaration]
// [START java_declaration]
option java_multiple_files = true; // enables generating a separate .java file for each generated class
option java_package = "com.capstone.rss";
// option java_outer_classname = "RSD";
// [END java_declaration]
message Client {
string name = 1;
int32 id = 2;
string email = 3;
DamageLocation damageLocation =4;
double speed = 6;
repeated BlobSrc blobs = 7;
/* A key value pair mapping of the BlobSrc objects.
The keys are represented as hashed name and the BlobSrc as the value.
Use the repeated attribute instead */
map<string,BlobSrc> blob_map = 8 [deprecated=true];
}
/* Latitude and Longitude of the captured road surface damage */
message DamageLocation{
google.type.LatLng lat_lng = 1;
google.type.PostalAddress address = 2;
}
/* Represets the blob and its parameters. */
message BlobSrc {
string blob_url = 1; // URL to the blobs location. i.e. the url to the s3 bucket it is stored in
google.type.DateTime datetime_created = 2; // Date blob was created
// google.protobuf.Timestamp time_created = 3 [deprecated=true]; // Time the blob was created
/* A blob type represented as either an image or video. */
oneof blob_type {
string image = 3;
string video = 4;
}
}