@htdangkhoa/google-ads
Version:
Google Ads API client for Node.js
101 lines (100 loc) • 4.49 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/v24/enums/youtube_video_property.proto
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.YouTubeVideoPropertyEnum = exports.YouTubeVideoPropertyEnum_YouTubeVideoProperty = void 0;
exports.youTubeVideoPropertyEnum_YouTubeVideoPropertyFromJSON = youTubeVideoPropertyEnum_YouTubeVideoPropertyFromJSON;
exports.youTubeVideoPropertyEnum_YouTubeVideoPropertyToJSON = youTubeVideoPropertyEnum_YouTubeVideoPropertyToJSON;
/* eslint-disable */
const minimal_js_1 = __importDefault(require("protobufjs/minimal.js"));
/** Describes a property of a YouTube video. */
var YouTubeVideoPropertyEnum_YouTubeVideoProperty;
(function (YouTubeVideoPropertyEnum_YouTubeVideoProperty) {
/** UNSPECIFIED - Not specified. */
YouTubeVideoPropertyEnum_YouTubeVideoProperty[YouTubeVideoPropertyEnum_YouTubeVideoProperty["UNSPECIFIED"] = 0] = "UNSPECIFIED";
/** UNKNOWN - The value is unknown in this version. */
YouTubeVideoPropertyEnum_YouTubeVideoProperty[YouTubeVideoPropertyEnum_YouTubeVideoProperty["UNKNOWN"] = 1] = "UNKNOWN";
/** LIVE_STREAM - Video is a live stream. */
YouTubeVideoPropertyEnum_YouTubeVideoProperty[YouTubeVideoPropertyEnum_YouTubeVideoProperty["LIVE_STREAM"] = 2] = "LIVE_STREAM";
/** SHORTS - Video is Shorts eligible. */
YouTubeVideoPropertyEnum_YouTubeVideoProperty[YouTubeVideoPropertyEnum_YouTubeVideoProperty["SHORTS"] = 3] = "SHORTS";
YouTubeVideoPropertyEnum_YouTubeVideoProperty[YouTubeVideoPropertyEnum_YouTubeVideoProperty["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
})(YouTubeVideoPropertyEnum_YouTubeVideoProperty || (exports.YouTubeVideoPropertyEnum_YouTubeVideoProperty = YouTubeVideoPropertyEnum_YouTubeVideoProperty = {}));
function youTubeVideoPropertyEnum_YouTubeVideoPropertyFromJSON(object) {
switch (object) {
case 0:
case "UNSPECIFIED":
return YouTubeVideoPropertyEnum_YouTubeVideoProperty.UNSPECIFIED;
case 1:
case "UNKNOWN":
return YouTubeVideoPropertyEnum_YouTubeVideoProperty.UNKNOWN;
case 2:
case "LIVE_STREAM":
return YouTubeVideoPropertyEnum_YouTubeVideoProperty.LIVE_STREAM;
case 3:
case "SHORTS":
return YouTubeVideoPropertyEnum_YouTubeVideoProperty.SHORTS;
case -1:
case "UNRECOGNIZED":
default:
return YouTubeVideoPropertyEnum_YouTubeVideoProperty.UNRECOGNIZED;
}
}
function youTubeVideoPropertyEnum_YouTubeVideoPropertyToJSON(object) {
switch (object) {
case YouTubeVideoPropertyEnum_YouTubeVideoProperty.UNSPECIFIED:
return "UNSPECIFIED";
case YouTubeVideoPropertyEnum_YouTubeVideoProperty.UNKNOWN:
return "UNKNOWN";
case YouTubeVideoPropertyEnum_YouTubeVideoProperty.LIVE_STREAM:
return "LIVE_STREAM";
case YouTubeVideoPropertyEnum_YouTubeVideoProperty.SHORTS:
return "SHORTS";
case YouTubeVideoPropertyEnum_YouTubeVideoProperty.UNRECOGNIZED:
default:
return "UNRECOGNIZED";
}
}
function createBaseYouTubeVideoPropertyEnum() {
return {};
}
exports.YouTubeVideoPropertyEnum = {
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 = createBaseYouTubeVideoPropertyEnum();
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.YouTubeVideoPropertyEnum.fromPartial(base !== null && base !== void 0 ? base : {});
},
fromPartial(_) {
const message = createBaseYouTubeVideoPropertyEnum();
return message;
},
};