dates.proto 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. // Copyright 2022 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.ads.googleads.v11.common;
  16. import "google/ads/googleads/v11/enums/month_of_year.proto";
  17. option csharp_namespace = "Google.Ads.GoogleAds.V11.Common";
  18. option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v11/common;common";
  19. option java_multiple_files = true;
  20. option java_outer_classname = "DatesProto";
  21. option java_package = "com.google.ads.googleads.v11.common";
  22. option objc_class_prefix = "GAA";
  23. option php_namespace = "Google\\Ads\\GoogleAds\\V11\\Common";
  24. option ruby_package = "Google::Ads::GoogleAds::V11::Common";
  25. // Proto file describing date range message.
  26. // A date range.
  27. message DateRange {
  28. // The start date, in yyyy-mm-dd format. This date is inclusive.
  29. optional string start_date = 3;
  30. // The end date, in yyyy-mm-dd format. This date is inclusive.
  31. optional string end_date = 4;
  32. }
  33. // The year month range inclusive of the start and end months.
  34. // Eg: A year month range to represent Jan 2020 would be: (Jan 2020, Jan 2020).
  35. message YearMonthRange {
  36. // The inclusive start year month.
  37. YearMonth start = 1;
  38. // The inclusive end year month.
  39. YearMonth end = 2;
  40. }
  41. // Year month.
  42. message YearMonth {
  43. // The year (for example, 2020).
  44. int64 year = 1;
  45. // The month of the year. (for example, FEBRUARY).
  46. google.ads.googleads.v11.enums.MonthOfYearEnum.MonthOfYear month = 2;
  47. }