UNPKG

@htdangkhoa/google-ads

Version:
116 lines (115 loc) 4.71 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/v21/enums/hotel_price_bucket.proto /* eslint-disable */ import _m0 from "protobufjs/minimal.js"; /** Enum describing possible hotel price buckets. */ export var HotelPriceBucketEnum_HotelPriceBucket; (function (HotelPriceBucketEnum_HotelPriceBucket) { /** UNSPECIFIED - Not specified. */ HotelPriceBucketEnum_HotelPriceBucket[HotelPriceBucketEnum_HotelPriceBucket["UNSPECIFIED"] = 0] = "UNSPECIFIED"; /** UNKNOWN - The value is unknown in this version. */ HotelPriceBucketEnum_HotelPriceBucket[HotelPriceBucketEnum_HotelPriceBucket["UNKNOWN"] = 1] = "UNKNOWN"; /** * LOWEST_UNIQUE - Uniquely lowest price. Partner has the lowest price, and no other * partners are within a small variance of that price. */ HotelPriceBucketEnum_HotelPriceBucket[HotelPriceBucketEnum_HotelPriceBucket["LOWEST_UNIQUE"] = 2] = "LOWEST_UNIQUE"; /** * LOWEST_TIED - Tied for lowest price. Partner is within a small variance of the lowest * price. */ HotelPriceBucketEnum_HotelPriceBucket[HotelPriceBucketEnum_HotelPriceBucket["LOWEST_TIED"] = 3] = "LOWEST_TIED"; /** * NOT_LOWEST - Not lowest price. Partner is not within a small variance of the lowest * price. */ HotelPriceBucketEnum_HotelPriceBucket[HotelPriceBucketEnum_HotelPriceBucket["NOT_LOWEST"] = 4] = "NOT_LOWEST"; /** ONLY_PARTNER_SHOWN - Partner was the only one shown. */ HotelPriceBucketEnum_HotelPriceBucket[HotelPriceBucketEnum_HotelPriceBucket["ONLY_PARTNER_SHOWN"] = 5] = "ONLY_PARTNER_SHOWN"; HotelPriceBucketEnum_HotelPriceBucket[HotelPriceBucketEnum_HotelPriceBucket["UNRECOGNIZED"] = -1] = "UNRECOGNIZED"; })(HotelPriceBucketEnum_HotelPriceBucket || (HotelPriceBucketEnum_HotelPriceBucket = {})); export function hotelPriceBucketEnum_HotelPriceBucketFromJSON(object) { switch (object) { case 0: case "UNSPECIFIED": return HotelPriceBucketEnum_HotelPriceBucket.UNSPECIFIED; case 1: case "UNKNOWN": return HotelPriceBucketEnum_HotelPriceBucket.UNKNOWN; case 2: case "LOWEST_UNIQUE": return HotelPriceBucketEnum_HotelPriceBucket.LOWEST_UNIQUE; case 3: case "LOWEST_TIED": return HotelPriceBucketEnum_HotelPriceBucket.LOWEST_TIED; case 4: case "NOT_LOWEST": return HotelPriceBucketEnum_HotelPriceBucket.NOT_LOWEST; case 5: case "ONLY_PARTNER_SHOWN": return HotelPriceBucketEnum_HotelPriceBucket.ONLY_PARTNER_SHOWN; case -1: case "UNRECOGNIZED": default: return HotelPriceBucketEnum_HotelPriceBucket.UNRECOGNIZED; } } export function hotelPriceBucketEnum_HotelPriceBucketToJSON(object) { switch (object) { case HotelPriceBucketEnum_HotelPriceBucket.UNSPECIFIED: return "UNSPECIFIED"; case HotelPriceBucketEnum_HotelPriceBucket.UNKNOWN: return "UNKNOWN"; case HotelPriceBucketEnum_HotelPriceBucket.LOWEST_UNIQUE: return "LOWEST_UNIQUE"; case HotelPriceBucketEnum_HotelPriceBucket.LOWEST_TIED: return "LOWEST_TIED"; case HotelPriceBucketEnum_HotelPriceBucket.NOT_LOWEST: return "NOT_LOWEST"; case HotelPriceBucketEnum_HotelPriceBucket.ONLY_PARTNER_SHOWN: return "ONLY_PARTNER_SHOWN"; case HotelPriceBucketEnum_HotelPriceBucket.UNRECOGNIZED: default: return "UNRECOGNIZED"; } } function createBaseHotelPriceBucketEnum() { return {}; } export const HotelPriceBucketEnum = { 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 = createBaseHotelPriceBucketEnum(); 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 HotelPriceBucketEnum.fromPartial(base !== null && base !== void 0 ? base : {}); }, fromPartial(_) { const message = createBaseHotelPriceBucketEnum(); return message; }, };