@htdangkhoa/google-ads
Version:
Google Ads API client for Node.js
108 lines (107 loc) • 4.88 kB
JavaScript
;
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
// versions:
// protoc-gen-ts_proto v1.181.2
// protoc v3.21.12
// source: google/ads/googleads/v21/enums/account_budget_status.proto
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.AccountBudgetStatusEnum = exports.AccountBudgetStatusEnum_AccountBudgetStatus = void 0;
exports.accountBudgetStatusEnum_AccountBudgetStatusFromJSON = accountBudgetStatusEnum_AccountBudgetStatusFromJSON;
exports.accountBudgetStatusEnum_AccountBudgetStatusToJSON = accountBudgetStatusEnum_AccountBudgetStatusToJSON;
/* eslint-disable */
const minimal_js_1 = __importDefault(require("protobufjs/minimal.js"));
/** The possible statuses of an AccountBudget. */
var AccountBudgetStatusEnum_AccountBudgetStatus;
(function (AccountBudgetStatusEnum_AccountBudgetStatus) {
/** UNSPECIFIED - Not specified. */
AccountBudgetStatusEnum_AccountBudgetStatus[AccountBudgetStatusEnum_AccountBudgetStatus["UNSPECIFIED"] = 0] = "UNSPECIFIED";
/** UNKNOWN - Used for return value only. Represents value unknown in this version. */
AccountBudgetStatusEnum_AccountBudgetStatus[AccountBudgetStatusEnum_AccountBudgetStatus["UNKNOWN"] = 1] = "UNKNOWN";
/** PENDING - The account budget is pending approval. */
AccountBudgetStatusEnum_AccountBudgetStatus[AccountBudgetStatusEnum_AccountBudgetStatus["PENDING"] = 2] = "PENDING";
/** APPROVED - The account budget has been approved. */
AccountBudgetStatusEnum_AccountBudgetStatus[AccountBudgetStatusEnum_AccountBudgetStatus["APPROVED"] = 3] = "APPROVED";
/** CANCELLED - The account budget has been cancelled by the user. */
AccountBudgetStatusEnum_AccountBudgetStatus[AccountBudgetStatusEnum_AccountBudgetStatus["CANCELLED"] = 4] = "CANCELLED";
AccountBudgetStatusEnum_AccountBudgetStatus[AccountBudgetStatusEnum_AccountBudgetStatus["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
})(AccountBudgetStatusEnum_AccountBudgetStatus || (exports.AccountBudgetStatusEnum_AccountBudgetStatus = AccountBudgetStatusEnum_AccountBudgetStatus = {}));
function accountBudgetStatusEnum_AccountBudgetStatusFromJSON(object) {
switch (object) {
case 0:
case "UNSPECIFIED":
return AccountBudgetStatusEnum_AccountBudgetStatus.UNSPECIFIED;
case 1:
case "UNKNOWN":
return AccountBudgetStatusEnum_AccountBudgetStatus.UNKNOWN;
case 2:
case "PENDING":
return AccountBudgetStatusEnum_AccountBudgetStatus.PENDING;
case 3:
case "APPROVED":
return AccountBudgetStatusEnum_AccountBudgetStatus.APPROVED;
case 4:
case "CANCELLED":
return AccountBudgetStatusEnum_AccountBudgetStatus.CANCELLED;
case -1:
case "UNRECOGNIZED":
default:
return AccountBudgetStatusEnum_AccountBudgetStatus.UNRECOGNIZED;
}
}
function accountBudgetStatusEnum_AccountBudgetStatusToJSON(object) {
switch (object) {
case AccountBudgetStatusEnum_AccountBudgetStatus.UNSPECIFIED:
return "UNSPECIFIED";
case AccountBudgetStatusEnum_AccountBudgetStatus.UNKNOWN:
return "UNKNOWN";
case AccountBudgetStatusEnum_AccountBudgetStatus.PENDING:
return "PENDING";
case AccountBudgetStatusEnum_AccountBudgetStatus.APPROVED:
return "APPROVED";
case AccountBudgetStatusEnum_AccountBudgetStatus.CANCELLED:
return "CANCELLED";
case AccountBudgetStatusEnum_AccountBudgetStatus.UNRECOGNIZED:
default:
return "UNRECOGNIZED";
}
}
function createBaseAccountBudgetStatusEnum() {
return {};
}
exports.AccountBudgetStatusEnum = {
encode(_, writer = minimal_js_1.default.Writer.create()) {
return writer;
},
decode(input, length) {
const reader = input instanceof minimal_js_1.default.Reader ? input : minimal_js_1.default.Reader.create(input);
let end = length === undefined ? reader.len : reader.pos + length;
const message = createBaseAccountBudgetStatusEnum();
while (reader.pos < end) {
const tag = reader.uint32();
switch (tag >>> 3) {
}
if ((tag & 7) === 4 || tag === 0) {
break;
}
reader.skipType(tag & 7);
}
return message;
},
fromJSON(_) {
return {};
},
toJSON(_) {
const obj = {};
return obj;
},
create(base) {
return exports.AccountBudgetStatusEnum.fromPartial(base !== null && base !== void 0 ? base : {});
},
fromPartial(_) {
const message = createBaseAccountBudgetStatusEnum();
return message;
},
};