2088 lines
70 KiB
JavaScript
2088 lines
70 KiB
JavaScript
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
// versions:
|
|
// protoc-gen-ts_proto v2.7.7
|
|
// protoc v6.33.5
|
|
// source: misc/params.proto
|
|
/* eslint-disable */
|
|
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
|
export const protobufPackage = "misc";
|
|
export const SearchFilter_Prioritize = {
|
|
RELEVANCE: 0, 0: "RELEVANCE",
|
|
POPULARITY: 3, 3: "POPULARITY",
|
|
UNRECOGNIZED: -1, "-1": "UNRECOGNIZED"
|
|
};
|
|
export const SearchFilter_Filters_UploadDate = {
|
|
ANY_DATE: 0, 0: "ANY_DATE",
|
|
TODAY: 2, 2: "TODAY",
|
|
WEEK: 3, 3: "WEEK",
|
|
MONTH: 4, 4: "MONTH",
|
|
YEAR: 5, 5: "YEAR",
|
|
UNRECOGNIZED: -1, "-1": "UNRECOGNIZED"
|
|
};
|
|
export const SearchFilter_Filters_SearchType = {
|
|
ANY_TYPE: 0, 0: "ANY_TYPE",
|
|
VIDEO: 1, 1: "VIDEO",
|
|
CHANNEL: 2, 2: "CHANNEL",
|
|
PLAYLIST: 3, 3: "PLAYLIST",
|
|
MOVIE: 4, 4: "MOVIE",
|
|
SHORTS: 9, 9: "SHORTS",
|
|
UNRECOGNIZED: -1, "-1": "UNRECOGNIZED"
|
|
};
|
|
export const SearchFilter_Filters_Duration = {
|
|
ANY_DURATION: 0, 0: "ANY_DURATION",
|
|
OVER_TWENTY_MINS: 2, 2: "OVER_TWENTY_MINS",
|
|
UNDER_THREE_MINS: 4, 4: "UNDER_THREE_MINS",
|
|
THREE_TO_TWENTY_MINS: 5, 5: "THREE_TO_TWENTY_MINS",
|
|
UNRECOGNIZED: -1, "-1": "UNRECOGNIZED"
|
|
};
|
|
function createBaseVisitorData() {
|
|
return { id: "", timestamp: 0 };
|
|
}
|
|
export const VisitorData = {
|
|
encode(message, writer = new BinaryWriter()) {
|
|
if (message.id !== "") {
|
|
writer.uint32(10).string(message.id);
|
|
}
|
|
if (message.timestamp !== 0) {
|
|
writer.uint32(40).int32(message.timestamp);
|
|
}
|
|
return writer;
|
|
},
|
|
decode(input, length) {
|
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
const end = length === undefined ? reader.len : reader.pos + length;
|
|
const message = createBaseVisitorData();
|
|
while (reader.pos < end) {
|
|
const tag = reader.uint32();
|
|
switch (tag >>> 3) {
|
|
case 1: {
|
|
if (tag !== 10) {
|
|
break;
|
|
}
|
|
message.id = reader.string();
|
|
continue;
|
|
}
|
|
case 5: {
|
|
if (tag !== 40) {
|
|
break;
|
|
}
|
|
message.timestamp = reader.int32();
|
|
continue;
|
|
}
|
|
}
|
|
if ((tag & 7) === 4 || tag === 0) {
|
|
break;
|
|
}
|
|
reader.skip(tag & 7);
|
|
}
|
|
return message;
|
|
},
|
|
};
|
|
function createBaseSearchFilter() {
|
|
return { prioritize: undefined, filters: undefined };
|
|
}
|
|
export const SearchFilter = {
|
|
encode(message, writer = new BinaryWriter()) {
|
|
if (message.prioritize !== undefined) {
|
|
writer.uint32(8).int32(message.prioritize);
|
|
}
|
|
if (message.filters !== undefined) {
|
|
SearchFilter_Filters.encode(message.filters, writer.uint32(18).fork()).join();
|
|
}
|
|
return writer;
|
|
},
|
|
decode(input, length) {
|
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
const end = length === undefined ? reader.len : reader.pos + length;
|
|
const message = createBaseSearchFilter();
|
|
while (reader.pos < end) {
|
|
const tag = reader.uint32();
|
|
switch (tag >>> 3) {
|
|
case 1: {
|
|
if (tag !== 8) {
|
|
break;
|
|
}
|
|
message.prioritize = reader.int32();
|
|
continue;
|
|
}
|
|
case 2: {
|
|
if (tag !== 18) {
|
|
break;
|
|
}
|
|
message.filters = SearchFilter_Filters.decode(reader, reader.uint32());
|
|
continue;
|
|
}
|
|
}
|
|
if ((tag & 7) === 4 || tag === 0) {
|
|
break;
|
|
}
|
|
reader.skip(tag & 7);
|
|
}
|
|
return message;
|
|
},
|
|
};
|
|
function createBaseSearchFilter_Filters() {
|
|
return {
|
|
uploadDate: undefined,
|
|
type: undefined,
|
|
duration: undefined,
|
|
musicSearchType: undefined,
|
|
featuresHd: undefined,
|
|
featuresSubtitles: undefined,
|
|
featuresCreativeCommons: undefined,
|
|
features3d: undefined,
|
|
featuresLive: undefined,
|
|
featuresPurchased: undefined,
|
|
features4k: undefined,
|
|
features360: undefined,
|
|
featuresLocation: undefined,
|
|
featuresHdr: undefined,
|
|
featuresVr180: undefined,
|
|
};
|
|
}
|
|
export const SearchFilter_Filters = {
|
|
encode(message, writer = new BinaryWriter()) {
|
|
if (message.uploadDate !== undefined) {
|
|
writer.uint32(8).int32(message.uploadDate);
|
|
}
|
|
if (message.type !== undefined) {
|
|
writer.uint32(16).int32(message.type);
|
|
}
|
|
if (message.duration !== undefined) {
|
|
writer.uint32(24).int32(message.duration);
|
|
}
|
|
if (message.musicSearchType !== undefined) {
|
|
SearchFilter_Filters_MusicSearchType.encode(message.musicSearchType, writer.uint32(138).fork()).join();
|
|
}
|
|
if (message.featuresHd !== undefined) {
|
|
writer.uint32(32).bool(message.featuresHd);
|
|
}
|
|
if (message.featuresSubtitles !== undefined) {
|
|
writer.uint32(40).bool(message.featuresSubtitles);
|
|
}
|
|
if (message.featuresCreativeCommons !== undefined) {
|
|
writer.uint32(48).bool(message.featuresCreativeCommons);
|
|
}
|
|
if (message.features3d !== undefined) {
|
|
writer.uint32(56).bool(message.features3d);
|
|
}
|
|
if (message.featuresLive !== undefined) {
|
|
writer.uint32(64).bool(message.featuresLive);
|
|
}
|
|
if (message.featuresPurchased !== undefined) {
|
|
writer.uint32(72).bool(message.featuresPurchased);
|
|
}
|
|
if (message.features4k !== undefined) {
|
|
writer.uint32(112).bool(message.features4k);
|
|
}
|
|
if (message.features360 !== undefined) {
|
|
writer.uint32(120).bool(message.features360);
|
|
}
|
|
if (message.featuresLocation !== undefined) {
|
|
writer.uint32(184).bool(message.featuresLocation);
|
|
}
|
|
if (message.featuresHdr !== undefined) {
|
|
writer.uint32(200).bool(message.featuresHdr);
|
|
}
|
|
if (message.featuresVr180 !== undefined) {
|
|
writer.uint32(208).bool(message.featuresVr180);
|
|
}
|
|
return writer;
|
|
},
|
|
decode(input, length) {
|
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
const end = length === undefined ? reader.len : reader.pos + length;
|
|
const message = createBaseSearchFilter_Filters();
|
|
while (reader.pos < end) {
|
|
const tag = reader.uint32();
|
|
switch (tag >>> 3) {
|
|
case 1: {
|
|
if (tag !== 8) {
|
|
break;
|
|
}
|
|
message.uploadDate = reader.int32();
|
|
continue;
|
|
}
|
|
case 2: {
|
|
if (tag !== 16) {
|
|
break;
|
|
}
|
|
message.type = reader.int32();
|
|
continue;
|
|
}
|
|
case 3: {
|
|
if (tag !== 24) {
|
|
break;
|
|
}
|
|
message.duration = reader.int32();
|
|
continue;
|
|
}
|
|
case 17: {
|
|
if (tag !== 138) {
|
|
break;
|
|
}
|
|
message.musicSearchType = SearchFilter_Filters_MusicSearchType.decode(reader, reader.uint32());
|
|
continue;
|
|
}
|
|
case 4: {
|
|
if (tag !== 32) {
|
|
break;
|
|
}
|
|
message.featuresHd = reader.bool();
|
|
continue;
|
|
}
|
|
case 5: {
|
|
if (tag !== 40) {
|
|
break;
|
|
}
|
|
message.featuresSubtitles = reader.bool();
|
|
continue;
|
|
}
|
|
case 6: {
|
|
if (tag !== 48) {
|
|
break;
|
|
}
|
|
message.featuresCreativeCommons = reader.bool();
|
|
continue;
|
|
}
|
|
case 7: {
|
|
if (tag !== 56) {
|
|
break;
|
|
}
|
|
message.features3d = reader.bool();
|
|
continue;
|
|
}
|
|
case 8: {
|
|
if (tag !== 64) {
|
|
break;
|
|
}
|
|
message.featuresLive = reader.bool();
|
|
continue;
|
|
}
|
|
case 9: {
|
|
if (tag !== 72) {
|
|
break;
|
|
}
|
|
message.featuresPurchased = reader.bool();
|
|
continue;
|
|
}
|
|
case 14: {
|
|
if (tag !== 112) {
|
|
break;
|
|
}
|
|
message.features4k = reader.bool();
|
|
continue;
|
|
}
|
|
case 15: {
|
|
if (tag !== 120) {
|
|
break;
|
|
}
|
|
message.features360 = reader.bool();
|
|
continue;
|
|
}
|
|
case 23: {
|
|
if (tag !== 184) {
|
|
break;
|
|
}
|
|
message.featuresLocation = reader.bool();
|
|
continue;
|
|
}
|
|
case 25: {
|
|
if (tag !== 200) {
|
|
break;
|
|
}
|
|
message.featuresHdr = reader.bool();
|
|
continue;
|
|
}
|
|
case 26: {
|
|
if (tag !== 208) {
|
|
break;
|
|
}
|
|
message.featuresVr180 = reader.bool();
|
|
continue;
|
|
}
|
|
}
|
|
if ((tag & 7) === 4 || tag === 0) {
|
|
break;
|
|
}
|
|
reader.skip(tag & 7);
|
|
}
|
|
return message;
|
|
},
|
|
};
|
|
function createBaseSearchFilter_Filters_MusicSearchType() {
|
|
return { song: undefined, video: undefined, album: undefined, artist: undefined, playlist: undefined };
|
|
}
|
|
export const SearchFilter_Filters_MusicSearchType = {
|
|
encode(message, writer = new BinaryWriter()) {
|
|
if (message.song !== undefined) {
|
|
writer.uint32(8).bool(message.song);
|
|
}
|
|
if (message.video !== undefined) {
|
|
writer.uint32(16).bool(message.video);
|
|
}
|
|
if (message.album !== undefined) {
|
|
writer.uint32(24).bool(message.album);
|
|
}
|
|
if (message.artist !== undefined) {
|
|
writer.uint32(32).bool(message.artist);
|
|
}
|
|
if (message.playlist !== undefined) {
|
|
writer.uint32(40).bool(message.playlist);
|
|
}
|
|
return writer;
|
|
},
|
|
decode(input, length) {
|
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
const end = length === undefined ? reader.len : reader.pos + length;
|
|
const message = createBaseSearchFilter_Filters_MusicSearchType();
|
|
while (reader.pos < end) {
|
|
const tag = reader.uint32();
|
|
switch (tag >>> 3) {
|
|
case 1: {
|
|
if (tag !== 8) {
|
|
break;
|
|
}
|
|
message.song = reader.bool();
|
|
continue;
|
|
}
|
|
case 2: {
|
|
if (tag !== 16) {
|
|
break;
|
|
}
|
|
message.video = reader.bool();
|
|
continue;
|
|
}
|
|
case 3: {
|
|
if (tag !== 24) {
|
|
break;
|
|
}
|
|
message.album = reader.bool();
|
|
continue;
|
|
}
|
|
case 4: {
|
|
if (tag !== 32) {
|
|
break;
|
|
}
|
|
message.artist = reader.bool();
|
|
continue;
|
|
}
|
|
case 5: {
|
|
if (tag !== 40) {
|
|
break;
|
|
}
|
|
message.playlist = reader.bool();
|
|
continue;
|
|
}
|
|
}
|
|
if ((tag & 7) === 4 || tag === 0) {
|
|
break;
|
|
}
|
|
reader.skip(tag & 7);
|
|
}
|
|
return message;
|
|
},
|
|
};
|
|
function createBaseChannelAnalytics() {
|
|
return { params: undefined };
|
|
}
|
|
export const ChannelAnalytics = {
|
|
encode(message, writer = new BinaryWriter()) {
|
|
if (message.params !== undefined) {
|
|
ChannelAnalytics_Params.encode(message.params, writer.uint32(258).fork()).join();
|
|
}
|
|
return writer;
|
|
},
|
|
decode(input, length) {
|
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
const end = length === undefined ? reader.len : reader.pos + length;
|
|
const message = createBaseChannelAnalytics();
|
|
while (reader.pos < end) {
|
|
const tag = reader.uint32();
|
|
switch (tag >>> 3) {
|
|
case 32: {
|
|
if (tag !== 258) {
|
|
break;
|
|
}
|
|
message.params = ChannelAnalytics_Params.decode(reader, reader.uint32());
|
|
continue;
|
|
}
|
|
}
|
|
if ((tag & 7) === 4 || tag === 0) {
|
|
break;
|
|
}
|
|
reader.skip(tag & 7);
|
|
}
|
|
return message;
|
|
},
|
|
};
|
|
function createBaseChannelAnalytics_Params() {
|
|
return { channelId: "" };
|
|
}
|
|
export const ChannelAnalytics_Params = {
|
|
encode(message, writer = new BinaryWriter()) {
|
|
if (message.channelId !== "") {
|
|
writer.uint32(8010).string(message.channelId);
|
|
}
|
|
return writer;
|
|
},
|
|
decode(input, length) {
|
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
const end = length === undefined ? reader.len : reader.pos + length;
|
|
const message = createBaseChannelAnalytics_Params();
|
|
while (reader.pos < end) {
|
|
const tag = reader.uint32();
|
|
switch (tag >>> 3) {
|
|
case 1001: {
|
|
if (tag !== 8010) {
|
|
break;
|
|
}
|
|
message.channelId = reader.string();
|
|
continue;
|
|
}
|
|
}
|
|
if ((tag & 7) === 4 || tag === 0) {
|
|
break;
|
|
}
|
|
reader.skip(tag & 7);
|
|
}
|
|
return message;
|
|
},
|
|
};
|
|
function createBaseSoundInfoParams() {
|
|
return { sound: undefined };
|
|
}
|
|
export const SoundInfoParams = {
|
|
encode(message, writer = new BinaryWriter()) {
|
|
if (message.sound !== undefined) {
|
|
SoundInfoParams_Sound.encode(message.sound, writer.uint32(754).fork()).join();
|
|
}
|
|
return writer;
|
|
},
|
|
decode(input, length) {
|
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
const end = length === undefined ? reader.len : reader.pos + length;
|
|
const message = createBaseSoundInfoParams();
|
|
while (reader.pos < end) {
|
|
const tag = reader.uint32();
|
|
switch (tag >>> 3) {
|
|
case 94: {
|
|
if (tag !== 754) {
|
|
break;
|
|
}
|
|
message.sound = SoundInfoParams_Sound.decode(reader, reader.uint32());
|
|
continue;
|
|
}
|
|
}
|
|
if ((tag & 7) === 4 || tag === 0) {
|
|
break;
|
|
}
|
|
reader.skip(tag & 7);
|
|
}
|
|
return message;
|
|
},
|
|
};
|
|
function createBaseSoundInfoParams_Sound() {
|
|
return { params: undefined };
|
|
}
|
|
export const SoundInfoParams_Sound = {
|
|
encode(message, writer = new BinaryWriter()) {
|
|
if (message.params !== undefined) {
|
|
SoundInfoParams_Sound_Params.encode(message.params, writer.uint32(10).fork()).join();
|
|
}
|
|
return writer;
|
|
},
|
|
decode(input, length) {
|
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
const end = length === undefined ? reader.len : reader.pos + length;
|
|
const message = createBaseSoundInfoParams_Sound();
|
|
while (reader.pos < end) {
|
|
const tag = reader.uint32();
|
|
switch (tag >>> 3) {
|
|
case 1: {
|
|
if (tag !== 10) {
|
|
break;
|
|
}
|
|
message.params = SoundInfoParams_Sound_Params.decode(reader, reader.uint32());
|
|
continue;
|
|
}
|
|
}
|
|
if ((tag & 7) === 4 || tag === 0) {
|
|
break;
|
|
}
|
|
reader.skip(tag & 7);
|
|
}
|
|
return message;
|
|
},
|
|
};
|
|
function createBaseSoundInfoParams_Sound_Params() {
|
|
return { ids: undefined };
|
|
}
|
|
export const SoundInfoParams_Sound_Params = {
|
|
encode(message, writer = new BinaryWriter()) {
|
|
if (message.ids !== undefined) {
|
|
SoundInfoParams_Sound_Params_Ids.encode(message.ids, writer.uint32(18).fork()).join();
|
|
}
|
|
return writer;
|
|
},
|
|
decode(input, length) {
|
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
const end = length === undefined ? reader.len : reader.pos + length;
|
|
const message = createBaseSoundInfoParams_Sound_Params();
|
|
while (reader.pos < end) {
|
|
const tag = reader.uint32();
|
|
switch (tag >>> 3) {
|
|
case 2: {
|
|
if (tag !== 18) {
|
|
break;
|
|
}
|
|
message.ids = SoundInfoParams_Sound_Params_Ids.decode(reader, reader.uint32());
|
|
continue;
|
|
}
|
|
}
|
|
if ((tag & 7) === 4 || tag === 0) {
|
|
break;
|
|
}
|
|
reader.skip(tag & 7);
|
|
}
|
|
return message;
|
|
},
|
|
};
|
|
function createBaseSoundInfoParams_Sound_Params_Ids() {
|
|
return { id1: "", id2: "", id3: "" };
|
|
}
|
|
export const SoundInfoParams_Sound_Params_Ids = {
|
|
encode(message, writer = new BinaryWriter()) {
|
|
if (message.id1 !== "") {
|
|
writer.uint32(10).string(message.id1);
|
|
}
|
|
if (message.id2 !== "") {
|
|
writer.uint32(18).string(message.id2);
|
|
}
|
|
if (message.id3 !== "") {
|
|
writer.uint32(26).string(message.id3);
|
|
}
|
|
return writer;
|
|
},
|
|
decode(input, length) {
|
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
const end = length === undefined ? reader.len : reader.pos + length;
|
|
const message = createBaseSoundInfoParams_Sound_Params_Ids();
|
|
while (reader.pos < end) {
|
|
const tag = reader.uint32();
|
|
switch (tag >>> 3) {
|
|
case 1: {
|
|
if (tag !== 10) {
|
|
break;
|
|
}
|
|
message.id1 = reader.string();
|
|
continue;
|
|
}
|
|
case 2: {
|
|
if (tag !== 18) {
|
|
break;
|
|
}
|
|
message.id2 = reader.string();
|
|
continue;
|
|
}
|
|
case 3: {
|
|
if (tag !== 26) {
|
|
break;
|
|
}
|
|
message.id3 = reader.string();
|
|
continue;
|
|
}
|
|
}
|
|
if ((tag & 7) === 4 || tag === 0) {
|
|
break;
|
|
}
|
|
reader.skip(tag & 7);
|
|
}
|
|
return message;
|
|
},
|
|
};
|
|
function createBaseNotificationPreferences() {
|
|
return { channelId: "", prefId: undefined, number0: undefined, number1: undefined };
|
|
}
|
|
export const NotificationPreferences = {
|
|
encode(message, writer = new BinaryWriter()) {
|
|
if (message.channelId !== "") {
|
|
writer.uint32(10).string(message.channelId);
|
|
}
|
|
if (message.prefId !== undefined) {
|
|
NotificationPreferences_Preference.encode(message.prefId, writer.uint32(18).fork()).join();
|
|
}
|
|
if (message.number0 !== undefined) {
|
|
writer.uint32(24).int32(message.number0);
|
|
}
|
|
if (message.number1 !== undefined) {
|
|
writer.uint32(32).int32(message.number1);
|
|
}
|
|
return writer;
|
|
},
|
|
decode(input, length) {
|
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
const end = length === undefined ? reader.len : reader.pos + length;
|
|
const message = createBaseNotificationPreferences();
|
|
while (reader.pos < end) {
|
|
const tag = reader.uint32();
|
|
switch (tag >>> 3) {
|
|
case 1: {
|
|
if (tag !== 10) {
|
|
break;
|
|
}
|
|
message.channelId = reader.string();
|
|
continue;
|
|
}
|
|
case 2: {
|
|
if (tag !== 18) {
|
|
break;
|
|
}
|
|
message.prefId = NotificationPreferences_Preference.decode(reader, reader.uint32());
|
|
continue;
|
|
}
|
|
case 3: {
|
|
if (tag !== 24) {
|
|
break;
|
|
}
|
|
message.number0 = reader.int32();
|
|
continue;
|
|
}
|
|
case 4: {
|
|
if (tag !== 32) {
|
|
break;
|
|
}
|
|
message.number1 = reader.int32();
|
|
continue;
|
|
}
|
|
}
|
|
if ((tag & 7) === 4 || tag === 0) {
|
|
break;
|
|
}
|
|
reader.skip(tag & 7);
|
|
}
|
|
return message;
|
|
},
|
|
};
|
|
function createBaseNotificationPreferences_Preference() {
|
|
return { index: 0 };
|
|
}
|
|
export const NotificationPreferences_Preference = {
|
|
encode(message, writer = new BinaryWriter()) {
|
|
if (message.index !== 0) {
|
|
writer.uint32(8).int32(message.index);
|
|
}
|
|
return writer;
|
|
},
|
|
decode(input, length) {
|
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
const end = length === undefined ? reader.len : reader.pos + length;
|
|
const message = createBaseNotificationPreferences_Preference();
|
|
while (reader.pos < end) {
|
|
const tag = reader.uint32();
|
|
switch (tag >>> 3) {
|
|
case 1: {
|
|
if (tag !== 8) {
|
|
break;
|
|
}
|
|
message.index = reader.int32();
|
|
continue;
|
|
}
|
|
}
|
|
if ((tag & 7) === 4 || tag === 0) {
|
|
break;
|
|
}
|
|
reader.skip(tag & 7);
|
|
}
|
|
return message;
|
|
},
|
|
};
|
|
function createBaseLiveMessageParams() {
|
|
return { params: undefined, number0: undefined, number1: undefined };
|
|
}
|
|
export const LiveMessageParams = {
|
|
encode(message, writer = new BinaryWriter()) {
|
|
if (message.params !== undefined) {
|
|
LiveMessageParams_Params.encode(message.params, writer.uint32(10).fork()).join();
|
|
}
|
|
if (message.number0 !== undefined) {
|
|
writer.uint32(16).int32(message.number0);
|
|
}
|
|
if (message.number1 !== undefined) {
|
|
writer.uint32(24).int32(message.number1);
|
|
}
|
|
return writer;
|
|
},
|
|
decode(input, length) {
|
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
const end = length === undefined ? reader.len : reader.pos + length;
|
|
const message = createBaseLiveMessageParams();
|
|
while (reader.pos < end) {
|
|
const tag = reader.uint32();
|
|
switch (tag >>> 3) {
|
|
case 1: {
|
|
if (tag !== 10) {
|
|
break;
|
|
}
|
|
message.params = LiveMessageParams_Params.decode(reader, reader.uint32());
|
|
continue;
|
|
}
|
|
case 2: {
|
|
if (tag !== 16) {
|
|
break;
|
|
}
|
|
message.number0 = reader.int32();
|
|
continue;
|
|
}
|
|
case 3: {
|
|
if (tag !== 24) {
|
|
break;
|
|
}
|
|
message.number1 = reader.int32();
|
|
continue;
|
|
}
|
|
}
|
|
if ((tag & 7) === 4 || tag === 0) {
|
|
break;
|
|
}
|
|
reader.skip(tag & 7);
|
|
}
|
|
return message;
|
|
},
|
|
};
|
|
function createBaseLiveMessageParams_Params() {
|
|
return { ids: undefined };
|
|
}
|
|
export const LiveMessageParams_Params = {
|
|
encode(message, writer = new BinaryWriter()) {
|
|
if (message.ids !== undefined) {
|
|
LiveMessageParams_Params_Ids.encode(message.ids, writer.uint32(42).fork()).join();
|
|
}
|
|
return writer;
|
|
},
|
|
decode(input, length) {
|
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
const end = length === undefined ? reader.len : reader.pos + length;
|
|
const message = createBaseLiveMessageParams_Params();
|
|
while (reader.pos < end) {
|
|
const tag = reader.uint32();
|
|
switch (tag >>> 3) {
|
|
case 5: {
|
|
if (tag !== 42) {
|
|
break;
|
|
}
|
|
message.ids = LiveMessageParams_Params_Ids.decode(reader, reader.uint32());
|
|
continue;
|
|
}
|
|
}
|
|
if ((tag & 7) === 4 || tag === 0) {
|
|
break;
|
|
}
|
|
reader.skip(tag & 7);
|
|
}
|
|
return message;
|
|
},
|
|
};
|
|
function createBaseLiveMessageParams_Params_Ids() {
|
|
return { channelId: "", videoId: "" };
|
|
}
|
|
export const LiveMessageParams_Params_Ids = {
|
|
encode(message, writer = new BinaryWriter()) {
|
|
if (message.channelId !== "") {
|
|
writer.uint32(10).string(message.channelId);
|
|
}
|
|
if (message.videoId !== "") {
|
|
writer.uint32(18).string(message.videoId);
|
|
}
|
|
return writer;
|
|
},
|
|
decode(input, length) {
|
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
const end = length === undefined ? reader.len : reader.pos + length;
|
|
const message = createBaseLiveMessageParams_Params_Ids();
|
|
while (reader.pos < end) {
|
|
const tag = reader.uint32();
|
|
switch (tag >>> 3) {
|
|
case 1: {
|
|
if (tag !== 10) {
|
|
break;
|
|
}
|
|
message.channelId = reader.string();
|
|
continue;
|
|
}
|
|
case 2: {
|
|
if (tag !== 18) {
|
|
break;
|
|
}
|
|
message.videoId = reader.string();
|
|
continue;
|
|
}
|
|
}
|
|
if ((tag & 7) === 4 || tag === 0) {
|
|
break;
|
|
}
|
|
reader.skip(tag & 7);
|
|
}
|
|
return message;
|
|
},
|
|
};
|
|
function createBaseGetCommentsSectionParams() {
|
|
return { ctx: undefined, unkParam: 0, params: undefined };
|
|
}
|
|
export const GetCommentsSectionParams = {
|
|
encode(message, writer = new BinaryWriter()) {
|
|
if (message.ctx !== undefined) {
|
|
GetCommentsSectionParams_Context.encode(message.ctx, writer.uint32(18).fork()).join();
|
|
}
|
|
if (message.unkParam !== 0) {
|
|
writer.uint32(24).int32(message.unkParam);
|
|
}
|
|
if (message.params !== undefined) {
|
|
GetCommentsSectionParams_Params.encode(message.params, writer.uint32(50).fork()).join();
|
|
}
|
|
return writer;
|
|
},
|
|
decode(input, length) {
|
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
const end = length === undefined ? reader.len : reader.pos + length;
|
|
const message = createBaseGetCommentsSectionParams();
|
|
while (reader.pos < end) {
|
|
const tag = reader.uint32();
|
|
switch (tag >>> 3) {
|
|
case 2: {
|
|
if (tag !== 18) {
|
|
break;
|
|
}
|
|
message.ctx = GetCommentsSectionParams_Context.decode(reader, reader.uint32());
|
|
continue;
|
|
}
|
|
case 3: {
|
|
if (tag !== 24) {
|
|
break;
|
|
}
|
|
message.unkParam = reader.int32();
|
|
continue;
|
|
}
|
|
case 6: {
|
|
if (tag !== 50) {
|
|
break;
|
|
}
|
|
message.params = GetCommentsSectionParams_Params.decode(reader, reader.uint32());
|
|
continue;
|
|
}
|
|
}
|
|
if ((tag & 7) === 4 || tag === 0) {
|
|
break;
|
|
}
|
|
reader.skip(tag & 7);
|
|
}
|
|
return message;
|
|
},
|
|
};
|
|
function createBaseGetCommentsSectionParams_Context() {
|
|
return { videoId: "" };
|
|
}
|
|
export const GetCommentsSectionParams_Context = {
|
|
encode(message, writer = new BinaryWriter()) {
|
|
if (message.videoId !== "") {
|
|
writer.uint32(18).string(message.videoId);
|
|
}
|
|
return writer;
|
|
},
|
|
decode(input, length) {
|
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
const end = length === undefined ? reader.len : reader.pos + length;
|
|
const message = createBaseGetCommentsSectionParams_Context();
|
|
while (reader.pos < end) {
|
|
const tag = reader.uint32();
|
|
switch (tag >>> 3) {
|
|
case 2: {
|
|
if (tag !== 18) {
|
|
break;
|
|
}
|
|
message.videoId = reader.string();
|
|
continue;
|
|
}
|
|
}
|
|
if ((tag & 7) === 4 || tag === 0) {
|
|
break;
|
|
}
|
|
reader.skip(tag & 7);
|
|
}
|
|
return message;
|
|
},
|
|
};
|
|
function createBaseGetCommentsSectionParams_Params() {
|
|
return { unkToken: undefined, opts: undefined, repliesOpts: undefined, page: undefined, target: "" };
|
|
}
|
|
export const GetCommentsSectionParams_Params = {
|
|
encode(message, writer = new BinaryWriter()) {
|
|
if (message.unkToken !== undefined) {
|
|
writer.uint32(10).string(message.unkToken);
|
|
}
|
|
if (message.opts !== undefined) {
|
|
GetCommentsSectionParams_Params_Options.encode(message.opts, writer.uint32(34).fork()).join();
|
|
}
|
|
if (message.repliesOpts !== undefined) {
|
|
GetCommentsSectionParams_Params_RepliesOptions.encode(message.repliesOpts, writer.uint32(26).fork()).join();
|
|
}
|
|
if (message.page !== undefined) {
|
|
writer.uint32(40).int32(message.page);
|
|
}
|
|
if (message.target !== "") {
|
|
writer.uint32(66).string(message.target);
|
|
}
|
|
return writer;
|
|
},
|
|
decode(input, length) {
|
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
const end = length === undefined ? reader.len : reader.pos + length;
|
|
const message = createBaseGetCommentsSectionParams_Params();
|
|
while (reader.pos < end) {
|
|
const tag = reader.uint32();
|
|
switch (tag >>> 3) {
|
|
case 1: {
|
|
if (tag !== 10) {
|
|
break;
|
|
}
|
|
message.unkToken = reader.string();
|
|
continue;
|
|
}
|
|
case 4: {
|
|
if (tag !== 34) {
|
|
break;
|
|
}
|
|
message.opts = GetCommentsSectionParams_Params_Options.decode(reader, reader.uint32());
|
|
continue;
|
|
}
|
|
case 3: {
|
|
if (tag !== 26) {
|
|
break;
|
|
}
|
|
message.repliesOpts = GetCommentsSectionParams_Params_RepliesOptions.decode(reader, reader.uint32());
|
|
continue;
|
|
}
|
|
case 5: {
|
|
if (tag !== 40) {
|
|
break;
|
|
}
|
|
message.page = reader.int32();
|
|
continue;
|
|
}
|
|
case 8: {
|
|
if (tag !== 66) {
|
|
break;
|
|
}
|
|
message.target = reader.string();
|
|
continue;
|
|
}
|
|
}
|
|
if ((tag & 7) === 4 || tag === 0) {
|
|
break;
|
|
}
|
|
reader.skip(tag & 7);
|
|
}
|
|
return message;
|
|
},
|
|
};
|
|
function createBaseGetCommentsSectionParams_Params_Options() {
|
|
return { videoId: "", sortBy: 0, type: 0, commentId: undefined };
|
|
}
|
|
export const GetCommentsSectionParams_Params_Options = {
|
|
encode(message, writer = new BinaryWriter()) {
|
|
if (message.videoId !== "") {
|
|
writer.uint32(34).string(message.videoId);
|
|
}
|
|
if (message.sortBy !== 0) {
|
|
writer.uint32(48).int32(message.sortBy);
|
|
}
|
|
if (message.type !== 0) {
|
|
writer.uint32(120).int32(message.type);
|
|
}
|
|
if (message.commentId !== undefined) {
|
|
writer.uint32(130).string(message.commentId);
|
|
}
|
|
return writer;
|
|
},
|
|
decode(input, length) {
|
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
const end = length === undefined ? reader.len : reader.pos + length;
|
|
const message = createBaseGetCommentsSectionParams_Params_Options();
|
|
while (reader.pos < end) {
|
|
const tag = reader.uint32();
|
|
switch (tag >>> 3) {
|
|
case 4: {
|
|
if (tag !== 34) {
|
|
break;
|
|
}
|
|
message.videoId = reader.string();
|
|
continue;
|
|
}
|
|
case 6: {
|
|
if (tag !== 48) {
|
|
break;
|
|
}
|
|
message.sortBy = reader.int32();
|
|
continue;
|
|
}
|
|
case 15: {
|
|
if (tag !== 120) {
|
|
break;
|
|
}
|
|
message.type = reader.int32();
|
|
continue;
|
|
}
|
|
case 16: {
|
|
if (tag !== 130) {
|
|
break;
|
|
}
|
|
message.commentId = reader.string();
|
|
continue;
|
|
}
|
|
}
|
|
if ((tag & 7) === 4 || tag === 0) {
|
|
break;
|
|
}
|
|
reader.skip(tag & 7);
|
|
}
|
|
return message;
|
|
},
|
|
};
|
|
function createBaseGetCommentsSectionParams_Params_RepliesOptions() {
|
|
return { commentId: "", unkopts: undefined, channelId: undefined, videoId: "", unkParam1: 0, unkParam2: 0 };
|
|
}
|
|
export const GetCommentsSectionParams_Params_RepliesOptions = {
|
|
encode(message, writer = new BinaryWriter()) {
|
|
if (message.commentId !== "") {
|
|
writer.uint32(18).string(message.commentId);
|
|
}
|
|
if (message.unkopts !== undefined) {
|
|
GetCommentsSectionParams_Params_RepliesOptions_UnkOpts.encode(message.unkopts, writer.uint32(34).fork()).join();
|
|
}
|
|
if (message.channelId !== undefined) {
|
|
writer.uint32(42).string(message.channelId);
|
|
}
|
|
if (message.videoId !== "") {
|
|
writer.uint32(50).string(message.videoId);
|
|
}
|
|
if (message.unkParam1 !== 0) {
|
|
writer.uint32(64).int32(message.unkParam1);
|
|
}
|
|
if (message.unkParam2 !== 0) {
|
|
writer.uint32(72).int32(message.unkParam2);
|
|
}
|
|
return writer;
|
|
},
|
|
decode(input, length) {
|
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
const end = length === undefined ? reader.len : reader.pos + length;
|
|
const message = createBaseGetCommentsSectionParams_Params_RepliesOptions();
|
|
while (reader.pos < end) {
|
|
const tag = reader.uint32();
|
|
switch (tag >>> 3) {
|
|
case 2: {
|
|
if (tag !== 18) {
|
|
break;
|
|
}
|
|
message.commentId = reader.string();
|
|
continue;
|
|
}
|
|
case 4: {
|
|
if (tag !== 34) {
|
|
break;
|
|
}
|
|
message.unkopts = GetCommentsSectionParams_Params_RepliesOptions_UnkOpts.decode(reader, reader.uint32());
|
|
continue;
|
|
}
|
|
case 5: {
|
|
if (tag !== 42) {
|
|
break;
|
|
}
|
|
message.channelId = reader.string();
|
|
continue;
|
|
}
|
|
case 6: {
|
|
if (tag !== 50) {
|
|
break;
|
|
}
|
|
message.videoId = reader.string();
|
|
continue;
|
|
}
|
|
case 8: {
|
|
if (tag !== 64) {
|
|
break;
|
|
}
|
|
message.unkParam1 = reader.int32();
|
|
continue;
|
|
}
|
|
case 9: {
|
|
if (tag !== 72) {
|
|
break;
|
|
}
|
|
message.unkParam2 = reader.int32();
|
|
continue;
|
|
}
|
|
}
|
|
if ((tag & 7) === 4 || tag === 0) {
|
|
break;
|
|
}
|
|
reader.skip(tag & 7);
|
|
}
|
|
return message;
|
|
},
|
|
};
|
|
function createBaseGetCommentsSectionParams_Params_RepliesOptions_UnkOpts() {
|
|
return { unkParam: 0 };
|
|
}
|
|
export const GetCommentsSectionParams_Params_RepliesOptions_UnkOpts = {
|
|
encode(message, writer = new BinaryWriter()) {
|
|
if (message.unkParam !== 0) {
|
|
writer.uint32(8).int32(message.unkParam);
|
|
}
|
|
return writer;
|
|
},
|
|
decode(input, length) {
|
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
const end = length === undefined ? reader.len : reader.pos + length;
|
|
const message = createBaseGetCommentsSectionParams_Params_RepliesOptions_UnkOpts();
|
|
while (reader.pos < end) {
|
|
const tag = reader.uint32();
|
|
switch (tag >>> 3) {
|
|
case 1: {
|
|
if (tag !== 8) {
|
|
break;
|
|
}
|
|
message.unkParam = reader.int32();
|
|
continue;
|
|
}
|
|
}
|
|
if ((tag & 7) === 4 || tag === 0) {
|
|
break;
|
|
}
|
|
reader.skip(tag & 7);
|
|
}
|
|
return message;
|
|
},
|
|
};
|
|
function createBaseCreateCommentParams() {
|
|
return { videoId: "", params: undefined, number: 0 };
|
|
}
|
|
export const CreateCommentParams = {
|
|
encode(message, writer = new BinaryWriter()) {
|
|
if (message.videoId !== "") {
|
|
writer.uint32(18).string(message.videoId);
|
|
}
|
|
if (message.params !== undefined) {
|
|
CreateCommentParams_Params.encode(message.params, writer.uint32(42).fork()).join();
|
|
}
|
|
if (message.number !== 0) {
|
|
writer.uint32(80).int32(message.number);
|
|
}
|
|
return writer;
|
|
},
|
|
decode(input, length) {
|
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
const end = length === undefined ? reader.len : reader.pos + length;
|
|
const message = createBaseCreateCommentParams();
|
|
while (reader.pos < end) {
|
|
const tag = reader.uint32();
|
|
switch (tag >>> 3) {
|
|
case 2: {
|
|
if (tag !== 18) {
|
|
break;
|
|
}
|
|
message.videoId = reader.string();
|
|
continue;
|
|
}
|
|
case 5: {
|
|
if (tag !== 42) {
|
|
break;
|
|
}
|
|
message.params = CreateCommentParams_Params.decode(reader, reader.uint32());
|
|
continue;
|
|
}
|
|
case 10: {
|
|
if (tag !== 80) {
|
|
break;
|
|
}
|
|
message.number = reader.int32();
|
|
continue;
|
|
}
|
|
}
|
|
if ((tag & 7) === 4 || tag === 0) {
|
|
break;
|
|
}
|
|
reader.skip(tag & 7);
|
|
}
|
|
return message;
|
|
},
|
|
};
|
|
function createBaseCreateCommentParams_Params() {
|
|
return { index: 0 };
|
|
}
|
|
export const CreateCommentParams_Params = {
|
|
encode(message, writer = new BinaryWriter()) {
|
|
if (message.index !== 0) {
|
|
writer.uint32(8).int32(message.index);
|
|
}
|
|
return writer;
|
|
},
|
|
decode(input, length) {
|
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
const end = length === undefined ? reader.len : reader.pos + length;
|
|
const message = createBaseCreateCommentParams_Params();
|
|
while (reader.pos < end) {
|
|
const tag = reader.uint32();
|
|
switch (tag >>> 3) {
|
|
case 1: {
|
|
if (tag !== 8) {
|
|
break;
|
|
}
|
|
message.index = reader.int32();
|
|
continue;
|
|
}
|
|
}
|
|
if ((tag & 7) === 4 || tag === 0) {
|
|
break;
|
|
}
|
|
reader.skip(tag & 7);
|
|
}
|
|
return message;
|
|
},
|
|
};
|
|
function createBasePeformCommentActionParams() {
|
|
return {
|
|
type: 0,
|
|
commentId: "",
|
|
videoId: "",
|
|
unkNum: undefined,
|
|
channelId: undefined,
|
|
translateCommentParams: undefined,
|
|
};
|
|
}
|
|
export const PeformCommentActionParams = {
|
|
encode(message, writer = new BinaryWriter()) {
|
|
if (message.type !== 0) {
|
|
writer.uint32(8).int32(message.type);
|
|
}
|
|
if (message.commentId !== "") {
|
|
writer.uint32(26).string(message.commentId);
|
|
}
|
|
if (message.videoId !== "") {
|
|
writer.uint32(42).string(message.videoId);
|
|
}
|
|
if (message.unkNum !== undefined) {
|
|
writer.uint32(16).int32(message.unkNum);
|
|
}
|
|
if (message.channelId !== undefined) {
|
|
writer.uint32(186).string(message.channelId);
|
|
}
|
|
if (message.translateCommentParams !== undefined) {
|
|
PeformCommentActionParams_TranslateCommentParams.encode(message.translateCommentParams, writer.uint32(250).fork())
|
|
.join();
|
|
}
|
|
return writer;
|
|
},
|
|
decode(input, length) {
|
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
const end = length === undefined ? reader.len : reader.pos + length;
|
|
const message = createBasePeformCommentActionParams();
|
|
while (reader.pos < end) {
|
|
const tag = reader.uint32();
|
|
switch (tag >>> 3) {
|
|
case 1: {
|
|
if (tag !== 8) {
|
|
break;
|
|
}
|
|
message.type = reader.int32();
|
|
continue;
|
|
}
|
|
case 3: {
|
|
if (tag !== 26) {
|
|
break;
|
|
}
|
|
message.commentId = reader.string();
|
|
continue;
|
|
}
|
|
case 5: {
|
|
if (tag !== 42) {
|
|
break;
|
|
}
|
|
message.videoId = reader.string();
|
|
continue;
|
|
}
|
|
case 2: {
|
|
if (tag !== 16) {
|
|
break;
|
|
}
|
|
message.unkNum = reader.int32();
|
|
continue;
|
|
}
|
|
case 23: {
|
|
if (tag !== 186) {
|
|
break;
|
|
}
|
|
message.channelId = reader.string();
|
|
continue;
|
|
}
|
|
case 31: {
|
|
if (tag !== 250) {
|
|
break;
|
|
}
|
|
message.translateCommentParams = PeformCommentActionParams_TranslateCommentParams.decode(reader, reader.uint32());
|
|
continue;
|
|
}
|
|
}
|
|
if ((tag & 7) === 4 || tag === 0) {
|
|
break;
|
|
}
|
|
reader.skip(tag & 7);
|
|
}
|
|
return message;
|
|
},
|
|
};
|
|
function createBasePeformCommentActionParams_TranslateCommentParams() {
|
|
return { params: undefined, commentId: "", targetLanguage: "" };
|
|
}
|
|
export const PeformCommentActionParams_TranslateCommentParams = {
|
|
encode(message, writer = new BinaryWriter()) {
|
|
if (message.params !== undefined) {
|
|
PeformCommentActionParams_TranslateCommentParams_Params.encode(message.params, writer.uint32(26).fork()).join();
|
|
}
|
|
if (message.commentId !== "") {
|
|
writer.uint32(18).string(message.commentId);
|
|
}
|
|
if (message.targetLanguage !== "") {
|
|
writer.uint32(34).string(message.targetLanguage);
|
|
}
|
|
return writer;
|
|
},
|
|
decode(input, length) {
|
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
const end = length === undefined ? reader.len : reader.pos + length;
|
|
const message = createBasePeformCommentActionParams_TranslateCommentParams();
|
|
while (reader.pos < end) {
|
|
const tag = reader.uint32();
|
|
switch (tag >>> 3) {
|
|
case 3: {
|
|
if (tag !== 26) {
|
|
break;
|
|
}
|
|
message.params = PeformCommentActionParams_TranslateCommentParams_Params.decode(reader, reader.uint32());
|
|
continue;
|
|
}
|
|
case 2: {
|
|
if (tag !== 18) {
|
|
break;
|
|
}
|
|
message.commentId = reader.string();
|
|
continue;
|
|
}
|
|
case 4: {
|
|
if (tag !== 34) {
|
|
break;
|
|
}
|
|
message.targetLanguage = reader.string();
|
|
continue;
|
|
}
|
|
}
|
|
if ((tag & 7) === 4 || tag === 0) {
|
|
break;
|
|
}
|
|
reader.skip(tag & 7);
|
|
}
|
|
return message;
|
|
},
|
|
};
|
|
function createBasePeformCommentActionParams_TranslateCommentParams_Params() {
|
|
return { comment: undefined };
|
|
}
|
|
export const PeformCommentActionParams_TranslateCommentParams_Params = {
|
|
encode(message, writer = new BinaryWriter()) {
|
|
if (message.comment !== undefined) {
|
|
PeformCommentActionParams_TranslateCommentParams_Params_Comment.encode(message.comment, writer.uint32(10).fork())
|
|
.join();
|
|
}
|
|
return writer;
|
|
},
|
|
decode(input, length) {
|
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
const end = length === undefined ? reader.len : reader.pos + length;
|
|
const message = createBasePeformCommentActionParams_TranslateCommentParams_Params();
|
|
while (reader.pos < end) {
|
|
const tag = reader.uint32();
|
|
switch (tag >>> 3) {
|
|
case 1: {
|
|
if (tag !== 10) {
|
|
break;
|
|
}
|
|
message.comment = PeformCommentActionParams_TranslateCommentParams_Params_Comment.decode(reader, reader.uint32());
|
|
continue;
|
|
}
|
|
}
|
|
if ((tag & 7) === 4 || tag === 0) {
|
|
break;
|
|
}
|
|
reader.skip(tag & 7);
|
|
}
|
|
return message;
|
|
},
|
|
};
|
|
function createBasePeformCommentActionParams_TranslateCommentParams_Params_Comment() {
|
|
return { text: "" };
|
|
}
|
|
export const PeformCommentActionParams_TranslateCommentParams_Params_Comment = {
|
|
encode(message, writer = new BinaryWriter()) {
|
|
if (message.text !== "") {
|
|
writer.uint32(10).string(message.text);
|
|
}
|
|
return writer;
|
|
},
|
|
decode(input, length) {
|
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
const end = length === undefined ? reader.len : reader.pos + length;
|
|
const message = createBasePeformCommentActionParams_TranslateCommentParams_Params_Comment();
|
|
while (reader.pos < end) {
|
|
const tag = reader.uint32();
|
|
switch (tag >>> 3) {
|
|
case 1: {
|
|
if (tag !== 10) {
|
|
break;
|
|
}
|
|
message.text = reader.string();
|
|
continue;
|
|
}
|
|
}
|
|
if ((tag & 7) === 4 || tag === 0) {
|
|
break;
|
|
}
|
|
reader.skip(tag & 7);
|
|
}
|
|
return message;
|
|
},
|
|
};
|
|
function createBaseHashtag() {
|
|
return { params: undefined };
|
|
}
|
|
export const Hashtag = {
|
|
encode(message, writer = new BinaryWriter()) {
|
|
if (message.params !== undefined) {
|
|
Hashtag_Params.encode(message.params, writer.uint32(746).fork()).join();
|
|
}
|
|
return writer;
|
|
},
|
|
decode(input, length) {
|
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
const end = length === undefined ? reader.len : reader.pos + length;
|
|
const message = createBaseHashtag();
|
|
while (reader.pos < end) {
|
|
const tag = reader.uint32();
|
|
switch (tag >>> 3) {
|
|
case 93: {
|
|
if (tag !== 746) {
|
|
break;
|
|
}
|
|
message.params = Hashtag_Params.decode(reader, reader.uint32());
|
|
continue;
|
|
}
|
|
}
|
|
if ((tag & 7) === 4 || tag === 0) {
|
|
break;
|
|
}
|
|
reader.skip(tag & 7);
|
|
}
|
|
return message;
|
|
},
|
|
};
|
|
function createBaseHashtag_Params() {
|
|
return { hashtag: "", type: 0 };
|
|
}
|
|
export const Hashtag_Params = {
|
|
encode(message, writer = new BinaryWriter()) {
|
|
if (message.hashtag !== "") {
|
|
writer.uint32(10).string(message.hashtag);
|
|
}
|
|
if (message.type !== 0) {
|
|
writer.uint32(24).int32(message.type);
|
|
}
|
|
return writer;
|
|
},
|
|
decode(input, length) {
|
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
const end = length === undefined ? reader.len : reader.pos + length;
|
|
const message = createBaseHashtag_Params();
|
|
while (reader.pos < end) {
|
|
const tag = reader.uint32();
|
|
switch (tag >>> 3) {
|
|
case 1: {
|
|
if (tag !== 10) {
|
|
break;
|
|
}
|
|
message.hashtag = reader.string();
|
|
continue;
|
|
}
|
|
case 3: {
|
|
if (tag !== 24) {
|
|
break;
|
|
}
|
|
message.type = reader.int32();
|
|
continue;
|
|
}
|
|
}
|
|
if ((tag & 7) === 4 || tag === 0) {
|
|
break;
|
|
}
|
|
reader.skip(tag & 7);
|
|
}
|
|
return message;
|
|
},
|
|
};
|
|
function createBaseReelSequence() {
|
|
return { shortId: "", params: undefined, feature2: 0, feature3: 0 };
|
|
}
|
|
export const ReelSequence = {
|
|
encode(message, writer = new BinaryWriter()) {
|
|
if (message.shortId !== "") {
|
|
writer.uint32(10).string(message.shortId);
|
|
}
|
|
if (message.params !== undefined) {
|
|
ReelSequence_Params.encode(message.params, writer.uint32(42).fork()).join();
|
|
}
|
|
if (message.feature2 !== 0) {
|
|
writer.uint32(80).int32(message.feature2);
|
|
}
|
|
if (message.feature3 !== 0) {
|
|
writer.uint32(104).int32(message.feature3);
|
|
}
|
|
return writer;
|
|
},
|
|
decode(input, length) {
|
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
const end = length === undefined ? reader.len : reader.pos + length;
|
|
const message = createBaseReelSequence();
|
|
while (reader.pos < end) {
|
|
const tag = reader.uint32();
|
|
switch (tag >>> 3) {
|
|
case 1: {
|
|
if (tag !== 10) {
|
|
break;
|
|
}
|
|
message.shortId = reader.string();
|
|
continue;
|
|
}
|
|
case 5: {
|
|
if (tag !== 42) {
|
|
break;
|
|
}
|
|
message.params = ReelSequence_Params.decode(reader, reader.uint32());
|
|
continue;
|
|
}
|
|
case 10: {
|
|
if (tag !== 80) {
|
|
break;
|
|
}
|
|
message.feature2 = reader.int32();
|
|
continue;
|
|
}
|
|
case 13: {
|
|
if (tag !== 104) {
|
|
break;
|
|
}
|
|
message.feature3 = reader.int32();
|
|
continue;
|
|
}
|
|
}
|
|
if ((tag & 7) === 4 || tag === 0) {
|
|
break;
|
|
}
|
|
reader.skip(tag & 7);
|
|
}
|
|
return message;
|
|
},
|
|
};
|
|
function createBaseReelSequence_Params() {
|
|
return { number: 0 };
|
|
}
|
|
export const ReelSequence_Params = {
|
|
encode(message, writer = new BinaryWriter()) {
|
|
if (message.number !== 0) {
|
|
writer.uint32(24).int32(message.number);
|
|
}
|
|
return writer;
|
|
},
|
|
decode(input, length) {
|
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
const end = length === undefined ? reader.len : reader.pos + length;
|
|
const message = createBaseReelSequence_Params();
|
|
while (reader.pos < end) {
|
|
const tag = reader.uint32();
|
|
switch (tag >>> 3) {
|
|
case 3: {
|
|
if (tag !== 24) {
|
|
break;
|
|
}
|
|
message.number = reader.int32();
|
|
continue;
|
|
}
|
|
}
|
|
if ((tag & 7) === 4 || tag === 0) {
|
|
break;
|
|
}
|
|
reader.skip(tag & 7);
|
|
}
|
|
return message;
|
|
},
|
|
};
|
|
function createBaseShortsParam() {
|
|
return { f1: undefined, p59: undefined };
|
|
}
|
|
export const ShortsParam = {
|
|
encode(message, writer = new BinaryWriter()) {
|
|
if (message.f1 !== undefined) {
|
|
ShortsParam_Field1.encode(message.f1, writer.uint32(10).fork()).join();
|
|
}
|
|
if (message.p59 !== undefined) {
|
|
writer.uint32(472).int32(message.p59);
|
|
}
|
|
return writer;
|
|
},
|
|
decode(input, length) {
|
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
const end = length === undefined ? reader.len : reader.pos + length;
|
|
const message = createBaseShortsParam();
|
|
while (reader.pos < end) {
|
|
const tag = reader.uint32();
|
|
switch (tag >>> 3) {
|
|
case 1: {
|
|
if (tag !== 10) {
|
|
break;
|
|
}
|
|
message.f1 = ShortsParam_Field1.decode(reader, reader.uint32());
|
|
continue;
|
|
}
|
|
case 59: {
|
|
if (tag !== 472) {
|
|
break;
|
|
}
|
|
message.p59 = reader.int32();
|
|
continue;
|
|
}
|
|
}
|
|
if ((tag & 7) === 4 || tag === 0) {
|
|
break;
|
|
}
|
|
reader.skip(tag & 7);
|
|
}
|
|
return message;
|
|
},
|
|
};
|
|
function createBaseShortsParam_Field1() {
|
|
return { p1: undefined };
|
|
}
|
|
export const ShortsParam_Field1 = {
|
|
encode(message, writer = new BinaryWriter()) {
|
|
if (message.p1 !== undefined) {
|
|
writer.uint32(8).int32(message.p1);
|
|
}
|
|
return writer;
|
|
},
|
|
decode(input, length) {
|
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
const end = length === undefined ? reader.len : reader.pos + length;
|
|
const message = createBaseShortsParam_Field1();
|
|
while (reader.pos < end) {
|
|
const tag = reader.uint32();
|
|
switch (tag >>> 3) {
|
|
case 1: {
|
|
if (tag !== 8) {
|
|
break;
|
|
}
|
|
message.p1 = reader.int32();
|
|
continue;
|
|
}
|
|
}
|
|
if ((tag & 7) === 4 || tag === 0) {
|
|
break;
|
|
}
|
|
reader.skip(tag & 7);
|
|
}
|
|
return message;
|
|
},
|
|
};
|
|
function createBaseNextParams() {
|
|
return { videoId: [], playlistTitle: undefined };
|
|
}
|
|
export const NextParams = {
|
|
encode(message, writer = new BinaryWriter()) {
|
|
for (const v of message.videoId) {
|
|
writer.uint32(42).string(v);
|
|
}
|
|
if (message.playlistTitle !== undefined) {
|
|
writer.uint32(50).string(message.playlistTitle);
|
|
}
|
|
return writer;
|
|
},
|
|
decode(input, length) {
|
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
const end = length === undefined ? reader.len : reader.pos + length;
|
|
const message = createBaseNextParams();
|
|
while (reader.pos < end) {
|
|
const tag = reader.uint32();
|
|
switch (tag >>> 3) {
|
|
case 5: {
|
|
if (tag !== 42) {
|
|
break;
|
|
}
|
|
message.videoId.push(reader.string());
|
|
continue;
|
|
}
|
|
case 6: {
|
|
if (tag !== 50) {
|
|
break;
|
|
}
|
|
message.playlistTitle = reader.string();
|
|
continue;
|
|
}
|
|
}
|
|
if ((tag & 7) === 4 || tag === 0) {
|
|
break;
|
|
}
|
|
reader.skip(tag & 7);
|
|
}
|
|
return message;
|
|
},
|
|
};
|
|
function createBaseCommunityPostParams() {
|
|
return { f1: undefined };
|
|
}
|
|
export const CommunityPostParams = {
|
|
encode(message, writer = new BinaryWriter()) {
|
|
if (message.f1 !== undefined) {
|
|
CommunityPostParams_Field1.encode(message.f1, writer.uint32(450).fork()).join();
|
|
}
|
|
return writer;
|
|
},
|
|
decode(input, length) {
|
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
const end = length === undefined ? reader.len : reader.pos + length;
|
|
const message = createBaseCommunityPostParams();
|
|
while (reader.pos < end) {
|
|
const tag = reader.uint32();
|
|
switch (tag >>> 3) {
|
|
case 56: {
|
|
if (tag !== 450) {
|
|
break;
|
|
}
|
|
message.f1 = CommunityPostParams_Field1.decode(reader, reader.uint32());
|
|
continue;
|
|
}
|
|
}
|
|
if ((tag & 7) === 4 || tag === 0) {
|
|
break;
|
|
}
|
|
reader.skip(tag & 7);
|
|
}
|
|
return message;
|
|
},
|
|
};
|
|
function createBaseCommunityPostParams_Field1() {
|
|
return { ucid1: "", postId: "", ucid2: "" };
|
|
}
|
|
export const CommunityPostParams_Field1 = {
|
|
encode(message, writer = new BinaryWriter()) {
|
|
if (message.ucid1 !== "") {
|
|
writer.uint32(18).string(message.ucid1);
|
|
}
|
|
if (message.postId !== "") {
|
|
writer.uint32(26).string(message.postId);
|
|
}
|
|
if (message.ucid2 !== "") {
|
|
writer.uint32(90).string(message.ucid2);
|
|
}
|
|
return writer;
|
|
},
|
|
decode(input, length) {
|
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
const end = length === undefined ? reader.len : reader.pos + length;
|
|
const message = createBaseCommunityPostParams_Field1();
|
|
while (reader.pos < end) {
|
|
const tag = reader.uint32();
|
|
switch (tag >>> 3) {
|
|
case 2: {
|
|
if (tag !== 18) {
|
|
break;
|
|
}
|
|
message.ucid1 = reader.string();
|
|
continue;
|
|
}
|
|
case 3: {
|
|
if (tag !== 26) {
|
|
break;
|
|
}
|
|
message.postId = reader.string();
|
|
continue;
|
|
}
|
|
case 11: {
|
|
if (tag !== 90) {
|
|
break;
|
|
}
|
|
message.ucid2 = reader.string();
|
|
continue;
|
|
}
|
|
}
|
|
if ((tag & 7) === 4 || tag === 0) {
|
|
break;
|
|
}
|
|
reader.skip(tag & 7);
|
|
}
|
|
return message;
|
|
},
|
|
};
|
|
function createBaseCommunityPostCommentsParamContainer() {
|
|
return { f0: undefined };
|
|
}
|
|
export const CommunityPostCommentsParamContainer = {
|
|
encode(message, writer = new BinaryWriter()) {
|
|
if (message.f0 !== undefined) {
|
|
CommunityPostCommentsParamContainer_Container.encode(message.f0, writer.uint32(641815778).fork()).join();
|
|
}
|
|
return writer;
|
|
},
|
|
decode(input, length) {
|
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
const end = length === undefined ? reader.len : reader.pos + length;
|
|
const message = createBaseCommunityPostCommentsParamContainer();
|
|
while (reader.pos < end) {
|
|
const tag = reader.uint32();
|
|
switch (tag >>> 3) {
|
|
case 80226972: {
|
|
if (tag !== 641815778) {
|
|
break;
|
|
}
|
|
message.f0 = CommunityPostCommentsParamContainer_Container.decode(reader, reader.uint32());
|
|
continue;
|
|
}
|
|
}
|
|
if ((tag & 7) === 4 || tag === 0) {
|
|
break;
|
|
}
|
|
reader.skip(tag & 7);
|
|
}
|
|
return message;
|
|
},
|
|
};
|
|
function createBaseCommunityPostCommentsParamContainer_Container() {
|
|
return { location: "", protoData: "" };
|
|
}
|
|
export const CommunityPostCommentsParamContainer_Container = {
|
|
encode(message, writer = new BinaryWriter()) {
|
|
if (message.location !== "") {
|
|
writer.uint32(18).string(message.location);
|
|
}
|
|
if (message.protoData !== "") {
|
|
writer.uint32(26).string(message.protoData);
|
|
}
|
|
return writer;
|
|
},
|
|
decode(input, length) {
|
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
const end = length === undefined ? reader.len : reader.pos + length;
|
|
const message = createBaseCommunityPostCommentsParamContainer_Container();
|
|
while (reader.pos < end) {
|
|
const tag = reader.uint32();
|
|
switch (tag >>> 3) {
|
|
case 2: {
|
|
if (tag !== 18) {
|
|
break;
|
|
}
|
|
message.location = reader.string();
|
|
continue;
|
|
}
|
|
case 3: {
|
|
if (tag !== 26) {
|
|
break;
|
|
}
|
|
message.protoData = reader.string();
|
|
continue;
|
|
}
|
|
}
|
|
if ((tag & 7) === 4 || tag === 0) {
|
|
break;
|
|
}
|
|
reader.skip(tag & 7);
|
|
}
|
|
return message;
|
|
},
|
|
};
|
|
function createBaseCommunityPostCommentsParam() {
|
|
return { title: "", commentDataContainer: undefined };
|
|
}
|
|
export const CommunityPostCommentsParam = {
|
|
encode(message, writer = new BinaryWriter()) {
|
|
if (message.title !== "") {
|
|
writer.uint32(18).string(message.title);
|
|
}
|
|
if (message.commentDataContainer !== undefined) {
|
|
CommunityPostCommentsParam_CommentDataContainer.encode(message.commentDataContainer, writer.uint32(426).fork())
|
|
.join();
|
|
}
|
|
return writer;
|
|
},
|
|
decode(input, length) {
|
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
const end = length === undefined ? reader.len : reader.pos + length;
|
|
const message = createBaseCommunityPostCommentsParam();
|
|
while (reader.pos < end) {
|
|
const tag = reader.uint32();
|
|
switch (tag >>> 3) {
|
|
case 2: {
|
|
if (tag !== 18) {
|
|
break;
|
|
}
|
|
message.title = reader.string();
|
|
continue;
|
|
}
|
|
case 53: {
|
|
if (tag !== 426) {
|
|
break;
|
|
}
|
|
message.commentDataContainer = CommunityPostCommentsParam_CommentDataContainer.decode(reader, reader.uint32());
|
|
continue;
|
|
}
|
|
}
|
|
if ((tag & 7) === 4 || tag === 0) {
|
|
break;
|
|
}
|
|
reader.skip(tag & 7);
|
|
}
|
|
return message;
|
|
},
|
|
};
|
|
function createBaseCommunityPostCommentsParam_CommentDataContainer() {
|
|
return { commentData: undefined, f0: 0, title: "" };
|
|
}
|
|
export const CommunityPostCommentsParam_CommentDataContainer = {
|
|
encode(message, writer = new BinaryWriter()) {
|
|
if (message.commentData !== undefined) {
|
|
CommunityPostCommentsParam_CommentDataContainer_CommentData.encode(message.commentData, writer.uint32(34).fork())
|
|
.join();
|
|
}
|
|
if (message.f0 !== 0) {
|
|
writer.uint32(56).int32(message.f0);
|
|
}
|
|
if (message.title !== "") {
|
|
writer.uint32(66).string(message.title);
|
|
}
|
|
return writer;
|
|
},
|
|
decode(input, length) {
|
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
const end = length === undefined ? reader.len : reader.pos + length;
|
|
const message = createBaseCommunityPostCommentsParam_CommentDataContainer();
|
|
while (reader.pos < end) {
|
|
const tag = reader.uint32();
|
|
switch (tag >>> 3) {
|
|
case 4: {
|
|
if (tag !== 34) {
|
|
break;
|
|
}
|
|
message.commentData = CommunityPostCommentsParam_CommentDataContainer_CommentData.decode(reader, reader.uint32());
|
|
continue;
|
|
}
|
|
case 7: {
|
|
if (tag !== 56) {
|
|
break;
|
|
}
|
|
message.f0 = reader.int32();
|
|
continue;
|
|
}
|
|
case 8: {
|
|
if (tag !== 66) {
|
|
break;
|
|
}
|
|
message.title = reader.string();
|
|
continue;
|
|
}
|
|
}
|
|
if ((tag & 7) === 4 || tag === 0) {
|
|
break;
|
|
}
|
|
reader.skip(tag & 7);
|
|
}
|
|
return message;
|
|
},
|
|
};
|
|
function createBaseCommunityPostCommentsParam_CommentDataContainer_CommentData() {
|
|
return { sortBy: 0, f0: 0, f1: 0, postId: "", channelId: "" };
|
|
}
|
|
export const CommunityPostCommentsParam_CommentDataContainer_CommentData = {
|
|
encode(message, writer = new BinaryWriter()) {
|
|
if (message.sortBy !== 0) {
|
|
writer.uint32(48).int32(message.sortBy);
|
|
}
|
|
if (message.f0 !== 0) {
|
|
writer.uint32(120).int32(message.f0);
|
|
}
|
|
if (message.f1 !== 0) {
|
|
writer.uint32(200).int32(message.f1);
|
|
}
|
|
if (message.postId !== "") {
|
|
writer.uint32(234).string(message.postId);
|
|
}
|
|
if (message.channelId !== "") {
|
|
writer.uint32(242).string(message.channelId);
|
|
}
|
|
return writer;
|
|
},
|
|
decode(input, length) {
|
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
const end = length === undefined ? reader.len : reader.pos + length;
|
|
const message = createBaseCommunityPostCommentsParam_CommentDataContainer_CommentData();
|
|
while (reader.pos < end) {
|
|
const tag = reader.uint32();
|
|
switch (tag >>> 3) {
|
|
case 6: {
|
|
if (tag !== 48) {
|
|
break;
|
|
}
|
|
message.sortBy = reader.int32();
|
|
continue;
|
|
}
|
|
case 15: {
|
|
if (tag !== 120) {
|
|
break;
|
|
}
|
|
message.f0 = reader.int32();
|
|
continue;
|
|
}
|
|
case 25: {
|
|
if (tag !== 200) {
|
|
break;
|
|
}
|
|
message.f1 = reader.int32();
|
|
continue;
|
|
}
|
|
case 29: {
|
|
if (tag !== 234) {
|
|
break;
|
|
}
|
|
message.postId = reader.string();
|
|
continue;
|
|
}
|
|
case 30: {
|
|
if (tag !== 242) {
|
|
break;
|
|
}
|
|
message.channelId = reader.string();
|
|
continue;
|
|
}
|
|
}
|
|
if ((tag & 7) === 4 || tag === 0) {
|
|
break;
|
|
}
|
|
reader.skip(tag & 7);
|
|
}
|
|
return message;
|
|
},
|
|
};
|
|
//# sourceMappingURL=params.js.map
|