|
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 | +} |
0 commit comments