mirror of
https://github.com/chirpstack/chirpstack.git
synced 2025-06-14 13:38:08 +00:00
411
api/js/integration/integration_pb.js
vendored
411
api/js/integration/integration_pb.js
vendored
@ -32,6 +32,7 @@ goog.exportSymbol('proto.integration.LogLevel', null, global);
|
||||
goog.exportSymbol('proto.integration.StatusEvent', null, global);
|
||||
goog.exportSymbol('proto.integration.TxAckEvent', null, global);
|
||||
goog.exportSymbol('proto.integration.UplinkEvent', null, global);
|
||||
goog.exportSymbol('proto.integration.UplinkRelayRxInfo', null, global);
|
||||
/**
|
||||
* Generated by JsPbCodeGenerator.
|
||||
* @param {Array=} opt_data Optional initial data array, typically from a
|
||||
@ -53,6 +54,27 @@ if (goog.DEBUG && !COMPILED) {
|
||||
*/
|
||||
proto.integration.DeviceInfo.displayName = 'proto.integration.DeviceInfo';
|
||||
}
|
||||
/**
|
||||
* Generated by JsPbCodeGenerator.
|
||||
* @param {Array=} opt_data Optional initial data array, typically from a
|
||||
* server response, or constructed directly in Javascript. The array is used
|
||||
* in place and becomes part of the constructed object. It is not cloned.
|
||||
* If no data is provided, the constructed object will be empty, but still
|
||||
* valid.
|
||||
* @extends {jspb.Message}
|
||||
* @constructor
|
||||
*/
|
||||
proto.integration.UplinkRelayRxInfo = function(opt_data) {
|
||||
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
||||
};
|
||||
goog.inherits(proto.integration.UplinkRelayRxInfo, jspb.Message);
|
||||
if (goog.DEBUG && !COMPILED) {
|
||||
/**
|
||||
* @public
|
||||
* @override
|
||||
*/
|
||||
proto.integration.UplinkRelayRxInfo.displayName = 'proto.integration.UplinkRelayRxInfo';
|
||||
}
|
||||
/**
|
||||
* Generated by JsPbCodeGenerator.
|
||||
* @param {Array=} opt_data Optional initial data array, typically from a
|
||||
@ -616,6 +638,286 @@ proto.integration.DeviceInfo.prototype.clearTagsMap = function() {
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
if (jspb.Message.GENERATE_TO_OBJECT) {
|
||||
/**
|
||||
* Creates an object representation of this proto.
|
||||
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
||||
* Optional fields that are not set will be set to undefined.
|
||||
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
||||
* For the list of reserved names please see:
|
||||
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
||||
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
||||
* JSPB instance for transitional soy proto support:
|
||||
* http://goto/soy-param-migration
|
||||
* @return {!Object}
|
||||
*/
|
||||
proto.integration.UplinkRelayRxInfo.prototype.toObject = function(opt_includeInstance) {
|
||||
return proto.integration.UplinkRelayRxInfo.toObject(opt_includeInstance, this);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Static version of the {@see toObject} method.
|
||||
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
||||
* the JSPB instance for transitional soy proto support:
|
||||
* http://goto/soy-param-migration
|
||||
* @param {!proto.integration.UplinkRelayRxInfo} msg The msg instance to transform.
|
||||
* @return {!Object}
|
||||
* @suppress {unusedLocalVariables} f is only used for nested messages
|
||||
*/
|
||||
proto.integration.UplinkRelayRxInfo.toObject = function(includeInstance, msg) {
|
||||
var f, obj = {
|
||||
devEui: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
||||
frequency: jspb.Message.getFieldWithDefault(msg, 2, 0),
|
||||
dr: jspb.Message.getFieldWithDefault(msg, 3, 0),
|
||||
snr: jspb.Message.getFieldWithDefault(msg, 4, 0),
|
||||
rssi: jspb.Message.getFieldWithDefault(msg, 5, 0),
|
||||
worChannel: jspb.Message.getFieldWithDefault(msg, 6, 0)
|
||||
};
|
||||
|
||||
if (includeInstance) {
|
||||
obj.$jspbMessageInstance = msg;
|
||||
}
|
||||
return obj;
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Deserializes binary data (in protobuf wire format).
|
||||
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
||||
* @return {!proto.integration.UplinkRelayRxInfo}
|
||||
*/
|
||||
proto.integration.UplinkRelayRxInfo.deserializeBinary = function(bytes) {
|
||||
var reader = new jspb.BinaryReader(bytes);
|
||||
var msg = new proto.integration.UplinkRelayRxInfo;
|
||||
return proto.integration.UplinkRelayRxInfo.deserializeBinaryFromReader(msg, reader);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Deserializes binary data (in protobuf wire format) from the
|
||||
* given reader into the given message object.
|
||||
* @param {!proto.integration.UplinkRelayRxInfo} msg The message object to deserialize into.
|
||||
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
||||
* @return {!proto.integration.UplinkRelayRxInfo}
|
||||
*/
|
||||
proto.integration.UplinkRelayRxInfo.deserializeBinaryFromReader = function(msg, reader) {
|
||||
while (reader.nextField()) {
|
||||
if (reader.isEndGroup()) {
|
||||
break;
|
||||
}
|
||||
var field = reader.getFieldNumber();
|
||||
switch (field) {
|
||||
case 1:
|
||||
var value = /** @type {string} */ (reader.readString());
|
||||
msg.setDevEui(value);
|
||||
break;
|
||||
case 2:
|
||||
var value = /** @type {number} */ (reader.readUint32());
|
||||
msg.setFrequency(value);
|
||||
break;
|
||||
case 3:
|
||||
var value = /** @type {number} */ (reader.readUint32());
|
||||
msg.setDr(value);
|
||||
break;
|
||||
case 4:
|
||||
var value = /** @type {number} */ (reader.readInt32());
|
||||
msg.setSnr(value);
|
||||
break;
|
||||
case 5:
|
||||
var value = /** @type {number} */ (reader.readInt32());
|
||||
msg.setRssi(value);
|
||||
break;
|
||||
case 6:
|
||||
var value = /** @type {number} */ (reader.readUint32());
|
||||
msg.setWorChannel(value);
|
||||
break;
|
||||
default:
|
||||
reader.skipField();
|
||||
break;
|
||||
}
|
||||
}
|
||||
return msg;
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Serializes the message to binary data (in protobuf wire format).
|
||||
* @return {!Uint8Array}
|
||||
*/
|
||||
proto.integration.UplinkRelayRxInfo.prototype.serializeBinary = function() {
|
||||
var writer = new jspb.BinaryWriter();
|
||||
proto.integration.UplinkRelayRxInfo.serializeBinaryToWriter(this, writer);
|
||||
return writer.getResultBuffer();
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Serializes the given message to binary data (in protobuf wire
|
||||
* format), writing to the given BinaryWriter.
|
||||
* @param {!proto.integration.UplinkRelayRxInfo} message
|
||||
* @param {!jspb.BinaryWriter} writer
|
||||
* @suppress {unusedLocalVariables} f is only used for nested messages
|
||||
*/
|
||||
proto.integration.UplinkRelayRxInfo.serializeBinaryToWriter = function(message, writer) {
|
||||
var f = undefined;
|
||||
f = message.getDevEui();
|
||||
if (f.length > 0) {
|
||||
writer.writeString(
|
||||
1,
|
||||
f
|
||||
);
|
||||
}
|
||||
f = message.getFrequency();
|
||||
if (f !== 0) {
|
||||
writer.writeUint32(
|
||||
2,
|
||||
f
|
||||
);
|
||||
}
|
||||
f = message.getDr();
|
||||
if (f !== 0) {
|
||||
writer.writeUint32(
|
||||
3,
|
||||
f
|
||||
);
|
||||
}
|
||||
f = message.getSnr();
|
||||
if (f !== 0) {
|
||||
writer.writeInt32(
|
||||
4,
|
||||
f
|
||||
);
|
||||
}
|
||||
f = message.getRssi();
|
||||
if (f !== 0) {
|
||||
writer.writeInt32(
|
||||
5,
|
||||
f
|
||||
);
|
||||
}
|
||||
f = message.getWorChannel();
|
||||
if (f !== 0) {
|
||||
writer.writeUint32(
|
||||
6,
|
||||
f
|
||||
);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* optional string dev_eui = 1;
|
||||
* @return {string}
|
||||
*/
|
||||
proto.integration.UplinkRelayRxInfo.prototype.getDevEui = function() {
|
||||
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @param {string} value
|
||||
* @return {!proto.integration.UplinkRelayRxInfo} returns this
|
||||
*/
|
||||
proto.integration.UplinkRelayRxInfo.prototype.setDevEui = function(value) {
|
||||
return jspb.Message.setProto3StringField(this, 1, value);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* optional uint32 frequency = 2;
|
||||
* @return {number}
|
||||
*/
|
||||
proto.integration.UplinkRelayRxInfo.prototype.getFrequency = function() {
|
||||
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @param {number} value
|
||||
* @return {!proto.integration.UplinkRelayRxInfo} returns this
|
||||
*/
|
||||
proto.integration.UplinkRelayRxInfo.prototype.setFrequency = function(value) {
|
||||
return jspb.Message.setProto3IntField(this, 2, value);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* optional uint32 dr = 3;
|
||||
* @return {number}
|
||||
*/
|
||||
proto.integration.UplinkRelayRxInfo.prototype.getDr = function() {
|
||||
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @param {number} value
|
||||
* @return {!proto.integration.UplinkRelayRxInfo} returns this
|
||||
*/
|
||||
proto.integration.UplinkRelayRxInfo.prototype.setDr = function(value) {
|
||||
return jspb.Message.setProto3IntField(this, 3, value);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* optional int32 snr = 4;
|
||||
* @return {number}
|
||||
*/
|
||||
proto.integration.UplinkRelayRxInfo.prototype.getSnr = function() {
|
||||
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @param {number} value
|
||||
* @return {!proto.integration.UplinkRelayRxInfo} returns this
|
||||
*/
|
||||
proto.integration.UplinkRelayRxInfo.prototype.setSnr = function(value) {
|
||||
return jspb.Message.setProto3IntField(this, 4, value);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* optional int32 rssi = 5;
|
||||
* @return {number}
|
||||
*/
|
||||
proto.integration.UplinkRelayRxInfo.prototype.getRssi = function() {
|
||||
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @param {number} value
|
||||
* @return {!proto.integration.UplinkRelayRxInfo} returns this
|
||||
*/
|
||||
proto.integration.UplinkRelayRxInfo.prototype.setRssi = function(value) {
|
||||
return jspb.Message.setProto3IntField(this, 5, value);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* optional uint32 wor_channel = 6;
|
||||
* @return {number}
|
||||
*/
|
||||
proto.integration.UplinkRelayRxInfo.prototype.getWorChannel = function() {
|
||||
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0));
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @param {number} value
|
||||
* @return {!proto.integration.UplinkRelayRxInfo} returns this
|
||||
*/
|
||||
proto.integration.UplinkRelayRxInfo.prototype.setWorChannel = function(value) {
|
||||
return jspb.Message.setProto3IntField(this, 6, value);
|
||||
};
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* List of repeated fields within this message type.
|
||||
* @private {!Array<number>}
|
||||
@ -667,7 +969,8 @@ proto.integration.UplinkEvent.toObject = function(includeInstance, msg) {
|
||||
object: (f = msg.getObject()) && google_protobuf_struct_pb.Struct.toObject(includeInstance, f),
|
||||
rxInfoList: jspb.Message.toObjectList(msg.getRxInfoList(),
|
||||
gw_gw_pb.UplinkRxInfo.toObject, includeInstance),
|
||||
txInfo: (f = msg.getTxInfo()) && gw_gw_pb.UplinkTxInfo.toObject(includeInstance, f)
|
||||
txInfo: (f = msg.getTxInfo()) && gw_gw_pb.UplinkTxInfo.toObject(includeInstance, f),
|
||||
relayRxInfo: (f = msg.getRelayRxInfo()) && proto.integration.UplinkRelayRxInfo.toObject(includeInstance, f)
|
||||
};
|
||||
|
||||
if (includeInstance) {
|
||||
@ -761,6 +1064,11 @@ proto.integration.UplinkEvent.deserializeBinaryFromReader = function(msg, reader
|
||||
reader.readMessage(value,gw_gw_pb.UplinkTxInfo.deserializeBinaryFromReader);
|
||||
msg.setTxInfo(value);
|
||||
break;
|
||||
case 14:
|
||||
var value = new proto.integration.UplinkRelayRxInfo;
|
||||
reader.readMessage(value,proto.integration.UplinkRelayRxInfo.deserializeBinaryFromReader);
|
||||
msg.setRelayRxInfo(value);
|
||||
break;
|
||||
default:
|
||||
reader.skipField();
|
||||
break;
|
||||
@ -886,6 +1194,14 @@ proto.integration.UplinkEvent.serializeBinaryToWriter = function(message, writer
|
||||
gw_gw_pb.UplinkTxInfo.serializeBinaryToWriter
|
||||
);
|
||||
}
|
||||
f = message.getRelayRxInfo();
|
||||
if (f != null) {
|
||||
writer.writeMessage(
|
||||
14,
|
||||
f,
|
||||
proto.integration.UplinkRelayRxInfo.serializeBinaryToWriter
|
||||
);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
@ -1243,6 +1559,43 @@ proto.integration.UplinkEvent.prototype.hasTxInfo = function() {
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* optional UplinkRelayRxInfo relay_rx_info = 14;
|
||||
* @return {?proto.integration.UplinkRelayRxInfo}
|
||||
*/
|
||||
proto.integration.UplinkEvent.prototype.getRelayRxInfo = function() {
|
||||
return /** @type{?proto.integration.UplinkRelayRxInfo} */ (
|
||||
jspb.Message.getWrapperField(this, proto.integration.UplinkRelayRxInfo, 14));
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @param {?proto.integration.UplinkRelayRxInfo|undefined} value
|
||||
* @return {!proto.integration.UplinkEvent} returns this
|
||||
*/
|
||||
proto.integration.UplinkEvent.prototype.setRelayRxInfo = function(value) {
|
||||
return jspb.Message.setWrapperField(this, 14, value);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Clears the message field making it undefined.
|
||||
* @return {!proto.integration.UplinkEvent} returns this
|
||||
*/
|
||||
proto.integration.UplinkEvent.prototype.clearRelayRxInfo = function() {
|
||||
return this.setRelayRxInfo(undefined);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Returns whether this field is set.
|
||||
* @return {boolean}
|
||||
*/
|
||||
proto.integration.UplinkEvent.prototype.hasRelayRxInfo = function() {
|
||||
return jspb.Message.getField(this, 14) != null;
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@ -1278,7 +1631,8 @@ proto.integration.JoinEvent.toObject = function(includeInstance, msg) {
|
||||
deduplicationId: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
||||
time: (f = msg.getTime()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
|
||||
deviceInfo: (f = msg.getDeviceInfo()) && proto.integration.DeviceInfo.toObject(includeInstance, f),
|
||||
devAddr: jspb.Message.getFieldWithDefault(msg, 4, "")
|
||||
devAddr: jspb.Message.getFieldWithDefault(msg, 4, ""),
|
||||
relayRxInfo: (f = msg.getRelayRxInfo()) && proto.integration.UplinkRelayRxInfo.toObject(includeInstance, f)
|
||||
};
|
||||
|
||||
if (includeInstance) {
|
||||
@ -1333,6 +1687,11 @@ proto.integration.JoinEvent.deserializeBinaryFromReader = function(msg, reader)
|
||||
var value = /** @type {string} */ (reader.readString());
|
||||
msg.setDevAddr(value);
|
||||
break;
|
||||
case 5:
|
||||
var value = new proto.integration.UplinkRelayRxInfo;
|
||||
reader.readMessage(value,proto.integration.UplinkRelayRxInfo.deserializeBinaryFromReader);
|
||||
msg.setRelayRxInfo(value);
|
||||
break;
|
||||
default:
|
||||
reader.skipField();
|
||||
break;
|
||||
@ -1392,6 +1751,14 @@ proto.integration.JoinEvent.serializeBinaryToWriter = function(message, writer)
|
||||
f
|
||||
);
|
||||
}
|
||||
f = message.getRelayRxInfo();
|
||||
if (f != null) {
|
||||
writer.writeMessage(
|
||||
5,
|
||||
f,
|
||||
proto.integration.UplinkRelayRxInfo.serializeBinaryToWriter
|
||||
);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
@ -1505,6 +1872,43 @@ proto.integration.JoinEvent.prototype.setDevAddr = function(value) {
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* optional UplinkRelayRxInfo relay_rx_info = 5;
|
||||
* @return {?proto.integration.UplinkRelayRxInfo}
|
||||
*/
|
||||
proto.integration.JoinEvent.prototype.getRelayRxInfo = function() {
|
||||
return /** @type{?proto.integration.UplinkRelayRxInfo} */ (
|
||||
jspb.Message.getWrapperField(this, proto.integration.UplinkRelayRxInfo, 5));
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @param {?proto.integration.UplinkRelayRxInfo|undefined} value
|
||||
* @return {!proto.integration.JoinEvent} returns this
|
||||
*/
|
||||
proto.integration.JoinEvent.prototype.setRelayRxInfo = function(value) {
|
||||
return jspb.Message.setWrapperField(this, 5, value);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Clears the message field making it undefined.
|
||||
* @return {!proto.integration.JoinEvent} returns this
|
||||
*/
|
||||
proto.integration.JoinEvent.prototype.clearRelayRxInfo = function() {
|
||||
return this.setRelayRxInfo(undefined);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Returns whether this field is set.
|
||||
* @return {boolean}
|
||||
*/
|
||||
proto.integration.JoinEvent.prototype.hasRelayRxInfo = function() {
|
||||
return jspb.Message.getField(this, 5) != null;
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@ -3849,7 +4253,8 @@ proto.integration.LogCode = {
|
||||
UPLINK_F_CNT_RESET: 5,
|
||||
UPLINK_MIC: 6,
|
||||
UPLINK_F_CNT_RETRANSMISSION: 7,
|
||||
DOWNLINK_GATEWAY: 8
|
||||
DOWNLINK_GATEWAY: 8,
|
||||
RELAY_NEW_END_DEVICE: 9
|
||||
};
|
||||
|
||||
goog.object.extend(exports, proto.integration);
|
||||
|
Reference in New Issue
Block a user