// @generated by protoc-gen-es v1.10.1 with parameter "target=ts" // @generated from file preflight/v2/preset-template.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, Timestamp } from "@bufbuild/protobuf"; /** * @generated from enum preflight.v2.Orientation */ export enum Orientation { /** * @generated from enum value: ORIENTATION_UNSPECIFIED = 0; */ UNSPECIFIED = 0, /** * @generated from enum value: ORIENTATION_PORTRAIT = 1; */ PORTRAIT = 1, /** * @generated from enum value: ORIENTATION_LANDSCAPE = 2; */ LANDSCAPE = 2, /** * @generated from enum value: ORIENTATION_SQUARE = 3; */ SQUARE = 3, } // Retrieve enum metadata with: proto3.getEnumType(Orientation) proto3.util.setEnumType(Orientation, "preflight.v2.Orientation", [ { no: 0, name: "ORIENTATION_UNSPECIFIED" }, { no: 1, name: "ORIENTATION_PORTRAIT" }, { no: 2, name: "ORIENTATION_LANDSCAPE" }, { no: 3, name: "ORIENTATION_SQUARE" }, ]); /** * @generated from message preflight.v2.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.v2.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.v2.PresetTemplate */ export class PresetTemplate 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: preflight.v2.PresetTemplate.PageCountCheck page_count_check = 5; */ pageCountCheck?: PresetTemplate_PageCountCheck; /** * @generated from field: preflight.v2.PresetTemplate.AllowedFileTypesCheck allowed_file_types_check = 6; */ allowedFileTypesCheck?: PresetTemplate_AllowedFileTypesCheck; /** * @generated from field: preflight.v2.PresetTemplate.TrimSizeCheck trim_size_check = 7; */ trimSizeCheck?: PresetTemplate_TrimSizeCheck; /** * @generated from field: preflight.v2.PresetTemplate.FixedOrientationCheck fixed_orientation_check = 8; */ fixedOrientationCheck?: PresetTemplate_FixedOrientationCheck; /** * @generated from field: preflight.v2.PresetTemplate.BleedSizeCheck bleed_size_check = 9; */ bleedSizeCheck?: PresetTemplate_BleedSizeCheck; /** * @generated from field: preflight.v2.PresetTemplate.SafeZoneCheck safe_zone_check = 10; */ safeZoneCheck?: PresetTemplate_SafeZoneCheck; /** * @generated from field: preflight.v2.PresetTemplate.ImageResolutionCheck image_resolution_check = 11; */ imageResolutionCheck?: PresetTemplate_ImageResolutionCheck; /** * @generated from field: bool enable_customer_facing_checks = 12; */ enableCustomerFacingChecks = false; /** * @generated from field: bool is_default = 13; */ isDefault = false; /** * @generated from field: preflight.v2.PresetTemplate.FontsEmbeddedCheck fonts_embedded_check = 14; */ fontsEmbeddedCheck?: PresetTemplate_FontsEmbeddedCheck; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "preflight.v2.PresetTemplate"; 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: "page_count_check", kind: "message", T: PresetTemplate_PageCountCheck }, { no: 6, name: "allowed_file_types_check", kind: "message", T: PresetTemplate_AllowedFileTypesCheck }, { no: 7, name: "trim_size_check", kind: "message", T: PresetTemplate_TrimSizeCheck }, { no: 8, name: "fixed_orientation_check", kind: "message", T: PresetTemplate_FixedOrientationCheck }, { no: 9, name: "bleed_size_check", kind: "message", T: PresetTemplate_BleedSizeCheck }, { no: 10, name: "safe_zone_check", kind: "message", T: PresetTemplate_SafeZoneCheck }, { no: 11, name: "image_resolution_check", kind: "message", T: PresetTemplate_ImageResolutionCheck }, { no: 12, name: "enable_customer_facing_checks", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, { no: 13, name: "is_default", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, { no: 14, name: "fonts_embedded_check", kind: "message", T: PresetTemplate_FontsEmbeddedCheck }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): PresetTemplate { return new PresetTemplate().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): PresetTemplate { return new PresetTemplate().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): PresetTemplate { return new PresetTemplate().fromJsonString(jsonString, options); } static equals(a: PresetTemplate | PlainMessage | undefined, b: PresetTemplate | PlainMessage | undefined): boolean { return proto3.util.equals(PresetTemplate, a, b); } } /** * @generated from message preflight.v2.PresetTemplate.PageCountCheck */ export class PresetTemplate_PageCountCheck extends Message { /** * @generated from field: bool enabled = 1; */ enabled = false; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "preflight.v2.PresetTemplate.PageCountCheck"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "enabled", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): PresetTemplate_PageCountCheck { return new PresetTemplate_PageCountCheck().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): PresetTemplate_PageCountCheck { return new PresetTemplate_PageCountCheck().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): PresetTemplate_PageCountCheck { return new PresetTemplate_PageCountCheck().fromJsonString(jsonString, options); } static equals(a: PresetTemplate_PageCountCheck | PlainMessage | undefined, b: PresetTemplate_PageCountCheck | PlainMessage | undefined): boolean { return proto3.util.equals(PresetTemplate_PageCountCheck, a, b); } } /** * @generated from message preflight.v2.PresetTemplate.AllowedFileTypesCheck */ export class PresetTemplate_AllowedFileTypesCheck extends Message { /** * @generated from field: bool enabled = 1; */ enabled = false; /** * @generated from field: repeated preflight.v2.FileType allowed_file_types = 8; */ allowedFileTypes: FileType[] = []; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "preflight.v2.PresetTemplate.AllowedFileTypesCheck"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "enabled", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, { no: 8, name: "allowed_file_types", kind: "message", T: FileType, repeated: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): PresetTemplate_AllowedFileTypesCheck { return new PresetTemplate_AllowedFileTypesCheck().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): PresetTemplate_AllowedFileTypesCheck { return new PresetTemplate_AllowedFileTypesCheck().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): PresetTemplate_AllowedFileTypesCheck { return new PresetTemplate_AllowedFileTypesCheck().fromJsonString(jsonString, options); } static equals(a: PresetTemplate_AllowedFileTypesCheck | PlainMessage | undefined, b: PresetTemplate_AllowedFileTypesCheck | PlainMessage | undefined): boolean { return proto3.util.equals(PresetTemplate_AllowedFileTypesCheck, a, b); } } /** * @generated from message preflight.v2.PresetTemplate.TrimSizeCheck */ export class PresetTemplate_TrimSizeCheck extends Message { /** * @generated from field: bool enabled = 1; */ enabled = false; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "preflight.v2.PresetTemplate.TrimSizeCheck"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "enabled", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): PresetTemplate_TrimSizeCheck { return new PresetTemplate_TrimSizeCheck().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): PresetTemplate_TrimSizeCheck { return new PresetTemplate_TrimSizeCheck().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): PresetTemplate_TrimSizeCheck { return new PresetTemplate_TrimSizeCheck().fromJsonString(jsonString, options); } static equals(a: PresetTemplate_TrimSizeCheck | PlainMessage | undefined, b: PresetTemplate_TrimSizeCheck | PlainMessage | undefined): boolean { return proto3.util.equals(PresetTemplate_TrimSizeCheck, a, b); } } /** * @generated from message preflight.v2.PresetTemplate.FixedOrientationCheck */ export class PresetTemplate_FixedOrientationCheck extends Message { /** * @generated from field: bool enabled = 1; */ enabled = false; /** * @generated from field: preflight.v2.Orientation orientation = 2; */ orientation = Orientation.UNSPECIFIED; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "preflight.v2.PresetTemplate.FixedOrientationCheck"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "enabled", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, { no: 2, name: "orientation", kind: "enum", T: proto3.getEnumType(Orientation) }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): PresetTemplate_FixedOrientationCheck { return new PresetTemplate_FixedOrientationCheck().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): PresetTemplate_FixedOrientationCheck { return new PresetTemplate_FixedOrientationCheck().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): PresetTemplate_FixedOrientationCheck { return new PresetTemplate_FixedOrientationCheck().fromJsonString(jsonString, options); } static equals(a: PresetTemplate_FixedOrientationCheck | PlainMessage | undefined, b: PresetTemplate_FixedOrientationCheck | PlainMessage | undefined): boolean { return proto3.util.equals(PresetTemplate_FixedOrientationCheck, a, b); } } /** * @generated from message preflight.v2.PresetTemplate.BleedSizeCheck */ export class PresetTemplate_BleedSizeCheck extends Message { /** * @generated from field: bool enabled = 1; */ enabled = false; /** * @generated from field: double bleed_size_top = 2; */ bleedSizeTop = 0; /** * @generated from field: double bleed_size_bottom = 3; */ bleedSizeBottom = 0; /** * @generated from field: double bleed_size_left = 4; */ bleedSizeLeft = 0; /** * @generated from field: double bleed_size_right = 5; */ bleedSizeRight = 0; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "preflight.v2.PresetTemplate.BleedSizeCheck"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "enabled", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, { no: 2, name: "bleed_size_top", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ }, { no: 3, name: "bleed_size_bottom", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ }, { no: 4, name: "bleed_size_left", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ }, { no: 5, name: "bleed_size_right", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): PresetTemplate_BleedSizeCheck { return new PresetTemplate_BleedSizeCheck().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): PresetTemplate_BleedSizeCheck { return new PresetTemplate_BleedSizeCheck().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): PresetTemplate_BleedSizeCheck { return new PresetTemplate_BleedSizeCheck().fromJsonString(jsonString, options); } static equals(a: PresetTemplate_BleedSizeCheck | PlainMessage | undefined, b: PresetTemplate_BleedSizeCheck | PlainMessage | undefined): boolean { return proto3.util.equals(PresetTemplate_BleedSizeCheck, a, b); } } /** * @generated from message preflight.v2.PresetTemplate.SafeZoneCheck */ export class PresetTemplate_SafeZoneCheck extends Message { /** * @generated from field: bool enabled = 1; */ enabled = false; /** * @generated from field: double safe_zone_top = 2; */ safeZoneTop = 0; /** * @generated from field: double safe_zone_bottom = 3; */ safeZoneBottom = 0; /** * @generated from field: double safe_zone_left = 4; */ safeZoneLeft = 0; /** * @generated from field: double safe_zone_right = 5; */ safeZoneRight = 0; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "preflight.v2.PresetTemplate.SafeZoneCheck"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "enabled", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, { no: 2, name: "safe_zone_top", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ }, { no: 3, name: "safe_zone_bottom", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ }, { no: 4, name: "safe_zone_left", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ }, { no: 5, name: "safe_zone_right", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): PresetTemplate_SafeZoneCheck { return new PresetTemplate_SafeZoneCheck().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): PresetTemplate_SafeZoneCheck { return new PresetTemplate_SafeZoneCheck().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): PresetTemplate_SafeZoneCheck { return new PresetTemplate_SafeZoneCheck().fromJsonString(jsonString, options); } static equals(a: PresetTemplate_SafeZoneCheck | PlainMessage | undefined, b: PresetTemplate_SafeZoneCheck | PlainMessage | undefined): boolean { return proto3.util.equals(PresetTemplate_SafeZoneCheck, a, b); } } /** * @generated from message preflight.v2.PresetTemplate.ImageResolutionCheck */ export class PresetTemplate_ImageResolutionCheck extends Message { /** * @generated from field: bool enabled = 1; */ enabled = false; /** * @generated from field: int32 image_res_error_below = 2; */ imageResErrorBelow = 0; /** * @generated from field: int32 image_res_warn_below = 3; */ imageResWarnBelow = 0; /** * @generated from field: int32 image_res_recommended = 4; */ imageResRecommended = 0; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "preflight.v2.PresetTemplate.ImageResolutionCheck"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "enabled", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, { no: 2, name: "image_res_error_below", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, { no: 3, name: "image_res_warn_below", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, { no: 4, name: "image_res_recommended", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): PresetTemplate_ImageResolutionCheck { return new PresetTemplate_ImageResolutionCheck().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): PresetTemplate_ImageResolutionCheck { return new PresetTemplate_ImageResolutionCheck().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): PresetTemplate_ImageResolutionCheck { return new PresetTemplate_ImageResolutionCheck().fromJsonString(jsonString, options); } static equals(a: PresetTemplate_ImageResolutionCheck | PlainMessage | undefined, b: PresetTemplate_ImageResolutionCheck | PlainMessage | undefined): boolean { return proto3.util.equals(PresetTemplate_ImageResolutionCheck, a, b); } } /** * @generated from message preflight.v2.PresetTemplate.FontsEmbeddedCheck */ export class PresetTemplate_FontsEmbeddedCheck extends Message { /** * @generated from field: bool enabled = 1; */ enabled = false; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "preflight.v2.PresetTemplate.FontsEmbeddedCheck"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "enabled", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): PresetTemplate_FontsEmbeddedCheck { return new PresetTemplate_FontsEmbeddedCheck().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): PresetTemplate_FontsEmbeddedCheck { return new PresetTemplate_FontsEmbeddedCheck().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): PresetTemplate_FontsEmbeddedCheck { return new PresetTemplate_FontsEmbeddedCheck().fromJsonString(jsonString, options); } static equals(a: PresetTemplate_FontsEmbeddedCheck | PlainMessage | undefined, b: PresetTemplate_FontsEmbeddedCheck | PlainMessage | undefined): boolean { return proto3.util.equals(PresetTemplate_FontsEmbeddedCheck, a, b); } } /** * Preset Template Request/Response Messages * * @generated from message preflight.v2.GetPresetTemplateRequest */ export class GetPresetTemplateRequest extends Message { /** * @generated from field: int64 id = 1; */ id = protoInt64.zero; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "preflight.v2.GetPresetTemplateRequest"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "id", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): GetPresetTemplateRequest { return new GetPresetTemplateRequest().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): GetPresetTemplateRequest { return new GetPresetTemplateRequest().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): GetPresetTemplateRequest { return new GetPresetTemplateRequest().fromJsonString(jsonString, options); } static equals(a: GetPresetTemplateRequest | PlainMessage | undefined, b: GetPresetTemplateRequest | PlainMessage | undefined): boolean { return proto3.util.equals(GetPresetTemplateRequest, a, b); } } /** * @generated from message preflight.v2.GetPresetTemplateResponse */ export class GetPresetTemplateResponse extends Message { /** * @generated from field: preflight.v2.PresetTemplate template = 1; */ template?: PresetTemplate; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "preflight.v2.GetPresetTemplateResponse"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "template", kind: "message", T: PresetTemplate }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): GetPresetTemplateResponse { return new GetPresetTemplateResponse().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): GetPresetTemplateResponse { return new GetPresetTemplateResponse().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): GetPresetTemplateResponse { return new GetPresetTemplateResponse().fromJsonString(jsonString, options); } static equals(a: GetPresetTemplateResponse | PlainMessage | undefined, b: GetPresetTemplateResponse | PlainMessage | undefined): boolean { return proto3.util.equals(GetPresetTemplateResponse, a, b); } } /** * @generated from message preflight.v2.ListPresetTemplatesRequest */ export class ListPresetTemplatesRequest extends Message { constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "preflight.v2.ListPresetTemplatesRequest"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ ]); static fromBinary(bytes: Uint8Array, options?: Partial): ListPresetTemplatesRequest { return new ListPresetTemplatesRequest().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): ListPresetTemplatesRequest { return new ListPresetTemplatesRequest().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): ListPresetTemplatesRequest { return new ListPresetTemplatesRequest().fromJsonString(jsonString, options); } static equals(a: ListPresetTemplatesRequest | PlainMessage | undefined, b: ListPresetTemplatesRequest | PlainMessage | undefined): boolean { return proto3.util.equals(ListPresetTemplatesRequest, a, b); } } /** * @generated from message preflight.v2.ListPresetTemplatesResponse */ export class ListPresetTemplatesResponse extends Message { /** * @generated from field: repeated preflight.v2.PresetTemplate templates = 1; */ templates: PresetTemplate[] = []; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "preflight.v2.ListPresetTemplatesResponse"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "templates", kind: "message", T: PresetTemplate, repeated: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): ListPresetTemplatesResponse { return new ListPresetTemplatesResponse().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): ListPresetTemplatesResponse { return new ListPresetTemplatesResponse().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): ListPresetTemplatesResponse { return new ListPresetTemplatesResponse().fromJsonString(jsonString, options); } static equals(a: ListPresetTemplatesResponse | PlainMessage | undefined, b: ListPresetTemplatesResponse | PlainMessage | undefined): boolean { return proto3.util.equals(ListPresetTemplatesResponse, a, b); } } /** * @generated from message preflight.v2.CreatePresetTemplateRequest */ export class CreatePresetTemplateRequest extends Message { /** * @generated from field: preflight.v2.PresetTemplate template = 1; */ template?: PresetTemplate; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "preflight.v2.CreatePresetTemplateRequest"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "template", kind: "message", T: PresetTemplate }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): CreatePresetTemplateRequest { return new CreatePresetTemplateRequest().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): CreatePresetTemplateRequest { return new CreatePresetTemplateRequest().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): CreatePresetTemplateRequest { return new CreatePresetTemplateRequest().fromJsonString(jsonString, options); } static equals(a: CreatePresetTemplateRequest | PlainMessage | undefined, b: CreatePresetTemplateRequest | PlainMessage | undefined): boolean { return proto3.util.equals(CreatePresetTemplateRequest, a, b); } } /** * @generated from message preflight.v2.CreatePresetTemplateResponse */ export class CreatePresetTemplateResponse extends Message { /** * @generated from field: preflight.v2.PresetTemplate template = 1; */ template?: PresetTemplate; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "preflight.v2.CreatePresetTemplateResponse"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "template", kind: "message", T: PresetTemplate }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): CreatePresetTemplateResponse { return new CreatePresetTemplateResponse().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): CreatePresetTemplateResponse { return new CreatePresetTemplateResponse().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): CreatePresetTemplateResponse { return new CreatePresetTemplateResponse().fromJsonString(jsonString, options); } static equals(a: CreatePresetTemplateResponse | PlainMessage | undefined, b: CreatePresetTemplateResponse | PlainMessage | undefined): boolean { return proto3.util.equals(CreatePresetTemplateResponse, a, b); } } /** * @generated from message preflight.v2.UpdatePresetTemplateRequest */ export class UpdatePresetTemplateRequest extends Message { /** * @generated from field: preflight.v2.PresetTemplate template = 1; */ template?: PresetTemplate; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "preflight.v2.UpdatePresetTemplateRequest"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "template", kind: "message", T: PresetTemplate }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): UpdatePresetTemplateRequest { return new UpdatePresetTemplateRequest().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): UpdatePresetTemplateRequest { return new UpdatePresetTemplateRequest().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): UpdatePresetTemplateRequest { return new UpdatePresetTemplateRequest().fromJsonString(jsonString, options); } static equals(a: UpdatePresetTemplateRequest | PlainMessage | undefined, b: UpdatePresetTemplateRequest | PlainMessage | undefined): boolean { return proto3.util.equals(UpdatePresetTemplateRequest, a, b); } } /** * @generated from message preflight.v2.UpdatePresetTemplateResponse */ export class UpdatePresetTemplateResponse extends Message { /** * @generated from field: preflight.v2.PresetTemplate template = 1; */ template?: PresetTemplate; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "preflight.v2.UpdatePresetTemplateResponse"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "template", kind: "message", T: PresetTemplate }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): UpdatePresetTemplateResponse { return new UpdatePresetTemplateResponse().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): UpdatePresetTemplateResponse { return new UpdatePresetTemplateResponse().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): UpdatePresetTemplateResponse { return new UpdatePresetTemplateResponse().fromJsonString(jsonString, options); } static equals(a: UpdatePresetTemplateResponse | PlainMessage | undefined, b: UpdatePresetTemplateResponse | PlainMessage | undefined): boolean { return proto3.util.equals(UpdatePresetTemplateResponse, a, b); } } /** * @generated from message preflight.v2.SetPresetTemplateAsDefaultRequest */ export class SetPresetTemplateAsDefaultRequest extends Message { /** * @generated from field: int64 id = 1; */ id = protoInt64.zero; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "preflight.v2.SetPresetTemplateAsDefaultRequest"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "id", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): SetPresetTemplateAsDefaultRequest { return new SetPresetTemplateAsDefaultRequest().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): SetPresetTemplateAsDefaultRequest { return new SetPresetTemplateAsDefaultRequest().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): SetPresetTemplateAsDefaultRequest { return new SetPresetTemplateAsDefaultRequest().fromJsonString(jsonString, options); } static equals(a: SetPresetTemplateAsDefaultRequest | PlainMessage | undefined, b: SetPresetTemplateAsDefaultRequest | PlainMessage | undefined): boolean { return proto3.util.equals(SetPresetTemplateAsDefaultRequest, a, b); } } /** * @generated from message preflight.v2.SetPresetTemplateAsDefaultResponse */ export class SetPresetTemplateAsDefaultResponse extends Message { /** * @generated from field: preflight.v2.PresetTemplate template = 1; */ template?: PresetTemplate; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "preflight.v2.SetPresetTemplateAsDefaultResponse"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "template", kind: "message", T: PresetTemplate }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): SetPresetTemplateAsDefaultResponse { return new SetPresetTemplateAsDefaultResponse().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): SetPresetTemplateAsDefaultResponse { return new SetPresetTemplateAsDefaultResponse().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): SetPresetTemplateAsDefaultResponse { return new SetPresetTemplateAsDefaultResponse().fromJsonString(jsonString, options); } static equals(a: SetPresetTemplateAsDefaultResponse | PlainMessage | undefined, b: SetPresetTemplateAsDefaultResponse | PlainMessage | undefined): boolean { return proto3.util.equals(SetPresetTemplateAsDefaultResponse, a, b); } } /** * Delete a preset template by ID, only if it is not the default template * * @generated from message preflight.v2.DeletePresetTemplateRequest */ export class DeletePresetTemplateRequest extends Message { /** * @generated from field: int64 id = 1; */ id = protoInt64.zero; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "preflight.v2.DeletePresetTemplateRequest"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "id", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): DeletePresetTemplateRequest { return new DeletePresetTemplateRequest().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): DeletePresetTemplateRequest { return new DeletePresetTemplateRequest().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): DeletePresetTemplateRequest { return new DeletePresetTemplateRequest().fromJsonString(jsonString, options); } static equals(a: DeletePresetTemplateRequest | PlainMessage | undefined, b: DeletePresetTemplateRequest | PlainMessage | undefined): boolean { return proto3.util.equals(DeletePresetTemplateRequest, a, b); } } /** * Returns true if the template was deleted successfully * * @generated from message preflight.v2.DeletePresetTemplateResponse */ export class DeletePresetTemplateResponse extends Message { /** * @generated from field: bool success = 1; */ success = false; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "preflight.v2.DeletePresetTemplateResponse"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "success", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): DeletePresetTemplateResponse { return new DeletePresetTemplateResponse().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): DeletePresetTemplateResponse { return new DeletePresetTemplateResponse().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): DeletePresetTemplateResponse { return new DeletePresetTemplateResponse().fromJsonString(jsonString, options); } static equals(a: DeletePresetTemplateResponse | PlainMessage | undefined, b: DeletePresetTemplateResponse | PlainMessage | undefined): boolean { return proto3.util.equals(DeletePresetTemplateResponse, a, b); } } /** * @generated from message preflight.v2.GetDefaultPresetTemplateRequest */ export class GetDefaultPresetTemplateRequest extends Message { constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "preflight.v2.GetDefaultPresetTemplateRequest"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ ]); static fromBinary(bytes: Uint8Array, options?: Partial): GetDefaultPresetTemplateRequest { return new GetDefaultPresetTemplateRequest().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): GetDefaultPresetTemplateRequest { return new GetDefaultPresetTemplateRequest().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): GetDefaultPresetTemplateRequest { return new GetDefaultPresetTemplateRequest().fromJsonString(jsonString, options); } static equals(a: GetDefaultPresetTemplateRequest | PlainMessage | undefined, b: GetDefaultPresetTemplateRequest | PlainMessage | undefined): boolean { return proto3.util.equals(GetDefaultPresetTemplateRequest, a, b); } } /** * @generated from message preflight.v2.GetDefaultPresetTemplateResponse */ export class GetDefaultPresetTemplateResponse extends Message { /** * @generated from field: preflight.v2.PresetTemplate template = 1; */ template?: PresetTemplate; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "preflight.v2.GetDefaultPresetTemplateResponse"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "template", kind: "message", T: PresetTemplate }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): GetDefaultPresetTemplateResponse { return new GetDefaultPresetTemplateResponse().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): GetDefaultPresetTemplateResponse { return new GetDefaultPresetTemplateResponse().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): GetDefaultPresetTemplateResponse { return new GetDefaultPresetTemplateResponse().fromJsonString(jsonString, options); } static equals(a: GetDefaultPresetTemplateResponse | PlainMessage | undefined, b: GetDefaultPresetTemplateResponse | PlainMessage | undefined): boolean { return proto3.util.equals(GetDefaultPresetTemplateResponse, a, b); } }