1 // Copyright 2018 Google LLC.
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
7 // http://www.apache.org/licenses/LICENSE-2.0
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.
18 package google.ads.googleads.v0.errors;
20 option csharp_namespace = "Google.Ads.GoogleAds.V0.Errors";
21 option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v0/errors;errors";
22 option java_multiple_files = true;
23 option java_outer_classname = "DateErrorProto";
24 option java_package = "com.google.ads.googleads.v0.errors";
25 option objc_class_prefix = "GAA";
26 option php_namespace = "Google\\Ads\\GoogleAds\\V0\\Errors";
27 option ruby_package = "Google::Ads::GoogleAds::V0::Errors";
29 // Proto file describing date errors.
31 // Container for enum describing possible date errors.
32 message DateErrorEnum {
33 // Enum describing possible date errors.
38 // The received error code is not known in this version.
41 // Given field values do not correspond to a valid date.
42 INVALID_FIELD_VALUES_IN_DATE = 2;
44 // Given field values do not correspond to a valid date time.
45 INVALID_FIELD_VALUES_IN_DATE_TIME = 3;
47 // The string date's format should be yyyy-mm-dd.
48 INVALID_STRING_DATE = 4;
50 // The string date time's format should be yyyy-mm-dd hh:mm:ss.ssssss.
51 INVALID_STRING_DATE_TIME_MICROS = 6;
53 // The string date time's format should be yyyy-mm-dd hh:mm:ss.
54 INVALID_STRING_DATE_TIME_SECONDS = 11;
56 // Date is before allowed minimum.
57 EARLIER_THAN_MINIMUM_DATE = 7;
59 // Date is after allowed maximum.
60 LATER_THAN_MAXIMUM_DATE = 8;
62 // Date range bounds are not in order.
63 DATE_RANGE_MINIMUM_DATE_LATER_THAN_MAXIMUM_DATE = 9;
65 // Both dates in range are null.
66 DATE_RANGE_MINIMUM_AND_MAXIMUM_DATES_BOTH_NULL = 10;