1// Copyright 2023 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 15syntax = "proto3"; 16 17package google.ads.googleads.v16.errors; 18 19option csharp_namespace = "Google.Ads.GoogleAds.V16.Errors"; 20option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v16/errors;errors"; 21option java_multiple_files = true; 22option java_outer_classname = "FunctionParsingErrorProto"; 23option java_package = "com.google.ads.googleads.v16.errors"; 24option objc_class_prefix = "GAA"; 25option php_namespace = "Google\\Ads\\GoogleAds\\V16\\Errors"; 26option ruby_package = "Google::Ads::GoogleAds::V16::Errors"; 27 28// Proto file describing function parsing errors. 29 30// Container for enum describing possible function parsing errors. 31message FunctionParsingErrorEnum { 32 // Enum describing possible function parsing errors. 33 enum FunctionParsingError { 34 // Enum unspecified. 35 UNSPECIFIED = 0; 36 37 // The received error code is not known in this version. 38 UNKNOWN = 1; 39 40 // Unexpected end of function string. 41 NO_MORE_INPUT = 2; 42 43 // Could not find an expected character. 44 EXPECTED_CHARACTER = 3; 45 46 // Unexpected separator character. 47 UNEXPECTED_SEPARATOR = 4; 48 49 // Unmatched left bracket or parenthesis. 50 UNMATCHED_LEFT_BRACKET = 5; 51 52 // Unmatched right bracket or parenthesis. 53 UNMATCHED_RIGHT_BRACKET = 6; 54 55 // Functions are nested too deeply. 56 TOO_MANY_NESTED_FUNCTIONS = 7; 57 58 // Missing right-hand-side operand. 59 MISSING_RIGHT_HAND_OPERAND = 8; 60 61 // Invalid operator/function name. 62 INVALID_OPERATOR_NAME = 9; 63 64 // Feed attribute operand's argument is not an integer. 65 FEED_ATTRIBUTE_OPERAND_ARGUMENT_NOT_INTEGER = 10; 66 67 // Missing function operands. 68 NO_OPERANDS = 11; 69 70 // Function had too many operands. 71 TOO_MANY_OPERANDS = 12; 72 } 73} 74