mirror of
https://github.com/chirpstack/chirpstack.git
synced 2025-02-20 17:12:48 +00:00
api: Refactor api/frame_log.proto into streams/frames.proto.
This commit is contained in:
parent
ec0ecf2044
commit
a4da4ab784
2
api/csharp/Chirpstack.Api.csproj
vendored
2
api/csharp/Chirpstack.Api.csproj
vendored
@ -17,12 +17,12 @@
|
||||
<Protobuf Include="../proto/api/device_profile_template.proto" ProtoRoot="../proto/" OutputDir="Chirpstack/" CompileOutputs="false" AdditionalImportDirs="/googleproto" />
|
||||
<Protobuf Include="../proto/api/device.proto" ProtoRoot="../proto/" OutputDir="Chirpstack/" CompileOutputs="false" AdditionalImportDirs="/googleproto" />
|
||||
<Protobuf Include="../proto/api/gateway.proto" ProtoRoot="../proto/" OutputDir="Chirpstack/" CompileOutputs="false" AdditionalImportDirs="/googleproto" />
|
||||
<Protobuf Include="../proto/api/frame_log.proto" ProtoRoot="../proto/" OutputDir="Chirpstack/" CompileOutputs="false" AdditionalImportDirs="/googleproto" />
|
||||
<Protobuf Include="../proto/api/multicast_group.proto" ProtoRoot="../proto/" OutputDir="Chirpstack/" CompileOutputs="false" AdditionalImportDirs="/googleproto" />
|
||||
<Protobuf Include="../proto/api/request_log.proto" ProtoRoot="../proto/" OutputDir="Chirpstack/" CompileOutputs="false" AdditionalImportDirs="/googleproto" />
|
||||
<Protobuf Include="../proto/api/relay.proto" ProtoRoot="../proto/" OutputDir="Chirpstack/" CompileOutputs="false" AdditionalImportDirs="/googleproto" />
|
||||
<Protobuf Include="../proto/integration/integration.proto" ProtoRoot="../proto/" OutputDir="Chirpstack/" CompileOutputs="false" AdditionalImportDirs="/googleproto" />
|
||||
<Protobuf Include="../proto/streams/meta.proto" ProtoRoot="../proto/" OutputDir="Chirpstack/" CompileOutputs="false" AdditionalImportDirs="/googleproto" />
|
||||
<Protobuf Include="../proto/streams/frames.proto" ProtoRoot="../proto/" OutputDir="Chirpstack/" CompileOutputs="false" AdditionalImportDirs="/googleproto" />
|
||||
<Protobuf Include="/googleproto/google/api/*.proto" ProtoRoot="/googleproto" OutputDir="Chirpstack/" CompileOutputs="false" />
|
||||
</ItemGroup>
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
// <auto-generated>
|
||||
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
// source: api/frame_log.proto
|
||||
// source: streams/frames.proto
|
||||
// </auto-generated>
|
||||
#pragma warning disable 1591, 0612, 3021, 8981
|
||||
#region Designer generated code
|
||||
@ -9,43 +9,44 @@ using pb = global::Google.Protobuf;
|
||||
using pbc = global::Google.Protobuf.Collections;
|
||||
using pbr = global::Google.Protobuf.Reflection;
|
||||
using scg = global::System.Collections.Generic;
|
||||
namespace Chirpstack.Api {
|
||||
namespace Chirpstack.Streams {
|
||||
|
||||
/// <summary>Holder for reflection information generated from api/frame_log.proto</summary>
|
||||
public static partial class FrameLogReflection {
|
||||
/// <summary>Holder for reflection information generated from streams/frames.proto</summary>
|
||||
public static partial class FramesReflection {
|
||||
|
||||
#region Descriptor
|
||||
/// <summary>File descriptor for api/frame_log.proto</summary>
|
||||
/// <summary>File descriptor for streams/frames.proto</summary>
|
||||
public static pbr::FileDescriptor Descriptor {
|
||||
get { return descriptor; }
|
||||
}
|
||||
private static pbr::FileDescriptor descriptor;
|
||||
|
||||
static FrameLogReflection() {
|
||||
static FramesReflection() {
|
||||
byte[] descriptorData = global::System.Convert.FromBase64String(
|
||||
string.Concat(
|
||||
"ChNhcGkvZnJhbWVfbG9nLnByb3RvEgNhcGkaH2dvb2dsZS9wcm90b2J1Zi90",
|
||||
"aW1lc3RhbXAucHJvdG8aE2NvbW1vbi9jb21tb24ucHJvdG8aC2d3L2d3LnBy",
|
||||
"b3RvIpACCg5VcGxpbmtGcmFtZUxvZxITCgtwaHlfcGF5bG9hZBgBIAEoDBIh",
|
||||
"Cgd0eF9pbmZvGAIgASgLMhAuZ3cuVXBsaW5rVHhJbmZvEiEKB3J4X2luZm8Y",
|
||||
"AyADKAsyEC5ndy5VcGxpbmtSeEluZm8SHQoGbV90eXBlGAQgASgOMg0uY29t",
|
||||
"bW9uLk1UeXBlEhAKCGRldl9hZGRyGAUgASgJEg8KB2Rldl9ldWkYBiABKAkS",
|
||||
"KAoEdGltZRgHIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5UaW1lc3RhbXASGAoQ",
|
||||
"cGxhaW50ZXh0X2Zfb3B0cxgIIAEoCBIdChVwbGFpbnRleHRfZnJtX3BheWxv",
|
||||
"YWQYCSABKAgimgIKEERvd25saW5rRnJhbWVMb2cSKAoEdGltZRgBIAEoCzIa",
|
||||
"Lmdvb2dsZS5wcm90b2J1Zi5UaW1lc3RhbXASEwoLcGh5X3BheWxvYWQYAiAB",
|
||||
"KAwSIwoHdHhfaW5mbxgDIAEoCzISLmd3LkRvd25saW5rVHhJbmZvEhMKC2Rv",
|
||||
"d25saW5rX2lkGAQgASgNEhIKCmdhdGV3YXlfaWQYBSABKAkSHQoGbV90eXBl",
|
||||
"GAYgASgOMg0uY29tbW9uLk1UeXBlEhAKCGRldl9hZGRyGAcgASgJEg8KB2Rl",
|
||||
"dl9ldWkYCCABKAkSGAoQcGxhaW50ZXh0X2Zfb3B0cxgJIAEoCBIdChVwbGFp",
|
||||
"bnRleHRfZnJtX3BheWxvYWQYCiABKAhCZQoRaW8uY2hpcnBzdGFjay5hcGlC",
|
||||
"DUZyYW1lTG9nUHJvdG9QAVouZ2l0aHViLmNvbS9jaGlycHN0YWNrL2NoaXJw",
|
||||
"c3RhY2svYXBpL2dvL3Y0L2FwaaoCDkNoaXJwc3RhY2suQXBpYgZwcm90bzM="));
|
||||
"ChRzdHJlYW1zL2ZyYW1lcy5wcm90bxIHc3RyZWFtcxofZ29vZ2xlL3Byb3Rv",
|
||||
"YnVmL3RpbWVzdGFtcC5wcm90bxoTY29tbW9uL2NvbW1vbi5wcm90bxoLZ3cv",
|
||||
"Z3cucHJvdG8ikAIKDlVwbGlua0ZyYW1lTG9nEhMKC3BoeV9wYXlsb2FkGAEg",
|
||||
"ASgMEiEKB3R4X2luZm8YAiABKAsyEC5ndy5VcGxpbmtUeEluZm8SIQoHcnhf",
|
||||
"aW5mbxgDIAMoCzIQLmd3LlVwbGlua1J4SW5mbxIdCgZtX3R5cGUYBCABKA4y",
|
||||
"DS5jb21tb24uTVR5cGUSEAoIZGV2X2FkZHIYBSABKAkSDwoHZGV2X2V1aRgG",
|
||||
"IAEoCRIoCgR0aW1lGAcgASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFt",
|
||||
"cBIYChBwbGFpbnRleHRfZl9vcHRzGAggASgIEh0KFXBsYWludGV4dF9mcm1f",
|
||||
"cGF5bG9hZBgJIAEoCCKaAgoQRG93bmxpbmtGcmFtZUxvZxIoCgR0aW1lGAEg",
|
||||
"ASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcBITCgtwaHlfcGF5bG9h",
|
||||
"ZBgCIAEoDBIjCgd0eF9pbmZvGAMgASgLMhIuZ3cuRG93bmxpbmtUeEluZm8S",
|
||||
"EwoLZG93bmxpbmtfaWQYBCABKA0SEgoKZ2F0ZXdheV9pZBgFIAEoCRIdCgZt",
|
||||
"X3R5cGUYBiABKA4yDS5jb21tb24uTVR5cGUSEAoIZGV2X2FkZHIYByABKAkS",
|
||||
"DwoHZGV2X2V1aRgIIAEoCRIYChBwbGFpbnRleHRfZl9vcHRzGAkgASgIEh0K",
|
||||
"FXBsYWludGV4dF9mcm1fcGF5bG9hZBgKIAEoCEJzChlpby5jaGlycHN0YWNr",
|
||||
"LmFwaS5zdHJlYW1zQgtGcmFtZXNQcm90b1ABWjJnaXRodWIuY29tL2NoaXJw",
|
||||
"c3RhY2svY2hpcnBzdGFjay9hcGkvZ28vdjQvc3RyZWFtc6oCEkNoaXJwc3Rh",
|
||||
"Y2suU3RyZWFtc2IGcHJvdG8z"));
|
||||
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
|
||||
new pbr::FileDescriptor[] { global::Google.Protobuf.WellKnownTypes.TimestampReflection.Descriptor, global::Chirpstack.Common.CommonReflection.Descriptor, global::Chirpstack.Gateway.GwReflection.Descriptor, },
|
||||
new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
|
||||
new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.UplinkFrameLog), global::Chirpstack.Api.UplinkFrameLog.Parser, new[]{ "PhyPayload", "TxInfo", "RxInfo", "MType", "DevAddr", "DevEui", "Time", "PlaintextFOpts", "PlaintextFrmPayload" }, null, null, null, null),
|
||||
new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.DownlinkFrameLog), global::Chirpstack.Api.DownlinkFrameLog.Parser, new[]{ "Time", "PhyPayload", "TxInfo", "DownlinkId", "GatewayId", "MType", "DevAddr", "DevEui", "PlaintextFOpts", "PlaintextFrmPayload" }, null, null, null, null)
|
||||
new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Streams.UplinkFrameLog), global::Chirpstack.Streams.UplinkFrameLog.Parser, new[]{ "PhyPayload", "TxInfo", "RxInfo", "MType", "DevAddr", "DevEui", "Time", "PlaintextFOpts", "PlaintextFrmPayload" }, null, null, null, null),
|
||||
new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Streams.DownlinkFrameLog), global::Chirpstack.Streams.DownlinkFrameLog.Parser, new[]{ "Time", "PhyPayload", "TxInfo", "DownlinkId", "GatewayId", "MType", "DevAddr", "DevEui", "PlaintextFOpts", "PlaintextFrmPayload" }, null, null, null, null)
|
||||
}));
|
||||
}
|
||||
#endregion
|
||||
@ -66,7 +67,7 @@ namespace Chirpstack.Api {
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public static pbr::MessageDescriptor Descriptor {
|
||||
get { return global::Chirpstack.Api.FrameLogReflection.Descriptor.MessageTypes[0]; }
|
||||
get { return global::Chirpstack.Streams.FramesReflection.Descriptor.MessageTypes[0]; }
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
@ -585,7 +586,7 @@ namespace Chirpstack.Api {
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public static pbr::MessageDescriptor Descriptor {
|
||||
get { return global::Chirpstack.Api.FrameLogReflection.Descriptor.MessageTypes[1]; }
|
||||
get { return global::Chirpstack.Streams.FramesReflection.Descriptor.MessageTypes[1]; }
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
@ -1,6 +1,6 @@
|
||||
// <auto-generated>
|
||||
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
// source: meta/meta.proto
|
||||
// source: streams/meta.proto
|
||||
// </auto-generated>
|
||||
#pragma warning disable 1591, 0612, 3021, 8981
|
||||
#region Designer generated code
|
||||
@ -9,13 +9,13 @@ using pb = global::Google.Protobuf;
|
||||
using pbc = global::Google.Protobuf.Collections;
|
||||
using pbr = global::Google.Protobuf.Reflection;
|
||||
using scg = global::System.Collections.Generic;
|
||||
namespace Chirpstack.Meta {
|
||||
namespace Chirpstack.Streams {
|
||||
|
||||
/// <summary>Holder for reflection information generated from meta/meta.proto</summary>
|
||||
/// <summary>Holder for reflection information generated from streams/meta.proto</summary>
|
||||
public static partial class MetaReflection {
|
||||
|
||||
#region Descriptor
|
||||
/// <summary>File descriptor for meta/meta.proto</summary>
|
||||
/// <summary>File descriptor for streams/meta.proto</summary>
|
||||
public static pbr::FileDescriptor Descriptor {
|
||||
get { return descriptor; }
|
||||
}
|
||||
@ -24,26 +24,27 @@ namespace Chirpstack.Meta {
|
||||
static MetaReflection() {
|
||||
byte[] descriptorData = global::System.Convert.FromBase64String(
|
||||
string.Concat(
|
||||
"Cg9tZXRhL21ldGEucHJvdG8SBG1ldGEaE2NvbW1vbi9jb21tb24ucHJvdG8a",
|
||||
"C2d3L2d3LnByb3RvIvABCgpVcGxpbmtNZXRhEg8KB2Rldl9ldWkYASABKAkS",
|
||||
"IQoHdHhfaW5mbxgCIAEoCzIQLmd3LlVwbGlua1R4SW5mbxIhCgdyeF9pbmZv",
|
||||
"GAMgAygLMhAuZ3cuVXBsaW5rUnhJbmZvEh4KFnBoeV9wYXlsb2FkX2J5dGVf",
|
||||
"Y291bnQYBCABKA0SHgoWbWFjX2NvbW1hbmRfYnl0ZV9jb3VudBgFIAEoDRIm",
|
||||
"Ch5hcHBsaWNhdGlvbl9wYXlsb2FkX2J5dGVfY291bnQYBiABKA0SIwoMbWVz",
|
||||
"c2FnZV90eXBlGAcgASgOMg0uY29tbW9uLk1UeXBlIoECCgxEb3dubGlua01l",
|
||||
"dGESDwoHZGV2X2V1aRgBIAEoCRIaChJtdWx0aWNhc3RfZ3JvdXBfaWQYAiAB",
|
||||
"KAkSIwoHdHhfaW5mbxgDIAEoCzISLmd3LkRvd25saW5rVHhJbmZvEh4KFnBo",
|
||||
"eV9wYXlsb2FkX2J5dGVfY291bnQYBCABKA0SHgoWbWFjX2NvbW1hbmRfYnl0",
|
||||
"ZV9jb3VudBgFIAEoDRImCh5hcHBsaWNhdGlvbl9wYXlsb2FkX2J5dGVfY291",
|
||||
"bnQYBiABKA0SIwoMbWVzc2FnZV90eXBlGAcgASgOMg0uY29tbW9uLk1UeXBl",
|
||||
"EhIKCmdhdGV3YXlfaWQYCCABKAlCaAoWaW8uY2hpcnBzdGFjay5hcGkubWV0",
|
||||
"YUIJTWV0YVByb3RvUAFaL2dpdGh1Yi5jb20vY2hpcnBzdGFjay9jaGlycHN0",
|
||||
"YWNrL2FwaS9nby92NC9tZXRhqgIPQ2hpcnBzdGFjay5NZXRhYgZwcm90bzM="));
|
||||
"ChJzdHJlYW1zL21ldGEucHJvdG8SB3N0cmVhbXMaE2NvbW1vbi9jb21tb24u",
|
||||
"cHJvdG8aC2d3L2d3LnByb3RvIvABCgpVcGxpbmtNZXRhEg8KB2Rldl9ldWkY",
|
||||
"ASABKAkSIQoHdHhfaW5mbxgCIAEoCzIQLmd3LlVwbGlua1R4SW5mbxIhCgdy",
|
||||
"eF9pbmZvGAMgAygLMhAuZ3cuVXBsaW5rUnhJbmZvEh4KFnBoeV9wYXlsb2Fk",
|
||||
"X2J5dGVfY291bnQYBCABKA0SHgoWbWFjX2NvbW1hbmRfYnl0ZV9jb3VudBgF",
|
||||
"IAEoDRImCh5hcHBsaWNhdGlvbl9wYXlsb2FkX2J5dGVfY291bnQYBiABKA0S",
|
||||
"IwoMbWVzc2FnZV90eXBlGAcgASgOMg0uY29tbW9uLk1UeXBlIoECCgxEb3du",
|
||||
"bGlua01ldGESDwoHZGV2X2V1aRgBIAEoCRIaChJtdWx0aWNhc3RfZ3JvdXBf",
|
||||
"aWQYAiABKAkSIwoHdHhfaW5mbxgDIAEoCzISLmd3LkRvd25saW5rVHhJbmZv",
|
||||
"Eh4KFnBoeV9wYXlsb2FkX2J5dGVfY291bnQYBCABKA0SHgoWbWFjX2NvbW1h",
|
||||
"bmRfYnl0ZV9jb3VudBgFIAEoDRImCh5hcHBsaWNhdGlvbl9wYXlsb2FkX2J5",
|
||||
"dGVfY291bnQYBiABKA0SIwoMbWVzc2FnZV90eXBlGAcgASgOMg0uY29tbW9u",
|
||||
"Lk1UeXBlEhIKCmdhdGV3YXlfaWQYCCABKAlCcQoZaW8uY2hpcnBzdGFjay5h",
|
||||
"cGkuc3RyZWFtc0IJTWV0YVByb3RvUAFaMmdpdGh1Yi5jb20vY2hpcnBzdGFj",
|
||||
"ay9jaGlycHN0YWNrL2FwaS9nby92NC9zdHJlYW1zqgISQ2hpcnBzdGFjay5T",
|
||||
"dHJlYW1zYgZwcm90bzM="));
|
||||
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
|
||||
new pbr::FileDescriptor[] { global::Chirpstack.Common.CommonReflection.Descriptor, global::Chirpstack.Gateway.GwReflection.Descriptor, },
|
||||
new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
|
||||
new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Meta.UplinkMeta), global::Chirpstack.Meta.UplinkMeta.Parser, new[]{ "DevEui", "TxInfo", "RxInfo", "PhyPayloadByteCount", "MacCommandByteCount", "ApplicationPayloadByteCount", "MessageType" }, null, null, null, null),
|
||||
new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Meta.DownlinkMeta), global::Chirpstack.Meta.DownlinkMeta.Parser, new[]{ "DevEui", "MulticastGroupId", "TxInfo", "PhyPayloadByteCount", "MacCommandByteCount", "ApplicationPayloadByteCount", "MessageType", "GatewayId" }, null, null, null, null)
|
||||
new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Streams.UplinkMeta), global::Chirpstack.Streams.UplinkMeta.Parser, new[]{ "DevEui", "TxInfo", "RxInfo", "PhyPayloadByteCount", "MacCommandByteCount", "ApplicationPayloadByteCount", "MessageType" }, null, null, null, null),
|
||||
new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Streams.DownlinkMeta), global::Chirpstack.Streams.DownlinkMeta.Parser, new[]{ "DevEui", "MulticastGroupId", "TxInfo", "PhyPayloadByteCount", "MacCommandByteCount", "ApplicationPayloadByteCount", "MessageType", "GatewayId" }, null, null, null, null)
|
||||
}));
|
||||
}
|
||||
#endregion
|
||||
@ -64,7 +65,7 @@ namespace Chirpstack.Meta {
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public static pbr::MessageDescriptor Descriptor {
|
||||
get { return global::Chirpstack.Meta.MetaReflection.Descriptor.MessageTypes[0]; }
|
||||
get { return global::Chirpstack.Streams.MetaReflection.Descriptor.MessageTypes[0]; }
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
@ -494,7 +495,7 @@ namespace Chirpstack.Meta {
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public static pbr::MessageDescriptor Descriptor {
|
||||
get { return global::Chirpstack.Meta.MetaReflection.Descriptor.MessageTypes[1]; }
|
||||
get { return global::Chirpstack.Streams.MetaReflection.Descriptor.MessageTypes[1]; }
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
2
api/go/Makefile
vendored
2
api/go/Makefile
vendored
@ -24,7 +24,6 @@ api:
|
||||
protoc ${PROTOC_ARGS} api/device_profile_template.proto
|
||||
protoc ${PROTOC_ARGS} api/device.proto
|
||||
protoc ${PROTOC_ARGS} api/gateway.proto
|
||||
protoc ${PROTOC_ARGS} api/frame_log.proto
|
||||
protoc ${PROTOC_ARGS} api/multicast_group.proto
|
||||
protoc ${PROTOC_ARGS} api/request_log.proto
|
||||
protoc ${PROTOC_ARGS} api/relay.proto
|
||||
@ -34,3 +33,4 @@ integration:
|
||||
|
||||
streams:
|
||||
protoc ${PROTOC_ARGS} streams/meta.proto
|
||||
protoc ${PROTOC_ARGS} streams/frames.proto
|
||||
|
@ -2,9 +2,9 @@
|
||||
// versions:
|
||||
// protoc-gen-go v1.31.0
|
||||
// protoc v3.21.9
|
||||
// source: api/frame_log.proto
|
||||
// source: streams/frames.proto
|
||||
|
||||
package api
|
||||
package streams
|
||||
|
||||
import (
|
||||
common "github.com/chirpstack/chirpstack/api/go/v4/common"
|
||||
@ -51,7 +51,7 @@ type UplinkFrameLog struct {
|
||||
func (x *UplinkFrameLog) Reset() {
|
||||
*x = UplinkFrameLog{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_api_frame_log_proto_msgTypes[0]
|
||||
mi := &file_streams_frames_proto_msgTypes[0]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
@ -64,7 +64,7 @@ func (x *UplinkFrameLog) String() string {
|
||||
func (*UplinkFrameLog) ProtoMessage() {}
|
||||
|
||||
func (x *UplinkFrameLog) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_api_frame_log_proto_msgTypes[0]
|
||||
mi := &file_streams_frames_proto_msgTypes[0]
|
||||
if protoimpl.UnsafeEnabled && x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
@ -77,7 +77,7 @@ func (x *UplinkFrameLog) ProtoReflect() protoreflect.Message {
|
||||
|
||||
// Deprecated: Use UplinkFrameLog.ProtoReflect.Descriptor instead.
|
||||
func (*UplinkFrameLog) Descriptor() ([]byte, []int) {
|
||||
return file_api_frame_log_proto_rawDescGZIP(), []int{0}
|
||||
return file_streams_frames_proto_rawDescGZIP(), []int{0}
|
||||
}
|
||||
|
||||
func (x *UplinkFrameLog) GetPhyPayload() []byte {
|
||||
@ -173,7 +173,7 @@ type DownlinkFrameLog struct {
|
||||
func (x *DownlinkFrameLog) Reset() {
|
||||
*x = DownlinkFrameLog{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_api_frame_log_proto_msgTypes[1]
|
||||
mi := &file_streams_frames_proto_msgTypes[1]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
@ -186,7 +186,7 @@ func (x *DownlinkFrameLog) String() string {
|
||||
func (*DownlinkFrameLog) ProtoMessage() {}
|
||||
|
||||
func (x *DownlinkFrameLog) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_api_frame_log_proto_msgTypes[1]
|
||||
mi := &file_streams_frames_proto_msgTypes[1]
|
||||
if protoimpl.UnsafeEnabled && x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
@ -199,7 +199,7 @@ func (x *DownlinkFrameLog) ProtoReflect() protoreflect.Message {
|
||||
|
||||
// Deprecated: Use DownlinkFrameLog.ProtoReflect.Descriptor instead.
|
||||
func (*DownlinkFrameLog) Descriptor() ([]byte, []int) {
|
||||
return file_api_frame_log_proto_rawDescGZIP(), []int{1}
|
||||
return file_streams_frames_proto_rawDescGZIP(), []int{1}
|
||||
}
|
||||
|
||||
func (x *DownlinkFrameLog) GetTime() *timestamppb.Timestamp {
|
||||
@ -272,102 +272,103 @@ func (x *DownlinkFrameLog) GetPlaintextFrmPayload() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
var File_api_frame_log_proto protoreflect.FileDescriptor
|
||||
var File_streams_frames_proto protoreflect.FileDescriptor
|
||||
|
||||
var file_api_frame_log_proto_rawDesc = []byte{
|
||||
0x0a, 0x13, 0x61, 0x70, 0x69, 0x2f, 0x66, 0x72, 0x61, 0x6d, 0x65, 0x5f, 0x6c, 0x6f, 0x67, 0x2e,
|
||||
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x03, 0x61, 0x70, 0x69, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67,
|
||||
0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65,
|
||||
0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x13, 0x63, 0x6f, 0x6d,
|
||||
0x6d, 0x6f, 0x6e, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
|
||||
0x1a, 0x0b, 0x67, 0x77, 0x2f, 0x67, 0x77, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xef, 0x02,
|
||||
0x0a, 0x0e, 0x55, 0x70, 0x6c, 0x69, 0x6e, 0x6b, 0x46, 0x72, 0x61, 0x6d, 0x65, 0x4c, 0x6f, 0x67,
|
||||
0x12, 0x1f, 0x0a, 0x0b, 0x70, 0x68, 0x79, 0x5f, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x18,
|
||||
0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0a, 0x70, 0x68, 0x79, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61,
|
||||
0x64, 0x12, 0x29, 0x0a, 0x07, 0x74, 0x78, 0x5f, 0x69, 0x6e, 0x66, 0x6f, 0x18, 0x02, 0x20, 0x01,
|
||||
0x28, 0x0b, 0x32, 0x10, 0x2e, 0x67, 0x77, 0x2e, 0x55, 0x70, 0x6c, 0x69, 0x6e, 0x6b, 0x54, 0x78,
|
||||
0x49, 0x6e, 0x66, 0x6f, 0x52, 0x06, 0x74, 0x78, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x29, 0x0a, 0x07,
|
||||
0x72, 0x78, 0x5f, 0x69, 0x6e, 0x66, 0x6f, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x10, 0x2e,
|
||||
0x67, 0x77, 0x2e, 0x55, 0x70, 0x6c, 0x69, 0x6e, 0x6b, 0x52, 0x78, 0x49, 0x6e, 0x66, 0x6f, 0x52,
|
||||
0x06, 0x72, 0x78, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x24, 0x0a, 0x06, 0x6d, 0x5f, 0x74, 0x79, 0x70,
|
||||
0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x0d, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e,
|
||||
var file_streams_frames_proto_rawDesc = []byte{
|
||||
0x0a, 0x14, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x73, 0x2f, 0x66, 0x72, 0x61, 0x6d, 0x65, 0x73,
|
||||
0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x07, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x73, 0x1a,
|
||||
0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66,
|
||||
0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
|
||||
0x1a, 0x13, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e,
|
||||
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x0b, 0x67, 0x77, 0x2f, 0x67, 0x77, 0x2e, 0x70, 0x72, 0x6f,
|
||||
0x74, 0x6f, 0x22, 0xef, 0x02, 0x0a, 0x0e, 0x55, 0x70, 0x6c, 0x69, 0x6e, 0x6b, 0x46, 0x72, 0x61,
|
||||
0x6d, 0x65, 0x4c, 0x6f, 0x67, 0x12, 0x1f, 0x0a, 0x0b, 0x70, 0x68, 0x79, 0x5f, 0x70, 0x61, 0x79,
|
||||
0x6c, 0x6f, 0x61, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0a, 0x70, 0x68, 0x79, 0x50,
|
||||
0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x12, 0x29, 0x0a, 0x07, 0x74, 0x78, 0x5f, 0x69, 0x6e, 0x66,
|
||||
0x6f, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x67, 0x77, 0x2e, 0x55, 0x70, 0x6c,
|
||||
0x69, 0x6e, 0x6b, 0x54, 0x78, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x06, 0x74, 0x78, 0x49, 0x6e, 0x66,
|
||||
0x6f, 0x12, 0x29, 0x0a, 0x07, 0x72, 0x78, 0x5f, 0x69, 0x6e, 0x66, 0x6f, 0x18, 0x03, 0x20, 0x03,
|
||||
0x28, 0x0b, 0x32, 0x10, 0x2e, 0x67, 0x77, 0x2e, 0x55, 0x70, 0x6c, 0x69, 0x6e, 0x6b, 0x52, 0x78,
|
||||
0x49, 0x6e, 0x66, 0x6f, 0x52, 0x06, 0x72, 0x78, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x24, 0x0a, 0x06,
|
||||
0x6d, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x0d, 0x2e, 0x63,
|
||||
0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x4d, 0x54, 0x79, 0x70, 0x65, 0x52, 0x05, 0x6d, 0x54, 0x79,
|
||||
0x70, 0x65, 0x12, 0x19, 0x0a, 0x08, 0x64, 0x65, 0x76, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x18, 0x05,
|
||||
0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x64, 0x65, 0x76, 0x41, 0x64, 0x64, 0x72, 0x12, 0x17, 0x0a,
|
||||
0x07, 0x64, 0x65, 0x76, 0x5f, 0x65, 0x75, 0x69, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06,
|
||||
0x64, 0x65, 0x76, 0x45, 0x75, 0x69, 0x12, 0x2e, 0x0a, 0x04, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x07,
|
||||
0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72,
|
||||
0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70,
|
||||
0x52, 0x04, 0x74, 0x69, 0x6d, 0x65, 0x12, 0x28, 0x0a, 0x10, 0x70, 0x6c, 0x61, 0x69, 0x6e, 0x74,
|
||||
0x65, 0x78, 0x74, 0x5f, 0x66, 0x5f, 0x6f, 0x70, 0x74, 0x73, 0x18, 0x08, 0x20, 0x01, 0x28, 0x08,
|
||||
0x52, 0x0e, 0x70, 0x6c, 0x61, 0x69, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x46, 0x4f, 0x70, 0x74, 0x73,
|
||||
0x12, 0x32, 0x0a, 0x15, 0x70, 0x6c, 0x61, 0x69, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x5f, 0x66, 0x72,
|
||||
0x6d, 0x5f, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x18, 0x09, 0x20, 0x01, 0x28, 0x08, 0x52,
|
||||
0x13, 0x70, 0x6c, 0x61, 0x69, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x46, 0x72, 0x6d, 0x50, 0x61, 0x79,
|
||||
0x6c, 0x6f, 0x61, 0x64, 0x22, 0x88, 0x03, 0x0a, 0x10, 0x44, 0x6f, 0x77, 0x6e, 0x6c, 0x69, 0x6e,
|
||||
0x6b, 0x46, 0x72, 0x61, 0x6d, 0x65, 0x4c, 0x6f, 0x67, 0x12, 0x2e, 0x0a, 0x04, 0x74, 0x69, 0x6d,
|
||||
0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
|
||||
0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74,
|
||||
0x61, 0x6d, 0x70, 0x52, 0x04, 0x74, 0x69, 0x6d, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x70, 0x68, 0x79,
|
||||
0x5f, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0a,
|
||||
0x70, 0x68, 0x79, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x12, 0x2b, 0x0a, 0x07, 0x74, 0x78,
|
||||
0x5f, 0x69, 0x6e, 0x66, 0x6f, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x67, 0x77,
|
||||
0x2e, 0x44, 0x6f, 0x77, 0x6e, 0x6c, 0x69, 0x6e, 0x6b, 0x54, 0x78, 0x49, 0x6e, 0x66, 0x6f, 0x52,
|
||||
0x06, 0x74, 0x78, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x1f, 0x0a, 0x0b, 0x64, 0x6f, 0x77, 0x6e, 0x6c,
|
||||
0x69, 0x6e, 0x6b, 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0a, 0x64, 0x6f,
|
||||
0x77, 0x6e, 0x6c, 0x69, 0x6e, 0x6b, 0x49, 0x64, 0x12, 0x1d, 0x0a, 0x0a, 0x67, 0x61, 0x74, 0x65,
|
||||
0x77, 0x61, 0x79, 0x5f, 0x69, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x67, 0x61,
|
||||
0x74, 0x65, 0x77, 0x61, 0x79, 0x49, 0x64, 0x12, 0x24, 0x0a, 0x06, 0x6d, 0x5f, 0x74, 0x79, 0x70,
|
||||
0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x0d, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e,
|
||||
0x2e, 0x4d, 0x54, 0x79, 0x70, 0x65, 0x52, 0x05, 0x6d, 0x54, 0x79, 0x70, 0x65, 0x12, 0x19, 0x0a,
|
||||
0x08, 0x64, 0x65, 0x76, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52,
|
||||
0x08, 0x64, 0x65, 0x76, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52,
|
||||
0x07, 0x64, 0x65, 0x76, 0x41, 0x64, 0x64, 0x72, 0x12, 0x17, 0x0a, 0x07, 0x64, 0x65, 0x76, 0x5f,
|
||||
0x65, 0x75, 0x69, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x64, 0x65, 0x76, 0x45, 0x75,
|
||||
0x69, 0x12, 0x2e, 0x0a, 0x04, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32,
|
||||
0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75,
|
||||
0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x04, 0x74, 0x69, 0x6d,
|
||||
0x65, 0x12, 0x28, 0x0a, 0x10, 0x70, 0x6c, 0x61, 0x69, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x5f, 0x66,
|
||||
0x5f, 0x6f, 0x70, 0x74, 0x73, 0x18, 0x08, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0e, 0x70, 0x6c, 0x61,
|
||||
0x65, 0x75, 0x69, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x64, 0x65, 0x76, 0x45, 0x75,
|
||||
0x69, 0x12, 0x28, 0x0a, 0x10, 0x70, 0x6c, 0x61, 0x69, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x5f, 0x66,
|
||||
0x5f, 0x6f, 0x70, 0x74, 0x73, 0x18, 0x09, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0e, 0x70, 0x6c, 0x61,
|
||||
0x69, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x46, 0x4f, 0x70, 0x74, 0x73, 0x12, 0x32, 0x0a, 0x15, 0x70,
|
||||
0x6c, 0x61, 0x69, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x5f, 0x66, 0x72, 0x6d, 0x5f, 0x70, 0x61, 0x79,
|
||||
0x6c, 0x6f, 0x61, 0x64, 0x18, 0x09, 0x20, 0x01, 0x28, 0x08, 0x52, 0x13, 0x70, 0x6c, 0x61, 0x69,
|
||||
0x6e, 0x74, 0x65, 0x78, 0x74, 0x46, 0x72, 0x6d, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x22,
|
||||
0x88, 0x03, 0x0a, 0x10, 0x44, 0x6f, 0x77, 0x6e, 0x6c, 0x69, 0x6e, 0x6b, 0x46, 0x72, 0x61, 0x6d,
|
||||
0x65, 0x4c, 0x6f, 0x67, 0x12, 0x2e, 0x0a, 0x04, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01,
|
||||
0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74,
|
||||
0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x04,
|
||||
0x74, 0x69, 0x6d, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x70, 0x68, 0x79, 0x5f, 0x70, 0x61, 0x79, 0x6c,
|
||||
0x6f, 0x61, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0a, 0x70, 0x68, 0x79, 0x50, 0x61,
|
||||
0x79, 0x6c, 0x6f, 0x61, 0x64, 0x12, 0x2b, 0x0a, 0x07, 0x74, 0x78, 0x5f, 0x69, 0x6e, 0x66, 0x6f,
|
||||
0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x67, 0x77, 0x2e, 0x44, 0x6f, 0x77, 0x6e,
|
||||
0x6c, 0x69, 0x6e, 0x6b, 0x54, 0x78, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x06, 0x74, 0x78, 0x49, 0x6e,
|
||||
0x66, 0x6f, 0x12, 0x1f, 0x0a, 0x0b, 0x64, 0x6f, 0x77, 0x6e, 0x6c, 0x69, 0x6e, 0x6b, 0x5f, 0x69,
|
||||
0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0a, 0x64, 0x6f, 0x77, 0x6e, 0x6c, 0x69, 0x6e,
|
||||
0x6b, 0x49, 0x64, 0x12, 0x1d, 0x0a, 0x0a, 0x67, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x5f, 0x69,
|
||||
0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x67, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79,
|
||||
0x49, 0x64, 0x12, 0x24, 0x0a, 0x06, 0x6d, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x06, 0x20, 0x01,
|
||||
0x28, 0x0e, 0x32, 0x0d, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x4d, 0x54, 0x79, 0x70,
|
||||
0x65, 0x52, 0x05, 0x6d, 0x54, 0x79, 0x70, 0x65, 0x12, 0x19, 0x0a, 0x08, 0x64, 0x65, 0x76, 0x5f,
|
||||
0x61, 0x64, 0x64, 0x72, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x64, 0x65, 0x76, 0x41,
|
||||
0x64, 0x64, 0x72, 0x12, 0x17, 0x0a, 0x07, 0x64, 0x65, 0x76, 0x5f, 0x65, 0x75, 0x69, 0x18, 0x08,
|
||||
0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x64, 0x65, 0x76, 0x45, 0x75, 0x69, 0x12, 0x28, 0x0a, 0x10,
|
||||
0x70, 0x6c, 0x61, 0x69, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x5f, 0x66, 0x5f, 0x6f, 0x70, 0x74, 0x73,
|
||||
0x18, 0x09, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0e, 0x70, 0x6c, 0x61, 0x69, 0x6e, 0x74, 0x65, 0x78,
|
||||
0x74, 0x46, 0x4f, 0x70, 0x74, 0x73, 0x12, 0x32, 0x0a, 0x15, 0x70, 0x6c, 0x61, 0x69, 0x6e, 0x74,
|
||||
0x65, 0x78, 0x74, 0x5f, 0x66, 0x72, 0x6d, 0x5f, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x18,
|
||||
0x0a, 0x20, 0x01, 0x28, 0x08, 0x52, 0x13, 0x70, 0x6c, 0x61, 0x69, 0x6e, 0x74, 0x65, 0x78, 0x74,
|
||||
0x46, 0x72, 0x6d, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x42, 0x65, 0x0a, 0x11, 0x69, 0x6f,
|
||||
0x2e, 0x63, 0x68, 0x69, 0x72, 0x70, 0x73, 0x74, 0x61, 0x63, 0x6b, 0x2e, 0x61, 0x70, 0x69, 0x42,
|
||||
0x0d, 0x46, 0x72, 0x61, 0x6d, 0x65, 0x4c, 0x6f, 0x67, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01,
|
||||
0x5a, 0x2e, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x63, 0x68, 0x69,
|
||||
0x72, 0x70, 0x73, 0x74, 0x61, 0x63, 0x6b, 0x2f, 0x63, 0x68, 0x69, 0x72, 0x70, 0x73, 0x74, 0x61,
|
||||
0x63, 0x6b, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x67, 0x6f, 0x2f, 0x76, 0x34, 0x2f, 0x61, 0x70, 0x69,
|
||||
0xaa, 0x02, 0x0e, 0x43, 0x68, 0x69, 0x72, 0x70, 0x73, 0x74, 0x61, 0x63, 0x6b, 0x2e, 0x41, 0x70,
|
||||
0x69, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
||||
0x6c, 0x6f, 0x61, 0x64, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x08, 0x52, 0x13, 0x70, 0x6c, 0x61, 0x69,
|
||||
0x6e, 0x74, 0x65, 0x78, 0x74, 0x46, 0x72, 0x6d, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x42,
|
||||
0x73, 0x0a, 0x19, 0x69, 0x6f, 0x2e, 0x63, 0x68, 0x69, 0x72, 0x70, 0x73, 0x74, 0x61, 0x63, 0x6b,
|
||||
0x2e, 0x61, 0x70, 0x69, 0x2e, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x73, 0x42, 0x0b, 0x46, 0x72,
|
||||
0x61, 0x6d, 0x65, 0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x32, 0x67, 0x69, 0x74,
|
||||
0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x63, 0x68, 0x69, 0x72, 0x70, 0x73, 0x74, 0x61,
|
||||
0x63, 0x6b, 0x2f, 0x63, 0x68, 0x69, 0x72, 0x70, 0x73, 0x74, 0x61, 0x63, 0x6b, 0x2f, 0x61, 0x70,
|
||||
0x69, 0x2f, 0x67, 0x6f, 0x2f, 0x76, 0x34, 0x2f, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x73, 0xaa,
|
||||
0x02, 0x12, 0x43, 0x68, 0x69, 0x72, 0x70, 0x73, 0x74, 0x61, 0x63, 0x6b, 0x2e, 0x53, 0x74, 0x72,
|
||||
0x65, 0x61, 0x6d, 0x73, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
||||
}
|
||||
|
||||
var (
|
||||
file_api_frame_log_proto_rawDescOnce sync.Once
|
||||
file_api_frame_log_proto_rawDescData = file_api_frame_log_proto_rawDesc
|
||||
file_streams_frames_proto_rawDescOnce sync.Once
|
||||
file_streams_frames_proto_rawDescData = file_streams_frames_proto_rawDesc
|
||||
)
|
||||
|
||||
func file_api_frame_log_proto_rawDescGZIP() []byte {
|
||||
file_api_frame_log_proto_rawDescOnce.Do(func() {
|
||||
file_api_frame_log_proto_rawDescData = protoimpl.X.CompressGZIP(file_api_frame_log_proto_rawDescData)
|
||||
func file_streams_frames_proto_rawDescGZIP() []byte {
|
||||
file_streams_frames_proto_rawDescOnce.Do(func() {
|
||||
file_streams_frames_proto_rawDescData = protoimpl.X.CompressGZIP(file_streams_frames_proto_rawDescData)
|
||||
})
|
||||
return file_api_frame_log_proto_rawDescData
|
||||
return file_streams_frames_proto_rawDescData
|
||||
}
|
||||
|
||||
var file_api_frame_log_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
|
||||
var file_api_frame_log_proto_goTypes = []interface{}{
|
||||
(*UplinkFrameLog)(nil), // 0: api.UplinkFrameLog
|
||||
(*DownlinkFrameLog)(nil), // 1: api.DownlinkFrameLog
|
||||
var file_streams_frames_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
|
||||
var file_streams_frames_proto_goTypes = []interface{}{
|
||||
(*UplinkFrameLog)(nil), // 0: streams.UplinkFrameLog
|
||||
(*DownlinkFrameLog)(nil), // 1: streams.DownlinkFrameLog
|
||||
(*gw.UplinkTxInfo)(nil), // 2: gw.UplinkTxInfo
|
||||
(*gw.UplinkRxInfo)(nil), // 3: gw.UplinkRxInfo
|
||||
(common.MType)(0), // 4: common.MType
|
||||
(*timestamppb.Timestamp)(nil), // 5: google.protobuf.Timestamp
|
||||
(*gw.DownlinkTxInfo)(nil), // 6: gw.DownlinkTxInfo
|
||||
}
|
||||
var file_api_frame_log_proto_depIdxs = []int32{
|
||||
2, // 0: api.UplinkFrameLog.tx_info:type_name -> gw.UplinkTxInfo
|
||||
3, // 1: api.UplinkFrameLog.rx_info:type_name -> gw.UplinkRxInfo
|
||||
4, // 2: api.UplinkFrameLog.m_type:type_name -> common.MType
|
||||
5, // 3: api.UplinkFrameLog.time:type_name -> google.protobuf.Timestamp
|
||||
5, // 4: api.DownlinkFrameLog.time:type_name -> google.protobuf.Timestamp
|
||||
6, // 5: api.DownlinkFrameLog.tx_info:type_name -> gw.DownlinkTxInfo
|
||||
4, // 6: api.DownlinkFrameLog.m_type:type_name -> common.MType
|
||||
var file_streams_frames_proto_depIdxs = []int32{
|
||||
2, // 0: streams.UplinkFrameLog.tx_info:type_name -> gw.UplinkTxInfo
|
||||
3, // 1: streams.UplinkFrameLog.rx_info:type_name -> gw.UplinkRxInfo
|
||||
4, // 2: streams.UplinkFrameLog.m_type:type_name -> common.MType
|
||||
5, // 3: streams.UplinkFrameLog.time:type_name -> google.protobuf.Timestamp
|
||||
5, // 4: streams.DownlinkFrameLog.time:type_name -> google.protobuf.Timestamp
|
||||
6, // 5: streams.DownlinkFrameLog.tx_info:type_name -> gw.DownlinkTxInfo
|
||||
4, // 6: streams.DownlinkFrameLog.m_type:type_name -> common.MType
|
||||
7, // [7:7] is the sub-list for method output_type
|
||||
7, // [7:7] is the sub-list for method input_type
|
||||
7, // [7:7] is the sub-list for extension type_name
|
||||
@ -375,13 +376,13 @@ var file_api_frame_log_proto_depIdxs = []int32{
|
||||
0, // [0:7] is the sub-list for field type_name
|
||||
}
|
||||
|
||||
func init() { file_api_frame_log_proto_init() }
|
||||
func file_api_frame_log_proto_init() {
|
||||
if File_api_frame_log_proto != nil {
|
||||
func init() { file_streams_frames_proto_init() }
|
||||
func file_streams_frames_proto_init() {
|
||||
if File_streams_frames_proto != nil {
|
||||
return
|
||||
}
|
||||
if !protoimpl.UnsafeEnabled {
|
||||
file_api_frame_log_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
|
||||
file_streams_frames_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*UplinkFrameLog); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
@ -393,7 +394,7 @@ func file_api_frame_log_proto_init() {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_api_frame_log_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
|
||||
file_streams_frames_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*DownlinkFrameLog); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
@ -410,18 +411,18 @@ func file_api_frame_log_proto_init() {
|
||||
out := protoimpl.TypeBuilder{
|
||||
File: protoimpl.DescBuilder{
|
||||
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
||||
RawDescriptor: file_api_frame_log_proto_rawDesc,
|
||||
RawDescriptor: file_streams_frames_proto_rawDesc,
|
||||
NumEnums: 0,
|
||||
NumMessages: 2,
|
||||
NumExtensions: 0,
|
||||
NumServices: 0,
|
||||
},
|
||||
GoTypes: file_api_frame_log_proto_goTypes,
|
||||
DependencyIndexes: file_api_frame_log_proto_depIdxs,
|
||||
MessageInfos: file_api_frame_log_proto_msgTypes,
|
||||
GoTypes: file_streams_frames_proto_goTypes,
|
||||
DependencyIndexes: file_streams_frames_proto_depIdxs,
|
||||
MessageInfos: file_streams_frames_proto_msgTypes,
|
||||
}.Build()
|
||||
File_api_frame_log_proto = out.File
|
||||
file_api_frame_log_proto_rawDesc = nil
|
||||
file_api_frame_log_proto_goTypes = nil
|
||||
file_api_frame_log_proto_depIdxs = nil
|
||||
File_streams_frames_proto = out.File
|
||||
file_streams_frames_proto_rawDesc = nil
|
||||
file_streams_frames_proto_goTypes = nil
|
||||
file_streams_frames_proto_depIdxs = nil
|
||||
}
|
118
api/go/streams/meta.pb.go
vendored
118
api/go/streams/meta.pb.go
vendored
@ -239,58 +239,58 @@ var File_streams_meta_proto protoreflect.FileDescriptor
|
||||
|
||||
var file_streams_meta_proto_rawDesc = []byte{
|
||||
0x0a, 0x12, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x73, 0x2f, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x70,
|
||||
0x72, 0x6f, 0x74, 0x6f, 0x12, 0x04, 0x6d, 0x65, 0x74, 0x61, 0x1a, 0x13, 0x63, 0x6f, 0x6d, 0x6d,
|
||||
0x6f, 0x6e, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a,
|
||||
0x0b, 0x67, 0x77, 0x2f, 0x67, 0x77, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xdc, 0x02, 0x0a,
|
||||
0x0a, 0x55, 0x70, 0x6c, 0x69, 0x6e, 0x6b, 0x4d, 0x65, 0x74, 0x61, 0x12, 0x17, 0x0a, 0x07, 0x64,
|
||||
0x65, 0x76, 0x5f, 0x65, 0x75, 0x69, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x64, 0x65,
|
||||
0x76, 0x45, 0x75, 0x69, 0x12, 0x29, 0x0a, 0x07, 0x74, 0x78, 0x5f, 0x69, 0x6e, 0x66, 0x6f, 0x18,
|
||||
0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x67, 0x77, 0x2e, 0x55, 0x70, 0x6c, 0x69, 0x6e,
|
||||
0x6b, 0x54, 0x78, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x06, 0x74, 0x78, 0x49, 0x6e, 0x66, 0x6f, 0x12,
|
||||
0x29, 0x0a, 0x07, 0x72, 0x78, 0x5f, 0x69, 0x6e, 0x66, 0x6f, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b,
|
||||
0x32, 0x10, 0x2e, 0x67, 0x77, 0x2e, 0x55, 0x70, 0x6c, 0x69, 0x6e, 0x6b, 0x52, 0x78, 0x49, 0x6e,
|
||||
0x66, 0x6f, 0x52, 0x06, 0x72, 0x78, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x33, 0x0a, 0x16, 0x70, 0x68,
|
||||
0x79, 0x5f, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x5f, 0x62, 0x79, 0x74, 0x65, 0x5f, 0x63,
|
||||
0x6f, 0x75, 0x6e, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x13, 0x70, 0x68, 0x79, 0x50,
|
||||
0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x42, 0x79, 0x74, 0x65, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x12,
|
||||
0x33, 0x0a, 0x16, 0x6d, 0x61, 0x63, 0x5f, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x5f, 0x62,
|
||||
0x79, 0x74, 0x65, 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0d, 0x52,
|
||||
0x13, 0x6d, 0x61, 0x63, 0x43, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x42, 0x79, 0x74, 0x65, 0x43,
|
||||
0x6f, 0x75, 0x6e, 0x74, 0x12, 0x43, 0x0a, 0x1e, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74,
|
||||
0x69, 0x6f, 0x6e, 0x5f, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x5f, 0x62, 0x79, 0x74, 0x65,
|
||||
0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x1b, 0x61, 0x70,
|
||||
0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64,
|
||||
0x42, 0x79, 0x74, 0x65, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x30, 0x0a, 0x0c, 0x6d, 0x65, 0x73,
|
||||
0x73, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0e, 0x32,
|
||||
0x0d, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x4d, 0x54, 0x79, 0x70, 0x65, 0x52, 0x0b,
|
||||
0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x54, 0x79, 0x70, 0x65, 0x22, 0x82, 0x03, 0x0a, 0x0c,
|
||||
0x44, 0x6f, 0x77, 0x6e, 0x6c, 0x69, 0x6e, 0x6b, 0x4d, 0x65, 0x74, 0x61, 0x12, 0x17, 0x0a, 0x07,
|
||||
0x64, 0x65, 0x76, 0x5f, 0x65, 0x75, 0x69, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x64,
|
||||
0x65, 0x76, 0x45, 0x75, 0x69, 0x12, 0x2c, 0x0a, 0x12, 0x6d, 0x75, 0x6c, 0x74, 0x69, 0x63, 0x61,
|
||||
0x73, 0x74, 0x5f, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28,
|
||||
0x09, 0x52, 0x10, 0x6d, 0x75, 0x6c, 0x74, 0x69, 0x63, 0x61, 0x73, 0x74, 0x47, 0x72, 0x6f, 0x75,
|
||||
0x70, 0x49, 0x64, 0x12, 0x2b, 0x0a, 0x07, 0x74, 0x78, 0x5f, 0x69, 0x6e, 0x66, 0x6f, 0x18, 0x03,
|
||||
0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x67, 0x77, 0x2e, 0x44, 0x6f, 0x77, 0x6e, 0x6c, 0x69,
|
||||
0x6e, 0x6b, 0x54, 0x78, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x06, 0x74, 0x78, 0x49, 0x6e, 0x66, 0x6f,
|
||||
0x12, 0x33, 0x0a, 0x16, 0x70, 0x68, 0x79, 0x5f, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x5f,
|
||||
0x62, 0x79, 0x74, 0x65, 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0d,
|
||||
0x52, 0x13, 0x70, 0x68, 0x79, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x42, 0x79, 0x74, 0x65,
|
||||
0x43, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x33, 0x0a, 0x16, 0x6d, 0x61, 0x63, 0x5f, 0x63, 0x6f, 0x6d,
|
||||
0x6d, 0x61, 0x6e, 0x64, 0x5f, 0x62, 0x79, 0x74, 0x65, 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18,
|
||||
0x05, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x13, 0x6d, 0x61, 0x63, 0x43, 0x6f, 0x6d, 0x6d, 0x61, 0x6e,
|
||||
0x64, 0x42, 0x79, 0x74, 0x65, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x43, 0x0a, 0x1e, 0x61, 0x70,
|
||||
0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61,
|
||||
0x64, 0x5f, 0x62, 0x79, 0x74, 0x65, 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x06, 0x20, 0x01,
|
||||
0x28, 0x0d, 0x52, 0x1b, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x50,
|
||||
0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x42, 0x79, 0x74, 0x65, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x12,
|
||||
0x30, 0x0a, 0x0c, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18,
|
||||
0x07, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x0d, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x4d,
|
||||
0x54, 0x79, 0x70, 0x65, 0x52, 0x0b, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x54, 0x79, 0x70,
|
||||
0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x67, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x5f, 0x69, 0x64, 0x18,
|
||||
0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x67, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x49, 0x64,
|
||||
0x42, 0x74, 0x0a, 0x19, 0x69, 0x6f, 0x2e, 0x63, 0x68, 0x69, 0x72, 0x70, 0x73, 0x74, 0x61, 0x63,
|
||||
0x6b, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x73, 0x42, 0x0c, 0x53,
|
||||
0x74, 0x72, 0x65, 0x61, 0x6d, 0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x32, 0x67,
|
||||
0x72, 0x6f, 0x74, 0x6f, 0x12, 0x07, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x73, 0x1a, 0x13, 0x63,
|
||||
0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f,
|
||||
0x74, 0x6f, 0x1a, 0x0b, 0x67, 0x77, 0x2f, 0x67, 0x77, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22,
|
||||
0xdc, 0x02, 0x0a, 0x0a, 0x55, 0x70, 0x6c, 0x69, 0x6e, 0x6b, 0x4d, 0x65, 0x74, 0x61, 0x12, 0x17,
|
||||
0x0a, 0x07, 0x64, 0x65, 0x76, 0x5f, 0x65, 0x75, 0x69, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52,
|
||||
0x06, 0x64, 0x65, 0x76, 0x45, 0x75, 0x69, 0x12, 0x29, 0x0a, 0x07, 0x74, 0x78, 0x5f, 0x69, 0x6e,
|
||||
0x66, 0x6f, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x67, 0x77, 0x2e, 0x55, 0x70,
|
||||
0x6c, 0x69, 0x6e, 0x6b, 0x54, 0x78, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x06, 0x74, 0x78, 0x49, 0x6e,
|
||||
0x66, 0x6f, 0x12, 0x29, 0x0a, 0x07, 0x72, 0x78, 0x5f, 0x69, 0x6e, 0x66, 0x6f, 0x18, 0x03, 0x20,
|
||||
0x03, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x67, 0x77, 0x2e, 0x55, 0x70, 0x6c, 0x69, 0x6e, 0x6b, 0x52,
|
||||
0x78, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x06, 0x72, 0x78, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x33, 0x0a,
|
||||
0x16, 0x70, 0x68, 0x79, 0x5f, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x5f, 0x62, 0x79, 0x74,
|
||||
0x65, 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x13, 0x70,
|
||||
0x68, 0x79, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x42, 0x79, 0x74, 0x65, 0x43, 0x6f, 0x75,
|
||||
0x6e, 0x74, 0x12, 0x33, 0x0a, 0x16, 0x6d, 0x61, 0x63, 0x5f, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e,
|
||||
0x64, 0x5f, 0x62, 0x79, 0x74, 0x65, 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x05, 0x20, 0x01,
|
||||
0x28, 0x0d, 0x52, 0x13, 0x6d, 0x61, 0x63, 0x43, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x42, 0x79,
|
||||
0x74, 0x65, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x43, 0x0a, 0x1e, 0x61, 0x70, 0x70, 0x6c, 0x69,
|
||||
0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x5f, 0x62,
|
||||
0x79, 0x74, 0x65, 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0d, 0x52,
|
||||
0x1b, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x61, 0x79, 0x6c,
|
||||
0x6f, 0x61, 0x64, 0x42, 0x79, 0x74, 0x65, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x30, 0x0a, 0x0c,
|
||||
0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x07, 0x20, 0x01,
|
||||
0x28, 0x0e, 0x32, 0x0d, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x4d, 0x54, 0x79, 0x70,
|
||||
0x65, 0x52, 0x0b, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x54, 0x79, 0x70, 0x65, 0x22, 0x82,
|
||||
0x03, 0x0a, 0x0c, 0x44, 0x6f, 0x77, 0x6e, 0x6c, 0x69, 0x6e, 0x6b, 0x4d, 0x65, 0x74, 0x61, 0x12,
|
||||
0x17, 0x0a, 0x07, 0x64, 0x65, 0x76, 0x5f, 0x65, 0x75, 0x69, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09,
|
||||
0x52, 0x06, 0x64, 0x65, 0x76, 0x45, 0x75, 0x69, 0x12, 0x2c, 0x0a, 0x12, 0x6d, 0x75, 0x6c, 0x74,
|
||||
0x69, 0x63, 0x61, 0x73, 0x74, 0x5f, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x5f, 0x69, 0x64, 0x18, 0x02,
|
||||
0x20, 0x01, 0x28, 0x09, 0x52, 0x10, 0x6d, 0x75, 0x6c, 0x74, 0x69, 0x63, 0x61, 0x73, 0x74, 0x47,
|
||||
0x72, 0x6f, 0x75, 0x70, 0x49, 0x64, 0x12, 0x2b, 0x0a, 0x07, 0x74, 0x78, 0x5f, 0x69, 0x6e, 0x66,
|
||||
0x6f, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x67, 0x77, 0x2e, 0x44, 0x6f, 0x77,
|
||||
0x6e, 0x6c, 0x69, 0x6e, 0x6b, 0x54, 0x78, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x06, 0x74, 0x78, 0x49,
|
||||
0x6e, 0x66, 0x6f, 0x12, 0x33, 0x0a, 0x16, 0x70, 0x68, 0x79, 0x5f, 0x70, 0x61, 0x79, 0x6c, 0x6f,
|
||||
0x61, 0x64, 0x5f, 0x62, 0x79, 0x74, 0x65, 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x04, 0x20,
|
||||
0x01, 0x28, 0x0d, 0x52, 0x13, 0x70, 0x68, 0x79, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x42,
|
||||
0x79, 0x74, 0x65, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x33, 0x0a, 0x16, 0x6d, 0x61, 0x63, 0x5f,
|
||||
0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x5f, 0x62, 0x79, 0x74, 0x65, 0x5f, 0x63, 0x6f, 0x75,
|
||||
0x6e, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x13, 0x6d, 0x61, 0x63, 0x43, 0x6f, 0x6d,
|
||||
0x6d, 0x61, 0x6e, 0x64, 0x42, 0x79, 0x74, 0x65, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x43, 0x0a,
|
||||
0x1e, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x70, 0x61, 0x79,
|
||||
0x6c, 0x6f, 0x61, 0x64, 0x5f, 0x62, 0x79, 0x74, 0x65, 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18,
|
||||
0x06, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x1b, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69,
|
||||
0x6f, 0x6e, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x42, 0x79, 0x74, 0x65, 0x43, 0x6f, 0x75,
|
||||
0x6e, 0x74, 0x12, 0x30, 0x0a, 0x0c, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x79,
|
||||
0x70, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x0d, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f,
|
||||
0x6e, 0x2e, 0x4d, 0x54, 0x79, 0x70, 0x65, 0x52, 0x0b, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65,
|
||||
0x54, 0x79, 0x70, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x67, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x5f,
|
||||
0x69, 0x64, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x67, 0x61, 0x74, 0x65, 0x77, 0x61,
|
||||
0x79, 0x49, 0x64, 0x42, 0x71, 0x0a, 0x19, 0x69, 0x6f, 0x2e, 0x63, 0x68, 0x69, 0x72, 0x70, 0x73,
|
||||
0x74, 0x61, 0x63, 0x6b, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x73,
|
||||
0x42, 0x09, 0x4d, 0x65, 0x74, 0x61, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x32, 0x67,
|
||||
0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x63, 0x68, 0x69, 0x72, 0x70, 0x73,
|
||||
0x74, 0x61, 0x63, 0x6b, 0x2f, 0x63, 0x68, 0x69, 0x72, 0x70, 0x73, 0x74, 0x61, 0x63, 0x6b, 0x2f,
|
||||
0x61, 0x70, 0x69, 0x2f, 0x67, 0x6f, 0x2f, 0x76, 0x34, 0x2f, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d,
|
||||
@ -312,19 +312,19 @@ func file_streams_meta_proto_rawDescGZIP() []byte {
|
||||
|
||||
var file_streams_meta_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
|
||||
var file_streams_meta_proto_goTypes = []interface{}{
|
||||
(*UplinkMeta)(nil), // 0: meta.UplinkMeta
|
||||
(*DownlinkMeta)(nil), // 1: meta.DownlinkMeta
|
||||
(*UplinkMeta)(nil), // 0: streams.UplinkMeta
|
||||
(*DownlinkMeta)(nil), // 1: streams.DownlinkMeta
|
||||
(*gw.UplinkTxInfo)(nil), // 2: gw.UplinkTxInfo
|
||||
(*gw.UplinkRxInfo)(nil), // 3: gw.UplinkRxInfo
|
||||
(common.MType)(0), // 4: common.MType
|
||||
(*gw.DownlinkTxInfo)(nil), // 5: gw.DownlinkTxInfo
|
||||
}
|
||||
var file_streams_meta_proto_depIdxs = []int32{
|
||||
2, // 0: meta.UplinkMeta.tx_info:type_name -> gw.UplinkTxInfo
|
||||
3, // 1: meta.UplinkMeta.rx_info:type_name -> gw.UplinkRxInfo
|
||||
4, // 2: meta.UplinkMeta.message_type:type_name -> common.MType
|
||||
5, // 3: meta.DownlinkMeta.tx_info:type_name -> gw.DownlinkTxInfo
|
||||
4, // 4: meta.DownlinkMeta.message_type:type_name -> common.MType
|
||||
2, // 0: streams.UplinkMeta.tx_info:type_name -> gw.UplinkTxInfo
|
||||
3, // 1: streams.UplinkMeta.rx_info:type_name -> gw.UplinkRxInfo
|
||||
4, // 2: streams.UplinkMeta.message_type:type_name -> common.MType
|
||||
5, // 3: streams.DownlinkMeta.tx_info:type_name -> gw.DownlinkTxInfo
|
||||
4, // 4: streams.DownlinkMeta.message_type:type_name -> common.MType
|
||||
5, // [5:5] is the sub-list for method output_type
|
||||
5, // [5:5] is the sub-list for method input_type
|
||||
5, // [5:5] is the sub-list for extension type_name
|
||||
|
1
api/grpc-web/Makefile
vendored
1
api/grpc-web/Makefile
vendored
@ -25,7 +25,6 @@ api:
|
||||
protoc $(PROTOC_ARGS) ../proto/api/device_profile_template.proto
|
||||
protoc $(PROTOC_ARGS) ../proto/api/device.proto
|
||||
protoc $(PROTOC_ARGS) ../proto/api/gateway.proto
|
||||
protoc $(PROTOC_ARGS) ../proto/api/frame_log.proto
|
||||
protoc $(PROTOC_ARGS) ../proto/api/multicast_group.proto
|
||||
protoc $(PROTOC_ARGS) ../proto/api/request_log.proto
|
||||
protoc $(PROTOC_ARGS) ../proto/api/relay.proto
|
||||
|
125
api/grpc-web/api/frame_log_pb.d.ts
vendored
125
api/grpc-web/api/frame_log_pb.d.ts
vendored
@ -1,125 +0,0 @@
|
||||
import * as jspb from 'google-protobuf'
|
||||
|
||||
import * as google_protobuf_timestamp_pb from 'google-protobuf/google/protobuf/timestamp_pb';
|
||||
import * as common_common_pb from '../common/common_pb';
|
||||
import * as gw_gw_pb from '../gw/gw_pb';
|
||||
|
||||
|
||||
export class UplinkFrameLog extends jspb.Message {
|
||||
getPhyPayload(): Uint8Array | string;
|
||||
getPhyPayload_asU8(): Uint8Array;
|
||||
getPhyPayload_asB64(): string;
|
||||
setPhyPayload(value: Uint8Array | string): UplinkFrameLog;
|
||||
|
||||
getTxInfo(): gw_gw_pb.UplinkTxInfo | undefined;
|
||||
setTxInfo(value?: gw_gw_pb.UplinkTxInfo): UplinkFrameLog;
|
||||
hasTxInfo(): boolean;
|
||||
clearTxInfo(): UplinkFrameLog;
|
||||
|
||||
getRxInfoList(): Array<gw_gw_pb.UplinkRxInfo>;
|
||||
setRxInfoList(value: Array<gw_gw_pb.UplinkRxInfo>): UplinkFrameLog;
|
||||
clearRxInfoList(): UplinkFrameLog;
|
||||
addRxInfo(value?: gw_gw_pb.UplinkRxInfo, index?: number): gw_gw_pb.UplinkRxInfo;
|
||||
|
||||
getMType(): common_common_pb.MType;
|
||||
setMType(value: common_common_pb.MType): UplinkFrameLog;
|
||||
|
||||
getDevAddr(): string;
|
||||
setDevAddr(value: string): UplinkFrameLog;
|
||||
|
||||
getDevEui(): string;
|
||||
setDevEui(value: string): UplinkFrameLog;
|
||||
|
||||
getTime(): google_protobuf_timestamp_pb.Timestamp | undefined;
|
||||
setTime(value?: google_protobuf_timestamp_pb.Timestamp): UplinkFrameLog;
|
||||
hasTime(): boolean;
|
||||
clearTime(): UplinkFrameLog;
|
||||
|
||||
getPlaintextFOpts(): boolean;
|
||||
setPlaintextFOpts(value: boolean): UplinkFrameLog;
|
||||
|
||||
getPlaintextFrmPayload(): boolean;
|
||||
setPlaintextFrmPayload(value: boolean): UplinkFrameLog;
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): UplinkFrameLog.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: UplinkFrameLog): UplinkFrameLog.AsObject;
|
||||
static serializeBinaryToWriter(message: UplinkFrameLog, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): UplinkFrameLog;
|
||||
static deserializeBinaryFromReader(message: UplinkFrameLog, reader: jspb.BinaryReader): UplinkFrameLog;
|
||||
}
|
||||
|
||||
export namespace UplinkFrameLog {
|
||||
export type AsObject = {
|
||||
phyPayload: Uint8Array | string,
|
||||
txInfo?: gw_gw_pb.UplinkTxInfo.AsObject,
|
||||
rxInfoList: Array<gw_gw_pb.UplinkRxInfo.AsObject>,
|
||||
mType: common_common_pb.MType,
|
||||
devAddr: string,
|
||||
devEui: string,
|
||||
time?: google_protobuf_timestamp_pb.Timestamp.AsObject,
|
||||
plaintextFOpts: boolean,
|
||||
plaintextFrmPayload: boolean,
|
||||
}
|
||||
}
|
||||
|
||||
export class DownlinkFrameLog extends jspb.Message {
|
||||
getTime(): google_protobuf_timestamp_pb.Timestamp | undefined;
|
||||
setTime(value?: google_protobuf_timestamp_pb.Timestamp): DownlinkFrameLog;
|
||||
hasTime(): boolean;
|
||||
clearTime(): DownlinkFrameLog;
|
||||
|
||||
getPhyPayload(): Uint8Array | string;
|
||||
getPhyPayload_asU8(): Uint8Array;
|
||||
getPhyPayload_asB64(): string;
|
||||
setPhyPayload(value: Uint8Array | string): DownlinkFrameLog;
|
||||
|
||||
getTxInfo(): gw_gw_pb.DownlinkTxInfo | undefined;
|
||||
setTxInfo(value?: gw_gw_pb.DownlinkTxInfo): DownlinkFrameLog;
|
||||
hasTxInfo(): boolean;
|
||||
clearTxInfo(): DownlinkFrameLog;
|
||||
|
||||
getDownlinkId(): number;
|
||||
setDownlinkId(value: number): DownlinkFrameLog;
|
||||
|
||||
getGatewayId(): string;
|
||||
setGatewayId(value: string): DownlinkFrameLog;
|
||||
|
||||
getMType(): common_common_pb.MType;
|
||||
setMType(value: common_common_pb.MType): DownlinkFrameLog;
|
||||
|
||||
getDevAddr(): string;
|
||||
setDevAddr(value: string): DownlinkFrameLog;
|
||||
|
||||
getDevEui(): string;
|
||||
setDevEui(value: string): DownlinkFrameLog;
|
||||
|
||||
getPlaintextFOpts(): boolean;
|
||||
setPlaintextFOpts(value: boolean): DownlinkFrameLog;
|
||||
|
||||
getPlaintextFrmPayload(): boolean;
|
||||
setPlaintextFrmPayload(value: boolean): DownlinkFrameLog;
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): DownlinkFrameLog.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: DownlinkFrameLog): DownlinkFrameLog.AsObject;
|
||||
static serializeBinaryToWriter(message: DownlinkFrameLog, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): DownlinkFrameLog;
|
||||
static deserializeBinaryFromReader(message: DownlinkFrameLog, reader: jspb.BinaryReader): DownlinkFrameLog;
|
||||
}
|
||||
|
||||
export namespace DownlinkFrameLog {
|
||||
export type AsObject = {
|
||||
time?: google_protobuf_timestamp_pb.Timestamp.AsObject,
|
||||
phyPayload: Uint8Array | string,
|
||||
txInfo?: gw_gw_pb.DownlinkTxInfo.AsObject,
|
||||
downlinkId: number,
|
||||
gatewayId: string,
|
||||
mType: common_common_pb.MType,
|
||||
devAddr: string,
|
||||
devEui: string,
|
||||
plaintextFOpts: boolean,
|
||||
plaintextFrmPayload: boolean,
|
||||
}
|
||||
}
|
||||
|
997
api/grpc-web/api/frame_log_pb.js
vendored
997
api/grpc-web/api/frame_log_pb.js
vendored
@ -1,997 +0,0 @@
|
||||
// source: api/frame_log.proto
|
||||
/**
|
||||
* @fileoverview
|
||||
* @enhanceable
|
||||
* @suppress {messageConventions} JS Compiler reports an error if a variable or
|
||||
* field starts with 'MSG_' and isn't a translatable message.
|
||||
* @public
|
||||
*/
|
||||
// GENERATED CODE -- DO NOT EDIT!
|
||||
|
||||
var jspb = require('google-protobuf');
|
||||
var goog = jspb;
|
||||
var global = Function('return this')();
|
||||
|
||||
var google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/timestamp_pb.js');
|
||||
goog.object.extend(proto, google_protobuf_timestamp_pb);
|
||||
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);
|
||||
/**
|
||||
* Generated by JsPbCodeGenerator.
|
||||
* @param {Array=} opt_data Optional initial data array, typically from a
|
||||
* server response, or constructed directly in Javascript. The array is used
|
||||
* in place and becomes part of the constructed object. It is not cloned.
|
||||
* If no data is provided, the constructed object will be empty, but still
|
||||
* valid.
|
||||
* @extends {jspb.Message}
|
||||
* @constructor
|
||||
*/
|
||||
proto.api.UplinkFrameLog = function(opt_data) {
|
||||
jspb.Message.initialize(this, opt_data, 0, -1, proto.api.UplinkFrameLog.repeatedFields_, null);
|
||||
};
|
||||
goog.inherits(proto.api.UplinkFrameLog, jspb.Message);
|
||||
if (goog.DEBUG && !COMPILED) {
|
||||
/**
|
||||
* @public
|
||||
* @override
|
||||
*/
|
||||
proto.api.UplinkFrameLog.displayName = 'proto.api.UplinkFrameLog';
|
||||
}
|
||||
/**
|
||||
* Generated by JsPbCodeGenerator.
|
||||
* @param {Array=} opt_data Optional initial data array, typically from a
|
||||
* server response, or constructed directly in Javascript. The array is used
|
||||
* in place and becomes part of the constructed object. It is not cloned.
|
||||
* If no data is provided, the constructed object will be empty, but still
|
||||
* valid.
|
||||
* @extends {jspb.Message}
|
||||
* @constructor
|
||||
*/
|
||||
proto.api.DownlinkFrameLog = function(opt_data) {
|
||||
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
||||
};
|
||||
goog.inherits(proto.api.DownlinkFrameLog, jspb.Message);
|
||||
if (goog.DEBUG && !COMPILED) {
|
||||
/**
|
||||
* @public
|
||||
* @override
|
||||
*/
|
||||
proto.api.DownlinkFrameLog.displayName = 'proto.api.DownlinkFrameLog';
|
||||
}
|
||||
|
||||
/**
|
||||
* List of repeated fields within this message type.
|
||||
* @private {!Array<number>}
|
||||
* @const
|
||||
*/
|
||||
proto.api.UplinkFrameLog.repeatedFields_ = [3];
|
||||
|
||||
|
||||
|
||||
if (jspb.Message.GENERATE_TO_OBJECT) {
|
||||
/**
|
||||
* Creates an object representation of this proto.
|
||||
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
||||
* Optional fields that are not set will be set to undefined.
|
||||
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
||||
* For the list of reserved names please see:
|
||||
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
||||
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
||||
* JSPB instance for transitional soy proto support:
|
||||
* http://goto/soy-param-migration
|
||||
* @return {!Object}
|
||||
*/
|
||||
proto.api.UplinkFrameLog.prototype.toObject = function(opt_includeInstance) {
|
||||
return proto.api.UplinkFrameLog.toObject(opt_includeInstance, this);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Static version of the {@see toObject} method.
|
||||
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
||||
* the JSPB instance for transitional soy proto support:
|
||||
* http://goto/soy-param-migration
|
||||
* @param {!proto.api.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) {
|
||||
var f, obj = {
|
||||
phyPayload: msg.getPhyPayload_asB64(),
|
||||
txInfo: (f = msg.getTxInfo()) && gw_gw_pb.UplinkTxInfo.toObject(includeInstance, f),
|
||||
rxInfoList: jspb.Message.toObjectList(msg.getRxInfoList(),
|
||||
gw_gw_pb.UplinkRxInfo.toObject, includeInstance),
|
||||
mType: jspb.Message.getFieldWithDefault(msg, 4, 0),
|
||||
devAddr: jspb.Message.getFieldWithDefault(msg, 5, ""),
|
||||
devEui: jspb.Message.getFieldWithDefault(msg, 6, ""),
|
||||
time: (f = msg.getTime()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
|
||||
plaintextFOpts: jspb.Message.getBooleanFieldWithDefault(msg, 8, false),
|
||||
plaintextFrmPayload: jspb.Message.getBooleanFieldWithDefault(msg, 9, false)
|
||||
};
|
||||
|
||||
if (includeInstance) {
|
||||
obj.$jspbMessageInstance = msg;
|
||||
}
|
||||
return obj;
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Deserializes binary data (in protobuf wire format).
|
||||
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
||||
* @return {!proto.api.UplinkFrameLog}
|
||||
*/
|
||||
proto.api.UplinkFrameLog.deserializeBinary = function(bytes) {
|
||||
var reader = new jspb.BinaryReader(bytes);
|
||||
var msg = new proto.api.UplinkFrameLog;
|
||||
return proto.api.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 {!jspb.BinaryReader} reader The BinaryReader to use.
|
||||
* @return {!proto.api.UplinkFrameLog}
|
||||
*/
|
||||
proto.api.UplinkFrameLog.deserializeBinaryFromReader = function(msg, reader) {
|
||||
while (reader.nextField()) {
|
||||
if (reader.isEndGroup()) {
|
||||
break;
|
||||
}
|
||||
var field = reader.getFieldNumber();
|
||||
switch (field) {
|
||||
case 1:
|
||||
var value = /** @type {!Uint8Array} */ (reader.readBytes());
|
||||
msg.setPhyPayload(value);
|
||||
break;
|
||||
case 2:
|
||||
var value = new gw_gw_pb.UplinkTxInfo;
|
||||
reader.readMessage(value,gw_gw_pb.UplinkTxInfo.deserializeBinaryFromReader);
|
||||
msg.setTxInfo(value);
|
||||
break;
|
||||
case 3:
|
||||
var value = new gw_gw_pb.UplinkRxInfo;
|
||||
reader.readMessage(value,gw_gw_pb.UplinkRxInfo.deserializeBinaryFromReader);
|
||||
msg.addRxInfo(value);
|
||||
break;
|
||||
case 4:
|
||||
var value = /** @type {!proto.common.MType} */ (reader.readEnum());
|
||||
msg.setMType(value);
|
||||
break;
|
||||
case 5:
|
||||
var value = /** @type {string} */ (reader.readString());
|
||||
msg.setDevAddr(value);
|
||||
break;
|
||||
case 6:
|
||||
var value = /** @type {string} */ (reader.readString());
|
||||
msg.setDevEui(value);
|
||||
break;
|
||||
case 7:
|
||||
var value = new google_protobuf_timestamp_pb.Timestamp;
|
||||
reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
|
||||
msg.setTime(value);
|
||||
break;
|
||||
case 8:
|
||||
var value = /** @type {boolean} */ (reader.readBool());
|
||||
msg.setPlaintextFOpts(value);
|
||||
break;
|
||||
case 9:
|
||||
var value = /** @type {boolean} */ (reader.readBool());
|
||||
msg.setPlaintextFrmPayload(value);
|
||||
break;
|
||||
default:
|
||||
reader.skipField();
|
||||
break;
|
||||
}
|
||||
}
|
||||
return msg;
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Serializes the message to binary data (in protobuf wire format).
|
||||
* @return {!Uint8Array}
|
||||
*/
|
||||
proto.api.UplinkFrameLog.prototype.serializeBinary = function() {
|
||||
var writer = new jspb.BinaryWriter();
|
||||
proto.api.UplinkFrameLog.serializeBinaryToWriter(this, writer);
|
||||
return writer.getResultBuffer();
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Serializes the given message to binary data (in protobuf wire
|
||||
* format), writing to the given BinaryWriter.
|
||||
* @param {!proto.api.UplinkFrameLog} message
|
||||
* @param {!jspb.BinaryWriter} writer
|
||||
* @suppress {unusedLocalVariables} f is only used for nested messages
|
||||
*/
|
||||
proto.api.UplinkFrameLog.serializeBinaryToWriter = function(message, writer) {
|
||||
var f = undefined;
|
||||
f = message.getPhyPayload_asU8();
|
||||
if (f.length > 0) {
|
||||
writer.writeBytes(
|
||||
1,
|
||||
f
|
||||
);
|
||||
}
|
||||
f = message.getTxInfo();
|
||||
if (f != null) {
|
||||
writer.writeMessage(
|
||||
2,
|
||||
f,
|
||||
gw_gw_pb.UplinkTxInfo.serializeBinaryToWriter
|
||||
);
|
||||
}
|
||||
f = message.getRxInfoList();
|
||||
if (f.length > 0) {
|
||||
writer.writeRepeatedMessage(
|
||||
3,
|
||||
f,
|
||||
gw_gw_pb.UplinkRxInfo.serializeBinaryToWriter
|
||||
);
|
||||
}
|
||||
f = message.getMType();
|
||||
if (f !== 0.0) {
|
||||
writer.writeEnum(
|
||||
4,
|
||||
f
|
||||
);
|
||||
}
|
||||
f = message.getDevAddr();
|
||||
if (f.length > 0) {
|
||||
writer.writeString(
|
||||
5,
|
||||
f
|
||||
);
|
||||
}
|
||||
f = message.getDevEui();
|
||||
if (f.length > 0) {
|
||||
writer.writeString(
|
||||
6,
|
||||
f
|
||||
);
|
||||
}
|
||||
f = message.getTime();
|
||||
if (f != null) {
|
||||
writer.writeMessage(
|
||||
7,
|
||||
f,
|
||||
google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
|
||||
);
|
||||
}
|
||||
f = message.getPlaintextFOpts();
|
||||
if (f) {
|
||||
writer.writeBool(
|
||||
8,
|
||||
f
|
||||
);
|
||||
}
|
||||
f = message.getPlaintextFrmPayload();
|
||||
if (f) {
|
||||
writer.writeBool(
|
||||
9,
|
||||
f
|
||||
);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* optional bytes phy_payload = 1;
|
||||
* @return {string}
|
||||
*/
|
||||
proto.api.UplinkFrameLog.prototype.getPhyPayload = function() {
|
||||
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* optional bytes phy_payload = 1;
|
||||
* This is a type-conversion wrapper around `getPhyPayload()`
|
||||
* @return {string}
|
||||
*/
|
||||
proto.api.UplinkFrameLog.prototype.getPhyPayload_asB64 = function() {
|
||||
return /** @type {string} */ (jspb.Message.bytesAsB64(
|
||||
this.getPhyPayload()));
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* optional bytes phy_payload = 1;
|
||||
* Note that Uint8Array is not supported on all browsers.
|
||||
* @see http://caniuse.com/Uint8Array
|
||||
* This is a type-conversion wrapper around `getPhyPayload()`
|
||||
* @return {!Uint8Array}
|
||||
*/
|
||||
proto.api.UplinkFrameLog.prototype.getPhyPayload_asU8 = function() {
|
||||
return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
|
||||
this.getPhyPayload()));
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @param {!(string|Uint8Array)} value
|
||||
* @return {!proto.api.UplinkFrameLog} returns this
|
||||
*/
|
||||
proto.api.UplinkFrameLog.prototype.setPhyPayload = function(value) {
|
||||
return jspb.Message.setProto3BytesField(this, 1, value);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* optional gw.UplinkTxInfo tx_info = 2;
|
||||
* @return {?proto.gw.UplinkTxInfo}
|
||||
*/
|
||||
proto.api.UplinkFrameLog.prototype.getTxInfo = function() {
|
||||
return /** @type{?proto.gw.UplinkTxInfo} */ (
|
||||
jspb.Message.getWrapperField(this, gw_gw_pb.UplinkTxInfo, 2));
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @param {?proto.gw.UplinkTxInfo|undefined} value
|
||||
* @return {!proto.api.UplinkFrameLog} returns this
|
||||
*/
|
||||
proto.api.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
|
||||
*/
|
||||
proto.api.UplinkFrameLog.prototype.clearTxInfo = function() {
|
||||
return this.setTxInfo(undefined);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Returns whether this field is set.
|
||||
* @return {boolean}
|
||||
*/
|
||||
proto.api.UplinkFrameLog.prototype.hasTxInfo = function() {
|
||||
return jspb.Message.getField(this, 2) != null;
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* repeated gw.UplinkRxInfo rx_info = 3;
|
||||
* @return {!Array<!proto.gw.UplinkRxInfo>}
|
||||
*/
|
||||
proto.api.UplinkFrameLog.prototype.getRxInfoList = function() {
|
||||
return /** @type{!Array<!proto.gw.UplinkRxInfo>} */ (
|
||||
jspb.Message.getRepeatedWrapperField(this, gw_gw_pb.UplinkRxInfo, 3));
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @param {!Array<!proto.gw.UplinkRxInfo>} value
|
||||
* @return {!proto.api.UplinkFrameLog} returns this
|
||||
*/
|
||||
proto.api.UplinkFrameLog.prototype.setRxInfoList = function(value) {
|
||||
return jspb.Message.setRepeatedWrapperField(this, 3, value);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @param {!proto.gw.UplinkRxInfo=} opt_value
|
||||
* @param {number=} opt_index
|
||||
* @return {!proto.gw.UplinkRxInfo}
|
||||
*/
|
||||
proto.api.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
|
||||
*/
|
||||
proto.api.UplinkFrameLog.prototype.clearRxInfoList = function() {
|
||||
return this.setRxInfoList([]);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* optional common.MType m_type = 4;
|
||||
* @return {!proto.common.MType}
|
||||
*/
|
||||
proto.api.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
|
||||
*/
|
||||
proto.api.UplinkFrameLog.prototype.setMType = function(value) {
|
||||
return jspb.Message.setProto3EnumField(this, 4, value);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* optional string dev_addr = 5;
|
||||
* @return {string}
|
||||
*/
|
||||
proto.api.UplinkFrameLog.prototype.getDevAddr = function() {
|
||||
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @param {string} value
|
||||
* @return {!proto.api.UplinkFrameLog} returns this
|
||||
*/
|
||||
proto.api.UplinkFrameLog.prototype.setDevAddr = function(value) {
|
||||
return jspb.Message.setProto3StringField(this, 5, value);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* optional string dev_eui = 6;
|
||||
* @return {string}
|
||||
*/
|
||||
proto.api.UplinkFrameLog.prototype.getDevEui = function() {
|
||||
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @param {string} value
|
||||
* @return {!proto.api.UplinkFrameLog} returns this
|
||||
*/
|
||||
proto.api.UplinkFrameLog.prototype.setDevEui = function(value) {
|
||||
return jspb.Message.setProto3StringField(this, 6, value);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* optional google.protobuf.Timestamp time = 7;
|
||||
* @return {?proto.google.protobuf.Timestamp}
|
||||
*/
|
||||
proto.api.UplinkFrameLog.prototype.getTime = function() {
|
||||
return /** @type{?proto.google.protobuf.Timestamp} */ (
|
||||
jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 7));
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @param {?proto.google.protobuf.Timestamp|undefined} value
|
||||
* @return {!proto.api.UplinkFrameLog} returns this
|
||||
*/
|
||||
proto.api.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
|
||||
*/
|
||||
proto.api.UplinkFrameLog.prototype.clearTime = function() {
|
||||
return this.setTime(undefined);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Returns whether this field is set.
|
||||
* @return {boolean}
|
||||
*/
|
||||
proto.api.UplinkFrameLog.prototype.hasTime = function() {
|
||||
return jspb.Message.getField(this, 7) != null;
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* optional bool plaintext_f_opts = 8;
|
||||
* @return {boolean}
|
||||
*/
|
||||
proto.api.UplinkFrameLog.prototype.getPlaintextFOpts = function() {
|
||||
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 8, false));
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @param {boolean} value
|
||||
* @return {!proto.api.UplinkFrameLog} returns this
|
||||
*/
|
||||
proto.api.UplinkFrameLog.prototype.setPlaintextFOpts = function(value) {
|
||||
return jspb.Message.setProto3BooleanField(this, 8, value);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* optional bool plaintext_frm_payload = 9;
|
||||
* @return {boolean}
|
||||
*/
|
||||
proto.api.UplinkFrameLog.prototype.getPlaintextFrmPayload = function() {
|
||||
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 9, false));
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @param {boolean} value
|
||||
* @return {!proto.api.UplinkFrameLog} returns this
|
||||
*/
|
||||
proto.api.UplinkFrameLog.prototype.setPlaintextFrmPayload = function(value) {
|
||||
return jspb.Message.setProto3BooleanField(this, 9, value);
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
if (jspb.Message.GENERATE_TO_OBJECT) {
|
||||
/**
|
||||
* Creates an object representation of this proto.
|
||||
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
||||
* Optional fields that are not set will be set to undefined.
|
||||
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
||||
* For the list of reserved names please see:
|
||||
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
||||
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
||||
* JSPB instance for transitional soy proto support:
|
||||
* http://goto/soy-param-migration
|
||||
* @return {!Object}
|
||||
*/
|
||||
proto.api.DownlinkFrameLog.prototype.toObject = function(opt_includeInstance) {
|
||||
return proto.api.DownlinkFrameLog.toObject(opt_includeInstance, this);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Static version of the {@see toObject} method.
|
||||
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
||||
* the JSPB instance for transitional soy proto support:
|
||||
* http://goto/soy-param-migration
|
||||
* @param {!proto.api.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) {
|
||||
var f, obj = {
|
||||
time: (f = msg.getTime()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
|
||||
phyPayload: msg.getPhyPayload_asB64(),
|
||||
txInfo: (f = msg.getTxInfo()) && gw_gw_pb.DownlinkTxInfo.toObject(includeInstance, f),
|
||||
downlinkId: jspb.Message.getFieldWithDefault(msg, 4, 0),
|
||||
gatewayId: jspb.Message.getFieldWithDefault(msg, 5, ""),
|
||||
mType: jspb.Message.getFieldWithDefault(msg, 6, 0),
|
||||
devAddr: jspb.Message.getFieldWithDefault(msg, 7, ""),
|
||||
devEui: jspb.Message.getFieldWithDefault(msg, 8, ""),
|
||||
plaintextFOpts: jspb.Message.getBooleanFieldWithDefault(msg, 9, false),
|
||||
plaintextFrmPayload: jspb.Message.getBooleanFieldWithDefault(msg, 10, false)
|
||||
};
|
||||
|
||||
if (includeInstance) {
|
||||
obj.$jspbMessageInstance = msg;
|
||||
}
|
||||
return obj;
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Deserializes binary data (in protobuf wire format).
|
||||
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
||||
* @return {!proto.api.DownlinkFrameLog}
|
||||
*/
|
||||
proto.api.DownlinkFrameLog.deserializeBinary = function(bytes) {
|
||||
var reader = new jspb.BinaryReader(bytes);
|
||||
var msg = new proto.api.DownlinkFrameLog;
|
||||
return proto.api.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 {!jspb.BinaryReader} reader The BinaryReader to use.
|
||||
* @return {!proto.api.DownlinkFrameLog}
|
||||
*/
|
||||
proto.api.DownlinkFrameLog.deserializeBinaryFromReader = function(msg, reader) {
|
||||
while (reader.nextField()) {
|
||||
if (reader.isEndGroup()) {
|
||||
break;
|
||||
}
|
||||
var field = reader.getFieldNumber();
|
||||
switch (field) {
|
||||
case 1:
|
||||
var value = new google_protobuf_timestamp_pb.Timestamp;
|
||||
reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
|
||||
msg.setTime(value);
|
||||
break;
|
||||
case 2:
|
||||
var value = /** @type {!Uint8Array} */ (reader.readBytes());
|
||||
msg.setPhyPayload(value);
|
||||
break;
|
||||
case 3:
|
||||
var value = new gw_gw_pb.DownlinkTxInfo;
|
||||
reader.readMessage(value,gw_gw_pb.DownlinkTxInfo.deserializeBinaryFromReader);
|
||||
msg.setTxInfo(value);
|
||||
break;
|
||||
case 4:
|
||||
var value = /** @type {number} */ (reader.readUint32());
|
||||
msg.setDownlinkId(value);
|
||||
break;
|
||||
case 5:
|
||||
var value = /** @type {string} */ (reader.readString());
|
||||
msg.setGatewayId(value);
|
||||
break;
|
||||
case 6:
|
||||
var value = /** @type {!proto.common.MType} */ (reader.readEnum());
|
||||
msg.setMType(value);
|
||||
break;
|
||||
case 7:
|
||||
var value = /** @type {string} */ (reader.readString());
|
||||
msg.setDevAddr(value);
|
||||
break;
|
||||
case 8:
|
||||
var value = /** @type {string} */ (reader.readString());
|
||||
msg.setDevEui(value);
|
||||
break;
|
||||
case 9:
|
||||
var value = /** @type {boolean} */ (reader.readBool());
|
||||
msg.setPlaintextFOpts(value);
|
||||
break;
|
||||
case 10:
|
||||
var value = /** @type {boolean} */ (reader.readBool());
|
||||
msg.setPlaintextFrmPayload(value);
|
||||
break;
|
||||
default:
|
||||
reader.skipField();
|
||||
break;
|
||||
}
|
||||
}
|
||||
return msg;
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Serializes the message to binary data (in protobuf wire format).
|
||||
* @return {!Uint8Array}
|
||||
*/
|
||||
proto.api.DownlinkFrameLog.prototype.serializeBinary = function() {
|
||||
var writer = new jspb.BinaryWriter();
|
||||
proto.api.DownlinkFrameLog.serializeBinaryToWriter(this, writer);
|
||||
return writer.getResultBuffer();
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Serializes the given message to binary data (in protobuf wire
|
||||
* format), writing to the given BinaryWriter.
|
||||
* @param {!proto.api.DownlinkFrameLog} message
|
||||
* @param {!jspb.BinaryWriter} writer
|
||||
* @suppress {unusedLocalVariables} f is only used for nested messages
|
||||
*/
|
||||
proto.api.DownlinkFrameLog.serializeBinaryToWriter = function(message, writer) {
|
||||
var f = undefined;
|
||||
f = message.getTime();
|
||||
if (f != null) {
|
||||
writer.writeMessage(
|
||||
1,
|
||||
f,
|
||||
google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
|
||||
);
|
||||
}
|
||||
f = message.getPhyPayload_asU8();
|
||||
if (f.length > 0) {
|
||||
writer.writeBytes(
|
||||
2,
|
||||
f
|
||||
);
|
||||
}
|
||||
f = message.getTxInfo();
|
||||
if (f != null) {
|
||||
writer.writeMessage(
|
||||
3,
|
||||
f,
|
||||
gw_gw_pb.DownlinkTxInfo.serializeBinaryToWriter
|
||||
);
|
||||
}
|
||||
f = message.getDownlinkId();
|
||||
if (f !== 0) {
|
||||
writer.writeUint32(
|
||||
4,
|
||||
f
|
||||
);
|
||||
}
|
||||
f = message.getGatewayId();
|
||||
if (f.length > 0) {
|
||||
writer.writeString(
|
||||
5,
|
||||
f
|
||||
);
|
||||
}
|
||||
f = message.getMType();
|
||||
if (f !== 0.0) {
|
||||
writer.writeEnum(
|
||||
6,
|
||||
f
|
||||
);
|
||||
}
|
||||
f = message.getDevAddr();
|
||||
if (f.length > 0) {
|
||||
writer.writeString(
|
||||
7,
|
||||
f
|
||||
);
|
||||
}
|
||||
f = message.getDevEui();
|
||||
if (f.length > 0) {
|
||||
writer.writeString(
|
||||
8,
|
||||
f
|
||||
);
|
||||
}
|
||||
f = message.getPlaintextFOpts();
|
||||
if (f) {
|
||||
writer.writeBool(
|
||||
9,
|
||||
f
|
||||
);
|
||||
}
|
||||
f = message.getPlaintextFrmPayload();
|
||||
if (f) {
|
||||
writer.writeBool(
|
||||
10,
|
||||
f
|
||||
);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* optional google.protobuf.Timestamp time = 1;
|
||||
* @return {?proto.google.protobuf.Timestamp}
|
||||
*/
|
||||
proto.api.DownlinkFrameLog.prototype.getTime = function() {
|
||||
return /** @type{?proto.google.protobuf.Timestamp} */ (
|
||||
jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 1));
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @param {?proto.google.protobuf.Timestamp|undefined} value
|
||||
* @return {!proto.api.DownlinkFrameLog} returns this
|
||||
*/
|
||||
proto.api.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
|
||||
*/
|
||||
proto.api.DownlinkFrameLog.prototype.clearTime = function() {
|
||||
return this.setTime(undefined);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Returns whether this field is set.
|
||||
* @return {boolean}
|
||||
*/
|
||||
proto.api.DownlinkFrameLog.prototype.hasTime = function() {
|
||||
return jspb.Message.getField(this, 1) != null;
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* optional bytes phy_payload = 2;
|
||||
* @return {string}
|
||||
*/
|
||||
proto.api.DownlinkFrameLog.prototype.getPhyPayload = function() {
|
||||
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* optional bytes phy_payload = 2;
|
||||
* This is a type-conversion wrapper around `getPhyPayload()`
|
||||
* @return {string}
|
||||
*/
|
||||
proto.api.DownlinkFrameLog.prototype.getPhyPayload_asB64 = function() {
|
||||
return /** @type {string} */ (jspb.Message.bytesAsB64(
|
||||
this.getPhyPayload()));
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* optional bytes phy_payload = 2;
|
||||
* Note that Uint8Array is not supported on all browsers.
|
||||
* @see http://caniuse.com/Uint8Array
|
||||
* This is a type-conversion wrapper around `getPhyPayload()`
|
||||
* @return {!Uint8Array}
|
||||
*/
|
||||
proto.api.DownlinkFrameLog.prototype.getPhyPayload_asU8 = function() {
|
||||
return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
|
||||
this.getPhyPayload()));
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @param {!(string|Uint8Array)} value
|
||||
* @return {!proto.api.DownlinkFrameLog} returns this
|
||||
*/
|
||||
proto.api.DownlinkFrameLog.prototype.setPhyPayload = function(value) {
|
||||
return jspb.Message.setProto3BytesField(this, 2, value);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* optional gw.DownlinkTxInfo tx_info = 3;
|
||||
* @return {?proto.gw.DownlinkTxInfo}
|
||||
*/
|
||||
proto.api.DownlinkFrameLog.prototype.getTxInfo = function() {
|
||||
return /** @type{?proto.gw.DownlinkTxInfo} */ (
|
||||
jspb.Message.getWrapperField(this, gw_gw_pb.DownlinkTxInfo, 3));
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @param {?proto.gw.DownlinkTxInfo|undefined} value
|
||||
* @return {!proto.api.DownlinkFrameLog} returns this
|
||||
*/
|
||||
proto.api.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
|
||||
*/
|
||||
proto.api.DownlinkFrameLog.prototype.clearTxInfo = function() {
|
||||
return this.setTxInfo(undefined);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Returns whether this field is set.
|
||||
* @return {boolean}
|
||||
*/
|
||||
proto.api.DownlinkFrameLog.prototype.hasTxInfo = function() {
|
||||
return jspb.Message.getField(this, 3) != null;
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* optional uint32 downlink_id = 4;
|
||||
* @return {number}
|
||||
*/
|
||||
proto.api.DownlinkFrameLog.prototype.getDownlinkId = function() {
|
||||
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @param {number} value
|
||||
* @return {!proto.api.DownlinkFrameLog} returns this
|
||||
*/
|
||||
proto.api.DownlinkFrameLog.prototype.setDownlinkId = function(value) {
|
||||
return jspb.Message.setProto3IntField(this, 4, value);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* optional string gateway_id = 5;
|
||||
* @return {string}
|
||||
*/
|
||||
proto.api.DownlinkFrameLog.prototype.getGatewayId = function() {
|
||||
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @param {string} value
|
||||
* @return {!proto.api.DownlinkFrameLog} returns this
|
||||
*/
|
||||
proto.api.DownlinkFrameLog.prototype.setGatewayId = function(value) {
|
||||
return jspb.Message.setProto3StringField(this, 5, value);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* optional common.MType m_type = 6;
|
||||
* @return {!proto.common.MType}
|
||||
*/
|
||||
proto.api.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
|
||||
*/
|
||||
proto.api.DownlinkFrameLog.prototype.setMType = function(value) {
|
||||
return jspb.Message.setProto3EnumField(this, 6, value);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* optional string dev_addr = 7;
|
||||
* @return {string}
|
||||
*/
|
||||
proto.api.DownlinkFrameLog.prototype.getDevAddr = function() {
|
||||
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @param {string} value
|
||||
* @return {!proto.api.DownlinkFrameLog} returns this
|
||||
*/
|
||||
proto.api.DownlinkFrameLog.prototype.setDevAddr = function(value) {
|
||||
return jspb.Message.setProto3StringField(this, 7, value);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* optional string dev_eui = 8;
|
||||
* @return {string}
|
||||
*/
|
||||
proto.api.DownlinkFrameLog.prototype.getDevEui = function() {
|
||||
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @param {string} value
|
||||
* @return {!proto.api.DownlinkFrameLog} returns this
|
||||
*/
|
||||
proto.api.DownlinkFrameLog.prototype.setDevEui = function(value) {
|
||||
return jspb.Message.setProto3StringField(this, 8, value);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* optional bool plaintext_f_opts = 9;
|
||||
* @return {boolean}
|
||||
*/
|
||||
proto.api.DownlinkFrameLog.prototype.getPlaintextFOpts = function() {
|
||||
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 9, false));
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @param {boolean} value
|
||||
* @return {!proto.api.DownlinkFrameLog} returns this
|
||||
*/
|
||||
proto.api.DownlinkFrameLog.prototype.setPlaintextFOpts = function(value) {
|
||||
return jspb.Message.setProto3BooleanField(this, 9, value);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* optional bool plaintext_frm_payload = 10;
|
||||
* @return {boolean}
|
||||
*/
|
||||
proto.api.DownlinkFrameLog.prototype.getPlaintextFrmPayload = function() {
|
||||
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 10, false));
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @param {boolean} value
|
||||
* @return {!proto.api.DownlinkFrameLog} returns this
|
||||
*/
|
||||
proto.api.DownlinkFrameLog.prototype.setPlaintextFrmPayload = function(value) {
|
||||
return jspb.Message.setProto3BooleanField(this, 10, value);
|
||||
};
|
||||
|
||||
|
||||
goog.object.extend(exports, proto.api);
|
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);
|
||||
|
4
api/md/Makefile
vendored
4
api/md/Makefile
vendored
@ -10,9 +10,9 @@ api:
|
||||
api/application.proto \
|
||||
api/device.proto \
|
||||
api/device_profile.proto \
|
||||
api/frame_log.proto \
|
||||
api/device_profile_template.proto \
|
||||
api/gateway.proto \
|
||||
api/multicast_group.proto \
|
||||
api/relay.proto \
|
||||
api/tenant.proto \
|
||||
api/user.proto
|
||||
|
||||
|
418
api/md/api/api.md
vendored
418
api/md/api/api.md
vendored
@ -160,9 +160,20 @@
|
||||
|
||||
- [DeviceProfileService](#api-DeviceProfileService)
|
||||
|
||||
- [api/frame_log.proto](#api_frame_log-proto)
|
||||
- [DownlinkFrameLog](#api-DownlinkFrameLog)
|
||||
- [UplinkFrameLog](#api-UplinkFrameLog)
|
||||
- [api/device_profile_template.proto](#api_device_profile_template-proto)
|
||||
- [CreateDeviceProfileTemplateRequest](#api-CreateDeviceProfileTemplateRequest)
|
||||
- [DeleteDeviceProfileTemplateRequest](#api-DeleteDeviceProfileTemplateRequest)
|
||||
- [DeviceProfileTemplate](#api-DeviceProfileTemplate)
|
||||
- [DeviceProfileTemplate.MeasurementsEntry](#api-DeviceProfileTemplate-MeasurementsEntry)
|
||||
- [DeviceProfileTemplate.TagsEntry](#api-DeviceProfileTemplate-TagsEntry)
|
||||
- [DeviceProfileTemplateListItem](#api-DeviceProfileTemplateListItem)
|
||||
- [GetDeviceProfileTemplateRequest](#api-GetDeviceProfileTemplateRequest)
|
||||
- [GetDeviceProfileTemplateResponse](#api-GetDeviceProfileTemplateResponse)
|
||||
- [ListDeviceProfileTemplatesRequest](#api-ListDeviceProfileTemplatesRequest)
|
||||
- [ListDeviceProfileTemplatesResponse](#api-ListDeviceProfileTemplatesResponse)
|
||||
- [UpdateDeviceProfileTemplateRequest](#api-UpdateDeviceProfileTemplateRequest)
|
||||
|
||||
- [DeviceProfileTemplateService](#api-DeviceProfileTemplateService)
|
||||
|
||||
- [api/gateway.proto](#api_gateway-proto)
|
||||
- [CreateGatewayRequest](#api-CreateGatewayRequest)
|
||||
@ -213,6 +224,18 @@
|
||||
|
||||
- [MulticastGroupService](#api-MulticastGroupService)
|
||||
|
||||
- [api/relay.proto](#api_relay-proto)
|
||||
- [AddRelayDeviceRequest](#api-AddRelayDeviceRequest)
|
||||
- [ListRelayDevicesRequest](#api-ListRelayDevicesRequest)
|
||||
- [ListRelayDevicesResponse](#api-ListRelayDevicesResponse)
|
||||
- [ListRelaysRequest](#api-ListRelaysRequest)
|
||||
- [ListRelaysResponse](#api-ListRelaysResponse)
|
||||
- [RelayDeviceListItem](#api-RelayDeviceListItem)
|
||||
- [RelayListItem](#api-RelayListItem)
|
||||
- [RemoveRelayDeviceRequest](#api-RemoveRelayDeviceRequest)
|
||||
|
||||
- [RelayService](#api-RelayService)
|
||||
|
||||
- [api/tenant.proto](#api_tenant-proto)
|
||||
- [AddTenantUserRequest](#api-AddTenantUserRequest)
|
||||
- [CreateTenantRequest](#api-CreateTenantRequest)
|
||||
@ -2793,54 +2816,219 @@ device-profiles.
|
||||
|
||||
|
||||
|
||||
<a name="api_frame_log-proto"></a>
|
||||
<a name="api_device_profile_template-proto"></a>
|
||||
<p align="right"><a href="#top">Top</a></p>
|
||||
|
||||
## api/frame_log.proto
|
||||
## api/device_profile_template.proto
|
||||
|
||||
|
||||
|
||||
<a name="api-DownlinkFrameLog"></a>
|
||||
<a name="api-CreateDeviceProfileTemplateRequest"></a>
|
||||
|
||||
### DownlinkFrameLog
|
||||
### CreateDeviceProfileTemplateRequest
|
||||
|
||||
|
||||
|
||||
| Field | Type | Label | Description |
|
||||
| ----- | ---- | ----- | ----------- |
|
||||
| time | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | Time. |
|
||||
| phy_payload | [bytes](#bytes) | | PHYPayload. |
|
||||
| tx_info | [gw.DownlinkTxInfo](#gw-DownlinkTxInfo) | | TX meta-data. |
|
||||
| downlink_id | [uint32](#uint32) | | Downlink ID. |
|
||||
| gateway_id | [string](#string) | | Gateway ID (EUI64). |
|
||||
| m_type | [common.MType](#common-MType) | | Message type. |
|
||||
| dev_addr | [string](#string) | | Device address (optional). |
|
||||
| dev_eui | [string](#string) | | Device EUI (optional). |
|
||||
| plaintext_f_opts | [bool](#bool) | | Plaintext f_opts mac-commands. |
|
||||
| plaintext_frm_payload | [bool](#bool) | | Plaintext frm_payload. |
|
||||
| device_profile_template | [DeviceProfileTemplate](#api-DeviceProfileTemplate) | | Object to create. |
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<a name="api-UplinkFrameLog"></a>
|
||||
<a name="api-DeleteDeviceProfileTemplateRequest"></a>
|
||||
|
||||
### UplinkFrameLog
|
||||
### DeleteDeviceProfileTemplateRequest
|
||||
|
||||
|
||||
|
||||
| Field | Type | Label | Description |
|
||||
| ----- | ---- | ----- | ----------- |
|
||||
| phy_payload | [bytes](#bytes) | | PHYPayload. |
|
||||
| tx_info | [gw.UplinkTxInfo](#gw-UplinkTxInfo) | | TX meta-data. |
|
||||
| rx_info | [gw.UplinkRxInfo](#gw-UplinkRxInfo) | repeated | RX meta-data. |
|
||||
| m_type | [common.MType](#common-MType) | | Message type. |
|
||||
| dev_addr | [string](#string) | | Device address (optional). |
|
||||
| dev_eui | [string](#string) | | Device EUI (optional). |
|
||||
| time | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | Time. |
|
||||
| plaintext_f_opts | [bool](#bool) | | Plaintext f_opts mac-commands. |
|
||||
| plaintext_frm_payload | [bool](#bool) | | Plaintext frm_payload. |
|
||||
| id | [string](#string) | | ID. |
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<a name="api-DeviceProfileTemplate"></a>
|
||||
|
||||
### DeviceProfileTemplate
|
||||
|
||||
|
||||
|
||||
| Field | Type | Label | Description |
|
||||
| ----- | ---- | ----- | ----------- |
|
||||
| id | [string](#string) | | Device-profile template ID. |
|
||||
| name | [string](#string) | | Name. |
|
||||
| description | [string](#string) | | Description. |
|
||||
| vendor | [string](#string) | | Vendor. |
|
||||
| firmware | [string](#string) | | Firmware. |
|
||||
| region | [common.Region](#common-Region) | | Region. |
|
||||
| mac_version | [common.MacVersion](#common-MacVersion) | | LoRaWAN mac-version. |
|
||||
| reg_params_revision | [common.RegParamsRevision](#common-RegParamsRevision) | | Regional parameters revision. |
|
||||
| adr_algorithm_id | [string](#string) | | ADR algorithm ID. |
|
||||
| payload_codec_runtime | [CodecRuntime](#api-CodecRuntime) | | Payload codec runtime. |
|
||||
| payload_codec_script | [string](#string) | | Payload codec script. |
|
||||
| flush_queue_on_activate | [bool](#bool) | | Flush queue on device activation. |
|
||||
| uplink_interval | [uint32](#uint32) | | Uplink interval (seconds). This defines the expected uplink interval which the device uses for communication. When the uplink interval has expired and no uplink has been received, the device is considered inactive. |
|
||||
| device_status_req_interval | [uint32](#uint32) | | Device-status request interval (times / day). This defines the times per day that ChirpStack will request the device-status from the device. |
|
||||
| supports_otaa | [bool](#bool) | | Supports OTAA. |
|
||||
| supports_class_b | [bool](#bool) | | Supports Class B. |
|
||||
| supports_class_c | [bool](#bool) | | Supports Class-C. |
|
||||
| class_b_timeout | [uint32](#uint32) | | Class-B timeout (seconds). This is the maximum time ChirpStack will wait to receive an acknowledgement from the device (if requested). |
|
||||
| class_b_ping_slot_nb_k | [uint32](#uint32) | | Class-B ping-slots per beacon period. Valid options are: 0 - 7.
|
||||
|
||||
The actual number of ping-slots per beacon period equals to 2^k. |
|
||||
| class_b_ping_slot_dr | [uint32](#uint32) | | Class-B ping-slot DR. |
|
||||
| class_b_ping_slot_freq | [uint32](#uint32) | | Class-B ping-slot freq (Hz). |
|
||||
| class_c_timeout | [uint32](#uint32) | | Class-C timeout (seconds). This is the maximum time ChirpStack will wait to receive an acknowledgement from the device (if requested). |
|
||||
| abp_rx1_delay | [uint32](#uint32) | | RX1 delay (for ABP). |
|
||||
| abp_rx1_dr_offset | [uint32](#uint32) | | RX1 DR offset (for ABP). |
|
||||
| abp_rx2_dr | [uint32](#uint32) | | RX2 DR (for ABP). |
|
||||
| abp_rx2_freq | [uint32](#uint32) | | RX2 frequency (for ABP, Hz). |
|
||||
| tags | [DeviceProfileTemplate.TagsEntry](#api-DeviceProfileTemplate-TagsEntry) | repeated | User defined tags. |
|
||||
| measurements | [DeviceProfileTemplate.MeasurementsEntry](#api-DeviceProfileTemplate-MeasurementsEntry) | repeated | Measurements. If defined, ChirpStack will visualize these metrics in the web-interface. |
|
||||
| auto_detect_measurements | [bool](#bool) | | Auto-detect measurements. If set to true, measurements will be automatically added based on the keys of the decoded payload. In cases where the decoded payload contains random keys in the data, you want to set this to false. |
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<a name="api-DeviceProfileTemplate-MeasurementsEntry"></a>
|
||||
|
||||
### DeviceProfileTemplate.MeasurementsEntry
|
||||
|
||||
|
||||
|
||||
| Field | Type | Label | Description |
|
||||
| ----- | ---- | ----- | ----------- |
|
||||
| key | [string](#string) | | |
|
||||
| value | [Measurement](#api-Measurement) | | |
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<a name="api-DeviceProfileTemplate-TagsEntry"></a>
|
||||
|
||||
### DeviceProfileTemplate.TagsEntry
|
||||
|
||||
|
||||
|
||||
| Field | Type | Label | Description |
|
||||
| ----- | ---- | ----- | ----------- |
|
||||
| key | [string](#string) | | |
|
||||
| value | [string](#string) | | |
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<a name="api-DeviceProfileTemplateListItem"></a>
|
||||
|
||||
### DeviceProfileTemplateListItem
|
||||
|
||||
|
||||
|
||||
| Field | Type | Label | Description |
|
||||
| ----- | ---- | ----- | ----------- |
|
||||
| id | [string](#string) | | Device-profile template ID. |
|
||||
| created_at | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | Created at timestamp. |
|
||||
| updated_at | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | Last update timestamp. |
|
||||
| name | [string](#string) | | Name. |
|
||||
| vendor | [string](#string) | | Vendor. |
|
||||
| firmware | [string](#string) | | Firmware. |
|
||||
| region | [common.Region](#common-Region) | | Region. |
|
||||
| mac_version | [common.MacVersion](#common-MacVersion) | | LoRaWAN mac-version. |
|
||||
| reg_params_revision | [common.RegParamsRevision](#common-RegParamsRevision) | | Regional parameters revision. |
|
||||
| supports_otaa | [bool](#bool) | | Supports OTAA. |
|
||||
| supports_class_b | [bool](#bool) | | Supports Class-B. |
|
||||
| supports_class_c | [bool](#bool) | | Supports Class-C. |
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<a name="api-GetDeviceProfileTemplateRequest"></a>
|
||||
|
||||
### GetDeviceProfileTemplateRequest
|
||||
|
||||
|
||||
|
||||
| Field | Type | Label | Description |
|
||||
| ----- | ---- | ----- | ----------- |
|
||||
| id | [string](#string) | | ID. |
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<a name="api-GetDeviceProfileTemplateResponse"></a>
|
||||
|
||||
### GetDeviceProfileTemplateResponse
|
||||
|
||||
|
||||
|
||||
| Field | Type | Label | Description |
|
||||
| ----- | ---- | ----- | ----------- |
|
||||
| device_profile_template | [DeviceProfileTemplate](#api-DeviceProfileTemplate) | | Device-profile template object. |
|
||||
| created_at | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | Created at timestamp. |
|
||||
| updated_at | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | Last update timestamp. |
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<a name="api-ListDeviceProfileTemplatesRequest"></a>
|
||||
|
||||
### ListDeviceProfileTemplatesRequest
|
||||
|
||||
|
||||
|
||||
| Field | Type | Label | Description |
|
||||
| ----- | ---- | ----- | ----------- |
|
||||
| limit | [uint32](#uint32) | | Max number of device-profile templates to return in the result-set. |
|
||||
| offset | [uint32](#uint32) | | Offset in the result-set (for pagination). |
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<a name="api-ListDeviceProfileTemplatesResponse"></a>
|
||||
|
||||
### ListDeviceProfileTemplatesResponse
|
||||
|
||||
|
||||
|
||||
| Field | Type | Label | Description |
|
||||
| ----- | ---- | ----- | ----------- |
|
||||
| total_count | [uint32](#uint32) | | Total number of device-profile templates. |
|
||||
| result | [DeviceProfileTemplateListItem](#api-DeviceProfileTemplateListItem) | repeated | Result-set. |
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<a name="api-UpdateDeviceProfileTemplateRequest"></a>
|
||||
|
||||
### UpdateDeviceProfileTemplateRequest
|
||||
|
||||
|
||||
|
||||
| Field | Type | Label | Description |
|
||||
| ----- | ---- | ----- | ----------- |
|
||||
| device_profile_template | [DeviceProfileTemplate](#api-DeviceProfileTemplate) | | Object to update. |
|
||||
|
||||
|
||||
|
||||
@ -2852,6 +3040,20 @@ device-profiles.
|
||||
|
||||
|
||||
|
||||
|
||||
<a name="api-DeviceProfileTemplateService"></a>
|
||||
|
||||
### DeviceProfileTemplateService
|
||||
DeviceProfileTemplateService is the service providing API methods for managing device-profile templates.
|
||||
|
||||
| Method Name | Request Type | Response Type | Description |
|
||||
| ----------- | ------------ | ------------- | ------------|
|
||||
| Create | [CreateDeviceProfileTemplateRequest](#api-CreateDeviceProfileTemplateRequest) | [.google.protobuf.Empty](#google-protobuf-Empty) | Create the given device-profile template. |
|
||||
| Get | [GetDeviceProfileTemplateRequest](#api-GetDeviceProfileTemplateRequest) | [GetDeviceProfileTemplateResponse](#api-GetDeviceProfileTemplateResponse) | Get the device-profile template for the given ID. |
|
||||
| Update | [UpdateDeviceProfileTemplateRequest](#api-UpdateDeviceProfileTemplateRequest) | [.google.protobuf.Empty](#google-protobuf-Empty) | Update the given device-profile template. |
|
||||
| Delete | [DeleteDeviceProfileTemplateRequest](#api-DeleteDeviceProfileTemplateRequest) | [.google.protobuf.Empty](#google-protobuf-Empty) | Delete the device-profile template with the given ID. |
|
||||
| List | [ListDeviceProfileTemplatesRequest](#api-ListDeviceProfileTemplatesRequest) | [ListDeviceProfileTemplatesResponse](#api-ListDeviceProfileTemplatesResponse) | List the available device-profile templates. |
|
||||
|
||||
|
||||
|
||||
|
||||
@ -3571,6 +3773,166 @@ MulticastGroupService is the service managing multicast-groups.
|
||||
|
||||
|
||||
|
||||
<a name="api_relay-proto"></a>
|
||||
<p align="right"><a href="#top">Top</a></p>
|
||||
|
||||
## api/relay.proto
|
||||
|
||||
|
||||
|
||||
<a name="api-AddRelayDeviceRequest"></a>
|
||||
|
||||
### AddRelayDeviceRequest
|
||||
|
||||
|
||||
|
||||
| Field | Type | Label | Description |
|
||||
| ----- | ---- | ----- | ----------- |
|
||||
| relay_dev_eui | [string](#string) | | Relay DevEUI (EUI64). |
|
||||
| device_dev_eui | [string](#string) | | Device DevEUI (EUI64). |
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<a name="api-ListRelayDevicesRequest"></a>
|
||||
|
||||
### ListRelayDevicesRequest
|
||||
|
||||
|
||||
|
||||
| Field | Type | Label | Description |
|
||||
| ----- | ---- | ----- | ----------- |
|
||||
| limit | [uint32](#uint32) | | Max number of multicast groups to return in the result-set. |
|
||||
| offset | [uint32](#uint32) | | Offset in the result-set (for pagination). |
|
||||
| relay_dev_eui | [string](#string) | | Relay DevEUI (EUI64). |
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<a name="api-ListRelayDevicesResponse"></a>
|
||||
|
||||
### ListRelayDevicesResponse
|
||||
|
||||
|
||||
|
||||
| Field | Type | Label | Description |
|
||||
| ----- | ---- | ----- | ----------- |
|
||||
| total_count | [uint32](#uint32) | | Total number of devices. |
|
||||
| result | [RelayDeviceListItem](#api-RelayDeviceListItem) | repeated | Result-set. |
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<a name="api-ListRelaysRequest"></a>
|
||||
|
||||
### ListRelaysRequest
|
||||
|
||||
|
||||
|
||||
| Field | Type | Label | Description |
|
||||
| ----- | ---- | ----- | ----------- |
|
||||
| limit | [uint32](#uint32) | | Max number of devices to return in the result-set. |
|
||||
| offset | [uint32](#uint32) | | Offset in the result-set (for pagination). |
|
||||
| application_id | [string](#string) | | Application ID (UUID). |
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<a name="api-ListRelaysResponse"></a>
|
||||
|
||||
### ListRelaysResponse
|
||||
|
||||
|
||||
|
||||
| Field | Type | Label | Description |
|
||||
| ----- | ---- | ----- | ----------- |
|
||||
| total_count | [uint32](#uint32) | | Total number of relays. |
|
||||
| result | [RelayListItem](#api-RelayListItem) | repeated | Result-set. |
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<a name="api-RelayDeviceListItem"></a>
|
||||
|
||||
### RelayDeviceListItem
|
||||
|
||||
|
||||
|
||||
| Field | Type | Label | Description |
|
||||
| ----- | ---- | ----- | ----------- |
|
||||
| dev_eui | [string](#string) | | DevEUI (EUI64). |
|
||||
| created_at | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | Created at timestamp. |
|
||||
| name | [string](#string) | | Device name. |
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<a name="api-RelayListItem"></a>
|
||||
|
||||
### RelayListItem
|
||||
|
||||
|
||||
|
||||
| Field | Type | Label | Description |
|
||||
| ----- | ---- | ----- | ----------- |
|
||||
| dev_eui | [string](#string) | | DevEUI (EUI64). |
|
||||
| name | [string](#string) | | Name. |
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<a name="api-RemoveRelayDeviceRequest"></a>
|
||||
|
||||
### RemoveRelayDeviceRequest
|
||||
|
||||
|
||||
|
||||
| Field | Type | Label | Description |
|
||||
| ----- | ---- | ----- | ----------- |
|
||||
| relay_dev_eui | [string](#string) | | Relay DevEUI (EUI64). |
|
||||
| device_dev_eui | [string](#string) | | Device DevEUI (EUI64). |
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<a name="api-RelayService"></a>
|
||||
|
||||
### RelayService
|
||||
RelayService is the service providing API methos for managing relays.
|
||||
|
||||
| Method Name | Request Type | Response Type | Description |
|
||||
| ----------- | ------------ | ------------- | ------------|
|
||||
| List | [ListRelaysRequest](#api-ListRelaysRequest) | [ListRelaysResponse](#api-ListRelaysResponse) | List lists the relays for the given application id. |
|
||||
| AddDevice | [AddRelayDeviceRequest](#api-AddRelayDeviceRequest) | [.google.protobuf.Empty](#google-protobuf-Empty) | AddDevice adds the given device to the relay. |
|
||||
| RemoveDevice | [RemoveRelayDeviceRequest](#api-RemoveRelayDeviceRequest) | [.google.protobuf.Empty](#google-protobuf-Empty) | RemoveDevice removes the given device from the relay. |
|
||||
| ListDevices | [ListRelayDevicesRequest](#api-ListRelayDevicesRequest) | [ListRelayDevicesResponse](#api-ListRelayDevicesResponse) | ListDevices lists the devices for the given relay. |
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<a name="api_tenant-proto"></a>
|
||||
<p align="right"><a href="#top">Top</a></p>
|
||||
|
||||
|
74
api/proto/api/frame_log.proto
vendored
74
api/proto/api/frame_log.proto
vendored
@ -1,74 +0,0 @@
|
||||
syntax = "proto3";
|
||||
|
||||
package api;
|
||||
|
||||
option go_package = "github.com/chirpstack/chirpstack/api/go/v4/api";
|
||||
option java_package = "io.chirpstack.api";
|
||||
option java_multiple_files = true;
|
||||
option java_outer_classname = "FrameLogProto";
|
||||
option csharp_namespace = "Chirpstack.Api";
|
||||
|
||||
import "google/protobuf/timestamp.proto";
|
||||
import "common/common.proto";
|
||||
import "gw/gw.proto";
|
||||
|
||||
message UplinkFrameLog {
|
||||
// PHYPayload.
|
||||
bytes phy_payload = 1;
|
||||
|
||||
// TX meta-data.
|
||||
gw.UplinkTxInfo tx_info = 2;
|
||||
|
||||
// RX meta-data.
|
||||
repeated gw.UplinkRxInfo rx_info = 3;
|
||||
|
||||
// Message type.
|
||||
common.MType m_type = 4;
|
||||
|
||||
// Device address (optional).
|
||||
string dev_addr = 5;
|
||||
|
||||
// Device EUI (optional).
|
||||
string dev_eui = 6;
|
||||
|
||||
// Time.
|
||||
google.protobuf.Timestamp time = 7;
|
||||
|
||||
// Plaintext f_opts mac-commands.
|
||||
bool plaintext_f_opts = 8;
|
||||
|
||||
// Plaintext frm_payload.
|
||||
bool plaintext_frm_payload = 9;
|
||||
}
|
||||
|
||||
message DownlinkFrameLog {
|
||||
// Time.
|
||||
google.protobuf.Timestamp time = 1;
|
||||
|
||||
// PHYPayload.
|
||||
bytes phy_payload = 2;
|
||||
|
||||
// TX meta-data.
|
||||
gw.DownlinkTxInfo tx_info = 3;
|
||||
|
||||
// Downlink ID.
|
||||
uint32 downlink_id = 4;
|
||||
|
||||
// Gateway ID (EUI64).
|
||||
string gateway_id = 5;
|
||||
|
||||
// Message type.
|
||||
common.MType m_type = 6;
|
||||
|
||||
// Device address (optional).
|
||||
string dev_addr = 7;
|
||||
|
||||
// Device EUI (optional).
|
||||
string dev_eui = 8;
|
||||
|
||||
// Plaintext f_opts mac-commands.
|
||||
bool plaintext_f_opts = 9;
|
||||
|
||||
// Plaintext frm_payload.
|
||||
bool plaintext_frm_payload = 10;
|
||||
}
|
74
api/proto/streams/frames.proto
vendored
Normal file
74
api/proto/streams/frames.proto
vendored
Normal file
@ -0,0 +1,74 @@
|
||||
syntax = "proto3";
|
||||
|
||||
package streams;
|
||||
|
||||
option go_package = "github.com/chirpstack/chirpstack/api/go/v4/streams";
|
||||
option java_package = "io.chirpstack.api.streams";
|
||||
option java_multiple_files = true;
|
||||
option java_outer_classname = "FramesProto";
|
||||
option csharp_namespace = "Chirpstack.Streams";
|
||||
|
||||
import "google/protobuf/timestamp.proto";
|
||||
import "common/common.proto";
|
||||
import "gw/gw.proto";
|
||||
|
||||
message UplinkFrameLog {
|
||||
// PHYPayload.
|
||||
bytes phy_payload = 1;
|
||||
|
||||
// TX meta-data.
|
||||
gw.UplinkTxInfo tx_info = 2;
|
||||
|
||||
// RX meta-data.
|
||||
repeated gw.UplinkRxInfo rx_info = 3;
|
||||
|
||||
// Message type.
|
||||
common.MType m_type = 4;
|
||||
|
||||
// Device address (optional).
|
||||
string dev_addr = 5;
|
||||
|
||||
// Device EUI (optional).
|
||||
string dev_eui = 6;
|
||||
|
||||
// Time.
|
||||
google.protobuf.Timestamp time = 7;
|
||||
|
||||
// Plaintext f_opts mac-commands.
|
||||
bool plaintext_f_opts = 8;
|
||||
|
||||
// Plaintext frm_payload.
|
||||
bool plaintext_frm_payload = 9;
|
||||
}
|
||||
|
||||
message DownlinkFrameLog {
|
||||
// Time.
|
||||
google.protobuf.Timestamp time = 1;
|
||||
|
||||
// PHYPayload.
|
||||
bytes phy_payload = 2;
|
||||
|
||||
// TX meta-data.
|
||||
gw.DownlinkTxInfo tx_info = 3;
|
||||
|
||||
// Downlink ID.
|
||||
uint32 downlink_id = 4;
|
||||
|
||||
// Gateway ID (EUI64).
|
||||
string gateway_id = 5;
|
||||
|
||||
// Message type.
|
||||
common.MType m_type = 6;
|
||||
|
||||
// Device address (optional).
|
||||
string dev_addr = 7;
|
||||
|
||||
// Device EUI (optional).
|
||||
string dev_eui = 8;
|
||||
|
||||
// Plaintext f_opts mac-commands.
|
||||
bool plaintext_f_opts = 9;
|
||||
|
||||
// Plaintext frm_payload.
|
||||
bool plaintext_frm_payload = 10;
|
||||
}
|
4
api/proto/streams/meta.proto
vendored
4
api/proto/streams/meta.proto
vendored
@ -1,11 +1,11 @@
|
||||
syntax = "proto3";
|
||||
|
||||
package meta;
|
||||
package streams;
|
||||
|
||||
option go_package = "github.com/chirpstack/chirpstack/api/go/v4/streams";
|
||||
option java_package = "io.chirpstack.api.streams";
|
||||
option java_multiple_files = true;
|
||||
option java_outer_classname = "StreamsProto";
|
||||
option java_outer_classname = "MetaProto";
|
||||
option csharp_namespace = "Chirpstack.Streams";
|
||||
|
||||
import "common/common.proto";
|
||||
|
2
api/python/Makefile
vendored
2
api/python/Makefile
vendored
@ -35,7 +35,6 @@ api:
|
||||
$(PROTOC) ${PROTOC_ARGS} chirpstack-api/api/device_profile_template.proto
|
||||
$(PROTOC) ${PROTOC_ARGS} chirpstack-api/api/device.proto
|
||||
$(PROTOC) ${PROTOC_ARGS} chirpstack-api/api/gateway.proto
|
||||
$(PROTOC) ${PROTOC_ARGS} chirpstack-api/api/frame_log.proto
|
||||
$(PROTOC) ${PROTOC_ARGS} chirpstack-api/api/multicast_group.proto
|
||||
$(PROTOC) ${PROTOC_ARGS} chirpstack-api/api/request_log.proto
|
||||
$(PROTOC) ${PROTOC_ARGS} chirpstack-api/api/relay.proto
|
||||
@ -45,3 +44,4 @@ integration:
|
||||
|
||||
streams:
|
||||
$(PROTOC) ${PROTOC_ARGS} chirpstack-api/streams/meta.proto
|
||||
$(PROTOC) ${PROTOC_ARGS} chirpstack-api/streams/frames.proto
|
||||
|
@ -1,74 +0,0 @@
|
||||
syntax = "proto3";
|
||||
|
||||
package api;
|
||||
|
||||
option go_package = "github.com/chirpstack/chirpstack/api/go/v4/api";
|
||||
option java_package = "io.chirpstack.api";
|
||||
option java_multiple_files = true;
|
||||
option java_outer_classname = "FrameLogProto";
|
||||
option csharp_namespace = "Chirpstack.Api";
|
||||
|
||||
import "google/protobuf/timestamp.proto";
|
||||
import "chirpstack-api/common/common.proto";
|
||||
import "chirpstack-api/gw/gw.proto";
|
||||
|
||||
message UplinkFrameLog {
|
||||
// PHYPayload.
|
||||
bytes phy_payload = 1;
|
||||
|
||||
// TX meta-data.
|
||||
gw.UplinkTxInfo tx_info = 2;
|
||||
|
||||
// RX meta-data.
|
||||
repeated gw.UplinkRxInfo rx_info = 3;
|
||||
|
||||
// Message type.
|
||||
common.MType m_type = 4;
|
||||
|
||||
// Device address (optional).
|
||||
string dev_addr = 5;
|
||||
|
||||
// Device EUI (optional).
|
||||
string dev_eui = 6;
|
||||
|
||||
// Time.
|
||||
google.protobuf.Timestamp time = 7;
|
||||
|
||||
// Plaintext f_opts mac-commands.
|
||||
bool plaintext_f_opts = 8;
|
||||
|
||||
// Plaintext frm_payload.
|
||||
bool plaintext_frm_payload = 9;
|
||||
}
|
||||
|
||||
message DownlinkFrameLog {
|
||||
// Time.
|
||||
google.protobuf.Timestamp time = 1;
|
||||
|
||||
// PHYPayload.
|
||||
bytes phy_payload = 2;
|
||||
|
||||
// TX meta-data.
|
||||
gw.DownlinkTxInfo tx_info = 3;
|
||||
|
||||
// Downlink ID.
|
||||
uint32 downlink_id = 4;
|
||||
|
||||
// Gateway ID (EUI64).
|
||||
string gateway_id = 5;
|
||||
|
||||
// Message type.
|
||||
common.MType m_type = 6;
|
||||
|
||||
// Device address (optional).
|
||||
string dev_addr = 7;
|
||||
|
||||
// Device EUI (optional).
|
||||
string dev_eui = 8;
|
||||
|
||||
// Plaintext f_opts mac-commands.
|
||||
bool plaintext_f_opts = 9;
|
||||
|
||||
// Plaintext frm_payload.
|
||||
bool plaintext_frm_payload = 10;
|
||||
}
|
62
api/python/proto/chirpstack-api/meta/meta.proto
vendored
62
api/python/proto/chirpstack-api/meta/meta.proto
vendored
@ -1,62 +0,0 @@
|
||||
syntax = "proto3";
|
||||
|
||||
package meta;
|
||||
|
||||
option go_package = "github.com/chirpstack/chirpstack/api/go/v4/meta";
|
||||
option java_package = "io.chirpstack.api.meta";
|
||||
option java_multiple_files = true;
|
||||
option java_outer_classname = "MetaProto";
|
||||
option csharp_namespace = "Chirpstack.Meta";
|
||||
|
||||
import "chirpstack-api/common/common.proto";
|
||||
import "chirpstack-api/gw/gw.proto";
|
||||
|
||||
|
||||
message UplinkMeta {
|
||||
// Device EUI (EUI64).
|
||||
string dev_eui = 1;
|
||||
|
||||
// TX meta-data.
|
||||
gw.UplinkTxInfo tx_info = 2;
|
||||
|
||||
// RX meta-data.
|
||||
repeated gw.UplinkRxInfo rx_info = 3;
|
||||
|
||||
// PHYPayload byte count.
|
||||
uint32 phy_payload_byte_count = 4;
|
||||
|
||||
// MAC-Command byte count.
|
||||
uint32 mac_command_byte_count = 5;
|
||||
|
||||
// Application payload byte count.
|
||||
uint32 application_payload_byte_count = 6;
|
||||
|
||||
// Message type.
|
||||
common.MType message_type = 7;
|
||||
}
|
||||
|
||||
message DownlinkMeta {
|
||||
// Device EUI (EUI64).
|
||||
string dev_eui = 1;
|
||||
|
||||
// Multicast Group ID (UUID).
|
||||
string multicast_group_id = 2;
|
||||
|
||||
// TX meta-data.
|
||||
gw.DownlinkTxInfo tx_info = 3;
|
||||
|
||||
// PHYPayload byte count.
|
||||
uint32 phy_payload_byte_count = 4;
|
||||
|
||||
// MAC-Command byte count.
|
||||
uint32 mac_command_byte_count = 5;
|
||||
|
||||
// Application payload byte count.
|
||||
uint32 application_payload_byte_count = 6;
|
||||
|
||||
// Message type.
|
||||
common.MType message_type = 7;
|
||||
|
||||
// Gateway ID (EUI64).
|
||||
string gateway_id = 8;
|
||||
}
|
74
api/python/proto/chirpstack-api/streams/frames.proto
vendored
Normal file
74
api/python/proto/chirpstack-api/streams/frames.proto
vendored
Normal file
@ -0,0 +1,74 @@
|
||||
syntax = "proto3";
|
||||
|
||||
package streams;
|
||||
|
||||
option go_package = "github.com/chirpstack/chirpstack/api/go/v4/streams";
|
||||
option java_package = "io.chirpstack.api.streams";
|
||||
option java_multiple_files = true;
|
||||
option java_outer_classname = "FramesProto";
|
||||
option csharp_namespace = "Chirpstack.Streams";
|
||||
|
||||
import "google/protobuf/timestamp.proto";
|
||||
import "chirpstack-api/common/common.proto";
|
||||
import "chirpstack-api/gw/gw.proto";
|
||||
|
||||
message UplinkFrameLog {
|
||||
// PHYPayload.
|
||||
bytes phy_payload = 1;
|
||||
|
||||
// TX meta-data.
|
||||
gw.UplinkTxInfo tx_info = 2;
|
||||
|
||||
// RX meta-data.
|
||||
repeated gw.UplinkRxInfo rx_info = 3;
|
||||
|
||||
// Message type.
|
||||
common.MType m_type = 4;
|
||||
|
||||
// Device address (optional).
|
||||
string dev_addr = 5;
|
||||
|
||||
// Device EUI (optional).
|
||||
string dev_eui = 6;
|
||||
|
||||
// Time.
|
||||
google.protobuf.Timestamp time = 7;
|
||||
|
||||
// Plaintext f_opts mac-commands.
|
||||
bool plaintext_f_opts = 8;
|
||||
|
||||
// Plaintext frm_payload.
|
||||
bool plaintext_frm_payload = 9;
|
||||
}
|
||||
|
||||
message DownlinkFrameLog {
|
||||
// Time.
|
||||
google.protobuf.Timestamp time = 1;
|
||||
|
||||
// PHYPayload.
|
||||
bytes phy_payload = 2;
|
||||
|
||||
// TX meta-data.
|
||||
gw.DownlinkTxInfo tx_info = 3;
|
||||
|
||||
// Downlink ID.
|
||||
uint32 downlink_id = 4;
|
||||
|
||||
// Gateway ID (EUI64).
|
||||
string gateway_id = 5;
|
||||
|
||||
// Message type.
|
||||
common.MType m_type = 6;
|
||||
|
||||
// Device address (optional).
|
||||
string dev_addr = 7;
|
||||
|
||||
// Device EUI (optional).
|
||||
string dev_eui = 8;
|
||||
|
||||
// Plaintext f_opts mac-commands.
|
||||
bool plaintext_f_opts = 9;
|
||||
|
||||
// Plaintext frm_payload.
|
||||
bool plaintext_frm_payload = 10;
|
||||
}
|
61
api/python/proto/chirpstack-api/streams/meta.proto
vendored
Normal file
61
api/python/proto/chirpstack-api/streams/meta.proto
vendored
Normal file
@ -0,0 +1,61 @@
|
||||
syntax = "proto3";
|
||||
|
||||
package streams;
|
||||
|
||||
option go_package = "github.com/chirpstack/chirpstack/api/go/v4/streams";
|
||||
option java_package = "io.chirpstack.api.streams";
|
||||
option java_multiple_files = true;
|
||||
option java_outer_classname = "MetaProto";
|
||||
option csharp_namespace = "Chirpstack.Streams";
|
||||
|
||||
import "chirpstack-api/common/common.proto";
|
||||
import "chirpstack-api/gw/gw.proto";
|
||||
|
||||
message UplinkMeta {
|
||||
// Device EUI (EUI64).
|
||||
string dev_eui = 1;
|
||||
|
||||
// TX meta-data.
|
||||
gw.UplinkTxInfo tx_info = 2;
|
||||
|
||||
// RX meta-data.
|
||||
repeated gw.UplinkRxInfo rx_info = 3;
|
||||
|
||||
// PHYPayload byte count.
|
||||
uint32 phy_payload_byte_count = 4;
|
||||
|
||||
// MAC-Command byte count.
|
||||
uint32 mac_command_byte_count = 5;
|
||||
|
||||
// Application payload byte count.
|
||||
uint32 application_payload_byte_count = 6;
|
||||
|
||||
// Message type.
|
||||
common.MType message_type = 7;
|
||||
}
|
||||
|
||||
message DownlinkMeta {
|
||||
// Device EUI (EUI64).
|
||||
string dev_eui = 1;
|
||||
|
||||
// Multicast Group ID (UUID).
|
||||
string multicast_group_id = 2;
|
||||
|
||||
// TX meta-data.
|
||||
gw.DownlinkTxInfo tx_info = 3;
|
||||
|
||||
// PHYPayload byte count.
|
||||
uint32 phy_payload_byte_count = 4;
|
||||
|
||||
// MAC-Command byte count.
|
||||
uint32 mac_command_byte_count = 5;
|
||||
|
||||
// Application payload byte count.
|
||||
uint32 application_payload_byte_count = 6;
|
||||
|
||||
// Message type.
|
||||
common.MType message_type = 7;
|
||||
|
||||
// Gateway ID (EUI64).
|
||||
string gateway_id = 8;
|
||||
}
|
2
api/python/src/chirpstack_api/streams/__init__.py
vendored
Normal file
2
api/python/src/chirpstack_api/streams/__init__.py
vendored
Normal file
@ -0,0 +1,2 @@
|
||||
from .frames_pb2 import *
|
||||
from .meta_pb2 import *
|
32
api/python/src/chirpstack_api/streams/frames_pb2.py
vendored
Normal file
32
api/python/src/chirpstack_api/streams/frames_pb2.py
vendored
Normal file
@ -0,0 +1,32 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
# source: chirpstack-api/streams/frames.proto
|
||||
"""Generated protocol buffer code."""
|
||||
from google.protobuf import descriptor as _descriptor
|
||||
from google.protobuf import descriptor_pool as _descriptor_pool
|
||||
from google.protobuf import symbol_database as _symbol_database
|
||||
from google.protobuf.internal import builder as _builder
|
||||
# @@protoc_insertion_point(imports)
|
||||
|
||||
_sym_db = _symbol_database.Default()
|
||||
|
||||
|
||||
from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2
|
||||
from chirpstack_api.common import common_pb2 as chirpstack__api_dot_common_dot_common__pb2
|
||||
from chirpstack_api.gw import gw_pb2 as chirpstack__api_dot_gw_dot_gw__pb2
|
||||
|
||||
|
||||
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n#chirpstack-api/streams/frames.proto\x12\x07streams\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\"chirpstack-api/common/common.proto\x1a\x1a\x63hirpstack-api/gw/gw.proto\"\x90\x02\n\x0eUplinkFrameLog\x12\x13\n\x0bphy_payload\x18\x01 \x01(\x0c\x12!\n\x07tx_info\x18\x02 \x01(\x0b\x32\x10.gw.UplinkTxInfo\x12!\n\x07rx_info\x18\x03 \x03(\x0b\x32\x10.gw.UplinkRxInfo\x12\x1d\n\x06m_type\x18\x04 \x01(\x0e\x32\r.common.MType\x12\x10\n\x08\x64\x65v_addr\x18\x05 \x01(\t\x12\x0f\n\x07\x64\x65v_eui\x18\x06 \x01(\t\x12(\n\x04time\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x18\n\x10plaintext_f_opts\x18\x08 \x01(\x08\x12\x1d\n\x15plaintext_frm_payload\x18\t \x01(\x08\"\x9a\x02\n\x10\x44ownlinkFrameLog\x12(\n\x04time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x13\n\x0bphy_payload\x18\x02 \x01(\x0c\x12#\n\x07tx_info\x18\x03 \x01(\x0b\x32\x12.gw.DownlinkTxInfo\x12\x13\n\x0b\x64ownlink_id\x18\x04 \x01(\r\x12\x12\n\ngateway_id\x18\x05 \x01(\t\x12\x1d\n\x06m_type\x18\x06 \x01(\x0e\x32\r.common.MType\x12\x10\n\x08\x64\x65v_addr\x18\x07 \x01(\t\x12\x0f\n\x07\x64\x65v_eui\x18\x08 \x01(\t\x12\x18\n\x10plaintext_f_opts\x18\t \x01(\x08\x12\x1d\n\x15plaintext_frm_payload\x18\n \x01(\x08\x42s\n\x19io.chirpstack.api.streamsB\x0b\x46ramesProtoP\x01Z2github.com/chirpstack/chirpstack/api/go/v4/streams\xaa\x02\x12\x43hirpstack.Streamsb\x06proto3')
|
||||
|
||||
_globals = globals()
|
||||
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
||||
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'chirpstack_api.streams.frames_pb2', _globals)
|
||||
if _descriptor._USE_C_DESCRIPTORS == False:
|
||||
|
||||
DESCRIPTOR._options = None
|
||||
DESCRIPTOR._serialized_options = b'\n\031io.chirpstack.api.streamsB\013FramesProtoP\001Z2github.com/chirpstack/chirpstack/api/go/v4/streams\252\002\022Chirpstack.Streams'
|
||||
_globals['_UPLINKFRAMELOG']._serialized_start=146
|
||||
_globals['_UPLINKFRAMELOG']._serialized_end=418
|
||||
_globals['_DOWNLINKFRAMELOG']._serialized_start=421
|
||||
_globals['_DOWNLINKFRAMELOG']._serialized_end=703
|
||||
# @@protoc_insertion_point(module_scope)
|
55
api/python/src/chirpstack_api/streams/frames_pb2.pyi
vendored
Normal file
55
api/python/src/chirpstack_api/streams/frames_pb2.pyi
vendored
Normal file
@ -0,0 +1,55 @@
|
||||
from google.protobuf import timestamp_pb2 as _timestamp_pb2
|
||||
from chirpstack_api.common import common_pb2 as _common_pb2
|
||||
from chirpstack_api.gw import gw_pb2 as _gw_pb2
|
||||
from google.protobuf.internal import containers as _containers
|
||||
from google.protobuf import descriptor as _descriptor
|
||||
from google.protobuf import message as _message
|
||||
from typing import ClassVar as _ClassVar, Iterable as _Iterable, Mapping as _Mapping, Optional as _Optional, Union as _Union
|
||||
|
||||
DESCRIPTOR: _descriptor.FileDescriptor
|
||||
|
||||
class UplinkFrameLog(_message.Message):
|
||||
__slots__ = ["phy_payload", "tx_info", "rx_info", "m_type", "dev_addr", "dev_eui", "time", "plaintext_f_opts", "plaintext_frm_payload"]
|
||||
PHY_PAYLOAD_FIELD_NUMBER: _ClassVar[int]
|
||||
TX_INFO_FIELD_NUMBER: _ClassVar[int]
|
||||
RX_INFO_FIELD_NUMBER: _ClassVar[int]
|
||||
M_TYPE_FIELD_NUMBER: _ClassVar[int]
|
||||
DEV_ADDR_FIELD_NUMBER: _ClassVar[int]
|
||||
DEV_EUI_FIELD_NUMBER: _ClassVar[int]
|
||||
TIME_FIELD_NUMBER: _ClassVar[int]
|
||||
PLAINTEXT_F_OPTS_FIELD_NUMBER: _ClassVar[int]
|
||||
PLAINTEXT_FRM_PAYLOAD_FIELD_NUMBER: _ClassVar[int]
|
||||
phy_payload: bytes
|
||||
tx_info: _gw_pb2.UplinkTxInfo
|
||||
rx_info: _containers.RepeatedCompositeFieldContainer[_gw_pb2.UplinkRxInfo]
|
||||
m_type: _common_pb2.MType
|
||||
dev_addr: str
|
||||
dev_eui: str
|
||||
time: _timestamp_pb2.Timestamp
|
||||
plaintext_f_opts: bool
|
||||
plaintext_frm_payload: bool
|
||||
def __init__(self, phy_payload: _Optional[bytes] = ..., tx_info: _Optional[_Union[_gw_pb2.UplinkTxInfo, _Mapping]] = ..., rx_info: _Optional[_Iterable[_Union[_gw_pb2.UplinkRxInfo, _Mapping]]] = ..., m_type: _Optional[_Union[_common_pb2.MType, str]] = ..., dev_addr: _Optional[str] = ..., dev_eui: _Optional[str] = ..., time: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., plaintext_f_opts: bool = ..., plaintext_frm_payload: bool = ...) -> None: ...
|
||||
|
||||
class DownlinkFrameLog(_message.Message):
|
||||
__slots__ = ["time", "phy_payload", "tx_info", "downlink_id", "gateway_id", "m_type", "dev_addr", "dev_eui", "plaintext_f_opts", "plaintext_frm_payload"]
|
||||
TIME_FIELD_NUMBER: _ClassVar[int]
|
||||
PHY_PAYLOAD_FIELD_NUMBER: _ClassVar[int]
|
||||
TX_INFO_FIELD_NUMBER: _ClassVar[int]
|
||||
DOWNLINK_ID_FIELD_NUMBER: _ClassVar[int]
|
||||
GATEWAY_ID_FIELD_NUMBER: _ClassVar[int]
|
||||
M_TYPE_FIELD_NUMBER: _ClassVar[int]
|
||||
DEV_ADDR_FIELD_NUMBER: _ClassVar[int]
|
||||
DEV_EUI_FIELD_NUMBER: _ClassVar[int]
|
||||
PLAINTEXT_F_OPTS_FIELD_NUMBER: _ClassVar[int]
|
||||
PLAINTEXT_FRM_PAYLOAD_FIELD_NUMBER: _ClassVar[int]
|
||||
time: _timestamp_pb2.Timestamp
|
||||
phy_payload: bytes
|
||||
tx_info: _gw_pb2.DownlinkTxInfo
|
||||
downlink_id: int
|
||||
gateway_id: str
|
||||
m_type: _common_pb2.MType
|
||||
dev_addr: str
|
||||
dev_eui: str
|
||||
plaintext_f_opts: bool
|
||||
plaintext_frm_payload: bool
|
||||
def __init__(self, time: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., phy_payload: _Optional[bytes] = ..., tx_info: _Optional[_Union[_gw_pb2.DownlinkTxInfo, _Mapping]] = ..., downlink_id: _Optional[int] = ..., gateway_id: _Optional[str] = ..., m_type: _Optional[_Union[_common_pb2.MType, str]] = ..., dev_addr: _Optional[str] = ..., dev_eui: _Optional[str] = ..., plaintext_f_opts: bool = ..., plaintext_frm_payload: bool = ...) -> None: ...
|
4
api/python/src/chirpstack_api/streams/frames_pb2_grpc.py
vendored
Normal file
4
api/python/src/chirpstack_api/streams/frames_pb2_grpc.py
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
|
||||
"""Client and server classes corresponding to protobuf-defined services."""
|
||||
import grpc
|
||||
|
31
api/python/src/chirpstack_api/streams/meta_pb2.py
vendored
Normal file
31
api/python/src/chirpstack_api/streams/meta_pb2.py
vendored
Normal file
@ -0,0 +1,31 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
# source: chirpstack-api/streams/meta.proto
|
||||
"""Generated protocol buffer code."""
|
||||
from google.protobuf import descriptor as _descriptor
|
||||
from google.protobuf import descriptor_pool as _descriptor_pool
|
||||
from google.protobuf import symbol_database as _symbol_database
|
||||
from google.protobuf.internal import builder as _builder
|
||||
# @@protoc_insertion_point(imports)
|
||||
|
||||
_sym_db = _symbol_database.Default()
|
||||
|
||||
|
||||
from chirpstack_api.common import common_pb2 as chirpstack__api_dot_common_dot_common__pb2
|
||||
from chirpstack_api.gw import gw_pb2 as chirpstack__api_dot_gw_dot_gw__pb2
|
||||
|
||||
|
||||
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n!chirpstack-api/streams/meta.proto\x12\x07streams\x1a\"chirpstack-api/common/common.proto\x1a\x1a\x63hirpstack-api/gw/gw.proto\"\xf0\x01\n\nUplinkMeta\x12\x0f\n\x07\x64\x65v_eui\x18\x01 \x01(\t\x12!\n\x07tx_info\x18\x02 \x01(\x0b\x32\x10.gw.UplinkTxInfo\x12!\n\x07rx_info\x18\x03 \x03(\x0b\x32\x10.gw.UplinkRxInfo\x12\x1e\n\x16phy_payload_byte_count\x18\x04 \x01(\r\x12\x1e\n\x16mac_command_byte_count\x18\x05 \x01(\r\x12&\n\x1e\x61pplication_payload_byte_count\x18\x06 \x01(\r\x12#\n\x0cmessage_type\x18\x07 \x01(\x0e\x32\r.common.MType\"\x81\x02\n\x0c\x44ownlinkMeta\x12\x0f\n\x07\x64\x65v_eui\x18\x01 \x01(\t\x12\x1a\n\x12multicast_group_id\x18\x02 \x01(\t\x12#\n\x07tx_info\x18\x03 \x01(\x0b\x32\x12.gw.DownlinkTxInfo\x12\x1e\n\x16phy_payload_byte_count\x18\x04 \x01(\r\x12\x1e\n\x16mac_command_byte_count\x18\x05 \x01(\r\x12&\n\x1e\x61pplication_payload_byte_count\x18\x06 \x01(\r\x12#\n\x0cmessage_type\x18\x07 \x01(\x0e\x32\r.common.MType\x12\x12\n\ngateway_id\x18\x08 \x01(\tBq\n\x19io.chirpstack.api.streamsB\tMetaProtoP\x01Z2github.com/chirpstack/chirpstack/api/go/v4/streams\xaa\x02\x12\x43hirpstack.Streamsb\x06proto3')
|
||||
|
||||
_globals = globals()
|
||||
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
||||
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'chirpstack_api.streams.meta_pb2', _globals)
|
||||
if _descriptor._USE_C_DESCRIPTORS == False:
|
||||
|
||||
DESCRIPTOR._options = None
|
||||
DESCRIPTOR._serialized_options = b'\n\031io.chirpstack.api.streamsB\tMetaProtoP\001Z2github.com/chirpstack/chirpstack/api/go/v4/streams\252\002\022Chirpstack.Streams'
|
||||
_globals['_UPLINKMETA']._serialized_start=111
|
||||
_globals['_UPLINKMETA']._serialized_end=351
|
||||
_globals['_DOWNLINKMETA']._serialized_start=354
|
||||
_globals['_DOWNLINKMETA']._serialized_end=611
|
||||
# @@protoc_insertion_point(module_scope)
|
46
api/python/src/chirpstack_api/streams/meta_pb2.pyi
vendored
Normal file
46
api/python/src/chirpstack_api/streams/meta_pb2.pyi
vendored
Normal file
@ -0,0 +1,46 @@
|
||||
from chirpstack_api.common import common_pb2 as _common_pb2
|
||||
from chirpstack_api.gw import gw_pb2 as _gw_pb2
|
||||
from google.protobuf.internal import containers as _containers
|
||||
from google.protobuf import descriptor as _descriptor
|
||||
from google.protobuf import message as _message
|
||||
from typing import ClassVar as _ClassVar, Iterable as _Iterable, Mapping as _Mapping, Optional as _Optional, Union as _Union
|
||||
|
||||
DESCRIPTOR: _descriptor.FileDescriptor
|
||||
|
||||
class UplinkMeta(_message.Message):
|
||||
__slots__ = ["dev_eui", "tx_info", "rx_info", "phy_payload_byte_count", "mac_command_byte_count", "application_payload_byte_count", "message_type"]
|
||||
DEV_EUI_FIELD_NUMBER: _ClassVar[int]
|
||||
TX_INFO_FIELD_NUMBER: _ClassVar[int]
|
||||
RX_INFO_FIELD_NUMBER: _ClassVar[int]
|
||||
PHY_PAYLOAD_BYTE_COUNT_FIELD_NUMBER: _ClassVar[int]
|
||||
MAC_COMMAND_BYTE_COUNT_FIELD_NUMBER: _ClassVar[int]
|
||||
APPLICATION_PAYLOAD_BYTE_COUNT_FIELD_NUMBER: _ClassVar[int]
|
||||
MESSAGE_TYPE_FIELD_NUMBER: _ClassVar[int]
|
||||
dev_eui: str
|
||||
tx_info: _gw_pb2.UplinkTxInfo
|
||||
rx_info: _containers.RepeatedCompositeFieldContainer[_gw_pb2.UplinkRxInfo]
|
||||
phy_payload_byte_count: int
|
||||
mac_command_byte_count: int
|
||||
application_payload_byte_count: int
|
||||
message_type: _common_pb2.MType
|
||||
def __init__(self, dev_eui: _Optional[str] = ..., tx_info: _Optional[_Union[_gw_pb2.UplinkTxInfo, _Mapping]] = ..., rx_info: _Optional[_Iterable[_Union[_gw_pb2.UplinkRxInfo, _Mapping]]] = ..., phy_payload_byte_count: _Optional[int] = ..., mac_command_byte_count: _Optional[int] = ..., application_payload_byte_count: _Optional[int] = ..., message_type: _Optional[_Union[_common_pb2.MType, str]] = ...) -> None: ...
|
||||
|
||||
class DownlinkMeta(_message.Message):
|
||||
__slots__ = ["dev_eui", "multicast_group_id", "tx_info", "phy_payload_byte_count", "mac_command_byte_count", "application_payload_byte_count", "message_type", "gateway_id"]
|
||||
DEV_EUI_FIELD_NUMBER: _ClassVar[int]
|
||||
MULTICAST_GROUP_ID_FIELD_NUMBER: _ClassVar[int]
|
||||
TX_INFO_FIELD_NUMBER: _ClassVar[int]
|
||||
PHY_PAYLOAD_BYTE_COUNT_FIELD_NUMBER: _ClassVar[int]
|
||||
MAC_COMMAND_BYTE_COUNT_FIELD_NUMBER: _ClassVar[int]
|
||||
APPLICATION_PAYLOAD_BYTE_COUNT_FIELD_NUMBER: _ClassVar[int]
|
||||
MESSAGE_TYPE_FIELD_NUMBER: _ClassVar[int]
|
||||
GATEWAY_ID_FIELD_NUMBER: _ClassVar[int]
|
||||
dev_eui: str
|
||||
multicast_group_id: str
|
||||
tx_info: _gw_pb2.DownlinkTxInfo
|
||||
phy_payload_byte_count: int
|
||||
mac_command_byte_count: int
|
||||
application_payload_byte_count: int
|
||||
message_type: _common_pb2.MType
|
||||
gateway_id: str
|
||||
def __init__(self, dev_eui: _Optional[str] = ..., multicast_group_id: _Optional[str] = ..., tx_info: _Optional[_Union[_gw_pb2.DownlinkTxInfo, _Mapping]] = ..., phy_payload_byte_count: _Optional[int] = ..., mac_command_byte_count: _Optional[int] = ..., application_payload_byte_count: _Optional[int] = ..., message_type: _Optional[_Union[_common_pb2.MType, str]] = ..., gateway_id: _Optional[str] = ...) -> None: ...
|
4
api/python/src/chirpstack_api/streams/meta_pb2_grpc.py
vendored
Normal file
4
api/python/src/chirpstack_api/streams/meta_pb2_grpc.py
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
|
||||
"""Client and server classes corresponding to protobuf-defined services."""
|
||||
import grpc
|
||||
|
18
api/rust/build.rs
vendored
18
api/rust/build.rs
vendored
@ -141,11 +141,22 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
|
||||
.out_dir(out_dir.join("streams"))
|
||||
.file_descriptor_set_path(out_dir.join("streams").join("proto_descriptor.bin"))
|
||||
.compile_well_known_types(true)
|
||||
.extern_path(".google.protobuf", well_known_types_path)
|
||||
.extern_path(".common", "crate::common")
|
||||
.extern_path(".gw", "crate::gw")
|
||||
.compile(
|
||||
&[cs_dir.join("streams").join("meta.proto").to_str().unwrap()],
|
||||
&[proto_dir.join("chirpstack").to_str().unwrap()],
|
||||
&[
|
||||
cs_dir.join("streams").join("meta.proto").to_str().unwrap(),
|
||||
cs_dir
|
||||
.join("streams")
|
||||
.join("frames.proto")
|
||||
.to_str()
|
||||
.unwrap(),
|
||||
],
|
||||
&[
|
||||
proto_dir.join("chirpstack").to_str().unwrap(),
|
||||
proto_dir.join("google").to_str().unwrap(),
|
||||
],
|
||||
)?;
|
||||
|
||||
#[cfg(feature = "json")]
|
||||
@ -157,7 +168,7 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
|
||||
.out_dir(out_dir.join("streams"))
|
||||
.extern_path(".common", "crate::common")
|
||||
.extern_path(".gw", "crate::gw")
|
||||
.build(&[".meta"])?;
|
||||
.build(&[".meta", ".streams"])?;
|
||||
}
|
||||
|
||||
// api
|
||||
@ -188,7 +199,6 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
|
||||
.unwrap(),
|
||||
cs_dir.join("api").join("device.proto").to_str().unwrap(),
|
||||
cs_dir.join("api").join("gateway.proto").to_str().unwrap(),
|
||||
cs_dir.join("api").join("frame_log.proto").to_str().unwrap(),
|
||||
cs_dir
|
||||
.join("api")
|
||||
.join("multicast_group.proto")
|
||||
|
74
api/rust/proto/chirpstack/api/frame_log.proto
vendored
74
api/rust/proto/chirpstack/api/frame_log.proto
vendored
@ -1,74 +0,0 @@
|
||||
syntax = "proto3";
|
||||
|
||||
package api;
|
||||
|
||||
option go_package = "github.com/chirpstack/chirpstack/api/go/v4/api";
|
||||
option java_package = "io.chirpstack.api";
|
||||
option java_multiple_files = true;
|
||||
option java_outer_classname = "FrameLogProto";
|
||||
option csharp_namespace = "Chirpstack.Api";
|
||||
|
||||
import "google/protobuf/timestamp.proto";
|
||||
import "common/common.proto";
|
||||
import "gw/gw.proto";
|
||||
|
||||
message UplinkFrameLog {
|
||||
// PHYPayload.
|
||||
bytes phy_payload = 1;
|
||||
|
||||
// TX meta-data.
|
||||
gw.UplinkTxInfo tx_info = 2;
|
||||
|
||||
// RX meta-data.
|
||||
repeated gw.UplinkRxInfo rx_info = 3;
|
||||
|
||||
// Message type.
|
||||
common.MType m_type = 4;
|
||||
|
||||
// Device address (optional).
|
||||
string dev_addr = 5;
|
||||
|
||||
// Device EUI (optional).
|
||||
string dev_eui = 6;
|
||||
|
||||
// Time.
|
||||
google.protobuf.Timestamp time = 7;
|
||||
|
||||
// Plaintext f_opts mac-commands.
|
||||
bool plaintext_f_opts = 8;
|
||||
|
||||
// Plaintext frm_payload.
|
||||
bool plaintext_frm_payload = 9;
|
||||
}
|
||||
|
||||
message DownlinkFrameLog {
|
||||
// Time.
|
||||
google.protobuf.Timestamp time = 1;
|
||||
|
||||
// PHYPayload.
|
||||
bytes phy_payload = 2;
|
||||
|
||||
// TX meta-data.
|
||||
gw.DownlinkTxInfo tx_info = 3;
|
||||
|
||||
// Downlink ID.
|
||||
uint32 downlink_id = 4;
|
||||
|
||||
// Gateway ID (EUI64).
|
||||
string gateway_id = 5;
|
||||
|
||||
// Message type.
|
||||
common.MType m_type = 6;
|
||||
|
||||
// Device address (optional).
|
||||
string dev_addr = 7;
|
||||
|
||||
// Device EUI (optional).
|
||||
string dev_eui = 8;
|
||||
|
||||
// Plaintext f_opts mac-commands.
|
||||
bool plaintext_f_opts = 9;
|
||||
|
||||
// Plaintext frm_payload.
|
||||
bool plaintext_frm_payload = 10;
|
||||
}
|
74
api/rust/proto/chirpstack/streams/frames.proto
vendored
Normal file
74
api/rust/proto/chirpstack/streams/frames.proto
vendored
Normal file
@ -0,0 +1,74 @@
|
||||
syntax = "proto3";
|
||||
|
||||
package streams;
|
||||
|
||||
option go_package = "github.com/chirpstack/chirpstack/api/go/v4/streams";
|
||||
option java_package = "io.chirpstack.api.streams";
|
||||
option java_multiple_files = true;
|
||||
option java_outer_classname = "FramesProto";
|
||||
option csharp_namespace = "Chirpstack.Streams";
|
||||
|
||||
import "google/protobuf/timestamp.proto";
|
||||
import "common/common.proto";
|
||||
import "gw/gw.proto";
|
||||
|
||||
message UplinkFrameLog {
|
||||
// PHYPayload.
|
||||
bytes phy_payload = 1;
|
||||
|
||||
// TX meta-data.
|
||||
gw.UplinkTxInfo tx_info = 2;
|
||||
|
||||
// RX meta-data.
|
||||
repeated gw.UplinkRxInfo rx_info = 3;
|
||||
|
||||
// Message type.
|
||||
common.MType m_type = 4;
|
||||
|
||||
// Device address (optional).
|
||||
string dev_addr = 5;
|
||||
|
||||
// Device EUI (optional).
|
||||
string dev_eui = 6;
|
||||
|
||||
// Time.
|
||||
google.protobuf.Timestamp time = 7;
|
||||
|
||||
// Plaintext f_opts mac-commands.
|
||||
bool plaintext_f_opts = 8;
|
||||
|
||||
// Plaintext frm_payload.
|
||||
bool plaintext_frm_payload = 9;
|
||||
}
|
||||
|
||||
message DownlinkFrameLog {
|
||||
// Time.
|
||||
google.protobuf.Timestamp time = 1;
|
||||
|
||||
// PHYPayload.
|
||||
bytes phy_payload = 2;
|
||||
|
||||
// TX meta-data.
|
||||
gw.DownlinkTxInfo tx_info = 3;
|
||||
|
||||
// Downlink ID.
|
||||
uint32 downlink_id = 4;
|
||||
|
||||
// Gateway ID (EUI64).
|
||||
string gateway_id = 5;
|
||||
|
||||
// Message type.
|
||||
common.MType m_type = 6;
|
||||
|
||||
// Device address (optional).
|
||||
string dev_addr = 7;
|
||||
|
||||
// Device EUI (optional).
|
||||
string dev_eui = 8;
|
||||
|
||||
// Plaintext f_opts mac-commands.
|
||||
bool plaintext_f_opts = 9;
|
||||
|
||||
// Plaintext frm_payload.
|
||||
bool plaintext_frm_payload = 10;
|
||||
}
|
4
api/rust/proto/chirpstack/streams/meta.proto
vendored
4
api/rust/proto/chirpstack/streams/meta.proto
vendored
@ -1,11 +1,11 @@
|
||||
syntax = "proto3";
|
||||
|
||||
package meta;
|
||||
package streams;
|
||||
|
||||
option go_package = "github.com/chirpstack/chirpstack/api/go/v4/streams";
|
||||
option java_package = "io.chirpstack.api.streams";
|
||||
option java_multiple_files = true;
|
||||
option java_outer_classname = "StreamsProto";
|
||||
option java_outer_classname = "MetaProto";
|
||||
option csharp_namespace = "Chirpstack.Streams";
|
||||
|
||||
import "common/common.proto";
|
||||
|
4
api/rust/src/streams.rs
vendored
4
api/rust/src/streams.rs
vendored
@ -1,3 +1,3 @@
|
||||
include!(concat!(env!("OUT_DIR"), "/streams/meta.rs"));
|
||||
include!(concat!(env!("OUT_DIR"), "/streams/streams.rs"));
|
||||
#[cfg(feature = "json")]
|
||||
include!(concat!(env!("OUT_DIR"), "/streams/meta.serde.rs"));
|
||||
include!(concat!(env!("OUT_DIR"), "/streams/streams.serde.rs"));
|
||||
|
@ -1,6 +1,5 @@
|
||||
use anyhow::Result;
|
||||
use chrono::{Duration, Utc};
|
||||
use std::time::SystemTime;
|
||||
use tracing::{error, info, span, trace, Instrument, Level};
|
||||
use uuid::Uuid;
|
||||
|
||||
@ -13,7 +12,7 @@ use crate::storage::{
|
||||
device_profile, device_queue, device_session, downlink_frame, multicast, tenant,
|
||||
};
|
||||
use crate::{framelog, integration, metalog};
|
||||
use chirpstack_api::{api, common, gw, integration as integration_pb, internal, streams};
|
||||
use chirpstack_api::{common, gw, integration as integration_pb, internal, streams};
|
||||
|
||||
pub struct TxAck {
|
||||
downlink_tx_ack: gw::DownlinkTxAck,
|
||||
@ -610,8 +609,8 @@ impl TxAck {
|
||||
let dfi = self.downlink_frame_item.as_ref().unwrap();
|
||||
let phy = self.phy_payload.as_mut().unwrap();
|
||||
|
||||
let dfl = api::DownlinkFrameLog {
|
||||
time: Some(SystemTime::now().into()),
|
||||
let dfl = streams::DownlinkFrameLog {
|
||||
time: Some(Utc::now().into()),
|
||||
phy_payload: dfi.phy_payload.clone(),
|
||||
tx_info: dfi.tx_info.clone(),
|
||||
downlink_id: gw_df.downlink_id,
|
||||
@ -679,7 +678,7 @@ impl TxAck {
|
||||
phy.decrypt_f_opts(&nwk_s_enc_key)?;
|
||||
}
|
||||
|
||||
let dfl = api::DownlinkFrameLog {
|
||||
let dfl = streams::DownlinkFrameLog {
|
||||
time: dfl.time.clone(),
|
||||
phy_payload: phy.to_vec()?,
|
||||
tx_info: dfl.tx_info.clone(),
|
||||
|
@ -16,9 +16,9 @@ use lrwn::EUI64;
|
||||
use crate::config;
|
||||
use crate::helpers::errors::PrintFullError;
|
||||
use crate::storage::{get_redis_conn, redis_key};
|
||||
use chirpstack_api::api;
|
||||
use chirpstack_api::{api, streams};
|
||||
|
||||
pub async fn log_uplink_for_gateways(ufl: &api::UplinkFrameLog) -> Result<()> {
|
||||
pub async fn log_uplink_for_gateways(ufl: &streams::UplinkFrameLog) -> Result<()> {
|
||||
task::spawn_blocking({
|
||||
let ufl = ufl.clone();
|
||||
move || -> Result<()> {
|
||||
@ -28,7 +28,7 @@ pub async fn log_uplink_for_gateways(ufl: &api::UplinkFrameLog) -> Result<()> {
|
||||
for rx_info in &ufl.rx_info {
|
||||
let gateway_id = EUI64::from_str(&rx_info.gateway_id)?;
|
||||
|
||||
let ufl_copy = api::UplinkFrameLog {
|
||||
let ufl_copy = streams::UplinkFrameLog {
|
||||
phy_payload: ufl.phy_payload.clone(),
|
||||
tx_info: ufl.tx_info.clone(),
|
||||
rx_info: vec![rx_info.clone()],
|
||||
@ -83,7 +83,7 @@ pub async fn log_uplink_for_gateways(ufl: &api::UplinkFrameLog) -> Result<()> {
|
||||
.await?
|
||||
}
|
||||
|
||||
pub async fn log_downlink_for_gateway(dfl: &api::DownlinkFrameLog) -> Result<()> {
|
||||
pub async fn log_downlink_for_gateway(dfl: &streams::DownlinkFrameLog) -> Result<()> {
|
||||
if dfl.gateway_id.is_empty() {
|
||||
return Err(anyhow!("gateway_id must be set"));
|
||||
}
|
||||
@ -135,7 +135,7 @@ pub async fn log_downlink_for_gateway(dfl: &api::DownlinkFrameLog) -> Result<()>
|
||||
.await?
|
||||
}
|
||||
|
||||
pub async fn log_uplink_for_device(ufl: &api::UplinkFrameLog) -> Result<()> {
|
||||
pub async fn log_uplink_for_device(ufl: &streams::UplinkFrameLog) -> Result<()> {
|
||||
if ufl.dev_eui.is_empty() {
|
||||
return Err(anyhow!("dev_eui must be set"));
|
||||
}
|
||||
@ -187,7 +187,7 @@ pub async fn log_uplink_for_device(ufl: &api::UplinkFrameLog) -> Result<()> {
|
||||
.await?
|
||||
}
|
||||
|
||||
pub async fn log_downlink_for_device(dfl: &api::DownlinkFrameLog) -> Result<()> {
|
||||
pub async fn log_downlink_for_device(dfl: &streams::DownlinkFrameLog) -> Result<()> {
|
||||
if dfl.dev_eui.is_empty() {
|
||||
return Err(anyhow!("dev_eui must be set"));
|
||||
}
|
||||
@ -276,7 +276,7 @@ pub async fn get_frame_logs(
|
||||
"up" => {
|
||||
trace!(key = %k, id = %last_id, "Frame-log received from stream");
|
||||
if let redis::Value::Data(b) = v {
|
||||
let pl = api::UplinkFrameLog::decode(&mut Cursor::new(b))?;
|
||||
let pl = streams::UplinkFrameLog::decode(&mut Cursor::new(b))?;
|
||||
let mut phy = lrwn::PhyPayload::from_slice(&pl.phy_payload)?;
|
||||
if pl.plaintext_f_opts {
|
||||
if let Err(e) = phy.decode_f_opts_to_mac_commands() {
|
||||
@ -291,7 +291,10 @@ pub async fn get_frame_logs(
|
||||
|
||||
let pl = api::LogItem {
|
||||
id: stream_id.id.clone(),
|
||||
time: pl.time.clone(),
|
||||
time: pl.time.as_ref().map(|t| prost_types::Timestamp {
|
||||
seconds: t.seconds,
|
||||
nanos: t.nanos,
|
||||
}),
|
||||
description: pl.m_type().into(),
|
||||
body: json!({
|
||||
"phy_payload": phy,
|
||||
@ -314,7 +317,7 @@ pub async fn get_frame_logs(
|
||||
"down" => {
|
||||
trace!(key = %k, id = %last_id, "frame-log received from stream");
|
||||
if let redis::Value::Data(b) = v {
|
||||
let pl = api::DownlinkFrameLog::decode(&mut Cursor::new(b))?;
|
||||
let pl = streams::DownlinkFrameLog::decode(&mut Cursor::new(b))?;
|
||||
let mut phy = lrwn::PhyPayload::from_slice(&pl.phy_payload)?;
|
||||
if pl.plaintext_f_opts {
|
||||
if let Err(e) = phy.decode_f_opts_to_mac_commands() {
|
||||
@ -329,7 +332,10 @@ pub async fn get_frame_logs(
|
||||
|
||||
let pl = api::LogItem {
|
||||
id: stream_id.id.clone(),
|
||||
time: pl.time.clone(),
|
||||
time: pl.time.as_ref().map(|t| prost_types::Timestamp {
|
||||
seconds: t.seconds,
|
||||
nanos: t.nanos,
|
||||
}),
|
||||
description: pl.m_type().into(),
|
||||
body: json!({
|
||||
"phy_payload": phy,
|
||||
|
@ -14,7 +14,7 @@ use crate::storage::{
|
||||
device::{self, DeviceClass},
|
||||
device_queue, device_session, downlink_frame, get_redis_conn, redis_key,
|
||||
};
|
||||
use chirpstack_api::{api, gw, integration as integration_pb, internal, streams};
|
||||
use chirpstack_api::{gw, integration as integration_pb, internal, streams};
|
||||
use lrwn::EUI64;
|
||||
|
||||
lazy_static! {
|
||||
@ -429,7 +429,7 @@ pub fn uplink_meta_log(um: streams::UplinkMeta) -> Validator {
|
||||
})
|
||||
}
|
||||
|
||||
pub fn device_uplink_frame_log(uf: api::UplinkFrameLog) -> Validator {
|
||||
pub fn device_uplink_frame_log(uf: streams::UplinkFrameLog) -> Validator {
|
||||
Box::new(move || {
|
||||
let uf = uf.clone();
|
||||
Box::pin(async move {
|
||||
@ -449,7 +449,8 @@ pub fn device_uplink_frame_log(uf: api::UplinkFrameLog) -> Validator {
|
||||
for (k, v) in &stream_id.map {
|
||||
assert_eq!("up", k);
|
||||
if let redis::Value::Data(b) = v {
|
||||
let mut pl = api::UplinkFrameLog::decode(&mut Cursor::new(b)).unwrap();
|
||||
let mut pl =
|
||||
streams::UplinkFrameLog::decode(&mut Cursor::new(b)).unwrap();
|
||||
pl.time = None; // we don't have control over this value
|
||||
assert_eq!(uf, pl);
|
||||
} else {
|
||||
|
@ -11,7 +11,7 @@ use crate::storage::{
|
||||
device_profile, device_queue, device_session, gateway, mac_command, reset_redis, tenant,
|
||||
};
|
||||
use crate::{config, gateway::backend as gateway_backend, integration, region, test, uplink};
|
||||
use chirpstack_api::{api, common, gw, integration as integration_pb, internal};
|
||||
use chirpstack_api::{common, gw, integration as integration_pb, internal, streams};
|
||||
use lrwn::{AES128Key, EUI64};
|
||||
|
||||
type Function = Box<dyn Fn() -> Pin<Box<dyn Future<Output = ()>>>>;
|
||||
@ -546,7 +546,7 @@ async fn test_lorawan_10_errors() {
|
||||
},
|
||||
assert: vec![
|
||||
assert::no_uplink_event(),
|
||||
assert::device_uplink_frame_log(api::UplinkFrameLog {
|
||||
assert::device_uplink_frame_log(streams::UplinkFrameLog {
|
||||
phy_payload: vec![64, 4, 3, 2, 1, 0, 8, 0, 1, 1, 2, 3, 4],
|
||||
tx_info: Some(tx_info.clone()),
|
||||
rx_info: vec![rx_info.clone()],
|
||||
|
@ -20,7 +20,7 @@ use crate::storage::{
|
||||
device_gateway, device_profile, device_queue, device_session, fields, metrics, tenant,
|
||||
};
|
||||
use crate::{codec, config, downlink, framelog, integration, maccommand, metalog, region};
|
||||
use chirpstack_api::{api, integration as integration_pb, internal, streams};
|
||||
use chirpstack_api::{integration as integration_pb, internal, streams};
|
||||
use lrwn::{AES128Key, EUI64};
|
||||
|
||||
pub struct Data {
|
||||
@ -276,7 +276,7 @@ impl Data {
|
||||
info!(dev_addr = %dev_addr, "None of the device-sessions for dev_addr resulted in valid MIC");
|
||||
|
||||
// Log uplink for null DevEUI.
|
||||
let mut ufl: api::UplinkFrameLog = (&self.uplink_frame_set).try_into()?;
|
||||
let mut ufl: streams::UplinkFrameLog = (&self.uplink_frame_set).try_into()?;
|
||||
ufl.dev_eui = "0000000000000000".to_string();
|
||||
framelog::log_uplink_for_device(&ufl).await?;
|
||||
|
||||
@ -648,7 +648,7 @@ impl Data {
|
||||
|
||||
async fn log_uplink_frame_set(&self) -> Result<()> {
|
||||
trace!("Logging uplink frame-set");
|
||||
let mut ufl: api::UplinkFrameLog = (&self.uplink_frame_set).try_into()?;
|
||||
let mut ufl: streams::UplinkFrameLog = (&self.uplink_frame_set).try_into()?;
|
||||
ufl.dev_eui = self.device.as_ref().unwrap().dev_eui.to_string();
|
||||
|
||||
// self.phy_payload holds the decrypted payload.
|
||||
|
@ -31,7 +31,7 @@ use crate::storage::{
|
||||
use crate::{
|
||||
config, devaddr::get_random_dev_addr, downlink, framelog, integration, metalog, region,
|
||||
};
|
||||
use chirpstack_api::{api, common, integration as integration_pb, internal, streams};
|
||||
use chirpstack_api::{common, integration as integration_pb, internal, streams};
|
||||
|
||||
pub struct JoinRequest {
|
||||
uplink_frame_set: UplinkFrameSet,
|
||||
@ -383,7 +383,7 @@ impl JoinRequest {
|
||||
|
||||
async fn log_uplink_frame_set(&self) -> Result<()> {
|
||||
trace!("Logging uplink frame-set");
|
||||
let ufl: api::UplinkFrameLog = (&self.uplink_frame_set).try_into()?;
|
||||
let ufl: streams::UplinkFrameLog = (&self.uplink_frame_set).try_into()?;
|
||||
framelog::log_uplink_for_device(&ufl).await?;
|
||||
Ok(())
|
||||
}
|
||||
|
@ -2,9 +2,10 @@ use std::collections::HashMap;
|
||||
use std::convert::{TryFrom, TryInto};
|
||||
use std::io::Cursor;
|
||||
use std::str::FromStr;
|
||||
use std::time::{Duration, SystemTime};
|
||||
use std::time::Duration;
|
||||
|
||||
use anyhow::{Context, Result};
|
||||
use chrono::Utc;
|
||||
use prost::Message;
|
||||
use tokio::task;
|
||||
use tokio::time::sleep;
|
||||
@ -17,7 +18,7 @@ use crate::helpers::errors::PrintFullError;
|
||||
use crate::storage::{
|
||||
device, device_profile, error::Error as StorageError, gateway, get_redis_conn, redis_key,
|
||||
};
|
||||
use chirpstack_api::{api, common, gw, internal};
|
||||
use chirpstack_api::{common, gw, internal, streams};
|
||||
use lrwn::region::CommonName;
|
||||
use lrwn::{ForwardUplinkReq, MType, PhyPayload, EUI64};
|
||||
|
||||
@ -56,11 +57,11 @@ pub struct UplinkFrameSet {
|
||||
pub roaming_meta_data: Option<RoamingMetaData>,
|
||||
}
|
||||
|
||||
impl TryFrom<&UplinkFrameSet> for api::UplinkFrameLog {
|
||||
impl TryFrom<&UplinkFrameSet> for streams::UplinkFrameLog {
|
||||
type Error = anyhow::Error;
|
||||
|
||||
fn try_from(ufs: &UplinkFrameSet) -> std::result::Result<api::UplinkFrameLog, Self::Error> {
|
||||
let mut ufl = api::UplinkFrameLog {
|
||||
fn try_from(ufs: &UplinkFrameSet) -> std::result::Result<streams::UplinkFrameLog, Self::Error> {
|
||||
let mut ufl = streams::UplinkFrameLog {
|
||||
phy_payload: ufs.phy_payload.to_vec()?,
|
||||
tx_info: Some(ufs.tx_info.clone()),
|
||||
rx_info: ufs.rx_info_set.clone(),
|
||||
@ -93,16 +94,15 @@ impl TryFrom<&UplinkFrameSet> for api::UplinkFrameLog {
|
||||
|
||||
for rx_info in &ufl.rx_info {
|
||||
if rx_info.gw_time.is_some() {
|
||||
let time = rx_info.gw_time.as_ref().unwrap();
|
||||
ufl.time = Some(prost_types::Timestamp {
|
||||
seconds: time.seconds,
|
||||
nanos: time.nanos,
|
||||
ufl.time = rx_info.gw_time.as_ref().map(|t| pbjson_types::Timestamp {
|
||||
seconds: t.seconds,
|
||||
nanos: t.nanos,
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
if ufl.time.is_none() {
|
||||
ufl.time = Some(SystemTime::now().into());
|
||||
ufl.time = Some(Utc::now().into());
|
||||
}
|
||||
|
||||
Ok(ufl)
|
||||
@ -315,7 +315,7 @@ pub async fn handle_uplink(deduplication_id: Uuid, uplink: gw::UplinkFrameSet) -
|
||||
.context("Update gateway meta-data")?;
|
||||
|
||||
debug!("Logging uplink frame to Redis Stream");
|
||||
let ufl: api::UplinkFrameLog = (&uplink).try_into()?;
|
||||
let ufl: streams::UplinkFrameLog = (&uplink).try_into()?;
|
||||
framelog::log_uplink_for_gateways(&ufl)
|
||||
.await
|
||||
.context("Log uplink for gateways")?;
|
||||
|
Loading…
x
Reference in New Issue
Block a user