Re-generate API code.

This commit is contained in:
Orne Brocaar
2023-10-26 15:11:05 +01:00
parent d38062aebd
commit fefa4f8be9
11 changed files with 925 additions and 728 deletions

View File

@ -141,6 +141,12 @@ export class LoraModulationInfo extends jspb.Message {
getPolarizationInversion(): boolean;
setPolarizationInversion(value: boolean): void;
getPreamble(): number;
setPreamble(value: number): void;
getNoCrc(): boolean;
setNoCrc(value: boolean): void;
serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): LoraModulationInfo.AsObject;
static toObject(includeInstance: boolean, msg: LoraModulationInfo): LoraModulationInfo.AsObject;
@ -158,6 +164,8 @@ export namespace LoraModulationInfo {
codeRateLegacy: string,
codeRate: CodeRateMap[keyof CodeRateMap],
polarizationInversion: boolean,
preamble: number,
noCrc: boolean,
}
}

62
api/js/gw/gw_pb.js vendored
View File

@ -1596,7 +1596,9 @@ proto.gw.LoraModulationInfo.toObject = function(includeInstance, msg) {
spreadingFactor: jspb.Message.getFieldWithDefault(msg, 2, 0),
codeRateLegacy: jspb.Message.getFieldWithDefault(msg, 3, ""),
codeRate: jspb.Message.getFieldWithDefault(msg, 5, 0),
polarizationInversion: jspb.Message.getBooleanFieldWithDefault(msg, 4, false)
polarizationInversion: jspb.Message.getBooleanFieldWithDefault(msg, 4, false),
preamble: jspb.Message.getFieldWithDefault(msg, 6, 0),
noCrc: jspb.Message.getBooleanFieldWithDefault(msg, 7, false)
};
if (includeInstance) {
@ -1653,6 +1655,14 @@ proto.gw.LoraModulationInfo.deserializeBinaryFromReader = function(msg, reader)
var value = /** @type {boolean} */ (reader.readBool());
msg.setPolarizationInversion(value);
break;
case 6:
var value = /** @type {number} */ (reader.readUint32());
msg.setPreamble(value);
break;
case 7:
var value = /** @type {boolean} */ (reader.readBool());
msg.setNoCrc(value);
break;
default:
reader.skipField();
break;
@ -1717,6 +1727,20 @@ proto.gw.LoraModulationInfo.serializeBinaryToWriter = function(message, writer)
f
);
}
f = message.getPreamble();
if (f !== 0) {
writer.writeUint32(
6,
f
);
}
f = message.getNoCrc();
if (f) {
writer.writeBool(
7,
f
);
}
};
@ -1810,6 +1834,42 @@ proto.gw.LoraModulationInfo.prototype.setPolarizationInversion = function(value)
};
/**
* optional uint32 preamble = 6;
* @return {number}
*/
proto.gw.LoraModulationInfo.prototype.getPreamble = function() {
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0));
};
/**
* @param {number} value
* @return {!proto.gw.LoraModulationInfo} returns this
*/
proto.gw.LoraModulationInfo.prototype.setPreamble = function(value) {
return jspb.Message.setProto3IntField(this, 6, value);
};
/**
* optional bool no_crc = 7;
* @return {boolean}
*/
proto.gw.LoraModulationInfo.prototype.getNoCrc = function() {
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 7, false));
};
/**
* @param {boolean} value
* @return {!proto.gw.LoraModulationInfo} returns this
*/
proto.gw.LoraModulationInfo.prototype.setNoCrc = function(value) {
return jspb.Message.setProto3BooleanField(this, 7, value);
};