执行proto
This commit is contained in:
parent
d3e57cc444
commit
107f3e50d9
@ -6989,6 +6989,283 @@ export namespace state {
|
||||
return CkmState.deserialize(bytes);
|
||||
}
|
||||
}
|
||||
export class XcjState extends pb_1.Message {
|
||||
#one_of_decls: number[][] = [];
|
||||
constructor(data?: any[] | {
|
||||
id?: number;
|
||||
param?: dependency_3.request.XcjParam;
|
||||
xqj?: boolean;
|
||||
twjList?: boolean[];
|
||||
tgqj?: boolean;
|
||||
xcjxj?: boolean;
|
||||
xcyxj?: boolean;
|
||||
cfjList?: boolean[];
|
||||
jtj?: boolean;
|
||||
tgyxj?: boolean;
|
||||
}) {
|
||||
super();
|
||||
pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [4, 8], this.#one_of_decls);
|
||||
if (!Array.isArray(data) && typeof data == "object") {
|
||||
if ("id" in data && data.id != undefined) {
|
||||
this.id = data.id;
|
||||
}
|
||||
if ("param" in data && data.param != undefined) {
|
||||
this.param = data.param;
|
||||
}
|
||||
if ("xqj" in data && data.xqj != undefined) {
|
||||
this.xqj = data.xqj;
|
||||
}
|
||||
if ("twjList" in data && data.twjList != undefined) {
|
||||
this.twjList = data.twjList;
|
||||
}
|
||||
if ("tgqj" in data && data.tgqj != undefined) {
|
||||
this.tgqj = data.tgqj;
|
||||
}
|
||||
if ("xcjxj" in data && data.xcjxj != undefined) {
|
||||
this.xcjxj = data.xcjxj;
|
||||
}
|
||||
if ("xcyxj" in data && data.xcyxj != undefined) {
|
||||
this.xcyxj = data.xcyxj;
|
||||
}
|
||||
if ("cfjList" in data && data.cfjList != undefined) {
|
||||
this.cfjList = data.cfjList;
|
||||
}
|
||||
if ("jtj" in data && data.jtj != undefined) {
|
||||
this.jtj = data.jtj;
|
||||
}
|
||||
if ("tgyxj" in data && data.tgyxj != undefined) {
|
||||
this.tgyxj = data.tgyxj;
|
||||
}
|
||||
}
|
||||
}
|
||||
get id() {
|
||||
return pb_1.Message.getFieldWithDefault(this, 1, 0) as number;
|
||||
}
|
||||
set id(value: number) {
|
||||
pb_1.Message.setField(this, 1, value);
|
||||
}
|
||||
get param() {
|
||||
return pb_1.Message.getWrapperField(this, dependency_3.request.XcjParam, 2) as dependency_3.request.XcjParam;
|
||||
}
|
||||
set param(value: dependency_3.request.XcjParam) {
|
||||
pb_1.Message.setWrapperField(this, 2, value);
|
||||
}
|
||||
get has_param() {
|
||||
return pb_1.Message.getField(this, 2) != null;
|
||||
}
|
||||
get xqj() {
|
||||
return pb_1.Message.getFieldWithDefault(this, 3, false) as boolean;
|
||||
}
|
||||
set xqj(value: boolean) {
|
||||
pb_1.Message.setField(this, 3, value);
|
||||
}
|
||||
get twjList() {
|
||||
return pb_1.Message.getFieldWithDefault(this, 4, []) as boolean[];
|
||||
}
|
||||
set twjList(value: boolean[]) {
|
||||
pb_1.Message.setField(this, 4, value);
|
||||
}
|
||||
get tgqj() {
|
||||
return pb_1.Message.getFieldWithDefault(this, 5, false) as boolean;
|
||||
}
|
||||
set tgqj(value: boolean) {
|
||||
pb_1.Message.setField(this, 5, value);
|
||||
}
|
||||
get xcjxj() {
|
||||
return pb_1.Message.getFieldWithDefault(this, 6, false) as boolean;
|
||||
}
|
||||
set xcjxj(value: boolean) {
|
||||
pb_1.Message.setField(this, 6, value);
|
||||
}
|
||||
get xcyxj() {
|
||||
return pb_1.Message.getFieldWithDefault(this, 7, false) as boolean;
|
||||
}
|
||||
set xcyxj(value: boolean) {
|
||||
pb_1.Message.setField(this, 7, value);
|
||||
}
|
||||
get cfjList() {
|
||||
return pb_1.Message.getFieldWithDefault(this, 8, []) as boolean[];
|
||||
}
|
||||
set cfjList(value: boolean[]) {
|
||||
pb_1.Message.setField(this, 8, value);
|
||||
}
|
||||
get jtj() {
|
||||
return pb_1.Message.getFieldWithDefault(this, 9, false) as boolean;
|
||||
}
|
||||
set jtj(value: boolean) {
|
||||
pb_1.Message.setField(this, 9, value);
|
||||
}
|
||||
get tgyxj() {
|
||||
return pb_1.Message.getFieldWithDefault(this, 10, false) as boolean;
|
||||
}
|
||||
set tgyxj(value: boolean) {
|
||||
pb_1.Message.setField(this, 10, value);
|
||||
}
|
||||
static fromObject(data: {
|
||||
id?: number;
|
||||
param?: ReturnType<typeof dependency_3.request.XcjParam.prototype.toObject>;
|
||||
xqj?: boolean;
|
||||
twjList?: boolean[];
|
||||
tgqj?: boolean;
|
||||
xcjxj?: boolean;
|
||||
xcyxj?: boolean;
|
||||
cfjList?: boolean[];
|
||||
jtj?: boolean;
|
||||
tgyxj?: boolean;
|
||||
}): XcjState {
|
||||
const message = new XcjState({});
|
||||
if (data.id != null) {
|
||||
message.id = data.id;
|
||||
}
|
||||
if (data.param != null) {
|
||||
message.param = dependency_3.request.XcjParam.fromObject(data.param);
|
||||
}
|
||||
if (data.xqj != null) {
|
||||
message.xqj = data.xqj;
|
||||
}
|
||||
if (data.twjList != null) {
|
||||
message.twjList = data.twjList;
|
||||
}
|
||||
if (data.tgqj != null) {
|
||||
message.tgqj = data.tgqj;
|
||||
}
|
||||
if (data.xcjxj != null) {
|
||||
message.xcjxj = data.xcjxj;
|
||||
}
|
||||
if (data.xcyxj != null) {
|
||||
message.xcyxj = data.xcyxj;
|
||||
}
|
||||
if (data.cfjList != null) {
|
||||
message.cfjList = data.cfjList;
|
||||
}
|
||||
if (data.jtj != null) {
|
||||
message.jtj = data.jtj;
|
||||
}
|
||||
if (data.tgyxj != null) {
|
||||
message.tgyxj = data.tgyxj;
|
||||
}
|
||||
return message;
|
||||
}
|
||||
toObject() {
|
||||
const data: {
|
||||
id?: number;
|
||||
param?: ReturnType<typeof dependency_3.request.XcjParam.prototype.toObject>;
|
||||
xqj?: boolean;
|
||||
twjList?: boolean[];
|
||||
tgqj?: boolean;
|
||||
xcjxj?: boolean;
|
||||
xcyxj?: boolean;
|
||||
cfjList?: boolean[];
|
||||
jtj?: boolean;
|
||||
tgyxj?: boolean;
|
||||
} = {};
|
||||
if (this.id != null) {
|
||||
data.id = this.id;
|
||||
}
|
||||
if (this.param != null) {
|
||||
data.param = this.param.toObject();
|
||||
}
|
||||
if (this.xqj != null) {
|
||||
data.xqj = this.xqj;
|
||||
}
|
||||
if (this.twjList != null) {
|
||||
data.twjList = this.twjList;
|
||||
}
|
||||
if (this.tgqj != null) {
|
||||
data.tgqj = this.tgqj;
|
||||
}
|
||||
if (this.xcjxj != null) {
|
||||
data.xcjxj = this.xcjxj;
|
||||
}
|
||||
if (this.xcyxj != null) {
|
||||
data.xcyxj = this.xcyxj;
|
||||
}
|
||||
if (this.cfjList != null) {
|
||||
data.cfjList = this.cfjList;
|
||||
}
|
||||
if (this.jtj != null) {
|
||||
data.jtj = this.jtj;
|
||||
}
|
||||
if (this.tgyxj != null) {
|
||||
data.tgyxj = this.tgyxj;
|
||||
}
|
||||
return data;
|
||||
}
|
||||
serialize(): Uint8Array;
|
||||
serialize(w: pb_1.BinaryWriter): void;
|
||||
serialize(w?: pb_1.BinaryWriter): Uint8Array | void {
|
||||
const writer = w || new pb_1.BinaryWriter();
|
||||
if (this.id != 0)
|
||||
writer.writeUint32(1, this.id);
|
||||
if (this.has_param)
|
||||
writer.writeMessage(2, this.param, () => this.param.serialize(writer));
|
||||
if (this.xqj != false)
|
||||
writer.writeBool(3, this.xqj);
|
||||
if (this.twjList.length)
|
||||
writer.writePackedBool(4, this.twjList);
|
||||
if (this.tgqj != false)
|
||||
writer.writeBool(5, this.tgqj);
|
||||
if (this.xcjxj != false)
|
||||
writer.writeBool(6, this.xcjxj);
|
||||
if (this.xcyxj != false)
|
||||
writer.writeBool(7, this.xcyxj);
|
||||
if (this.cfjList.length)
|
||||
writer.writePackedBool(8, this.cfjList);
|
||||
if (this.jtj != false)
|
||||
writer.writeBool(9, this.jtj);
|
||||
if (this.tgyxj != false)
|
||||
writer.writeBool(10, this.tgyxj);
|
||||
if (!w)
|
||||
return writer.getResultBuffer();
|
||||
}
|
||||
static deserialize(bytes: Uint8Array | pb_1.BinaryReader): XcjState {
|
||||
const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new XcjState();
|
||||
while (reader.nextField()) {
|
||||
if (reader.isEndGroup())
|
||||
break;
|
||||
switch (reader.getFieldNumber()) {
|
||||
case 1:
|
||||
message.id = reader.readUint32();
|
||||
break;
|
||||
case 2:
|
||||
reader.readMessage(message.param, () => message.param = dependency_3.request.XcjParam.deserialize(reader));
|
||||
break;
|
||||
case 3:
|
||||
message.xqj = reader.readBool();
|
||||
break;
|
||||
case 4:
|
||||
message.twjList = reader.readPackedBool();
|
||||
break;
|
||||
case 5:
|
||||
message.tgqj = reader.readBool();
|
||||
break;
|
||||
case 6:
|
||||
message.xcjxj = reader.readBool();
|
||||
break;
|
||||
case 7:
|
||||
message.xcyxj = reader.readBool();
|
||||
break;
|
||||
case 8:
|
||||
message.cfjList = reader.readPackedBool();
|
||||
break;
|
||||
case 9:
|
||||
message.jtj = reader.readBool();
|
||||
break;
|
||||
case 10:
|
||||
message.tgyxj = reader.readBool();
|
||||
break;
|
||||
default: reader.skipField();
|
||||
}
|
||||
}
|
||||
return message;
|
||||
}
|
||||
serializeBinary(): Uint8Array {
|
||||
return this.serialize();
|
||||
}
|
||||
static deserializeBinary(bytes: Uint8Array): XcjState {
|
||||
return XcjState.deserialize(bytes);
|
||||
}
|
||||
}
|
||||
export class VariationStatus extends pb_1.Message {
|
||||
#one_of_decls: number[][] = [];
|
||||
constructor(data?: any[] | {
|
||||
@ -7166,9 +7443,10 @@ export namespace state {
|
||||
stationQc?: StationQc;
|
||||
ckmStates?: CkmState[];
|
||||
fymStates?: CkmState[];
|
||||
xcjStates?: XcjState[];
|
||||
}) {
|
||||
super();
|
||||
pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 14, 15], this.#one_of_decls);
|
||||
pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 14, 15, 16], this.#one_of_decls);
|
||||
if (!Array.isArray(data) && typeof data == "object") {
|
||||
if ("trainState" in data && data.trainState != undefined) {
|
||||
this.trainState = data.trainState;
|
||||
@ -7215,6 +7493,9 @@ export namespace state {
|
||||
if ("fymStates" in data && data.fymStates != undefined) {
|
||||
this.fymStates = data.fymStates;
|
||||
}
|
||||
if ("xcjStates" in data && data.xcjStates != undefined) {
|
||||
this.xcjStates = data.xcjStates;
|
||||
}
|
||||
}
|
||||
}
|
||||
get trainState() {
|
||||
@ -7310,6 +7591,12 @@ export namespace state {
|
||||
set fymStates(value: CkmState[]) {
|
||||
pb_1.Message.setRepeatedWrapperField(this, 15, value);
|
||||
}
|
||||
get xcjStates() {
|
||||
return pb_1.Message.getRepeatedWrapperField(this, XcjState, 16) as XcjState[];
|
||||
}
|
||||
set xcjStates(value: XcjState[]) {
|
||||
pb_1.Message.setRepeatedWrapperField(this, 16, value);
|
||||
}
|
||||
static fromObject(data: {
|
||||
trainState?: ReturnType<typeof TrainMapState.prototype.toObject>[];
|
||||
switchState?: ReturnType<typeof SwitchState.prototype.toObject>[];
|
||||
@ -7326,6 +7613,7 @@ export namespace state {
|
||||
stationQc?: ReturnType<typeof StationQc.prototype.toObject>;
|
||||
ckmStates?: ReturnType<typeof CkmState.prototype.toObject>[];
|
||||
fymStates?: ReturnType<typeof CkmState.prototype.toObject>[];
|
||||
xcjStates?: ReturnType<typeof XcjState.prototype.toObject>[];
|
||||
}): AllDevicesStatus {
|
||||
const message = new AllDevicesStatus({});
|
||||
if (data.trainState != null) {
|
||||
@ -7373,6 +7661,9 @@ export namespace state {
|
||||
if (data.fymStates != null) {
|
||||
message.fymStates = data.fymStates.map(item => CkmState.fromObject(item));
|
||||
}
|
||||
if (data.xcjStates != null) {
|
||||
message.xcjStates = data.xcjStates.map(item => XcjState.fromObject(item));
|
||||
}
|
||||
return message;
|
||||
}
|
||||
toObject() {
|
||||
@ -7392,6 +7683,7 @@ export namespace state {
|
||||
stationQc?: ReturnType<typeof StationQc.prototype.toObject>;
|
||||
ckmStates?: ReturnType<typeof CkmState.prototype.toObject>[];
|
||||
fymStates?: ReturnType<typeof CkmState.prototype.toObject>[];
|
||||
xcjStates?: ReturnType<typeof XcjState.prototype.toObject>[];
|
||||
} = {};
|
||||
if (this.trainState != null) {
|
||||
data.trainState = this.trainState.map((item: TrainMapState) => item.toObject());
|
||||
@ -7438,6 +7730,9 @@ export namespace state {
|
||||
if (this.fymStates != null) {
|
||||
data.fymStates = this.fymStates.map((item: CkmState) => item.toObject());
|
||||
}
|
||||
if (this.xcjStates != null) {
|
||||
data.xcjStates = this.xcjStates.map((item: XcjState) => item.toObject());
|
||||
}
|
||||
return data;
|
||||
}
|
||||
serialize(): Uint8Array;
|
||||
@ -7474,6 +7769,8 @@ export namespace state {
|
||||
writer.writeRepeatedMessage(14, this.ckmStates, (item: CkmState) => item.serialize(writer));
|
||||
if (this.fymStates.length)
|
||||
writer.writeRepeatedMessage(15, this.fymStates, (item: CkmState) => item.serialize(writer));
|
||||
if (this.xcjStates.length)
|
||||
writer.writeRepeatedMessage(16, this.xcjStates, (item: XcjState) => item.serialize(writer));
|
||||
if (!w)
|
||||
return writer.getResultBuffer();
|
||||
}
|
||||
@ -7528,6 +7825,9 @@ export namespace state {
|
||||
case 15:
|
||||
reader.readMessage(message.fymStates, () => pb_1.Message.addToRepeatedWrapperField(message, 15, CkmState.deserialize(reader), CkmState));
|
||||
break;
|
||||
case 16:
|
||||
reader.readMessage(message.xcjStates, () => pb_1.Message.addToRepeatedWrapperField(message, 16, XcjState.deserialize(reader), XcjState));
|
||||
break;
|
||||
default: reader.skipField();
|
||||
}
|
||||
}
|
||||
|
@ -2264,14 +2264,14 @@ export namespace request {
|
||||
return CkmParam.deserialize(bytes);
|
||||
}
|
||||
}
|
||||
export class CkmBoxOperationReq extends pb_1.Message {
|
||||
export class XcjOperationReq extends pb_1.Message {
|
||||
#one_of_decls: number[][] = [];
|
||||
constructor(data?: any[] | {
|
||||
simulationId?: string;
|
||||
mapId?: number;
|
||||
ckmBoxId?: number;
|
||||
buttonCode?: string;
|
||||
down?: boolean;
|
||||
deviceId?: number;
|
||||
operation?: Xcj.Operation;
|
||||
param?: XcjParam;
|
||||
}) {
|
||||
super();
|
||||
pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], this.#one_of_decls);
|
||||
@ -2282,14 +2282,14 @@ export namespace request {
|
||||
if ("mapId" in data && data.mapId != undefined) {
|
||||
this.mapId = data.mapId;
|
||||
}
|
||||
if ("ckmBoxId" in data && data.ckmBoxId != undefined) {
|
||||
this.ckmBoxId = data.ckmBoxId;
|
||||
if ("deviceId" in data && data.deviceId != undefined) {
|
||||
this.deviceId = data.deviceId;
|
||||
}
|
||||
if ("buttonCode" in data && data.buttonCode != undefined) {
|
||||
this.buttonCode = data.buttonCode;
|
||||
if ("operation" in data && data.operation != undefined) {
|
||||
this.operation = data.operation;
|
||||
}
|
||||
if ("down" in data && data.down != undefined) {
|
||||
this.down = data.down;
|
||||
if ("param" in data && data.param != undefined) {
|
||||
this.param = data.param;
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -2305,46 +2305,49 @@ export namespace request {
|
||||
set mapId(value: number) {
|
||||
pb_1.Message.setField(this, 2, value);
|
||||
}
|
||||
get ckmBoxId() {
|
||||
get deviceId() {
|
||||
return pb_1.Message.getFieldWithDefault(this, 3, 0) as number;
|
||||
}
|
||||
set ckmBoxId(value: number) {
|
||||
set deviceId(value: number) {
|
||||
pb_1.Message.setField(this, 3, value);
|
||||
}
|
||||
get buttonCode() {
|
||||
return pb_1.Message.getFieldWithDefault(this, 4, "") as string;
|
||||
get operation() {
|
||||
return pb_1.Message.getFieldWithDefault(this, 4, Xcj.Operation.Undefined) as Xcj.Operation;
|
||||
}
|
||||
set buttonCode(value: string) {
|
||||
set operation(value: Xcj.Operation) {
|
||||
pb_1.Message.setField(this, 4, value);
|
||||
}
|
||||
get down() {
|
||||
return pb_1.Message.getFieldWithDefault(this, 5, false) as boolean;
|
||||
get param() {
|
||||
return pb_1.Message.getWrapperField(this, XcjParam, 5) as XcjParam;
|
||||
}
|
||||
set down(value: boolean) {
|
||||
pb_1.Message.setField(this, 5, value);
|
||||
set param(value: XcjParam) {
|
||||
pb_1.Message.setWrapperField(this, 5, value);
|
||||
}
|
||||
get has_param() {
|
||||
return pb_1.Message.getField(this, 5) != null;
|
||||
}
|
||||
static fromObject(data: {
|
||||
simulationId?: string;
|
||||
mapId?: number;
|
||||
ckmBoxId?: number;
|
||||
buttonCode?: string;
|
||||
down?: boolean;
|
||||
}): CkmBoxOperationReq {
|
||||
const message = new CkmBoxOperationReq({});
|
||||
deviceId?: number;
|
||||
operation?: Xcj.Operation;
|
||||
param?: ReturnType<typeof XcjParam.prototype.toObject>;
|
||||
}): XcjOperationReq {
|
||||
const message = new XcjOperationReq({});
|
||||
if (data.simulationId != null) {
|
||||
message.simulationId = data.simulationId;
|
||||
}
|
||||
if (data.mapId != null) {
|
||||
message.mapId = data.mapId;
|
||||
}
|
||||
if (data.ckmBoxId != null) {
|
||||
message.ckmBoxId = data.ckmBoxId;
|
||||
if (data.deviceId != null) {
|
||||
message.deviceId = data.deviceId;
|
||||
}
|
||||
if (data.buttonCode != null) {
|
||||
message.buttonCode = data.buttonCode;
|
||||
if (data.operation != null) {
|
||||
message.operation = data.operation;
|
||||
}
|
||||
if (data.down != null) {
|
||||
message.down = data.down;
|
||||
if (data.param != null) {
|
||||
message.param = XcjParam.fromObject(data.param);
|
||||
}
|
||||
return message;
|
||||
}
|
||||
@ -2352,9 +2355,9 @@ export namespace request {
|
||||
const data: {
|
||||
simulationId?: string;
|
||||
mapId?: number;
|
||||
ckmBoxId?: number;
|
||||
buttonCode?: string;
|
||||
down?: boolean;
|
||||
deviceId?: number;
|
||||
operation?: Xcj.Operation;
|
||||
param?: ReturnType<typeof XcjParam.prototype.toObject>;
|
||||
} = {};
|
||||
if (this.simulationId != null) {
|
||||
data.simulationId = this.simulationId;
|
||||
@ -2362,14 +2365,14 @@ export namespace request {
|
||||
if (this.mapId != null) {
|
||||
data.mapId = this.mapId;
|
||||
}
|
||||
if (this.ckmBoxId != null) {
|
||||
data.ckmBoxId = this.ckmBoxId;
|
||||
if (this.deviceId != null) {
|
||||
data.deviceId = this.deviceId;
|
||||
}
|
||||
if (this.buttonCode != null) {
|
||||
data.buttonCode = this.buttonCode;
|
||||
if (this.operation != null) {
|
||||
data.operation = this.operation;
|
||||
}
|
||||
if (this.down != null) {
|
||||
data.down = this.down;
|
||||
if (this.param != null) {
|
||||
data.param = this.param.toObject();
|
||||
}
|
||||
return data;
|
||||
}
|
||||
@ -2381,17 +2384,17 @@ export namespace request {
|
||||
writer.writeString(1, this.simulationId);
|
||||
if (this.mapId != 0)
|
||||
writer.writeInt32(2, this.mapId);
|
||||
if (this.ckmBoxId != 0)
|
||||
writer.writeUint32(3, this.ckmBoxId);
|
||||
if (this.buttonCode.length)
|
||||
writer.writeString(4, this.buttonCode);
|
||||
if (this.down != false)
|
||||
writer.writeBool(5, this.down);
|
||||
if (this.deviceId != 0)
|
||||
writer.writeUint32(3, this.deviceId);
|
||||
if (this.operation != Xcj.Operation.Undefined)
|
||||
writer.writeEnum(4, this.operation);
|
||||
if (this.has_param)
|
||||
writer.writeMessage(5, this.param, () => this.param.serialize(writer));
|
||||
if (!w)
|
||||
return writer.getResultBuffer();
|
||||
}
|
||||
static deserialize(bytes: Uint8Array | pb_1.BinaryReader): CkmBoxOperationReq {
|
||||
const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new CkmBoxOperationReq();
|
||||
static deserialize(bytes: Uint8Array | pb_1.BinaryReader): XcjOperationReq {
|
||||
const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new XcjOperationReq();
|
||||
while (reader.nextField()) {
|
||||
if (reader.isEndGroup())
|
||||
break;
|
||||
@ -2403,13 +2406,13 @@ export namespace request {
|
||||
message.mapId = reader.readInt32();
|
||||
break;
|
||||
case 3:
|
||||
message.ckmBoxId = reader.readUint32();
|
||||
message.deviceId = reader.readUint32();
|
||||
break;
|
||||
case 4:
|
||||
message.buttonCode = reader.readString();
|
||||
message.operation = reader.readEnum();
|
||||
break;
|
||||
case 5:
|
||||
message.down = reader.readBool();
|
||||
reader.readMessage(message.param, () => message.param = XcjParam.deserialize(reader));
|
||||
break;
|
||||
default: reader.skipField();
|
||||
}
|
||||
@ -2419,8 +2422,125 @@ export namespace request {
|
||||
serializeBinary(): Uint8Array {
|
||||
return this.serialize();
|
||||
}
|
||||
static deserializeBinary(bytes: Uint8Array): CkmBoxOperationReq {
|
||||
return CkmBoxOperationReq.deserialize(bytes);
|
||||
static deserializeBinary(bytes: Uint8Array): XcjOperationReq {
|
||||
return XcjOperationReq.deserialize(bytes);
|
||||
}
|
||||
}
|
||||
export class Xcj extends pb_1.Message {
|
||||
#one_of_decls: number[][] = [];
|
||||
constructor(data?: any[] | {}) {
|
||||
super();
|
||||
pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], this.#one_of_decls);
|
||||
if (!Array.isArray(data) && typeof data == "object") { }
|
||||
}
|
||||
static fromObject(data: {}): Xcj {
|
||||
const message = new Xcj({});
|
||||
return message;
|
||||
}
|
||||
toObject() {
|
||||
const data: {} = {};
|
||||
return data;
|
||||
}
|
||||
serialize(): Uint8Array;
|
||||
serialize(w: pb_1.BinaryWriter): void;
|
||||
serialize(w?: pb_1.BinaryWriter): Uint8Array | void {
|
||||
const writer = w || new pb_1.BinaryWriter();
|
||||
if (!w)
|
||||
return writer.getResultBuffer();
|
||||
}
|
||||
static deserialize(bytes: Uint8Array | pb_1.BinaryReader): Xcj {
|
||||
const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new Xcj();
|
||||
while (reader.nextField()) {
|
||||
if (reader.isEndGroup())
|
||||
break;
|
||||
switch (reader.getFieldNumber()) {
|
||||
default: reader.skipField();
|
||||
}
|
||||
}
|
||||
return message;
|
||||
}
|
||||
serializeBinary(): Uint8Array {
|
||||
return this.serialize();
|
||||
}
|
||||
static deserializeBinary(bytes: Uint8Array): Xcj {
|
||||
return Xcj.deserialize(bytes);
|
||||
}
|
||||
}
|
||||
export namespace Xcj {
|
||||
export enum Operation {
|
||||
Undefined = 0,
|
||||
SetParams = 1
|
||||
}
|
||||
export enum Fault {
|
||||
FA_NONE = 0,
|
||||
FA_Fault = 1
|
||||
}
|
||||
}
|
||||
export class XcjParam extends pb_1.Message {
|
||||
#one_of_decls: number[][] = [];
|
||||
constructor(data?: any[] | {
|
||||
fault?: Xcj.Fault;
|
||||
}) {
|
||||
super();
|
||||
pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], this.#one_of_decls);
|
||||
if (!Array.isArray(data) && typeof data == "object") {
|
||||
if ("fault" in data && data.fault != undefined) {
|
||||
this.fault = data.fault;
|
||||
}
|
||||
}
|
||||
}
|
||||
get fault() {
|
||||
return pb_1.Message.getFieldWithDefault(this, 1, Xcj.Fault.FA_NONE) as Xcj.Fault;
|
||||
}
|
||||
set fault(value: Xcj.Fault) {
|
||||
pb_1.Message.setField(this, 1, value);
|
||||
}
|
||||
static fromObject(data: {
|
||||
fault?: Xcj.Fault;
|
||||
}): XcjParam {
|
||||
const message = new XcjParam({});
|
||||
if (data.fault != null) {
|
||||
message.fault = data.fault;
|
||||
}
|
||||
return message;
|
||||
}
|
||||
toObject() {
|
||||
const data: {
|
||||
fault?: Xcj.Fault;
|
||||
} = {};
|
||||
if (this.fault != null) {
|
||||
data.fault = this.fault;
|
||||
}
|
||||
return data;
|
||||
}
|
||||
serialize(): Uint8Array;
|
||||
serialize(w: pb_1.BinaryWriter): void;
|
||||
serialize(w?: pb_1.BinaryWriter): Uint8Array | void {
|
||||
const writer = w || new pb_1.BinaryWriter();
|
||||
if (this.fault != Xcj.Fault.FA_NONE)
|
||||
writer.writeEnum(1, this.fault);
|
||||
if (!w)
|
||||
return writer.getResultBuffer();
|
||||
}
|
||||
static deserialize(bytes: Uint8Array | pb_1.BinaryReader): XcjParam {
|
||||
const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new XcjParam();
|
||||
while (reader.nextField()) {
|
||||
if (reader.isEndGroup())
|
||||
break;
|
||||
switch (reader.getFieldNumber()) {
|
||||
case 1:
|
||||
message.fault = reader.readEnum();
|
||||
break;
|
||||
default: reader.skipField();
|
||||
}
|
||||
}
|
||||
return message;
|
||||
}
|
||||
serializeBinary(): Uint8Array {
|
||||
return this.serialize();
|
||||
}
|
||||
static deserializeBinary(bytes: Uint8Array): XcjParam {
|
||||
return XcjParam.deserialize(bytes);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user