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 = "FunctionParsingErrorProto";
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 function parsing errors.
31 // Container for enum describing possible function parsing errors.
32 message FunctionParsingErrorEnum {
33 // Enum describing possible function parsing errors.
34 enum FunctionParsingError {
38 // The received error code is not known in this version.
41 // Unexpected end of function string.
44 // Could not find an expected character.
45 EXPECTED_CHARACTER = 3;
47 // Unexpected separator character.
48 UNEXPECTED_SEPARATOR = 4;
50 // Unmatched left bracket or parenthesis.
51 UNMATCHED_LEFT_BRACKET = 5;
53 // Unmatched right bracket or parenthesis.
54 UNMATCHED_RIGHT_BRACKET = 6;
56 // Functions are nested too deeply.
57 TOO_MANY_NESTED_FUNCTIONS = 7;
59 // Missing right-hand-side operand.
60 MISSING_RIGHT_HAND_OPERAND = 8;
62 // Invalid operator/function name.
63 INVALID_OPERATOR_NAME = 9;
65 // Feed attribute operand's argument is not an integer.
66 FEED_ATTRIBUTE_OPERAND_ARGUMENT_NOT_INTEGER = 10;
68 // Missing function operands.
71 // Function had too many operands.
72 TOO_MANY_OPERANDS = 12;