// @generated by protoc-gen-es v1.10.1 with parameter "target=ts" // @generated from file preflight/v2/preflight-batch.proto (package preflight.v2, 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 { AspectRatioCheckInput, AspectRatioCheckOutput, BleedCheckInput, BleedCheckOutput, BoxSizeCheckOutput, ColourCheckInput, ColourCheckOutput, FontsEmbeddedCheckInput, FontsEmbeddedCheckOutput, ImageResolutionCheckInput, ImageResolutionCheckOutput, OrientationCheckInput, OrientationCheckOutput, PageCountCheckInput, PageCountCheckOutput, PreflightMediaItem, ReportState, TrimSizeCheckInput, TrimSizeCheckOutput } from "./preflight_pb.js"; import { ObjectRef } from "../../common/v1/object-ref_pb.js"; /** * @generated from message preflight.v2.PreflightReport */ export class PreflightReport extends Message { /** * @generated from field: string object_id = 1; */ objectId = ""; /** * @generated from field: string object_type = 2; */ objectType = ""; /** * @generated from field: int64 artworker_id = 3; */ artworkerId = protoInt64.zero; /** * @generated from field: int64 task_execution_plan_id = 4; */ taskExecutionPlanId = protoInt64.zero; /** * @generated from field: int32 file_size = 5; */ fileSize = 0; /** * @generated from field: int32 page_count = 6; */ pageCount = 0; /** * @generated from field: repeated int64 encrypted_files_media_item_ids = 7; */ encryptedFilesMediaItemIds: bigint[] = []; /** * @generated from field: preflight.v2.BatchDocumentCheck report = 8; */ report?: BatchDocumentCheck; /** * @generated from field: preflight.v2.ReportState state = 9; */ state = ReportState.UNSPECIFIED; /** * @generated from field: int32 build_count = 10; */ buildCount = 0; /** * @generated from field: repeated preflight.v2.PreflightMediaItem media_items = 11; */ mediaItems: PreflightMediaItem[] = []; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "preflight.v2.PreflightReport"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "object_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 2, name: "object_type", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 3, name: "artworker_id", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, { no: 4, name: "task_execution_plan_id", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, { no: 5, name: "file_size", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, { no: 6, name: "page_count", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, { no: 7, name: "encrypted_files_media_item_ids", kind: "scalar", T: 3 /* ScalarType.INT64 */, repeated: true }, { no: 8, name: "report", kind: "message", T: BatchDocumentCheck }, { no: 9, name: "state", kind: "enum", T: proto3.getEnumType(ReportState) }, { no: 10, name: "build_count", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, { no: 11, name: "media_items", kind: "message", T: PreflightMediaItem, repeated: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): PreflightReport { return new PreflightReport().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): PreflightReport { return new PreflightReport().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): PreflightReport { return new PreflightReport().fromJsonString(jsonString, options); } static equals(a: PreflightReport | PlainMessage | undefined, b: PreflightReport | PlainMessage | undefined): boolean { return proto3.util.equals(PreflightReport, a, b); } } /** * @generated from message preflight.v2.GetPreflightReportRequest */ export class GetPreflightReportRequest extends Message { /** * @generated from field: common.v1.ObjectRef object_ref = 1; */ objectRef?: ObjectRef; /** * @generated from field: int64 artworker_id = 2; */ artworkerId = protoInt64.zero; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "preflight.v2.GetPreflightReportRequest"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "object_ref", kind: "message", T: ObjectRef }, { no: 2, name: "artworker_id", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): GetPreflightReportRequest { return new GetPreflightReportRequest().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): GetPreflightReportRequest { return new GetPreflightReportRequest().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): GetPreflightReportRequest { return new GetPreflightReportRequest().fromJsonString(jsonString, options); } static equals(a: GetPreflightReportRequest | PlainMessage | undefined, b: GetPreflightReportRequest | PlainMessage | undefined): boolean { return proto3.util.equals(GetPreflightReportRequest, a, b); } } /** * @generated from message preflight.v2.GetPreflightReportResponse */ export class GetPreflightReportResponse extends Message { /** * @generated from field: preflight.v2.PreflightReport report = 1; */ report?: PreflightReport; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "preflight.v2.GetPreflightReportResponse"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "report", kind: "message", T: PreflightReport }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): GetPreflightReportResponse { return new GetPreflightReportResponse().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): GetPreflightReportResponse { return new GetPreflightReportResponse().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): GetPreflightReportResponse { return new GetPreflightReportResponse().fromJsonString(jsonString, options); } static equals(a: GetPreflightReportResponse | PlainMessage | undefined, b: GetPreflightReportResponse | PlainMessage | undefined): boolean { return proto3.util.equals(GetPreflightReportResponse, a, b); } } /** * @generated from message preflight.v2.BatchDocumentCheck */ export class BatchDocumentCheck extends Message { /** * @generated from field: preflight.v2.BatchDocumentCheck.Checks checks = 1; */ checks?: BatchDocumentCheck_Checks; /** * @generated from field: string status = 2; */ status = ""; /** * @generated from field: optional preflight.v2.BatchFailures failures = 3; */ failures?: BatchFailures; /** * @generated from field: optional preflight.v2.BatchWarnings warnings = 4; */ warnings?: BatchWarnings; /** * @generated from field: optional string name = 5; */ name?: string; /** * @generated from field: int32 page_count = 6; */ pageCount = 0; /** * @generated from field: string error = 7; */ error = ""; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "preflight.v2.BatchDocumentCheck"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "checks", kind: "message", T: BatchDocumentCheck_Checks }, { no: 2, name: "status", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 3, name: "failures", kind: "message", T: BatchFailures, opt: true }, { no: 4, name: "warnings", kind: "message", T: BatchWarnings, opt: true }, { no: 5, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true }, { no: 6, name: "page_count", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, { no: 7, name: "error", kind: "scalar", T: 9 /* ScalarType.STRING */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): BatchDocumentCheck { return new BatchDocumentCheck().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): BatchDocumentCheck { return new BatchDocumentCheck().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): BatchDocumentCheck { return new BatchDocumentCheck().fromJsonString(jsonString, options); } static equals(a: BatchDocumentCheck | PlainMessage | undefined, b: BatchDocumentCheck | PlainMessage | undefined): boolean { return proto3.util.equals(BatchDocumentCheck, a, b); } } /** * @generated from message preflight.v2.BatchDocumentCheck.Checks */ export class BatchDocumentCheck_Checks extends Message { /** * @generated from field: preflight.v2.BatchColourChecks colours = 1; */ colours?: BatchColourChecks; /** * @generated from field: preflight.v2.BatchDimensionsChecks dimensions = 2; */ dimensions?: BatchDimensionsChecks; /** * @generated from field: preflight.v2.BatchFontChecks fonts = 3; */ fonts?: BatchFontChecks; /** * @generated from field: preflight.v2.BatchImageChecks images = 4; */ images?: BatchImageChecks; /** * @generated from field: preflight.v2.BatchDocumentChecks document = 5; */ document?: BatchDocumentChecks; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "preflight.v2.BatchDocumentCheck.Checks"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "colours", kind: "message", T: BatchColourChecks }, { no: 2, name: "dimensions", kind: "message", T: BatchDimensionsChecks }, { no: 3, name: "fonts", kind: "message", T: BatchFontChecks }, { no: 4, name: "images", kind: "message", T: BatchImageChecks }, { no: 5, name: "document", kind: "message", T: BatchDocumentChecks }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): BatchDocumentCheck_Checks { return new BatchDocumentCheck_Checks().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): BatchDocumentCheck_Checks { return new BatchDocumentCheck_Checks().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): BatchDocumentCheck_Checks { return new BatchDocumentCheck_Checks().fromJsonString(jsonString, options); } static equals(a: BatchDocumentCheck_Checks | PlainMessage | undefined, b: BatchDocumentCheck_Checks | PlainMessage | undefined): boolean { return proto3.util.equals(BatchDocumentCheck_Checks, a, b); } } /** * ----------------------------------------------------------------------- * Each group has explicit checks: no "map needed. * ----------------------------------------------------------------------- * * @generated from message preflight.v2.BatchDocumentChecks */ export class BatchDocumentChecks extends Message { /** * @generated from field: preflight.v2.BatchDocumentChecks.Checks checks = 1; */ checks?: BatchDocumentChecks_Checks; /** * @generated from field: string status = 2; */ status = ""; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "preflight.v2.BatchDocumentChecks"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "checks", kind: "message", T: BatchDocumentChecks_Checks }, { no: 2, name: "status", kind: "scalar", T: 9 /* ScalarType.STRING */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): BatchDocumentChecks { return new BatchDocumentChecks().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): BatchDocumentChecks { return new BatchDocumentChecks().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): BatchDocumentChecks { return new BatchDocumentChecks().fromJsonString(jsonString, options); } static equals(a: BatchDocumentChecks | PlainMessage | undefined, b: BatchDocumentChecks | PlainMessage | undefined): boolean { return proto3.util.equals(BatchDocumentChecks, a, b); } } /** * @generated from message preflight.v2.BatchDocumentChecks.Checks */ export class BatchDocumentChecks_Checks extends Message { /** * @generated from field: preflight.v2.BatchPageCountCheck document_page_count = 1; */ documentPageCount?: BatchPageCountCheck; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "preflight.v2.BatchDocumentChecks.Checks"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "document_page_count", kind: "message", T: BatchPageCountCheck }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): BatchDocumentChecks_Checks { return new BatchDocumentChecks_Checks().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): BatchDocumentChecks_Checks { return new BatchDocumentChecks_Checks().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): BatchDocumentChecks_Checks { return new BatchDocumentChecks_Checks().fromJsonString(jsonString, options); } static equals(a: BatchDocumentChecks_Checks | PlainMessage | undefined, b: BatchDocumentChecks_Checks | PlainMessage | undefined): boolean { return proto3.util.equals(BatchDocumentChecks_Checks, a, b); } } /** * @generated from message preflight.v2.BatchColourChecks */ export class BatchColourChecks extends Message { /** * @generated from field: preflight.v2.BatchColourChecks.Checks checks = 1; */ checks?: BatchColourChecks_Checks; /** * @generated from field: string status = 2; */ status = ""; /** * @generated from field: optional preflight.v2.BatchFailures failures = 3; */ failures?: BatchFailures; /** * @generated from field: optional preflight.v2.BatchWarnings warnings = 4; */ warnings?: BatchWarnings; /** * @generated from field: optional string name = 5; */ name?: string; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "preflight.v2.BatchColourChecks"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "checks", kind: "message", T: BatchColourChecks_Checks }, { no: 2, name: "status", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 3, name: "failures", kind: "message", T: BatchFailures, opt: true }, { no: 4, name: "warnings", kind: "message", T: BatchWarnings, opt: true }, { no: 5, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): BatchColourChecks { return new BatchColourChecks().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): BatchColourChecks { return new BatchColourChecks().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): BatchColourChecks { return new BatchColourChecks().fromJsonString(jsonString, options); } static equals(a: BatchColourChecks | PlainMessage | undefined, b: BatchColourChecks | PlainMessage | undefined): boolean { return proto3.util.equals(BatchColourChecks, a, b); } } /** * The single "checkColours" as a specialized message: * * @generated from message preflight.v2.BatchColourChecks.Checks */ export class BatchColourChecks_Checks extends Message { /** * @generated from field: preflight.v2.BatchColourCheck check_colours = 1; */ checkColours?: BatchColourCheck; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "preflight.v2.BatchColourChecks.Checks"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "check_colours", kind: "message", T: BatchColourCheck }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): BatchColourChecks_Checks { return new BatchColourChecks_Checks().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): BatchColourChecks_Checks { return new BatchColourChecks_Checks().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): BatchColourChecks_Checks { return new BatchColourChecks_Checks().fromJsonString(jsonString, options); } static equals(a: BatchColourChecks_Checks | PlainMessage | undefined, b: BatchColourChecks_Checks | PlainMessage | undefined): boolean { return proto3.util.equals(BatchColourChecks_Checks, a, b); } } /** * @generated from message preflight.v2.BatchDimensionsChecks */ export class BatchDimensionsChecks extends Message { /** * @generated from field: preflight.v2.BatchDimensionsChecks.Checks checks = 1; */ checks?: BatchDimensionsChecks_Checks; /** * @generated from field: string status = 2; */ status = ""; /** * @generated from field: optional preflight.v2.BatchFailures failures = 3; */ failures?: BatchFailures; /** * @generated from field: optional preflight.v2.BatchWarnings warnings = 4; */ warnings?: BatchWarnings; /** * @generated from field: optional string name = 5; */ name?: string; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "preflight.v2.BatchDimensionsChecks"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "checks", kind: "message", T: BatchDimensionsChecks_Checks }, { no: 2, name: "status", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 3, name: "failures", kind: "message", T: BatchFailures, opt: true }, { no: 4, name: "warnings", kind: "message", T: BatchWarnings, opt: true }, { no: 5, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): BatchDimensionsChecks { return new BatchDimensionsChecks().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): BatchDimensionsChecks { return new BatchDimensionsChecks().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): BatchDimensionsChecks { return new BatchDimensionsChecks().fromJsonString(jsonString, options); } static equals(a: BatchDimensionsChecks | PlainMessage | undefined, b: BatchDimensionsChecks | PlainMessage | undefined): boolean { return proto3.util.equals(BatchDimensionsChecks, a, b); } } /** * @generated from message preflight.v2.BatchDimensionsChecks.Checks */ export class BatchDimensionsChecks_Checks extends Message { /** * @generated from field: preflight.v2.BatchAspectRatioCheck aspect_ratio = 1; */ aspectRatio?: BatchAspectRatioCheck; /** * @generated from field: preflight.v2.BatchBleedCheck bleed = 2; */ bleed?: BatchBleedCheck; /** * @generated from field: preflight.v2.BatchOrientationCheck orientation = 3; */ orientation?: BatchOrientationCheck; /** * @generated from field: preflight.v2.BatchTrimSizeCheck trim_size = 4; */ trimSize?: BatchTrimSizeCheck; /** * @generated from field: preflight.v2.BatchBoxSizeCheck media_box_size = 5; */ mediaBoxSize?: BatchBoxSizeCheck; /** * @generated from field: preflight.v2.BatchBoxSizeCheck bleed_box_size = 6; */ bleedBoxSize?: BatchBoxSizeCheck; /** * @generated from field: preflight.v2.BatchBoxSizeCheck art_box_size = 7; */ artBoxSize?: BatchBoxSizeCheck; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "preflight.v2.BatchDimensionsChecks.Checks"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "aspect_ratio", kind: "message", T: BatchAspectRatioCheck }, { no: 2, name: "bleed", kind: "message", T: BatchBleedCheck }, { no: 3, name: "orientation", kind: "message", T: BatchOrientationCheck }, { no: 4, name: "trim_size", kind: "message", T: BatchTrimSizeCheck }, { no: 5, name: "media_box_size", kind: "message", T: BatchBoxSizeCheck }, { no: 6, name: "bleed_box_size", kind: "message", T: BatchBoxSizeCheck }, { no: 7, name: "art_box_size", kind: "message", T: BatchBoxSizeCheck }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): BatchDimensionsChecks_Checks { return new BatchDimensionsChecks_Checks().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): BatchDimensionsChecks_Checks { return new BatchDimensionsChecks_Checks().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): BatchDimensionsChecks_Checks { return new BatchDimensionsChecks_Checks().fromJsonString(jsonString, options); } static equals(a: BatchDimensionsChecks_Checks | PlainMessage | undefined, b: BatchDimensionsChecks_Checks | PlainMessage | undefined): boolean { return proto3.util.equals(BatchDimensionsChecks_Checks, a, b); } } /** * @generated from message preflight.v2.BatchFontChecks */ export class BatchFontChecks extends Message { /** * @generated from field: preflight.v2.BatchFontChecks.Checks checks = 1; */ checks?: BatchFontChecks_Checks; /** * @generated from field: string status = 2; */ status = ""; /** * @generated from field: optional preflight.v2.BatchFailures failures = 3; */ failures?: BatchFailures; /** * @generated from field: optional preflight.v2.BatchWarnings warnings = 4; */ warnings?: BatchWarnings; /** * @generated from field: optional string name = 5; */ name?: string; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "preflight.v2.BatchFontChecks"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "checks", kind: "message", T: BatchFontChecks_Checks }, { no: 2, name: "status", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 3, name: "failures", kind: "message", T: BatchFailures, opt: true }, { no: 4, name: "warnings", kind: "message", T: BatchWarnings, opt: true }, { no: 5, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): BatchFontChecks { return new BatchFontChecks().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): BatchFontChecks { return new BatchFontChecks().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): BatchFontChecks { return new BatchFontChecks().fromJsonString(jsonString, options); } static equals(a: BatchFontChecks | PlainMessage | undefined, b: BatchFontChecks | PlainMessage | undefined): boolean { return proto3.util.equals(BatchFontChecks, a, b); } } /** * @generated from message preflight.v2.BatchFontChecks.Checks */ export class BatchFontChecks_Checks extends Message { /** * @generated from field: preflight.v2.BatchFontsEmbeddedCheck fonts_embedded = 1; */ fontsEmbedded?: BatchFontsEmbeddedCheck; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "preflight.v2.BatchFontChecks.Checks"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "fonts_embedded", kind: "message", T: BatchFontsEmbeddedCheck }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): BatchFontChecks_Checks { return new BatchFontChecks_Checks().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): BatchFontChecks_Checks { return new BatchFontChecks_Checks().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): BatchFontChecks_Checks { return new BatchFontChecks_Checks().fromJsonString(jsonString, options); } static equals(a: BatchFontChecks_Checks | PlainMessage | undefined, b: BatchFontChecks_Checks | PlainMessage | undefined): boolean { return proto3.util.equals(BatchFontChecks_Checks, a, b); } } /** * @generated from message preflight.v2.BatchImageChecks */ export class BatchImageChecks extends Message { /** * @generated from field: preflight.v2.BatchImageChecks.Checks checks = 1; */ checks?: BatchImageChecks_Checks; /** * @generated from field: string status = 2; */ status = ""; /** * @generated from field: optional preflight.v2.BatchFailures failures = 3; */ failures?: BatchFailures; /** * @generated from field: optional preflight.v2.BatchWarnings warnings = 4; */ warnings?: BatchWarnings; /** * @generated from field: optional string name = 5; */ name?: string; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "preflight.v2.BatchImageChecks"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "checks", kind: "message", T: BatchImageChecks_Checks }, { no: 2, name: "status", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 3, name: "failures", kind: "message", T: BatchFailures, opt: true }, { no: 4, name: "warnings", kind: "message", T: BatchWarnings, opt: true }, { no: 5, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): BatchImageChecks { return new BatchImageChecks().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): BatchImageChecks { return new BatchImageChecks().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): BatchImageChecks { return new BatchImageChecks().fromJsonString(jsonString, options); } static equals(a: BatchImageChecks | PlainMessage | undefined, b: BatchImageChecks | PlainMessage | undefined): boolean { return proto3.util.equals(BatchImageChecks, a, b); } } /** * @generated from message preflight.v2.BatchImageChecks.Checks */ export class BatchImageChecks_Checks extends Message { /** * @generated from field: preflight.v2.BatchImageResolutionCheck image_resolution = 1; */ imageResolution?: BatchImageResolutionCheck; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "preflight.v2.BatchImageChecks.Checks"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "image_resolution", kind: "message", T: BatchImageResolutionCheck }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): BatchImageChecks_Checks { return new BatchImageChecks_Checks().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): BatchImageChecks_Checks { return new BatchImageChecks_Checks().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): BatchImageChecks_Checks { return new BatchImageChecks_Checks().fromJsonString(jsonString, options); } static equals(a: BatchImageChecks_Checks | PlainMessage | undefined, b: BatchImageChecks_Checks | PlainMessage | undefined): boolean { return proto3.util.equals(BatchImageChecks_Checks, a, b); } } /** * @generated from message preflight.v2.BatchPageCountCheck */ export class BatchPageCountCheck extends Message { /** * @generated from field: bool check_enabled = 1; */ checkEnabled = false; /** * @generated from field: preflight.v2.PageCountCheckInput input = 2; */ input?: PageCountCheckInput; /** * @generated from field: string key = 3; */ key = ""; /** * @generated from field: string name = 4; */ name = ""; /** * @generated from field: preflight.v2.PageCountCheckOutput output = 5; */ output?: PageCountCheckOutput; /** * @generated from field: string status = 6; */ status = ""; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "preflight.v2.BatchPageCountCheck"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "check_enabled", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, { no: 2, name: "input", kind: "message", T: PageCountCheckInput }, { no: 3, name: "key", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 4, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 5, name: "output", kind: "message", T: PageCountCheckOutput }, { no: 6, name: "status", kind: "scalar", T: 9 /* ScalarType.STRING */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): BatchPageCountCheck { return new BatchPageCountCheck().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): BatchPageCountCheck { return new BatchPageCountCheck().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): BatchPageCountCheck { return new BatchPageCountCheck().fromJsonString(jsonString, options); } static equals(a: BatchPageCountCheck | PlainMessage | undefined, b: BatchPageCountCheck | PlainMessage | undefined): boolean { return proto3.util.equals(BatchPageCountCheck, a, b); } } /** * @generated from message preflight.v2.BatchColourCheck */ export class BatchColourCheck extends Message { /** * @generated from field: bool check_enabled = 1; */ checkEnabled = false; /** * @generated from field: preflight.v2.ColourCheckInput input = 2; */ input?: ColourCheckInput; /** * @generated from field: string key = 3; */ key = ""; /** * @generated from field: string name = 4; */ name = ""; /** * @generated from field: preflight.v2.ColourCheckOutput output = 5; */ output?: ColourCheckOutput; /** * @generated from field: string status = 6; */ status = ""; /** * @generated from field: string summary = 7; */ summary = ""; /** * @generated from field: optional preflight.v2.BatchFailures failures = 8; */ failures?: BatchFailures; /** * @generated from field: optional preflight.v2.BatchWarnings warnings = 9; */ warnings?: BatchWarnings; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "preflight.v2.BatchColourCheck"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "check_enabled", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, { no: 2, name: "input", kind: "message", T: ColourCheckInput }, { no: 3, name: "key", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 4, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 5, name: "output", kind: "message", T: ColourCheckOutput }, { no: 6, name: "status", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 7, name: "summary", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 8, name: "failures", kind: "message", T: BatchFailures, opt: true }, { no: 9, name: "warnings", kind: "message", T: BatchWarnings, opt: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): BatchColourCheck { return new BatchColourCheck().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): BatchColourCheck { return new BatchColourCheck().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): BatchColourCheck { return new BatchColourCheck().fromJsonString(jsonString, options); } static equals(a: BatchColourCheck | PlainMessage | undefined, b: BatchColourCheck | PlainMessage | undefined): boolean { return proto3.util.equals(BatchColourCheck, a, b); } } /** * @generated from message preflight.v2.BatchAspectRatioCheck */ export class BatchAspectRatioCheck extends Message { /** * @generated from field: bool check_enabled = 1; */ checkEnabled = false; /** * @generated from field: preflight.v2.AspectRatioCheckInput input = 2; */ input?: AspectRatioCheckInput; /** * @generated from field: string key = 3; */ key = ""; /** * @generated from field: string name = 4; */ name = ""; /** * @generated from field: preflight.v2.AspectRatioCheckOutput output = 5; */ output?: AspectRatioCheckOutput; /** * @generated from field: string status = 6; */ status = ""; /** * @generated from field: string summary = 7; */ summary = ""; /** * @generated from field: optional preflight.v2.BatchFailures failures = 8; */ failures?: BatchFailures; /** * @generated from field: optional preflight.v2.BatchWarnings warnings = 9; */ warnings?: BatchWarnings; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "preflight.v2.BatchAspectRatioCheck"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "check_enabled", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, { no: 2, name: "input", kind: "message", T: AspectRatioCheckInput }, { no: 3, name: "key", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 4, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 5, name: "output", kind: "message", T: AspectRatioCheckOutput }, { no: 6, name: "status", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 7, name: "summary", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 8, name: "failures", kind: "message", T: BatchFailures, opt: true }, { no: 9, name: "warnings", kind: "message", T: BatchWarnings, opt: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): BatchAspectRatioCheck { return new BatchAspectRatioCheck().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): BatchAspectRatioCheck { return new BatchAspectRatioCheck().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): BatchAspectRatioCheck { return new BatchAspectRatioCheck().fromJsonString(jsonString, options); } static equals(a: BatchAspectRatioCheck | PlainMessage | undefined, b: BatchAspectRatioCheck | PlainMessage | undefined): boolean { return proto3.util.equals(BatchAspectRatioCheck, a, b); } } /** * @generated from message preflight.v2.BatchBleedCheck */ export class BatchBleedCheck extends Message { /** * @generated from field: bool check_enabled = 1; */ checkEnabled = false; /** * @generated from field: preflight.v2.BleedCheckInput input = 2; */ input?: BleedCheckInput; /** * @generated from field: string key = 3; */ key = ""; /** * @generated from field: string name = 4; */ name = ""; /** * @generated from field: preflight.v2.BleedCheckOutput output = 5; */ output?: BleedCheckOutput; /** * @generated from field: string status = 6; */ status = ""; /** * @generated from field: string summary = 7; */ summary = ""; /** * @generated from field: optional preflight.v2.BatchFailures failures = 8; */ failures?: BatchFailures; /** * @generated from field: optional preflight.v2.BatchWarnings warnings = 9; */ warnings?: BatchWarnings; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "preflight.v2.BatchBleedCheck"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "check_enabled", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, { no: 2, name: "input", kind: "message", T: BleedCheckInput }, { no: 3, name: "key", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 4, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 5, name: "output", kind: "message", T: BleedCheckOutput }, { no: 6, name: "status", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 7, name: "summary", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 8, name: "failures", kind: "message", T: BatchFailures, opt: true }, { no: 9, name: "warnings", kind: "message", T: BatchWarnings, opt: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): BatchBleedCheck { return new BatchBleedCheck().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): BatchBleedCheck { return new BatchBleedCheck().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): BatchBleedCheck { return new BatchBleedCheck().fromJsonString(jsonString, options); } static equals(a: BatchBleedCheck | PlainMessage | undefined, b: BatchBleedCheck | PlainMessage | undefined): boolean { return proto3.util.equals(BatchBleedCheck, a, b); } } /** * @generated from message preflight.v2.BatchOrientationCheck */ export class BatchOrientationCheck extends Message { /** * @generated from field: bool check_enabled = 1; */ checkEnabled = false; /** * @generated from field: preflight.v2.OrientationCheckInput input = 2; */ input?: OrientationCheckInput; /** * @generated from field: string key = 3; */ key = ""; /** * @generated from field: string name = 4; */ name = ""; /** * @generated from field: preflight.v2.OrientationCheckOutput output = 5; */ output?: OrientationCheckOutput; /** * @generated from field: string status = 6; */ status = ""; /** * @generated from field: string summary = 7; */ summary = ""; /** * @generated from field: optional preflight.v2.BatchFailures failures = 8; */ failures?: BatchFailures; /** * @generated from field: optional preflight.v2.BatchWarnings warnings = 9; */ warnings?: BatchWarnings; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "preflight.v2.BatchOrientationCheck"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "check_enabled", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, { no: 2, name: "input", kind: "message", T: OrientationCheckInput }, { no: 3, name: "key", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 4, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 5, name: "output", kind: "message", T: OrientationCheckOutput }, { no: 6, name: "status", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 7, name: "summary", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 8, name: "failures", kind: "message", T: BatchFailures, opt: true }, { no: 9, name: "warnings", kind: "message", T: BatchWarnings, opt: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): BatchOrientationCheck { return new BatchOrientationCheck().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): BatchOrientationCheck { return new BatchOrientationCheck().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): BatchOrientationCheck { return new BatchOrientationCheck().fromJsonString(jsonString, options); } static equals(a: BatchOrientationCheck | PlainMessage | undefined, b: BatchOrientationCheck | PlainMessage | undefined): boolean { return proto3.util.equals(BatchOrientationCheck, a, b); } } /** * @generated from message preflight.v2.BatchTrimSizeCheck */ export class BatchTrimSizeCheck extends Message { /** * @generated from field: bool check_enabled = 1; */ checkEnabled = false; /** * @generated from field: preflight.v2.TrimSizeCheckInput input = 2; */ input?: TrimSizeCheckInput; /** * @generated from field: string key = 3; */ key = ""; /** * @generated from field: string name = 4; */ name = ""; /** * @generated from field: preflight.v2.TrimSizeCheckOutput output = 5; */ output?: TrimSizeCheckOutput; /** * @generated from field: string status = 6; */ status = ""; /** * @generated from field: string summary = 7; */ summary = ""; /** * @generated from field: optional preflight.v2.BatchFailures failures = 8; */ failures?: BatchFailures; /** * @generated from field: optional preflight.v2.BatchWarnings warnings = 9; */ warnings?: BatchWarnings; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "preflight.v2.BatchTrimSizeCheck"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "check_enabled", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, { no: 2, name: "input", kind: "message", T: TrimSizeCheckInput }, { no: 3, name: "key", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 4, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 5, name: "output", kind: "message", T: TrimSizeCheckOutput }, { no: 6, name: "status", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 7, name: "summary", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 8, name: "failures", kind: "message", T: BatchFailures, opt: true }, { no: 9, name: "warnings", kind: "message", T: BatchWarnings, opt: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): BatchTrimSizeCheck { return new BatchTrimSizeCheck().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): BatchTrimSizeCheck { return new BatchTrimSizeCheck().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): BatchTrimSizeCheck { return new BatchTrimSizeCheck().fromJsonString(jsonString, options); } static equals(a: BatchTrimSizeCheck | PlainMessage | undefined, b: BatchTrimSizeCheck | PlainMessage | undefined): boolean { return proto3.util.equals(BatchTrimSizeCheck, a, b); } } /** * @generated from message preflight.v2.BatchBoxSizeCheck */ export class BatchBoxSizeCheck extends Message { /** * @generated from field: bool check_enabled = 1; */ checkEnabled = false; /** * TrimSizeCheckInput input = 2; * * @generated from field: string key = 3; */ key = ""; /** * @generated from field: string name = 4; */ name = ""; /** * @generated from field: preflight.v2.BoxSizeCheckOutput output = 5; */ output?: BoxSizeCheckOutput; /** * @generated from field: string status = 6; */ status = ""; /** * @generated from field: string summary = 7; */ summary = ""; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "preflight.v2.BatchBoxSizeCheck"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "check_enabled", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, { no: 3, name: "key", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 4, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 5, name: "output", kind: "message", T: BoxSizeCheckOutput }, { no: 6, name: "status", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 7, name: "summary", kind: "scalar", T: 9 /* ScalarType.STRING */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): BatchBoxSizeCheck { return new BatchBoxSizeCheck().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): BatchBoxSizeCheck { return new BatchBoxSizeCheck().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): BatchBoxSizeCheck { return new BatchBoxSizeCheck().fromJsonString(jsonString, options); } static equals(a: BatchBoxSizeCheck | PlainMessage | undefined, b: BatchBoxSizeCheck | PlainMessage | undefined): boolean { return proto3.util.equals(BatchBoxSizeCheck, a, b); } } /** * @generated from message preflight.v2.BatchFontsEmbeddedCheck */ export class BatchFontsEmbeddedCheck extends Message { /** * @generated from field: bool check_enabled = 1; */ checkEnabled = false; /** * @generated from field: preflight.v2.FontsEmbeddedCheckInput input = 2; */ input?: FontsEmbeddedCheckInput; /** * @generated from field: string key = 3; */ key = ""; /** * @generated from field: string name = 4; */ name = ""; /** * @generated from field: preflight.v2.FontsEmbeddedCheckOutput output = 5; */ output?: FontsEmbeddedCheckOutput; /** * @generated from field: string status = 6; */ status = ""; /** * @generated from field: string summary = 7; */ summary = ""; /** * @generated from field: optional preflight.v2.BatchFailures failures = 8; */ failures?: BatchFailures; /** * @generated from field: optional preflight.v2.BatchWarnings warnings = 9; */ warnings?: BatchWarnings; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "preflight.v2.BatchFontsEmbeddedCheck"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "check_enabled", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, { no: 2, name: "input", kind: "message", T: FontsEmbeddedCheckInput }, { no: 3, name: "key", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 4, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 5, name: "output", kind: "message", T: FontsEmbeddedCheckOutput }, { no: 6, name: "status", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 7, name: "summary", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 8, name: "failures", kind: "message", T: BatchFailures, opt: true }, { no: 9, name: "warnings", kind: "message", T: BatchWarnings, opt: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): BatchFontsEmbeddedCheck { return new BatchFontsEmbeddedCheck().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): BatchFontsEmbeddedCheck { return new BatchFontsEmbeddedCheck().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): BatchFontsEmbeddedCheck { return new BatchFontsEmbeddedCheck().fromJsonString(jsonString, options); } static equals(a: BatchFontsEmbeddedCheck | PlainMessage | undefined, b: BatchFontsEmbeddedCheck | PlainMessage | undefined): boolean { return proto3.util.equals(BatchFontsEmbeddedCheck, a, b); } } /** * @generated from message preflight.v2.BatchImageResolutionCheck */ export class BatchImageResolutionCheck extends Message { /** * @generated from field: bool check_enabled = 1; */ checkEnabled = false; /** * @generated from field: preflight.v2.ImageResolutionCheckInput input = 2; */ input?: ImageResolutionCheckInput; /** * @generated from field: string key = 3; */ key = ""; /** * @generated from field: string name = 4; */ name = ""; /** * @generated from field: preflight.v2.ImageResolutionCheckOutput output = 5; */ output?: ImageResolutionCheckOutput; /** * @generated from field: string status = 6; */ status = ""; /** * @generated from field: string summary = 7; */ summary = ""; /** * @generated from field: optional preflight.v2.BatchFailures failures = 8; */ failures?: BatchFailures; /** * @generated from field: optional preflight.v2.BatchWarnings warnings = 9; */ warnings?: BatchWarnings; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "preflight.v2.BatchImageResolutionCheck"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "check_enabled", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, { no: 2, name: "input", kind: "message", T: ImageResolutionCheckInput }, { no: 3, name: "key", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 4, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 5, name: "output", kind: "message", T: ImageResolutionCheckOutput }, { no: 6, name: "status", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 7, name: "summary", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 8, name: "failures", kind: "message", T: BatchFailures, opt: true }, { no: 9, name: "warnings", kind: "message", T: BatchWarnings, opt: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): BatchImageResolutionCheck { return new BatchImageResolutionCheck().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): BatchImageResolutionCheck { return new BatchImageResolutionCheck().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): BatchImageResolutionCheck { return new BatchImageResolutionCheck().fromJsonString(jsonString, options); } static equals(a: BatchImageResolutionCheck | PlainMessage | undefined, b: BatchImageResolutionCheck | PlainMessage | undefined): boolean { return proto3.util.equals(BatchImageResolutionCheck, a, b); } } /** * AffectedFilesAndPages represents affected files and pages * * @generated from message preflight.v2.BatchAffectedFilesAndPages */ export class BatchAffectedFilesAndPages extends Message { /** * @generated from field: int32 file_num = 1; */ fileNum = 0; /** * @generated from field: int32 page_num = 2; */ pageNum = 0; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "preflight.v2.BatchAffectedFilesAndPages"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "file_num", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, { no: 2, name: "page_num", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): BatchAffectedFilesAndPages { return new BatchAffectedFilesAndPages().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): BatchAffectedFilesAndPages { return new BatchAffectedFilesAndPages().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): BatchAffectedFilesAndPages { return new BatchAffectedFilesAndPages().fromJsonString(jsonString, options); } static equals(a: BatchAffectedFilesAndPages | PlainMessage | undefined, b: BatchAffectedFilesAndPages | PlainMessage | undefined): boolean { return proto3.util.equals(BatchAffectedFilesAndPages, a, b); } } /** * @generated from message preflight.v2.BatchFailures */ export class BatchFailures extends Message { /** * @generated from field: repeated preflight.v2.BatchAffectedFilesAndPages affected_pages = 1; */ affectedPages: BatchAffectedFilesAndPages[] = []; /** * @generated from field: int32 count = 2; */ count = 0; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "preflight.v2.BatchFailures"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "affected_pages", kind: "message", T: BatchAffectedFilesAndPages, repeated: true }, { no: 2, name: "count", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): BatchFailures { return new BatchFailures().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): BatchFailures { return new BatchFailures().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): BatchFailures { return new BatchFailures().fromJsonString(jsonString, options); } static equals(a: BatchFailures | PlainMessage | undefined, b: BatchFailures | PlainMessage | undefined): boolean { return proto3.util.equals(BatchFailures, a, b); } } /** * @generated from message preflight.v2.BatchWarnings */ export class BatchWarnings extends Message { /** * @generated from field: repeated preflight.v2.BatchAffectedFilesAndPages affected_pages = 1; */ affectedPages: BatchAffectedFilesAndPages[] = []; /** * @generated from field: int32 count = 2; */ count = 0; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "preflight.v2.BatchWarnings"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "affected_pages", kind: "message", T: BatchAffectedFilesAndPages, repeated: true }, { no: 2, name: "count", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): BatchWarnings { return new BatchWarnings().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): BatchWarnings { return new BatchWarnings().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): BatchWarnings { return new BatchWarnings().fromJsonString(jsonString, options); } static equals(a: BatchWarnings | PlainMessage | undefined, b: BatchWarnings | PlainMessage | undefined): boolean { return proto3.util.equals(BatchWarnings, a, b); } }