// @generated by protoc-gen-es v1.10.1 with parameter "target=ts" // @generated from file media/v1/media_lite.proto (package media.v1, syntax proto3) /* eslint-disable */ // @ts-nocheck import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; /** * @generated from message media.v1.MediaLite */ export class MediaLite extends Message { /** * @generated from field: int64 id = 1; */ id = protoInt64.zero; /** * @generated from field: string created_at = 2; */ createdAt = ""; /** * @generated from field: string updated_at = 3; */ updatedAt = ""; /** * @generated from field: string url = 4; */ url = ""; /** * @generated from field: string thumbnail_url = 5; */ thumbnailUrl = ""; /** * @generated from field: string original_filename = 6; */ originalFilename = ""; /** * @generated from field: bool thumbnail_supported = 7; */ thumbnailSupported = false; /** * @generated from field: bool thumb_gen_failed = 8; */ thumbGenFailed = false; /** * @generated from field: string preview_url = 9; */ previewUrl = ""; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "media.v1.MediaLite"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "id", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, { no: 2, name: "created_at", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 3, name: "updated_at", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 4, name: "url", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 5, name: "thumbnail_url", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 6, name: "original_filename", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 7, name: "thumbnail_supported", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, { no: 8, name: "thumb_gen_failed", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, { no: 9, name: "preview_url", kind: "scalar", T: 9 /* ScalarType.STRING */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): MediaLite { return new MediaLite().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): MediaLite { return new MediaLite().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): MediaLite { return new MediaLite().fromJsonString(jsonString, options); } static equals(a: MediaLite | PlainMessage | undefined, b: MediaLite | PlainMessage | undefined): boolean { return proto3.util.equals(MediaLite, a, b); } } /** * @generated from message media.v1.GetMediaLiteItemsByIDsRequest */ export class GetMediaLiteItemsByIDsRequest extends Message { /** * @generated from field: repeated int64 media_item_ids = 1; */ mediaItemIds: bigint[] = []; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "media.v1.GetMediaLiteItemsByIDsRequest"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "media_item_ids", kind: "scalar", T: 3 /* ScalarType.INT64 */, repeated: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): GetMediaLiteItemsByIDsRequest { return new GetMediaLiteItemsByIDsRequest().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): GetMediaLiteItemsByIDsRequest { return new GetMediaLiteItemsByIDsRequest().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): GetMediaLiteItemsByIDsRequest { return new GetMediaLiteItemsByIDsRequest().fromJsonString(jsonString, options); } static equals(a: GetMediaLiteItemsByIDsRequest | PlainMessage | undefined, b: GetMediaLiteItemsByIDsRequest | PlainMessage | undefined): boolean { return proto3.util.equals(GetMediaLiteItemsByIDsRequest, a, b); } } /** * @generated from message media.v1.GetMediaLiteItemsByIDsResponse */ export class GetMediaLiteItemsByIDsResponse extends Message { /** * @generated from field: repeated media.v1.MediaLite medialite_items = 1; */ medialiteItems: MediaLite[] = []; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "media.v1.GetMediaLiteItemsByIDsResponse"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "medialite_items", kind: "message", T: MediaLite, repeated: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): GetMediaLiteItemsByIDsResponse { return new GetMediaLiteItemsByIDsResponse().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): GetMediaLiteItemsByIDsResponse { return new GetMediaLiteItemsByIDsResponse().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): GetMediaLiteItemsByIDsResponse { return new GetMediaLiteItemsByIDsResponse().fromJsonString(jsonString, options); } static equals(a: GetMediaLiteItemsByIDsResponse | PlainMessage | undefined, b: GetMediaLiteItemsByIDsResponse | PlainMessage | undefined): boolean { return proto3.util.equals(GetMediaLiteItemsByIDsResponse, a, b); } }