mirror of
https://github.com/chirpstack/chirpstack.git
synced 2025-05-06 02:48:25 +00:00
By selecting a region configuration, devices using the device-profile will only stick to the selected region configuration, rather than the configurations provided by the selected region common-name. This change also renames the region 'name' option to 'id' in the region configuration, as well it adds a 'description' to provide a human readable description, which is used in the drop-down in the UI. This also fixes the JS API generation. In a previous commit the the protobuf package was updated, but the latest protobuf compiler no longer supports generating JS code (this now requires an external plugin). This has been fixed. Please note that if you have implemented custom ADR algorithms that are referring to the 'regionName' key, that you must change this to 'regionConfigId' (see the ADR code example).
46 lines
1.7 KiB
JavaScript
Vendored
46 lines
1.7 KiB
JavaScript
Vendored
// source: google/api/annotations.proto
|
|
/**
|
|
* @fileoverview
|
|
* @enhanceable
|
|
* @suppress {messageConventions} JS Compiler reports an error if a variable or
|
|
* field starts with 'MSG_' and isn't a translatable message.
|
|
* @public
|
|
*/
|
|
// GENERATED CODE -- DO NOT EDIT!
|
|
|
|
var jspb = require('google-protobuf');
|
|
var goog = jspb;
|
|
var global = Function('return this')();
|
|
|
|
var google_api_http_pb = require('../../google/api/http_pb.js');
|
|
goog.object.extend(proto, google_api_http_pb);
|
|
var google_protobuf_descriptor_pb = require('google-protobuf/google/protobuf/descriptor_pb.js');
|
|
goog.object.extend(proto, google_protobuf_descriptor_pb);
|
|
goog.exportSymbol('proto.google.api.http', null, global);
|
|
|
|
/**
|
|
* A tuple of {field number, class constructor} for the extension
|
|
* field named `http`.
|
|
* @type {!jspb.ExtensionFieldInfo<!proto.google.api.HttpRule>}
|
|
*/
|
|
proto.google.api.http = new jspb.ExtensionFieldInfo(
|
|
72295728,
|
|
{http: 0},
|
|
google_api_http_pb.HttpRule,
|
|
/** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ (
|
|
google_api_http_pb.HttpRule.toObject),
|
|
0);
|
|
|
|
google_protobuf_descriptor_pb.MethodOptions.extensionsBinary[72295728] = new jspb.ExtensionFieldBinaryInfo(
|
|
proto.google.api.http,
|
|
jspb.BinaryReader.prototype.readMessage,
|
|
jspb.BinaryWriter.prototype.writeMessage,
|
|
google_api_http_pb.HttpRule.serializeBinaryToWriter,
|
|
google_api_http_pb.HttpRule.deserializeBinaryFromReader,
|
|
false);
|
|
// This registers the extension field with the extended class, so that
|
|
// toObject() will function correctly.
|
|
google_protobuf_descriptor_pb.MethodOptions.extensions[72295728] = proto.google.api.http;
|
|
|
|
goog.object.extend(exports, proto.google.api);
|