Skip to content

Commit ae7934d

Browse files
committed
move proto in src
1 parent c32b344 commit ae7934d

File tree

76 files changed

+5638
-5638
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

76 files changed

+5638
-5638
lines changed

build.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ fn is_proto(entry: Option<DirEntry>) -> Option<DirEntry> {
2222

2323
fn main() -> Result<(), Box<dyn std::error::Error>> {
2424
let mut vec: Vec<DirEntry> = Vec::new();
25-
for entry in WalkDir::new("proto")
25+
for entry in WalkDir::new("src")
2626
.into_iter()
2727
.filter_map(|e| (is_proto(e.ok())))
2828
{
@@ -35,6 +35,6 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
3535
tonic_build::configure()
3636
.build_server(false)
3737
.out_dir("src")
38-
.compile(&protos[..], &["proto"])?;
38+
.compile(&protos[..], &["src"])?;
3939
return Ok(());
4040
}
Original file line numberDiff line numberDiff line change
@@ -1,46 +1,46 @@
1-
// Copyright 2019 Google LLC.
2-
//
3-
// Licensed under the Apache License, Version 2.0 (the "License");
4-
// you may not use this file except in compliance with the License.
5-
// You may obtain a copy of the License at
6-
//
7-
// http://www.apache.org/licenses/LICENSE-2.0
8-
//
9-
// Unless required by applicable law or agreed to in writing, software
10-
// distributed under the License is distributed on an "AS IS" BASIS,
11-
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12-
// See the License for the specific language governing permissions and
13-
// limitations under the License.
14-
//
15-
16-
// imported from https://raw.githubusercontent.com/googleapis/api-common-protos/master/google/type/date.proto
17-
18-
// Represents a whole or partial calendar date, e.g. a birthday. The time of day and time zone are either specified elsewhere or are not significant.
19-
// <br>The date is relative to the Proleptic Gregorian Calendar. This can represent:
20-
// <br>- A full date, with non-zero year, month and day values
21-
// <br>- A month and day value, with a zero year, e.g. an anniversary
22-
// <br>- A year on its own, with zero month and day values
23-
// <br>- A year and month value, with a zero day, e.g. a credit card expiration date
24-
// <br>Related types are <a href ="#google/type/timeofday.proto">google.type.TimeOfDay</a> and <a href ="#google/type/dayofweek.proto">google.type.DayOfWeek</a>.
25-
syntax = "proto3";
26-
27-
package google.type;
28-
29-
option cc_enable_arenas = true;
30-
option go_package = "google.golang.org/genproto/googleapis/type/date;date";
31-
option java_multiple_files = true;
32-
option java_outer_classname = "DateProto";
33-
option java_package = "com.google.type";
34-
option objc_class_prefix = "GTP";
35-
36-
// Contains the date.
37-
message Date {
38-
// Year of date. Must be from 1 to 9999, or 0 if specifying a date without a year
39-
int32 year = 1;
40-
41-
// Month of year. Must be from 1 to 12, or 0 if specifying a year without a month and day
42-
int32 month = 2;
43-
44-
// Day of month. Must be from 1 to 31 and valid for the year and month, or 0 if specifying a year by itself or a year and month where the day is not significant.
45-
int32 day = 3;
46-
}
1+
// Copyright 2019 Google LLC.
2+
//
3+
// Licensed under the Apache License, Version 2.0 (the "License");
4+
// you may not use this file except in compliance with the License.
5+
// You may obtain a copy of the License at
6+
//
7+
// http://www.apache.org/licenses/LICENSE-2.0
8+
//
9+
// Unless required by applicable law or agreed to in writing, software
10+
// distributed under the License is distributed on an "AS IS" BASIS,
11+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
// See the License for the specific language governing permissions and
13+
// limitations under the License.
14+
//
15+
16+
// imported from https://raw.githubusercontent.com/googleapis/api-common-protos/master/google/type/date.proto
17+
18+
// Represents a whole or partial calendar date, e.g. a birthday. The time of day and time zone are either specified elsewhere or are not significant.
19+
// <br>The date is relative to the Proleptic Gregorian Calendar. This can represent:
20+
// <br>- A full date, with non-zero year, month and day values
21+
// <br>- A month and day value, with a zero year, e.g. an anniversary
22+
// <br>- A year on its own, with zero month and day values
23+
// <br>- A year and month value, with a zero day, e.g. a credit card expiration date
24+
// <br>Related types are <a href ="#google/type/timeofday.proto">google.type.TimeOfDay</a> and <a href ="#google/type/dayofweek.proto">google.type.DayOfWeek</a>.
25+
syntax = "proto3";
26+
27+
package google.type;
28+
29+
option cc_enable_arenas = true;
30+
option go_package = "google.golang.org/genproto/googleapis/type/date;date";
31+
option java_multiple_files = true;
32+
option java_outer_classname = "DateProto";
33+
option java_package = "com.google.type";
34+
option objc_class_prefix = "GTP";
35+
36+
// Contains the date.
37+
message Date {
38+
// Year of date. Must be from 1 to 9999, or 0 if specifying a date without a year
39+
int32 year = 1;
40+
41+
// Month of year. Must be from 1 to 12, or 0 if specifying a year without a month and day
42+
int32 month = 2;
43+
44+
// Day of month. Must be from 1 to 31 and valid for the year and month, or 0 if specifying a year by itself or a year and month where the day is not significant.
45+
int32 day = 3;
46+
}
Original file line numberDiff line numberDiff line change
@@ -1,54 +1,54 @@
1-
// Copyright 2019 Google LLC.
2-
//
3-
// Licensed under the Apache License, Version 2.0 (the "License");
4-
// you may not use this file except in compliance with the License.
5-
// You may obtain a copy of the License at
6-
//
7-
// http://www.apache.org/licenses/LICENSE-2.0
8-
//
9-
// Unless required by applicable law or agreed to in writing, software
10-
// distributed under the License is distributed on an "AS IS" BASIS,
11-
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12-
// See the License for the specific language governing permissions and
13-
// limitations under the License.
14-
//
15-
16-
// imported from https://raw.githubusercontent.com/googleapis/api-common-protos/master/google/type/dayofweek.proto
17-
18-
// Represents a day of week.
19-
syntax = "proto3";
20-
21-
package google.type;
22-
23-
option go_package = "google.golang.org/genproto/googleapis/type/dayofweek;dayofweek";
24-
option java_multiple_files = true;
25-
option java_outer_classname = "DayOfWeekProto";
26-
option java_package = "com.google.type";
27-
option objc_class_prefix = "GTP";
28-
29-
// Contains the day of week values.
30-
enum DayOfWeek {
31-
// The unspecified day-of-week
32-
DAY_OF_WEEK_UNSPECIFIED = 0;
33-
34-
// The day-of-week of Monday
35-
MONDAY = 1;
36-
37-
// The day-of-week of Tuesday
38-
TUESDAY = 2;
39-
40-
// The day-of-week of Wednesday
41-
WEDNESDAY = 3;
42-
43-
// The day-of-week of Thursday
44-
THURSDAY = 4;
45-
46-
// The day-of-week of Friday
47-
FRIDAY = 5;
48-
49-
// The day-of-week of Saturday
50-
SATURDAY = 6;
51-
52-
// The day-of-week of Sunday
53-
SUNDAY = 7;
54-
}
1+
// Copyright 2019 Google LLC.
2+
//
3+
// Licensed under the Apache License, Version 2.0 (the "License");
4+
// you may not use this file except in compliance with the License.
5+
// You may obtain a copy of the License at
6+
//
7+
// http://www.apache.org/licenses/LICENSE-2.0
8+
//
9+
// Unless required by applicable law or agreed to in writing, software
10+
// distributed under the License is distributed on an "AS IS" BASIS,
11+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
// See the License for the specific language governing permissions and
13+
// limitations under the License.
14+
//
15+
16+
// imported from https://raw.githubusercontent.com/googleapis/api-common-protos/master/google/type/dayofweek.proto
17+
18+
// Represents a day of week.
19+
syntax = "proto3";
20+
21+
package google.type;
22+
23+
option go_package = "google.golang.org/genproto/googleapis/type/dayofweek;dayofweek";
24+
option java_multiple_files = true;
25+
option java_outer_classname = "DayOfWeekProto";
26+
option java_package = "com.google.type";
27+
option objc_class_prefix = "GTP";
28+
29+
// Contains the day of week values.
30+
enum DayOfWeek {
31+
// The unspecified day-of-week
32+
DAY_OF_WEEK_UNSPECIFIED = 0;
33+
34+
// The day-of-week of Monday
35+
MONDAY = 1;
36+
37+
// The day-of-week of Tuesday
38+
TUESDAY = 2;
39+
40+
// The day-of-week of Wednesday
41+
WEDNESDAY = 3;
42+
43+
// The day-of-week of Thursday
44+
THURSDAY = 4;
45+
46+
// The day-of-week of Friday
47+
FRIDAY = 5;
48+
49+
// The day-of-week of Saturday
50+
SATURDAY = 6;
51+
52+
// The day-of-week of Sunday
53+
SUNDAY = 7;
54+
}
Original file line numberDiff line numberDiff line change
@@ -1,46 +1,46 @@
1-
// Copyright 2019 Google LLC.
2-
//
3-
// Licensed under the Apache License, Version 2.0 (the "License");
4-
// you may not use this file except in compliance with the License.
5-
// You may obtain a copy of the License at
6-
//
7-
// http://www.apache.org/licenses/LICENSE-2.0
8-
//
9-
// Unless required by applicable law or agreed to in writing, software
10-
// distributed under the License is distributed on an "AS IS" BASIS,
11-
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12-
// See the License for the specific language governing permissions and
13-
// limitations under the License.
14-
//
15-
16-
// imported from https://raw.githubusercontent.com/googleapis/api-common-protos/master/google/type/timeofday.proto
17-
18-
// Represents a time of day. The date and time zone are either not significant or are specified elsewhere. An API may choose to allow leap seconds.
19-
// <br>Related types are <a href ="#google/type/date.proto">google.type.Date</a> and <a href ="#google/type/dayofweek.proto">google.type.DayOfWeek</a>.
20-
syntax = "proto3";
21-
22-
package google.type;
23-
24-
option cc_enable_arenas = true;
25-
option go_package = "google.golang.org/genproto/googleapis/type/timeofday;timeofday";
26-
option java_multiple_files = true;
27-
option java_outer_classname = "TimeOfDayProto";
28-
option java_package = "com.google.type";
29-
option objc_class_prefix = "GTP";
30-
31-
32-
message TimeOfDay {
33-
// Hours of day in 24 hour format. Should be from 0 to 23. An API may choose
34-
// to allow the value "24:00:00" for scenarios like business closing time.
35-
int32 hours = 1;
36-
37-
// Minutes of hour of day. Must be from 0 to 59.
38-
int32 minutes = 2;
39-
40-
// Seconds of minutes of the time. Must normally be from 0 to 59. An API may
41-
// allow the value 60 if it allows leap-seconds.
42-
int32 seconds = 3;
43-
44-
// Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
45-
int32 nanos = 4;
46-
}
1+
// Copyright 2019 Google LLC.
2+
//
3+
// Licensed under the Apache License, Version 2.0 (the "License");
4+
// you may not use this file except in compliance with the License.
5+
// You may obtain a copy of the License at
6+
//
7+
// http://www.apache.org/licenses/LICENSE-2.0
8+
//
9+
// Unless required by applicable law or agreed to in writing, software
10+
// distributed under the License is distributed on an "AS IS" BASIS,
11+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
// See the License for the specific language governing permissions and
13+
// limitations under the License.
14+
//
15+
16+
// imported from https://raw.githubusercontent.com/googleapis/api-common-protos/master/google/type/timeofday.proto
17+
18+
// Represents a time of day. The date and time zone are either not significant or are specified elsewhere. An API may choose to allow leap seconds.
19+
// <br>Related types are <a href ="#google/type/date.proto">google.type.Date</a> and <a href ="#google/type/dayofweek.proto">google.type.DayOfWeek</a>.
20+
syntax = "proto3";
21+
22+
package google.type;
23+
24+
option cc_enable_arenas = true;
25+
option go_package = "google.golang.org/genproto/googleapis/type/timeofday;timeofday";
26+
option java_multiple_files = true;
27+
option java_outer_classname = "TimeOfDayProto";
28+
option java_package = "com.google.type";
29+
option objc_class_prefix = "GTP";
30+
31+
32+
message TimeOfDay {
33+
// Hours of day in 24 hour format. Should be from 0 to 23. An API may choose
34+
// to allow the value "24:00:00" for scenarios like business closing time.
35+
int32 hours = 1;
36+
37+
// Minutes of hour of day. Must be from 0 to 59.
38+
int32 minutes = 2;
39+
40+
// Seconds of minutes of the time. Must normally be from 0 to 59. An API may
41+
// allow the value 60 if it allows leap-seconds.
42+
int32 seconds = 3;
43+
44+
// Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
45+
int32 nanos = 4;
46+
}

0 commit comments

Comments
 (0)