-
Notifications
You must be signed in to change notification settings - Fork 0
/
rss_cost_analysis.proto
57 lines (42 loc) · 1.45 KB
/
rss_cost_analysis.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
syntax = "proto3";
package RSS;// RSS=Road Surface Status
// Resource: https://github.com/protocolbuffers/protobuf/blob/main/examples/addressbook.proto
// Imports
import "google/protobuf/timestamp.proto";
import "google/type/date.proto";
import "google/type/money.proto";
// import "google/protobuf/duration.proto";
import "rss_client.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.example.rss";
// option java_outer_classname = "RSD";
// [END java_declaration]
message CostEstimationReport {
int32 id = 1;
/* Represents the amount required to fix the road damage */
google.type.Money repair_cost = 2;
bool is_repaired = 3;
int32 report_count=4;
DamageDimension damage_dims = 5;
/* Estimated date the repair cost was created */
google.type.Date date_of_estimation = 6;
google.protobuf.Timestamp time_of_estimation = 7;
google.type.Date est_repair_deadline = 8;
/* The road damage dimensions determined in length, width, and depth of the damage on the road */
message DamageDimension {
double length = 1;
double width = 2;
double depth = 3;
}
//Client.DamageLocation location = 9;
enum ReportFormat{
NONE = 0;
PDF =1;
CSV = 2;
JSON = 3;
}
}