Built motion from commit 6a09e18b.|2.6.11
[motion2.git] / legacy-libs / google-proto-files / google / ads / googleads / v1 / errors / account_budget_proposal_error.proto
1 // Copyright 2019 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.v1.errors;
19
20 import "google/api/annotations.proto";
21
22 option csharp_namespace = "Google.Ads.GoogleAds.V1.Errors";
23 option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v1/errors;errors";
24 option java_multiple_files = true;
25 option java_outer_classname = "AccountBudgetProposalErrorProto";
26 option java_package = "com.google.ads.googleads.v1.errors";
27 option objc_class_prefix = "GAA";
28 option php_namespace = "Google\\Ads\\GoogleAds\\V1\\Errors";
29 option ruby_package = "Google::Ads::GoogleAds::V1::Errors";
30 // Proto file describing account budget proposal errors.
31
32 // Container for enum describing possible account budget proposal errors.
33 message AccountBudgetProposalErrorEnum {
34   // Enum describing possible account budget proposal errors.
35   enum AccountBudgetProposalError {
36     // Enum unspecified.
37     UNSPECIFIED = 0;
38
39     // The received error code is not known in this version.
40     UNKNOWN = 1;
41
42     // The field mask must be empty for create/end/remove proposals.
43     FIELD_MASK_NOT_ALLOWED = 2;
44
45     // The field cannot be set because of the proposal type.
46     IMMUTABLE_FIELD = 3;
47
48     // The field is required because of the proposal type.
49     REQUIRED_FIELD_MISSING = 4;
50
51     // Proposals that have been approved cannot be cancelled.
52     CANNOT_CANCEL_APPROVED_PROPOSAL = 5;
53
54     // Budgets that haven't been approved cannot be removed.
55     CANNOT_REMOVE_UNAPPROVED_BUDGET = 6;
56
57     // Budgets that are currently running cannot be removed.
58     CANNOT_REMOVE_RUNNING_BUDGET = 7;
59
60     // Budgets that haven't been approved cannot be truncated.
61     CANNOT_END_UNAPPROVED_BUDGET = 8;
62
63     // Only budgets that are currently running can be truncated.
64     CANNOT_END_INACTIVE_BUDGET = 9;
65
66     // All budgets must have names.
67     BUDGET_NAME_REQUIRED = 10;
68
69     // Expired budgets cannot be edited after a sufficient amount of time has
70     // passed.
71     CANNOT_UPDATE_OLD_BUDGET = 11;
72
73     // It is not permissible a propose a new budget that ends in the past.
74     CANNOT_END_IN_PAST = 12;
75
76     // An expired budget cannot be extended to overlap with the running budget.
77     CANNOT_EXTEND_END_TIME = 13;
78
79     // A purchase order number is required.
80     PURCHASE_ORDER_NUMBER_REQUIRED = 14;
81
82     // Budgets that have a pending update cannot be updated.
83     PENDING_UPDATE_PROPOSAL_EXISTS = 15;
84
85     // Cannot propose more than one budget when the corresponding billing setup
86     // hasn't been approved.
87     MULTIPLE_BUDGETS_NOT_ALLOWED_FOR_UNAPPROVED_BILLING_SETUP = 16;
88
89     // Cannot update the start time of a budget that has already started.
90     CANNOT_UPDATE_START_TIME_FOR_STARTED_BUDGET = 17;
91
92     // Cannot update the spending limit of a budget with an amount lower than
93     // what has already been spent.
94     SPENDING_LIMIT_LOWER_THAN_ACCRUED_COST_NOT_ALLOWED = 18;
95
96     // Cannot propose a budget update without actually changing any fields.
97     UPDATE_IS_NO_OP = 19;
98
99     // The end time must come after the start time.
100     END_TIME_MUST_FOLLOW_START_TIME = 20;
101
102     // The budget's date range must fall within the date range of its billing
103     // setup.
104     BUDGET_DATE_RANGE_INCOMPATIBLE_WITH_BILLING_SETUP = 21;
105
106     // The user is not authorized to mutate budgets for the given billing setup.
107     NOT_AUTHORIZED = 22;
108
109     // Mutates are not allowed for the given billing setup.
110     INVALID_BILLING_SETUP = 23;
111   }
112
113
114 }