proto同步
This commit is contained in:
parent
c0610f0422
commit
dbe1c9517d
@ -66,7 +66,7 @@ export namespace request {
|
|||||||
constructor(data?: any[] | {
|
constructor(data?: any[] | {
|
||||||
simulationId?: string;
|
simulationId?: string;
|
||||||
mapId?: number;
|
mapId?: number;
|
||||||
deviceId?: string;
|
deviceId?: number;
|
||||||
operation?: Turnout.Operation;
|
operation?: Turnout.Operation;
|
||||||
}) {
|
}) {
|
||||||
super();
|
super();
|
||||||
@ -99,9 +99,9 @@ export namespace request {
|
|||||||
pb_1.Message.setField(this, 2, value);
|
pb_1.Message.setField(this, 2, value);
|
||||||
}
|
}
|
||||||
get deviceId() {
|
get deviceId() {
|
||||||
return pb_1.Message.getFieldWithDefault(this, 3, "") as string;
|
return pb_1.Message.getFieldWithDefault(this, 3, 0) as number;
|
||||||
}
|
}
|
||||||
set deviceId(value: string) {
|
set deviceId(value: number) {
|
||||||
pb_1.Message.setField(this, 3, value);
|
pb_1.Message.setField(this, 3, value);
|
||||||
}
|
}
|
||||||
get operation() {
|
get operation() {
|
||||||
@ -113,7 +113,7 @@ export namespace request {
|
|||||||
static fromObject(data: {
|
static fromObject(data: {
|
||||||
simulationId?: string;
|
simulationId?: string;
|
||||||
mapId?: number;
|
mapId?: number;
|
||||||
deviceId?: string;
|
deviceId?: number;
|
||||||
operation?: Turnout.Operation;
|
operation?: Turnout.Operation;
|
||||||
}): TurnoutOperationReq {
|
}): TurnoutOperationReq {
|
||||||
const message = new TurnoutOperationReq({});
|
const message = new TurnoutOperationReq({});
|
||||||
@ -135,7 +135,7 @@ export namespace request {
|
|||||||
const data: {
|
const data: {
|
||||||
simulationId?: string;
|
simulationId?: string;
|
||||||
mapId?: number;
|
mapId?: number;
|
||||||
deviceId?: string;
|
deviceId?: number;
|
||||||
operation?: Turnout.Operation;
|
operation?: Turnout.Operation;
|
||||||
} = {};
|
} = {};
|
||||||
if (this.simulationId != null) {
|
if (this.simulationId != null) {
|
||||||
@ -160,8 +160,8 @@ export namespace request {
|
|||||||
writer.writeString(1, this.simulationId);
|
writer.writeString(1, this.simulationId);
|
||||||
if (this.mapId != 0)
|
if (this.mapId != 0)
|
||||||
writer.writeInt32(2, this.mapId);
|
writer.writeInt32(2, this.mapId);
|
||||||
if (this.deviceId.length)
|
if (this.deviceId != 0)
|
||||||
writer.writeString(3, this.deviceId);
|
writer.writeUint32(3, this.deviceId);
|
||||||
if (this.operation != Turnout.Operation.Undefined)
|
if (this.operation != Turnout.Operation.Undefined)
|
||||||
writer.writeEnum(4, this.operation);
|
writer.writeEnum(4, this.operation);
|
||||||
if (!w)
|
if (!w)
|
||||||
@ -180,7 +180,7 @@ export namespace request {
|
|||||||
message.mapId = reader.readInt32();
|
message.mapId = reader.readInt32();
|
||||||
break;
|
break;
|
||||||
case 3:
|
case 3:
|
||||||
message.deviceId = reader.readString();
|
message.deviceId = reader.readUint32();
|
||||||
break;
|
break;
|
||||||
case 4:
|
case 4:
|
||||||
message.operation = reader.readEnum();
|
message.operation = reader.readEnum();
|
||||||
@ -368,7 +368,7 @@ export namespace request {
|
|||||||
constructor(data?: any[] | {
|
constructor(data?: any[] | {
|
||||||
simulationId?: string;
|
simulationId?: string;
|
||||||
mapId?: number;
|
mapId?: number;
|
||||||
deviceId?: string;
|
deviceId?: number;
|
||||||
operation?: Psd.Operation;
|
operation?: Psd.Operation;
|
||||||
asdCodes?: number[];
|
asdCodes?: number[];
|
||||||
group?: number;
|
group?: number;
|
||||||
@ -409,9 +409,9 @@ export namespace request {
|
|||||||
pb_1.Message.setField(this, 2, value);
|
pb_1.Message.setField(this, 2, value);
|
||||||
}
|
}
|
||||||
get deviceId() {
|
get deviceId() {
|
||||||
return pb_1.Message.getFieldWithDefault(this, 3, "") as string;
|
return pb_1.Message.getFieldWithDefault(this, 3, 0) as number;
|
||||||
}
|
}
|
||||||
set deviceId(value: string) {
|
set deviceId(value: number) {
|
||||||
pb_1.Message.setField(this, 3, value);
|
pb_1.Message.setField(this, 3, value);
|
||||||
}
|
}
|
||||||
get operation() {
|
get operation() {
|
||||||
@ -435,7 +435,7 @@ export namespace request {
|
|||||||
static fromObject(data: {
|
static fromObject(data: {
|
||||||
simulationId?: string;
|
simulationId?: string;
|
||||||
mapId?: number;
|
mapId?: number;
|
||||||
deviceId?: string;
|
deviceId?: number;
|
||||||
operation?: Psd.Operation;
|
operation?: Psd.Operation;
|
||||||
asdCodes?: number[];
|
asdCodes?: number[];
|
||||||
group?: number;
|
group?: number;
|
||||||
@ -465,7 +465,7 @@ export namespace request {
|
|||||||
const data: {
|
const data: {
|
||||||
simulationId?: string;
|
simulationId?: string;
|
||||||
mapId?: number;
|
mapId?: number;
|
||||||
deviceId?: string;
|
deviceId?: number;
|
||||||
operation?: Psd.Operation;
|
operation?: Psd.Operation;
|
||||||
asdCodes?: number[];
|
asdCodes?: number[];
|
||||||
group?: number;
|
group?: number;
|
||||||
@ -498,8 +498,8 @@ export namespace request {
|
|||||||
writer.writeString(1, this.simulationId);
|
writer.writeString(1, this.simulationId);
|
||||||
if (this.mapId != 0)
|
if (this.mapId != 0)
|
||||||
writer.writeInt32(2, this.mapId);
|
writer.writeInt32(2, this.mapId);
|
||||||
if (this.deviceId.length)
|
if (this.deviceId != 0)
|
||||||
writer.writeString(3, this.deviceId);
|
writer.writeUint32(3, this.deviceId);
|
||||||
if (this.operation != Psd.Operation.Undefined)
|
if (this.operation != Psd.Operation.Undefined)
|
||||||
writer.writeEnum(4, this.operation);
|
writer.writeEnum(4, this.operation);
|
||||||
if (this.asdCodes.length)
|
if (this.asdCodes.length)
|
||||||
@ -522,7 +522,7 @@ export namespace request {
|
|||||||
message.mapId = reader.readInt32();
|
message.mapId = reader.readInt32();
|
||||||
break;
|
break;
|
||||||
case 3:
|
case 3:
|
||||||
message.deviceId = reader.readString();
|
message.deviceId = reader.readUint32();
|
||||||
break;
|
break;
|
||||||
case 4:
|
case 4:
|
||||||
message.operation = reader.readEnum();
|
message.operation = reader.readEnum();
|
||||||
|
Loading…
Reference in New Issue
Block a user