proto同步

This commit is contained in:
fan 2023-12-15 10:03:58 +08:00
parent d032bdf036
commit 4394a9814f
2 changed files with 25 additions and 25 deletions

View File

@ -1731,8 +1731,8 @@ export namespace graphicData {
direction?: string;
refStation?: string;
up?: boolean;
nrefStation?: number;
refSectionId?: string;
nrefStation?: number;
nrefSectionId?: number;
}) {
super();
@ -1756,12 +1756,12 @@ export namespace graphicData {
if ("up" in data && data.up != undefined) {
this.up = data.up;
}
if ("nrefStation" in data && data.nrefStation != undefined) {
this.nrefStation = data.nrefStation;
}
if ("refSectionId" in data && data.refSectionId != undefined) {
this.refSectionId = data.refSectionId;
}
if ("nrefStation" in data && data.nrefStation != undefined) {
this.nrefStation = data.nrefStation;
}
if ("nrefSectionId" in data && data.nrefSectionId != undefined) {
this.nrefSectionId = data.nrefSectionId;
}
@ -1806,16 +1806,16 @@ export namespace graphicData {
set up(value: boolean) {
pb_1.Message.setField(this, 7, value);
}
get nrefStation() {
return pb_1.Message.getFieldWithDefault(this, 8, 0) as number;
}
set nrefStation(value: number) {
pb_1.Message.setField(this, 8, value);
}
get refSectionId() {
return pb_1.Message.getFieldWithDefault(this, 9, "") as string;
return pb_1.Message.getFieldWithDefault(this, 8, "") as string;
}
set refSectionId(value: string) {
pb_1.Message.setField(this, 8, value);
}
get nrefStation() {
return pb_1.Message.getFieldWithDefault(this, 9, 0) as number;
}
set nrefStation(value: number) {
pb_1.Message.setField(this, 9, value);
}
get nrefSectionId() {
@ -1831,8 +1831,8 @@ export namespace graphicData {
direction?: string;
refStation?: string;
up?: boolean;
nrefStation?: number;
refSectionId?: string;
nrefStation?: number;
nrefSectionId?: number;
}): Platform {
const message = new Platform({});
@ -1854,12 +1854,12 @@ export namespace graphicData {
if (data.up != null) {
message.up = data.up;
}
if (data.nrefStation != null) {
message.nrefStation = data.nrefStation;
}
if (data.refSectionId != null) {
message.refSectionId = data.refSectionId;
}
if (data.nrefStation != null) {
message.nrefStation = data.nrefStation;
}
if (data.nrefSectionId != null) {
message.nrefSectionId = data.nrefSectionId;
}
@ -1873,8 +1873,8 @@ export namespace graphicData {
direction?: string;
refStation?: string;
up?: boolean;
nrefStation?: number;
refSectionId?: string;
nrefStation?: number;
nrefSectionId?: number;
} = {};
if (this.common != null) {
@ -1895,12 +1895,12 @@ export namespace graphicData {
if (this.up != null) {
data.up = this.up;
}
if (this.nrefStation != null) {
data.nrefStation = this.nrefStation;
}
if (this.refSectionId != null) {
data.refSectionId = this.refSectionId;
}
if (this.nrefStation != null) {
data.nrefStation = this.nrefStation;
}
if (this.nrefSectionId != null) {
data.nrefSectionId = this.nrefSectionId;
}
@ -1922,10 +1922,10 @@ export namespace graphicData {
writer.writeString(6, this.refStation);
if (this.up != false)
writer.writeBool(7, this.up);
if (this.nrefStation != 0)
writer.writeUint32(8, this.nrefStation);
if (this.refSectionId.length)
writer.writeString(9, this.refSectionId);
writer.writeString(8, this.refSectionId);
if (this.nrefStation != 0)
writer.writeUint32(9, this.nrefStation);
if (this.nrefSectionId != 0)
writer.writeUint32(10, this.nrefSectionId);
if (!w)
@ -1956,10 +1956,10 @@ export namespace graphicData {
message.up = reader.readBool();
break;
case 8:
message.nrefStation = reader.readUint32();
message.refSectionId = reader.readString();
break;
case 9:
message.refSectionId = reader.readString();
message.nrefStation = reader.readUint32();
break;
case 10:
message.nrefSectionId = reader.readUint32();

@ -1 +1 @@
Subproject commit 4e3b572d415ebd5431d3100417fa3ef6634b17a7
Subproject commit da9e750edd637bc55d440759f29ba429099cf184