Re-generate API code.

This commit is contained in:
Orne Brocaar
2023-06-14 13:11:46 +01:00
parent ba7b262323
commit 087a27f904
30 changed files with 1842 additions and 1443 deletions

View File

@ -32,6 +32,9 @@ export class DeviceInfo extends jspb.Message {
getDevEui(): string;
setDevEui(value: string): void;
getDeviceClassEnabled(): common_common_pb.DeviceClassMap[keyof common_common_pb.DeviceClassMap];
setDeviceClassEnabled(value: common_common_pb.DeviceClassMap[keyof common_common_pb.DeviceClassMap]): void;
getTagsMap(): jspb.Map<string, string>;
clearTagsMap(): void;
serializeBinary(): Uint8Array;
@ -54,6 +57,7 @@ export namespace DeviceInfo {
deviceProfileName: string,
deviceName: string,
devEui: string,
deviceClassEnabled: common_common_pb.DeviceClassMap[keyof common_common_pb.DeviceClassMap],
tagsMap: Array<[string, string]>,
}
}

View File

@ -304,6 +304,7 @@ proto.integration.DeviceInfo.toObject = function(includeInstance, msg) {
deviceProfileName: jspb.Message.getFieldWithDefault(msg, 6, ""),
deviceName: jspb.Message.getFieldWithDefault(msg, 7, ""),
devEui: jspb.Message.getFieldWithDefault(msg, 8, ""),
deviceClassEnabled: jspb.Message.getFieldWithDefault(msg, 10, 0),
tagsMap: (f = msg.getTagsMap()) ? f.toObject(includeInstance, undefined) : []
};
@ -373,6 +374,10 @@ proto.integration.DeviceInfo.deserializeBinaryFromReader = function(msg, reader)
var value = /** @type {string} */ (reader.readString());
msg.setDevEui(value);
break;
case 10:
var value = /** @type {!proto.common.DeviceClass} */ (reader.readEnum());
msg.setDeviceClassEnabled(value);
break;
case 9:
var value = msg.getTagsMap();
reader.readMessage(value, function(message, reader) {
@ -464,6 +469,13 @@ proto.integration.DeviceInfo.serializeBinaryToWriter = function(message, writer)
f
);
}
f = message.getDeviceClassEnabled();
if (f !== 0.0) {
writer.writeEnum(
10,
f
);
}
f = message.getTagsMap(true);
if (f && f.getLength() > 0) {
f.serializeBinary(9, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeString);
@ -615,6 +627,24 @@ proto.integration.DeviceInfo.prototype.setDevEui = function(value) {
};
/**
* optional common.DeviceClass device_class_enabled = 10;
* @return {!proto.common.DeviceClass}
*/
proto.integration.DeviceInfo.prototype.getDeviceClassEnabled = function() {
return /** @type {!proto.common.DeviceClass} */ (jspb.Message.getFieldWithDefault(this, 10, 0));
};
/**
* @param {!proto.common.DeviceClass} value
* @return {!proto.integration.DeviceInfo} returns this
*/
proto.integration.DeviceInfo.prototype.setDeviceClassEnabled = function(value) {
return jspb.Message.setProto3EnumField(this, 10, value);
};
/**
* map<string, string> tags = 9;
* @param {boolean=} opt_noLazyCreate Do not create the map if