// @generated by protoc-gen-es v1.10.1 with parameter "target=ts" // @generated from file media/v1/media.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"; import { MeasurementUnit } from "../../common/v1/unit_pb.js"; /** * @generated from message media.v1.Media */ export class Media 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 filename = 5; */ filename = ""; /** * @generated from field: string content_type = 6; */ contentType = ""; /** * @generated from field: media.v1.Image thumbnail = 7; */ thumbnail?: Image; /** * @generated from field: media.v1.Image image_preview = 8; */ imagePreview?: Image; /** * @generated from field: string original_filename = 9; */ originalFilename = ""; /** * @generated from field: string file_size = 10; */ fileSize = ""; /** * @generated from field: bool public = 11; */ public = false; /** * @generated from field: repeated media.v1.Page pages = 12; */ pages: Page[] = []; /** * @generated from field: bool file_is_corrupt = 13; */ fileIsCorrupt = false; /** * @generated from field: bool viewer_supported = 15; */ viewerSupported = false; /** * @generated from field: bool viewer_ready = 16; */ viewerReady = false; /** * @generated from field: bool thumbnail_supported = 17; */ thumbnailSupported = false; /** * @generated from field: bool thumb_gen_failed = 18; */ thumbGenFailed = false; /** * @generated from field: bool preview_gen_failed = 19; */ previewGenFailed = false; /** * @generated from field: bool viewer_gen_failed = 20; */ viewerGenFailed = false; /** * @generated from field: int32 gen_attempt_count = 21; */ genAttemptCount = 0; /** * @generated from field: bool calculating_pages = 22; */ calculatingPages = false; /** * @generated from field: string bucket_name = 23; */ bucketName = ""; /** * @generated from field: string thumbnail_bucket_name = 24; */ thumbnailBucketName = ""; /** * @generated from field: bool bleed_applied = 25; */ bleedApplied = false; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "media.v1.Media"; 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: "filename", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 6, name: "content_type", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 7, name: "thumbnail", kind: "message", T: Image }, { no: 8, name: "image_preview", kind: "message", T: Image }, { no: 9, name: "original_filename", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 10, name: "file_size", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 11, name: "public", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, { no: 12, name: "pages", kind: "message", T: Page, repeated: true }, { no: 13, name: "file_is_corrupt", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, { no: 15, name: "viewer_supported", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, { no: 16, name: "viewer_ready", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, { no: 17, name: "thumbnail_supported", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, { no: 18, name: "thumb_gen_failed", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, { no: 19, name: "preview_gen_failed", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, { no: 20, name: "viewer_gen_failed", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, { no: 21, name: "gen_attempt_count", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, { no: 22, name: "calculating_pages", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, { no: 23, name: "bucket_name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 24, name: "thumbnail_bucket_name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 25, name: "bleed_applied", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): Media { return new Media().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): Media { return new Media().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): Media { return new Media().fromJsonString(jsonString, options); } static equals(a: Media | PlainMessage | undefined, b: Media | PlainMessage | undefined): boolean { return proto3.util.equals(Media, a, b); } } /** * @generated from message media.v1.Page */ export class Page 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: int32 page = 4; */ page = 0; /** * @generated from field: string thumb_url = 5; */ thumbUrl = ""; /** * @generated from field: string preview_url = 6; */ previewUrl = ""; /** * @generated from field: media.v1.PagePreview page_preview = 7; */ pagePreview?: PagePreview; /** * repeated Thread threads = 8; * * @generated from field: bool thumb_gen_failed = 9; */ thumbGenFailed = false; /** * @generated from field: bool preview_gen_failed = 10; */ previewGenFailed = false; /** * @generated from field: bool viewer_gen_failed = 11; */ viewerGenFailed = false; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "media.v1.Page"; 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: "page", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, { no: 5, name: "thumb_url", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 6, name: "preview_url", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 7, name: "page_preview", kind: "message", T: PagePreview }, { no: 9, name: "thumb_gen_failed", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, { no: 10, name: "preview_gen_failed", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, { no: 11, name: "viewer_gen_failed", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): Page { return new Page().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): Page { return new Page().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): Page { return new Page().fromJsonString(jsonString, options); } static equals(a: Page | PlainMessage | undefined, b: Page | PlainMessage | undefined): boolean { return proto3.util.equals(Page, a, b); } } /** * @generated from message media.v1.PagePreview */ export class PagePreview 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: int64 page_id = 4; */ pageId = protoInt64.zero; /** * @generated from field: int32 page = 5; */ page = 0; /** * @generated from field: media.v1.Box size = 6; */ size?: Box; /** * @generated from field: media.v1.Box canvas = 7; */ canvas?: Box; /** * @generated from field: media.v1.Boxes boxes = 8; */ boxes?: Boxes; /** * @generated from field: string dz_folder = 9; */ dzFolder = ""; /** * @generated from field: string dz_config_dzi_name = 10; */ dzConfigDziName = ""; /** * @generated from field: string thumb_filename = 11; */ thumbFilename = ""; /** * @generated from field: string preview_filename = 12; */ previewFilename = ""; /** * @generated from field: double scale_factor = 13; */ scaleFactor = 0; /** * @generated from field: repeated media.v1.PagePreview.MediaError errors = 14; */ errors: PagePreview_MediaError[] = []; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "media.v1.PagePreview"; 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: "page_id", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, { no: 5, name: "page", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, { no: 6, name: "size", kind: "message", T: Box }, { no: 7, name: "canvas", kind: "message", T: Box }, { no: 8, name: "boxes", kind: "message", T: Boxes }, { no: 9, name: "dz_folder", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 10, name: "dz_config_dzi_name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 11, name: "thumb_filename", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 12, name: "preview_filename", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 13, name: "scale_factor", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ }, { no: 14, name: "errors", kind: "message", T: PagePreview_MediaError, repeated: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): PagePreview { return new PagePreview().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): PagePreview { return new PagePreview().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): PagePreview { return new PagePreview().fromJsonString(jsonString, options); } static equals(a: PagePreview | PlainMessage | undefined, b: PagePreview | PlainMessage | undefined): boolean { return proto3.util.equals(PagePreview, a, b); } } /** * @generated from message media.v1.PagePreview.MediaError */ export class PagePreview_MediaError 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: int64 page_preview_id = 4; */ pagePreviewId = protoInt64.zero; /** * @generated from field: string ref = 5; */ ref = ""; /** * @generated from field: string build_type = 6; */ buildType = ""; /** * @generated from field: int32 page = 7; */ page = 0; /** * @generated from field: string process_name = 8; */ processName = ""; /** * @generated from field: string error_val = 9; */ errorVal = ""; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "media.v1.PagePreview.MediaError"; 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: "page_preview_id", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, { no: 5, name: "ref", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 6, name: "build_type", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 7, name: "page", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, { no: 8, name: "process_name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 9, name: "error_val", kind: "scalar", T: 9 /* ScalarType.STRING */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): PagePreview_MediaError { return new PagePreview_MediaError().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): PagePreview_MediaError { return new PagePreview_MediaError().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): PagePreview_MediaError { return new PagePreview_MediaError().fromJsonString(jsonString, options); } static equals(a: PagePreview_MediaError | PlainMessage | undefined, b: PagePreview_MediaError | PlainMessage | undefined): boolean { return proto3.util.equals(PagePreview_MediaError, a, b); } } /** * @generated from message media.v1.PageSize */ export class PageSize extends Message { /** * @generated from field: double width = 1; */ width = 0; /** * @generated from field: double height = 2; */ height = 0; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "media.v1.PageSize"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "width", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ }, { no: 2, name: "height", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): PageSize { return new PageSize().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): PageSize { return new PageSize().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): PageSize { return new PageSize().fromJsonString(jsonString, options); } static equals(a: PageSize | PlainMessage | undefined, b: PageSize | PlainMessage | undefined): boolean { return proto3.util.equals(PageSize, a, b); } } /** * @generated from message media.v1.Box */ export class Box extends Message { /** * @generated from field: double x = 1; */ x = 0; /** * @generated from field: double y = 2; */ y = 0; /** * @generated from field: double height = 3; */ height = 0; /** * @generated from field: double width = 4; */ width = 0; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "media.v1.Box"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "x", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ }, { no: 2, name: "y", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ }, { no: 3, name: "height", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ }, { no: 4, name: "width", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): Box { return new Box().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): Box { return new Box().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): Box { return new Box().fromJsonString(jsonString, options); } static equals(a: Box | PlainMessage | undefined, b: Box | PlainMessage | undefined): boolean { return proto3.util.equals(Box, a, b); } } /** * @generated from message media.v1.Boxes */ export class Boxes extends Message { /** * @generated from field: media.v1.Box media_box = 1; */ mediaBox?: Box; /** * @generated from field: media.v1.Box crop_box = 2; */ cropBox?: Box; /** * @generated from field: media.v1.Box bleed_box = 3; */ bleedBox?: Box; /** * @generated from field: media.v1.Box trim_box = 4; */ trimBox?: Box; /** * @generated from field: media.v1.Box art_box = 5; */ artBox?: Box; /** * @generated from field: media.v1.Box safety_zone_box = 6; */ safetyZoneBox?: Box; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "media.v1.Boxes"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "media_box", kind: "message", T: Box }, { no: 2, name: "crop_box", kind: "message", T: Box }, { no: 3, name: "bleed_box", kind: "message", T: Box }, { no: 4, name: "trim_box", kind: "message", T: Box }, { no: 5, name: "art_box", kind: "message", T: Box }, { no: 6, name: "safety_zone_box", kind: "message", T: Box }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): Boxes { return new Boxes().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): Boxes { return new Boxes().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): Boxes { return new Boxes().fromJsonString(jsonString, options); } static equals(a: Boxes | PlainMessage | undefined, b: Boxes | PlainMessage | undefined): boolean { return proto3.util.equals(Boxes, a, b); } } /** * @generated from message media.v1.Image */ export class Image extends Message { /** * @generated from field: int64 id = 1; */ id = protoInt64.zero; /** * @generated from field: string url = 2; */ url = ""; /** * @generated from field: string filename = 3; */ filename = ""; /** * @generated from field: string content_type = 4; */ contentType = ""; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "media.v1.Image"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "id", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, { no: 2, name: "url", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 3, name: "filename", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 4, name: "content_type", kind: "scalar", T: 9 /* ScalarType.STRING */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): Image { return new Image().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): Image { return new Image().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): Image { return new Image().fromJsonString(jsonString, options); } static equals(a: Image | PlainMessage | undefined, b: Image | PlainMessage | undefined): boolean { return proto3.util.equals(Image, a, b); } } /** * @generated from message media.v1.GetUploadUrlRequest */ export class GetUploadUrlRequest extends Message { /** * @generated from field: string id = 1; */ id = ""; /** * @generated from field: string upload_type = 2; */ uploadType = ""; /** * @generated from field: string content_type = 3; */ contentType = ""; /** * @generated from field: string file_ext = 4; */ fileExt = ""; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "media.v1.GetUploadUrlRequest"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 2, name: "upload_type", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 3, name: "content_type", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 4, name: "file_ext", kind: "scalar", T: 9 /* ScalarType.STRING */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): GetUploadUrlRequest { return new GetUploadUrlRequest().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): GetUploadUrlRequest { return new GetUploadUrlRequest().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): GetUploadUrlRequest { return new GetUploadUrlRequest().fromJsonString(jsonString, options); } static equals(a: GetUploadUrlRequest | PlainMessage | undefined, b: GetUploadUrlRequest | PlainMessage | undefined): boolean { return proto3.util.equals(GetUploadUrlRequest, a, b); } } /** * @generated from message media.v1.GetUploadUrlResponse */ export class GetUploadUrlResponse extends Message { /** * @generated from field: string url = 1; */ url = ""; /** * @generated from field: string object_name = 2; */ objectName = ""; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "media.v1.GetUploadUrlResponse"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "url", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 2, name: "object_name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): GetUploadUrlResponse { return new GetUploadUrlResponse().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): GetUploadUrlResponse { return new GetUploadUrlResponse().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): GetUploadUrlResponse { return new GetUploadUrlResponse().fromJsonString(jsonString, options); } static equals(a: GetUploadUrlResponse | PlainMessage | undefined, b: GetUploadUrlResponse | PlainMessage | undefined): boolean { return proto3.util.equals(GetUploadUrlResponse, a, b); } } /** * @generated from message media.v1.CreateMediaItemRequest */ export class CreateMediaItemRequest extends Message { /** * @generated from field: string filename = 1; */ filename = ""; /** * @generated from field: string content_type = 2; */ contentType = ""; /** * @generated from field: string original_filename = 3; */ originalFilename = ""; /** * @generated from field: string file_size = 4; */ fileSize = ""; /** * @generated from field: bool public = 5; */ public = false; /** * @generated from field: int64 artworker_id = 6; */ artworkerId = protoInt64.zero; /** * @generated from field: media.v1.CreateMediaItemRequest.PreviewConfig preview_config = 7; */ previewConfig?: CreateMediaItemRequest_PreviewConfig; /** * @generated from field: media.v1.CreateMediaItemRequest.ImgGenOpts img_gen_opts = 8; */ imgGenOpts?: CreateMediaItemRequest_ImgGenOpts; /** * @generated from field: string bucket_name = 9; */ bucketName = ""; /** * @generated from field: string thumbnail_bucket_name = 10; */ thumbnailBucketName = ""; /** * @generated from field: bool bleed_applied = 11; */ bleedApplied = false; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "media.v1.CreateMediaItemRequest"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "filename", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 2, name: "content_type", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 3, name: "original_filename", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 4, name: "file_size", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 5, name: "public", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, { no: 6, name: "artworker_id", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, { no: 7, name: "preview_config", kind: "message", T: CreateMediaItemRequest_PreviewConfig }, { no: 8, name: "img_gen_opts", kind: "message", T: CreateMediaItemRequest_ImgGenOpts }, { no: 9, name: "bucket_name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 10, name: "thumbnail_bucket_name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 11, name: "bleed_applied", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): CreateMediaItemRequest { return new CreateMediaItemRequest().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): CreateMediaItemRequest { return new CreateMediaItemRequest().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): CreateMediaItemRequest { return new CreateMediaItemRequest().fromJsonString(jsonString, options); } static equals(a: CreateMediaItemRequest | PlainMessage | undefined, b: CreateMediaItemRequest | PlainMessage | undefined): boolean { return proto3.util.equals(CreateMediaItemRequest, a, b); } } /** * @generated from message media.v1.CreateMediaItemRequest.PreviewConfig */ export class CreateMediaItemRequest_PreviewConfig extends Message { /** * @generated from field: common.v1.MeasurementUnit measurement_unit = 1; */ measurementUnit = MeasurementUnit.UNKNOWN; /** * @generated from field: double height = 2; */ height = 0; /** * @generated from field: double width = 4; */ width = 0; /** * @generated from field: double bleed = 6; */ bleed = 0; /** * @generated from field: double safety_zone = 8; */ safetyZone = 0; /** * @generated from field: int32 image_res_recommended = 9; */ imageResRecommended = 0; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "media.v1.CreateMediaItemRequest.PreviewConfig"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "measurement_unit", kind: "enum", T: proto3.getEnumType(MeasurementUnit) }, { no: 2, name: "height", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ }, { no: 4, name: "width", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ }, { no: 6, name: "bleed", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ }, { no: 8, name: "safety_zone", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ }, { no: 9, name: "image_res_recommended", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): CreateMediaItemRequest_PreviewConfig { return new CreateMediaItemRequest_PreviewConfig().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): CreateMediaItemRequest_PreviewConfig { return new CreateMediaItemRequest_PreviewConfig().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): CreateMediaItemRequest_PreviewConfig { return new CreateMediaItemRequest_PreviewConfig().fromJsonString(jsonString, options); } static equals(a: CreateMediaItemRequest_PreviewConfig | PlainMessage | undefined, b: CreateMediaItemRequest_PreviewConfig | PlainMessage | undefined): boolean { return proto3.util.equals(CreateMediaItemRequest_PreviewConfig, a, b); } } /** * @generated from message media.v1.CreateMediaItemRequest.ImgGenOpts */ export class CreateMediaItemRequest_ImgGenOpts extends Message { /** * defaults to true * * @generated from field: bool build_thumbnails = 1; */ buildThumbnails = false; /** * defaults to true * * @generated from field: bool build_viewer = 2; */ buildViewer = false; /** * defaults to true * * @generated from field: bool calculate_boxes = 3; */ calculateBoxes = false; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "media.v1.CreateMediaItemRequest.ImgGenOpts"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "build_thumbnails", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, { no: 2, name: "build_viewer", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, { no: 3, name: "calculate_boxes", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): CreateMediaItemRequest_ImgGenOpts { return new CreateMediaItemRequest_ImgGenOpts().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): CreateMediaItemRequest_ImgGenOpts { return new CreateMediaItemRequest_ImgGenOpts().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): CreateMediaItemRequest_ImgGenOpts { return new CreateMediaItemRequest_ImgGenOpts().fromJsonString(jsonString, options); } static equals(a: CreateMediaItemRequest_ImgGenOpts | PlainMessage | undefined, b: CreateMediaItemRequest_ImgGenOpts | PlainMessage | undefined): boolean { return proto3.util.equals(CreateMediaItemRequest_ImgGenOpts, a, b); } } /** * @generated from message media.v1.CreateMediaItemResponse */ export class CreateMediaItemResponse extends Message { /** * @generated from field: media.v1.Media media_item = 1; */ mediaItem?: Media; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "media.v1.CreateMediaItemResponse"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "media_item", kind: "message", T: Media }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): CreateMediaItemResponse { return new CreateMediaItemResponse().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): CreateMediaItemResponse { return new CreateMediaItemResponse().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): CreateMediaItemResponse { return new CreateMediaItemResponse().fromJsonString(jsonString, options); } static equals(a: CreateMediaItemResponse | PlainMessage | undefined, b: CreateMediaItemResponse | PlainMessage | undefined): boolean { return proto3.util.equals(CreateMediaItemResponse, a, b); } } /** * @generated from message media.v1.UpdateMediaItemRequest */ export class UpdateMediaItemRequest extends Message { /** * @generated from field: int64 id = 1; */ id = protoInt64.zero; /** * @generated from field: media.v1.Media media_item = 2; */ mediaItem?: Media; /** * @generated from field: int64 artworker_id = 3; */ artworkerId = protoInt64.zero; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "media.v1.UpdateMediaItemRequest"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "id", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, { no: 2, name: "media_item", kind: "message", T: Media }, { no: 3, name: "artworker_id", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): UpdateMediaItemRequest { return new UpdateMediaItemRequest().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): UpdateMediaItemRequest { return new UpdateMediaItemRequest().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): UpdateMediaItemRequest { return new UpdateMediaItemRequest().fromJsonString(jsonString, options); } static equals(a: UpdateMediaItemRequest | PlainMessage | undefined, b: UpdateMediaItemRequest | PlainMessage | undefined): boolean { return proto3.util.equals(UpdateMediaItemRequest, a, b); } } /** * @generated from message media.v1.UpdateMediaItemResponse */ export class UpdateMediaItemResponse extends Message { /** * @generated from field: media.v1.Media media_item = 1; */ mediaItem?: Media; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "media.v1.UpdateMediaItemResponse"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "media_item", kind: "message", T: Media }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): UpdateMediaItemResponse { return new UpdateMediaItemResponse().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): UpdateMediaItemResponse { return new UpdateMediaItemResponse().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): UpdateMediaItemResponse { return new UpdateMediaItemResponse().fromJsonString(jsonString, options); } static equals(a: UpdateMediaItemResponse | PlainMessage | undefined, b: UpdateMediaItemResponse | PlainMessage | undefined): boolean { return proto3.util.equals(UpdateMediaItemResponse, a, b); } } /** * @generated from message media.v1.GetMediaItemByIDRequest */ export class GetMediaItemByIDRequest extends Message { /** * @generated from field: int64 id = 1; */ id = protoInt64.zero; /** * @generated from field: bool expand_pages = 2; */ expandPages = false; /** * bool expand_comments = 3; * * @generated from field: bool attempt_gen_if_not_exist = 4; */ attemptGenIfNotExist = false; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "media.v1.GetMediaItemByIDRequest"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "id", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, { no: 2, name: "expand_pages", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, { no: 4, name: "attempt_gen_if_not_exist", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): GetMediaItemByIDRequest { return new GetMediaItemByIDRequest().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): GetMediaItemByIDRequest { return new GetMediaItemByIDRequest().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): GetMediaItemByIDRequest { return new GetMediaItemByIDRequest().fromJsonString(jsonString, options); } static equals(a: GetMediaItemByIDRequest | PlainMessage | undefined, b: GetMediaItemByIDRequest | PlainMessage | undefined): boolean { return proto3.util.equals(GetMediaItemByIDRequest, a, b); } } /** * @generated from message media.v1.GetMediaItemByIDResponse */ export class GetMediaItemByIDResponse extends Message { /** * @generated from field: media.v1.Media media_item = 1; */ mediaItem?: Media; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "media.v1.GetMediaItemByIDResponse"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "media_item", kind: "message", T: Media }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): GetMediaItemByIDResponse { return new GetMediaItemByIDResponse().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): GetMediaItemByIDResponse { return new GetMediaItemByIDResponse().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): GetMediaItemByIDResponse { return new GetMediaItemByIDResponse().fromJsonString(jsonString, options); } static equals(a: GetMediaItemByIDResponse | PlainMessage | undefined, b: GetMediaItemByIDResponse | PlainMessage | undefined): boolean { return proto3.util.equals(GetMediaItemByIDResponse, a, b); } } /** * @generated from message media.v1.GetMediaItemsByIDsRequest */ export class GetMediaItemsByIDsRequest extends Message { /** * @generated from field: repeated int64 ids = 1; */ ids: bigint[] = []; /** * @generated from field: bool sign_urls = 2; */ signUrls = false; /** * @generated from field: bool expand_pages = 3; */ expandPages = false; /** * bool expand_comments = 4; * * @generated from field: bool attempt_gen_if_not_exist = 5; */ attemptGenIfNotExist = false; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "media.v1.GetMediaItemsByIDsRequest"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "ids", kind: "scalar", T: 3 /* ScalarType.INT64 */, repeated: true }, { no: 2, name: "sign_urls", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, { no: 3, name: "expand_pages", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, { no: 5, name: "attempt_gen_if_not_exist", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): GetMediaItemsByIDsRequest { return new GetMediaItemsByIDsRequest().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): GetMediaItemsByIDsRequest { return new GetMediaItemsByIDsRequest().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): GetMediaItemsByIDsRequest { return new GetMediaItemsByIDsRequest().fromJsonString(jsonString, options); } static equals(a: GetMediaItemsByIDsRequest | PlainMessage | undefined, b: GetMediaItemsByIDsRequest | PlainMessage | undefined): boolean { return proto3.util.equals(GetMediaItemsByIDsRequest, a, b); } } /** * @generated from message media.v1.GetMediaItemsByIDsResponse */ export class GetMediaItemsByIDsResponse extends Message { /** * @generated from field: repeated media.v1.Media media_items = 1; */ mediaItems: Media[] = []; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "media.v1.GetMediaItemsByIDsResponse"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "media_items", kind: "message", T: Media, repeated: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): GetMediaItemsByIDsResponse { return new GetMediaItemsByIDsResponse().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): GetMediaItemsByIDsResponse { return new GetMediaItemsByIDsResponse().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): GetMediaItemsByIDsResponse { return new GetMediaItemsByIDsResponse().fromJsonString(jsonString, options); } static equals(a: GetMediaItemsByIDsResponse | PlainMessage | undefined, b: GetMediaItemsByIDsResponse | PlainMessage | undefined): boolean { return proto3.util.equals(GetMediaItemsByIDsResponse, a, b); } } /** * @generated from message media.v1.Tester */ export class Tester extends Message { /** * @generated from field: string t = 1; */ t = ""; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "media.v1.Tester"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "t", kind: "scalar", T: 9 /* ScalarType.STRING */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): Tester { return new Tester().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): Tester { return new Tester().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): Tester { return new Tester().fromJsonString(jsonString, options); } static equals(a: Tester | PlainMessage | undefined, b: Tester | PlainMessage | undefined): boolean { return proto3.util.equals(Tester, a, b); } } /** * @generated from message media.v1.CheckEachMediaItemHasPagesRequest */ export class CheckEachMediaItemHasPagesRequest 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.CheckEachMediaItemHasPagesRequest"; 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): CheckEachMediaItemHasPagesRequest { return new CheckEachMediaItemHasPagesRequest().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): CheckEachMediaItemHasPagesRequest { return new CheckEachMediaItemHasPagesRequest().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): CheckEachMediaItemHasPagesRequest { return new CheckEachMediaItemHasPagesRequest().fromJsonString(jsonString, options); } static equals(a: CheckEachMediaItemHasPagesRequest | PlainMessage | undefined, b: CheckEachMediaItemHasPagesRequest | PlainMessage | undefined): boolean { return proto3.util.equals(CheckEachMediaItemHasPagesRequest, a, b); } } /** * @generated from message media.v1.CheckEachMediaItemHasPagesResponse */ export class CheckEachMediaItemHasPagesResponse extends Message { /** * @generated from field: bool each_media_item_has_pages = 1; */ eachMediaItemHasPages = false; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "media.v1.CheckEachMediaItemHasPagesResponse"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "each_media_item_has_pages", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): CheckEachMediaItemHasPagesResponse { return new CheckEachMediaItemHasPagesResponse().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): CheckEachMediaItemHasPagesResponse { return new CheckEachMediaItemHasPagesResponse().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): CheckEachMediaItemHasPagesResponse { return new CheckEachMediaItemHasPagesResponse().fromJsonString(jsonString, options); } static equals(a: CheckEachMediaItemHasPagesResponse | PlainMessage | undefined, b: CheckEachMediaItemHasPagesResponse | PlainMessage | undefined): boolean { return proto3.util.equals(CheckEachMediaItemHasPagesResponse, a, b); } } /** * @generated from message media.v1.PromoteCommentsToActiveRequest */ export class PromoteCommentsToActiveRequest extends Message { /** * @generated from field: repeated int64 mediaItemIds = 1; */ mediaItemIds: bigint[] = []; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "media.v1.PromoteCommentsToActiveRequest"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "mediaItemIds", kind: "scalar", T: 3 /* ScalarType.INT64 */, repeated: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): PromoteCommentsToActiveRequest { return new PromoteCommentsToActiveRequest().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): PromoteCommentsToActiveRequest { return new PromoteCommentsToActiveRequest().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): PromoteCommentsToActiveRequest { return new PromoteCommentsToActiveRequest().fromJsonString(jsonString, options); } static equals(a: PromoteCommentsToActiveRequest | PlainMessage | undefined, b: PromoteCommentsToActiveRequest | PlainMessage | undefined): boolean { return proto3.util.equals(PromoteCommentsToActiveRequest, a, b); } } /** * @generated from message media.v1.PromoteCommentsToActiveResponse */ export class PromoteCommentsToActiveResponse extends Message { constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "media.v1.PromoteCommentsToActiveResponse"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ ]); static fromBinary(bytes: Uint8Array, options?: Partial): PromoteCommentsToActiveResponse { return new PromoteCommentsToActiveResponse().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): PromoteCommentsToActiveResponse { return new PromoteCommentsToActiveResponse().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): PromoteCommentsToActiveResponse { return new PromoteCommentsToActiveResponse().fromJsonString(jsonString, options); } static equals(a: PromoteCommentsToActiveResponse | PlainMessage | undefined, b: PromoteCommentsToActiveResponse | PlainMessage | undefined): boolean { return proto3.util.equals(PromoteCommentsToActiveResponse, a, b); } } /** * @generated from message media.v1.RetryMediaGenRequest */ export class RetryMediaGenRequest extends Message { /** * @generated from field: int64 media_item_id = 1; */ mediaItemId = protoInt64.zero; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "media.v1.RetryMediaGenRequest"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "media_item_id", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): RetryMediaGenRequest { return new RetryMediaGenRequest().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): RetryMediaGenRequest { return new RetryMediaGenRequest().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): RetryMediaGenRequest { return new RetryMediaGenRequest().fromJsonString(jsonString, options); } static equals(a: RetryMediaGenRequest | PlainMessage | undefined, b: RetryMediaGenRequest | PlainMessage | undefined): boolean { return proto3.util.equals(RetryMediaGenRequest, a, b); } } /** * @generated from message media.v1.RetryMediaGenResponse */ export class RetryMediaGenResponse extends Message { /** * @generated from field: media.v1.Media media_item = 1; */ mediaItem?: Media; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "media.v1.RetryMediaGenResponse"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "media_item", kind: "message", T: Media }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): RetryMediaGenResponse { return new RetryMediaGenResponse().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): RetryMediaGenResponse { return new RetryMediaGenResponse().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): RetryMediaGenResponse { return new RetryMediaGenResponse().fromJsonString(jsonString, options); } static equals(a: RetryMediaGenResponse | PlainMessage | undefined, b: RetryMediaGenResponse | PlainMessage | undefined): boolean { return proto3.util.equals(RetryMediaGenResponse, a, b); } } /** * @generated from message media.v1.SetMediaItemsToProcessingRequest */ export class SetMediaItemsToProcessingRequest extends Message { /** * @generated from field: repeated int64 media_item_ids = 1; */ mediaItemIds: bigint[] = []; /** * @generated from field: string content_type = 2; */ contentType = ""; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "media.v1.SetMediaItemsToProcessingRequest"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "media_item_ids", kind: "scalar", T: 3 /* ScalarType.INT64 */, repeated: true }, { no: 2, name: "content_type", kind: "scalar", T: 9 /* ScalarType.STRING */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): SetMediaItemsToProcessingRequest { return new SetMediaItemsToProcessingRequest().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): SetMediaItemsToProcessingRequest { return new SetMediaItemsToProcessingRequest().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): SetMediaItemsToProcessingRequest { return new SetMediaItemsToProcessingRequest().fromJsonString(jsonString, options); } static equals(a: SetMediaItemsToProcessingRequest | PlainMessage | undefined, b: SetMediaItemsToProcessingRequest | PlainMessage | undefined): boolean { return proto3.util.equals(SetMediaItemsToProcessingRequest, a, b); } } /** * @generated from message media.v1.SetMediaItemsToProcessingResponse */ export class SetMediaItemsToProcessingResponse extends Message { constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "media.v1.SetMediaItemsToProcessingResponse"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ ]); static fromBinary(bytes: Uint8Array, options?: Partial): SetMediaItemsToProcessingResponse { return new SetMediaItemsToProcessingResponse().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): SetMediaItemsToProcessingResponse { return new SetMediaItemsToProcessingResponse().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): SetMediaItemsToProcessingResponse { return new SetMediaItemsToProcessingResponse().fromJsonString(jsonString, options); } static equals(a: SetMediaItemsToProcessingResponse | PlainMessage | undefined, b: SetMediaItemsToProcessingResponse | PlainMessage | undefined): boolean { return proto3.util.equals(SetMediaItemsToProcessingResponse, a, b); } } /** * @generated from message media.v1.GetFileTypeSupportRequest */ export class GetFileTypeSupportRequest extends Message { constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "media.v1.GetFileTypeSupportRequest"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ ]); static fromBinary(bytes: Uint8Array, options?: Partial): GetFileTypeSupportRequest { return new GetFileTypeSupportRequest().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): GetFileTypeSupportRequest { return new GetFileTypeSupportRequest().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): GetFileTypeSupportRequest { return new GetFileTypeSupportRequest().fromJsonString(jsonString, options); } static equals(a: GetFileTypeSupportRequest | PlainMessage | undefined, b: GetFileTypeSupportRequest | PlainMessage | undefined): boolean { return proto3.util.equals(GetFileTypeSupportRequest, a, b); } } /** * @generated from message media.v1.GetFileTypeSupportResponse */ export class GetFileTypeSupportResponse extends Message { /** * @generated from field: map content_type_support_map = 1; */ contentTypeSupportMap: { [key: string]: GetFileTypeSupportResponse_ContentTypeSupport } = {}; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "media.v1.GetFileTypeSupportResponse"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "content_type_support_map", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "message", T: GetFileTypeSupportResponse_ContentTypeSupport} }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): GetFileTypeSupportResponse { return new GetFileTypeSupportResponse().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): GetFileTypeSupportResponse { return new GetFileTypeSupportResponse().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): GetFileTypeSupportResponse { return new GetFileTypeSupportResponse().fromJsonString(jsonString, options); } static equals(a: GetFileTypeSupportResponse | PlainMessage | undefined, b: GetFileTypeSupportResponse | PlainMessage | undefined): boolean { return proto3.util.equals(GetFileTypeSupportResponse, a, b); } } /** * @generated from message media.v1.GetFileTypeSupportResponse.ContentTypeSupport */ export class GetFileTypeSupportResponse_ContentTypeSupport extends Message { /** * @generated from field: bool viewer = 1; */ viewer = false; /** * @generated from field: bool thumbnail = 2; */ thumbnail = false; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "media.v1.GetFileTypeSupportResponse.ContentTypeSupport"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "viewer", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, { no: 2, name: "thumbnail", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): GetFileTypeSupportResponse_ContentTypeSupport { return new GetFileTypeSupportResponse_ContentTypeSupport().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): GetFileTypeSupportResponse_ContentTypeSupport { return new GetFileTypeSupportResponse_ContentTypeSupport().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): GetFileTypeSupportResponse_ContentTypeSupport { return new GetFileTypeSupportResponse_ContentTypeSupport().fromJsonString(jsonString, options); } static equals(a: GetFileTypeSupportResponse_ContentTypeSupport | PlainMessage | undefined, b: GetFileTypeSupportResponse_ContentTypeSupport | PlainMessage | undefined): boolean { return proto3.util.equals(GetFileTypeSupportResponse_ContentTypeSupport, a, b); } }