UNPKG

@htdangkhoa/google-ads

Version:
93 lines (92 loc) 3.82 kB
// 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 /* eslint-disable */ import _m0 from "protobufjs/minimal.js"; /** Describes a property of a YouTube video. */ export 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 || (YouTubeVideoPropertyEnum_YouTubeVideoProperty = {})); export 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; } } export 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 {}; } export const YouTubeVideoPropertyEnum = { encode(_, writer = _m0.Writer.create()) { return writer; }, decode(input, length) { const reader = input instanceof _m0.Reader ? input : _m0.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 YouTubeVideoPropertyEnum.fromPartial(base !== null && base !== void 0 ? base : {}); }, fromPartial(_) { const message = createBaseYouTubeVideoPropertyEnum(); return message; }, };