// @generated by protoc-gen-es v1.10.1 with parameter "target=ts" // @generated from file preflight/v1/preflight.proto (package preflight.v1, syntax proto3) /* eslint-disable */ // @ts-nocheck import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; import { Message, proto3 } from "@bufbuild/protobuf"; import { ObjectRef } from "../../common/v1/object-ref_pb.js"; /** * @generated from enum preflight.v1.PreflightState */ export enum PreflightState { /** * @generated from enum value: PreflightStateUndefined = 0; */ PreflightStateUndefined = 0, /** * @generated from enum value: PreflightStateUnknown = 1; */ PreflightStateUnknown = 1, /** * @generated from enum value: PreflightStateInit = 2; */ PreflightStateInit = 2, /** * @generated from enum value: PreflightStateDownloading = 3; */ PreflightStateDownloading = 3, /** * @generated from enum value: PreflightStateDownloadComplete = 4; */ PreflightStateDownloadComplete = 4, /** * @generated from enum value: PreflightStateProcessingQueue = 5; */ PreflightStateProcessingQueue = 5, /** * @generated from enum value: PreflightStateProcessing = 6; */ PreflightStateProcessing = 6, /** * @generated from enum value: PreflightStateProcessingComplete = 7; */ PreflightStateProcessingComplete = 7, /** * @generated from enum value: PreflightStateError = 8; */ PreflightStateError = 8, } // Retrieve enum metadata with: proto3.getEnumType(PreflightState) proto3.util.setEnumType(PreflightState, "preflight.v1.PreflightState", [ { no: 0, name: "PreflightStateUndefined" }, { no: 1, name: "PreflightStateUnknown" }, { no: 2, name: "PreflightStateInit" }, { no: 3, name: "PreflightStateDownloading" }, { no: 4, name: "PreflightStateDownloadComplete" }, { no: 5, name: "PreflightStateProcessingQueue" }, { no: 6, name: "PreflightStateProcessing" }, { no: 7, name: "PreflightStateProcessingComplete" }, { no: 8, name: "PreflightStateError" }, ]); /** * @generated from enum preflight.v1.PreflightWarningLevel */ export enum PreflightWarningLevel { /** * @generated from enum value: PreflightWarningLevelNone = 0; */ PreflightWarningLevelNone = 0, /** * @generated from enum value: PreflightWarningLevelWarn = 1; */ PreflightWarningLevelWarn = 1, /** * @generated from enum value: PreflightWarningLevelError = 2; */ PreflightWarningLevelError = 2, /** * @generated from enum value: PreflightWarningLevelGood = 3; */ PreflightWarningLevelGood = 3, } // Retrieve enum metadata with: proto3.getEnumType(PreflightWarningLevel) proto3.util.setEnumType(PreflightWarningLevel, "preflight.v1.PreflightWarningLevel", [ { no: 0, name: "PreflightWarningLevelNone" }, { no: 1, name: "PreflightWarningLevelWarn" }, { no: 2, name: "PreflightWarningLevelError" }, { no: 3, name: "PreflightWarningLevelGood" }, ]); /** * @generated from message preflight.v1.Box */ export class Box extends Message { /** * @generated from field: string top = 1; */ top = ""; /** * @generated from field: string right = 2; */ right = ""; /** * @generated from field: string bottom = 3; */ bottom = ""; /** * @generated from field: string left = 4; */ left = ""; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "preflight.v1.Box"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "top", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 2, name: "right", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 3, name: "bottom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 4, name: "left", kind: "scalar", T: 9 /* ScalarType.STRING */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): Box { return new Box().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): Box { return new Box().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): Box { return new Box().fromJsonString(jsonString, options); } static equals(a: Box | PlainMessage | undefined, b: Box | PlainMessage | undefined): boolean { return proto3.util.equals(Box, a, b); } } /** * @generated from message preflight.v1.PreflightAttribute */ export class PreflightAttribute extends Message { /** * @generated from field: string key = 1; */ key = ""; /** * @generated from field: string name = 2; */ name = ""; /** * @generated from field: string value = 3; */ value = ""; /** * @generated from field: string category = 4; */ category = ""; /** * @generated from field: preflight.v1.Box value_box = 5; */ valueBox?: Box; /** * @generated from field: string unit = 6; */ unit = ""; /** * @generated from field: preflight.v1.PreflightWarning warning = 7; */ warning?: PreflightWarning; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "preflight.v1.PreflightAttribute"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "key", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 2, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 3, name: "value", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 4, name: "category", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 5, name: "value_box", kind: "message", T: Box }, { no: 6, name: "unit", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 7, name: "warning", kind: "message", T: PreflightWarning }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): PreflightAttribute { return new PreflightAttribute().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): PreflightAttribute { return new PreflightAttribute().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): PreflightAttribute { return new PreflightAttribute().fromJsonString(jsonString, options); } static equals(a: PreflightAttribute | PlainMessage | undefined, b: PreflightAttribute | PlainMessage | undefined): boolean { return proto3.util.equals(PreflightAttribute, a, b); } } /** * @generated from message preflight.v1.PreflightWarning */ export class PreflightWarning extends Message { /** * @generated from field: string name = 1; */ name = ""; /** * @generated from field: preflight.v1.PreflightWarningLevel warning_level = 2; */ warningLevel = PreflightWarningLevel.PreflightWarningLevelNone; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "preflight.v1.PreflightWarning"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 2, name: "warning_level", kind: "enum", T: proto3.getEnumType(PreflightWarningLevel) }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): PreflightWarning { return new PreflightWarning().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): PreflightWarning { return new PreflightWarning().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): PreflightWarning { return new PreflightWarning().fromJsonString(jsonString, options); } static equals(a: PreflightWarning | PlainMessage | undefined, b: PreflightWarning | PlainMessage | undefined): boolean { return proto3.util.equals(PreflightWarning, a, b); } } /** * @generated from message preflight.v1.PreflightAttributeGroup */ export class PreflightAttributeGroup extends Message { /** * @generated from field: string name = 1; */ name = ""; /** * @generated from field: string value = 2; */ value = ""; /** * @generated from field: bool expandable = 3; */ expandable = false; /** * @generated from field: repeated preflight.v1.PreflightWarning warnings = 4; */ warnings: PreflightWarning[] = []; /** * @generated from field: repeated preflight.v1.PreflightAttribute attributes = 5; */ attributes: PreflightAttribute[] = []; /** * @generated from field: repeated preflight.v1.PreflightAttributeGroup groups = 6; */ groups: PreflightAttributeGroup[] = []; /** * @generated from field: int32 order = 7; */ order = 0; /** * @generated from field: string group_icon = 8; */ groupIcon = ""; /** * @generated from field: bool pre_expanded = 9; */ preExpanded = false; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "preflight.v1.PreflightAttributeGroup"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 2, name: "value", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 3, name: "expandable", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, { no: 4, name: "warnings", kind: "message", T: PreflightWarning, repeated: true }, { no: 5, name: "attributes", kind: "message", T: PreflightAttribute, repeated: true }, { no: 6, name: "groups", kind: "message", T: PreflightAttributeGroup, repeated: true }, { no: 7, name: "order", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, { no: 8, name: "group_icon", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 9, name: "pre_expanded", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): PreflightAttributeGroup { return new PreflightAttributeGroup().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): PreflightAttributeGroup { return new PreflightAttributeGroup().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): PreflightAttributeGroup { return new PreflightAttributeGroup().fromJsonString(jsonString, options); } static equals(a: PreflightAttributeGroup | PlainMessage | undefined, b: PreflightAttributeGroup | PlainMessage | undefined): boolean { return proto3.util.equals(PreflightAttributeGroup, a, b); } } /** * @generated from message preflight.v1.PreflightReportPage */ export class PreflightReportPage extends Message { /** * @generated from field: int32 page = 1; */ page = 0; /** * @generated from field: repeated preflight.v1.PreflightAttributeGroup attributes = 2; */ attributes: PreflightAttributeGroup[] = []; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "preflight.v1.PreflightReportPage"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "page", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, { no: 2, name: "attributes", kind: "message", T: PreflightAttributeGroup, repeated: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): PreflightReportPage { return new PreflightReportPage().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): PreflightReportPage { return new PreflightReportPage().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): PreflightReportPage { return new PreflightReportPage().fromJsonString(jsonString, options); } static equals(a: PreflightReportPage | PlainMessage | undefined, b: PreflightReportPage | PlainMessage | undefined): boolean { return proto3.util.equals(PreflightReportPage, a, b); } } /** * @generated from message preflight.v1.PreflightReport */ export class PreflightReport extends Message { /** * @generated from field: repeated preflight.v1.PreflightAttributeGroup attributes = 1; */ attributes: PreflightAttributeGroup[] = []; /** * @generated from field: repeated preflight.v1.PreflightReportPage pages = 2; */ pages: PreflightReportPage[] = []; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "preflight.v1.PreflightReport"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "attributes", kind: "message", T: PreflightAttributeGroup, repeated: true }, { no: 2, name: "pages", kind: "message", T: PreflightReportPage, repeated: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): PreflightReport { return new PreflightReport().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): PreflightReport { return new PreflightReport().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): PreflightReport { return new PreflightReport().fromJsonString(jsonString, options); } static equals(a: PreflightReport | PlainMessage | undefined, b: PreflightReport | PlainMessage | undefined): boolean { return proto3.util.equals(PreflightReport, a, b); } } /** * @generated from message preflight.v1.PreflightStatusReport */ export class PreflightStatusReport extends Message { /** * @generated from field: preflight.v1.PreflightState state = 1; */ state = PreflightState.PreflightStateUndefined; /** * @generated from field: int32 filesize = 2; */ filesize = 0; /** * @generated from field: preflight.v1.PreflightReport report = 3; */ report?: PreflightReport; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "preflight.v1.PreflightStatusReport"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "state", kind: "enum", T: proto3.getEnumType(PreflightState) }, { no: 2, name: "filesize", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, { no: 3, name: "report", kind: "message", T: PreflightReport }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): PreflightStatusReport { return new PreflightStatusReport().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): PreflightStatusReport { return new PreflightStatusReport().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): PreflightStatusReport { return new PreflightStatusReport().fromJsonString(jsonString, options); } static equals(a: PreflightStatusReport | PlainMessage | undefined, b: PreflightStatusReport | PlainMessage | undefined): boolean { return proto3.util.equals(PreflightStatusReport, a, b); } } /** * @generated from message preflight.v1.GetPreflightStatusesRequest */ export class GetPreflightStatusesRequest extends Message { /** * @generated from field: repeated int64 media_item_ids = 1; */ mediaItemIds: bigint[] = []; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "preflight.v1.GetPreflightStatusesRequest"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "media_item_ids", kind: "scalar", T: 3 /* ScalarType.INT64 */, repeated: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): GetPreflightStatusesRequest { return new GetPreflightStatusesRequest().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): GetPreflightStatusesRequest { return new GetPreflightStatusesRequest().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): GetPreflightStatusesRequest { return new GetPreflightStatusesRequest().fromJsonString(jsonString, options); } static equals(a: GetPreflightStatusesRequest | PlainMessage | undefined, b: GetPreflightStatusesRequest | PlainMessage | undefined): boolean { return proto3.util.equals(GetPreflightStatusesRequest, a, b); } } /** * @generated from message preflight.v1.GetPreflightStatusesResponse */ export class GetPreflightStatusesResponse extends Message { /** * @generated from field: map reports = 1; */ reports: { [key: string]: PreflightStatusReport } = {}; /** * @generated from field: bool all_completed = 2; */ allCompleted = false; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "preflight.v1.GetPreflightStatusesResponse"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "reports", kind: "map", K: 3 /* ScalarType.INT64 */, V: {kind: "message", T: PreflightStatusReport} }, { no: 2, name: "all_completed", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): GetPreflightStatusesResponse { return new GetPreflightStatusesResponse().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): GetPreflightStatusesResponse { return new GetPreflightStatusesResponse().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): GetPreflightStatusesResponse { return new GetPreflightStatusesResponse().fromJsonString(jsonString, options); } static equals(a: GetPreflightStatusesResponse | PlainMessage | undefined, b: GetPreflightStatusesResponse | PlainMessage | undefined): boolean { return proto3.util.equals(GetPreflightStatusesResponse, a, b); } } /** * @generated from message preflight.v1.GetPreflightStatusesByObjectRequest */ export class GetPreflightStatusesByObjectRequest 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.GetPreflightStatusesByObjectRequest"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "object_ref", kind: "message", T: ObjectRef }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): GetPreflightStatusesByObjectRequest { return new GetPreflightStatusesByObjectRequest().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): GetPreflightStatusesByObjectRequest { return new GetPreflightStatusesByObjectRequest().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): GetPreflightStatusesByObjectRequest { return new GetPreflightStatusesByObjectRequest().fromJsonString(jsonString, options); } static equals(a: GetPreflightStatusesByObjectRequest | PlainMessage | undefined, b: GetPreflightStatusesByObjectRequest | PlainMessage | undefined): boolean { return proto3.util.equals(GetPreflightStatusesByObjectRequest, a, b); } } /** * @generated from message preflight.v1.GetPreflightStatusesByObjectResponse */ export class GetPreflightStatusesByObjectResponse extends Message { /** * @generated from field: map reports = 1; */ reports: { [key: string]: PreflightStatusReport } = {}; /** * @generated from field: bool all_completed = 2; */ allCompleted = false; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "preflight.v1.GetPreflightStatusesByObjectResponse"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "reports", kind: "map", K: 3 /* ScalarType.INT64 */, V: {kind: "message", T: PreflightStatusReport} }, { no: 2, name: "all_completed", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): GetPreflightStatusesByObjectResponse { return new GetPreflightStatusesByObjectResponse().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): GetPreflightStatusesByObjectResponse { return new GetPreflightStatusesByObjectResponse().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): GetPreflightStatusesByObjectResponse { return new GetPreflightStatusesByObjectResponse().fromJsonString(jsonString, options); } static equals(a: GetPreflightStatusesByObjectResponse | PlainMessage | undefined, b: GetPreflightStatusesByObjectResponse | PlainMessage | undefined): boolean { return proto3.util.equals(GetPreflightStatusesByObjectResponse, a, b); } }