// @generated by protoc-gen-es v1.10.1 with parameter "target=ts" // @generated from file preflight/v2/preflight.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 { ObjectRef } from "../../common/v1/object-ref_pb.js"; /** * @generated from enum preflight.v2.ReportState */ export enum ReportState { /** * It's good practice to have an unspecified or default value of 0 * * @generated from enum value: REPORT_STATE_UNSPECIFIED = 0; */ UNSPECIFIED = 0, /** * @generated from enum value: REPORT_STATE_COMPLETE = 1; */ COMPLETE = 1, /** * @generated from enum value: REPORT_STATE_PROCESSING = 2; */ PROCESSING = 2, /** * @generated from enum value: REPORT_STATE_FAILED = 3; */ FAILED = 3, } // Retrieve enum metadata with: proto3.getEnumType(ReportState) proto3.util.setEnumType(ReportState, "preflight.v2.ReportState", [ { no: 0, name: "REPORT_STATE_UNSPECIFIED" }, { no: 1, name: "REPORT_STATE_COMPLETE" }, { no: 2, name: "REPORT_STATE_PROCESSING" }, { no: 3, name: "REPORT_STATE_FAILED" }, ]); /** * @generated from message preflight.v2.PreflightFileReport */ export class PreflightFileReport 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 media_item_id = 4; */ mediaItemId = protoInt64.zero; /** * @generated from field: int64 task_execution_plan_id = 5; */ taskExecutionPlanId = protoInt64.zero; /** * @generated from field: int32 file_num = 6; */ fileNum = 0; /** * @generated from field: int32 file_size = 7; */ fileSize = 0; /** * @generated from field: preflight.v2.DocumentCheck report = 8; */ report?: DocumentCheck; /** * @generated from field: preflight.v2.ReportState state = 9; */ state = ReportState.UNSPECIFIED; /** * @generated from field: string error = 10; */ error = ""; /** * @generated from field: string error_code = 11; */ errorCode = ""; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "preflight.v2.PreflightFileReport"; 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: "media_item_id", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, { no: 5, name: "task_execution_plan_id", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, { no: 6, name: "file_num", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, { no: 7, name: "file_size", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, { no: 8, name: "report", kind: "message", T: DocumentCheck }, { no: 9, name: "state", kind: "enum", T: proto3.getEnumType(ReportState) }, { no: 10, name: "error", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 11, name: "error_code", kind: "scalar", T: 9 /* ScalarType.STRING */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): PreflightFileReport { return new PreflightFileReport().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): PreflightFileReport { return new PreflightFileReport().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): PreflightFileReport { return new PreflightFileReport().fromJsonString(jsonString, options); } static equals(a: PreflightFileReport | PlainMessage | undefined, b: PreflightFileReport | PlainMessage | undefined): boolean { return proto3.util.equals(PreflightFileReport, a, b); } } /** * @generated from message preflight.v2.PreflightPageReport */ export class PreflightPageReport 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 media_item_id = 4; */ mediaItemId = protoInt64.zero; /** * @generated from field: int64 task_execution_plan_id = 5; */ taskExecutionPlanId = protoInt64.zero; /** * @generated from field: int32 file_num = 6; */ fileNum = 0; /** * @generated from field: int32 page = 7; */ page = 0; /** * @generated from field: int32 file_size = 8; */ fileSize = 0; /** * @generated from field: preflight.v2.DocumentCheck report = 9; */ report?: DocumentCheck; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "preflight.v2.PreflightPageReport"; 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: "media_item_id", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, { no: 5, name: "task_execution_plan_id", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, { no: 6, name: "file_num", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, { no: 7, name: "page", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, { no: 8, name: "file_size", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, { no: 9, name: "report", kind: "message", T: DocumentCheck }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): PreflightPageReport { return new PreflightPageReport().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): PreflightPageReport { return new PreflightPageReport().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): PreflightPageReport { return new PreflightPageReport().fromJsonString(jsonString, options); } static equals(a: PreflightPageReport | PlainMessage | undefined, b: PreflightPageReport | PlainMessage | undefined): boolean { return proto3.util.equals(PreflightPageReport, a, b); } } /** * @generated from message preflight.v2.DocumentCheck */ export class DocumentCheck extends Message { /** * @generated from field: preflight.v2.DocumentCheck.Checks checks = 1; */ checks?: DocumentCheck_Checks; /** * @generated from field: string status = 2; */ status = ""; /** * @generated from field: optional preflight.v2.Failures failures = 3; */ failures?: Failures; /** * @generated from field: optional preflight.v2.Warnings warnings = 4; */ warnings?: Warnings; /** * @generated from field: optional string name = 5; */ name?: string; /** * @generated from field: optional preflight.v2.DocumentInfo document_info = 6; */ documentInfo?: DocumentInfo; /** * @generated from field: optional string error = 7; */ error?: string; /** * @generated from field: int32 error_code = 8; */ errorCode = 0; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "preflight.v2.DocumentCheck"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "checks", kind: "message", T: DocumentCheck_Checks }, { no: 2, name: "status", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 3, name: "failures", kind: "message", T: Failures, opt: true }, { no: 4, name: "warnings", kind: "message", T: Warnings, opt: true }, { no: 5, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true }, { no: 6, name: "document_info", kind: "message", T: DocumentInfo, opt: true }, { no: 7, name: "error", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true }, { no: 8, name: "error_code", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): DocumentCheck { return new DocumentCheck().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): DocumentCheck { return new DocumentCheck().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): DocumentCheck { return new DocumentCheck().fromJsonString(jsonString, options); } static equals(a: DocumentCheck | PlainMessage | undefined, b: DocumentCheck | PlainMessage | undefined): boolean { return proto3.util.equals(DocumentCheck, a, b); } } /** * @generated from message preflight.v2.DocumentCheck.Checks */ export class DocumentCheck_Checks extends Message { /** * @generated from field: preflight.v2.ColourChecks colours = 1; */ colours?: ColourChecks; /** * @generated from field: preflight.v2.DimensionsChecks dimensions = 2; */ dimensions?: DimensionsChecks; /** * @generated from field: preflight.v2.FontChecks fonts = 3; */ fonts?: FontChecks; /** * @generated from field: preflight.v2.ImageChecks images = 4; */ images?: ImageChecks; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "preflight.v2.DocumentCheck.Checks"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "colours", kind: "message", T: ColourChecks }, { no: 2, name: "dimensions", kind: "message", T: DimensionsChecks }, { no: 3, name: "fonts", kind: "message", T: FontChecks }, { no: 4, name: "images", kind: "message", T: ImageChecks }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): DocumentCheck_Checks { return new DocumentCheck_Checks().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): DocumentCheck_Checks { return new DocumentCheck_Checks().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): DocumentCheck_Checks { return new DocumentCheck_Checks().fromJsonString(jsonString, options); } static equals(a: DocumentCheck_Checks | PlainMessage | undefined, b: DocumentCheck_Checks | PlainMessage | undefined): boolean { return proto3.util.equals(DocumentCheck_Checks, a, b); } } /** * @generated from message preflight.v2.DocumentInfo */ export class DocumentInfo extends Message { /** * @generated from field: int32 page_count = 1; */ pageCount = 0; /** * @generated from field: string created_at = 2; */ createdAt = ""; /** * @generated from field: string modified_at = 3; */ modifiedAt = ""; /** * @generated from field: string creator = 4; */ creator = ""; /** * @generated from field: repeated preflight.v2.DocumentInfo.OutputIntent output_intents = 5; */ outputIntents: DocumentInfo_OutputIntent[] = []; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "preflight.v2.DocumentInfo"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "page_count", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, { no: 2, name: "created_at", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 3, name: "modified_at", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 4, name: "creator", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 5, name: "output_intents", kind: "message", T: DocumentInfo_OutputIntent, repeated: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): DocumentInfo { return new DocumentInfo().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): DocumentInfo { return new DocumentInfo().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): DocumentInfo { return new DocumentInfo().fromJsonString(jsonString, options); } static equals(a: DocumentInfo | PlainMessage | undefined, b: DocumentInfo | PlainMessage | undefined): boolean { return proto3.util.equals(DocumentInfo, a, b); } } /** * @generated from message preflight.v2.DocumentInfo.OutputIntent */ export class DocumentInfo_OutputIntent extends Message { /** * @generated from field: string info = 1; */ info = ""; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "preflight.v2.DocumentInfo.OutputIntent"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "info", kind: "scalar", T: 9 /* ScalarType.STRING */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): DocumentInfo_OutputIntent { return new DocumentInfo_OutputIntent().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): DocumentInfo_OutputIntent { return new DocumentInfo_OutputIntent().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): DocumentInfo_OutputIntent { return new DocumentInfo_OutputIntent().fromJsonString(jsonString, options); } static equals(a: DocumentInfo_OutputIntent | PlainMessage | undefined, b: DocumentInfo_OutputIntent | PlainMessage | undefined): boolean { return proto3.util.equals(DocumentInfo_OutputIntent, a, b); } } /** * ----------------------------------------------------------------------- * Each group has explicit checks: no "map needed. * ----------------------------------------------------------------------- * * @generated from message preflight.v2.ColourChecks */ export class ColourChecks extends Message { /** * @generated from field: preflight.v2.ColourChecks.Checks checks = 1; */ checks?: ColourChecks_Checks; /** * @generated from field: string status = 2; */ status = ""; /** * @generated from field: optional preflight.v2.Failures failures = 3; */ failures?: Failures; /** * @generated from field: optional preflight.v2.Warnings warnings = 4; */ warnings?: Warnings; /** * @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.ColourChecks"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "checks", kind: "message", T: ColourChecks_Checks }, { no: 2, name: "status", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 3, name: "failures", kind: "message", T: Failures, opt: true }, { no: 4, name: "warnings", kind: "message", T: Warnings, opt: true }, { no: 5, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): ColourChecks { return new ColourChecks().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): ColourChecks { return new ColourChecks().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): ColourChecks { return new ColourChecks().fromJsonString(jsonString, options); } static equals(a: ColourChecks | PlainMessage | undefined, b: ColourChecks | PlainMessage | undefined): boolean { return proto3.util.equals(ColourChecks, a, b); } } /** * The single "checkColours" as a specialized message: * * @generated from message preflight.v2.ColourChecks.Checks */ export class ColourChecks_Checks extends Message { /** * @generated from field: preflight.v2.ColourCheck check_colours = 1; */ checkColours?: ColourCheck; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "preflight.v2.ColourChecks.Checks"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "check_colours", kind: "message", T: ColourCheck }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): ColourChecks_Checks { return new ColourChecks_Checks().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): ColourChecks_Checks { return new ColourChecks_Checks().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): ColourChecks_Checks { return new ColourChecks_Checks().fromJsonString(jsonString, options); } static equals(a: ColourChecks_Checks | PlainMessage | undefined, b: ColourChecks_Checks | PlainMessage | undefined): boolean { return proto3.util.equals(ColourChecks_Checks, a, b); } } /** * @generated from message preflight.v2.DimensionsChecks */ export class DimensionsChecks extends Message { /** * @generated from field: preflight.v2.DimensionsChecks.Checks checks = 1; */ checks?: DimensionsChecks_Checks; /** * @generated from field: string status = 2; */ status = ""; /** * @generated from field: optional preflight.v2.Failures failures = 3; */ failures?: Failures; /** * @generated from field: optional preflight.v2.Warnings warnings = 4; */ warnings?: Warnings; /** * @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.DimensionsChecks"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "checks", kind: "message", T: DimensionsChecks_Checks }, { no: 2, name: "status", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 3, name: "failures", kind: "message", T: Failures, opt: true }, { no: 4, name: "warnings", kind: "message", T: Warnings, opt: true }, { no: 5, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): DimensionsChecks { return new DimensionsChecks().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): DimensionsChecks { return new DimensionsChecks().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): DimensionsChecks { return new DimensionsChecks().fromJsonString(jsonString, options); } static equals(a: DimensionsChecks | PlainMessage | undefined, b: DimensionsChecks | PlainMessage | undefined): boolean { return proto3.util.equals(DimensionsChecks, a, b); } } /** * @generated from message preflight.v2.DimensionsChecks.Checks */ export class DimensionsChecks_Checks extends Message { /** * @generated from field: preflight.v2.AspectRatioCheck aspect_ratio = 1; */ aspectRatio?: AspectRatioCheck; /** * @generated from field: preflight.v2.BleedCheck bleed = 2; */ bleed?: BleedCheck; /** * @generated from field: preflight.v2.OrientationCheck orientation = 3; */ orientation?: OrientationCheck; /** * @generated from field: preflight.v2.TrimSizeCheck trim_size = 4; */ trimSize?: TrimSizeCheck; /** * @generated from field: preflight.v2.BoxSizeCheck media_box_size = 5; */ mediaBoxSize?: BoxSizeCheck; /** * @generated from field: preflight.v2.BoxSizeCheck bleed_box_size = 6; */ bleedBoxSize?: BoxSizeCheck; /** * @generated from field: preflight.v2.BoxSizeCheck art_box_size = 7; */ artBoxSize?: BoxSizeCheck; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "preflight.v2.DimensionsChecks.Checks"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "aspect_ratio", kind: "message", T: AspectRatioCheck }, { no: 2, name: "bleed", kind: "message", T: BleedCheck }, { no: 3, name: "orientation", kind: "message", T: OrientationCheck }, { no: 4, name: "trim_size", kind: "message", T: TrimSizeCheck }, { no: 5, name: "media_box_size", kind: "message", T: BoxSizeCheck }, { no: 6, name: "bleed_box_size", kind: "message", T: BoxSizeCheck }, { no: 7, name: "art_box_size", kind: "message", T: BoxSizeCheck }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): DimensionsChecks_Checks { return new DimensionsChecks_Checks().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): DimensionsChecks_Checks { return new DimensionsChecks_Checks().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): DimensionsChecks_Checks { return new DimensionsChecks_Checks().fromJsonString(jsonString, options); } static equals(a: DimensionsChecks_Checks | PlainMessage | undefined, b: DimensionsChecks_Checks | PlainMessage | undefined): boolean { return proto3.util.equals(DimensionsChecks_Checks, a, b); } } /** * @generated from message preflight.v2.FontChecks */ export class FontChecks extends Message { /** * @generated from field: preflight.v2.FontChecks.Checks checks = 1; */ checks?: FontChecks_Checks; /** * @generated from field: string status = 2; */ status = ""; /** * @generated from field: optional preflight.v2.Failures failures = 3; */ failures?: Failures; /** * @generated from field: optional preflight.v2.Warnings warnings = 4; */ warnings?: Warnings; /** * @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.FontChecks"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "checks", kind: "message", T: FontChecks_Checks }, { no: 2, name: "status", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 3, name: "failures", kind: "message", T: Failures, opt: true }, { no: 4, name: "warnings", kind: "message", T: Warnings, opt: true }, { no: 5, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): FontChecks { return new FontChecks().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): FontChecks { return new FontChecks().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): FontChecks { return new FontChecks().fromJsonString(jsonString, options); } static equals(a: FontChecks | PlainMessage | undefined, b: FontChecks | PlainMessage | undefined): boolean { return proto3.util.equals(FontChecks, a, b); } } /** * @generated from message preflight.v2.FontChecks.Checks */ export class FontChecks_Checks extends Message { /** * @generated from field: preflight.v2.FontsEmbeddedCheck fonts_embedded = 1; */ fontsEmbedded?: FontsEmbeddedCheck; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "preflight.v2.FontChecks.Checks"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "fonts_embedded", kind: "message", T: FontsEmbeddedCheck }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): FontChecks_Checks { return new FontChecks_Checks().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): FontChecks_Checks { return new FontChecks_Checks().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): FontChecks_Checks { return new FontChecks_Checks().fromJsonString(jsonString, options); } static equals(a: FontChecks_Checks | PlainMessage | undefined, b: FontChecks_Checks | PlainMessage | undefined): boolean { return proto3.util.equals(FontChecks_Checks, a, b); } } /** * @generated from message preflight.v2.ImageChecks */ export class ImageChecks extends Message { /** * @generated from field: preflight.v2.ImageChecks.Checks checks = 1; */ checks?: ImageChecks_Checks; /** * @generated from field: string status = 2; */ status = ""; /** * @generated from field: optional preflight.v2.Failures failures = 3; */ failures?: Failures; /** * @generated from field: optional preflight.v2.Warnings warnings = 4; */ warnings?: Warnings; /** * @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.ImageChecks"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "checks", kind: "message", T: ImageChecks_Checks }, { no: 2, name: "status", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 3, name: "failures", kind: "message", T: Failures, opt: true }, { no: 4, name: "warnings", kind: "message", T: Warnings, opt: true }, { no: 5, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): ImageChecks { return new ImageChecks().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): ImageChecks { return new ImageChecks().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): ImageChecks { return new ImageChecks().fromJsonString(jsonString, options); } static equals(a: ImageChecks | PlainMessage | undefined, b: ImageChecks | PlainMessage | undefined): boolean { return proto3.util.equals(ImageChecks, a, b); } } /** * @generated from message preflight.v2.ImageChecks.Checks */ export class ImageChecks_Checks extends Message { /** * @generated from field: preflight.v2.ImageResolutionCheck image_resolution = 1; */ imageResolution?: ImageResolutionCheck; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "preflight.v2.ImageChecks.Checks"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "image_resolution", kind: "message", T: ImageResolutionCheck }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): ImageChecks_Checks { return new ImageChecks_Checks().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): ImageChecks_Checks { return new ImageChecks_Checks().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): ImageChecks_Checks { return new ImageChecks_Checks().fromJsonString(jsonString, options); } static equals(a: ImageChecks_Checks | PlainMessage | undefined, b: ImageChecks_Checks | PlainMessage | undefined): boolean { return proto3.util.equals(ImageChecks_Checks, a, b); } } /** * @generated from message preflight.v2.ColourCheck */ export class ColourCheck 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.Failures failures = 8; */ failures?: Failures; /** * @generated from field: optional preflight.v2.Warnings warnings = 9; */ warnings?: Warnings; /** * @generated from field: optional preflight.v2.ColourPageDifferenceSummary page_difference_summary = 10; */ pageDifferenceSummary?: ColourPageDifferenceSummary; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "preflight.v2.ColourCheck"; 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: Failures, opt: true }, { no: 9, name: "warnings", kind: "message", T: Warnings, opt: true }, { no: 10, name: "page_difference_summary", kind: "message", T: ColourPageDifferenceSummary, opt: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): ColourCheck { return new ColourCheck().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): ColourCheck { return new ColourCheck().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): ColourCheck { return new ColourCheck().fromJsonString(jsonString, options); } static equals(a: ColourCheck | PlainMessage | undefined, b: ColourCheck | PlainMessage | undefined): boolean { return proto3.util.equals(ColourCheck, a, b); } } /** * @generated from message preflight.v2.AspectRatioCheck */ export class AspectRatioCheck 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.Failures failures = 8; */ failures?: Failures; /** * @generated from field: optional preflight.v2.Warnings warnings = 9; */ warnings?: Warnings; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "preflight.v2.AspectRatioCheck"; 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: Failures, opt: true }, { no: 9, name: "warnings", kind: "message", T: Warnings, opt: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): AspectRatioCheck { return new AspectRatioCheck().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): AspectRatioCheck { return new AspectRatioCheck().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): AspectRatioCheck { return new AspectRatioCheck().fromJsonString(jsonString, options); } static equals(a: AspectRatioCheck | PlainMessage | undefined, b: AspectRatioCheck | PlainMessage | undefined): boolean { return proto3.util.equals(AspectRatioCheck, a, b); } } /** * @generated from message preflight.v2.BleedCheck */ export class BleedCheck 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.Failures failures = 8; */ failures?: Failures; /** * @generated from field: optional preflight.v2.Warnings warnings = 9; */ warnings?: Warnings; /** * @generated from field: optional preflight.v2.BleedPageDifferenceSummary page_difference_summary = 10; */ pageDifferenceSummary?: BleedPageDifferenceSummary; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "preflight.v2.BleedCheck"; 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: Failures, opt: true }, { no: 9, name: "warnings", kind: "message", T: Warnings, opt: true }, { no: 10, name: "page_difference_summary", kind: "message", T: BleedPageDifferenceSummary, opt: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): BleedCheck { return new BleedCheck().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): BleedCheck { return new BleedCheck().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): BleedCheck { return new BleedCheck().fromJsonString(jsonString, options); } static equals(a: BleedCheck | PlainMessage | undefined, b: BleedCheck | PlainMessage | undefined): boolean { return proto3.util.equals(BleedCheck, a, b); } } /** * @generated from message preflight.v2.OrientationCheck */ export class OrientationCheck 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.Failures failures = 8; */ failures?: Failures; /** * @generated from field: optional preflight.v2.Warnings warnings = 9; */ warnings?: Warnings; /** * @generated from field: optional preflight.v2.OrientationPageDifferenceSummary page_difference_summary = 10; */ pageDifferenceSummary?: OrientationPageDifferenceSummary; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "preflight.v2.OrientationCheck"; 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: Failures, opt: true }, { no: 9, name: "warnings", kind: "message", T: Warnings, opt: true }, { no: 10, name: "page_difference_summary", kind: "message", T: OrientationPageDifferenceSummary, opt: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): OrientationCheck { return new OrientationCheck().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): OrientationCheck { return new OrientationCheck().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): OrientationCheck { return new OrientationCheck().fromJsonString(jsonString, options); } static equals(a: OrientationCheck | PlainMessage | undefined, b: OrientationCheck | PlainMessage | undefined): boolean { return proto3.util.equals(OrientationCheck, a, b); } } /** * @generated from message preflight.v2.TrimSizeCheck */ export class TrimSizeCheck 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.Failures failures = 8; */ failures?: Failures; /** * @generated from field: optional preflight.v2.Warnings warnings = 9; */ warnings?: Warnings; /** * @generated from field: optional preflight.v2.PageDifferenceSummary page_difference_summary = 10; */ pageDifferenceSummary?: PageDifferenceSummary; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "preflight.v2.TrimSizeCheck"; 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: Failures, opt: true }, { no: 9, name: "warnings", kind: "message", T: Warnings, opt: true }, { no: 10, name: "page_difference_summary", kind: "message", T: PageDifferenceSummary, opt: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): TrimSizeCheck { return new TrimSizeCheck().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): TrimSizeCheck { return new TrimSizeCheck().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): TrimSizeCheck { return new TrimSizeCheck().fromJsonString(jsonString, options); } static equals(a: TrimSizeCheck | PlainMessage | undefined, b: TrimSizeCheck | PlainMessage | undefined): boolean { return proto3.util.equals(TrimSizeCheck, a, b); } } /** * @generated from message preflight.v2.BoxSizeCheck */ export class BoxSizeCheck 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 summary = 6; */ summary = ""; /** * @generated from field: optional preflight.v2.PageDifferenceSummary page_difference_summary = 7; */ pageDifferenceSummary?: PageDifferenceSummary; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "preflight.v2.BoxSizeCheck"; 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: "summary", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 7, name: "page_difference_summary", kind: "message", T: PageDifferenceSummary, opt: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): BoxSizeCheck { return new BoxSizeCheck().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): BoxSizeCheck { return new BoxSizeCheck().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): BoxSizeCheck { return new BoxSizeCheck().fromJsonString(jsonString, options); } static equals(a: BoxSizeCheck | PlainMessage | undefined, b: BoxSizeCheck | PlainMessage | undefined): boolean { return proto3.util.equals(BoxSizeCheck, a, b); } } /** * @generated from message preflight.v2.BoxSizeCheckOutput */ export class BoxSizeCheckOutput extends Message { /** * @generated from field: float width = 1; */ width = 0; /** * @generated from field: float height = 2; */ height = 0; /** * @generated from field: string unit = 3; */ unit = ""; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "preflight.v2.BoxSizeCheckOutput"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "width", kind: "scalar", T: 2 /* ScalarType.FLOAT */ }, { no: 2, name: "height", kind: "scalar", T: 2 /* ScalarType.FLOAT */ }, { no: 3, name: "unit", kind: "scalar", T: 9 /* ScalarType.STRING */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): BoxSizeCheckOutput { return new BoxSizeCheckOutput().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): BoxSizeCheckOutput { return new BoxSizeCheckOutput().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): BoxSizeCheckOutput { return new BoxSizeCheckOutput().fromJsonString(jsonString, options); } static equals(a: BoxSizeCheckOutput | PlainMessage | undefined, b: BoxSizeCheckOutput | PlainMessage | undefined): boolean { return proto3.util.equals(BoxSizeCheckOutput, a, b); } } /** * @generated from message preflight.v2.FontsEmbeddedCheck */ export class FontsEmbeddedCheck 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.Failures failures = 8; */ failures?: Failures; /** * @generated from field: optional preflight.v2.Warnings warnings = 9; */ warnings?: Warnings; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "preflight.v2.FontsEmbeddedCheck"; 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: Failures, opt: true }, { no: 9, name: "warnings", kind: "message", T: Warnings, opt: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): FontsEmbeddedCheck { return new FontsEmbeddedCheck().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): FontsEmbeddedCheck { return new FontsEmbeddedCheck().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): FontsEmbeddedCheck { return new FontsEmbeddedCheck().fromJsonString(jsonString, options); } static equals(a: FontsEmbeddedCheck | PlainMessage | undefined, b: FontsEmbeddedCheck | PlainMessage | undefined): boolean { return proto3.util.equals(FontsEmbeddedCheck, a, b); } } /** * @generated from message preflight.v2.ImageResolutionCheck */ export class ImageResolutionCheck 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.Failures failures = 8; */ failures?: Failures; /** * @generated from field: optional preflight.v2.Warnings warnings = 9; */ warnings?: Warnings; /** * @generated from field: optional preflight.v2.ImageResolutionPageDifferenceSummary page_difference_summary = 10; */ pageDifferenceSummary?: ImageResolutionPageDifferenceSummary; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "preflight.v2.ImageResolutionCheck"; 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: Failures, opt: true }, { no: 9, name: "warnings", kind: "message", T: Warnings, opt: true }, { no: 10, name: "page_difference_summary", kind: "message", T: ImageResolutionPageDifferenceSummary, opt: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): ImageResolutionCheck { return new ImageResolutionCheck().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): ImageResolutionCheck { return new ImageResolutionCheck().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): ImageResolutionCheck { return new ImageResolutionCheck().fromJsonString(jsonString, options); } static equals(a: ImageResolutionCheck | PlainMessage | undefined, b: ImageResolutionCheck | PlainMessage | undefined): boolean { return proto3.util.equals(ImageResolutionCheck, a, b); } } /** * @generated from message preflight.v2.PageCountCheckInput */ export class PageCountCheckInput extends Message { /** * @generated from field: int32 expected_page_count = 1; */ expectedPageCount = 0; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "preflight.v2.PageCountCheckInput"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "expected_page_count", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): PageCountCheckInput { return new PageCountCheckInput().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): PageCountCheckInput { return new PageCountCheckInput().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): PageCountCheckInput { return new PageCountCheckInput().fromJsonString(jsonString, options); } static equals(a: PageCountCheckInput | PlainMessage | undefined, b: PageCountCheckInput | PlainMessage | undefined): boolean { return proto3.util.equals(PageCountCheckInput, a, b); } } /** * @generated from message preflight.v2.ColourCheckInput */ export class ColourCheckInput extends Message { /** * @generated from field: repeated string allowed_colours = 1; */ allowedColours: string[] = []; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "preflight.v2.ColourCheckInput"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "allowed_colours", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): ColourCheckInput { return new ColourCheckInput().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): ColourCheckInput { return new ColourCheckInput().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): ColourCheckInput { return new ColourCheckInput().fromJsonString(jsonString, options); } static equals(a: ColourCheckInput | PlainMessage | undefined, b: ColourCheckInput | PlainMessage | undefined): boolean { return proto3.util.equals(ColourCheckInput, a, b); } } /** * @generated from message preflight.v2.AspectRatioCheckInput */ export class AspectRatioCheckInput extends Message { /** * @generated from field: float pass_tolerance_percentage = 1; */ passTolerancePercentage = 0; /** * @generated from field: float warn_tolerance_percentage = 2; */ warnTolerancePercentage = 0; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "preflight.v2.AspectRatioCheckInput"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "pass_tolerance_percentage", kind: "scalar", T: 2 /* ScalarType.FLOAT */ }, { no: 2, name: "warn_tolerance_percentage", kind: "scalar", T: 2 /* ScalarType.FLOAT */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): AspectRatioCheckInput { return new AspectRatioCheckInput().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): AspectRatioCheckInput { return new AspectRatioCheckInput().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): AspectRatioCheckInput { return new AspectRatioCheckInput().fromJsonString(jsonString, options); } static equals(a: AspectRatioCheckInput | PlainMessage | undefined, b: AspectRatioCheckInput | PlainMessage | undefined): boolean { return proto3.util.equals(AspectRatioCheckInput, a, b); } } /** * @generated from message preflight.v2.BleedCheckInput */ export class BleedCheckInput extends Message { /** * @generated from field: float bottom = 1; */ bottom = 0; /** * @generated from field: float left = 2; */ left = 0; /** * @generated from field: float right = 3; */ right = 0; /** * @generated from field: float top = 4; */ top = 0; /** * "mm" * * @generated from field: string unit = 5; */ unit = ""; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "preflight.v2.BleedCheckInput"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "bottom", kind: "scalar", T: 2 /* ScalarType.FLOAT */ }, { no: 2, name: "left", kind: "scalar", T: 2 /* ScalarType.FLOAT */ }, { no: 3, name: "right", kind: "scalar", T: 2 /* ScalarType.FLOAT */ }, { no: 4, name: "top", kind: "scalar", T: 2 /* ScalarType.FLOAT */ }, { no: 5, name: "unit", kind: "scalar", T: 9 /* ScalarType.STRING */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): BleedCheckInput { return new BleedCheckInput().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): BleedCheckInput { return new BleedCheckInput().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): BleedCheckInput { return new BleedCheckInput().fromJsonString(jsonString, options); } static equals(a: BleedCheckInput | PlainMessage | undefined, b: BleedCheckInput | PlainMessage | undefined): boolean { return proto3.util.equals(BleedCheckInput, a, b); } } /** * @generated from message preflight.v2.OrientationCheckInput */ export class OrientationCheckInput extends Message { /** * "Portrait" * * @generated from field: string orientation = 1; */ orientation = ""; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "preflight.v2.OrientationCheckInput"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "orientation", kind: "scalar", T: 9 /* ScalarType.STRING */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): OrientationCheckInput { return new OrientationCheckInput().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): OrientationCheckInput { return new OrientationCheckInput().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): OrientationCheckInput { return new OrientationCheckInput().fromJsonString(jsonString, options); } static equals(a: OrientationCheckInput | PlainMessage | undefined, b: OrientationCheckInput | PlainMessage | undefined): boolean { return proto3.util.equals(OrientationCheckInput, a, b); } } /** * @generated from message preflight.v2.TrimSizeCheckInput */ export class TrimSizeCheckInput extends Message { /** * @generated from field: float width = 1; */ width = 0; /** * @generated from field: float height = 2; */ height = 0; /** * "mm" * * @generated from field: string unit = 3; */ unit = ""; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "preflight.v2.TrimSizeCheckInput"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "width", kind: "scalar", T: 2 /* ScalarType.FLOAT */ }, { no: 2, name: "height", kind: "scalar", T: 2 /* ScalarType.FLOAT */ }, { no: 3, name: "unit", kind: "scalar", T: 9 /* ScalarType.STRING */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): TrimSizeCheckInput { return new TrimSizeCheckInput().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): TrimSizeCheckInput { return new TrimSizeCheckInput().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): TrimSizeCheckInput { return new TrimSizeCheckInput().fromJsonString(jsonString, options); } static equals(a: TrimSizeCheckInput | PlainMessage | undefined, b: TrimSizeCheckInput | PlainMessage | undefined): boolean { return proto3.util.equals(TrimSizeCheckInput, a, b); } } /** * The original JSON had `input: null`. Potentially empty or future fields go here. * * @generated from message preflight.v2.FontsEmbeddedCheckInput */ export class FontsEmbeddedCheckInput extends Message { constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "preflight.v2.FontsEmbeddedCheckInput"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ ]); static fromBinary(bytes: Uint8Array, options?: Partial): FontsEmbeddedCheckInput { return new FontsEmbeddedCheckInput().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): FontsEmbeddedCheckInput { return new FontsEmbeddedCheckInput().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): FontsEmbeddedCheckInput { return new FontsEmbeddedCheckInput().fromJsonString(jsonString, options); } static equals(a: FontsEmbeddedCheckInput | PlainMessage | undefined, b: FontsEmbeddedCheckInput | PlainMessage | undefined): boolean { return proto3.util.equals(FontsEmbeddedCheckInput, a, b); } } /** * @generated from message preflight.v2.ImageResolutionCheckInput */ export class ImageResolutionCheckInput extends Message { /** * "actual size" * * @generated from field: string check_resolution_size = 1; */ checkResolutionSize = ""; /** * @generated from field: int32 error_below_d_p_i = 2; */ errorBelowDPI = 0; /** * @generated from field: int32 recomended_d_p_i = 3; */ recomendedDPI = 0; /** * @generated from field: int32 warn_below_d_p_i = 4; */ warnBelowDPI = 0; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "preflight.v2.ImageResolutionCheckInput"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "check_resolution_size", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 2, name: "error_below_d_p_i", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, { no: 3, name: "recomended_d_p_i", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, { no: 4, name: "warn_below_d_p_i", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): ImageResolutionCheckInput { return new ImageResolutionCheckInput().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): ImageResolutionCheckInput { return new ImageResolutionCheckInput().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): ImageResolutionCheckInput { return new ImageResolutionCheckInput().fromJsonString(jsonString, options); } static equals(a: ImageResolutionCheckInput | PlainMessage | undefined, b: ImageResolutionCheckInput | PlainMessage | undefined): boolean { return proto3.util.equals(ImageResolutionCheckInput, a, b); } } /** * @generated from message preflight.v2.PageCountCheckOutput */ export class PageCountCheckOutput extends Message { /** * @generated from field: int32 actual_page_count = 1; */ actualPageCount = 0; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "preflight.v2.PageCountCheckOutput"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "actual_page_count", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): PageCountCheckOutput { return new PageCountCheckOutput().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): PageCountCheckOutput { return new PageCountCheckOutput().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): PageCountCheckOutput { return new PageCountCheckOutput().fromJsonString(jsonString, options); } static equals(a: PageCountCheckOutput | PlainMessage | undefined, b: PageCountCheckOutput | PlainMessage | undefined): boolean { return proto3.util.equals(PageCountCheckOutput, a, b); } } /** * @generated from message preflight.v2.ColourCheckOutput */ export class ColourCheckOutput extends Message { /** * e.g. "CMYK" * * @generated from field: repeated string colours_found = 1; */ coloursFound: string[] = []; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "preflight.v2.ColourCheckOutput"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "colours_found", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): ColourCheckOutput { return new ColourCheckOutput().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): ColourCheckOutput { return new ColourCheckOutput().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): ColourCheckOutput { return new ColourCheckOutput().fromJsonString(jsonString, options); } static equals(a: ColourCheckOutput | PlainMessage | undefined, b: ColourCheckOutput | PlainMessage | undefined): boolean { return proto3.util.equals(ColourCheckOutput, a, b); } } /** * @generated from message preflight.v2.AspectRatioCheckOutput */ export class AspectRatioCheckOutput extends Message { /** * @generated from field: optional bool all_pages_uniform = 1; */ allPagesUniform?: boolean; /** * @generated from field: float aspect_ratio = 2; */ aspectRatio = 0; /** * @generated from field: float deviation_percentage = 3; */ deviationPercentage = 0; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "preflight.v2.AspectRatioCheckOutput"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "all_pages_uniform", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true }, { no: 2, name: "aspect_ratio", kind: "scalar", T: 2 /* ScalarType.FLOAT */ }, { no: 3, name: "deviation_percentage", kind: "scalar", T: 2 /* ScalarType.FLOAT */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): AspectRatioCheckOutput { return new AspectRatioCheckOutput().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): AspectRatioCheckOutput { return new AspectRatioCheckOutput().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): AspectRatioCheckOutput { return new AspectRatioCheckOutput().fromJsonString(jsonString, options); } static equals(a: AspectRatioCheckOutput | PlainMessage | undefined, b: AspectRatioCheckOutput | PlainMessage | undefined): boolean { return proto3.util.equals(AspectRatioCheckOutput, a, b); } } /** * @generated from message preflight.v2.BleedCheckOutput */ export class BleedCheckOutput extends Message { /** * @generated from field: optional bool all_pages_uniform = 1; */ allPagesUniform?: boolean; /** * @generated from field: float bottom = 2; */ bottom = 0; /** * @generated from field: float left = 3; */ left = 0; /** * @generated from field: float right = 4; */ right = 0; /** * @generated from field: float top = 5; */ top = 0; /** * @generated from field: string unit = 6; */ unit = ""; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "preflight.v2.BleedCheckOutput"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "all_pages_uniform", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true }, { no: 2, name: "bottom", kind: "scalar", T: 2 /* ScalarType.FLOAT */ }, { no: 3, name: "left", kind: "scalar", T: 2 /* ScalarType.FLOAT */ }, { no: 4, name: "right", kind: "scalar", T: 2 /* ScalarType.FLOAT */ }, { no: 5, name: "top", kind: "scalar", T: 2 /* ScalarType.FLOAT */ }, { no: 6, name: "unit", kind: "scalar", T: 9 /* ScalarType.STRING */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): BleedCheckOutput { return new BleedCheckOutput().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): BleedCheckOutput { return new BleedCheckOutput().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): BleedCheckOutput { return new BleedCheckOutput().fromJsonString(jsonString, options); } static equals(a: BleedCheckOutput | PlainMessage | undefined, b: BleedCheckOutput | PlainMessage | undefined): boolean { return proto3.util.equals(BleedCheckOutput, a, b); } } /** * @generated from message preflight.v2.OrientationCheckOutput */ export class OrientationCheckOutput extends Message { /** * @generated from field: optional bool all_pages_uniform = 1; */ allPagesUniform?: boolean; /** * @generated from field: string orientation = 2; */ orientation = ""; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "preflight.v2.OrientationCheckOutput"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "all_pages_uniform", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true }, { no: 2, name: "orientation", kind: "scalar", T: 9 /* ScalarType.STRING */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): OrientationCheckOutput { return new OrientationCheckOutput().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): OrientationCheckOutput { return new OrientationCheckOutput().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): OrientationCheckOutput { return new OrientationCheckOutput().fromJsonString(jsonString, options); } static equals(a: OrientationCheckOutput | PlainMessage | undefined, b: OrientationCheckOutput | PlainMessage | undefined): boolean { return proto3.util.equals(OrientationCheckOutput, a, b); } } /** * @generated from message preflight.v2.TrimSizeCheckOutput */ export class TrimSizeCheckOutput extends Message { /** * @generated from field: optional bool all_pages_uniform = 1; */ allPagesUniform?: boolean; /** * @generated from field: float width = 2; */ width = 0; /** * @generated from field: float height = 3; */ height = 0; /** * @generated from field: string unit = 4; */ unit = ""; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "preflight.v2.TrimSizeCheckOutput"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "all_pages_uniform", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true }, { no: 2, name: "width", kind: "scalar", T: 2 /* ScalarType.FLOAT */ }, { no: 3, name: "height", kind: "scalar", T: 2 /* ScalarType.FLOAT */ }, { no: 4, name: "unit", kind: "scalar", T: 9 /* ScalarType.STRING */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): TrimSizeCheckOutput { return new TrimSizeCheckOutput().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): TrimSizeCheckOutput { return new TrimSizeCheckOutput().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): TrimSizeCheckOutput { return new TrimSizeCheckOutput().fromJsonString(jsonString, options); } static equals(a: TrimSizeCheckOutput | PlainMessage | undefined, b: TrimSizeCheckOutput | PlainMessage | undefined): boolean { return proto3.util.equals(TrimSizeCheckOutput, a, b); } } /** * @generated from message preflight.v2.FontsEmbeddedCheckOutput */ export class FontsEmbeddedCheckOutput extends Message { /** * deprecated in favour of "fonts" * * @generated from field: repeated string fonts_found = 1; */ fontsFound: string[] = []; /** * @generated from field: repeated preflight.v2.FontsEmbeddedCheckOutput.Font fonts = 2; */ fonts: FontsEmbeddedCheckOutput_Font[] = []; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "preflight.v2.FontsEmbeddedCheckOutput"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "fonts_found", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, { no: 2, name: "fonts", kind: "message", T: FontsEmbeddedCheckOutput_Font, repeated: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): FontsEmbeddedCheckOutput { return new FontsEmbeddedCheckOutput().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): FontsEmbeddedCheckOutput { return new FontsEmbeddedCheckOutput().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): FontsEmbeddedCheckOutput { return new FontsEmbeddedCheckOutput().fromJsonString(jsonString, options); } static equals(a: FontsEmbeddedCheckOutput | PlainMessage | undefined, b: FontsEmbeddedCheckOutput | PlainMessage | undefined): boolean { return proto3.util.equals(FontsEmbeddedCheckOutput, a, b); } } /** * @generated from message preflight.v2.FontsEmbeddedCheckOutput.Font */ export class FontsEmbeddedCheckOutput_Font extends Message { /** * @generated from field: string name = 1; */ name = ""; /** * @generated from field: bool embedded = 2; */ embedded = false; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "preflight.v2.FontsEmbeddedCheckOutput.Font"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 2, name: "embedded", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): FontsEmbeddedCheckOutput_Font { return new FontsEmbeddedCheckOutput_Font().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): FontsEmbeddedCheckOutput_Font { return new FontsEmbeddedCheckOutput_Font().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): FontsEmbeddedCheckOutput_Font { return new FontsEmbeddedCheckOutput_Font().fromJsonString(jsonString, options); } static equals(a: FontsEmbeddedCheckOutput_Font | PlainMessage | undefined, b: FontsEmbeddedCheckOutput_Font | PlainMessage | undefined): boolean { return proto3.util.equals(FontsEmbeddedCheckOutput_Font, a, b); } } /** * @generated from message preflight.v2.ImageResolutionCheckOutput */ export class ImageResolutionCheckOutput extends Message { /** * @generated from field: float min_image_resolution_d_p_i = 1; */ minImageResolutionDPI = 0; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "preflight.v2.ImageResolutionCheckOutput"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "min_image_resolution_d_p_i", kind: "scalar", T: 2 /* ScalarType.FLOAT */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): ImageResolutionCheckOutput { return new ImageResolutionCheckOutput().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): ImageResolutionCheckOutput { return new ImageResolutionCheckOutput().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): ImageResolutionCheckOutput { return new ImageResolutionCheckOutput().fromJsonString(jsonString, options); } static equals(a: ImageResolutionCheckOutput | PlainMessage | undefined, b: ImageResolutionCheckOutput | PlainMessage | undefined): boolean { return proto3.util.equals(ImageResolutionCheckOutput, a, b); } } /** * @generated from message preflight.v2.Failures */ export class Failures extends Message { /** * @generated from field: repeated int32 affected_pages = 1; */ affectedPages: number[] = []; /** * @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.Failures"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "affected_pages", kind: "scalar", T: 5 /* ScalarType.INT32 */, repeated: true }, { no: 2, name: "count", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): Failures { return new Failures().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): Failures { return new Failures().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): Failures { return new Failures().fromJsonString(jsonString, options); } static equals(a: Failures | PlainMessage | undefined, b: Failures | PlainMessage | undefined): boolean { return proto3.util.equals(Failures, a, b); } } /** * @generated from message preflight.v2.Warnings */ export class Warnings extends Message { /** * @generated from field: repeated int32 affected_pages = 1; */ affectedPages: number[] = []; /** * @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.Warnings"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "affected_pages", kind: "scalar", T: 5 /* ScalarType.INT32 */, repeated: true }, { no: 2, name: "count", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): Warnings { return new Warnings().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): Warnings { return new Warnings().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): Warnings { return new Warnings().fromJsonString(jsonString, options); } static equals(a: Warnings | PlainMessage | undefined, b: Warnings | PlainMessage | undefined): boolean { return proto3.util.equals(Warnings, a, b); } } /** * @generated from message preflight.v2.PreflightMediaItem */ export class PreflightMediaItem extends Message { /** * @generated from field: int64 media_item_id = 1; */ mediaItemId = protoInt64.zero; /** * @generated from field: int32 file_num = 2; */ fileNum = 0; /** * @generated from field: string bucket_name = 3; */ bucketName = ""; /** * @generated from field: string object_name = 4; */ objectName = ""; /** * @generated from field: string content_type = 5; */ contentType = ""; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "preflight.v2.PreflightMediaItem"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "media_item_id", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, { no: 2, name: "file_num", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, { no: 3, name: "bucket_name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 4, name: "object_name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 5, name: "content_type", kind: "scalar", T: 9 /* ScalarType.STRING */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): PreflightMediaItem { return new PreflightMediaItem().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): PreflightMediaItem { return new PreflightMediaItem().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): PreflightMediaItem { return new PreflightMediaItem().fromJsonString(jsonString, options); } static equals(a: PreflightMediaItem | PlainMessage | undefined, b: PreflightMediaItem | PlainMessage | undefined): boolean { return proto3.util.equals(PreflightMediaItem, a, b); } } /** * @generated from message preflight.v2.StartPreflightRequest */ export class StartPreflightRequest extends Message { /** * @generated from field: common.v1.ObjectRef object_ref = 1; */ objectRef?: ObjectRef; /** * @generated from field: repeated preflight.v2.PreflightMediaItem media_items = 2; */ mediaItems: PreflightMediaItem[] = []; /** * @generated from field: int64 artworker_id = 3; */ artworkerId = protoInt64.zero; /** * @generated from field: common.v1.ObjectRef preflight_config_object_ref = 4; */ preflightConfigObjectRef?: ObjectRef; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "preflight.v2.StartPreflightRequest"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "object_ref", kind: "message", T: ObjectRef }, { no: 2, name: "media_items", kind: "message", T: PreflightMediaItem, repeated: true }, { no: 3, name: "artworker_id", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, { no: 4, name: "preflight_config_object_ref", kind: "message", T: ObjectRef }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): StartPreflightRequest { return new StartPreflightRequest().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): StartPreflightRequest { return new StartPreflightRequest().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): StartPreflightRequest { return new StartPreflightRequest().fromJsonString(jsonString, options); } static equals(a: StartPreflightRequest | PlainMessage | undefined, b: StartPreflightRequest | PlainMessage | undefined): boolean { return proto3.util.equals(StartPreflightRequest, a, b); } } /** * @generated from message preflight.v2.StartPreflightResponse */ export class StartPreflightResponse extends Message { /** * @generated from field: bool ok = 1; */ ok = false; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "preflight.v2.StartPreflightResponse"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "ok", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): StartPreflightResponse { return new StartPreflightResponse().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): StartPreflightResponse { return new StartPreflightResponse().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): StartPreflightResponse { return new StartPreflightResponse().fromJsonString(jsonString, options); } static equals(a: StartPreflightResponse | PlainMessage | undefined, b: StartPreflightResponse | PlainMessage | undefined): boolean { return proto3.util.equals(StartPreflightResponse, a, b); } } /** * @generated from message preflight.v2.GetPreflightFileReportRequest */ export class GetPreflightFileReportRequest extends Message { /** * @generated from field: int64 media_item_id = 1; */ mediaItemId = protoInt64.zero; /** * @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.GetPreflightFileReportRequest"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "media_item_id", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, { no: 2, name: "artworker_id", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): GetPreflightFileReportRequest { return new GetPreflightFileReportRequest().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): GetPreflightFileReportRequest { return new GetPreflightFileReportRequest().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): GetPreflightFileReportRequest { return new GetPreflightFileReportRequest().fromJsonString(jsonString, options); } static equals(a: GetPreflightFileReportRequest | PlainMessage | undefined, b: GetPreflightFileReportRequest | PlainMessage | undefined): boolean { return proto3.util.equals(GetPreflightFileReportRequest, a, b); } } /** * @generated from message preflight.v2.GetPreflightFileReportResponse */ export class GetPreflightFileReportResponse extends Message { /** * @generated from field: preflight.v2.PreflightFileReport report = 1; */ report?: PreflightFileReport; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "preflight.v2.GetPreflightFileReportResponse"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "report", kind: "message", T: PreflightFileReport }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): GetPreflightFileReportResponse { return new GetPreflightFileReportResponse().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): GetPreflightFileReportResponse { return new GetPreflightFileReportResponse().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): GetPreflightFileReportResponse { return new GetPreflightFileReportResponse().fromJsonString(jsonString, options); } static equals(a: GetPreflightFileReportResponse | PlainMessage | undefined, b: GetPreflightFileReportResponse | PlainMessage | undefined): boolean { return proto3.util.equals(GetPreflightFileReportResponse, a, b); } } /** * @generated from message preflight.v2.GetPreflightPageReportRequest */ export class GetPreflightPageReportRequest extends Message { /** * @generated from field: int64 media_item_id = 1; */ mediaItemId = protoInt64.zero; /** * @generated from field: int32 page = 2; */ page = 0; /** * @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 = "preflight.v2.GetPreflightPageReportRequest"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "media_item_id", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, { no: 2, name: "page", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, { no: 3, name: "artworker_id", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): GetPreflightPageReportRequest { return new GetPreflightPageReportRequest().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): GetPreflightPageReportRequest { return new GetPreflightPageReportRequest().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): GetPreflightPageReportRequest { return new GetPreflightPageReportRequest().fromJsonString(jsonString, options); } static equals(a: GetPreflightPageReportRequest | PlainMessage | undefined, b: GetPreflightPageReportRequest | PlainMessage | undefined): boolean { return proto3.util.equals(GetPreflightPageReportRequest, a, b); } } /** * @generated from message preflight.v2.GetPreflightPageReportResponse */ export class GetPreflightPageReportResponse extends Message { /** * @generated from field: preflight.v2.PreflightPageReport report = 1; */ report?: PreflightPageReport; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "preflight.v2.GetPreflightPageReportResponse"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "report", kind: "message", T: PreflightPageReport }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): GetPreflightPageReportResponse { return new GetPreflightPageReportResponse().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): GetPreflightPageReportResponse { return new GetPreflightPageReportResponse().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): GetPreflightPageReportResponse { return new GetPreflightPageReportResponse().fromJsonString(jsonString, options); } static equals(a: GetPreflightPageReportResponse | PlainMessage | undefined, b: GetPreflightPageReportResponse | PlainMessage | undefined): boolean { return proto3.util.equals(GetPreflightPageReportResponse, a, b); } } /** * @generated from message preflight.v2.PageDifferenceSummary */ export class PageDifferenceSummary extends Message { /** * @generated from field: repeated preflight.v2.TrimSizeDifference differences = 1; */ differences: TrimSizeDifference[] = []; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "preflight.v2.PageDifferenceSummary"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "differences", kind: "message", T: TrimSizeDifference, repeated: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): PageDifferenceSummary { return new PageDifferenceSummary().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): PageDifferenceSummary { return new PageDifferenceSummary().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): PageDifferenceSummary { return new PageDifferenceSummary().fromJsonString(jsonString, options); } static equals(a: PageDifferenceSummary | PlainMessage | undefined, b: PageDifferenceSummary | PlainMessage | undefined): boolean { return proto3.util.equals(PageDifferenceSummary, a, b); } } /** * @generated from message preflight.v2.TrimSizeDifference */ export class TrimSizeDifference extends Message { /** * @generated from field: preflight.v2.TrimSizeConfig config = 1; */ config?: TrimSizeConfig; /** * @generated from field: repeated int32 pages = 2; */ pages: number[] = []; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "preflight.v2.TrimSizeDifference"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "config", kind: "message", T: TrimSizeConfig }, { no: 2, name: "pages", kind: "scalar", T: 5 /* ScalarType.INT32 */, repeated: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): TrimSizeDifference { return new TrimSizeDifference().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): TrimSizeDifference { return new TrimSizeDifference().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): TrimSizeDifference { return new TrimSizeDifference().fromJsonString(jsonString, options); } static equals(a: TrimSizeDifference | PlainMessage | undefined, b: TrimSizeDifference | PlainMessage | undefined): boolean { return proto3.util.equals(TrimSizeDifference, a, b); } } /** * @generated from message preflight.v2.TrimSizeConfig */ export class TrimSizeConfig extends Message { /** * @generated from field: float height = 1; */ height = 0; /** * @generated from field: string unit = 2; */ unit = ""; /** * @generated from field: float width = 3; */ width = 0; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "preflight.v2.TrimSizeConfig"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "height", kind: "scalar", T: 2 /* ScalarType.FLOAT */ }, { no: 2, name: "unit", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 3, name: "width", kind: "scalar", T: 2 /* ScalarType.FLOAT */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): TrimSizeConfig { return new TrimSizeConfig().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): TrimSizeConfig { return new TrimSizeConfig().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): TrimSizeConfig { return new TrimSizeConfig().fromJsonString(jsonString, options); } static equals(a: TrimSizeConfig | PlainMessage | undefined, b: TrimSizeConfig | PlainMessage | undefined): boolean { return proto3.util.equals(TrimSizeConfig, a, b); } } /** * @generated from message preflight.v2.BleedPageDifferenceSummary */ export class BleedPageDifferenceSummary extends Message { /** * @generated from field: repeated preflight.v2.BleedDifference differences = 1; */ differences: BleedDifference[] = []; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "preflight.v2.BleedPageDifferenceSummary"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "differences", kind: "message", T: BleedDifference, repeated: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): BleedPageDifferenceSummary { return new BleedPageDifferenceSummary().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): BleedPageDifferenceSummary { return new BleedPageDifferenceSummary().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): BleedPageDifferenceSummary { return new BleedPageDifferenceSummary().fromJsonString(jsonString, options); } static equals(a: BleedPageDifferenceSummary | PlainMessage | undefined, b: BleedPageDifferenceSummary | PlainMessage | undefined): boolean { return proto3.util.equals(BleedPageDifferenceSummary, a, b); } } /** * @generated from message preflight.v2.BleedDifference */ export class BleedDifference extends Message { /** * @generated from field: preflight.v2.BleedConfig config = 1; */ config?: BleedConfig; /** * @generated from field: repeated int32 pages = 2; */ pages: number[] = []; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "preflight.v2.BleedDifference"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "config", kind: "message", T: BleedConfig }, { no: 2, name: "pages", kind: "scalar", T: 5 /* ScalarType.INT32 */, repeated: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): BleedDifference { return new BleedDifference().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): BleedDifference { return new BleedDifference().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): BleedDifference { return new BleedDifference().fromJsonString(jsonString, options); } static equals(a: BleedDifference | PlainMessage | undefined, b: BleedDifference | PlainMessage | undefined): boolean { return proto3.util.equals(BleedDifference, a, b); } } /** * @generated from message preflight.v2.BleedConfig */ export class BleedConfig extends Message { /** * @generated from field: float bottom = 1; */ bottom = 0; /** * @generated from field: float left = 2; */ left = 0; /** * @generated from field: float right = 3; */ right = 0; /** * @generated from field: float top = 4; */ top = 0; /** * @generated from field: string unit = 5; */ unit = ""; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "preflight.v2.BleedConfig"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "bottom", kind: "scalar", T: 2 /* ScalarType.FLOAT */ }, { no: 2, name: "left", kind: "scalar", T: 2 /* ScalarType.FLOAT */ }, { no: 3, name: "right", kind: "scalar", T: 2 /* ScalarType.FLOAT */ }, { no: 4, name: "top", kind: "scalar", T: 2 /* ScalarType.FLOAT */ }, { no: 5, name: "unit", kind: "scalar", T: 9 /* ScalarType.STRING */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): BleedConfig { return new BleedConfig().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): BleedConfig { return new BleedConfig().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): BleedConfig { return new BleedConfig().fromJsonString(jsonString, options); } static equals(a: BleedConfig | PlainMessage | undefined, b: BleedConfig | PlainMessage | undefined): boolean { return proto3.util.equals(BleedConfig, a, b); } } /** * @generated from message preflight.v2.OrientationPageDifferenceSummary */ export class OrientationPageDifferenceSummary extends Message { /** * @generated from field: repeated preflight.v2.OrientationDifference differences = 1; */ differences: OrientationDifference[] = []; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "preflight.v2.OrientationPageDifferenceSummary"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "differences", kind: "message", T: OrientationDifference, repeated: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): OrientationPageDifferenceSummary { return new OrientationPageDifferenceSummary().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): OrientationPageDifferenceSummary { return new OrientationPageDifferenceSummary().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): OrientationPageDifferenceSummary { return new OrientationPageDifferenceSummary().fromJsonString(jsonString, options); } static equals(a: OrientationPageDifferenceSummary | PlainMessage | undefined, b: OrientationPageDifferenceSummary | PlainMessage | undefined): boolean { return proto3.util.equals(OrientationPageDifferenceSummary, a, b); } } /** * @generated from message preflight.v2.OrientationDifference */ export class OrientationDifference extends Message { /** * @generated from field: preflight.v2.OrientationConfig config = 1; */ config?: OrientationConfig; /** * @generated from field: repeated int32 pages = 2; */ pages: number[] = []; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "preflight.v2.OrientationDifference"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "config", kind: "message", T: OrientationConfig }, { no: 2, name: "pages", kind: "scalar", T: 5 /* ScalarType.INT32 */, repeated: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): OrientationDifference { return new OrientationDifference().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): OrientationDifference { return new OrientationDifference().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): OrientationDifference { return new OrientationDifference().fromJsonString(jsonString, options); } static equals(a: OrientationDifference | PlainMessage | undefined, b: OrientationDifference | PlainMessage | undefined): boolean { return proto3.util.equals(OrientationDifference, a, b); } } /** * @generated from message preflight.v2.OrientationConfig */ export class OrientationConfig extends Message { /** * @generated from field: string orientation = 1; */ orientation = ""; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "preflight.v2.OrientationConfig"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "orientation", kind: "scalar", T: 9 /* ScalarType.STRING */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): OrientationConfig { return new OrientationConfig().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): OrientationConfig { return new OrientationConfig().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): OrientationConfig { return new OrientationConfig().fromJsonString(jsonString, options); } static equals(a: OrientationConfig | PlainMessage | undefined, b: OrientationConfig | PlainMessage | undefined): boolean { return proto3.util.equals(OrientationConfig, a, b); } } /** * @generated from message preflight.v2.ColourPageDifferenceSummary */ export class ColourPageDifferenceSummary extends Message { /** * @generated from field: repeated preflight.v2.ColourDifference differences = 1; */ differences: ColourDifference[] = []; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "preflight.v2.ColourPageDifferenceSummary"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "differences", kind: "message", T: ColourDifference, repeated: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): ColourPageDifferenceSummary { return new ColourPageDifferenceSummary().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): ColourPageDifferenceSummary { return new ColourPageDifferenceSummary().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): ColourPageDifferenceSummary { return new ColourPageDifferenceSummary().fromJsonString(jsonString, options); } static equals(a: ColourPageDifferenceSummary | PlainMessage | undefined, b: ColourPageDifferenceSummary | PlainMessage | undefined): boolean { return proto3.util.equals(ColourPageDifferenceSummary, a, b); } } /** * @generated from message preflight.v2.ColourDifference */ export class ColourDifference extends Message { /** * @generated from field: preflight.v2.ColourConfig config = 1; */ config?: ColourConfig; /** * @generated from field: repeated int32 pages = 2; */ pages: number[] = []; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "preflight.v2.ColourDifference"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "config", kind: "message", T: ColourConfig }, { no: 2, name: "pages", kind: "scalar", T: 5 /* ScalarType.INT32 */, repeated: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): ColourDifference { return new ColourDifference().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): ColourDifference { return new ColourDifference().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): ColourDifference { return new ColourDifference().fromJsonString(jsonString, options); } static equals(a: ColourDifference | PlainMessage | undefined, b: ColourDifference | PlainMessage | undefined): boolean { return proto3.util.equals(ColourDifference, a, b); } } /** * @generated from message preflight.v2.ColourConfig */ export class ColourConfig extends Message { /** * @generated from field: string colour = 1; */ colour = ""; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "preflight.v2.ColourConfig"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "colour", kind: "scalar", T: 9 /* ScalarType.STRING */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): ColourConfig { return new ColourConfig().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): ColourConfig { return new ColourConfig().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): ColourConfig { return new ColourConfig().fromJsonString(jsonString, options); } static equals(a: ColourConfig | PlainMessage | undefined, b: ColourConfig | PlainMessage | undefined): boolean { return proto3.util.equals(ColourConfig, a, b); } } /** * @generated from message preflight.v2.ImageResolutionPageDifferenceSummary */ export class ImageResolutionPageDifferenceSummary extends Message { /** * @generated from field: repeated preflight.v2.ImageResolutionDifference differences = 1; */ differences: ImageResolutionDifference[] = []; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "preflight.v2.ImageResolutionPageDifferenceSummary"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "differences", kind: "message", T: ImageResolutionDifference, repeated: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): ImageResolutionPageDifferenceSummary { return new ImageResolutionPageDifferenceSummary().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): ImageResolutionPageDifferenceSummary { return new ImageResolutionPageDifferenceSummary().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): ImageResolutionPageDifferenceSummary { return new ImageResolutionPageDifferenceSummary().fromJsonString(jsonString, options); } static equals(a: ImageResolutionPageDifferenceSummary | PlainMessage | undefined, b: ImageResolutionPageDifferenceSummary | PlainMessage | undefined): boolean { return proto3.util.equals(ImageResolutionPageDifferenceSummary, a, b); } } /** * @generated from message preflight.v2.ImageResolutionDifference */ export class ImageResolutionDifference extends Message { /** * @generated from field: preflight.v2.ImageResolutionConfig config = 1; */ config?: ImageResolutionConfig; /** * @generated from field: repeated int32 pages = 2; */ pages: number[] = []; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "preflight.v2.ImageResolutionDifference"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "config", kind: "message", T: ImageResolutionConfig }, { no: 2, name: "pages", kind: "scalar", T: 5 /* ScalarType.INT32 */, repeated: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): ImageResolutionDifference { return new ImageResolutionDifference().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): ImageResolutionDifference { return new ImageResolutionDifference().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): ImageResolutionDifference { return new ImageResolutionDifference().fromJsonString(jsonString, options); } static equals(a: ImageResolutionDifference | PlainMessage | undefined, b: ImageResolutionDifference | PlainMessage | undefined): boolean { return proto3.util.equals(ImageResolutionDifference, a, b); } } /** * @generated from message preflight.v2.ImageResolutionConfig */ export class ImageResolutionConfig extends Message { /** * @generated from field: string status = 1; */ status = ""; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "preflight.v2.ImageResolutionConfig"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "status", kind: "scalar", T: 9 /* ScalarType.STRING */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): ImageResolutionConfig { return new ImageResolutionConfig().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): ImageResolutionConfig { return new ImageResolutionConfig().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): ImageResolutionConfig { return new ImageResolutionConfig().fromJsonString(jsonString, options); } static equals(a: ImageResolutionConfig | PlainMessage | undefined, b: ImageResolutionConfig | PlainMessage | undefined): boolean { return proto3.util.equals(ImageResolutionConfig, a, b); } }