calendar_period.proto 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. // Copyright 2021 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. syntax = "proto3";
  15. package google.type;
  16. option go_package = "google.golang.org/genproto/googleapis/type/calendarperiod;calendarperiod";
  17. option java_multiple_files = true;
  18. option java_outer_classname = "CalendarPeriodProto";
  19. option java_package = "com.google.type";
  20. option objc_class_prefix = "GTP";
  21. // A `CalendarPeriod` represents the abstract concept of a time period that has
  22. // a canonical start. Grammatically, "the start of the current
  23. // `CalendarPeriod`." All calendar times begin at midnight UTC.
  24. enum CalendarPeriod {
  25. // Undefined period, raises an error.
  26. CALENDAR_PERIOD_UNSPECIFIED = 0;
  27. // A day.
  28. DAY = 1;
  29. // A week. Weeks begin on Monday, following
  30. // [ISO 8601](https://en.wikipedia.org/wiki/ISO_week_date).
  31. WEEK = 2;
  32. // A fortnight. The first calendar fortnight of the year begins at the start
  33. // of week 1 according to
  34. // [ISO 8601](https://en.wikipedia.org/wiki/ISO_week_date).
  35. FORTNIGHT = 3;
  36. // A month.
  37. MONTH = 4;
  38. // A quarter. Quarters start on dates 1-Jan, 1-Apr, 1-Jul, and 1-Oct of each
  39. // year.
  40. QUARTER = 5;
  41. // A half-year. Half-years start on dates 1-Jan and 1-Jul.
  42. HALF = 6;
  43. // A year.
  44. YEAR = 7;
  45. }