mirror of
https://github.com/chirpstack/chirpstack.git
synced 2025-06-12 20:48:09 +00:00
Change command exec_id to uint32.
This commit is contained in:
28
api/js/gw/gw_pb.d.ts
vendored
28
api/js/gw/gw_pb.d.ts
vendored
@ -1191,10 +1191,8 @@ export class GatewayCommandExecRequest extends jspb.Message {
|
||||
getCommand(): string;
|
||||
setCommand(value: string): void;
|
||||
|
||||
getExecid(): Uint8Array | string;
|
||||
getExecid_asU8(): Uint8Array;
|
||||
getExecid_asB64(): string;
|
||||
setExecid(value: Uint8Array | string): void;
|
||||
getExecId(): number;
|
||||
setExecId(value: number): void;
|
||||
|
||||
getStdin(): Uint8Array | string;
|
||||
getStdin_asU8(): Uint8Array;
|
||||
@ -1218,7 +1216,7 @@ export namespace GatewayCommandExecRequest {
|
||||
gatewayIdLegacy: Uint8Array | string,
|
||||
gatewayId: string,
|
||||
command: string,
|
||||
execid: Uint8Array | string,
|
||||
execId: number,
|
||||
stdin: Uint8Array | string,
|
||||
environmentMap: Array<[string, string]>,
|
||||
}
|
||||
@ -1233,10 +1231,8 @@ export class GatewayCommandExecResponse extends jspb.Message {
|
||||
getGatewayId(): string;
|
||||
setGatewayId(value: string): void;
|
||||
|
||||
getExecId(): Uint8Array | string;
|
||||
getExecId_asU8(): Uint8Array;
|
||||
getExecId_asB64(): string;
|
||||
setExecId(value: Uint8Array | string): void;
|
||||
getExecId(): number;
|
||||
setExecId(value: number): void;
|
||||
|
||||
getStdout(): Uint8Array | string;
|
||||
getStdout_asU8(): Uint8Array;
|
||||
@ -1265,7 +1261,7 @@ export namespace GatewayCommandExecResponse {
|
||||
export type AsObject = {
|
||||
gatewayIdLegacy: Uint8Array | string,
|
||||
gatewayId: string,
|
||||
execId: Uint8Array | string,
|
||||
execId: number,
|
||||
stdout: Uint8Array | string,
|
||||
stderr: Uint8Array | string,
|
||||
error: string,
|
||||
@ -1281,11 +1277,6 @@ export class RawPacketForwarderEvent extends jspb.Message {
|
||||
getGatewayId(): string;
|
||||
setGatewayId(value: string): void;
|
||||
|
||||
getRawId(): Uint8Array | string;
|
||||
getRawId_asU8(): Uint8Array;
|
||||
getRawId_asB64(): string;
|
||||
setRawId(value: Uint8Array | string): void;
|
||||
|
||||
getPayload(): Uint8Array | string;
|
||||
getPayload_asU8(): Uint8Array;
|
||||
getPayload_asB64(): string;
|
||||
@ -1305,7 +1296,6 @@ export namespace RawPacketForwarderEvent {
|
||||
export type AsObject = {
|
||||
gatewayIdLegacy: Uint8Array | string,
|
||||
gatewayId: string,
|
||||
rawId: Uint8Array | string,
|
||||
payload: Uint8Array | string,
|
||||
}
|
||||
}
|
||||
@ -1319,11 +1309,6 @@ export class RawPacketForwarderCommand extends jspb.Message {
|
||||
getGatewayId(): string;
|
||||
setGatewayId(value: string): void;
|
||||
|
||||
getRawId(): Uint8Array | string;
|
||||
getRawId_asU8(): Uint8Array;
|
||||
getRawId_asB64(): string;
|
||||
setRawId(value: Uint8Array | string): void;
|
||||
|
||||
getPayload(): Uint8Array | string;
|
||||
getPayload_asU8(): Uint8Array;
|
||||
getPayload_asB64(): string;
|
||||
@ -1343,7 +1328,6 @@ export namespace RawPacketForwarderCommand {
|
||||
export type AsObject = {
|
||||
gatewayIdLegacy: Uint8Array | string,
|
||||
gatewayId: string,
|
||||
rawId: Uint8Array | string,
|
||||
payload: Uint8Array | string,
|
||||
}
|
||||
}
|
||||
|
204
api/js/gw/gw_pb.js
vendored
204
api/js/gw/gw_pb.js
vendored
@ -8890,7 +8890,7 @@ proto.gw.GatewayCommandExecRequest.toObject = function(includeInstance, msg) {
|
||||
gatewayIdLegacy: msg.getGatewayIdLegacy_asB64(),
|
||||
gatewayId: msg.getGatewayId(),
|
||||
command: msg.getCommand(),
|
||||
execid: msg.getExecid_asB64(),
|
||||
execId: msg.getExecId(),
|
||||
stdin: msg.getStdin_asB64(),
|
||||
environmentMap: (f = msg.getEnvironmentMap(true)) ? f.toArray() : []
|
||||
};
|
||||
@ -8941,9 +8941,9 @@ proto.gw.GatewayCommandExecRequest.deserializeBinaryFromReader = function(msg, r
|
||||
var value = /** @type {string} */ (reader.readString());
|
||||
msg.setCommand(value);
|
||||
break;
|
||||
case 3:
|
||||
var value = /** @type {!Uint8Array} */ (reader.readBytes());
|
||||
msg.setExecid(value);
|
||||
case 7:
|
||||
var value = /** @type {number} */ (reader.readUint32());
|
||||
msg.setExecId(value);
|
||||
break;
|
||||
case 4:
|
||||
var value = /** @type {!Uint8Array} */ (reader.readBytes());
|
||||
@ -9014,10 +9014,10 @@ proto.gw.GatewayCommandExecRequest.prototype.serializeBinaryToWriter = function
|
||||
f
|
||||
);
|
||||
}
|
||||
f = this.getExecid_asU8();
|
||||
if (f.length > 0) {
|
||||
writer.writeBytes(
|
||||
3,
|
||||
f = this.getExecId();
|
||||
if (f !== 0) {
|
||||
writer.writeUint32(
|
||||
7,
|
||||
f
|
||||
);
|
||||
}
|
||||
@ -9114,41 +9114,17 @@ proto.gw.GatewayCommandExecRequest.prototype.setCommand = function(value) {
|
||||
|
||||
|
||||
/**
|
||||
* optional bytes ExecId = 3;
|
||||
* @return {!(string|Uint8Array)}
|
||||
* optional uint32 exec_id = 7;
|
||||
* @return {number}
|
||||
*/
|
||||
proto.gw.GatewayCommandExecRequest.prototype.getExecid = function() {
|
||||
return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldProto3(this, 3, ""));
|
||||
proto.gw.GatewayCommandExecRequest.prototype.getExecId = function() {
|
||||
return /** @type {number} */ (jspb.Message.getFieldProto3(this, 7, 0));
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* optional bytes ExecId = 3;
|
||||
* This is a type-conversion wrapper around `getExecid()`
|
||||
* @return {string}
|
||||
*/
|
||||
proto.gw.GatewayCommandExecRequest.prototype.getExecid_asB64 = function() {
|
||||
return /** @type {string} */ (jspb.Message.bytesAsB64(
|
||||
this.getExecid()));
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* optional bytes ExecId = 3;
|
||||
* Note that Uint8Array is not supported on all browsers.
|
||||
* @see http://caniuse.com/Uint8Array
|
||||
* This is a type-conversion wrapper around `getExecid()`
|
||||
* @return {!Uint8Array}
|
||||
*/
|
||||
proto.gw.GatewayCommandExecRequest.prototype.getExecid_asU8 = function() {
|
||||
return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
|
||||
this.getExecid()));
|
||||
};
|
||||
|
||||
|
||||
/** @param {!(string|Uint8Array)} value */
|
||||
proto.gw.GatewayCommandExecRequest.prototype.setExecid = function(value) {
|
||||
jspb.Message.setField(this, 3, value);
|
||||
/** @param {number} value */
|
||||
proto.gw.GatewayCommandExecRequest.prototype.setExecId = function(value) {
|
||||
jspb.Message.setField(this, 7, value);
|
||||
};
|
||||
|
||||
|
||||
@ -9252,7 +9228,7 @@ proto.gw.GatewayCommandExecResponse.toObject = function(includeInstance, msg) {
|
||||
var f, obj = {
|
||||
gatewayIdLegacy: msg.getGatewayIdLegacy_asB64(),
|
||||
gatewayId: msg.getGatewayId(),
|
||||
execId: msg.getExecId_asB64(),
|
||||
execId: msg.getExecId(),
|
||||
stdout: msg.getStdout_asB64(),
|
||||
stderr: msg.getStderr_asB64(),
|
||||
error: msg.getError()
|
||||
@ -9300,8 +9276,8 @@ proto.gw.GatewayCommandExecResponse.deserializeBinaryFromReader = function(msg,
|
||||
var value = /** @type {string} */ (reader.readString());
|
||||
msg.setGatewayId(value);
|
||||
break;
|
||||
case 2:
|
||||
var value = /** @type {!Uint8Array} */ (reader.readBytes());
|
||||
case 7:
|
||||
var value = /** @type {number} */ (reader.readUint32());
|
||||
msg.setExecId(value);
|
||||
break;
|
||||
case 3:
|
||||
@ -9368,10 +9344,10 @@ proto.gw.GatewayCommandExecResponse.prototype.serializeBinaryToWriter = function
|
||||
f
|
||||
);
|
||||
}
|
||||
f = this.getExecId_asU8();
|
||||
if (f.length > 0) {
|
||||
writer.writeBytes(
|
||||
2,
|
||||
f = this.getExecId();
|
||||
if (f !== 0) {
|
||||
writer.writeUint32(
|
||||
7,
|
||||
f
|
||||
);
|
||||
}
|
||||
@ -9463,41 +9439,17 @@ proto.gw.GatewayCommandExecResponse.prototype.setGatewayId = function(value) {
|
||||
|
||||
|
||||
/**
|
||||
* optional bytes exec_id = 2;
|
||||
* @return {!(string|Uint8Array)}
|
||||
* optional uint32 exec_id = 7;
|
||||
* @return {number}
|
||||
*/
|
||||
proto.gw.GatewayCommandExecResponse.prototype.getExecId = function() {
|
||||
return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldProto3(this, 2, ""));
|
||||
return /** @type {number} */ (jspb.Message.getFieldProto3(this, 7, 0));
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* optional bytes exec_id = 2;
|
||||
* This is a type-conversion wrapper around `getExecId()`
|
||||
* @return {string}
|
||||
*/
|
||||
proto.gw.GatewayCommandExecResponse.prototype.getExecId_asB64 = function() {
|
||||
return /** @type {string} */ (jspb.Message.bytesAsB64(
|
||||
this.getExecId()));
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* optional bytes exec_id = 2;
|
||||
* Note that Uint8Array is not supported on all browsers.
|
||||
* @see http://caniuse.com/Uint8Array
|
||||
* This is a type-conversion wrapper around `getExecId()`
|
||||
* @return {!Uint8Array}
|
||||
*/
|
||||
proto.gw.GatewayCommandExecResponse.prototype.getExecId_asU8 = function() {
|
||||
return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
|
||||
this.getExecId()));
|
||||
};
|
||||
|
||||
|
||||
/** @param {!(string|Uint8Array)} value */
|
||||
/** @param {number} value */
|
||||
proto.gw.GatewayCommandExecResponse.prototype.setExecId = function(value) {
|
||||
jspb.Message.setField(this, 2, value);
|
||||
jspb.Message.setField(this, 7, value);
|
||||
};
|
||||
|
||||
|
||||
@ -9642,7 +9594,6 @@ proto.gw.RawPacketForwarderEvent.toObject = function(includeInstance, msg) {
|
||||
var f, obj = {
|
||||
gatewayIdLegacy: msg.getGatewayIdLegacy_asB64(),
|
||||
gatewayId: msg.getGatewayId(),
|
||||
rawId: msg.getRawId_asB64(),
|
||||
payload: msg.getPayload_asB64()
|
||||
};
|
||||
|
||||
@ -9688,10 +9639,6 @@ proto.gw.RawPacketForwarderEvent.deserializeBinaryFromReader = function(msg, rea
|
||||
var value = /** @type {string} */ (reader.readString());
|
||||
msg.setGatewayId(value);
|
||||
break;
|
||||
case 2:
|
||||
var value = /** @type {!Uint8Array} */ (reader.readBytes());
|
||||
msg.setRawId(value);
|
||||
break;
|
||||
case 3:
|
||||
var value = /** @type {!Uint8Array} */ (reader.readBytes());
|
||||
msg.setPayload(value);
|
||||
@ -9748,13 +9695,6 @@ proto.gw.RawPacketForwarderEvent.prototype.serializeBinaryToWriter = function (w
|
||||
f
|
||||
);
|
||||
}
|
||||
f = this.getRawId_asU8();
|
||||
if (f.length > 0) {
|
||||
writer.writeBytes(
|
||||
2,
|
||||
f
|
||||
);
|
||||
}
|
||||
f = this.getPayload_asU8();
|
||||
if (f.length > 0) {
|
||||
writer.writeBytes(
|
||||
@ -9828,45 +9768,6 @@ proto.gw.RawPacketForwarderEvent.prototype.setGatewayId = function(value) {
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* optional bytes raw_id = 2;
|
||||
* @return {!(string|Uint8Array)}
|
||||
*/
|
||||
proto.gw.RawPacketForwarderEvent.prototype.getRawId = function() {
|
||||
return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldProto3(this, 2, ""));
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* optional bytes raw_id = 2;
|
||||
* This is a type-conversion wrapper around `getRawId()`
|
||||
* @return {string}
|
||||
*/
|
||||
proto.gw.RawPacketForwarderEvent.prototype.getRawId_asB64 = function() {
|
||||
return /** @type {string} */ (jspb.Message.bytesAsB64(
|
||||
this.getRawId()));
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* optional bytes raw_id = 2;
|
||||
* Note that Uint8Array is not supported on all browsers.
|
||||
* @see http://caniuse.com/Uint8Array
|
||||
* This is a type-conversion wrapper around `getRawId()`
|
||||
* @return {!Uint8Array}
|
||||
*/
|
||||
proto.gw.RawPacketForwarderEvent.prototype.getRawId_asU8 = function() {
|
||||
return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
|
||||
this.getRawId()));
|
||||
};
|
||||
|
||||
|
||||
/** @param {!(string|Uint8Array)} value */
|
||||
proto.gw.RawPacketForwarderEvent.prototype.setRawId = function(value) {
|
||||
jspb.Message.setField(this, 2, value);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* optional bytes payload = 3;
|
||||
* @return {!(string|Uint8Array)}
|
||||
@ -9954,7 +9855,6 @@ proto.gw.RawPacketForwarderCommand.toObject = function(includeInstance, msg) {
|
||||
var f, obj = {
|
||||
gatewayIdLegacy: msg.getGatewayIdLegacy_asB64(),
|
||||
gatewayId: msg.getGatewayId(),
|
||||
rawId: msg.getRawId_asB64(),
|
||||
payload: msg.getPayload_asB64()
|
||||
};
|
||||
|
||||
@ -10000,10 +9900,6 @@ proto.gw.RawPacketForwarderCommand.deserializeBinaryFromReader = function(msg, r
|
||||
var value = /** @type {string} */ (reader.readString());
|
||||
msg.setGatewayId(value);
|
||||
break;
|
||||
case 2:
|
||||
var value = /** @type {!Uint8Array} */ (reader.readBytes());
|
||||
msg.setRawId(value);
|
||||
break;
|
||||
case 3:
|
||||
var value = /** @type {!Uint8Array} */ (reader.readBytes());
|
||||
msg.setPayload(value);
|
||||
@ -10060,13 +9956,6 @@ proto.gw.RawPacketForwarderCommand.prototype.serializeBinaryToWriter = function
|
||||
f
|
||||
);
|
||||
}
|
||||
f = this.getRawId_asU8();
|
||||
if (f.length > 0) {
|
||||
writer.writeBytes(
|
||||
2,
|
||||
f
|
||||
);
|
||||
}
|
||||
f = this.getPayload_asU8();
|
||||
if (f.length > 0) {
|
||||
writer.writeBytes(
|
||||
@ -10140,45 +10029,6 @@ proto.gw.RawPacketForwarderCommand.prototype.setGatewayId = function(value) {
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* optional bytes raw_id = 2;
|
||||
* @return {!(string|Uint8Array)}
|
||||
*/
|
||||
proto.gw.RawPacketForwarderCommand.prototype.getRawId = function() {
|
||||
return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldProto3(this, 2, ""));
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* optional bytes raw_id = 2;
|
||||
* This is a type-conversion wrapper around `getRawId()`
|
||||
* @return {string}
|
||||
*/
|
||||
proto.gw.RawPacketForwarderCommand.prototype.getRawId_asB64 = function() {
|
||||
return /** @type {string} */ (jspb.Message.bytesAsB64(
|
||||
this.getRawId()));
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* optional bytes raw_id = 2;
|
||||
* Note that Uint8Array is not supported on all browsers.
|
||||
* @see http://caniuse.com/Uint8Array
|
||||
* This is a type-conversion wrapper around `getRawId()`
|
||||
* @return {!Uint8Array}
|
||||
*/
|
||||
proto.gw.RawPacketForwarderCommand.prototype.getRawId_asU8 = function() {
|
||||
return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
|
||||
this.getRawId()));
|
||||
};
|
||||
|
||||
|
||||
/** @param {!(string|Uint8Array)} value */
|
||||
proto.gw.RawPacketForwarderCommand.prototype.setRawId = function(value) {
|
||||
jspb.Message.setField(this, 2, value);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* optional bytes payload = 3;
|
||||
* @return {!(string|Uint8Array)}
|
||||
|
Reference in New Issue
Block a user