// @generated by protoc-gen-es v1.10.1 with parameter "target=ts" // @generated from file preflight/v1/preflight-check-config.proto (package preflight.v1, syntax proto3) /* eslint-disable */ // @ts-nocheck import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; import { Message, proto3, protoInt64, Timestamp } from "@bufbuild/protobuf"; import { ObjectRef } from "../../common/v1/object-ref_pb.js"; import { MeasurementUnit } from "../../common/v1/unit_pb.js"; /** * @generated from message preflight.v1.FileType */ export class FileType extends Message { /** * @generated from field: int64 id = 1; */ id = protoInt64.zero; /** * @generated from field: google.protobuf.Timestamp created_at = 2; */ createdAt?: Timestamp; /** * @generated from field: google.protobuf.Timestamp updated_at = 3; */ updatedAt?: Timestamp; /** * @generated from field: string name = 4; */ name = ""; /** * @generated from field: repeated string extensions = 5; */ extensions: string[] = []; /** * @generated from field: repeated string mime_types = 6; */ mimeTypes: string[] = []; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "preflight.v1.FileType"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "id", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, { no: 2, name: "created_at", kind: "message", T: Timestamp }, { no: 3, name: "updated_at", kind: "message", T: Timestamp }, { no: 4, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 5, name: "extensions", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, { no: 6, name: "mime_types", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): FileType { return new FileType().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): FileType { return new FileType().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): FileType { return new FileType().fromJsonString(jsonString, options); } static equals(a: FileType | PlainMessage | undefined, b: FileType | PlainMessage | undefined): boolean { return proto3.util.equals(FileType, a, b); } } /** * @generated from message preflight.v1.PreflightCheckConfig */ export class PreflightCheckConfig extends Message { /** * @generated from field: int64 id = 1; */ id = protoInt64.zero; /** * @generated from field: google.protobuf.Timestamp created_at = 2; */ createdAt?: Timestamp; /** * @generated from field: google.protobuf.Timestamp updated_at = 3; */ updatedAt?: Timestamp; /** * @generated from field: common.v1.ObjectRef object_ref = 4; */ objectRef?: ObjectRef; /** * @generated from field: int64 supplier_id = 5; */ supplierId = protoInt64.zero; /** * @generated from field: int32 image_res_min = 6; */ imageResMin = 0; /** * @generated from field: int32 image_res_recommended = 7; */ imageResRecommended = 0; /** * @generated from field: repeated preflight.v1.FileType allowed_file_types = 8; */ allowedFileTypes: FileType[] = []; /** * @generated from field: bool require_embedded_fonts = 9; */ requireEmbeddedFonts = false; /** * @generated from field: bool enabled = 10; */ enabled = false; /** * @generated from field: int32 page_count = 11; */ pageCount = 0; /** * @generated from field: bool visible_to_customer = 12; */ visibleToCustomer = false; /** * @generated from field: double height = 14; */ height = 0; /** * @generated from field: double width = 16; */ width = 0; /** * @generated from field: double bleed = 18; */ bleed = 0; /** * @generated from field: double safety_zone = 20; */ safetyZone = 0; /** * @generated from field: common.v1.MeasurementUnit measurement_unit = 21; */ measurementUnit = MeasurementUnit.UNKNOWN; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "preflight.v1.PreflightCheckConfig"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "id", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, { no: 2, name: "created_at", kind: "message", T: Timestamp }, { no: 3, name: "updated_at", kind: "message", T: Timestamp }, { no: 4, name: "object_ref", kind: "message", T: ObjectRef }, { no: 5, name: "supplier_id", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, { no: 6, name: "image_res_min", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, { no: 7, name: "image_res_recommended", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, { no: 8, name: "allowed_file_types", kind: "message", T: FileType, repeated: true }, { no: 9, name: "require_embedded_fonts", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, { no: 10, name: "enabled", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, { no: 11, name: "page_count", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, { no: 12, name: "visible_to_customer", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, { no: 14, name: "height", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ }, { no: 16, name: "width", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ }, { no: 18, name: "bleed", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ }, { no: 20, name: "safety_zone", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ }, { no: 21, name: "measurement_unit", kind: "enum", T: proto3.getEnumType(MeasurementUnit) }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): PreflightCheckConfig { return new PreflightCheckConfig().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): PreflightCheckConfig { return new PreflightCheckConfig().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): PreflightCheckConfig { return new PreflightCheckConfig().fromJsonString(jsonString, options); } static equals(a: PreflightCheckConfig | PlainMessage | undefined, b: PreflightCheckConfig | PlainMessage | undefined): boolean { return proto3.util.equals(PreflightCheckConfig, a, b); } } /** * @generated from message preflight.v1.GetAvailableFileTypesRequest */ export class GetAvailableFileTypesRequest extends Message { constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "preflight.v1.GetAvailableFileTypesRequest"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ ]); static fromBinary(bytes: Uint8Array, options?: Partial): GetAvailableFileTypesRequest { return new GetAvailableFileTypesRequest().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): GetAvailableFileTypesRequest { return new GetAvailableFileTypesRequest().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): GetAvailableFileTypesRequest { return new GetAvailableFileTypesRequest().fromJsonString(jsonString, options); } static equals(a: GetAvailableFileTypesRequest | PlainMessage | undefined, b: GetAvailableFileTypesRequest | PlainMessage | undefined): boolean { return proto3.util.equals(GetAvailableFileTypesRequest, a, b); } } /** * @generated from message preflight.v1.GetAvailableFileTypesResponse */ export class GetAvailableFileTypesResponse extends Message { /** * @generated from field: repeated preflight.v1.FileType filetypes = 1; */ filetypes: FileType[] = []; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "preflight.v1.GetAvailableFileTypesResponse"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "filetypes", kind: "message", T: FileType, repeated: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): GetAvailableFileTypesResponse { return new GetAvailableFileTypesResponse().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): GetAvailableFileTypesResponse { return new GetAvailableFileTypesResponse().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): GetAvailableFileTypesResponse { return new GetAvailableFileTypesResponse().fromJsonString(jsonString, options); } static equals(a: GetAvailableFileTypesResponse | PlainMessage | undefined, b: GetAvailableFileTypesResponse | PlainMessage | undefined): boolean { return proto3.util.equals(GetAvailableFileTypesResponse, a, b); } } /** * @generated from message preflight.v1.SavePreflightCheckConfigRequest */ export class SavePreflightCheckConfigRequest extends Message { /** * @generated from field: common.v1.ObjectRef object_ref = 1; */ objectRef?: ObjectRef; /** * @generated from field: preflight.v1.PreflightCheckConfig config = 2; */ config?: PreflightCheckConfig; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "preflight.v1.SavePreflightCheckConfigRequest"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "object_ref", kind: "message", T: ObjectRef }, { no: 2, name: "config", kind: "message", T: PreflightCheckConfig }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): SavePreflightCheckConfigRequest { return new SavePreflightCheckConfigRequest().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): SavePreflightCheckConfigRequest { return new SavePreflightCheckConfigRequest().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): SavePreflightCheckConfigRequest { return new SavePreflightCheckConfigRequest().fromJsonString(jsonString, options); } static equals(a: SavePreflightCheckConfigRequest | PlainMessage | undefined, b: SavePreflightCheckConfigRequest | PlainMessage | undefined): boolean { return proto3.util.equals(SavePreflightCheckConfigRequest, a, b); } } /** * @generated from message preflight.v1.SavePreflightCheckConfigResponse */ export class SavePreflightCheckConfigResponse extends Message { /** * @generated from field: preflight.v1.PreflightCheckConfig config = 1; */ config?: PreflightCheckConfig; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "preflight.v1.SavePreflightCheckConfigResponse"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "config", kind: "message", T: PreflightCheckConfig }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): SavePreflightCheckConfigResponse { return new SavePreflightCheckConfigResponse().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): SavePreflightCheckConfigResponse { return new SavePreflightCheckConfigResponse().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): SavePreflightCheckConfigResponse { return new SavePreflightCheckConfigResponse().fromJsonString(jsonString, options); } static equals(a: SavePreflightCheckConfigResponse | PlainMessage | undefined, b: SavePreflightCheckConfigResponse | PlainMessage | undefined): boolean { return proto3.util.equals(SavePreflightCheckConfigResponse, a, b); } } /** * @generated from message preflight.v1.GetPreflightCheckConfigRequest */ export class GetPreflightCheckConfigRequest extends Message { /** * @generated from field: common.v1.ObjectRef object_ref = 1; */ objectRef?: ObjectRef; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "preflight.v1.GetPreflightCheckConfigRequest"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "object_ref", kind: "message", T: ObjectRef }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): GetPreflightCheckConfigRequest { return new GetPreflightCheckConfigRequest().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): GetPreflightCheckConfigRequest { return new GetPreflightCheckConfigRequest().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): GetPreflightCheckConfigRequest { return new GetPreflightCheckConfigRequest().fromJsonString(jsonString, options); } static equals(a: GetPreflightCheckConfigRequest | PlainMessage | undefined, b: GetPreflightCheckConfigRequest | PlainMessage | undefined): boolean { return proto3.util.equals(GetPreflightCheckConfigRequest, a, b); } } /** * @generated from message preflight.v1.GetPreflightCheckConfigResponse */ export class GetPreflightCheckConfigResponse extends Message { /** * @generated from field: preflight.v1.PreflightCheckConfig config = 1; */ config?: PreflightCheckConfig; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "preflight.v1.GetPreflightCheckConfigResponse"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "config", kind: "message", T: PreflightCheckConfig }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): GetPreflightCheckConfigResponse { return new GetPreflightCheckConfigResponse().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): GetPreflightCheckConfigResponse { return new GetPreflightCheckConfigResponse().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): GetPreflightCheckConfigResponse { return new GetPreflightCheckConfigResponse().fromJsonString(jsonString, options); } static equals(a: GetPreflightCheckConfigResponse | PlainMessage | undefined, b: GetPreflightCheckConfigResponse | PlainMessage | undefined): boolean { return proto3.util.equals(GetPreflightCheckConfigResponse, a, b); } }