2023-10-31 10:19:38 +00:00
|
|
|
// source: streams/meta.proto
|
2022-04-06 20:18:32 +00:00
|
|
|
/**
|
|
|
|
* @fileoverview
|
|
|
|
* @enhanceable
|
2022-12-05 11:46:36 +00:00
|
|
|
* @suppress {messageConventions} JS Compiler reports an error if a variable or
|
|
|
|
* field starts with 'MSG_' and isn't a translatable message.
|
2022-04-06 20:18:32 +00:00
|
|
|
* @public
|
|
|
|
*/
|
|
|
|
// GENERATED CODE -- DO NOT EDIT!
|
|
|
|
|
|
|
|
var jspb = require('google-protobuf');
|
|
|
|
var goog = jspb;
|
|
|
|
var global = Function('return this')();
|
|
|
|
|
|
|
|
var common_common_pb = require('../common/common_pb.js');
|
2022-12-05 11:46:36 +00:00
|
|
|
goog.object.extend(proto, common_common_pb);
|
2022-04-06 20:18:32 +00:00
|
|
|
var gw_gw_pb = require('../gw/gw_pb.js');
|
2022-12-05 11:46:36 +00:00
|
|
|
goog.object.extend(proto, gw_gw_pb);
|
2023-10-31 11:21:43 +00:00
|
|
|
goog.exportSymbol('proto.streams.DownlinkMeta', null, global);
|
|
|
|
goog.exportSymbol('proto.streams.UplinkMeta', null, global);
|
2022-04-06 20:18:32 +00:00
|
|
|
/**
|
|
|
|
* 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
|
|
|
|
*/
|
2023-10-31 11:21:43 +00:00
|
|
|
proto.streams.UplinkMeta = function(opt_data) {
|
|
|
|
jspb.Message.initialize(this, opt_data, 0, -1, proto.streams.UplinkMeta.repeatedFields_, null);
|
2022-04-06 20:18:32 +00:00
|
|
|
};
|
2023-10-31 11:21:43 +00:00
|
|
|
goog.inherits(proto.streams.UplinkMeta, jspb.Message);
|
2022-04-06 20:18:32 +00:00
|
|
|
if (goog.DEBUG && !COMPILED) {
|
2022-12-05 11:46:36 +00:00
|
|
|
/**
|
|
|
|
* @public
|
|
|
|
* @override
|
|
|
|
*/
|
2023-10-31 11:21:43 +00:00
|
|
|
proto.streams.UplinkMeta.displayName = 'proto.streams.UplinkMeta';
|
2022-04-06 20:18:32 +00:00
|
|
|
}
|
2022-12-05 11:46:36 +00:00
|
|
|
/**
|
|
|
|
* 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
|
|
|
|
*/
|
2023-10-31 11:21:43 +00:00
|
|
|
proto.streams.DownlinkMeta = function(opt_data) {
|
2022-12-05 11:46:36 +00:00
|
|
|
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
|
|
};
|
2023-10-31 11:21:43 +00:00
|
|
|
goog.inherits(proto.streams.DownlinkMeta, jspb.Message);
|
2022-12-05 11:46:36 +00:00
|
|
|
if (goog.DEBUG && !COMPILED) {
|
|
|
|
/**
|
|
|
|
* @public
|
|
|
|
* @override
|
|
|
|
*/
|
2023-10-31 11:21:43 +00:00
|
|
|
proto.streams.DownlinkMeta.displayName = 'proto.streams.DownlinkMeta';
|
2022-12-05 11:46:36 +00:00
|
|
|
}
|
|
|
|
|
2022-04-06 20:18:32 +00:00
|
|
|
/**
|
|
|
|
* List of repeated fields within this message type.
|
|
|
|
* @private {!Array<number>}
|
|
|
|
* @const
|
|
|
|
*/
|
2023-10-31 11:21:43 +00:00
|
|
|
proto.streams.UplinkMeta.repeatedFields_ = [3];
|
2022-04-06 20:18:32 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
|
|
/**
|
2022-12-05 11:46:36 +00:00
|
|
|
* Creates an object representation of this proto.
|
2022-04-06 20:18:32 +00:00
|
|
|
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
2022-12-05 11:46:36 +00:00
|
|
|
* Optional fields that are not set will be set to undefined.
|
2022-04-06 20:18:32 +00:00
|
|
|
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
|
|
* For the list of reserved names please see:
|
2022-12-05 11:46:36 +00:00
|
|
|
* 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
|
2022-04-06 20:18:32 +00:00
|
|
|
* @return {!Object}
|
|
|
|
*/
|
2023-10-31 11:21:43 +00:00
|
|
|
proto.streams.UplinkMeta.prototype.toObject = function(opt_includeInstance) {
|
|
|
|
return proto.streams.UplinkMeta.toObject(opt_includeInstance, this);
|
2022-04-06 20:18:32 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Static version of the {@see toObject} method.
|
2022-12-05 11:46:36 +00:00
|
|
|
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
|
|
* the JSPB instance for transitional soy proto support:
|
2022-04-06 20:18:32 +00:00
|
|
|
* http://goto/soy-param-migration
|
2023-10-31 11:21:43 +00:00
|
|
|
* @param {!proto.streams.UplinkMeta} msg The msg instance to transform.
|
2022-04-06 20:18:32 +00:00
|
|
|
* @return {!Object}
|
2022-12-05 11:46:36 +00:00
|
|
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
2022-04-06 20:18:32 +00:00
|
|
|
*/
|
2023-10-31 11:21:43 +00:00
|
|
|
proto.streams.UplinkMeta.toObject = function(includeInstance, msg) {
|
2022-04-06 20:18:32 +00:00
|
|
|
var f, obj = {
|
2022-12-05 11:46:36 +00:00
|
|
|
devEui: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
2022-04-21 10:42:28 +00:00
|
|
|
txInfo: (f = msg.getTxInfo()) && gw_gw_pb.UplinkTxInfo.toObject(includeInstance, f),
|
2022-04-06 20:18:32 +00:00
|
|
|
rxInfoList: jspb.Message.toObjectList(msg.getRxInfoList(),
|
2022-04-21 10:42:28 +00:00
|
|
|
gw_gw_pb.UplinkRxInfo.toObject, includeInstance),
|
2022-12-05 11:46:36 +00:00
|
|
|
phyPayloadByteCount: jspb.Message.getFieldWithDefault(msg, 4, 0),
|
|
|
|
macCommandByteCount: jspb.Message.getFieldWithDefault(msg, 5, 0),
|
|
|
|
applicationPayloadByteCount: jspb.Message.getFieldWithDefault(msg, 6, 0),
|
|
|
|
messageType: jspb.Message.getFieldWithDefault(msg, 7, 0)
|
2022-04-06 20:18:32 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
if (includeInstance) {
|
|
|
|
obj.$jspbMessageInstance = msg;
|
|
|
|
}
|
|
|
|
return obj;
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Deserializes binary data (in protobuf wire format).
|
|
|
|
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
2023-10-31 11:21:43 +00:00
|
|
|
* @return {!proto.streams.UplinkMeta}
|
2022-04-06 20:18:32 +00:00
|
|
|
*/
|
2023-10-31 11:21:43 +00:00
|
|
|
proto.streams.UplinkMeta.deserializeBinary = function(bytes) {
|
2022-04-06 20:18:32 +00:00
|
|
|
var reader = new jspb.BinaryReader(bytes);
|
2023-10-31 11:21:43 +00:00
|
|
|
var msg = new proto.streams.UplinkMeta;
|
|
|
|
return proto.streams.UplinkMeta.deserializeBinaryFromReader(msg, reader);
|
2022-04-06 20:18:32 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Deserializes binary data (in protobuf wire format) from the
|
|
|
|
* given reader into the given message object.
|
2023-10-31 11:21:43 +00:00
|
|
|
* @param {!proto.streams.UplinkMeta} msg The message object to deserialize into.
|
2022-04-06 20:18:32 +00:00
|
|
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
2023-10-31 11:21:43 +00:00
|
|
|
* @return {!proto.streams.UplinkMeta}
|
2022-04-06 20:18:32 +00:00
|
|
|
*/
|
2023-10-31 11:21:43 +00:00
|
|
|
proto.streams.UplinkMeta.deserializeBinaryFromReader = function(msg, reader) {
|
2022-04-06 20:18:32 +00:00
|
|
|
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:
|
2022-04-21 10:42:28 +00:00
|
|
|
var value = new gw_gw_pb.UplinkTxInfo;
|
|
|
|
reader.readMessage(value,gw_gw_pb.UplinkTxInfo.deserializeBinaryFromReader);
|
2022-04-06 20:18:32 +00:00
|
|
|
msg.setTxInfo(value);
|
|
|
|
break;
|
|
|
|
case 3:
|
2022-04-21 10:42:28 +00:00
|
|
|
var value = new gw_gw_pb.UplinkRxInfo;
|
|
|
|
reader.readMessage(value,gw_gw_pb.UplinkRxInfo.deserializeBinaryFromReader);
|
2022-12-05 11:46:36 +00:00
|
|
|
msg.addRxInfo(value);
|
2022-04-06 20:18:32 +00:00
|
|
|
break;
|
|
|
|
case 4:
|
|
|
|
var value = /** @type {number} */ (reader.readUint32());
|
|
|
|
msg.setPhyPayloadByteCount(value);
|
|
|
|
break;
|
|
|
|
case 5:
|
|
|
|
var value = /** @type {number} */ (reader.readUint32());
|
|
|
|
msg.setMacCommandByteCount(value);
|
|
|
|
break;
|
|
|
|
case 6:
|
|
|
|
var value = /** @type {number} */ (reader.readUint32());
|
|
|
|
msg.setApplicationPayloadByteCount(value);
|
|
|
|
break;
|
|
|
|
case 7:
|
|
|
|
var value = /** @type {!proto.common.MType} */ (reader.readEnum());
|
|
|
|
msg.setMessageType(value);
|
|
|
|
break;
|
|
|
|
default:
|
|
|
|
reader.skipField();
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return msg;
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Serializes the message to binary data (in protobuf wire format).
|
|
|
|
* @return {!Uint8Array}
|
|
|
|
*/
|
2023-10-31 11:21:43 +00:00
|
|
|
proto.streams.UplinkMeta.prototype.serializeBinary = function() {
|
2022-04-06 20:18:32 +00:00
|
|
|
var writer = new jspb.BinaryWriter();
|
2023-10-31 11:21:43 +00:00
|
|
|
proto.streams.UplinkMeta.serializeBinaryToWriter(this, writer);
|
2022-04-06 20:18:32 +00:00
|
|
|
return writer.getResultBuffer();
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
2022-12-05 11:46:36 +00:00
|
|
|
* Serializes the given message to binary data (in protobuf wire
|
|
|
|
* format), writing to the given BinaryWriter.
|
2023-10-31 11:21:43 +00:00
|
|
|
* @param {!proto.streams.UplinkMeta} message
|
2022-04-06 20:18:32 +00:00
|
|
|
* @param {!jspb.BinaryWriter} writer
|
2022-12-05 11:46:36 +00:00
|
|
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
2022-04-06 20:18:32 +00:00
|
|
|
*/
|
2023-10-31 11:21:43 +00:00
|
|
|
proto.streams.UplinkMeta.serializeBinaryToWriter = function(message, writer) {
|
2022-04-06 20:18:32 +00:00
|
|
|
var f = undefined;
|
2022-12-05 11:46:36 +00:00
|
|
|
f = message.getDevEui();
|
2022-04-06 20:18:32 +00:00
|
|
|
if (f.length > 0) {
|
|
|
|
writer.writeString(
|
|
|
|
1,
|
|
|
|
f
|
|
|
|
);
|
|
|
|
}
|
2022-12-05 11:46:36 +00:00
|
|
|
f = message.getTxInfo();
|
2022-04-06 20:18:32 +00:00
|
|
|
if (f != null) {
|
|
|
|
writer.writeMessage(
|
|
|
|
2,
|
|
|
|
f,
|
2022-04-21 10:42:28 +00:00
|
|
|
gw_gw_pb.UplinkTxInfo.serializeBinaryToWriter
|
2022-04-06 20:18:32 +00:00
|
|
|
);
|
|
|
|
}
|
2022-12-05 11:46:36 +00:00
|
|
|
f = message.getRxInfoList();
|
2022-04-06 20:18:32 +00:00
|
|
|
if (f.length > 0) {
|
|
|
|
writer.writeRepeatedMessage(
|
|
|
|
3,
|
|
|
|
f,
|
2022-04-21 10:42:28 +00:00
|
|
|
gw_gw_pb.UplinkRxInfo.serializeBinaryToWriter
|
2022-04-06 20:18:32 +00:00
|
|
|
);
|
|
|
|
}
|
2022-12-05 11:46:36 +00:00
|
|
|
f = message.getPhyPayloadByteCount();
|
2022-04-06 20:18:32 +00:00
|
|
|
if (f !== 0) {
|
|
|
|
writer.writeUint32(
|
|
|
|
4,
|
|
|
|
f
|
|
|
|
);
|
|
|
|
}
|
2022-12-05 11:46:36 +00:00
|
|
|
f = message.getMacCommandByteCount();
|
2022-04-06 20:18:32 +00:00
|
|
|
if (f !== 0) {
|
|
|
|
writer.writeUint32(
|
|
|
|
5,
|
|
|
|
f
|
|
|
|
);
|
|
|
|
}
|
2022-12-05 11:46:36 +00:00
|
|
|
f = message.getApplicationPayloadByteCount();
|
2022-04-06 20:18:32 +00:00
|
|
|
if (f !== 0) {
|
|
|
|
writer.writeUint32(
|
|
|
|
6,
|
|
|
|
f
|
|
|
|
);
|
|
|
|
}
|
2022-12-05 11:46:36 +00:00
|
|
|
f = message.getMessageType();
|
2022-04-06 20:18:32 +00:00
|
|
|
if (f !== 0.0) {
|
|
|
|
writer.writeEnum(
|
|
|
|
7,
|
|
|
|
f
|
|
|
|
);
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* optional string dev_eui = 1;
|
|
|
|
* @return {string}
|
|
|
|
*/
|
2023-10-31 11:21:43 +00:00
|
|
|
proto.streams.UplinkMeta.prototype.getDevEui = function() {
|
2022-12-05 11:46:36 +00:00
|
|
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
2022-04-06 20:18:32 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
2022-12-05 11:46:36 +00:00
|
|
|
/**
|
|
|
|
* @param {string} value
|
2023-10-31 11:21:43 +00:00
|
|
|
* @return {!proto.streams.UplinkMeta} returns this
|
2022-12-05 11:46:36 +00:00
|
|
|
*/
|
2023-10-31 11:21:43 +00:00
|
|
|
proto.streams.UplinkMeta.prototype.setDevEui = function(value) {
|
2022-12-05 11:46:36 +00:00
|
|
|
return jspb.Message.setProto3StringField(this, 1, value);
|
2022-04-06 20:18:32 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
2022-04-21 10:42:28 +00:00
|
|
|
* optional gw.UplinkTxInfo tx_info = 2;
|
2022-12-05 11:46:36 +00:00
|
|
|
* @return {?proto.gw.UplinkTxInfo}
|
2022-04-06 20:18:32 +00:00
|
|
|
*/
|
2023-10-31 11:21:43 +00:00
|
|
|
proto.streams.UplinkMeta.prototype.getTxInfo = function() {
|
2022-12-05 11:46:36 +00:00
|
|
|
return /** @type{?proto.gw.UplinkTxInfo} */ (
|
2022-04-21 10:42:28 +00:00
|
|
|
jspb.Message.getWrapperField(this, gw_gw_pb.UplinkTxInfo, 2));
|
2022-04-06 20:18:32 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
2022-12-05 11:46:36 +00:00
|
|
|
/**
|
|
|
|
* @param {?proto.gw.UplinkTxInfo|undefined} value
|
2023-10-31 11:21:43 +00:00
|
|
|
* @return {!proto.streams.UplinkMeta} returns this
|
2022-12-05 11:46:36 +00:00
|
|
|
*/
|
2023-10-31 11:21:43 +00:00
|
|
|
proto.streams.UplinkMeta.prototype.setTxInfo = function(value) {
|
2022-12-05 11:46:36 +00:00
|
|
|
return jspb.Message.setWrapperField(this, 2, value);
|
2022-04-06 20:18:32 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
2022-12-05 11:46:36 +00:00
|
|
|
/**
|
|
|
|
* Clears the message field making it undefined.
|
2023-10-31 11:21:43 +00:00
|
|
|
* @return {!proto.streams.UplinkMeta} returns this
|
2022-12-05 11:46:36 +00:00
|
|
|
*/
|
2023-10-31 11:21:43 +00:00
|
|
|
proto.streams.UplinkMeta.prototype.clearTxInfo = function() {
|
2022-12-05 11:46:36 +00:00
|
|
|
return this.setTxInfo(undefined);
|
2022-04-06 20:18:32 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Returns whether this field is set.
|
2022-12-05 11:46:36 +00:00
|
|
|
* @return {boolean}
|
2022-04-06 20:18:32 +00:00
|
|
|
*/
|
2023-10-31 11:21:43 +00:00
|
|
|
proto.streams.UplinkMeta.prototype.hasTxInfo = function() {
|
2022-04-06 20:18:32 +00:00
|
|
|
return jspb.Message.getField(this, 2) != null;
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
2022-04-21 10:42:28 +00:00
|
|
|
* repeated gw.UplinkRxInfo rx_info = 3;
|
2022-12-05 11:46:36 +00:00
|
|
|
* @return {!Array<!proto.gw.UplinkRxInfo>}
|
2022-04-06 20:18:32 +00:00
|
|
|
*/
|
2023-10-31 11:21:43 +00:00
|
|
|
proto.streams.UplinkMeta.prototype.getRxInfoList = function() {
|
2022-12-05 11:46:36 +00:00
|
|
|
return /** @type{!Array<!proto.gw.UplinkRxInfo>} */ (
|
2022-04-21 10:42:28 +00:00
|
|
|
jspb.Message.getRepeatedWrapperField(this, gw_gw_pb.UplinkRxInfo, 3));
|
2022-04-06 20:18:32 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
2022-12-05 11:46:36 +00:00
|
|
|
/**
|
|
|
|
* @param {!Array<!proto.gw.UplinkRxInfo>} value
|
2023-10-31 11:21:43 +00:00
|
|
|
* @return {!proto.streams.UplinkMeta} returns this
|
2022-12-05 11:46:36 +00:00
|
|
|
*/
|
2023-10-31 11:21:43 +00:00
|
|
|
proto.streams.UplinkMeta.prototype.setRxInfoList = function(value) {
|
2022-12-05 11:46:36 +00:00
|
|
|
return jspb.Message.setRepeatedWrapperField(this, 3, value);
|
2022-04-06 20:18:32 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
2022-12-05 11:46:36 +00:00
|
|
|
/**
|
|
|
|
* @param {!proto.gw.UplinkRxInfo=} opt_value
|
|
|
|
* @param {number=} opt_index
|
|
|
|
* @return {!proto.gw.UplinkRxInfo}
|
|
|
|
*/
|
2023-10-31 11:21:43 +00:00
|
|
|
proto.streams.UplinkMeta.prototype.addRxInfo = function(opt_value, opt_index) {
|
2022-12-05 11:46:36 +00:00
|
|
|
return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.gw.UplinkRxInfo, opt_index);
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Clears the list making it empty but non-null.
|
2023-10-31 11:21:43 +00:00
|
|
|
* @return {!proto.streams.UplinkMeta} returns this
|
2022-12-05 11:46:36 +00:00
|
|
|
*/
|
2023-10-31 11:21:43 +00:00
|
|
|
proto.streams.UplinkMeta.prototype.clearRxInfoList = function() {
|
2022-12-05 11:46:36 +00:00
|
|
|
return this.setRxInfoList([]);
|
2022-04-06 20:18:32 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* optional uint32 phy_payload_byte_count = 4;
|
|
|
|
* @return {number}
|
|
|
|
*/
|
2023-10-31 11:21:43 +00:00
|
|
|
proto.streams.UplinkMeta.prototype.getPhyPayloadByteCount = function() {
|
2022-12-05 11:46:36 +00:00
|
|
|
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
|
2022-04-06 20:18:32 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
2022-12-05 11:46:36 +00:00
|
|
|
/**
|
|
|
|
* @param {number} value
|
2023-10-31 11:21:43 +00:00
|
|
|
* @return {!proto.streams.UplinkMeta} returns this
|
2022-12-05 11:46:36 +00:00
|
|
|
*/
|
2023-10-31 11:21:43 +00:00
|
|
|
proto.streams.UplinkMeta.prototype.setPhyPayloadByteCount = function(value) {
|
2022-12-05 11:46:36 +00:00
|
|
|
return jspb.Message.setProto3IntField(this, 4, value);
|
2022-04-06 20:18:32 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* optional uint32 mac_command_byte_count = 5;
|
|
|
|
* @return {number}
|
|
|
|
*/
|
2023-10-31 11:21:43 +00:00
|
|
|
proto.streams.UplinkMeta.prototype.getMacCommandByteCount = function() {
|
2022-12-05 11:46:36 +00:00
|
|
|
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
|
2022-04-06 20:18:32 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
2022-12-05 11:46:36 +00:00
|
|
|
/**
|
|
|
|
* @param {number} value
|
2023-10-31 11:21:43 +00:00
|
|
|
* @return {!proto.streams.UplinkMeta} returns this
|
2022-12-05 11:46:36 +00:00
|
|
|
*/
|
2023-10-31 11:21:43 +00:00
|
|
|
proto.streams.UplinkMeta.prototype.setMacCommandByteCount = function(value) {
|
2022-12-05 11:46:36 +00:00
|
|
|
return jspb.Message.setProto3IntField(this, 5, value);
|
2022-04-06 20:18:32 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* optional uint32 application_payload_byte_count = 6;
|
|
|
|
* @return {number}
|
|
|
|
*/
|
2023-10-31 11:21:43 +00:00
|
|
|
proto.streams.UplinkMeta.prototype.getApplicationPayloadByteCount = function() {
|
2022-12-05 11:46:36 +00:00
|
|
|
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0));
|
2022-04-06 20:18:32 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
2022-12-05 11:46:36 +00:00
|
|
|
/**
|
|
|
|
* @param {number} value
|
2023-10-31 11:21:43 +00:00
|
|
|
* @return {!proto.streams.UplinkMeta} returns this
|
2022-12-05 11:46:36 +00:00
|
|
|
*/
|
2023-10-31 11:21:43 +00:00
|
|
|
proto.streams.UplinkMeta.prototype.setApplicationPayloadByteCount = function(value) {
|
2022-12-05 11:46:36 +00:00
|
|
|
return jspb.Message.setProto3IntField(this, 6, value);
|
2022-04-06 20:18:32 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* optional common.MType message_type = 7;
|
|
|
|
* @return {!proto.common.MType}
|
|
|
|
*/
|
2023-10-31 11:21:43 +00:00
|
|
|
proto.streams.UplinkMeta.prototype.getMessageType = function() {
|
2022-12-05 11:46:36 +00:00
|
|
|
return /** @type {!proto.common.MType} */ (jspb.Message.getFieldWithDefault(this, 7, 0));
|
2022-04-06 20:18:32 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
2022-12-05 11:46:36 +00:00
|
|
|
/**
|
|
|
|
* @param {!proto.common.MType} value
|
2023-10-31 11:21:43 +00:00
|
|
|
* @return {!proto.streams.UplinkMeta} returns this
|
2022-12-05 11:46:36 +00:00
|
|
|
*/
|
2023-10-31 11:21:43 +00:00
|
|
|
proto.streams.UplinkMeta.prototype.setMessageType = function(value) {
|
2022-12-05 11:46:36 +00:00
|
|
|
return jspb.Message.setProto3EnumField(this, 7, value);
|
2022-04-06 20:18:32 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
|
|
/**
|
2022-12-05 11:46:36 +00:00
|
|
|
* Creates an object representation of this proto.
|
2022-04-06 20:18:32 +00:00
|
|
|
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
2022-12-05 11:46:36 +00:00
|
|
|
* Optional fields that are not set will be set to undefined.
|
2022-04-06 20:18:32 +00:00
|
|
|
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
|
|
* For the list of reserved names please see:
|
2022-12-05 11:46:36 +00:00
|
|
|
* 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
|
2022-04-06 20:18:32 +00:00
|
|
|
* @return {!Object}
|
|
|
|
*/
|
2023-10-31 11:21:43 +00:00
|
|
|
proto.streams.DownlinkMeta.prototype.toObject = function(opt_includeInstance) {
|
|
|
|
return proto.streams.DownlinkMeta.toObject(opt_includeInstance, this);
|
2022-04-06 20:18:32 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Static version of the {@see toObject} method.
|
2022-12-05 11:46:36 +00:00
|
|
|
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
|
|
* the JSPB instance for transitional soy proto support:
|
2022-04-06 20:18:32 +00:00
|
|
|
* http://goto/soy-param-migration
|
2023-10-31 11:21:43 +00:00
|
|
|
* @param {!proto.streams.DownlinkMeta} msg The msg instance to transform.
|
2022-04-06 20:18:32 +00:00
|
|
|
* @return {!Object}
|
2022-12-05 11:46:36 +00:00
|
|
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
2022-04-06 20:18:32 +00:00
|
|
|
*/
|
2023-10-31 11:21:43 +00:00
|
|
|
proto.streams.DownlinkMeta.toObject = function(includeInstance, msg) {
|
2022-04-06 20:18:32 +00:00
|
|
|
var f, obj = {
|
2022-12-05 11:46:36 +00:00
|
|
|
devEui: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
|
|
multicastGroupId: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
2022-04-21 10:42:28 +00:00
|
|
|
txInfo: (f = msg.getTxInfo()) && gw_gw_pb.DownlinkTxInfo.toObject(includeInstance, f),
|
2022-12-05 11:46:36 +00:00
|
|
|
phyPayloadByteCount: jspb.Message.getFieldWithDefault(msg, 4, 0),
|
|
|
|
macCommandByteCount: jspb.Message.getFieldWithDefault(msg, 5, 0),
|
|
|
|
applicationPayloadByteCount: jspb.Message.getFieldWithDefault(msg, 6, 0),
|
|
|
|
messageType: jspb.Message.getFieldWithDefault(msg, 7, 0),
|
|
|
|
gatewayId: jspb.Message.getFieldWithDefault(msg, 8, "")
|
2022-04-06 20:18:32 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
if (includeInstance) {
|
|
|
|
obj.$jspbMessageInstance = msg;
|
|
|
|
}
|
|
|
|
return obj;
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Deserializes binary data (in protobuf wire format).
|
|
|
|
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
2023-10-31 11:21:43 +00:00
|
|
|
* @return {!proto.streams.DownlinkMeta}
|
2022-04-06 20:18:32 +00:00
|
|
|
*/
|
2023-10-31 11:21:43 +00:00
|
|
|
proto.streams.DownlinkMeta.deserializeBinary = function(bytes) {
|
2022-04-06 20:18:32 +00:00
|
|
|
var reader = new jspb.BinaryReader(bytes);
|
2023-10-31 11:21:43 +00:00
|
|
|
var msg = new proto.streams.DownlinkMeta;
|
|
|
|
return proto.streams.DownlinkMeta.deserializeBinaryFromReader(msg, reader);
|
2022-04-06 20:18:32 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Deserializes binary data (in protobuf wire format) from the
|
|
|
|
* given reader into the given message object.
|
2023-10-31 11:21:43 +00:00
|
|
|
* @param {!proto.streams.DownlinkMeta} msg The message object to deserialize into.
|
2022-04-06 20:18:32 +00:00
|
|
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
2023-10-31 11:21:43 +00:00
|
|
|
* @return {!proto.streams.DownlinkMeta}
|
2022-04-06 20:18:32 +00:00
|
|
|
*/
|
2023-10-31 11:21:43 +00:00
|
|
|
proto.streams.DownlinkMeta.deserializeBinaryFromReader = function(msg, reader) {
|
2022-04-06 20:18:32 +00:00
|
|
|
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 {string} */ (reader.readString());
|
|
|
|
msg.setMulticastGroupId(value);
|
|
|
|
break;
|
|
|
|
case 3:
|
2022-04-21 10:42:28 +00:00
|
|
|
var value = new gw_gw_pb.DownlinkTxInfo;
|
|
|
|
reader.readMessage(value,gw_gw_pb.DownlinkTxInfo.deserializeBinaryFromReader);
|
2022-04-06 20:18:32 +00:00
|
|
|
msg.setTxInfo(value);
|
|
|
|
break;
|
|
|
|
case 4:
|
|
|
|
var value = /** @type {number} */ (reader.readUint32());
|
|
|
|
msg.setPhyPayloadByteCount(value);
|
|
|
|
break;
|
|
|
|
case 5:
|
|
|
|
var value = /** @type {number} */ (reader.readUint32());
|
|
|
|
msg.setMacCommandByteCount(value);
|
|
|
|
break;
|
|
|
|
case 6:
|
|
|
|
var value = /** @type {number} */ (reader.readUint32());
|
|
|
|
msg.setApplicationPayloadByteCount(value);
|
|
|
|
break;
|
|
|
|
case 7:
|
|
|
|
var value = /** @type {!proto.common.MType} */ (reader.readEnum());
|
|
|
|
msg.setMessageType(value);
|
|
|
|
break;
|
|
|
|
case 8:
|
|
|
|
var value = /** @type {string} */ (reader.readString());
|
|
|
|
msg.setGatewayId(value);
|
|
|
|
break;
|
|
|
|
default:
|
|
|
|
reader.skipField();
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return msg;
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Serializes the message to binary data (in protobuf wire format).
|
|
|
|
* @return {!Uint8Array}
|
|
|
|
*/
|
2023-10-31 11:21:43 +00:00
|
|
|
proto.streams.DownlinkMeta.prototype.serializeBinary = function() {
|
2022-04-06 20:18:32 +00:00
|
|
|
var writer = new jspb.BinaryWriter();
|
2023-10-31 11:21:43 +00:00
|
|
|
proto.streams.DownlinkMeta.serializeBinaryToWriter(this, writer);
|
2022-04-06 20:18:32 +00:00
|
|
|
return writer.getResultBuffer();
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
2022-12-05 11:46:36 +00:00
|
|
|
* Serializes the given message to binary data (in protobuf wire
|
|
|
|
* format), writing to the given BinaryWriter.
|
2023-10-31 11:21:43 +00:00
|
|
|
* @param {!proto.streams.DownlinkMeta} message
|
2022-04-06 20:18:32 +00:00
|
|
|
* @param {!jspb.BinaryWriter} writer
|
2022-12-05 11:46:36 +00:00
|
|
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
2022-04-06 20:18:32 +00:00
|
|
|
*/
|
2023-10-31 11:21:43 +00:00
|
|
|
proto.streams.DownlinkMeta.serializeBinaryToWriter = function(message, writer) {
|
2022-04-06 20:18:32 +00:00
|
|
|
var f = undefined;
|
2022-12-05 11:46:36 +00:00
|
|
|
f = message.getDevEui();
|
2022-04-06 20:18:32 +00:00
|
|
|
if (f.length > 0) {
|
|
|
|
writer.writeString(
|
|
|
|
1,
|
|
|
|
f
|
|
|
|
);
|
|
|
|
}
|
2022-12-05 11:46:36 +00:00
|
|
|
f = message.getMulticastGroupId();
|
2022-04-06 20:18:32 +00:00
|
|
|
if (f.length > 0) {
|
|
|
|
writer.writeString(
|
|
|
|
2,
|
|
|
|
f
|
|
|
|
);
|
|
|
|
}
|
2022-12-05 11:46:36 +00:00
|
|
|
f = message.getTxInfo();
|
2022-04-06 20:18:32 +00:00
|
|
|
if (f != null) {
|
|
|
|
writer.writeMessage(
|
|
|
|
3,
|
|
|
|
f,
|
2022-04-21 10:42:28 +00:00
|
|
|
gw_gw_pb.DownlinkTxInfo.serializeBinaryToWriter
|
2022-04-06 20:18:32 +00:00
|
|
|
);
|
|
|
|
}
|
2022-12-05 11:46:36 +00:00
|
|
|
f = message.getPhyPayloadByteCount();
|
2022-04-06 20:18:32 +00:00
|
|
|
if (f !== 0) {
|
|
|
|
writer.writeUint32(
|
|
|
|
4,
|
|
|
|
f
|
|
|
|
);
|
|
|
|
}
|
2022-12-05 11:46:36 +00:00
|
|
|
f = message.getMacCommandByteCount();
|
2022-04-06 20:18:32 +00:00
|
|
|
if (f !== 0) {
|
|
|
|
writer.writeUint32(
|
|
|
|
5,
|
|
|
|
f
|
|
|
|
);
|
|
|
|
}
|
2022-12-05 11:46:36 +00:00
|
|
|
f = message.getApplicationPayloadByteCount();
|
2022-04-06 20:18:32 +00:00
|
|
|
if (f !== 0) {
|
|
|
|
writer.writeUint32(
|
|
|
|
6,
|
|
|
|
f
|
|
|
|
);
|
|
|
|
}
|
2022-12-05 11:46:36 +00:00
|
|
|
f = message.getMessageType();
|
2022-04-06 20:18:32 +00:00
|
|
|
if (f !== 0.0) {
|
|
|
|
writer.writeEnum(
|
|
|
|
7,
|
|
|
|
f
|
|
|
|
);
|
|
|
|
}
|
2022-12-05 11:46:36 +00:00
|
|
|
f = message.getGatewayId();
|
2022-04-06 20:18:32 +00:00
|
|
|
if (f.length > 0) {
|
|
|
|
writer.writeString(
|
|
|
|
8,
|
|
|
|
f
|
|
|
|
);
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* optional string dev_eui = 1;
|
|
|
|
* @return {string}
|
|
|
|
*/
|
2023-10-31 11:21:43 +00:00
|
|
|
proto.streams.DownlinkMeta.prototype.getDevEui = function() {
|
2022-12-05 11:46:36 +00:00
|
|
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
2022-04-06 20:18:32 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
2022-12-05 11:46:36 +00:00
|
|
|
/**
|
|
|
|
* @param {string} value
|
2023-10-31 11:21:43 +00:00
|
|
|
* @return {!proto.streams.DownlinkMeta} returns this
|
2022-12-05 11:46:36 +00:00
|
|
|
*/
|
2023-10-31 11:21:43 +00:00
|
|
|
proto.streams.DownlinkMeta.prototype.setDevEui = function(value) {
|
2022-12-05 11:46:36 +00:00
|
|
|
return jspb.Message.setProto3StringField(this, 1, value);
|
2022-04-06 20:18:32 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* optional string multicast_group_id = 2;
|
|
|
|
* @return {string}
|
|
|
|
*/
|
2023-10-31 11:21:43 +00:00
|
|
|
proto.streams.DownlinkMeta.prototype.getMulticastGroupId = function() {
|
2022-12-05 11:46:36 +00:00
|
|
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
2022-04-06 20:18:32 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
2022-12-05 11:46:36 +00:00
|
|
|
/**
|
|
|
|
* @param {string} value
|
2023-10-31 11:21:43 +00:00
|
|
|
* @return {!proto.streams.DownlinkMeta} returns this
|
2022-12-05 11:46:36 +00:00
|
|
|
*/
|
2023-10-31 11:21:43 +00:00
|
|
|
proto.streams.DownlinkMeta.prototype.setMulticastGroupId = function(value) {
|
2022-12-05 11:46:36 +00:00
|
|
|
return jspb.Message.setProto3StringField(this, 2, value);
|
2022-04-06 20:18:32 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
2022-04-21 10:42:28 +00:00
|
|
|
* optional gw.DownlinkTxInfo tx_info = 3;
|
2022-12-05 11:46:36 +00:00
|
|
|
* @return {?proto.gw.DownlinkTxInfo}
|
2022-04-06 20:18:32 +00:00
|
|
|
*/
|
2023-10-31 11:21:43 +00:00
|
|
|
proto.streams.DownlinkMeta.prototype.getTxInfo = function() {
|
2022-12-05 11:46:36 +00:00
|
|
|
return /** @type{?proto.gw.DownlinkTxInfo} */ (
|
2022-04-21 10:42:28 +00:00
|
|
|
jspb.Message.getWrapperField(this, gw_gw_pb.DownlinkTxInfo, 3));
|
2022-04-06 20:18:32 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
2022-12-05 11:46:36 +00:00
|
|
|
/**
|
|
|
|
* @param {?proto.gw.DownlinkTxInfo|undefined} value
|
2023-10-31 11:21:43 +00:00
|
|
|
* @return {!proto.streams.DownlinkMeta} returns this
|
2022-12-05 11:46:36 +00:00
|
|
|
*/
|
2023-10-31 11:21:43 +00:00
|
|
|
proto.streams.DownlinkMeta.prototype.setTxInfo = function(value) {
|
2022-12-05 11:46:36 +00:00
|
|
|
return jspb.Message.setWrapperField(this, 3, value);
|
2022-04-06 20:18:32 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
2022-12-05 11:46:36 +00:00
|
|
|
/**
|
|
|
|
* Clears the message field making it undefined.
|
2023-10-31 11:21:43 +00:00
|
|
|
* @return {!proto.streams.DownlinkMeta} returns this
|
2022-12-05 11:46:36 +00:00
|
|
|
*/
|
2023-10-31 11:21:43 +00:00
|
|
|
proto.streams.DownlinkMeta.prototype.clearTxInfo = function() {
|
2022-12-05 11:46:36 +00:00
|
|
|
return this.setTxInfo(undefined);
|
2022-04-06 20:18:32 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Returns whether this field is set.
|
2022-12-05 11:46:36 +00:00
|
|
|
* @return {boolean}
|
2022-04-06 20:18:32 +00:00
|
|
|
*/
|
2023-10-31 11:21:43 +00:00
|
|
|
proto.streams.DownlinkMeta.prototype.hasTxInfo = function() {
|
2022-04-06 20:18:32 +00:00
|
|
|
return jspb.Message.getField(this, 3) != null;
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* optional uint32 phy_payload_byte_count = 4;
|
|
|
|
* @return {number}
|
|
|
|
*/
|
2023-10-31 11:21:43 +00:00
|
|
|
proto.streams.DownlinkMeta.prototype.getPhyPayloadByteCount = function() {
|
2022-12-05 11:46:36 +00:00
|
|
|
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
|
2022-04-06 20:18:32 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
2022-12-05 11:46:36 +00:00
|
|
|
/**
|
|
|
|
* @param {number} value
|
2023-10-31 11:21:43 +00:00
|
|
|
* @return {!proto.streams.DownlinkMeta} returns this
|
2022-12-05 11:46:36 +00:00
|
|
|
*/
|
2023-10-31 11:21:43 +00:00
|
|
|
proto.streams.DownlinkMeta.prototype.setPhyPayloadByteCount = function(value) {
|
2022-12-05 11:46:36 +00:00
|
|
|
return jspb.Message.setProto3IntField(this, 4, value);
|
2022-04-06 20:18:32 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* optional uint32 mac_command_byte_count = 5;
|
|
|
|
* @return {number}
|
|
|
|
*/
|
2023-10-31 11:21:43 +00:00
|
|
|
proto.streams.DownlinkMeta.prototype.getMacCommandByteCount = function() {
|
2022-12-05 11:46:36 +00:00
|
|
|
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
|
2022-04-06 20:18:32 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
2022-12-05 11:46:36 +00:00
|
|
|
/**
|
|
|
|
* @param {number} value
|
2023-10-31 11:21:43 +00:00
|
|
|
* @return {!proto.streams.DownlinkMeta} returns this
|
2022-12-05 11:46:36 +00:00
|
|
|
*/
|
2023-10-31 11:21:43 +00:00
|
|
|
proto.streams.DownlinkMeta.prototype.setMacCommandByteCount = function(value) {
|
2022-12-05 11:46:36 +00:00
|
|
|
return jspb.Message.setProto3IntField(this, 5, value);
|
2022-04-06 20:18:32 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* optional uint32 application_payload_byte_count = 6;
|
|
|
|
* @return {number}
|
|
|
|
*/
|
2023-10-31 11:21:43 +00:00
|
|
|
proto.streams.DownlinkMeta.prototype.getApplicationPayloadByteCount = function() {
|
2022-12-05 11:46:36 +00:00
|
|
|
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0));
|
2022-04-06 20:18:32 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
2022-12-05 11:46:36 +00:00
|
|
|
/**
|
|
|
|
* @param {number} value
|
2023-10-31 11:21:43 +00:00
|
|
|
* @return {!proto.streams.DownlinkMeta} returns this
|
2022-12-05 11:46:36 +00:00
|
|
|
*/
|
2023-10-31 11:21:43 +00:00
|
|
|
proto.streams.DownlinkMeta.prototype.setApplicationPayloadByteCount = function(value) {
|
2022-12-05 11:46:36 +00:00
|
|
|
return jspb.Message.setProto3IntField(this, 6, value);
|
2022-04-06 20:18:32 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* optional common.MType message_type = 7;
|
|
|
|
* @return {!proto.common.MType}
|
|
|
|
*/
|
2023-10-31 11:21:43 +00:00
|
|
|
proto.streams.DownlinkMeta.prototype.getMessageType = function() {
|
2022-12-05 11:46:36 +00:00
|
|
|
return /** @type {!proto.common.MType} */ (jspb.Message.getFieldWithDefault(this, 7, 0));
|
2022-04-06 20:18:32 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
2022-12-05 11:46:36 +00:00
|
|
|
/**
|
|
|
|
* @param {!proto.common.MType} value
|
2023-10-31 11:21:43 +00:00
|
|
|
* @return {!proto.streams.DownlinkMeta} returns this
|
2022-12-05 11:46:36 +00:00
|
|
|
*/
|
2023-10-31 11:21:43 +00:00
|
|
|
proto.streams.DownlinkMeta.prototype.setMessageType = function(value) {
|
2022-12-05 11:46:36 +00:00
|
|
|
return jspb.Message.setProto3EnumField(this, 7, value);
|
2022-04-06 20:18:32 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* optional string gateway_id = 8;
|
|
|
|
* @return {string}
|
|
|
|
*/
|
2023-10-31 11:21:43 +00:00
|
|
|
proto.streams.DownlinkMeta.prototype.getGatewayId = function() {
|
2022-12-05 11:46:36 +00:00
|
|
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
|
2022-04-06 20:18:32 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
2022-12-05 11:46:36 +00:00
|
|
|
/**
|
|
|
|
* @param {string} value
|
2023-10-31 11:21:43 +00:00
|
|
|
* @return {!proto.streams.DownlinkMeta} returns this
|
2022-12-05 11:46:36 +00:00
|
|
|
*/
|
2023-10-31 11:21:43 +00:00
|
|
|
proto.streams.DownlinkMeta.prototype.setGatewayId = function(value) {
|
2022-12-05 11:46:36 +00:00
|
|
|
return jspb.Message.setProto3StringField(this, 8, value);
|
2022-04-06 20:18:32 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
2023-10-31 11:21:43 +00:00
|
|
|
goog.object.extend(exports, proto.streams);
|