// @generated by protoc-gen-es v1.10.1 with parameter "target=ts" // @generated from file artworking/v1/pdfsplit.proto (package artworking.v1, syntax proto3) /* eslint-disable */ // @ts-nocheck import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; /** * PdfSplitParams defines parameters for PDF page splitting * * @generated from message artworking.v1.PdfSplitParams */ export class PdfSplitParams extends Message { /** * Whether to preserve original filename pattern * * @generated from field: bool preserve_filename = 1; */ preserveFilename = false; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "artworking.v1.PdfSplitParams"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "preserve_filename", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): PdfSplitParams { return new PdfSplitParams().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): PdfSplitParams { return new PdfSplitParams().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): PdfSplitParams { return new PdfSplitParams().fromJsonString(jsonString, options); } static equals(a: PdfSplitParams | PlainMessage | undefined, b: PdfSplitParams | PlainMessage | undefined): boolean { return proto3.util.equals(PdfSplitParams, a, b); } } /** * PdfSplitAction tracks the state of a PDF split operation * * @generated from message artworking.v1.PdfSplitAction */ export class PdfSplitAction extends Message { /** * Execution plan ID from TaskAPI * * @generated from field: uint64 execution_plan_id = 1; */ executionPlanId = protoInt64.zero; /** * Number of pages that were split * * @generated from field: int32 page_count = 2; */ pageCount = 0; /** * Error message if split failed * * @generated from field: string error_message = 3; */ errorMessage = ""; /** * Parameters used for the split * * @generated from field: artworking.v1.PdfSplitParams params = 4; */ params?: PdfSplitParams; /** * IDs of the newly created artwork items (one per page) * * @generated from field: repeated int32 new_item_ids = 5; */ newItemIds: number[] = []; /** * Map of page number to media item ID * * @generated from field: map page_media_items = 6; */ pageMediaItems: { [key: number]: bigint } = {}; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "artworking.v1.PdfSplitAction"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "execution_plan_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, { no: 2, name: "page_count", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, { no: 3, name: "error_message", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 4, name: "params", kind: "message", T: PdfSplitParams }, { no: 5, name: "new_item_ids", kind: "scalar", T: 5 /* ScalarType.INT32 */, repeated: true }, { no: 6, name: "page_media_items", kind: "map", K: 5 /* ScalarType.INT32 */, V: {kind: "scalar", T: 3 /* ScalarType.INT64 */} }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): PdfSplitAction { return new PdfSplitAction().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): PdfSplitAction { return new PdfSplitAction().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): PdfSplitAction { return new PdfSplitAction().fromJsonString(jsonString, options); } static equals(a: PdfSplitAction | PlainMessage | undefined, b: PdfSplitAction | PlainMessage | undefined): boolean { return proto3.util.equals(PdfSplitAction, a, b); } }