Built motion from commit 6a09e18b.|2.6.11
[motion2.git] / legacy-libs / google-proto-files / google / ads / googleads / v0 / errors / request_error.proto
1 // Copyright 2018 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 //
15
16 syntax = "proto3";
17
18 package google.ads.googleads.v0.errors;
19
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 = "RequestErrorProto";
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";
28
29 // Proto file describing request errors.
30
31 // Container for enum describing possible request errors.
32 message RequestErrorEnum {
33   // Enum describing possible request errors.
34   enum RequestError {
35     // Enum unspecified.
36     UNSPECIFIED = 0;
37
38     // The received error code is not known in this version.
39     UNKNOWN = 1;
40
41     // Resource name is required for this request.
42     RESOURCE_NAME_MISSING = 3;
43
44     // Resource name provided is malformed.
45     RESOURCE_NAME_MALFORMED = 4;
46
47     // Resource name provided is malformed.
48     BAD_RESOURCE_ID = 17;
49
50     // Customer ID is invalid.
51     INVALID_CUSTOMER_ID = 16;
52
53     // Mutate operation should have either create, update, or remove specified.
54     OPERATION_REQUIRED = 5;
55
56     // Requested resource not found.
57     RESOURCE_NOT_FOUND = 6;
58
59     // Next page token specified in user request is invalid.
60     INVALID_PAGE_TOKEN = 7;
61
62     // Next page token specified in user request has expired.
63     EXPIRED_PAGE_TOKEN = 8;
64
65     // Required field is missing.
66     REQUIRED_FIELD_MISSING = 9;
67
68     // The field cannot be modified because it's immutable. It's also possible
69     // that the field can be modified using 'create' operation but not 'update'.
70     IMMUTABLE_FIELD = 11;
71
72     // Received too many entries in request.
73     TOO_MANY_MUTATE_OPERATIONS = 13;
74
75     // Request cannot be executed by a manager account.
76     CANNOT_BE_EXECUTED_BY_MANAGER_ACCOUNT = 14;
77
78     // Mutate request was attempting to modify a readonly field.
79     // For instance, Budget fields can be requested for Ad Group,
80     // but are read-only for adGroups:mutate.
81     CANNOT_MODIFY_FOREIGN_FIELD = 15;
82
83     // Enum value is not permitted.
84     INVALID_ENUM_VALUE = 18;
85
86     // The developer-token parameter is required for all requests.
87     DEVELOPER_TOKEN_PARAMETER_MISSING = 19;
88
89     // The login-customer-id parameter is required for this request.
90     LOGIN_CUSTOMER_ID_PARAMETER_MISSING = 20;
91
92     // page_token is set in the validate only request
93     VALIDATE_ONLY_REQUEST_HAS_PAGE_TOKEN = 21;
94   }
95 }