UNPKG

googlevideo

Version:

A set of utilities for working with Google Video APIs.

41 lines (40 loc) 1.34 kB
// Code generated by protoc-gen-ts_proto. DO NOT EDIT. // versions: // protoc-gen-ts_proto v2.2.0 // protoc v3.21.12 // source: video_streaming/sabr_redirect.proto /* eslint-disable */ import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire"; export const protobufPackage = "video_streaming"; function createBaseSabrRedirect() { return { url: "" }; } export const SabrRedirect = { encode(message, writer = new BinaryWriter()) { if (message.url !== undefined && message.url !== "") { writer.uint32(10).string(message.url); } return writer; }, decode(input, length) { const reader = input instanceof BinaryReader ? input : new BinaryReader(input); let end = length === undefined ? reader.len : reader.pos + length; const message = createBaseSabrRedirect(); while (reader.pos < end) { const tag = reader.uint32(); switch (tag >>> 3) { case 1: if (tag !== 10) { break; } message.url = reader.string(); continue; } if ((tag & 7) === 4 || tag === 0) { break; } reader.skip(tag & 7); } return message; }, };