protoc
This commit is contained in:
parent
702cc229a3
commit
9948e87fa0
@ -1 +1 @@
|
|||||||
Subproject commit 87726ae0917aedf814210d9725ee354aa15bb1f9
|
Subproject commit 0085ca4d61318b858e54c7e52780c9b7a018fab4
|
@ -2104,6 +2104,7 @@ export namespace iscsGraphicData {
|
|||||||
stationName?: string;
|
stationName?: string;
|
||||||
canvas?: dependency_1.common.Canvas;
|
canvas?: dependency_1.common.Canvas;
|
||||||
commonGraphicStorage?: CommonGraphicStorage;
|
commonGraphicStorage?: CommonGraphicStorage;
|
||||||
|
partition?: string;
|
||||||
}) {
|
}) {
|
||||||
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);
|
||||||
@ -2117,6 +2118,9 @@ export namespace iscsGraphicData {
|
|||||||
if ("commonGraphicStorage" in data && data.commonGraphicStorage != undefined) {
|
if ("commonGraphicStorage" in data && data.commonGraphicStorage != undefined) {
|
||||||
this.commonGraphicStorage = data.commonGraphicStorage;
|
this.commonGraphicStorage = data.commonGraphicStorage;
|
||||||
}
|
}
|
||||||
|
if ("partition" in data && data.partition != undefined) {
|
||||||
|
this.partition = data.partition;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
get stationName() {
|
get stationName() {
|
||||||
@ -2143,10 +2147,17 @@ export namespace iscsGraphicData {
|
|||||||
get has_commonGraphicStorage() {
|
get has_commonGraphicStorage() {
|
||||||
return pb_1.Message.getField(this, 3) != null;
|
return pb_1.Message.getField(this, 3) != null;
|
||||||
}
|
}
|
||||||
|
get partition() {
|
||||||
|
return pb_1.Message.getFieldWithDefault(this, 4, "") as string;
|
||||||
|
}
|
||||||
|
set partition(value: string) {
|
||||||
|
pb_1.Message.setField(this, 4, value);
|
||||||
|
}
|
||||||
static fromObject(data: {
|
static fromObject(data: {
|
||||||
stationName?: string;
|
stationName?: string;
|
||||||
canvas?: ReturnType<typeof dependency_1.common.Canvas.prototype.toObject>;
|
canvas?: ReturnType<typeof dependency_1.common.Canvas.prototype.toObject>;
|
||||||
commonGraphicStorage?: ReturnType<typeof CommonGraphicStorage.prototype.toObject>;
|
commonGraphicStorage?: ReturnType<typeof CommonGraphicStorage.prototype.toObject>;
|
||||||
|
partition?: string;
|
||||||
}): FASOfPlatformAlarmStorage {
|
}): FASOfPlatformAlarmStorage {
|
||||||
const message = new FASOfPlatformAlarmStorage({});
|
const message = new FASOfPlatformAlarmStorage({});
|
||||||
if (data.stationName != null) {
|
if (data.stationName != null) {
|
||||||
@ -2158,6 +2169,9 @@ export namespace iscsGraphicData {
|
|||||||
if (data.commonGraphicStorage != null) {
|
if (data.commonGraphicStorage != null) {
|
||||||
message.commonGraphicStorage = CommonGraphicStorage.fromObject(data.commonGraphicStorage);
|
message.commonGraphicStorage = CommonGraphicStorage.fromObject(data.commonGraphicStorage);
|
||||||
}
|
}
|
||||||
|
if (data.partition != null) {
|
||||||
|
message.partition = data.partition;
|
||||||
|
}
|
||||||
return message;
|
return message;
|
||||||
}
|
}
|
||||||
toObject() {
|
toObject() {
|
||||||
@ -2165,6 +2179,7 @@ export namespace iscsGraphicData {
|
|||||||
stationName?: string;
|
stationName?: string;
|
||||||
canvas?: ReturnType<typeof dependency_1.common.Canvas.prototype.toObject>;
|
canvas?: ReturnType<typeof dependency_1.common.Canvas.prototype.toObject>;
|
||||||
commonGraphicStorage?: ReturnType<typeof CommonGraphicStorage.prototype.toObject>;
|
commonGraphicStorage?: ReturnType<typeof CommonGraphicStorage.prototype.toObject>;
|
||||||
|
partition?: string;
|
||||||
} = {};
|
} = {};
|
||||||
if (this.stationName != null) {
|
if (this.stationName != null) {
|
||||||
data.stationName = this.stationName;
|
data.stationName = this.stationName;
|
||||||
@ -2175,6 +2190,9 @@ export namespace iscsGraphicData {
|
|||||||
if (this.commonGraphicStorage != null) {
|
if (this.commonGraphicStorage != null) {
|
||||||
data.commonGraphicStorage = this.commonGraphicStorage.toObject();
|
data.commonGraphicStorage = this.commonGraphicStorage.toObject();
|
||||||
}
|
}
|
||||||
|
if (this.partition != null) {
|
||||||
|
data.partition = this.partition;
|
||||||
|
}
|
||||||
return data;
|
return data;
|
||||||
}
|
}
|
||||||
serialize(): Uint8Array;
|
serialize(): Uint8Array;
|
||||||
@ -2187,6 +2205,8 @@ export namespace iscsGraphicData {
|
|||||||
writer.writeMessage(2, this.canvas, () => this.canvas.serialize(writer));
|
writer.writeMessage(2, this.canvas, () => this.canvas.serialize(writer));
|
||||||
if (this.has_commonGraphicStorage)
|
if (this.has_commonGraphicStorage)
|
||||||
writer.writeMessage(3, this.commonGraphicStorage, () => this.commonGraphicStorage.serialize(writer));
|
writer.writeMessage(3, this.commonGraphicStorage, () => this.commonGraphicStorage.serialize(writer));
|
||||||
|
if (this.partition.length)
|
||||||
|
writer.writeString(4, this.partition);
|
||||||
if (!w)
|
if (!w)
|
||||||
return writer.getResultBuffer();
|
return writer.getResultBuffer();
|
||||||
}
|
}
|
||||||
@ -2205,6 +2225,9 @@ export namespace iscsGraphicData {
|
|||||||
case 3:
|
case 3:
|
||||||
reader.readMessage(message.commonGraphicStorage, () => message.commonGraphicStorage = CommonGraphicStorage.deserialize(reader));
|
reader.readMessage(message.commonGraphicStorage, () => message.commonGraphicStorage = CommonGraphicStorage.deserialize(reader));
|
||||||
break;
|
break;
|
||||||
|
case 4:
|
||||||
|
message.partition = reader.readString();
|
||||||
|
break;
|
||||||
default: reader.skipField();
|
default: reader.skipField();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -198,7 +198,7 @@ export namespace sync_data_message {
|
|||||||
pb_1.Message.setField(this, 2, value);
|
pb_1.Message.setField(this, 2, value);
|
||||||
}
|
}
|
||||||
get data() {
|
get data() {
|
||||||
return pb_1.Message.getFieldWithDefault(this, 3, new Uint8Array(0)) as Uint8Array;
|
return pb_1.Message.getFieldWithDefault(this, 3, new Uint8Array()) as Uint8Array;
|
||||||
}
|
}
|
||||||
set data(value: Uint8Array) {
|
set data(value: Uint8Array) {
|
||||||
pb_1.Message.setField(this, 3, value);
|
pb_1.Message.setField(this, 3, value);
|
||||||
|
Loading…
Reference in New Issue
Block a user