diff --git a/protos/generated/misc/params.ts b/protos/generated/misc/params.ts index bd93a24c5a..a8a99121b3 100644 --- a/protos/generated/misc/params.ts +++ b/protos/generated/misc/params.ts @@ -273,6 +273,18 @@ export interface CommunityPostCommentsParam_CommentDataContainer_CommentData { channelId: string; } +export interface ClipParams { + clipParamData: ClipParams_ClipParamsData | undefined; +} + +export interface ClipParams_ClipParamsData { + clipId: string; + startTime: number; + endTime: number; + clipTitle: string; + clipMetadata: string; +} + function createBaseVisitorData(): VisitorData { return { id: "", timestamp: 0 }; } @@ -2611,6 +2623,124 @@ export const CommunityPostCommentsParam_CommentDataContainer_CommentData: Messag }, }; +function createBaseClipParams(): ClipParams { + return { clipParamData: undefined }; +} + +export const ClipParams: MessageFns = { + encode(message: ClipParams, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + if (message.clipParamData !== undefined) { + ClipParams_ClipParamsData.encode(message.clipParamData, writer.uint32(402).fork()).join(); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): ClipParams { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseClipParams(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 50: { + if (tag !== 402) { + break; + } + + message.clipParamData = ClipParams_ClipParamsData.decode(reader, reader.uint32()); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, +}; + +function createBaseClipParams_ClipParamsData(): ClipParams_ClipParamsData { + return { clipId: "", startTime: 0, endTime: 0, clipTitle: "", clipMetadata: "" }; +} + +export const ClipParams_ClipParamsData: MessageFns = { + encode(message: ClipParams_ClipParamsData, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + if (message.clipId !== "") { + writer.uint32(10).string(message.clipId); + } + if (message.startTime !== 0) { + writer.uint32(16).int32(message.startTime); + } + if (message.endTime !== 0) { + writer.uint32(24).int32(message.endTime); + } + if (message.clipTitle !== "") { + writer.uint32(34).string(message.clipTitle); + } + if (message.clipMetadata !== "") { + writer.uint32(42).string(message.clipMetadata); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): ClipParams_ClipParamsData { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseClipParams_ClipParamsData(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (tag !== 10) { + break; + } + + message.clipId = reader.string(); + continue; + } + case 2: { + if (tag !== 16) { + break; + } + + message.startTime = reader.int32(); + continue; + } + case 3: { + if (tag !== 24) { + break; + } + + message.endTime = reader.int32(); + continue; + } + case 4: { + if (tag !== 34) { + break; + } + + message.clipTitle = reader.string(); + continue; + } + case 5: { + if (tag !== 42) { + break; + } + + message.clipMetadata = reader.string(); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, +}; + export interface MessageFns { encode(message: T, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): T; diff --git a/protos/misc/params.proto b/protos/misc/params.proto index f39ba6ab1c..b4d671b956 100644 --- a/protos/misc/params.proto +++ b/protos/misc/params.proto @@ -266,3 +266,15 @@ message CommunityPostCommentsParam { string title = 2; CommentDataContainer comment_data_container = 53; } + +message ClipParams { + message ClipParamsData { + string clip_id = 1; + int32 start_time = 2; + int32 end_time = 3; + string clip_title = 4; + string clip_metadata = 5; + } + + ClipParamsData clip_params_data = 50; +}