Files
googlevideo/protos/generated/video_streaming/stream_protection_status.ts
2025-07-24 10:00:27 -03:00

69 lines
2.0 KiB
TypeScript

// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
// versions:
// protoc-gen-ts_proto v2.7.5
// protoc v5.28.0
// source: video_streaming/stream_protection_status.proto
/* eslint-disable */
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
export const protobufPackage = "video_streaming";
export interface StreamProtectionStatus {
status?: number | undefined;
maxRetries?: number | undefined;
}
function createBaseStreamProtectionStatus(): StreamProtectionStatus {
return { status: 0, maxRetries: 0 };
}
export const StreamProtectionStatus: MessageFns<StreamProtectionStatus> = {
encode(message: StreamProtectionStatus, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
if (message.status !== undefined && message.status !== 0) {
writer.uint32(8).int32(message.status);
}
if (message.maxRetries !== undefined && message.maxRetries !== 0) {
writer.uint32(16).int32(message.maxRetries);
}
return writer;
},
decode(input: BinaryReader | Uint8Array, length?: number): StreamProtectionStatus {
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
const end = length === undefined ? reader.len : reader.pos + length;
const message = createBaseStreamProtectionStatus();
while (reader.pos < end) {
const tag = reader.uint32();
switch (tag >>> 3) {
case 1: {
if (tag !== 8) {
break;
}
message.status = reader.int32();
continue;
}
case 2: {
if (tag !== 16) {
break;
}
message.maxRetries = reader.int32();
continue;
}
}
if ((tag & 7) === 4 || tag === 0) {
break;
}
reader.skip(tag & 7);
}
return message;
},
};
export interface MessageFns<T> {
encode(message: T, writer?: BinaryWriter): BinaryWriter;
decode(input: BinaryReader | Uint8Array, length?: number): T;
}