// @generated by protoc-gen-es v1.10.1 with parameter "target=ts" // @generated from file common/v1/preflight-warning.proto (package common.v1, syntax proto3) /* eslint-disable */ // @ts-nocheck import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; import { Message, proto3 } from "@bufbuild/protobuf"; /** * @generated from enum common.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, "common.v1.PreflightWarningLevel", [ { no: 0, name: "PreflightWarningLevelNone" }, { no: 1, name: "PreflightWarningLevelWarn" }, { no: 2, name: "PreflightWarningLevelError" }, { no: 3, name: "PreflightWarningLevelGood" }, ]); /** * @generated from message common.v1.PreflightResultAttribute */ export class PreflightResultAttribute extends Message { /** * @generated from field: string key = 1; */ key = ""; /** * @generated from field: string val = 2; */ val = ""; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "common.v1.PreflightResultAttribute"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "key", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 2, name: "val", kind: "scalar", T: 9 /* ScalarType.STRING */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): PreflightResultAttribute { return new PreflightResultAttribute().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): PreflightResultAttribute { return new PreflightResultAttribute().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): PreflightResultAttribute { return new PreflightResultAttribute().fromJsonString(jsonString, options); } static equals(a: PreflightResultAttribute | PlainMessage | undefined, b: PreflightResultAttribute | PlainMessage | undefined): boolean { return proto3.util.equals(PreflightResultAttribute, a, b); } } /** * @generated from message common.v1.PreflightResult */ export class PreflightResult extends Message { /** * @generated from field: string name = 1; */ name = ""; /** * @generated from field: repeated common.v1.PreflightResultAttribute attrs = 2; */ attrs: PreflightResultAttribute[] = []; /** * @generated from field: string warning_name = 3; */ warningName = ""; /** * @generated from field: common.v1.PreflightWarningLevel warning_level = 4; */ warningLevel = PreflightWarningLevel.PreflightWarningLevelNone; /** * @generated from field: string icon = 5; */ icon = ""; /** * @generated from field: string key = 6; */ key = ""; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "common.v1.PreflightResult"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 2, name: "attrs", kind: "message", T: PreflightResultAttribute, repeated: true }, { no: 3, name: "warning_name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 4, name: "warning_level", kind: "enum", T: proto3.getEnumType(PreflightWarningLevel) }, { no: 5, name: "icon", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 6, name: "key", kind: "scalar", T: 9 /* ScalarType.STRING */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): PreflightResult { return new PreflightResult().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): PreflightResult { return new PreflightResult().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): PreflightResult { return new PreflightResult().fromJsonString(jsonString, options); } static equals(a: PreflightResult | PlainMessage | undefined, b: PreflightResult | PlainMessage | undefined): boolean { return proto3.util.equals(PreflightResult, a, b); } }