执行protoc
This commit is contained in:
parent
e6e79b7004
commit
d0f4d09591
@ -1 +1 @@
|
||||
Subproject commit cf202ae8c398dd4886a9ad113e96179d37826158
|
||||
Subproject commit 3803c578876627b66110ad8748592aafddabfa03
|
@ -10,6 +10,8 @@ export namespace sync_data_message {
|
||||
constructor(data?: any[] | {
|
||||
operationType?: string;
|
||||
datas?: UpdataData[];
|
||||
submenu?: string;
|
||||
station?: string;
|
||||
}) {
|
||||
super();
|
||||
pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [2], this.#one_of_decls);
|
||||
@ -20,6 +22,12 @@ export namespace sync_data_message {
|
||||
if ("datas" in data && data.datas != undefined) {
|
||||
this.datas = data.datas;
|
||||
}
|
||||
if ("submenu" in data && data.submenu != undefined) {
|
||||
this.submenu = data.submenu;
|
||||
}
|
||||
if ("station" in data && data.station != undefined) {
|
||||
this.station = data.station;
|
||||
}
|
||||
}
|
||||
}
|
||||
get operationType() {
|
||||
@ -34,9 +42,23 @@ export namespace sync_data_message {
|
||||
set datas(value: UpdataData[]) {
|
||||
pb_1.Message.setRepeatedWrapperField(this, 2, value);
|
||||
}
|
||||
get submenu() {
|
||||
return pb_1.Message.getFieldWithDefault(this, 3, "") as string;
|
||||
}
|
||||
set submenu(value: string) {
|
||||
pb_1.Message.setField(this, 3, value);
|
||||
}
|
||||
get station() {
|
||||
return pb_1.Message.getFieldWithDefault(this, 4, "") as string;
|
||||
}
|
||||
set station(value: string) {
|
||||
pb_1.Message.setField(this, 4, value);
|
||||
}
|
||||
static fromObject(data: {
|
||||
operationType?: string;
|
||||
datas?: ReturnType<typeof UpdataData.prototype.toObject>[];
|
||||
submenu?: string;
|
||||
station?: string;
|
||||
}): SyncData {
|
||||
const message = new SyncData({});
|
||||
if (data.operationType != null) {
|
||||
@ -45,12 +67,20 @@ export namespace sync_data_message {
|
||||
if (data.datas != null) {
|
||||
message.datas = data.datas.map(item => UpdataData.fromObject(item));
|
||||
}
|
||||
if (data.submenu != null) {
|
||||
message.submenu = data.submenu;
|
||||
}
|
||||
if (data.station != null) {
|
||||
message.station = data.station;
|
||||
}
|
||||
return message;
|
||||
}
|
||||
toObject() {
|
||||
const data: {
|
||||
operationType?: string;
|
||||
datas?: ReturnType<typeof UpdataData.prototype.toObject>[];
|
||||
submenu?: string;
|
||||
station?: string;
|
||||
} = {};
|
||||
if (this.operationType != null) {
|
||||
data.operationType = this.operationType;
|
||||
@ -58,6 +88,12 @@ export namespace sync_data_message {
|
||||
if (this.datas != null) {
|
||||
data.datas = this.datas.map((item: UpdataData) => item.toObject());
|
||||
}
|
||||
if (this.submenu != null) {
|
||||
data.submenu = this.submenu;
|
||||
}
|
||||
if (this.station != null) {
|
||||
data.station = this.station;
|
||||
}
|
||||
return data;
|
||||
}
|
||||
serialize(): Uint8Array;
|
||||
@ -68,6 +104,10 @@ export namespace sync_data_message {
|
||||
writer.writeString(1, this.operationType);
|
||||
if (this.datas.length)
|
||||
writer.writeRepeatedMessage(2, this.datas, (item: UpdataData) => item.serialize(writer));
|
||||
if (this.submenu.length)
|
||||
writer.writeString(3, this.submenu);
|
||||
if (this.station.length)
|
||||
writer.writeString(4, this.station);
|
||||
if (!w)
|
||||
return writer.getResultBuffer();
|
||||
}
|
||||
@ -83,6 +123,12 @@ export namespace sync_data_message {
|
||||
case 2:
|
||||
reader.readMessage(message.datas, () => pb_1.Message.addToRepeatedWrapperField(message, 2, UpdataData.deserialize(reader), UpdataData));
|
||||
break;
|
||||
case 3:
|
||||
message.submenu = reader.readString();
|
||||
break;
|
||||
case 4:
|
||||
message.station = reader.readString();
|
||||
break;
|
||||
default: reader.skipField();
|
||||
}
|
||||
}
|
||||
@ -101,8 +147,6 @@ export namespace sync_data_message {
|
||||
id?: number;
|
||||
type?: string;
|
||||
data?: Uint8Array;
|
||||
submenu?: string;
|
||||
station?: string;
|
||||
}) {
|
||||
super();
|
||||
pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], this.#one_of_decls);
|
||||
@ -116,12 +160,6 @@ export namespace sync_data_message {
|
||||
if ("data" in data && data.data != undefined) {
|
||||
this.data = data.data;
|
||||
}
|
||||
if ("submenu" in data && data.submenu != undefined) {
|
||||
this.submenu = data.submenu;
|
||||
}
|
||||
if ("station" in data && data.station != undefined) {
|
||||
this.station = data.station;
|
||||
}
|
||||
}
|
||||
}
|
||||
get id() {
|
||||
@ -142,24 +180,10 @@ export namespace sync_data_message {
|
||||
set data(value: Uint8Array) {
|
||||
pb_1.Message.setField(this, 3, value);
|
||||
}
|
||||
get submenu() {
|
||||
return pb_1.Message.getFieldWithDefault(this, 4, "") as string;
|
||||
}
|
||||
set submenu(value: string) {
|
||||
pb_1.Message.setField(this, 4, value);
|
||||
}
|
||||
get station() {
|
||||
return pb_1.Message.getFieldWithDefault(this, 5, "") as string;
|
||||
}
|
||||
set station(value: string) {
|
||||
pb_1.Message.setField(this, 5, value);
|
||||
}
|
||||
static fromObject(data: {
|
||||
id?: number;
|
||||
type?: string;
|
||||
data?: Uint8Array;
|
||||
submenu?: string;
|
||||
station?: string;
|
||||
}): UpdataData {
|
||||
const message = new UpdataData({});
|
||||
if (data.id != null) {
|
||||
@ -171,12 +195,6 @@ export namespace sync_data_message {
|
||||
if (data.data != null) {
|
||||
message.data = data.data;
|
||||
}
|
||||
if (data.submenu != null) {
|
||||
message.submenu = data.submenu;
|
||||
}
|
||||
if (data.station != null) {
|
||||
message.station = data.station;
|
||||
}
|
||||
return message;
|
||||
}
|
||||
toObject() {
|
||||
@ -184,8 +202,6 @@ export namespace sync_data_message {
|
||||
id?: number;
|
||||
type?: string;
|
||||
data?: Uint8Array;
|
||||
submenu?: string;
|
||||
station?: string;
|
||||
} = {};
|
||||
if (this.id != null) {
|
||||
data.id = this.id;
|
||||
@ -196,12 +212,6 @@ export namespace sync_data_message {
|
||||
if (this.data != null) {
|
||||
data.data = this.data;
|
||||
}
|
||||
if (this.submenu != null) {
|
||||
data.submenu = this.submenu;
|
||||
}
|
||||
if (this.station != null) {
|
||||
data.station = this.station;
|
||||
}
|
||||
return data;
|
||||
}
|
||||
serialize(): Uint8Array;
|
||||
@ -214,10 +224,6 @@ export namespace sync_data_message {
|
||||
writer.writeString(2, this.type);
|
||||
if (this.data.length)
|
||||
writer.writeBytes(3, this.data);
|
||||
if (this.submenu.length)
|
||||
writer.writeString(4, this.submenu);
|
||||
if (this.station.length)
|
||||
writer.writeString(5, this.station);
|
||||
if (!w)
|
||||
return writer.getResultBuffer();
|
||||
}
|
||||
@ -236,12 +242,6 @@ export namespace sync_data_message {
|
||||
case 3:
|
||||
message.data = reader.readBytes();
|
||||
break;
|
||||
case 4:
|
||||
message.submenu = reader.readString();
|
||||
break;
|
||||
case 5:
|
||||
message.station = reader.readString();
|
||||
break;
|
||||
default: reader.skipField();
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user