mirror of
https://github.com/chirpstack/chirpstack.git
synced 2025-06-13 21:18:09 +00:00
Add js context to get_activation api method.
This commit is contained in:
239
api/js/integration/integration_pb.js
vendored
239
api/js/integration/integration_pb.js
vendored
@ -25,7 +25,6 @@ goog.exportSymbol('proto.integration.DeviceInfo', null, global);
|
||||
goog.exportSymbol('proto.integration.DownlinkCommand', null, global);
|
||||
goog.exportSymbol('proto.integration.IntegrationEvent', null, global);
|
||||
goog.exportSymbol('proto.integration.JoinEvent', null, global);
|
||||
goog.exportSymbol('proto.integration.JoinServerContext', null, global);
|
||||
goog.exportSymbol('proto.integration.LocationEvent', null, global);
|
||||
goog.exportSymbol('proto.integration.LogCode', null, global);
|
||||
goog.exportSymbol('proto.integration.LogEvent', null, global);
|
||||
@ -76,27 +75,6 @@ if (goog.DEBUG && !COMPILED) {
|
||||
*/
|
||||
proto.integration.UplinkRelayRxInfo.displayName = 'proto.integration.UplinkRelayRxInfo';
|
||||
}
|
||||
/**
|
||||
* 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.JoinServerContext = function(opt_data) {
|
||||
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
||||
};
|
||||
goog.inherits(proto.integration.JoinServerContext, jspb.Message);
|
||||
if (goog.DEBUG && !COMPILED) {
|
||||
/**
|
||||
* @public
|
||||
* @override
|
||||
*/
|
||||
proto.integration.JoinServerContext.displayName = 'proto.integration.JoinServerContext';
|
||||
}
|
||||
/**
|
||||
* Generated by JsPbCodeGenerator.
|
||||
* @param {Array=} opt_data Optional initial data array, typically from a
|
||||
@ -970,187 +948,6 @@ proto.integration.UplinkRelayRxInfo.prototype.setWorChannel = function(value) {
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
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.JoinServerContext.prototype.toObject = function(opt_includeInstance) {
|
||||
return proto.integration.JoinServerContext.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.JoinServerContext} msg The msg instance to transform.
|
||||
* @return {!Object}
|
||||
* @suppress {unusedLocalVariables} f is only used for nested messages
|
||||
*/
|
||||
proto.integration.JoinServerContext.toObject = function(includeInstance, msg) {
|
||||
var f, obj = {
|
||||
sessionKeyId: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
||||
appSKey: (f = msg.getAppSKey()) && common_common_pb.KeyEnvelope.toObject(includeInstance, f)
|
||||
};
|
||||
|
||||
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.JoinServerContext}
|
||||
*/
|
||||
proto.integration.JoinServerContext.deserializeBinary = function(bytes) {
|
||||
var reader = new jspb.BinaryReader(bytes);
|
||||
var msg = new proto.integration.JoinServerContext;
|
||||
return proto.integration.JoinServerContext.deserializeBinaryFromReader(msg, reader);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Deserializes binary data (in protobuf wire format) from the
|
||||
* given reader into the given message object.
|
||||
* @param {!proto.integration.JoinServerContext} msg The message object to deserialize into.
|
||||
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
||||
* @return {!proto.integration.JoinServerContext}
|
||||
*/
|
||||
proto.integration.JoinServerContext.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.setSessionKeyId(value);
|
||||
break;
|
||||
case 2:
|
||||
var value = new common_common_pb.KeyEnvelope;
|
||||
reader.readMessage(value,common_common_pb.KeyEnvelope.deserializeBinaryFromReader);
|
||||
msg.setAppSKey(value);
|
||||
break;
|
||||
default:
|
||||
reader.skipField();
|
||||
break;
|
||||
}
|
||||
}
|
||||
return msg;
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Serializes the message to binary data (in protobuf wire format).
|
||||
* @return {!Uint8Array}
|
||||
*/
|
||||
proto.integration.JoinServerContext.prototype.serializeBinary = function() {
|
||||
var writer = new jspb.BinaryWriter();
|
||||
proto.integration.JoinServerContext.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.JoinServerContext} message
|
||||
* @param {!jspb.BinaryWriter} writer
|
||||
* @suppress {unusedLocalVariables} f is only used for nested messages
|
||||
*/
|
||||
proto.integration.JoinServerContext.serializeBinaryToWriter = function(message, writer) {
|
||||
var f = undefined;
|
||||
f = message.getSessionKeyId();
|
||||
if (f.length > 0) {
|
||||
writer.writeString(
|
||||
1,
|
||||
f
|
||||
);
|
||||
}
|
||||
f = message.getAppSKey();
|
||||
if (f != null) {
|
||||
writer.writeMessage(
|
||||
2,
|
||||
f,
|
||||
common_common_pb.KeyEnvelope.serializeBinaryToWriter
|
||||
);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* optional string session_key_id = 1;
|
||||
* @return {string}
|
||||
*/
|
||||
proto.integration.JoinServerContext.prototype.getSessionKeyId = function() {
|
||||
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @param {string} value
|
||||
* @return {!proto.integration.JoinServerContext} returns this
|
||||
*/
|
||||
proto.integration.JoinServerContext.prototype.setSessionKeyId = function(value) {
|
||||
return jspb.Message.setProto3StringField(this, 1, value);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* optional common.KeyEnvelope app_s_key = 2;
|
||||
* @return {?proto.common.KeyEnvelope}
|
||||
*/
|
||||
proto.integration.JoinServerContext.prototype.getAppSKey = function() {
|
||||
return /** @type{?proto.common.KeyEnvelope} */ (
|
||||
jspb.Message.getWrapperField(this, common_common_pb.KeyEnvelope, 2));
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @param {?proto.common.KeyEnvelope|undefined} value
|
||||
* @return {!proto.integration.JoinServerContext} returns this
|
||||
*/
|
||||
proto.integration.JoinServerContext.prototype.setAppSKey = function(value) {
|
||||
return jspb.Message.setWrapperField(this, 2, value);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Clears the message field making it undefined.
|
||||
* @return {!proto.integration.JoinServerContext} returns this
|
||||
*/
|
||||
proto.integration.JoinServerContext.prototype.clearAppSKey = function() {
|
||||
return this.setAppSKey(undefined);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Returns whether this field is set.
|
||||
* @return {boolean}
|
||||
*/
|
||||
proto.integration.JoinServerContext.prototype.hasAppSKey = function() {
|
||||
return jspb.Message.getField(this, 2) != null;
|
||||
};
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* List of repeated fields within this message type.
|
||||
* @private {!Array<number>}
|
||||
@ -1204,7 +1001,7 @@ proto.integration.UplinkEvent.toObject = function(includeInstance, msg) {
|
||||
gw_gw_pb.UplinkRxInfo.toObject, includeInstance),
|
||||
txInfo: (f = msg.getTxInfo()) && gw_gw_pb.UplinkTxInfo.toObject(includeInstance, f),
|
||||
relayRxInfo: (f = msg.getRelayRxInfo()) && proto.integration.UplinkRelayRxInfo.toObject(includeInstance, f),
|
||||
joinServerContext: (f = msg.getJoinServerContext()) && proto.integration.JoinServerContext.toObject(includeInstance, f)
|
||||
joinServerContext: (f = msg.getJoinServerContext()) && common_common_pb.JoinServerContext.toObject(includeInstance, f)
|
||||
};
|
||||
|
||||
if (includeInstance) {
|
||||
@ -1304,8 +1101,8 @@ proto.integration.UplinkEvent.deserializeBinaryFromReader = function(msg, reader
|
||||
msg.setRelayRxInfo(value);
|
||||
break;
|
||||
case 15:
|
||||
var value = new proto.integration.JoinServerContext;
|
||||
reader.readMessage(value,proto.integration.JoinServerContext.deserializeBinaryFromReader);
|
||||
var value = new common_common_pb.JoinServerContext;
|
||||
reader.readMessage(value,common_common_pb.JoinServerContext.deserializeBinaryFromReader);
|
||||
msg.setJoinServerContext(value);
|
||||
break;
|
||||
default:
|
||||
@ -1446,7 +1243,7 @@ proto.integration.UplinkEvent.serializeBinaryToWriter = function(message, writer
|
||||
writer.writeMessage(
|
||||
15,
|
||||
f,
|
||||
proto.integration.JoinServerContext.serializeBinaryToWriter
|
||||
common_common_pb.JoinServerContext.serializeBinaryToWriter
|
||||
);
|
||||
}
|
||||
};
|
||||
@ -1844,17 +1641,17 @@ proto.integration.UplinkEvent.prototype.hasRelayRxInfo = function() {
|
||||
|
||||
|
||||
/**
|
||||
* optional JoinServerContext join_server_context = 15;
|
||||
* @return {?proto.integration.JoinServerContext}
|
||||
* optional common.JoinServerContext join_server_context = 15;
|
||||
* @return {?proto.common.JoinServerContext}
|
||||
*/
|
||||
proto.integration.UplinkEvent.prototype.getJoinServerContext = function() {
|
||||
return /** @type{?proto.integration.JoinServerContext} */ (
|
||||
jspb.Message.getWrapperField(this, proto.integration.JoinServerContext, 15));
|
||||
return /** @type{?proto.common.JoinServerContext} */ (
|
||||
jspb.Message.getWrapperField(this, common_common_pb.JoinServerContext, 15));
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @param {?proto.integration.JoinServerContext|undefined} value
|
||||
* @param {?proto.common.JoinServerContext|undefined} value
|
||||
* @return {!proto.integration.UplinkEvent} returns this
|
||||
*/
|
||||
proto.integration.UplinkEvent.prototype.setJoinServerContext = function(value) {
|
||||
@ -1917,7 +1714,7 @@ proto.integration.JoinEvent.toObject = function(includeInstance, msg) {
|
||||
deviceInfo: (f = msg.getDeviceInfo()) && proto.integration.DeviceInfo.toObject(includeInstance, f),
|
||||
devAddr: jspb.Message.getFieldWithDefault(msg, 4, ""),
|
||||
relayRxInfo: (f = msg.getRelayRxInfo()) && proto.integration.UplinkRelayRxInfo.toObject(includeInstance, f),
|
||||
joinServerContext: (f = msg.getJoinServerContext()) && proto.integration.JoinServerContext.toObject(includeInstance, f)
|
||||
joinServerContext: (f = msg.getJoinServerContext()) && common_common_pb.JoinServerContext.toObject(includeInstance, f)
|
||||
};
|
||||
|
||||
if (includeInstance) {
|
||||
@ -1978,8 +1775,8 @@ proto.integration.JoinEvent.deserializeBinaryFromReader = function(msg, reader)
|
||||
msg.setRelayRxInfo(value);
|
||||
break;
|
||||
case 6:
|
||||
var value = new proto.integration.JoinServerContext;
|
||||
reader.readMessage(value,proto.integration.JoinServerContext.deserializeBinaryFromReader);
|
||||
var value = new common_common_pb.JoinServerContext;
|
||||
reader.readMessage(value,common_common_pb.JoinServerContext.deserializeBinaryFromReader);
|
||||
msg.setJoinServerContext(value);
|
||||
break;
|
||||
default:
|
||||
@ -2054,7 +1851,7 @@ proto.integration.JoinEvent.serializeBinaryToWriter = function(message, writer)
|
||||
writer.writeMessage(
|
||||
6,
|
||||
f,
|
||||
proto.integration.JoinServerContext.serializeBinaryToWriter
|
||||
common_common_pb.JoinServerContext.serializeBinaryToWriter
|
||||
);
|
||||
}
|
||||
};
|
||||
@ -2208,17 +2005,17 @@ proto.integration.JoinEvent.prototype.hasRelayRxInfo = function() {
|
||||
|
||||
|
||||
/**
|
||||
* optional JoinServerContext join_server_context = 6;
|
||||
* @return {?proto.integration.JoinServerContext}
|
||||
* optional common.JoinServerContext join_server_context = 6;
|
||||
* @return {?proto.common.JoinServerContext}
|
||||
*/
|
||||
proto.integration.JoinEvent.prototype.getJoinServerContext = function() {
|
||||
return /** @type{?proto.integration.JoinServerContext} */ (
|
||||
jspb.Message.getWrapperField(this, proto.integration.JoinServerContext, 6));
|
||||
return /** @type{?proto.common.JoinServerContext} */ (
|
||||
jspb.Message.getWrapperField(this, common_common_pb.JoinServerContext, 6));
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @param {?proto.integration.JoinServerContext|undefined} value
|
||||
* @param {?proto.common.JoinServerContext|undefined} value
|
||||
* @return {!proto.integration.JoinEvent} returns this
|
||||
*/
|
||||
proto.integration.JoinEvent.prototype.setJoinServerContext = function(value) {
|
||||
|
Reference in New Issue
Block a user