@htdangkhoa/google-ads
Version:
Google Ads API client for Node.js
100 lines (99 loc) • 3.93 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/asset_orientation.proto
/* eslint-disable */
import _m0 from "protobufjs/minimal.js";
/** The orientation of an image or video asset. */
export var AssetOrientationEnum_AssetOrientation;
(function (AssetOrientationEnum_AssetOrientation) {
/** UNSPECIFIED - Not specified. */
AssetOrientationEnum_AssetOrientation[AssetOrientationEnum_AssetOrientation["UNSPECIFIED"] = 0] = "UNSPECIFIED";
/** UNKNOWN - The value is unknown in this version. */
AssetOrientationEnum_AssetOrientation[AssetOrientationEnum_AssetOrientation["UNKNOWN"] = 1] = "UNKNOWN";
/** LANDSCAPE - Landscape orientation. */
AssetOrientationEnum_AssetOrientation[AssetOrientationEnum_AssetOrientation["LANDSCAPE"] = 2] = "LANDSCAPE";
/** PORTRAIT - Portrait orientation. */
AssetOrientationEnum_AssetOrientation[AssetOrientationEnum_AssetOrientation["PORTRAIT"] = 3] = "PORTRAIT";
/** SQUARE - Square orientation. */
AssetOrientationEnum_AssetOrientation[AssetOrientationEnum_AssetOrientation["SQUARE"] = 4] = "SQUARE";
AssetOrientationEnum_AssetOrientation[AssetOrientationEnum_AssetOrientation["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
})(AssetOrientationEnum_AssetOrientation || (AssetOrientationEnum_AssetOrientation = {}));
export function assetOrientationEnum_AssetOrientationFromJSON(object) {
switch (object) {
case 0:
case "UNSPECIFIED":
return AssetOrientationEnum_AssetOrientation.UNSPECIFIED;
case 1:
case "UNKNOWN":
return AssetOrientationEnum_AssetOrientation.UNKNOWN;
case 2:
case "LANDSCAPE":
return AssetOrientationEnum_AssetOrientation.LANDSCAPE;
case 3:
case "PORTRAIT":
return AssetOrientationEnum_AssetOrientation.PORTRAIT;
case 4:
case "SQUARE":
return AssetOrientationEnum_AssetOrientation.SQUARE;
case -1:
case "UNRECOGNIZED":
default:
return AssetOrientationEnum_AssetOrientation.UNRECOGNIZED;
}
}
export function assetOrientationEnum_AssetOrientationToJSON(object) {
switch (object) {
case AssetOrientationEnum_AssetOrientation.UNSPECIFIED:
return "UNSPECIFIED";
case AssetOrientationEnum_AssetOrientation.UNKNOWN:
return "UNKNOWN";
case AssetOrientationEnum_AssetOrientation.LANDSCAPE:
return "LANDSCAPE";
case AssetOrientationEnum_AssetOrientation.PORTRAIT:
return "PORTRAIT";
case AssetOrientationEnum_AssetOrientation.SQUARE:
return "SQUARE";
case AssetOrientationEnum_AssetOrientation.UNRECOGNIZED:
default:
return "UNRECOGNIZED";
}
}
function createBaseAssetOrientationEnum() {
return {};
}
export const AssetOrientationEnum = {
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 = createBaseAssetOrientationEnum();
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 AssetOrientationEnum.fromPartial(base !== null && base !== void 0 ? base : {});
},
fromPartial(_) {
const message = createBaseAssetOrientationEnum();
return message;
},
};