mirror of
https://github.com/chirpstack/chirpstack.git
synced 2025-06-12 20:48:09 +00:00
api: Refactor api/frame_log.proto into streams/frames.proto.
This commit is contained in:
2
api/js/Makefile
vendored
2
api/js/Makefile
vendored
@ -26,7 +26,6 @@ api:
|
||||
protoc ${PROTOC_GRPC_ARGS} ../proto/api/device_profile_template.proto
|
||||
protoc ${PROTOC_GRPC_ARGS} ../proto/api/device.proto
|
||||
protoc ${PROTOC_GRPC_ARGS} ../proto/api/gateway.proto
|
||||
protoc ${PROTOC_GRPC_ARGS} ../proto/api/frame_log.proto
|
||||
protoc ${PROTOC_GRPC_ARGS} ../proto/api/multicast_group.proto
|
||||
protoc ${PROTOC_GRPC_ARGS} ../proto/api/request_log.proto
|
||||
protoc ${PROTOC_GRPC_ARGS} ../proto/api/relay.proto
|
||||
@ -36,6 +35,7 @@ integration:
|
||||
|
||||
streams:
|
||||
protoc ${PROTOC_ARGS} ../proto/streams/meta.proto
|
||||
protoc ${PROTOC_ARGS} ../proto/streams/frames.proto
|
||||
|
||||
google-api:
|
||||
protoc $(PROTOC_ARGS) /googleapis/google/api/*.proto
|
||||
|
1
api/js/api/frame_log_grpc_pb.js
vendored
1
api/js/api/frame_log_grpc_pb.js
vendored
@ -1 +0,0 @@
|
||||
// GENERATED CODE -- NO SERVICES IN PROTO
|
@ -1,5 +1,5 @@
|
||||
// package: api
|
||||
// file: api/frame_log.proto
|
||||
// package: streams
|
||||
// file: streams/frames.proto
|
||||
|
||||
import * as jspb from "google-protobuf";
|
||||
import * as google_protobuf_timestamp_pb from "google-protobuf/google/protobuf/timestamp_pb";
|
@ -1,4 +1,4 @@
|
||||
// source: api/frame_log.proto
|
||||
// source: streams/frames.proto
|
||||
/**
|
||||
* @fileoverview
|
||||
* @enhanceable
|
||||
@ -18,8 +18,8 @@ var common_common_pb = require('../common/common_pb.js');
|
||||
goog.object.extend(proto, common_common_pb);
|
||||
var gw_gw_pb = require('../gw/gw_pb.js');
|
||||
goog.object.extend(proto, gw_gw_pb);
|
||||
goog.exportSymbol('proto.api.DownlinkFrameLog', null, global);
|
||||
goog.exportSymbol('proto.api.UplinkFrameLog', null, global);
|
||||
goog.exportSymbol('proto.streams.DownlinkFrameLog', null, global);
|
||||
goog.exportSymbol('proto.streams.UplinkFrameLog', null, global);
|
||||
/**
|
||||
* Generated by JsPbCodeGenerator.
|
||||
* @param {Array=} opt_data Optional initial data array, typically from a
|
||||
@ -30,16 +30,16 @@ goog.exportSymbol('proto.api.UplinkFrameLog', null, global);
|
||||
* @extends {jspb.Message}
|
||||
* @constructor
|
||||
*/
|
||||
proto.api.UplinkFrameLog = function(opt_data) {
|
||||
jspb.Message.initialize(this, opt_data, 0, -1, proto.api.UplinkFrameLog.repeatedFields_, null);
|
||||
proto.streams.UplinkFrameLog = function(opt_data) {
|
||||
jspb.Message.initialize(this, opt_data, 0, -1, proto.streams.UplinkFrameLog.repeatedFields_, null);
|
||||
};
|
||||
goog.inherits(proto.api.UplinkFrameLog, jspb.Message);
|
||||
goog.inherits(proto.streams.UplinkFrameLog, jspb.Message);
|
||||
if (goog.DEBUG && !COMPILED) {
|
||||
/**
|
||||
* @public
|
||||
* @override
|
||||
*/
|
||||
proto.api.UplinkFrameLog.displayName = 'proto.api.UplinkFrameLog';
|
||||
proto.streams.UplinkFrameLog.displayName = 'proto.streams.UplinkFrameLog';
|
||||
}
|
||||
/**
|
||||
* Generated by JsPbCodeGenerator.
|
||||
@ -51,16 +51,16 @@ if (goog.DEBUG && !COMPILED) {
|
||||
* @extends {jspb.Message}
|
||||
* @constructor
|
||||
*/
|
||||
proto.api.DownlinkFrameLog = function(opt_data) {
|
||||
proto.streams.DownlinkFrameLog = function(opt_data) {
|
||||
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
||||
};
|
||||
goog.inherits(proto.api.DownlinkFrameLog, jspb.Message);
|
||||
goog.inherits(proto.streams.DownlinkFrameLog, jspb.Message);
|
||||
if (goog.DEBUG && !COMPILED) {
|
||||
/**
|
||||
* @public
|
||||
* @override
|
||||
*/
|
||||
proto.api.DownlinkFrameLog.displayName = 'proto.api.DownlinkFrameLog';
|
||||
proto.streams.DownlinkFrameLog.displayName = 'proto.streams.DownlinkFrameLog';
|
||||
}
|
||||
|
||||
/**
|
||||
@ -68,7 +68,7 @@ if (goog.DEBUG && !COMPILED) {
|
||||
* @private {!Array<number>}
|
||||
* @const
|
||||
*/
|
||||
proto.api.UplinkFrameLog.repeatedFields_ = [3];
|
||||
proto.streams.UplinkFrameLog.repeatedFields_ = [3];
|
||||
|
||||
|
||||
|
||||
@ -85,8 +85,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
|
||||
* http://goto/soy-param-migration
|
||||
* @return {!Object}
|
||||
*/
|
||||
proto.api.UplinkFrameLog.prototype.toObject = function(opt_includeInstance) {
|
||||
return proto.api.UplinkFrameLog.toObject(opt_includeInstance, this);
|
||||
proto.streams.UplinkFrameLog.prototype.toObject = function(opt_includeInstance) {
|
||||
return proto.streams.UplinkFrameLog.toObject(opt_includeInstance, this);
|
||||
};
|
||||
|
||||
|
||||
@ -95,11 +95,11 @@ proto.api.UplinkFrameLog.prototype.toObject = function(opt_includeInstance) {
|
||||
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
||||
* the JSPB instance for transitional soy proto support:
|
||||
* http://goto/soy-param-migration
|
||||
* @param {!proto.api.UplinkFrameLog} msg The msg instance to transform.
|
||||
* @param {!proto.streams.UplinkFrameLog} msg The msg instance to transform.
|
||||
* @return {!Object}
|
||||
* @suppress {unusedLocalVariables} f is only used for nested messages
|
||||
*/
|
||||
proto.api.UplinkFrameLog.toObject = function(includeInstance, msg) {
|
||||
proto.streams.UplinkFrameLog.toObject = function(includeInstance, msg) {
|
||||
var f, obj = {
|
||||
phyPayload: msg.getPhyPayload_asB64(),
|
||||
txInfo: (f = msg.getTxInfo()) && gw_gw_pb.UplinkTxInfo.toObject(includeInstance, f),
|
||||
@ -124,23 +124,23 @@ proto.api.UplinkFrameLog.toObject = function(includeInstance, msg) {
|
||||
/**
|
||||
* Deserializes binary data (in protobuf wire format).
|
||||
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
||||
* @return {!proto.api.UplinkFrameLog}
|
||||
* @return {!proto.streams.UplinkFrameLog}
|
||||
*/
|
||||
proto.api.UplinkFrameLog.deserializeBinary = function(bytes) {
|
||||
proto.streams.UplinkFrameLog.deserializeBinary = function(bytes) {
|
||||
var reader = new jspb.BinaryReader(bytes);
|
||||
var msg = new proto.api.UplinkFrameLog;
|
||||
return proto.api.UplinkFrameLog.deserializeBinaryFromReader(msg, reader);
|
||||
var msg = new proto.streams.UplinkFrameLog;
|
||||
return proto.streams.UplinkFrameLog.deserializeBinaryFromReader(msg, reader);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Deserializes binary data (in protobuf wire format) from the
|
||||
* given reader into the given message object.
|
||||
* @param {!proto.api.UplinkFrameLog} msg The message object to deserialize into.
|
||||
* @param {!proto.streams.UplinkFrameLog} msg The message object to deserialize into.
|
||||
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
||||
* @return {!proto.api.UplinkFrameLog}
|
||||
* @return {!proto.streams.UplinkFrameLog}
|
||||
*/
|
||||
proto.api.UplinkFrameLog.deserializeBinaryFromReader = function(msg, reader) {
|
||||
proto.streams.UplinkFrameLog.deserializeBinaryFromReader = function(msg, reader) {
|
||||
while (reader.nextField()) {
|
||||
if (reader.isEndGroup()) {
|
||||
break;
|
||||
@ -199,9 +199,9 @@ proto.api.UplinkFrameLog.deserializeBinaryFromReader = function(msg, reader) {
|
||||
* Serializes the message to binary data (in protobuf wire format).
|
||||
* @return {!Uint8Array}
|
||||
*/
|
||||
proto.api.UplinkFrameLog.prototype.serializeBinary = function() {
|
||||
proto.streams.UplinkFrameLog.prototype.serializeBinary = function() {
|
||||
var writer = new jspb.BinaryWriter();
|
||||
proto.api.UplinkFrameLog.serializeBinaryToWriter(this, writer);
|
||||
proto.streams.UplinkFrameLog.serializeBinaryToWriter(this, writer);
|
||||
return writer.getResultBuffer();
|
||||
};
|
||||
|
||||
@ -209,11 +209,11 @@ proto.api.UplinkFrameLog.prototype.serializeBinary = function() {
|
||||
/**
|
||||
* Serializes the given message to binary data (in protobuf wire
|
||||
* format), writing to the given BinaryWriter.
|
||||
* @param {!proto.api.UplinkFrameLog} message
|
||||
* @param {!proto.streams.UplinkFrameLog} message
|
||||
* @param {!jspb.BinaryWriter} writer
|
||||
* @suppress {unusedLocalVariables} f is only used for nested messages
|
||||
*/
|
||||
proto.api.UplinkFrameLog.serializeBinaryToWriter = function(message, writer) {
|
||||
proto.streams.UplinkFrameLog.serializeBinaryToWriter = function(message, writer) {
|
||||
var f = undefined;
|
||||
f = message.getPhyPayload_asU8();
|
||||
if (f.length > 0) {
|
||||
@ -288,7 +288,7 @@ proto.api.UplinkFrameLog.serializeBinaryToWriter = function(message, writer) {
|
||||
* optional bytes phy_payload = 1;
|
||||
* @return {!(string|Uint8Array)}
|
||||
*/
|
||||
proto.api.UplinkFrameLog.prototype.getPhyPayload = function() {
|
||||
proto.streams.UplinkFrameLog.prototype.getPhyPayload = function() {
|
||||
return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
||||
};
|
||||
|
||||
@ -298,7 +298,7 @@ proto.api.UplinkFrameLog.prototype.getPhyPayload = function() {
|
||||
* This is a type-conversion wrapper around `getPhyPayload()`
|
||||
* @return {string}
|
||||
*/
|
||||
proto.api.UplinkFrameLog.prototype.getPhyPayload_asB64 = function() {
|
||||
proto.streams.UplinkFrameLog.prototype.getPhyPayload_asB64 = function() {
|
||||
return /** @type {string} */ (jspb.Message.bytesAsB64(
|
||||
this.getPhyPayload()));
|
||||
};
|
||||
@ -311,7 +311,7 @@ proto.api.UplinkFrameLog.prototype.getPhyPayload_asB64 = function() {
|
||||
* This is a type-conversion wrapper around `getPhyPayload()`
|
||||
* @return {!Uint8Array}
|
||||
*/
|
||||
proto.api.UplinkFrameLog.prototype.getPhyPayload_asU8 = function() {
|
||||
proto.streams.UplinkFrameLog.prototype.getPhyPayload_asU8 = function() {
|
||||
return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
|
||||
this.getPhyPayload()));
|
||||
};
|
||||
@ -319,9 +319,9 @@ proto.api.UplinkFrameLog.prototype.getPhyPayload_asU8 = function() {
|
||||
|
||||
/**
|
||||
* @param {!(string|Uint8Array)} value
|
||||
* @return {!proto.api.UplinkFrameLog} returns this
|
||||
* @return {!proto.streams.UplinkFrameLog} returns this
|
||||
*/
|
||||
proto.api.UplinkFrameLog.prototype.setPhyPayload = function(value) {
|
||||
proto.streams.UplinkFrameLog.prototype.setPhyPayload = function(value) {
|
||||
return jspb.Message.setProto3BytesField(this, 1, value);
|
||||
};
|
||||
|
||||
@ -330,7 +330,7 @@ proto.api.UplinkFrameLog.prototype.setPhyPayload = function(value) {
|
||||
* optional gw.UplinkTxInfo tx_info = 2;
|
||||
* @return {?proto.gw.UplinkTxInfo}
|
||||
*/
|
||||
proto.api.UplinkFrameLog.prototype.getTxInfo = function() {
|
||||
proto.streams.UplinkFrameLog.prototype.getTxInfo = function() {
|
||||
return /** @type{?proto.gw.UplinkTxInfo} */ (
|
||||
jspb.Message.getWrapperField(this, gw_gw_pb.UplinkTxInfo, 2));
|
||||
};
|
||||
@ -338,18 +338,18 @@ proto.api.UplinkFrameLog.prototype.getTxInfo = function() {
|
||||
|
||||
/**
|
||||
* @param {?proto.gw.UplinkTxInfo|undefined} value
|
||||
* @return {!proto.api.UplinkFrameLog} returns this
|
||||
* @return {!proto.streams.UplinkFrameLog} returns this
|
||||
*/
|
||||
proto.api.UplinkFrameLog.prototype.setTxInfo = function(value) {
|
||||
proto.streams.UplinkFrameLog.prototype.setTxInfo = function(value) {
|
||||
return jspb.Message.setWrapperField(this, 2, value);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Clears the message field making it undefined.
|
||||
* @return {!proto.api.UplinkFrameLog} returns this
|
||||
* @return {!proto.streams.UplinkFrameLog} returns this
|
||||
*/
|
||||
proto.api.UplinkFrameLog.prototype.clearTxInfo = function() {
|
||||
proto.streams.UplinkFrameLog.prototype.clearTxInfo = function() {
|
||||
return this.setTxInfo(undefined);
|
||||
};
|
||||
|
||||
@ -358,7 +358,7 @@ proto.api.UplinkFrameLog.prototype.clearTxInfo = function() {
|
||||
* Returns whether this field is set.
|
||||
* @return {boolean}
|
||||
*/
|
||||
proto.api.UplinkFrameLog.prototype.hasTxInfo = function() {
|
||||
proto.streams.UplinkFrameLog.prototype.hasTxInfo = function() {
|
||||
return jspb.Message.getField(this, 2) != null;
|
||||
};
|
||||
|
||||
@ -367,7 +367,7 @@ proto.api.UplinkFrameLog.prototype.hasTxInfo = function() {
|
||||
* repeated gw.UplinkRxInfo rx_info = 3;
|
||||
* @return {!Array<!proto.gw.UplinkRxInfo>}
|
||||
*/
|
||||
proto.api.UplinkFrameLog.prototype.getRxInfoList = function() {
|
||||
proto.streams.UplinkFrameLog.prototype.getRxInfoList = function() {
|
||||
return /** @type{!Array<!proto.gw.UplinkRxInfo>} */ (
|
||||
jspb.Message.getRepeatedWrapperField(this, gw_gw_pb.UplinkRxInfo, 3));
|
||||
};
|
||||
@ -375,9 +375,9 @@ proto.api.UplinkFrameLog.prototype.getRxInfoList = function() {
|
||||
|
||||
/**
|
||||
* @param {!Array<!proto.gw.UplinkRxInfo>} value
|
||||
* @return {!proto.api.UplinkFrameLog} returns this
|
||||
* @return {!proto.streams.UplinkFrameLog} returns this
|
||||
*/
|
||||
proto.api.UplinkFrameLog.prototype.setRxInfoList = function(value) {
|
||||
proto.streams.UplinkFrameLog.prototype.setRxInfoList = function(value) {
|
||||
return jspb.Message.setRepeatedWrapperField(this, 3, value);
|
||||
};
|
||||
|
||||
@ -387,16 +387,16 @@ proto.api.UplinkFrameLog.prototype.setRxInfoList = function(value) {
|
||||
* @param {number=} opt_index
|
||||
* @return {!proto.gw.UplinkRxInfo}
|
||||
*/
|
||||
proto.api.UplinkFrameLog.prototype.addRxInfo = function(opt_value, opt_index) {
|
||||
proto.streams.UplinkFrameLog.prototype.addRxInfo = function(opt_value, opt_index) {
|
||||
return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.gw.UplinkRxInfo, opt_index);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Clears the list making it empty but non-null.
|
||||
* @return {!proto.api.UplinkFrameLog} returns this
|
||||
* @return {!proto.streams.UplinkFrameLog} returns this
|
||||
*/
|
||||
proto.api.UplinkFrameLog.prototype.clearRxInfoList = function() {
|
||||
proto.streams.UplinkFrameLog.prototype.clearRxInfoList = function() {
|
||||
return this.setRxInfoList([]);
|
||||
};
|
||||
|
||||
@ -405,16 +405,16 @@ proto.api.UplinkFrameLog.prototype.clearRxInfoList = function() {
|
||||
* optional common.MType m_type = 4;
|
||||
* @return {!proto.common.MType}
|
||||
*/
|
||||
proto.api.UplinkFrameLog.prototype.getMType = function() {
|
||||
proto.streams.UplinkFrameLog.prototype.getMType = function() {
|
||||
return /** @type {!proto.common.MType} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @param {!proto.common.MType} value
|
||||
* @return {!proto.api.UplinkFrameLog} returns this
|
||||
* @return {!proto.streams.UplinkFrameLog} returns this
|
||||
*/
|
||||
proto.api.UplinkFrameLog.prototype.setMType = function(value) {
|
||||
proto.streams.UplinkFrameLog.prototype.setMType = function(value) {
|
||||
return jspb.Message.setProto3EnumField(this, 4, value);
|
||||
};
|
||||
|
||||
@ -423,16 +423,16 @@ proto.api.UplinkFrameLog.prototype.setMType = function(value) {
|
||||
* optional string dev_addr = 5;
|
||||
* @return {string}
|
||||
*/
|
||||
proto.api.UplinkFrameLog.prototype.getDevAddr = function() {
|
||||
proto.streams.UplinkFrameLog.prototype.getDevAddr = function() {
|
||||
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @param {string} value
|
||||
* @return {!proto.api.UplinkFrameLog} returns this
|
||||
* @return {!proto.streams.UplinkFrameLog} returns this
|
||||
*/
|
||||
proto.api.UplinkFrameLog.prototype.setDevAddr = function(value) {
|
||||
proto.streams.UplinkFrameLog.prototype.setDevAddr = function(value) {
|
||||
return jspb.Message.setProto3StringField(this, 5, value);
|
||||
};
|
||||
|
||||
@ -441,16 +441,16 @@ proto.api.UplinkFrameLog.prototype.setDevAddr = function(value) {
|
||||
* optional string dev_eui = 6;
|
||||
* @return {string}
|
||||
*/
|
||||
proto.api.UplinkFrameLog.prototype.getDevEui = function() {
|
||||
proto.streams.UplinkFrameLog.prototype.getDevEui = function() {
|
||||
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @param {string} value
|
||||
* @return {!proto.api.UplinkFrameLog} returns this
|
||||
* @return {!proto.streams.UplinkFrameLog} returns this
|
||||
*/
|
||||
proto.api.UplinkFrameLog.prototype.setDevEui = function(value) {
|
||||
proto.streams.UplinkFrameLog.prototype.setDevEui = function(value) {
|
||||
return jspb.Message.setProto3StringField(this, 6, value);
|
||||
};
|
||||
|
||||
@ -459,7 +459,7 @@ proto.api.UplinkFrameLog.prototype.setDevEui = function(value) {
|
||||
* optional google.protobuf.Timestamp time = 7;
|
||||
* @return {?proto.google.protobuf.Timestamp}
|
||||
*/
|
||||
proto.api.UplinkFrameLog.prototype.getTime = function() {
|
||||
proto.streams.UplinkFrameLog.prototype.getTime = function() {
|
||||
return /** @type{?proto.google.protobuf.Timestamp} */ (
|
||||
jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 7));
|
||||
};
|
||||
@ -467,18 +467,18 @@ proto.api.UplinkFrameLog.prototype.getTime = function() {
|
||||
|
||||
/**
|
||||
* @param {?proto.google.protobuf.Timestamp|undefined} value
|
||||
* @return {!proto.api.UplinkFrameLog} returns this
|
||||
* @return {!proto.streams.UplinkFrameLog} returns this
|
||||
*/
|
||||
proto.api.UplinkFrameLog.prototype.setTime = function(value) {
|
||||
proto.streams.UplinkFrameLog.prototype.setTime = function(value) {
|
||||
return jspb.Message.setWrapperField(this, 7, value);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Clears the message field making it undefined.
|
||||
* @return {!proto.api.UplinkFrameLog} returns this
|
||||
* @return {!proto.streams.UplinkFrameLog} returns this
|
||||
*/
|
||||
proto.api.UplinkFrameLog.prototype.clearTime = function() {
|
||||
proto.streams.UplinkFrameLog.prototype.clearTime = function() {
|
||||
return this.setTime(undefined);
|
||||
};
|
||||
|
||||
@ -487,7 +487,7 @@ proto.api.UplinkFrameLog.prototype.clearTime = function() {
|
||||
* Returns whether this field is set.
|
||||
* @return {boolean}
|
||||
*/
|
||||
proto.api.UplinkFrameLog.prototype.hasTime = function() {
|
||||
proto.streams.UplinkFrameLog.prototype.hasTime = function() {
|
||||
return jspb.Message.getField(this, 7) != null;
|
||||
};
|
||||
|
||||
@ -496,16 +496,16 @@ proto.api.UplinkFrameLog.prototype.hasTime = function() {
|
||||
* optional bool plaintext_f_opts = 8;
|
||||
* @return {boolean}
|
||||
*/
|
||||
proto.api.UplinkFrameLog.prototype.getPlaintextFOpts = function() {
|
||||
proto.streams.UplinkFrameLog.prototype.getPlaintextFOpts = function() {
|
||||
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 8, false));
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @param {boolean} value
|
||||
* @return {!proto.api.UplinkFrameLog} returns this
|
||||
* @return {!proto.streams.UplinkFrameLog} returns this
|
||||
*/
|
||||
proto.api.UplinkFrameLog.prototype.setPlaintextFOpts = function(value) {
|
||||
proto.streams.UplinkFrameLog.prototype.setPlaintextFOpts = function(value) {
|
||||
return jspb.Message.setProto3BooleanField(this, 8, value);
|
||||
};
|
||||
|
||||
@ -514,16 +514,16 @@ proto.api.UplinkFrameLog.prototype.setPlaintextFOpts = function(value) {
|
||||
* optional bool plaintext_frm_payload = 9;
|
||||
* @return {boolean}
|
||||
*/
|
||||
proto.api.UplinkFrameLog.prototype.getPlaintextFrmPayload = function() {
|
||||
proto.streams.UplinkFrameLog.prototype.getPlaintextFrmPayload = function() {
|
||||
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 9, false));
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @param {boolean} value
|
||||
* @return {!proto.api.UplinkFrameLog} returns this
|
||||
* @return {!proto.streams.UplinkFrameLog} returns this
|
||||
*/
|
||||
proto.api.UplinkFrameLog.prototype.setPlaintextFrmPayload = function(value) {
|
||||
proto.streams.UplinkFrameLog.prototype.setPlaintextFrmPayload = function(value) {
|
||||
return jspb.Message.setProto3BooleanField(this, 9, value);
|
||||
};
|
||||
|
||||
@ -544,8 +544,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
|
||||
* http://goto/soy-param-migration
|
||||
* @return {!Object}
|
||||
*/
|
||||
proto.api.DownlinkFrameLog.prototype.toObject = function(opt_includeInstance) {
|
||||
return proto.api.DownlinkFrameLog.toObject(opt_includeInstance, this);
|
||||
proto.streams.DownlinkFrameLog.prototype.toObject = function(opt_includeInstance) {
|
||||
return proto.streams.DownlinkFrameLog.toObject(opt_includeInstance, this);
|
||||
};
|
||||
|
||||
|
||||
@ -554,11 +554,11 @@ proto.api.DownlinkFrameLog.prototype.toObject = function(opt_includeInstance) {
|
||||
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
||||
* the JSPB instance for transitional soy proto support:
|
||||
* http://goto/soy-param-migration
|
||||
* @param {!proto.api.DownlinkFrameLog} msg The msg instance to transform.
|
||||
* @param {!proto.streams.DownlinkFrameLog} msg The msg instance to transform.
|
||||
* @return {!Object}
|
||||
* @suppress {unusedLocalVariables} f is only used for nested messages
|
||||
*/
|
||||
proto.api.DownlinkFrameLog.toObject = function(includeInstance, msg) {
|
||||
proto.streams.DownlinkFrameLog.toObject = function(includeInstance, msg) {
|
||||
var f, obj = {
|
||||
time: (f = msg.getTime()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
|
||||
phyPayload: msg.getPhyPayload_asB64(),
|
||||
@ -583,23 +583,23 @@ proto.api.DownlinkFrameLog.toObject = function(includeInstance, msg) {
|
||||
/**
|
||||
* Deserializes binary data (in protobuf wire format).
|
||||
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
||||
* @return {!proto.api.DownlinkFrameLog}
|
||||
* @return {!proto.streams.DownlinkFrameLog}
|
||||
*/
|
||||
proto.api.DownlinkFrameLog.deserializeBinary = function(bytes) {
|
||||
proto.streams.DownlinkFrameLog.deserializeBinary = function(bytes) {
|
||||
var reader = new jspb.BinaryReader(bytes);
|
||||
var msg = new proto.api.DownlinkFrameLog;
|
||||
return proto.api.DownlinkFrameLog.deserializeBinaryFromReader(msg, reader);
|
||||
var msg = new proto.streams.DownlinkFrameLog;
|
||||
return proto.streams.DownlinkFrameLog.deserializeBinaryFromReader(msg, reader);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Deserializes binary data (in protobuf wire format) from the
|
||||
* given reader into the given message object.
|
||||
* @param {!proto.api.DownlinkFrameLog} msg The message object to deserialize into.
|
||||
* @param {!proto.streams.DownlinkFrameLog} msg The message object to deserialize into.
|
||||
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
||||
* @return {!proto.api.DownlinkFrameLog}
|
||||
* @return {!proto.streams.DownlinkFrameLog}
|
||||
*/
|
||||
proto.api.DownlinkFrameLog.deserializeBinaryFromReader = function(msg, reader) {
|
||||
proto.streams.DownlinkFrameLog.deserializeBinaryFromReader = function(msg, reader) {
|
||||
while (reader.nextField()) {
|
||||
if (reader.isEndGroup()) {
|
||||
break;
|
||||
@ -661,9 +661,9 @@ proto.api.DownlinkFrameLog.deserializeBinaryFromReader = function(msg, reader) {
|
||||
* Serializes the message to binary data (in protobuf wire format).
|
||||
* @return {!Uint8Array}
|
||||
*/
|
||||
proto.api.DownlinkFrameLog.prototype.serializeBinary = function() {
|
||||
proto.streams.DownlinkFrameLog.prototype.serializeBinary = function() {
|
||||
var writer = new jspb.BinaryWriter();
|
||||
proto.api.DownlinkFrameLog.serializeBinaryToWriter(this, writer);
|
||||
proto.streams.DownlinkFrameLog.serializeBinaryToWriter(this, writer);
|
||||
return writer.getResultBuffer();
|
||||
};
|
||||
|
||||
@ -671,11 +671,11 @@ proto.api.DownlinkFrameLog.prototype.serializeBinary = function() {
|
||||
/**
|
||||
* Serializes the given message to binary data (in protobuf wire
|
||||
* format), writing to the given BinaryWriter.
|
||||
* @param {!proto.api.DownlinkFrameLog} message
|
||||
* @param {!proto.streams.DownlinkFrameLog} message
|
||||
* @param {!jspb.BinaryWriter} writer
|
||||
* @suppress {unusedLocalVariables} f is only used for nested messages
|
||||
*/
|
||||
proto.api.DownlinkFrameLog.serializeBinaryToWriter = function(message, writer) {
|
||||
proto.streams.DownlinkFrameLog.serializeBinaryToWriter = function(message, writer) {
|
||||
var f = undefined;
|
||||
f = message.getTime();
|
||||
if (f != null) {
|
||||
@ -756,7 +756,7 @@ proto.api.DownlinkFrameLog.serializeBinaryToWriter = function(message, writer) {
|
||||
* optional google.protobuf.Timestamp time = 1;
|
||||
* @return {?proto.google.protobuf.Timestamp}
|
||||
*/
|
||||
proto.api.DownlinkFrameLog.prototype.getTime = function() {
|
||||
proto.streams.DownlinkFrameLog.prototype.getTime = function() {
|
||||
return /** @type{?proto.google.protobuf.Timestamp} */ (
|
||||
jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 1));
|
||||
};
|
||||
@ -764,18 +764,18 @@ proto.api.DownlinkFrameLog.prototype.getTime = function() {
|
||||
|
||||
/**
|
||||
* @param {?proto.google.protobuf.Timestamp|undefined} value
|
||||
* @return {!proto.api.DownlinkFrameLog} returns this
|
||||
* @return {!proto.streams.DownlinkFrameLog} returns this
|
||||
*/
|
||||
proto.api.DownlinkFrameLog.prototype.setTime = function(value) {
|
||||
proto.streams.DownlinkFrameLog.prototype.setTime = function(value) {
|
||||
return jspb.Message.setWrapperField(this, 1, value);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Clears the message field making it undefined.
|
||||
* @return {!proto.api.DownlinkFrameLog} returns this
|
||||
* @return {!proto.streams.DownlinkFrameLog} returns this
|
||||
*/
|
||||
proto.api.DownlinkFrameLog.prototype.clearTime = function() {
|
||||
proto.streams.DownlinkFrameLog.prototype.clearTime = function() {
|
||||
return this.setTime(undefined);
|
||||
};
|
||||
|
||||
@ -784,7 +784,7 @@ proto.api.DownlinkFrameLog.prototype.clearTime = function() {
|
||||
* Returns whether this field is set.
|
||||
* @return {boolean}
|
||||
*/
|
||||
proto.api.DownlinkFrameLog.prototype.hasTime = function() {
|
||||
proto.streams.DownlinkFrameLog.prototype.hasTime = function() {
|
||||
return jspb.Message.getField(this, 1) != null;
|
||||
};
|
||||
|
||||
@ -793,7 +793,7 @@ proto.api.DownlinkFrameLog.prototype.hasTime = function() {
|
||||
* optional bytes phy_payload = 2;
|
||||
* @return {!(string|Uint8Array)}
|
||||
*/
|
||||
proto.api.DownlinkFrameLog.prototype.getPhyPayload = function() {
|
||||
proto.streams.DownlinkFrameLog.prototype.getPhyPayload = function() {
|
||||
return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
||||
};
|
||||
|
||||
@ -803,7 +803,7 @@ proto.api.DownlinkFrameLog.prototype.getPhyPayload = function() {
|
||||
* This is a type-conversion wrapper around `getPhyPayload()`
|
||||
* @return {string}
|
||||
*/
|
||||
proto.api.DownlinkFrameLog.prototype.getPhyPayload_asB64 = function() {
|
||||
proto.streams.DownlinkFrameLog.prototype.getPhyPayload_asB64 = function() {
|
||||
return /** @type {string} */ (jspb.Message.bytesAsB64(
|
||||
this.getPhyPayload()));
|
||||
};
|
||||
@ -816,7 +816,7 @@ proto.api.DownlinkFrameLog.prototype.getPhyPayload_asB64 = function() {
|
||||
* This is a type-conversion wrapper around `getPhyPayload()`
|
||||
* @return {!Uint8Array}
|
||||
*/
|
||||
proto.api.DownlinkFrameLog.prototype.getPhyPayload_asU8 = function() {
|
||||
proto.streams.DownlinkFrameLog.prototype.getPhyPayload_asU8 = function() {
|
||||
return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
|
||||
this.getPhyPayload()));
|
||||
};
|
||||
@ -824,9 +824,9 @@ proto.api.DownlinkFrameLog.prototype.getPhyPayload_asU8 = function() {
|
||||
|
||||
/**
|
||||
* @param {!(string|Uint8Array)} value
|
||||
* @return {!proto.api.DownlinkFrameLog} returns this
|
||||
* @return {!proto.streams.DownlinkFrameLog} returns this
|
||||
*/
|
||||
proto.api.DownlinkFrameLog.prototype.setPhyPayload = function(value) {
|
||||
proto.streams.DownlinkFrameLog.prototype.setPhyPayload = function(value) {
|
||||
return jspb.Message.setProto3BytesField(this, 2, value);
|
||||
};
|
||||
|
||||
@ -835,7 +835,7 @@ proto.api.DownlinkFrameLog.prototype.setPhyPayload = function(value) {
|
||||
* optional gw.DownlinkTxInfo tx_info = 3;
|
||||
* @return {?proto.gw.DownlinkTxInfo}
|
||||
*/
|
||||
proto.api.DownlinkFrameLog.prototype.getTxInfo = function() {
|
||||
proto.streams.DownlinkFrameLog.prototype.getTxInfo = function() {
|
||||
return /** @type{?proto.gw.DownlinkTxInfo} */ (
|
||||
jspb.Message.getWrapperField(this, gw_gw_pb.DownlinkTxInfo, 3));
|
||||
};
|
||||
@ -843,18 +843,18 @@ proto.api.DownlinkFrameLog.prototype.getTxInfo = function() {
|
||||
|
||||
/**
|
||||
* @param {?proto.gw.DownlinkTxInfo|undefined} value
|
||||
* @return {!proto.api.DownlinkFrameLog} returns this
|
||||
* @return {!proto.streams.DownlinkFrameLog} returns this
|
||||
*/
|
||||
proto.api.DownlinkFrameLog.prototype.setTxInfo = function(value) {
|
||||
proto.streams.DownlinkFrameLog.prototype.setTxInfo = function(value) {
|
||||
return jspb.Message.setWrapperField(this, 3, value);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Clears the message field making it undefined.
|
||||
* @return {!proto.api.DownlinkFrameLog} returns this
|
||||
* @return {!proto.streams.DownlinkFrameLog} returns this
|
||||
*/
|
||||
proto.api.DownlinkFrameLog.prototype.clearTxInfo = function() {
|
||||
proto.streams.DownlinkFrameLog.prototype.clearTxInfo = function() {
|
||||
return this.setTxInfo(undefined);
|
||||
};
|
||||
|
||||
@ -863,7 +863,7 @@ proto.api.DownlinkFrameLog.prototype.clearTxInfo = function() {
|
||||
* Returns whether this field is set.
|
||||
* @return {boolean}
|
||||
*/
|
||||
proto.api.DownlinkFrameLog.prototype.hasTxInfo = function() {
|
||||
proto.streams.DownlinkFrameLog.prototype.hasTxInfo = function() {
|
||||
return jspb.Message.getField(this, 3) != null;
|
||||
};
|
||||
|
||||
@ -872,16 +872,16 @@ proto.api.DownlinkFrameLog.prototype.hasTxInfo = function() {
|
||||
* optional uint32 downlink_id = 4;
|
||||
* @return {number}
|
||||
*/
|
||||
proto.api.DownlinkFrameLog.prototype.getDownlinkId = function() {
|
||||
proto.streams.DownlinkFrameLog.prototype.getDownlinkId = function() {
|
||||
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @param {number} value
|
||||
* @return {!proto.api.DownlinkFrameLog} returns this
|
||||
* @return {!proto.streams.DownlinkFrameLog} returns this
|
||||
*/
|
||||
proto.api.DownlinkFrameLog.prototype.setDownlinkId = function(value) {
|
||||
proto.streams.DownlinkFrameLog.prototype.setDownlinkId = function(value) {
|
||||
return jspb.Message.setProto3IntField(this, 4, value);
|
||||
};
|
||||
|
||||
@ -890,16 +890,16 @@ proto.api.DownlinkFrameLog.prototype.setDownlinkId = function(value) {
|
||||
* optional string gateway_id = 5;
|
||||
* @return {string}
|
||||
*/
|
||||
proto.api.DownlinkFrameLog.prototype.getGatewayId = function() {
|
||||
proto.streams.DownlinkFrameLog.prototype.getGatewayId = function() {
|
||||
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @param {string} value
|
||||
* @return {!proto.api.DownlinkFrameLog} returns this
|
||||
* @return {!proto.streams.DownlinkFrameLog} returns this
|
||||
*/
|
||||
proto.api.DownlinkFrameLog.prototype.setGatewayId = function(value) {
|
||||
proto.streams.DownlinkFrameLog.prototype.setGatewayId = function(value) {
|
||||
return jspb.Message.setProto3StringField(this, 5, value);
|
||||
};
|
||||
|
||||
@ -908,16 +908,16 @@ proto.api.DownlinkFrameLog.prototype.setGatewayId = function(value) {
|
||||
* optional common.MType m_type = 6;
|
||||
* @return {!proto.common.MType}
|
||||
*/
|
||||
proto.api.DownlinkFrameLog.prototype.getMType = function() {
|
||||
proto.streams.DownlinkFrameLog.prototype.getMType = function() {
|
||||
return /** @type {!proto.common.MType} */ (jspb.Message.getFieldWithDefault(this, 6, 0));
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @param {!proto.common.MType} value
|
||||
* @return {!proto.api.DownlinkFrameLog} returns this
|
||||
* @return {!proto.streams.DownlinkFrameLog} returns this
|
||||
*/
|
||||
proto.api.DownlinkFrameLog.prototype.setMType = function(value) {
|
||||
proto.streams.DownlinkFrameLog.prototype.setMType = function(value) {
|
||||
return jspb.Message.setProto3EnumField(this, 6, value);
|
||||
};
|
||||
|
||||
@ -926,16 +926,16 @@ proto.api.DownlinkFrameLog.prototype.setMType = function(value) {
|
||||
* optional string dev_addr = 7;
|
||||
* @return {string}
|
||||
*/
|
||||
proto.api.DownlinkFrameLog.prototype.getDevAddr = function() {
|
||||
proto.streams.DownlinkFrameLog.prototype.getDevAddr = function() {
|
||||
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @param {string} value
|
||||
* @return {!proto.api.DownlinkFrameLog} returns this
|
||||
* @return {!proto.streams.DownlinkFrameLog} returns this
|
||||
*/
|
||||
proto.api.DownlinkFrameLog.prototype.setDevAddr = function(value) {
|
||||
proto.streams.DownlinkFrameLog.prototype.setDevAddr = function(value) {
|
||||
return jspb.Message.setProto3StringField(this, 7, value);
|
||||
};
|
||||
|
||||
@ -944,16 +944,16 @@ proto.api.DownlinkFrameLog.prototype.setDevAddr = function(value) {
|
||||
* optional string dev_eui = 8;
|
||||
* @return {string}
|
||||
*/
|
||||
proto.api.DownlinkFrameLog.prototype.getDevEui = function() {
|
||||
proto.streams.DownlinkFrameLog.prototype.getDevEui = function() {
|
||||
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @param {string} value
|
||||
* @return {!proto.api.DownlinkFrameLog} returns this
|
||||
* @return {!proto.streams.DownlinkFrameLog} returns this
|
||||
*/
|
||||
proto.api.DownlinkFrameLog.prototype.setDevEui = function(value) {
|
||||
proto.streams.DownlinkFrameLog.prototype.setDevEui = function(value) {
|
||||
return jspb.Message.setProto3StringField(this, 8, value);
|
||||
};
|
||||
|
||||
@ -962,16 +962,16 @@ proto.api.DownlinkFrameLog.prototype.setDevEui = function(value) {
|
||||
* optional bool plaintext_f_opts = 9;
|
||||
* @return {boolean}
|
||||
*/
|
||||
proto.api.DownlinkFrameLog.prototype.getPlaintextFOpts = function() {
|
||||
proto.streams.DownlinkFrameLog.prototype.getPlaintextFOpts = function() {
|
||||
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 9, false));
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @param {boolean} value
|
||||
* @return {!proto.api.DownlinkFrameLog} returns this
|
||||
* @return {!proto.streams.DownlinkFrameLog} returns this
|
||||
*/
|
||||
proto.api.DownlinkFrameLog.prototype.setPlaintextFOpts = function(value) {
|
||||
proto.streams.DownlinkFrameLog.prototype.setPlaintextFOpts = function(value) {
|
||||
return jspb.Message.setProto3BooleanField(this, 9, value);
|
||||
};
|
||||
|
||||
@ -980,18 +980,18 @@ proto.api.DownlinkFrameLog.prototype.setPlaintextFOpts = function(value) {
|
||||
* optional bool plaintext_frm_payload = 10;
|
||||
* @return {boolean}
|
||||
*/
|
||||
proto.api.DownlinkFrameLog.prototype.getPlaintextFrmPayload = function() {
|
||||
proto.streams.DownlinkFrameLog.prototype.getPlaintextFrmPayload = function() {
|
||||
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 10, false));
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @param {boolean} value
|
||||
* @return {!proto.api.DownlinkFrameLog} returns this
|
||||
* @return {!proto.streams.DownlinkFrameLog} returns this
|
||||
*/
|
||||
proto.api.DownlinkFrameLog.prototype.setPlaintextFrmPayload = function(value) {
|
||||
proto.streams.DownlinkFrameLog.prototype.setPlaintextFrmPayload = function(value) {
|
||||
return jspb.Message.setProto3BooleanField(this, 10, value);
|
||||
};
|
||||
|
||||
|
||||
goog.object.extend(exports, proto.api);
|
||||
goog.object.extend(exports, proto.streams);
|
2
api/js/streams/meta_pb.d.ts
vendored
2
api/js/streams/meta_pb.d.ts
vendored
@ -1,4 +1,4 @@
|
||||
// package: meta
|
||||
// package: streams
|
||||
// file: streams/meta.proto
|
||||
|
||||
import * as jspb from "google-protobuf";
|
||||
|
190
api/js/streams/meta_pb.js
vendored
190
api/js/streams/meta_pb.js
vendored
@ -16,8 +16,8 @@ var common_common_pb = require('../common/common_pb.js');
|
||||
goog.object.extend(proto, common_common_pb);
|
||||
var gw_gw_pb = require('../gw/gw_pb.js');
|
||||
goog.object.extend(proto, gw_gw_pb);
|
||||
goog.exportSymbol('proto.meta.DownlinkMeta', null, global);
|
||||
goog.exportSymbol('proto.meta.UplinkMeta', null, global);
|
||||
goog.exportSymbol('proto.streams.DownlinkMeta', null, global);
|
||||
goog.exportSymbol('proto.streams.UplinkMeta', null, global);
|
||||
/**
|
||||
* Generated by JsPbCodeGenerator.
|
||||
* @param {Array=} opt_data Optional initial data array, typically from a
|
||||
@ -28,16 +28,16 @@ goog.exportSymbol('proto.meta.UplinkMeta', null, global);
|
||||
* @extends {jspb.Message}
|
||||
* @constructor
|
||||
*/
|
||||
proto.meta.UplinkMeta = function(opt_data) {
|
||||
jspb.Message.initialize(this, opt_data, 0, -1, proto.meta.UplinkMeta.repeatedFields_, null);
|
||||
proto.streams.UplinkMeta = function(opt_data) {
|
||||
jspb.Message.initialize(this, opt_data, 0, -1, proto.streams.UplinkMeta.repeatedFields_, null);
|
||||
};
|
||||
goog.inherits(proto.meta.UplinkMeta, jspb.Message);
|
||||
goog.inherits(proto.streams.UplinkMeta, jspb.Message);
|
||||
if (goog.DEBUG && !COMPILED) {
|
||||
/**
|
||||
* @public
|
||||
* @override
|
||||
*/
|
||||
proto.meta.UplinkMeta.displayName = 'proto.meta.UplinkMeta';
|
||||
proto.streams.UplinkMeta.displayName = 'proto.streams.UplinkMeta';
|
||||
}
|
||||
/**
|
||||
* Generated by JsPbCodeGenerator.
|
||||
@ -49,16 +49,16 @@ if (goog.DEBUG && !COMPILED) {
|
||||
* @extends {jspb.Message}
|
||||
* @constructor
|
||||
*/
|
||||
proto.meta.DownlinkMeta = function(opt_data) {
|
||||
proto.streams.DownlinkMeta = function(opt_data) {
|
||||
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
||||
};
|
||||
goog.inherits(proto.meta.DownlinkMeta, jspb.Message);
|
||||
goog.inherits(proto.streams.DownlinkMeta, jspb.Message);
|
||||
if (goog.DEBUG && !COMPILED) {
|
||||
/**
|
||||
* @public
|
||||
* @override
|
||||
*/
|
||||
proto.meta.DownlinkMeta.displayName = 'proto.meta.DownlinkMeta';
|
||||
proto.streams.DownlinkMeta.displayName = 'proto.streams.DownlinkMeta';
|
||||
}
|
||||
|
||||
/**
|
||||
@ -66,7 +66,7 @@ if (goog.DEBUG && !COMPILED) {
|
||||
* @private {!Array<number>}
|
||||
* @const
|
||||
*/
|
||||
proto.meta.UplinkMeta.repeatedFields_ = [3];
|
||||
proto.streams.UplinkMeta.repeatedFields_ = [3];
|
||||
|
||||
|
||||
|
||||
@ -83,8 +83,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
|
||||
* http://goto/soy-param-migration
|
||||
* @return {!Object}
|
||||
*/
|
||||
proto.meta.UplinkMeta.prototype.toObject = function(opt_includeInstance) {
|
||||
return proto.meta.UplinkMeta.toObject(opt_includeInstance, this);
|
||||
proto.streams.UplinkMeta.prototype.toObject = function(opt_includeInstance) {
|
||||
return proto.streams.UplinkMeta.toObject(opt_includeInstance, this);
|
||||
};
|
||||
|
||||
|
||||
@ -93,11 +93,11 @@ proto.meta.UplinkMeta.prototype.toObject = function(opt_includeInstance) {
|
||||
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
||||
* the JSPB instance for transitional soy proto support:
|
||||
* http://goto/soy-param-migration
|
||||
* @param {!proto.meta.UplinkMeta} msg The msg instance to transform.
|
||||
* @param {!proto.streams.UplinkMeta} msg The msg instance to transform.
|
||||
* @return {!Object}
|
||||
* @suppress {unusedLocalVariables} f is only used for nested messages
|
||||
*/
|
||||
proto.meta.UplinkMeta.toObject = function(includeInstance, msg) {
|
||||
proto.streams.UplinkMeta.toObject = function(includeInstance, msg) {
|
||||
var f, obj = {
|
||||
devEui: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
||||
txInfo: (f = msg.getTxInfo()) && gw_gw_pb.UplinkTxInfo.toObject(includeInstance, f),
|
||||
@ -120,23 +120,23 @@ proto.meta.UplinkMeta.toObject = function(includeInstance, msg) {
|
||||
/**
|
||||
* Deserializes binary data (in protobuf wire format).
|
||||
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
||||
* @return {!proto.meta.UplinkMeta}
|
||||
* @return {!proto.streams.UplinkMeta}
|
||||
*/
|
||||
proto.meta.UplinkMeta.deserializeBinary = function(bytes) {
|
||||
proto.streams.UplinkMeta.deserializeBinary = function(bytes) {
|
||||
var reader = new jspb.BinaryReader(bytes);
|
||||
var msg = new proto.meta.UplinkMeta;
|
||||
return proto.meta.UplinkMeta.deserializeBinaryFromReader(msg, reader);
|
||||
var msg = new proto.streams.UplinkMeta;
|
||||
return proto.streams.UplinkMeta.deserializeBinaryFromReader(msg, reader);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Deserializes binary data (in protobuf wire format) from the
|
||||
* given reader into the given message object.
|
||||
* @param {!proto.meta.UplinkMeta} msg The message object to deserialize into.
|
||||
* @param {!proto.streams.UplinkMeta} msg The message object to deserialize into.
|
||||
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
||||
* @return {!proto.meta.UplinkMeta}
|
||||
* @return {!proto.streams.UplinkMeta}
|
||||
*/
|
||||
proto.meta.UplinkMeta.deserializeBinaryFromReader = function(msg, reader) {
|
||||
proto.streams.UplinkMeta.deserializeBinaryFromReader = function(msg, reader) {
|
||||
while (reader.nextField()) {
|
||||
if (reader.isEndGroup()) {
|
||||
break;
|
||||
@ -186,9 +186,9 @@ proto.meta.UplinkMeta.deserializeBinaryFromReader = function(msg, reader) {
|
||||
* Serializes the message to binary data (in protobuf wire format).
|
||||
* @return {!Uint8Array}
|
||||
*/
|
||||
proto.meta.UplinkMeta.prototype.serializeBinary = function() {
|
||||
proto.streams.UplinkMeta.prototype.serializeBinary = function() {
|
||||
var writer = new jspb.BinaryWriter();
|
||||
proto.meta.UplinkMeta.serializeBinaryToWriter(this, writer);
|
||||
proto.streams.UplinkMeta.serializeBinaryToWriter(this, writer);
|
||||
return writer.getResultBuffer();
|
||||
};
|
||||
|
||||
@ -196,11 +196,11 @@ proto.meta.UplinkMeta.prototype.serializeBinary = function() {
|
||||
/**
|
||||
* Serializes the given message to binary data (in protobuf wire
|
||||
* format), writing to the given BinaryWriter.
|
||||
* @param {!proto.meta.UplinkMeta} message
|
||||
* @param {!proto.streams.UplinkMeta} message
|
||||
* @param {!jspb.BinaryWriter} writer
|
||||
* @suppress {unusedLocalVariables} f is only used for nested messages
|
||||
*/
|
||||
proto.meta.UplinkMeta.serializeBinaryToWriter = function(message, writer) {
|
||||
proto.streams.UplinkMeta.serializeBinaryToWriter = function(message, writer) {
|
||||
var f = undefined;
|
||||
f = message.getDevEui();
|
||||
if (f.length > 0) {
|
||||
@ -260,16 +260,16 @@ proto.meta.UplinkMeta.serializeBinaryToWriter = function(message, writer) {
|
||||
* optional string dev_eui = 1;
|
||||
* @return {string}
|
||||
*/
|
||||
proto.meta.UplinkMeta.prototype.getDevEui = function() {
|
||||
proto.streams.UplinkMeta.prototype.getDevEui = function() {
|
||||
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @param {string} value
|
||||
* @return {!proto.meta.UplinkMeta} returns this
|
||||
* @return {!proto.streams.UplinkMeta} returns this
|
||||
*/
|
||||
proto.meta.UplinkMeta.prototype.setDevEui = function(value) {
|
||||
proto.streams.UplinkMeta.prototype.setDevEui = function(value) {
|
||||
return jspb.Message.setProto3StringField(this, 1, value);
|
||||
};
|
||||
|
||||
@ -278,7 +278,7 @@ proto.meta.UplinkMeta.prototype.setDevEui = function(value) {
|
||||
* optional gw.UplinkTxInfo tx_info = 2;
|
||||
* @return {?proto.gw.UplinkTxInfo}
|
||||
*/
|
||||
proto.meta.UplinkMeta.prototype.getTxInfo = function() {
|
||||
proto.streams.UplinkMeta.prototype.getTxInfo = function() {
|
||||
return /** @type{?proto.gw.UplinkTxInfo} */ (
|
||||
jspb.Message.getWrapperField(this, gw_gw_pb.UplinkTxInfo, 2));
|
||||
};
|
||||
@ -286,18 +286,18 @@ proto.meta.UplinkMeta.prototype.getTxInfo = function() {
|
||||
|
||||
/**
|
||||
* @param {?proto.gw.UplinkTxInfo|undefined} value
|
||||
* @return {!proto.meta.UplinkMeta} returns this
|
||||
* @return {!proto.streams.UplinkMeta} returns this
|
||||
*/
|
||||
proto.meta.UplinkMeta.prototype.setTxInfo = function(value) {
|
||||
proto.streams.UplinkMeta.prototype.setTxInfo = function(value) {
|
||||
return jspb.Message.setWrapperField(this, 2, value);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Clears the message field making it undefined.
|
||||
* @return {!proto.meta.UplinkMeta} returns this
|
||||
* @return {!proto.streams.UplinkMeta} returns this
|
||||
*/
|
||||
proto.meta.UplinkMeta.prototype.clearTxInfo = function() {
|
||||
proto.streams.UplinkMeta.prototype.clearTxInfo = function() {
|
||||
return this.setTxInfo(undefined);
|
||||
};
|
||||
|
||||
@ -306,7 +306,7 @@ proto.meta.UplinkMeta.prototype.clearTxInfo = function() {
|
||||
* Returns whether this field is set.
|
||||
* @return {boolean}
|
||||
*/
|
||||
proto.meta.UplinkMeta.prototype.hasTxInfo = function() {
|
||||
proto.streams.UplinkMeta.prototype.hasTxInfo = function() {
|
||||
return jspb.Message.getField(this, 2) != null;
|
||||
};
|
||||
|
||||
@ -315,7 +315,7 @@ proto.meta.UplinkMeta.prototype.hasTxInfo = function() {
|
||||
* repeated gw.UplinkRxInfo rx_info = 3;
|
||||
* @return {!Array<!proto.gw.UplinkRxInfo>}
|
||||
*/
|
||||
proto.meta.UplinkMeta.prototype.getRxInfoList = function() {
|
||||
proto.streams.UplinkMeta.prototype.getRxInfoList = function() {
|
||||
return /** @type{!Array<!proto.gw.UplinkRxInfo>} */ (
|
||||
jspb.Message.getRepeatedWrapperField(this, gw_gw_pb.UplinkRxInfo, 3));
|
||||
};
|
||||
@ -323,9 +323,9 @@ proto.meta.UplinkMeta.prototype.getRxInfoList = function() {
|
||||
|
||||
/**
|
||||
* @param {!Array<!proto.gw.UplinkRxInfo>} value
|
||||
* @return {!proto.meta.UplinkMeta} returns this
|
||||
* @return {!proto.streams.UplinkMeta} returns this
|
||||
*/
|
||||
proto.meta.UplinkMeta.prototype.setRxInfoList = function(value) {
|
||||
proto.streams.UplinkMeta.prototype.setRxInfoList = function(value) {
|
||||
return jspb.Message.setRepeatedWrapperField(this, 3, value);
|
||||
};
|
||||
|
||||
@ -335,16 +335,16 @@ proto.meta.UplinkMeta.prototype.setRxInfoList = function(value) {
|
||||
* @param {number=} opt_index
|
||||
* @return {!proto.gw.UplinkRxInfo}
|
||||
*/
|
||||
proto.meta.UplinkMeta.prototype.addRxInfo = function(opt_value, opt_index) {
|
||||
proto.streams.UplinkMeta.prototype.addRxInfo = function(opt_value, opt_index) {
|
||||
return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.gw.UplinkRxInfo, opt_index);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Clears the list making it empty but non-null.
|
||||
* @return {!proto.meta.UplinkMeta} returns this
|
||||
* @return {!proto.streams.UplinkMeta} returns this
|
||||
*/
|
||||
proto.meta.UplinkMeta.prototype.clearRxInfoList = function() {
|
||||
proto.streams.UplinkMeta.prototype.clearRxInfoList = function() {
|
||||
return this.setRxInfoList([]);
|
||||
};
|
||||
|
||||
@ -353,16 +353,16 @@ proto.meta.UplinkMeta.prototype.clearRxInfoList = function() {
|
||||
* optional uint32 phy_payload_byte_count = 4;
|
||||
* @return {number}
|
||||
*/
|
||||
proto.meta.UplinkMeta.prototype.getPhyPayloadByteCount = function() {
|
||||
proto.streams.UplinkMeta.prototype.getPhyPayloadByteCount = function() {
|
||||
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @param {number} value
|
||||
* @return {!proto.meta.UplinkMeta} returns this
|
||||
* @return {!proto.streams.UplinkMeta} returns this
|
||||
*/
|
||||
proto.meta.UplinkMeta.prototype.setPhyPayloadByteCount = function(value) {
|
||||
proto.streams.UplinkMeta.prototype.setPhyPayloadByteCount = function(value) {
|
||||
return jspb.Message.setProto3IntField(this, 4, value);
|
||||
};
|
||||
|
||||
@ -371,16 +371,16 @@ proto.meta.UplinkMeta.prototype.setPhyPayloadByteCount = function(value) {
|
||||
* optional uint32 mac_command_byte_count = 5;
|
||||
* @return {number}
|
||||
*/
|
||||
proto.meta.UplinkMeta.prototype.getMacCommandByteCount = function() {
|
||||
proto.streams.UplinkMeta.prototype.getMacCommandByteCount = function() {
|
||||
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @param {number} value
|
||||
* @return {!proto.meta.UplinkMeta} returns this
|
||||
* @return {!proto.streams.UplinkMeta} returns this
|
||||
*/
|
||||
proto.meta.UplinkMeta.prototype.setMacCommandByteCount = function(value) {
|
||||
proto.streams.UplinkMeta.prototype.setMacCommandByteCount = function(value) {
|
||||
return jspb.Message.setProto3IntField(this, 5, value);
|
||||
};
|
||||
|
||||
@ -389,16 +389,16 @@ proto.meta.UplinkMeta.prototype.setMacCommandByteCount = function(value) {
|
||||
* optional uint32 application_payload_byte_count = 6;
|
||||
* @return {number}
|
||||
*/
|
||||
proto.meta.UplinkMeta.prototype.getApplicationPayloadByteCount = function() {
|
||||
proto.streams.UplinkMeta.prototype.getApplicationPayloadByteCount = function() {
|
||||
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0));
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @param {number} value
|
||||
* @return {!proto.meta.UplinkMeta} returns this
|
||||
* @return {!proto.streams.UplinkMeta} returns this
|
||||
*/
|
||||
proto.meta.UplinkMeta.prototype.setApplicationPayloadByteCount = function(value) {
|
||||
proto.streams.UplinkMeta.prototype.setApplicationPayloadByteCount = function(value) {
|
||||
return jspb.Message.setProto3IntField(this, 6, value);
|
||||
};
|
||||
|
||||
@ -407,16 +407,16 @@ proto.meta.UplinkMeta.prototype.setApplicationPayloadByteCount = function(value)
|
||||
* optional common.MType message_type = 7;
|
||||
* @return {!proto.common.MType}
|
||||
*/
|
||||
proto.meta.UplinkMeta.prototype.getMessageType = function() {
|
||||
proto.streams.UplinkMeta.prototype.getMessageType = function() {
|
||||
return /** @type {!proto.common.MType} */ (jspb.Message.getFieldWithDefault(this, 7, 0));
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @param {!proto.common.MType} value
|
||||
* @return {!proto.meta.UplinkMeta} returns this
|
||||
* @return {!proto.streams.UplinkMeta} returns this
|
||||
*/
|
||||
proto.meta.UplinkMeta.prototype.setMessageType = function(value) {
|
||||
proto.streams.UplinkMeta.prototype.setMessageType = function(value) {
|
||||
return jspb.Message.setProto3EnumField(this, 7, value);
|
||||
};
|
||||
|
||||
@ -437,8 +437,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
|
||||
* http://goto/soy-param-migration
|
||||
* @return {!Object}
|
||||
*/
|
||||
proto.meta.DownlinkMeta.prototype.toObject = function(opt_includeInstance) {
|
||||
return proto.meta.DownlinkMeta.toObject(opt_includeInstance, this);
|
||||
proto.streams.DownlinkMeta.prototype.toObject = function(opt_includeInstance) {
|
||||
return proto.streams.DownlinkMeta.toObject(opt_includeInstance, this);
|
||||
};
|
||||
|
||||
|
||||
@ -447,11 +447,11 @@ proto.meta.DownlinkMeta.prototype.toObject = function(opt_includeInstance) {
|
||||
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
||||
* the JSPB instance for transitional soy proto support:
|
||||
* http://goto/soy-param-migration
|
||||
* @param {!proto.meta.DownlinkMeta} msg The msg instance to transform.
|
||||
* @param {!proto.streams.DownlinkMeta} msg The msg instance to transform.
|
||||
* @return {!Object}
|
||||
* @suppress {unusedLocalVariables} f is only used for nested messages
|
||||
*/
|
||||
proto.meta.DownlinkMeta.toObject = function(includeInstance, msg) {
|
||||
proto.streams.DownlinkMeta.toObject = function(includeInstance, msg) {
|
||||
var f, obj = {
|
||||
devEui: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
||||
multicastGroupId: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
||||
@ -474,23 +474,23 @@ proto.meta.DownlinkMeta.toObject = function(includeInstance, msg) {
|
||||
/**
|
||||
* Deserializes binary data (in protobuf wire format).
|
||||
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
||||
* @return {!proto.meta.DownlinkMeta}
|
||||
* @return {!proto.streams.DownlinkMeta}
|
||||
*/
|
||||
proto.meta.DownlinkMeta.deserializeBinary = function(bytes) {
|
||||
proto.streams.DownlinkMeta.deserializeBinary = function(bytes) {
|
||||
var reader = new jspb.BinaryReader(bytes);
|
||||
var msg = new proto.meta.DownlinkMeta;
|
||||
return proto.meta.DownlinkMeta.deserializeBinaryFromReader(msg, reader);
|
||||
var msg = new proto.streams.DownlinkMeta;
|
||||
return proto.streams.DownlinkMeta.deserializeBinaryFromReader(msg, reader);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Deserializes binary data (in protobuf wire format) from the
|
||||
* given reader into the given message object.
|
||||
* @param {!proto.meta.DownlinkMeta} msg The message object to deserialize into.
|
||||
* @param {!proto.streams.DownlinkMeta} msg The message object to deserialize into.
|
||||
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
||||
* @return {!proto.meta.DownlinkMeta}
|
||||
* @return {!proto.streams.DownlinkMeta}
|
||||
*/
|
||||
proto.meta.DownlinkMeta.deserializeBinaryFromReader = function(msg, reader) {
|
||||
proto.streams.DownlinkMeta.deserializeBinaryFromReader = function(msg, reader) {
|
||||
while (reader.nextField()) {
|
||||
if (reader.isEndGroup()) {
|
||||
break;
|
||||
@ -543,9 +543,9 @@ proto.meta.DownlinkMeta.deserializeBinaryFromReader = function(msg, reader) {
|
||||
* Serializes the message to binary data (in protobuf wire format).
|
||||
* @return {!Uint8Array}
|
||||
*/
|
||||
proto.meta.DownlinkMeta.prototype.serializeBinary = function() {
|
||||
proto.streams.DownlinkMeta.prototype.serializeBinary = function() {
|
||||
var writer = new jspb.BinaryWriter();
|
||||
proto.meta.DownlinkMeta.serializeBinaryToWriter(this, writer);
|
||||
proto.streams.DownlinkMeta.serializeBinaryToWriter(this, writer);
|
||||
return writer.getResultBuffer();
|
||||
};
|
||||
|
||||
@ -553,11 +553,11 @@ proto.meta.DownlinkMeta.prototype.serializeBinary = function() {
|
||||
/**
|
||||
* Serializes the given message to binary data (in protobuf wire
|
||||
* format), writing to the given BinaryWriter.
|
||||
* @param {!proto.meta.DownlinkMeta} message
|
||||
* @param {!proto.streams.DownlinkMeta} message
|
||||
* @param {!jspb.BinaryWriter} writer
|
||||
* @suppress {unusedLocalVariables} f is only used for nested messages
|
||||
*/
|
||||
proto.meta.DownlinkMeta.serializeBinaryToWriter = function(message, writer) {
|
||||
proto.streams.DownlinkMeta.serializeBinaryToWriter = function(message, writer) {
|
||||
var f = undefined;
|
||||
f = message.getDevEui();
|
||||
if (f.length > 0) {
|
||||
@ -623,16 +623,16 @@ proto.meta.DownlinkMeta.serializeBinaryToWriter = function(message, writer) {
|
||||
* optional string dev_eui = 1;
|
||||
* @return {string}
|
||||
*/
|
||||
proto.meta.DownlinkMeta.prototype.getDevEui = function() {
|
||||
proto.streams.DownlinkMeta.prototype.getDevEui = function() {
|
||||
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @param {string} value
|
||||
* @return {!proto.meta.DownlinkMeta} returns this
|
||||
* @return {!proto.streams.DownlinkMeta} returns this
|
||||
*/
|
||||
proto.meta.DownlinkMeta.prototype.setDevEui = function(value) {
|
||||
proto.streams.DownlinkMeta.prototype.setDevEui = function(value) {
|
||||
return jspb.Message.setProto3StringField(this, 1, value);
|
||||
};
|
||||
|
||||
@ -641,16 +641,16 @@ proto.meta.DownlinkMeta.prototype.setDevEui = function(value) {
|
||||
* optional string multicast_group_id = 2;
|
||||
* @return {string}
|
||||
*/
|
||||
proto.meta.DownlinkMeta.prototype.getMulticastGroupId = function() {
|
||||
proto.streams.DownlinkMeta.prototype.getMulticastGroupId = function() {
|
||||
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @param {string} value
|
||||
* @return {!proto.meta.DownlinkMeta} returns this
|
||||
* @return {!proto.streams.DownlinkMeta} returns this
|
||||
*/
|
||||
proto.meta.DownlinkMeta.prototype.setMulticastGroupId = function(value) {
|
||||
proto.streams.DownlinkMeta.prototype.setMulticastGroupId = function(value) {
|
||||
return jspb.Message.setProto3StringField(this, 2, value);
|
||||
};
|
||||
|
||||
@ -659,7 +659,7 @@ proto.meta.DownlinkMeta.prototype.setMulticastGroupId = function(value) {
|
||||
* optional gw.DownlinkTxInfo tx_info = 3;
|
||||
* @return {?proto.gw.DownlinkTxInfo}
|
||||
*/
|
||||
proto.meta.DownlinkMeta.prototype.getTxInfo = function() {
|
||||
proto.streams.DownlinkMeta.prototype.getTxInfo = function() {
|
||||
return /** @type{?proto.gw.DownlinkTxInfo} */ (
|
||||
jspb.Message.getWrapperField(this, gw_gw_pb.DownlinkTxInfo, 3));
|
||||
};
|
||||
@ -667,18 +667,18 @@ proto.meta.DownlinkMeta.prototype.getTxInfo = function() {
|
||||
|
||||
/**
|
||||
* @param {?proto.gw.DownlinkTxInfo|undefined} value
|
||||
* @return {!proto.meta.DownlinkMeta} returns this
|
||||
* @return {!proto.streams.DownlinkMeta} returns this
|
||||
*/
|
||||
proto.meta.DownlinkMeta.prototype.setTxInfo = function(value) {
|
||||
proto.streams.DownlinkMeta.prototype.setTxInfo = function(value) {
|
||||
return jspb.Message.setWrapperField(this, 3, value);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Clears the message field making it undefined.
|
||||
* @return {!proto.meta.DownlinkMeta} returns this
|
||||
* @return {!proto.streams.DownlinkMeta} returns this
|
||||
*/
|
||||
proto.meta.DownlinkMeta.prototype.clearTxInfo = function() {
|
||||
proto.streams.DownlinkMeta.prototype.clearTxInfo = function() {
|
||||
return this.setTxInfo(undefined);
|
||||
};
|
||||
|
||||
@ -687,7 +687,7 @@ proto.meta.DownlinkMeta.prototype.clearTxInfo = function() {
|
||||
* Returns whether this field is set.
|
||||
* @return {boolean}
|
||||
*/
|
||||
proto.meta.DownlinkMeta.prototype.hasTxInfo = function() {
|
||||
proto.streams.DownlinkMeta.prototype.hasTxInfo = function() {
|
||||
return jspb.Message.getField(this, 3) != null;
|
||||
};
|
||||
|
||||
@ -696,16 +696,16 @@ proto.meta.DownlinkMeta.prototype.hasTxInfo = function() {
|
||||
* optional uint32 phy_payload_byte_count = 4;
|
||||
* @return {number}
|
||||
*/
|
||||
proto.meta.DownlinkMeta.prototype.getPhyPayloadByteCount = function() {
|
||||
proto.streams.DownlinkMeta.prototype.getPhyPayloadByteCount = function() {
|
||||
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @param {number} value
|
||||
* @return {!proto.meta.DownlinkMeta} returns this
|
||||
* @return {!proto.streams.DownlinkMeta} returns this
|
||||
*/
|
||||
proto.meta.DownlinkMeta.prototype.setPhyPayloadByteCount = function(value) {
|
||||
proto.streams.DownlinkMeta.prototype.setPhyPayloadByteCount = function(value) {
|
||||
return jspb.Message.setProto3IntField(this, 4, value);
|
||||
};
|
||||
|
||||
@ -714,16 +714,16 @@ proto.meta.DownlinkMeta.prototype.setPhyPayloadByteCount = function(value) {
|
||||
* optional uint32 mac_command_byte_count = 5;
|
||||
* @return {number}
|
||||
*/
|
||||
proto.meta.DownlinkMeta.prototype.getMacCommandByteCount = function() {
|
||||
proto.streams.DownlinkMeta.prototype.getMacCommandByteCount = function() {
|
||||
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @param {number} value
|
||||
* @return {!proto.meta.DownlinkMeta} returns this
|
||||
* @return {!proto.streams.DownlinkMeta} returns this
|
||||
*/
|
||||
proto.meta.DownlinkMeta.prototype.setMacCommandByteCount = function(value) {
|
||||
proto.streams.DownlinkMeta.prototype.setMacCommandByteCount = function(value) {
|
||||
return jspb.Message.setProto3IntField(this, 5, value);
|
||||
};
|
||||
|
||||
@ -732,16 +732,16 @@ proto.meta.DownlinkMeta.prototype.setMacCommandByteCount = function(value) {
|
||||
* optional uint32 application_payload_byte_count = 6;
|
||||
* @return {number}
|
||||
*/
|
||||
proto.meta.DownlinkMeta.prototype.getApplicationPayloadByteCount = function() {
|
||||
proto.streams.DownlinkMeta.prototype.getApplicationPayloadByteCount = function() {
|
||||
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0));
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @param {number} value
|
||||
* @return {!proto.meta.DownlinkMeta} returns this
|
||||
* @return {!proto.streams.DownlinkMeta} returns this
|
||||
*/
|
||||
proto.meta.DownlinkMeta.prototype.setApplicationPayloadByteCount = function(value) {
|
||||
proto.streams.DownlinkMeta.prototype.setApplicationPayloadByteCount = function(value) {
|
||||
return jspb.Message.setProto3IntField(this, 6, value);
|
||||
};
|
||||
|
||||
@ -750,16 +750,16 @@ proto.meta.DownlinkMeta.prototype.setApplicationPayloadByteCount = function(valu
|
||||
* optional common.MType message_type = 7;
|
||||
* @return {!proto.common.MType}
|
||||
*/
|
||||
proto.meta.DownlinkMeta.prototype.getMessageType = function() {
|
||||
proto.streams.DownlinkMeta.prototype.getMessageType = function() {
|
||||
return /** @type {!proto.common.MType} */ (jspb.Message.getFieldWithDefault(this, 7, 0));
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @param {!proto.common.MType} value
|
||||
* @return {!proto.meta.DownlinkMeta} returns this
|
||||
* @return {!proto.streams.DownlinkMeta} returns this
|
||||
*/
|
||||
proto.meta.DownlinkMeta.prototype.setMessageType = function(value) {
|
||||
proto.streams.DownlinkMeta.prototype.setMessageType = function(value) {
|
||||
return jspb.Message.setProto3EnumField(this, 7, value);
|
||||
};
|
||||
|
||||
@ -768,18 +768,18 @@ proto.meta.DownlinkMeta.prototype.setMessageType = function(value) {
|
||||
* optional string gateway_id = 8;
|
||||
* @return {string}
|
||||
*/
|
||||
proto.meta.DownlinkMeta.prototype.getGatewayId = function() {
|
||||
proto.streams.DownlinkMeta.prototype.getGatewayId = function() {
|
||||
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @param {string} value
|
||||
* @return {!proto.meta.DownlinkMeta} returns this
|
||||
* @return {!proto.streams.DownlinkMeta} returns this
|
||||
*/
|
||||
proto.meta.DownlinkMeta.prototype.setGatewayId = function(value) {
|
||||
proto.streams.DownlinkMeta.prototype.setGatewayId = function(value) {
|
||||
return jspb.Message.setProto3StringField(this, 8, value);
|
||||
};
|
||||
|
||||
|
||||
goog.object.extend(exports, proto.meta);
|
||||
goog.object.extend(exports, proto.streams);
|
||||
|
Reference in New Issue
Block a user