protoc
This commit is contained in:
parent
09b6dcbb19
commit
109a19527d
|
@ -78,6 +78,7 @@ export namespace state {
|
||||||
lineId?: number;
|
lineId?: number;
|
||||||
occRealConned?: boolean;
|
occRealConned?: boolean;
|
||||||
occUnrealConned?: boolean;
|
occUnrealConned?: boolean;
|
||||||
|
atsWarnShowCounter?: boolean;
|
||||||
}) {
|
}) {
|
||||||
super();
|
super();
|
||||||
pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], this.#one_of_decls);
|
pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], this.#one_of_decls);
|
||||||
|
@ -91,6 +92,9 @@ export namespace state {
|
||||||
if ("occUnrealConned" in data && data.occUnrealConned != undefined) {
|
if ("occUnrealConned" in data && data.occUnrealConned != undefined) {
|
||||||
this.occUnrealConned = data.occUnrealConned;
|
this.occUnrealConned = data.occUnrealConned;
|
||||||
}
|
}
|
||||||
|
if ("atsWarnShowCounter" in data && data.atsWarnShowCounter != undefined) {
|
||||||
|
this.atsWarnShowCounter = data.atsWarnShowCounter;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
get lineId() {
|
get lineId() {
|
||||||
|
@ -111,10 +115,17 @@ export namespace state {
|
||||||
set occUnrealConned(value: boolean) {
|
set occUnrealConned(value: boolean) {
|
||||||
pb_1.Message.setField(this, 3, value);
|
pb_1.Message.setField(this, 3, value);
|
||||||
}
|
}
|
||||||
|
get atsWarnShowCounter() {
|
||||||
|
return pb_1.Message.getFieldWithDefault(this, 4, false) as boolean;
|
||||||
|
}
|
||||||
|
set atsWarnShowCounter(value: boolean) {
|
||||||
|
pb_1.Message.setField(this, 4, value);
|
||||||
|
}
|
||||||
static fromObject(data: {
|
static fromObject(data: {
|
||||||
lineId?: number;
|
lineId?: number;
|
||||||
occRealConned?: boolean;
|
occRealConned?: boolean;
|
||||||
occUnrealConned?: boolean;
|
occUnrealConned?: boolean;
|
||||||
|
atsWarnShowCounter?: boolean;
|
||||||
}): WarnMessage {
|
}): WarnMessage {
|
||||||
const message = new WarnMessage({});
|
const message = new WarnMessage({});
|
||||||
if (data.lineId != null) {
|
if (data.lineId != null) {
|
||||||
|
@ -126,6 +137,9 @@ export namespace state {
|
||||||
if (data.occUnrealConned != null) {
|
if (data.occUnrealConned != null) {
|
||||||
message.occUnrealConned = data.occUnrealConned;
|
message.occUnrealConned = data.occUnrealConned;
|
||||||
}
|
}
|
||||||
|
if (data.atsWarnShowCounter != null) {
|
||||||
|
message.atsWarnShowCounter = data.atsWarnShowCounter;
|
||||||
|
}
|
||||||
return message;
|
return message;
|
||||||
}
|
}
|
||||||
toObject() {
|
toObject() {
|
||||||
|
@ -133,6 +147,7 @@ export namespace state {
|
||||||
lineId?: number;
|
lineId?: number;
|
||||||
occRealConned?: boolean;
|
occRealConned?: boolean;
|
||||||
occUnrealConned?: boolean;
|
occUnrealConned?: boolean;
|
||||||
|
atsWarnShowCounter?: boolean;
|
||||||
} = {};
|
} = {};
|
||||||
if (this.lineId != null) {
|
if (this.lineId != null) {
|
||||||
data.lineId = this.lineId;
|
data.lineId = this.lineId;
|
||||||
|
@ -143,6 +158,9 @@ export namespace state {
|
||||||
if (this.occUnrealConned != null) {
|
if (this.occUnrealConned != null) {
|
||||||
data.occUnrealConned = this.occUnrealConned;
|
data.occUnrealConned = this.occUnrealConned;
|
||||||
}
|
}
|
||||||
|
if (this.atsWarnShowCounter != null) {
|
||||||
|
data.atsWarnShowCounter = this.atsWarnShowCounter;
|
||||||
|
}
|
||||||
return data;
|
return data;
|
||||||
}
|
}
|
||||||
serialize(): Uint8Array;
|
serialize(): Uint8Array;
|
||||||
|
@ -155,6 +173,8 @@ export namespace state {
|
||||||
writer.writeBool(2, this.occRealConned);
|
writer.writeBool(2, this.occRealConned);
|
||||||
if (this.occUnrealConned != false)
|
if (this.occUnrealConned != false)
|
||||||
writer.writeBool(3, this.occUnrealConned);
|
writer.writeBool(3, this.occUnrealConned);
|
||||||
|
if (this.atsWarnShowCounter != false)
|
||||||
|
writer.writeBool(4, this.atsWarnShowCounter);
|
||||||
if (!w)
|
if (!w)
|
||||||
return writer.getResultBuffer();
|
return writer.getResultBuffer();
|
||||||
}
|
}
|
||||||
|
@ -173,6 +193,9 @@ export namespace state {
|
||||||
case 3:
|
case 3:
|
||||||
message.occUnrealConned = reader.readBool();
|
message.occUnrealConned = reader.readBool();
|
||||||
break;
|
break;
|
||||||
|
case 4:
|
||||||
|
message.atsWarnShowCounter = reader.readBool();
|
||||||
|
break;
|
||||||
default: reader.skipField();
|
default: reader.skipField();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
Subproject commit 0f95f00449d14672b382f03727b34e339131786b
|
Subproject commit 6ae749dad5f5aa90b78cea76e2d1d24451a25b46
|
Loading…
Reference in New Issue