// @generated by protoc-gen-es v0.2.0 with parameter "target=ts" // @generated from file preflight/v1/jobconfig.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"; /** * @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 = 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.PreflightJobConfig */ export class PreflightJobConfig 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 job_id = 4; */ jobId = ""; /** * @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; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime = proto3; static readonly typeName = "preflight.v1.PreflightJobConfig"; 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: "job_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { 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 */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): PreflightJobConfig { return new PreflightJobConfig().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): PreflightJobConfig { return new PreflightJobConfig().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): PreflightJobConfig { return new PreflightJobConfig().fromJsonString(jsonString, options); } static equals(a: PreflightJobConfig | PlainMessage | undefined, b: PreflightJobConfig | PlainMessage | undefined): boolean { return proto3.util.equals(PreflightJobConfig, 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 = 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 = 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.SavePreflightJobConfigRequest */ export class SavePreflightJobConfigRequest extends Message { /** * @generated from field: string job_id = 1; */ jobId = ""; /** * @generated from field: preflight.v1.PreflightJobConfig config = 2; */ config?: PreflightJobConfig; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime = proto3; static readonly typeName = "preflight.v1.SavePreflightJobConfigRequest"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "job_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 2, name: "config", kind: "message", T: PreflightJobConfig }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): SavePreflightJobConfigRequest { return new SavePreflightJobConfigRequest().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): SavePreflightJobConfigRequest { return new SavePreflightJobConfigRequest().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): SavePreflightJobConfigRequest { return new SavePreflightJobConfigRequest().fromJsonString(jsonString, options); } static equals(a: SavePreflightJobConfigRequest | PlainMessage | undefined, b: SavePreflightJobConfigRequest | PlainMessage | undefined): boolean { return proto3.util.equals(SavePreflightJobConfigRequest, a, b); } } /** * @generated from message preflight.v1.SavePreflightJobConfigResponse */ export class SavePreflightJobConfigResponse extends Message { /** * @generated from field: preflight.v1.PreflightJobConfig config = 1; */ config?: PreflightJobConfig; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime = proto3; static readonly typeName = "preflight.v1.SavePreflightJobConfigResponse"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "config", kind: "message", T: PreflightJobConfig }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): SavePreflightJobConfigResponse { return new SavePreflightJobConfigResponse().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): SavePreflightJobConfigResponse { return new SavePreflightJobConfigResponse().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): SavePreflightJobConfigResponse { return new SavePreflightJobConfigResponse().fromJsonString(jsonString, options); } static equals(a: SavePreflightJobConfigResponse | PlainMessage | undefined, b: SavePreflightJobConfigResponse | PlainMessage | undefined): boolean { return proto3.util.equals(SavePreflightJobConfigResponse, a, b); } } /** * @generated from message preflight.v1.GetPreflightJobConfigRequest */ export class GetPreflightJobConfigRequest extends Message { /** * @generated from field: string job_id = 1; */ jobId = ""; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime = proto3; static readonly typeName = "preflight.v1.GetPreflightJobConfigRequest"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "job_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): GetPreflightJobConfigRequest { return new GetPreflightJobConfigRequest().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): GetPreflightJobConfigRequest { return new GetPreflightJobConfigRequest().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): GetPreflightJobConfigRequest { return new GetPreflightJobConfigRequest().fromJsonString(jsonString, options); } static equals(a: GetPreflightJobConfigRequest | PlainMessage | undefined, b: GetPreflightJobConfigRequest | PlainMessage | undefined): boolean { return proto3.util.equals(GetPreflightJobConfigRequest, a, b); } } /** * @generated from message preflight.v1.GetPreflightJobConfigResponse */ export class GetPreflightJobConfigResponse extends Message { /** * @generated from field: preflight.v1.PreflightJobConfig config = 1; */ config?: PreflightJobConfig; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime = proto3; static readonly typeName = "preflight.v1.GetPreflightJobConfigResponse"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "config", kind: "message", T: PreflightJobConfig }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): GetPreflightJobConfigResponse { return new GetPreflightJobConfigResponse().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): GetPreflightJobConfigResponse { return new GetPreflightJobConfigResponse().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): GetPreflightJobConfigResponse { return new GetPreflightJobConfigResponse().fromJsonString(jsonString, options); } static equals(a: GetPreflightJobConfigResponse | PlainMessage | undefined, b: GetPreflightJobConfigResponse | PlainMessage | undefined): boolean { return proto3.util.equals(GetPreflightJobConfigResponse, a, b); } }