应答器加公里标

This commit is contained in:
dong 2023-08-01 09:57:04 +08:00
parent 390b29599e
commit 98134737f3

View File

@ -2804,6 +2804,7 @@ export namespace graphicData {
code?: string;
transponderType?: number;
index?: number;
kilometerSystem?: KilometerSystem;
}) {
super();
pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], this.#one_of_decls);
@ -2820,6 +2821,9 @@ export namespace graphicData {
if ("index" in data && data.index != undefined) {
this.index = data.index;
}
if ("kilometerSystem" in data && data.kilometerSystem != undefined) {
this.kilometerSystem = data.kilometerSystem;
}
}
}
get common() {
@ -2849,11 +2853,21 @@ export namespace graphicData {
set index(value: number) {
pb_1.Message.setField(this, 4, value);
}
get kilometerSystem() {
return pb_1.Message.getWrapperField(this, KilometerSystem, 5) as KilometerSystem;
}
set kilometerSystem(value: KilometerSystem) {
pb_1.Message.setWrapperField(this, 5, value);
}
get has_kilometerSystem() {
return pb_1.Message.getField(this, 5) != null;
}
static fromObject(data: {
common?: ReturnType<typeof CommonInfo.prototype.toObject>;
code?: string;
transponderType?: number;
index?: number;
kilometerSystem?: ReturnType<typeof KilometerSystem.prototype.toObject>;
}): Transponder {
const message = new Transponder({});
if (data.common != null) {
@ -2868,6 +2882,9 @@ export namespace graphicData {
if (data.index != null) {
message.index = data.index;
}
if (data.kilometerSystem != null) {
message.kilometerSystem = KilometerSystem.fromObject(data.kilometerSystem);
}
return message;
}
toObject() {
@ -2876,6 +2893,7 @@ export namespace graphicData {
code?: string;
transponderType?: number;
index?: number;
kilometerSystem?: ReturnType<typeof KilometerSystem.prototype.toObject>;
} = {};
if (this.common != null) {
data.common = this.common.toObject();
@ -2889,6 +2907,9 @@ export namespace graphicData {
if (this.index != null) {
data.index = this.index;
}
if (this.kilometerSystem != null) {
data.kilometerSystem = this.kilometerSystem.toObject();
}
return data;
}
serialize(): Uint8Array;
@ -2903,6 +2924,8 @@ export namespace graphicData {
writer.writeInt32(3, this.transponderType);
if (this.index != 0)
writer.writeInt32(4, this.index);
if (this.has_kilometerSystem)
writer.writeMessage(5, this.kilometerSystem, () => this.kilometerSystem.serialize(writer));
if (!w)
return writer.getResultBuffer();
}
@ -2924,6 +2947,9 @@ export namespace graphicData {
case 4:
message.index = reader.readInt32();
break;
case 5:
reader.readMessage(message.kilometerSystem, () => message.kilometerSystem = KilometerSystem.deserialize(reader));
break;
default: reader.skipField();
}
}