api: Change streams > stream to be consistent.

This commit is contained in:
Orne Brocaar 2023-10-31 14:03:31 +00:00
parent 9596f7c2d0
commit 36e6d5ccb9
62 changed files with 951 additions and 956 deletions

View File

@ -20,9 +20,9 @@
<Protobuf Include="../proto/api/multicast_group.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="../proto/streams/api_requests.proto" ProtoRoot="../proto/" OutputDir="Chirpstack/" CompileOutputs="false" AdditionalImportDirs="/googleproto" />
<Protobuf Include="../proto/stream/meta.proto" ProtoRoot="../proto/" OutputDir="Chirpstack/" CompileOutputs="false" AdditionalImportDirs="/googleproto" />
<Protobuf Include="../proto/stream/frame.proto" ProtoRoot="../proto/" OutputDir="Chirpstack/" CompileOutputs="false" AdditionalImportDirs="/googleproto" />
<Protobuf Include="../proto/stream/api_request.proto" ProtoRoot="../proto/" OutputDir="Chirpstack/" CompileOutputs="false" AdditionalImportDirs="/googleproto" />
<Protobuf Include="/googleproto/google/api/*.proto" ProtoRoot="/googleproto" OutputDir="Chirpstack/" CompileOutputs="false" />
</ItemGroup>

View File

@ -1,6 +1,6 @@
// <auto-generated>
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: streams/api_requests.proto
// source: stream/api_request.proto
// </auto-generated>
#pragma warning disable 1591, 0612, 3021, 8981
#region Designer generated code
@ -9,34 +9,34 @@ 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.Streams {
namespace Chirpstack.Stream {
/// <summary>Holder for reflection information generated from streams/api_requests.proto</summary>
public static partial class ApiRequestsReflection {
/// <summary>Holder for reflection information generated from stream/api_request.proto</summary>
public static partial class ApiRequestReflection {
#region Descriptor
/// <summary>File descriptor for streams/api_requests.proto</summary>
/// <summary>File descriptor for stream/api_request.proto</summary>
public static pbr::FileDescriptor Descriptor {
get { return descriptor; }
}
private static pbr::FileDescriptor descriptor;
static ApiRequestsReflection() {
static ApiRequestReflection() {
byte[] descriptorData = global::System.Convert.FromBase64String(
string.Concat(
"ChpzdHJlYW1zL2FwaV9yZXF1ZXN0cy5wcm90bxIHc3RyZWFtcxofZ29vZ2xl",
"L3Byb3RvYnVmL3RpbWVzdGFtcC5wcm90bxoTY29tbW9uL2NvbW1vbi5wcm90",
"bxoLZ3cvZ3cucHJvdG8imQEKDUFwaVJlcXVlc3RMb2cSDwoHc2VydmljZRgB",
"IAEoCRIOCgZtZXRob2QYAiABKAkSNgoIbWV0YWRhdGEYAyADKAsyJC5zdHJl",
"YW1zLkFwaVJlcXVlc3RMb2cuTWV0YWRhdGFFbnRyeRovCg1NZXRhZGF0YUVu",
"dHJ5EgsKA2tleRgBIAEoCRINCgV2YWx1ZRgCIAEoCToCOAFCeAoZaW8uY2hp",
"cnBzdGFjay5hcGkuc3RyZWFtc0IQQXBpUmVxdWVzdHNQcm90b1ABWjJnaXRo",
"dWIuY29tL2NoaXJwc3RhY2svY2hpcnBzdGFjay9hcGkvZ28vdjQvc3RyZWFt",
"c6oCEkNoaXJwc3RhY2suU3RyZWFtc2IGcHJvdG8z"));
"ChhzdHJlYW0vYXBpX3JlcXVlc3QucHJvdG8SBnN0cmVhbRofZ29vZ2xlL3By",
"b3RvYnVmL3RpbWVzdGFtcC5wcm90bxoTY29tbW9uL2NvbW1vbi5wcm90bxoL",
"Z3cvZ3cucHJvdG8imAEKDUFwaVJlcXVlc3RMb2cSDwoHc2VydmljZRgBIAEo",
"CRIOCgZtZXRob2QYAiABKAkSNQoIbWV0YWRhdGEYAyADKAsyIy5zdHJlYW0u",
"QXBpUmVxdWVzdExvZy5NZXRhZGF0YUVudHJ5Gi8KDU1ldGFkYXRhRW50cnkS",
"CwoDa2V5GAEgASgJEg0KBXZhbHVlGAIgASgJOgI4AUJ0Chhpby5jaGlycHN0",
"YWNrLmFwaS5zdHJlYW1CD0FwaVJlcXVlc3RQcm90b1ABWjFnaXRodWIuY29t",
"L2NoaXJwc3RhY2svY2hpcnBzdGFjay9hcGkvZ28vdjQvc3RyZWFtqgIRQ2hp",
"cnBzdGFjay5TdHJlYW1iBnByb3RvMw=="));
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.Streams.ApiRequestLog), global::Chirpstack.Streams.ApiRequestLog.Parser, new[]{ "Service", "Method", "Metadata" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { null, })
new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Stream.ApiRequestLog), global::Chirpstack.Stream.ApiRequestLog.Parser, new[]{ "Service", "Method", "Metadata" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { null, })
}));
}
#endregion
@ -57,7 +57,7 @@ namespace Chirpstack.Streams {
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pbr::MessageDescriptor Descriptor {
get { return global::Chirpstack.Streams.ApiRequestsReflection.Descriptor.MessageTypes[0]; }
get { return global::Chirpstack.Stream.ApiRequestReflection.Descriptor.MessageTypes[0]; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]

View File

@ -1,6 +1,6 @@
// <auto-generated>
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: streams/frames.proto
// source: stream/frame.proto
// </auto-generated>
#pragma warning disable 1591, 0612, 3021, 8981
#region Designer generated code
@ -9,44 +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.Streams {
namespace Chirpstack.Stream {
/// <summary>Holder for reflection information generated from streams/frames.proto</summary>
public static partial class FramesReflection {
/// <summary>Holder for reflection information generated from stream/frame.proto</summary>
public static partial class FrameReflection {
#region Descriptor
/// <summary>File descriptor for streams/frames.proto</summary>
/// <summary>File descriptor for stream/frame.proto</summary>
public static pbr::FileDescriptor Descriptor {
get { return descriptor; }
}
private static pbr::FileDescriptor descriptor;
static FramesReflection() {
static FrameReflection() {
byte[] descriptorData = global::System.Convert.FromBase64String(
string.Concat(
"ChRzdHJlYW1zL2ZyYW1lcy5wcm90bxIHc3RyZWFtcxofZ29vZ2xlL3Byb3Rv",
"YnVmL3RpbWVzdGFtcC5wcm90bxoTY29tbW9uL2NvbW1vbi5wcm90bxoLZ3cv",
"Z3cucHJvdG8ikAIKDlVwbGlua0ZyYW1lTG9nEhMKC3BoeV9wYXlsb2FkGAEg",
"ASgMEiEKB3R4X2luZm8YAiABKAsyEC5ndy5VcGxpbmtUeEluZm8SIQoHcnhf",
"aW5mbxgDIAMoCzIQLmd3LlVwbGlua1J4SW5mbxIdCgZtX3R5cGUYBCABKA4y",
"DS5jb21tb24uTVR5cGUSEAoIZGV2X2FkZHIYBSABKAkSDwoHZGV2X2V1aRgG",
"IAEoCRIoCgR0aW1lGAcgASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFt",
"cBIYChBwbGFpbnRleHRfZl9vcHRzGAggASgIEh0KFXBsYWludGV4dF9mcm1f",
"cGF5bG9hZBgJIAEoCCKaAgoQRG93bmxpbmtGcmFtZUxvZxIoCgR0aW1lGAEg",
"ASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcBITCgtwaHlfcGF5bG9h",
"ZBgCIAEoDBIjCgd0eF9pbmZvGAMgASgLMhIuZ3cuRG93bmxpbmtUeEluZm8S",
"EwoLZG93bmxpbmtfaWQYBCABKA0SEgoKZ2F0ZXdheV9pZBgFIAEoCRIdCgZt",
"X3R5cGUYBiABKA4yDS5jb21tb24uTVR5cGUSEAoIZGV2X2FkZHIYByABKAkS",
"DwoHZGV2X2V1aRgIIAEoCRIYChBwbGFpbnRleHRfZl9vcHRzGAkgASgIEh0K",
"FXBsYWludGV4dF9mcm1fcGF5bG9hZBgKIAEoCEJzChlpby5jaGlycHN0YWNr",
"LmFwaS5zdHJlYW1zQgtGcmFtZXNQcm90b1ABWjJnaXRodWIuY29tL2NoaXJw",
"c3RhY2svY2hpcnBzdGFjay9hcGkvZ28vdjQvc3RyZWFtc6oCEkNoaXJwc3Rh",
"Y2suU3RyZWFtc2IGcHJvdG8z"));
"ChJzdHJlYW0vZnJhbWUucHJvdG8SBnN0cmVhbRofZ29vZ2xlL3Byb3RvYnVm",
"L3RpbWVzdGFtcC5wcm90bxoTY29tbW9uL2NvbW1vbi5wcm90bxoLZ3cvZ3cu",
"cHJvdG8ikAIKDlVwbGlua0ZyYW1lTG9nEhMKC3BoeV9wYXlsb2FkGAEgASgM",
"EiEKB3R4X2luZm8YAiABKAsyEC5ndy5VcGxpbmtUeEluZm8SIQoHcnhfaW5m",
"bxgDIAMoCzIQLmd3LlVwbGlua1J4SW5mbxIdCgZtX3R5cGUYBCABKA4yDS5j",
"b21tb24uTVR5cGUSEAoIZGV2X2FkZHIYBSABKAkSDwoHZGV2X2V1aRgGIAEo",
"CRIoCgR0aW1lGAcgASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcBIY",
"ChBwbGFpbnRleHRfZl9vcHRzGAggASgIEh0KFXBsYWludGV4dF9mcm1fcGF5",
"bG9hZBgJIAEoCCKaAgoQRG93bmxpbmtGcmFtZUxvZxIoCgR0aW1lGAEgASgL",
"MhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcBITCgtwaHlfcGF5bG9hZBgC",
"IAEoDBIjCgd0eF9pbmZvGAMgASgLMhIuZ3cuRG93bmxpbmtUeEluZm8SEwoL",
"ZG93bmxpbmtfaWQYBCABKA0SEgoKZ2F0ZXdheV9pZBgFIAEoCRIdCgZtX3R5",
"cGUYBiABKA4yDS5jb21tb24uTVR5cGUSEAoIZGV2X2FkZHIYByABKAkSDwoH",
"ZGV2X2V1aRgIIAEoCRIYChBwbGFpbnRleHRfZl9vcHRzGAkgASgIEh0KFXBs",
"YWludGV4dF9mcm1fcGF5bG9hZBgKIAEoCEJvChhpby5jaGlycHN0YWNrLmFw",
"aS5zdHJlYW1CCkZyYW1lUHJvdG9QAVoxZ2l0aHViLmNvbS9jaGlycHN0YWNr",
"L2NoaXJwc3RhY2svYXBpL2dvL3Y0L3N0cmVhbaoCEUNoaXJwc3RhY2suU3Ry",
"ZWFtYgZwcm90bzM="));
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.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)
new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Stream.UplinkFrameLog), global::Chirpstack.Stream.UplinkFrameLog.Parser, new[]{ "PhyPayload", "TxInfo", "RxInfo", "MType", "DevAddr", "DevEui", "Time", "PlaintextFOpts", "PlaintextFrmPayload" }, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Stream.DownlinkFrameLog), global::Chirpstack.Stream.DownlinkFrameLog.Parser, new[]{ "Time", "PhyPayload", "TxInfo", "DownlinkId", "GatewayId", "MType", "DevAddr", "DevEui", "PlaintextFOpts", "PlaintextFrmPayload" }, null, null, null, null)
}));
}
#endregion
@ -67,7 +67,7 @@ namespace Chirpstack.Streams {
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pbr::MessageDescriptor Descriptor {
get { return global::Chirpstack.Streams.FramesReflection.Descriptor.MessageTypes[0]; }
get { return global::Chirpstack.Stream.FrameReflection.Descriptor.MessageTypes[0]; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
@ -586,7 +586,7 @@ namespace Chirpstack.Streams {
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pbr::MessageDescriptor Descriptor {
get { return global::Chirpstack.Streams.FramesReflection.Descriptor.MessageTypes[1]; }
get { return global::Chirpstack.Stream.FrameReflection.Descriptor.MessageTypes[1]; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]

View File

@ -1,6 +1,6 @@
// <auto-generated>
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: streams/meta.proto
// source: stream/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.Streams {
namespace Chirpstack.Stream {
/// <summary>Holder for reflection information generated from streams/meta.proto</summary>
/// <summary>Holder for reflection information generated from stream/meta.proto</summary>
public static partial class MetaReflection {
#region Descriptor
/// <summary>File descriptor for streams/meta.proto</summary>
/// <summary>File descriptor for stream/meta.proto</summary>
public static pbr::FileDescriptor Descriptor {
get { return descriptor; }
}
@ -24,27 +24,27 @@ namespace Chirpstack.Streams {
static MetaReflection() {
byte[] descriptorData = global::System.Convert.FromBase64String(
string.Concat(
"ChJzdHJlYW1zL21ldGEucHJvdG8SB3N0cmVhbXMaE2NvbW1vbi9jb21tb24u",
"cHJvdG8aC2d3L2d3LnByb3RvIvABCgpVcGxpbmtNZXRhEg8KB2Rldl9ldWkY",
"ASABKAkSIQoHdHhfaW5mbxgCIAEoCzIQLmd3LlVwbGlua1R4SW5mbxIhCgdy",
"eF9pbmZvGAMgAygLMhAuZ3cuVXBsaW5rUnhJbmZvEh4KFnBoeV9wYXlsb2Fk",
"X2J5dGVfY291bnQYBCABKA0SHgoWbWFjX2NvbW1hbmRfYnl0ZV9jb3VudBgF",
"IAEoDRImCh5hcHBsaWNhdGlvbl9wYXlsb2FkX2J5dGVfY291bnQYBiABKA0S",
"IwoMbWVzc2FnZV90eXBlGAcgASgOMg0uY29tbW9uLk1UeXBlIoECCgxEb3du",
"bGlua01ldGESDwoHZGV2X2V1aRgBIAEoCRIaChJtdWx0aWNhc3RfZ3JvdXBf",
"aWQYAiABKAkSIwoHdHhfaW5mbxgDIAEoCzISLmd3LkRvd25saW5rVHhJbmZv",
"Eh4KFnBoeV9wYXlsb2FkX2J5dGVfY291bnQYBCABKA0SHgoWbWFjX2NvbW1h",
"bmRfYnl0ZV9jb3VudBgFIAEoDRImCh5hcHBsaWNhdGlvbl9wYXlsb2FkX2J5",
"dGVfY291bnQYBiABKA0SIwoMbWVzc2FnZV90eXBlGAcgASgOMg0uY29tbW9u",
"Lk1UeXBlEhIKCmdhdGV3YXlfaWQYCCABKAlCcQoZaW8uY2hpcnBzdGFjay5h",
"cGkuc3RyZWFtc0IJTWV0YVByb3RvUAFaMmdpdGh1Yi5jb20vY2hpcnBzdGFj",
"ay9jaGlycHN0YWNrL2FwaS9nby92NC9zdHJlYW1zqgISQ2hpcnBzdGFjay5T",
"dHJlYW1zYgZwcm90bzM="));
"ChFzdHJlYW0vbWV0YS5wcm90bxIGc3RyZWFtGhNjb21tb24vY29tbW9uLnBy",
"b3RvGgtndy9ndy5wcm90byLwAQoKVXBsaW5rTWV0YRIPCgdkZXZfZXVpGAEg",
"ASgJEiEKB3R4X2luZm8YAiABKAsyEC5ndy5VcGxpbmtUeEluZm8SIQoHcnhf",
"aW5mbxgDIAMoCzIQLmd3LlVwbGlua1J4SW5mbxIeChZwaHlfcGF5bG9hZF9i",
"eXRlX2NvdW50GAQgASgNEh4KFm1hY19jb21tYW5kX2J5dGVfY291bnQYBSAB",
"KA0SJgoeYXBwbGljYXRpb25fcGF5bG9hZF9ieXRlX2NvdW50GAYgASgNEiMK",
"DG1lc3NhZ2VfdHlwZRgHIAEoDjINLmNvbW1vbi5NVHlwZSKBAgoMRG93bmxp",
"bmtNZXRhEg8KB2Rldl9ldWkYASABKAkSGgoSbXVsdGljYXN0X2dyb3VwX2lk",
"GAIgASgJEiMKB3R4X2luZm8YAyABKAsyEi5ndy5Eb3dubGlua1R4SW5mbxIe",
"ChZwaHlfcGF5bG9hZF9ieXRlX2NvdW50GAQgASgNEh4KFm1hY19jb21tYW5k",
"X2J5dGVfY291bnQYBSABKA0SJgoeYXBwbGljYXRpb25fcGF5bG9hZF9ieXRl",
"X2NvdW50GAYgASgNEiMKDG1lc3NhZ2VfdHlwZRgHIAEoDjINLmNvbW1vbi5N",
"VHlwZRISCgpnYXRld2F5X2lkGAggASgJQm4KGGlvLmNoaXJwc3RhY2suYXBp",
"LnN0cmVhbUIJTWV0YVByb3RvUAFaMWdpdGh1Yi5jb20vY2hpcnBzdGFjay9j",
"aGlycHN0YWNrL2FwaS9nby92NC9zdHJlYW2qAhFDaGlycHN0YWNrLlN0cmVh",
"bWIGcHJvdG8z"));
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.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)
new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Stream.UplinkMeta), global::Chirpstack.Stream.UplinkMeta.Parser, new[]{ "DevEui", "TxInfo", "RxInfo", "PhyPayloadByteCount", "MacCommandByteCount", "ApplicationPayloadByteCount", "MessageType" }, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Stream.DownlinkMeta), global::Chirpstack.Stream.DownlinkMeta.Parser, new[]{ "DevEui", "MulticastGroupId", "TxInfo", "PhyPayloadByteCount", "MacCommandByteCount", "ApplicationPayloadByteCount", "MessageType", "GatewayId" }, null, null, null, null)
}));
}
#endregion
@ -65,7 +65,7 @@ namespace Chirpstack.Streams {
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pbr::MessageDescriptor Descriptor {
get { return global::Chirpstack.Streams.MetaReflection.Descriptor.MessageTypes[0]; }
get { return global::Chirpstack.Stream.MetaReflection.Descriptor.MessageTypes[0]; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
@ -495,7 +495,7 @@ namespace Chirpstack.Streams {
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pbr::MessageDescriptor Descriptor {
get { return global::Chirpstack.Streams.MetaReflection.Descriptor.MessageTypes[1]; }
get { return global::Chirpstack.Stream.MetaReflection.Descriptor.MessageTypes[1]; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]

12
api/go/Makefile vendored
View File

@ -1,8 +1,8 @@
.PHONY: requirements common gw api integration streams
.PHONY: requirements common gw api integration stream
PROTOC_ARGS := -I=/googleapis -I=../proto --go_out=. --go_opt=paths=source_relative --go-grpc_out=. --go-grpc_opt=paths=source_relative
all: requirements common gw api integration streams
all: requirements common gw api integration stream
requirements:
go mod download
@ -30,7 +30,7 @@ api:
integration:
protoc ${PROTOC_ARGS} integration/integration.proto
streams:
protoc ${PROTOC_ARGS} streams/meta.proto
protoc ${PROTOC_ARGS} streams/frames.proto
protoc ${PROTOC_ARGS} streams/api_requests.proto
stream:
protoc ${PROTOC_ARGS} stream/meta.proto
protoc ${PROTOC_ARGS} stream/frame.proto
protoc ${PROTOC_ARGS} stream/api_request.proto

187
api/go/stream/api_request.pb.go vendored Normal file
View File

@ -0,0 +1,187 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.31.0
// protoc v3.21.9
// source: stream/api_request.proto
package stream
import (
_ "github.com/chirpstack/chirpstack/api/go/v4/common"
_ "github.com/chirpstack/chirpstack/api/go/v4/gw"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
_ "google.golang.org/protobuf/types/known/timestamppb"
reflect "reflect"
sync "sync"
)
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
type ApiRequestLog struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// API service name.
Service string `protobuf:"bytes,1,opt,name=service,proto3" json:"service,omitempty"`
// API method name.
Method string `protobuf:"bytes,2,opt,name=method,proto3" json:"method,omitempty"`
// Metadata.
Metadata map[string]string `protobuf:"bytes,3,rep,name=metadata,proto3" json:"metadata,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
}
func (x *ApiRequestLog) Reset() {
*x = ApiRequestLog{}
if protoimpl.UnsafeEnabled {
mi := &file_stream_api_request_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *ApiRequestLog) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ApiRequestLog) ProtoMessage() {}
func (x *ApiRequestLog) ProtoReflect() protoreflect.Message {
mi := &file_stream_api_request_proto_msgTypes[0]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use ApiRequestLog.ProtoReflect.Descriptor instead.
func (*ApiRequestLog) Descriptor() ([]byte, []int) {
return file_stream_api_request_proto_rawDescGZIP(), []int{0}
}
func (x *ApiRequestLog) GetService() string {
if x != nil {
return x.Service
}
return ""
}
func (x *ApiRequestLog) GetMethod() string {
if x != nil {
return x.Method
}
return ""
}
func (x *ApiRequestLog) GetMetadata() map[string]string {
if x != nil {
return x.Metadata
}
return nil
}
var File_stream_api_request_proto protoreflect.FileDescriptor
var file_stream_api_request_proto_rawDesc = []byte{
0x0a, 0x18, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x2f, 0x61, 0x70, 0x69, 0x5f, 0x72, 0x65, 0x71,
0x75, 0x65, 0x73, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x06, 0x73, 0x74, 0x72, 0x65,
0x61, 0x6d, 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, 0xbf, 0x01, 0x0a, 0x0d, 0x41, 0x70, 0x69, 0x52, 0x65, 0x71,
0x75, 0x65, 0x73, 0x74, 0x4c, 0x6f, 0x67, 0x12, 0x18, 0x0a, 0x07, 0x73, 0x65, 0x72, 0x76, 0x69,
0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63,
0x65, 0x12, 0x16, 0x0a, 0x06, 0x6d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28,
0x09, 0x52, 0x06, 0x6d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x12, 0x3f, 0x0a, 0x08, 0x6d, 0x65, 0x74,
0x61, 0x64, 0x61, 0x74, 0x61, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x73, 0x74,
0x72, 0x65, 0x61, 0x6d, 0x2e, 0x41, 0x70, 0x69, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x4c,
0x6f, 0x67, 0x2e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x45, 0x6e, 0x74, 0x72, 0x79,
0x52, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x1a, 0x3b, 0x0a, 0x0d, 0x4d, 0x65,
0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b,
0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a,
0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61,
0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x42, 0x74, 0x0a, 0x18, 0x69, 0x6f, 0x2e, 0x63, 0x68,
0x69, 0x72, 0x70, 0x73, 0x74, 0x61, 0x63, 0x6b, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x73, 0x74, 0x72,
0x65, 0x61, 0x6d, 0x42, 0x0f, 0x41, 0x70, 0x69, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x50,
0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x31, 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, 0xaa, 0x02, 0x11, 0x43, 0x68, 0x69, 0x72,
0x70, 0x73, 0x74, 0x61, 0x63, 0x6b, 0x2e, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x62, 0x06, 0x70,
0x72, 0x6f, 0x74, 0x6f, 0x33,
}
var (
file_stream_api_request_proto_rawDescOnce sync.Once
file_stream_api_request_proto_rawDescData = file_stream_api_request_proto_rawDesc
)
func file_stream_api_request_proto_rawDescGZIP() []byte {
file_stream_api_request_proto_rawDescOnce.Do(func() {
file_stream_api_request_proto_rawDescData = protoimpl.X.CompressGZIP(file_stream_api_request_proto_rawDescData)
})
return file_stream_api_request_proto_rawDescData
}
var file_stream_api_request_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
var file_stream_api_request_proto_goTypes = []interface{}{
(*ApiRequestLog)(nil), // 0: stream.ApiRequestLog
nil, // 1: stream.ApiRequestLog.MetadataEntry
}
var file_stream_api_request_proto_depIdxs = []int32{
1, // 0: stream.ApiRequestLog.metadata:type_name -> stream.ApiRequestLog.MetadataEntry
1, // [1:1] is the sub-list for method output_type
1, // [1:1] is the sub-list for method input_type
1, // [1:1] is the sub-list for extension type_name
1, // [1:1] is the sub-list for extension extendee
0, // [0:1] is the sub-list for field type_name
}
func init() { file_stream_api_request_proto_init() }
func file_stream_api_request_proto_init() {
if File_stream_api_request_proto != nil {
return
}
if !protoimpl.UnsafeEnabled {
file_stream_api_request_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*ApiRequestLog); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_stream_api_request_proto_rawDesc,
NumEnums: 0,
NumMessages: 2,
NumExtensions: 0,
NumServices: 0,
},
GoTypes: file_stream_api_request_proto_goTypes,
DependencyIndexes: file_stream_api_request_proto_depIdxs,
MessageInfos: file_stream_api_request_proto_msgTypes,
}.Build()
File_stream_api_request_proto = out.File
file_stream_api_request_proto_rawDesc = nil
file_stream_api_request_proto_goTypes = nil
file_stream_api_request_proto_depIdxs = nil
}

View File

@ -2,9 +2,9 @@
// versions:
// protoc-gen-go v1.31.0
// protoc v3.21.9
// source: streams/frames.proto
// source: stream/frame.proto
package streams
package stream
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_streams_frames_proto_msgTypes[0]
mi := &file_stream_frame_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_streams_frames_proto_msgTypes[0]
mi := &file_stream_frame_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_streams_frames_proto_rawDescGZIP(), []int{0}
return file_stream_frame_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_streams_frames_proto_msgTypes[1]
mi := &file_stream_frame_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_streams_frames_proto_msgTypes[1]
mi := &file_stream_frame_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_streams_frames_proto_rawDescGZIP(), []int{1}
return file_stream_frame_proto_rawDescGZIP(), []int{1}
}
func (x *DownlinkFrameLog) GetTime() *timestamppb.Timestamp {
@ -272,103 +272,103 @@ func (x *DownlinkFrameLog) GetPlaintextFrmPayload() bool {
return false
}
var File_streams_frames_proto protoreflect.FileDescriptor
var File_stream_frame_proto protoreflect.FileDescriptor
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,
var file_stream_frame_proto_rawDesc = []byte{
0x0a, 0x12, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x2f, 0x66, 0x72, 0x61, 0x6d, 0x65, 0x2e, 0x70,
0x72, 0x6f, 0x74, 0x6f, 0x12, 0x06, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 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, 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, 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,
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,
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, 0x6f, 0x0a, 0x18,
0x69, 0x6f, 0x2e, 0x63, 0x68, 0x69, 0x72, 0x70, 0x73, 0x74, 0x61, 0x63, 0x6b, 0x2e, 0x61, 0x70,
0x69, 0x2e, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x42, 0x0a, 0x46, 0x72, 0x61, 0x6d, 0x65, 0x50,
0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x31, 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, 0xaa, 0x02, 0x11, 0x43, 0x68, 0x69, 0x72,
0x70, 0x73, 0x74, 0x61, 0x63, 0x6b, 0x2e, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x62, 0x06, 0x70,
0x72, 0x6f, 0x74, 0x6f, 0x33,
}
var (
file_streams_frames_proto_rawDescOnce sync.Once
file_streams_frames_proto_rawDescData = file_streams_frames_proto_rawDesc
file_stream_frame_proto_rawDescOnce sync.Once
file_stream_frame_proto_rawDescData = file_stream_frame_proto_rawDesc
)
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)
func file_stream_frame_proto_rawDescGZIP() []byte {
file_stream_frame_proto_rawDescOnce.Do(func() {
file_stream_frame_proto_rawDescData = protoimpl.X.CompressGZIP(file_stream_frame_proto_rawDescData)
})
return file_streams_frames_proto_rawDescData
return file_stream_frame_proto_rawDescData
}
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
var file_stream_frame_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
var file_stream_frame_proto_goTypes = []interface{}{
(*UplinkFrameLog)(nil), // 0: stream.UplinkFrameLog
(*DownlinkFrameLog)(nil), // 1: stream.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_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
var file_stream_frame_proto_depIdxs = []int32{
2, // 0: stream.UplinkFrameLog.tx_info:type_name -> gw.UplinkTxInfo
3, // 1: stream.UplinkFrameLog.rx_info:type_name -> gw.UplinkRxInfo
4, // 2: stream.UplinkFrameLog.m_type:type_name -> common.MType
5, // 3: stream.UplinkFrameLog.time:type_name -> google.protobuf.Timestamp
5, // 4: stream.DownlinkFrameLog.time:type_name -> google.protobuf.Timestamp
6, // 5: stream.DownlinkFrameLog.tx_info:type_name -> gw.DownlinkTxInfo
4, // 6: stream.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
@ -376,13 +376,13 @@ var file_streams_frames_proto_depIdxs = []int32{
0, // [0:7] is the sub-list for field type_name
}
func init() { file_streams_frames_proto_init() }
func file_streams_frames_proto_init() {
if File_streams_frames_proto != nil {
func init() { file_stream_frame_proto_init() }
func file_stream_frame_proto_init() {
if File_stream_frame_proto != nil {
return
}
if !protoimpl.UnsafeEnabled {
file_streams_frames_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
file_stream_frame_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*UplinkFrameLog); i {
case 0:
return &v.state
@ -394,7 +394,7 @@ func file_streams_frames_proto_init() {
return nil
}
}
file_streams_frames_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
file_stream_frame_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*DownlinkFrameLog); i {
case 0:
return &v.state
@ -411,18 +411,18 @@ func file_streams_frames_proto_init() {
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_streams_frames_proto_rawDesc,
RawDescriptor: file_stream_frame_proto_rawDesc,
NumEnums: 0,
NumMessages: 2,
NumExtensions: 0,
NumServices: 0,
},
GoTypes: file_streams_frames_proto_goTypes,
DependencyIndexes: file_streams_frames_proto_depIdxs,
MessageInfos: file_streams_frames_proto_msgTypes,
GoTypes: file_stream_frame_proto_goTypes,
DependencyIndexes: file_stream_frame_proto_depIdxs,
MessageInfos: file_stream_frame_proto_msgTypes,
}.Build()
File_streams_frames_proto = out.File
file_streams_frames_proto_rawDesc = nil
file_streams_frames_proto_goTypes = nil
file_streams_frames_proto_depIdxs = nil
File_stream_frame_proto = out.File
file_stream_frame_proto_rawDesc = nil
file_stream_frame_proto_goTypes = nil
file_stream_frame_proto_depIdxs = nil
}

View File

@ -2,9 +2,9 @@
// versions:
// protoc-gen-go v1.31.0
// protoc v3.21.9
// source: streams/meta.proto
// source: stream/meta.proto
package streams
package stream
import (
common "github.com/chirpstack/chirpstack/api/go/v4/common"
@ -46,7 +46,7 @@ type UplinkMeta struct {
func (x *UplinkMeta) Reset() {
*x = UplinkMeta{}
if protoimpl.UnsafeEnabled {
mi := &file_streams_meta_proto_msgTypes[0]
mi := &file_stream_meta_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@ -59,7 +59,7 @@ func (x *UplinkMeta) String() string {
func (*UplinkMeta) ProtoMessage() {}
func (x *UplinkMeta) ProtoReflect() protoreflect.Message {
mi := &file_streams_meta_proto_msgTypes[0]
mi := &file_stream_meta_proto_msgTypes[0]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@ -72,7 +72,7 @@ func (x *UplinkMeta) ProtoReflect() protoreflect.Message {
// Deprecated: Use UplinkMeta.ProtoReflect.Descriptor instead.
func (*UplinkMeta) Descriptor() ([]byte, []int) {
return file_streams_meta_proto_rawDescGZIP(), []int{0}
return file_stream_meta_proto_rawDescGZIP(), []int{0}
}
func (x *UplinkMeta) GetDevEui() string {
@ -150,7 +150,7 @@ type DownlinkMeta struct {
func (x *DownlinkMeta) Reset() {
*x = DownlinkMeta{}
if protoimpl.UnsafeEnabled {
mi := &file_streams_meta_proto_msgTypes[1]
mi := &file_stream_meta_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@ -163,7 +163,7 @@ func (x *DownlinkMeta) String() string {
func (*DownlinkMeta) ProtoMessage() {}
func (x *DownlinkMeta) ProtoReflect() protoreflect.Message {
mi := &file_streams_meta_proto_msgTypes[1]
mi := &file_stream_meta_proto_msgTypes[1]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@ -176,7 +176,7 @@ func (x *DownlinkMeta) ProtoReflect() protoreflect.Message {
// Deprecated: Use DownlinkMeta.ProtoReflect.Descriptor instead.
func (*DownlinkMeta) Descriptor() ([]byte, []int) {
return file_streams_meta_proto_rawDescGZIP(), []int{1}
return file_stream_meta_proto_rawDescGZIP(), []int{1}
}
func (x *DownlinkMeta) GetDevEui() string {
@ -235,96 +235,96 @@ func (x *DownlinkMeta) GetGatewayId() string {
return ""
}
var File_streams_meta_proto protoreflect.FileDescriptor
var File_stream_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, 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,
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_stream_meta_proto_rawDesc = []byte{
0x0a, 0x11, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x2f, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x70, 0x72,
0x6f, 0x74, 0x6f, 0x12, 0x06, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 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, 0x6e, 0x0a, 0x18, 0x69, 0x6f, 0x2e, 0x63, 0x68, 0x69, 0x72, 0x70, 0x73, 0x74, 0x61,
0x63, 0x6b, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x42, 0x09, 0x4d,
0x65, 0x74, 0x61, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x31, 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, 0xaa, 0x02, 0x11,
0x43, 0x68, 0x69, 0x72, 0x70, 0x73, 0x74, 0x61, 0x63, 0x6b, 0x2e, 0x53, 0x74, 0x72, 0x65, 0x61,
0x6d, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
}
var (
file_streams_meta_proto_rawDescOnce sync.Once
file_streams_meta_proto_rawDescData = file_streams_meta_proto_rawDesc
file_stream_meta_proto_rawDescOnce sync.Once
file_stream_meta_proto_rawDescData = file_stream_meta_proto_rawDesc
)
func file_streams_meta_proto_rawDescGZIP() []byte {
file_streams_meta_proto_rawDescOnce.Do(func() {
file_streams_meta_proto_rawDescData = protoimpl.X.CompressGZIP(file_streams_meta_proto_rawDescData)
func file_stream_meta_proto_rawDescGZIP() []byte {
file_stream_meta_proto_rawDescOnce.Do(func() {
file_stream_meta_proto_rawDescData = protoimpl.X.CompressGZIP(file_stream_meta_proto_rawDescData)
})
return file_streams_meta_proto_rawDescData
return file_stream_meta_proto_rawDescData
}
var file_streams_meta_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
var file_streams_meta_proto_goTypes = []interface{}{
(*UplinkMeta)(nil), // 0: streams.UplinkMeta
(*DownlinkMeta)(nil), // 1: streams.DownlinkMeta
var file_stream_meta_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
var file_stream_meta_proto_goTypes = []interface{}{
(*UplinkMeta)(nil), // 0: stream.UplinkMeta
(*DownlinkMeta)(nil), // 1: stream.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: 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
var file_stream_meta_proto_depIdxs = []int32{
2, // 0: stream.UplinkMeta.tx_info:type_name -> gw.UplinkTxInfo
3, // 1: stream.UplinkMeta.rx_info:type_name -> gw.UplinkRxInfo
4, // 2: stream.UplinkMeta.message_type:type_name -> common.MType
5, // 3: stream.DownlinkMeta.tx_info:type_name -> gw.DownlinkTxInfo
4, // 4: stream.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
@ -332,13 +332,13 @@ var file_streams_meta_proto_depIdxs = []int32{
0, // [0:5] is the sub-list for field type_name
}
func init() { file_streams_meta_proto_init() }
func file_streams_meta_proto_init() {
if File_streams_meta_proto != nil {
func init() { file_stream_meta_proto_init() }
func file_stream_meta_proto_init() {
if File_stream_meta_proto != nil {
return
}
if !protoimpl.UnsafeEnabled {
file_streams_meta_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
file_stream_meta_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*UplinkMeta); i {
case 0:
return &v.state
@ -350,7 +350,7 @@ func file_streams_meta_proto_init() {
return nil
}
}
file_streams_meta_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
file_stream_meta_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*DownlinkMeta); i {
case 0:
return &v.state
@ -367,18 +367,18 @@ func file_streams_meta_proto_init() {
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_streams_meta_proto_rawDesc,
RawDescriptor: file_stream_meta_proto_rawDesc,
NumEnums: 0,
NumMessages: 2,
NumExtensions: 0,
NumServices: 0,
},
GoTypes: file_streams_meta_proto_goTypes,
DependencyIndexes: file_streams_meta_proto_depIdxs,
MessageInfos: file_streams_meta_proto_msgTypes,
GoTypes: file_stream_meta_proto_goTypes,
DependencyIndexes: file_stream_meta_proto_depIdxs,
MessageInfos: file_stream_meta_proto_msgTypes,
}.Build()
File_streams_meta_proto = out.File
file_streams_meta_proto_rawDesc = nil
file_streams_meta_proto_goTypes = nil
file_streams_meta_proto_depIdxs = nil
File_stream_meta_proto = out.File
file_stream_meta_proto_rawDesc = nil
file_stream_meta_proto_goTypes = nil
file_stream_meta_proto_depIdxs = nil
}

View File

@ -1,187 +0,0 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.31.0
// protoc v3.21.9
// source: streams/api_requests.proto
package streams
import (
_ "github.com/chirpstack/chirpstack/api/go/v4/common"
_ "github.com/chirpstack/chirpstack/api/go/v4/gw"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
_ "google.golang.org/protobuf/types/known/timestamppb"
reflect "reflect"
sync "sync"
)
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
type ApiRequestLog struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// API service name.
Service string `protobuf:"bytes,1,opt,name=service,proto3" json:"service,omitempty"`
// API method name.
Method string `protobuf:"bytes,2,opt,name=method,proto3" json:"method,omitempty"`
// Metadata.
Metadata map[string]string `protobuf:"bytes,3,rep,name=metadata,proto3" json:"metadata,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
}
func (x *ApiRequestLog) Reset() {
*x = ApiRequestLog{}
if protoimpl.UnsafeEnabled {
mi := &file_streams_api_requests_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *ApiRequestLog) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ApiRequestLog) ProtoMessage() {}
func (x *ApiRequestLog) ProtoReflect() protoreflect.Message {
mi := &file_streams_api_requests_proto_msgTypes[0]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use ApiRequestLog.ProtoReflect.Descriptor instead.
func (*ApiRequestLog) Descriptor() ([]byte, []int) {
return file_streams_api_requests_proto_rawDescGZIP(), []int{0}
}
func (x *ApiRequestLog) GetService() string {
if x != nil {
return x.Service
}
return ""
}
func (x *ApiRequestLog) GetMethod() string {
if x != nil {
return x.Method
}
return ""
}
func (x *ApiRequestLog) GetMetadata() map[string]string {
if x != nil {
return x.Metadata
}
return nil
}
var File_streams_api_requests_proto protoreflect.FileDescriptor
var file_streams_api_requests_proto_rawDesc = []byte{
0x0a, 0x1a, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x73, 0x2f, 0x61, 0x70, 0x69, 0x5f, 0x72, 0x65,
0x71, 0x75, 0x65, 0x73, 0x74, 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, 0xc0, 0x01, 0x0a, 0x0d, 0x41, 0x70, 0x69,
0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x4c, 0x6f, 0x67, 0x12, 0x18, 0x0a, 0x07, 0x73, 0x65,
0x72, 0x76, 0x69, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x73, 0x65, 0x72,
0x76, 0x69, 0x63, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x6d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x18, 0x02,
0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x6d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x12, 0x40, 0x0a, 0x08,
0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x24,
0x2e, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x73, 0x2e, 0x41, 0x70, 0x69, 0x52, 0x65, 0x71, 0x75,
0x65, 0x73, 0x74, 0x4c, 0x6f, 0x67, 0x2e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x45,
0x6e, 0x74, 0x72, 0x79, 0x52, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x1a, 0x3b,
0x0a, 0x0d, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12,
0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65,
0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09,
0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x42, 0x78, 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, 0x10, 0x41, 0x70, 0x69, 0x52, 0x65, 0x71,
0x75, 0x65, 0x73, 0x74, 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_streams_api_requests_proto_rawDescOnce sync.Once
file_streams_api_requests_proto_rawDescData = file_streams_api_requests_proto_rawDesc
)
func file_streams_api_requests_proto_rawDescGZIP() []byte {
file_streams_api_requests_proto_rawDescOnce.Do(func() {
file_streams_api_requests_proto_rawDescData = protoimpl.X.CompressGZIP(file_streams_api_requests_proto_rawDescData)
})
return file_streams_api_requests_proto_rawDescData
}
var file_streams_api_requests_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
var file_streams_api_requests_proto_goTypes = []interface{}{
(*ApiRequestLog)(nil), // 0: streams.ApiRequestLog
nil, // 1: streams.ApiRequestLog.MetadataEntry
}
var file_streams_api_requests_proto_depIdxs = []int32{
1, // 0: streams.ApiRequestLog.metadata:type_name -> streams.ApiRequestLog.MetadataEntry
1, // [1:1] is the sub-list for method output_type
1, // [1:1] is the sub-list for method input_type
1, // [1:1] is the sub-list for extension type_name
1, // [1:1] is the sub-list for extension extendee
0, // [0:1] is the sub-list for field type_name
}
func init() { file_streams_api_requests_proto_init() }
func file_streams_api_requests_proto_init() {
if File_streams_api_requests_proto != nil {
return
}
if !protoimpl.UnsafeEnabled {
file_streams_api_requests_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*ApiRequestLog); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_streams_api_requests_proto_rawDesc,
NumEnums: 0,
NumMessages: 2,
NumExtensions: 0,
NumServices: 0,
},
GoTypes: file_streams_api_requests_proto_goTypes,
DependencyIndexes: file_streams_api_requests_proto_depIdxs,
MessageInfos: file_streams_api_requests_proto_msgTypes,
}.Build()
File_streams_api_requests_proto = out.File
file_streams_api_requests_proto_rawDesc = nil
file_streams_api_requests_proto_goTypes = nil
file_streams_api_requests_proto_depIdxs = nil
}

12
api/js/Makefile vendored
View File

@ -1,4 +1,4 @@
.PHONY: requirements common gw api integration streams
.PHONY: requirements common gw api integration stream
PROTOC_PATH := ./node_modules/grpc-tools/bin/protoc
PROTOC_GEN_TS_PATH := ./node_modules/.bin/protoc-gen-ts
@ -6,7 +6,7 @@ PROTOC_GEN_GRPC_PATH := ./node_modules/.bin/grpc_tools_node_protoc_plugin
PROTOC_ARGS := -I=/googleapis -I=../proto --plugin=protoc-gen-ts=$(PROTOC_GEN_TS_PATH) --plugin=protoc-gen-grpc=$(PROTOC_GEN_GRPC_PATH) --js_out=import_style=commonjs,binary:. --ts_out=service=grpc-node,mode=grpc-js:.
PROTOC_GRPC_ARGS := $(PROTOC_ARGS) --grpc_out=grpc_js:.
all: requirements common gw api integration streams google-api
all: requirements common gw api integration stream google-api
requirements:
yarn install
@ -32,10 +32,10 @@ api:
integration:
protoc ${PROTOC_ARGS} ../proto/integration/integration.proto
streams:
protoc ${PROTOC_ARGS} ../proto/streams/meta.proto
protoc ${PROTOC_ARGS} ../proto/streams/frames.proto
protoc ${PROTOC_ARGS} ../proto/streams/api_requests.proto
stream:
protoc ${PROTOC_ARGS} ../proto/stream/meta.proto
protoc ${PROTOC_ARGS} ../proto/stream/frame.proto
protoc ${PROTOC_ARGS} ../proto/stream/api_request.proto
google-api:
protoc $(PROTOC_ARGS) /googleapis/google/api/*.proto

View File

@ -1,5 +1,5 @@
// package: streams
// file: streams/api_requests.proto
// package: stream
// file: stream/api_request.proto
import * as jspb from "google-protobuf";
import * as google_protobuf_timestamp_pb from "google-protobuf/google/protobuf/timestamp_pb";

View File

@ -1,4 +1,4 @@
// source: streams/api_requests.proto
// source: stream/api_request.proto
/**
* @fileoverview
* @enhanceable
@ -18,7 +18,7 @@ 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.streams.ApiRequestLog', null, global);
goog.exportSymbol('proto.stream.ApiRequestLog', null, global);
/**
* Generated by JsPbCodeGenerator.
* @param {Array=} opt_data Optional initial data array, typically from a
@ -29,16 +29,16 @@ goog.exportSymbol('proto.streams.ApiRequestLog', null, global);
* @extends {jspb.Message}
* @constructor
*/
proto.streams.ApiRequestLog = function(opt_data) {
proto.stream.ApiRequestLog = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.streams.ApiRequestLog, jspb.Message);
goog.inherits(proto.stream.ApiRequestLog, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.streams.ApiRequestLog.displayName = 'proto.streams.ApiRequestLog';
proto.stream.ApiRequestLog.displayName = 'proto.stream.ApiRequestLog';
}
@ -56,8 +56,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
* http://goto/soy-param-migration
* @return {!Object}
*/
proto.streams.ApiRequestLog.prototype.toObject = function(opt_includeInstance) {
return proto.streams.ApiRequestLog.toObject(opt_includeInstance, this);
proto.stream.ApiRequestLog.prototype.toObject = function(opt_includeInstance) {
return proto.stream.ApiRequestLog.toObject(opt_includeInstance, this);
};
@ -66,11 +66,11 @@ proto.streams.ApiRequestLog.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.streams.ApiRequestLog} msg The msg instance to transform.
* @param {!proto.stream.ApiRequestLog} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.streams.ApiRequestLog.toObject = function(includeInstance, msg) {
proto.stream.ApiRequestLog.toObject = function(includeInstance, msg) {
var f, obj = {
service: jspb.Message.getFieldWithDefault(msg, 1, ""),
method: jspb.Message.getFieldWithDefault(msg, 2, ""),
@ -88,23 +88,23 @@ proto.streams.ApiRequestLog.toObject = function(includeInstance, msg) {
/**
* Deserializes binary data (in protobuf wire format).
* @param {jspb.ByteSource} bytes The bytes to deserialize.
* @return {!proto.streams.ApiRequestLog}
* @return {!proto.stream.ApiRequestLog}
*/
proto.streams.ApiRequestLog.deserializeBinary = function(bytes) {
proto.stream.ApiRequestLog.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.streams.ApiRequestLog;
return proto.streams.ApiRequestLog.deserializeBinaryFromReader(msg, reader);
var msg = new proto.stream.ApiRequestLog;
return proto.stream.ApiRequestLog.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.streams.ApiRequestLog} msg The message object to deserialize into.
* @param {!proto.stream.ApiRequestLog} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.streams.ApiRequestLog}
* @return {!proto.stream.ApiRequestLog}
*/
proto.streams.ApiRequestLog.deserializeBinaryFromReader = function(msg, reader) {
proto.stream.ApiRequestLog.deserializeBinaryFromReader = function(msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
@ -138,9 +138,9 @@ proto.streams.ApiRequestLog.deserializeBinaryFromReader = function(msg, reader)
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.streams.ApiRequestLog.prototype.serializeBinary = function() {
proto.stream.ApiRequestLog.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.streams.ApiRequestLog.serializeBinaryToWriter(this, writer);
proto.stream.ApiRequestLog.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer();
};
@ -148,11 +148,11 @@ proto.streams.ApiRequestLog.prototype.serializeBinary = function() {
/**
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.streams.ApiRequestLog} message
* @param {!proto.stream.ApiRequestLog} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.streams.ApiRequestLog.serializeBinaryToWriter = function(message, writer) {
proto.stream.ApiRequestLog.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getService();
if (f.length > 0) {
@ -179,16 +179,16 @@ proto.streams.ApiRequestLog.serializeBinaryToWriter = function(message, writer)
* optional string service = 1;
* @return {string}
*/
proto.streams.ApiRequestLog.prototype.getService = function() {
proto.stream.ApiRequestLog.prototype.getService = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
};
/**
* @param {string} value
* @return {!proto.streams.ApiRequestLog} returns this
* @return {!proto.stream.ApiRequestLog} returns this
*/
proto.streams.ApiRequestLog.prototype.setService = function(value) {
proto.stream.ApiRequestLog.prototype.setService = function(value) {
return jspb.Message.setProto3StringField(this, 1, value);
};
@ -197,16 +197,16 @@ proto.streams.ApiRequestLog.prototype.setService = function(value) {
* optional string method = 2;
* @return {string}
*/
proto.streams.ApiRequestLog.prototype.getMethod = function() {
proto.stream.ApiRequestLog.prototype.getMethod = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
};
/**
* @param {string} value
* @return {!proto.streams.ApiRequestLog} returns this
* @return {!proto.stream.ApiRequestLog} returns this
*/
proto.streams.ApiRequestLog.prototype.setMethod = function(value) {
proto.stream.ApiRequestLog.prototype.setMethod = function(value) {
return jspb.Message.setProto3StringField(this, 2, value);
};
@ -217,7 +217,7 @@ proto.streams.ApiRequestLog.prototype.setMethod = function(value) {
* empty, instead returning `undefined`
* @return {!jspb.Map<string,string>}
*/
proto.streams.ApiRequestLog.prototype.getMetadataMap = function(opt_noLazyCreate) {
proto.stream.ApiRequestLog.prototype.getMetadataMap = function(opt_noLazyCreate) {
return /** @type {!jspb.Map<string,string>} */ (
jspb.Message.getMapField(this, 3, opt_noLazyCreate,
null));
@ -226,11 +226,11 @@ proto.streams.ApiRequestLog.prototype.getMetadataMap = function(opt_noLazyCreate
/**
* Clears values from the map. The map will be non-null.
* @return {!proto.streams.ApiRequestLog} returns this
* @return {!proto.stream.ApiRequestLog} returns this
*/
proto.streams.ApiRequestLog.prototype.clearMetadataMap = function() {
proto.stream.ApiRequestLog.prototype.clearMetadataMap = function() {
this.getMetadataMap().clear();
return this;};
goog.object.extend(exports, proto.streams);
goog.object.extend(exports, proto.stream);

View File

@ -1,5 +1,5 @@
// package: streams
// file: streams/frames.proto
// package: stream
// file: stream/frame.proto
import * as jspb from "google-protobuf";
import * as google_protobuf_timestamp_pb from "google-protobuf/google/protobuf/timestamp_pb";

View File

@ -1,4 +1,4 @@
// source: streams/frames.proto
// source: stream/frame.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.streams.DownlinkFrameLog', null, global);
goog.exportSymbol('proto.streams.UplinkFrameLog', null, global);
goog.exportSymbol('proto.stream.DownlinkFrameLog', null, global);
goog.exportSymbol('proto.stream.UplinkFrameLog', null, global);
/**
* Generated by JsPbCodeGenerator.
* @param {Array=} opt_data Optional initial data array, typically from a
@ -30,16 +30,16 @@ goog.exportSymbol('proto.streams.UplinkFrameLog', null, global);
* @extends {jspb.Message}
* @constructor
*/
proto.streams.UplinkFrameLog = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, proto.streams.UplinkFrameLog.repeatedFields_, null);
proto.stream.UplinkFrameLog = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, proto.stream.UplinkFrameLog.repeatedFields_, null);
};
goog.inherits(proto.streams.UplinkFrameLog, jspb.Message);
goog.inherits(proto.stream.UplinkFrameLog, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.streams.UplinkFrameLog.displayName = 'proto.streams.UplinkFrameLog';
proto.stream.UplinkFrameLog.displayName = 'proto.stream.UplinkFrameLog';
}
/**
* Generated by JsPbCodeGenerator.
@ -51,16 +51,16 @@ if (goog.DEBUG && !COMPILED) {
* @extends {jspb.Message}
* @constructor
*/
proto.streams.DownlinkFrameLog = function(opt_data) {
proto.stream.DownlinkFrameLog = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.streams.DownlinkFrameLog, jspb.Message);
goog.inherits(proto.stream.DownlinkFrameLog, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.streams.DownlinkFrameLog.displayName = 'proto.streams.DownlinkFrameLog';
proto.stream.DownlinkFrameLog.displayName = 'proto.stream.DownlinkFrameLog';
}
/**
@ -68,7 +68,7 @@ if (goog.DEBUG && !COMPILED) {
* @private {!Array<number>}
* @const
*/
proto.streams.UplinkFrameLog.repeatedFields_ = [3];
proto.stream.UplinkFrameLog.repeatedFields_ = [3];
@ -85,8 +85,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
* http://goto/soy-param-migration
* @return {!Object}
*/
proto.streams.UplinkFrameLog.prototype.toObject = function(opt_includeInstance) {
return proto.streams.UplinkFrameLog.toObject(opt_includeInstance, this);
proto.stream.UplinkFrameLog.prototype.toObject = function(opt_includeInstance) {
return proto.stream.UplinkFrameLog.toObject(opt_includeInstance, this);
};
@ -95,11 +95,11 @@ proto.streams.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.streams.UplinkFrameLog} msg The msg instance to transform.
* @param {!proto.stream.UplinkFrameLog} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.streams.UplinkFrameLog.toObject = function(includeInstance, msg) {
proto.stream.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.streams.UplinkFrameLog.toObject = function(includeInstance, msg) {
/**
* Deserializes binary data (in protobuf wire format).
* @param {jspb.ByteSource} bytes The bytes to deserialize.
* @return {!proto.streams.UplinkFrameLog}
* @return {!proto.stream.UplinkFrameLog}
*/
proto.streams.UplinkFrameLog.deserializeBinary = function(bytes) {
proto.stream.UplinkFrameLog.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.streams.UplinkFrameLog;
return proto.streams.UplinkFrameLog.deserializeBinaryFromReader(msg, reader);
var msg = new proto.stream.UplinkFrameLog;
return proto.stream.UplinkFrameLog.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.streams.UplinkFrameLog} msg The message object to deserialize into.
* @param {!proto.stream.UplinkFrameLog} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.streams.UplinkFrameLog}
* @return {!proto.stream.UplinkFrameLog}
*/
proto.streams.UplinkFrameLog.deserializeBinaryFromReader = function(msg, reader) {
proto.stream.UplinkFrameLog.deserializeBinaryFromReader = function(msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
@ -199,9 +199,9 @@ proto.streams.UplinkFrameLog.deserializeBinaryFromReader = function(msg, reader)
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.streams.UplinkFrameLog.prototype.serializeBinary = function() {
proto.stream.UplinkFrameLog.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.streams.UplinkFrameLog.serializeBinaryToWriter(this, writer);
proto.stream.UplinkFrameLog.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer();
};
@ -209,11 +209,11 @@ proto.streams.UplinkFrameLog.prototype.serializeBinary = function() {
/**
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.streams.UplinkFrameLog} message
* @param {!proto.stream.UplinkFrameLog} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.streams.UplinkFrameLog.serializeBinaryToWriter = function(message, writer) {
proto.stream.UplinkFrameLog.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getPhyPayload_asU8();
if (f.length > 0) {
@ -288,7 +288,7 @@ proto.streams.UplinkFrameLog.serializeBinaryToWriter = function(message, writer)
* optional bytes phy_payload = 1;
* @return {!(string|Uint8Array)}
*/
proto.streams.UplinkFrameLog.prototype.getPhyPayload = function() {
proto.stream.UplinkFrameLog.prototype.getPhyPayload = function() {
return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
};
@ -298,7 +298,7 @@ proto.streams.UplinkFrameLog.prototype.getPhyPayload = function() {
* This is a type-conversion wrapper around `getPhyPayload()`
* @return {string}
*/
proto.streams.UplinkFrameLog.prototype.getPhyPayload_asB64 = function() {
proto.stream.UplinkFrameLog.prototype.getPhyPayload_asB64 = function() {
return /** @type {string} */ (jspb.Message.bytesAsB64(
this.getPhyPayload()));
};
@ -311,7 +311,7 @@ proto.streams.UplinkFrameLog.prototype.getPhyPayload_asB64 = function() {
* This is a type-conversion wrapper around `getPhyPayload()`
* @return {!Uint8Array}
*/
proto.streams.UplinkFrameLog.prototype.getPhyPayload_asU8 = function() {
proto.stream.UplinkFrameLog.prototype.getPhyPayload_asU8 = function() {
return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
this.getPhyPayload()));
};
@ -319,9 +319,9 @@ proto.streams.UplinkFrameLog.prototype.getPhyPayload_asU8 = function() {
/**
* @param {!(string|Uint8Array)} value
* @return {!proto.streams.UplinkFrameLog} returns this
* @return {!proto.stream.UplinkFrameLog} returns this
*/
proto.streams.UplinkFrameLog.prototype.setPhyPayload = function(value) {
proto.stream.UplinkFrameLog.prototype.setPhyPayload = function(value) {
return jspb.Message.setProto3BytesField(this, 1, value);
};
@ -330,7 +330,7 @@ proto.streams.UplinkFrameLog.prototype.setPhyPayload = function(value) {
* optional gw.UplinkTxInfo tx_info = 2;
* @return {?proto.gw.UplinkTxInfo}
*/
proto.streams.UplinkFrameLog.prototype.getTxInfo = function() {
proto.stream.UplinkFrameLog.prototype.getTxInfo = function() {
return /** @type{?proto.gw.UplinkTxInfo} */ (
jspb.Message.getWrapperField(this, gw_gw_pb.UplinkTxInfo, 2));
};
@ -338,18 +338,18 @@ proto.streams.UplinkFrameLog.prototype.getTxInfo = function() {
/**
* @param {?proto.gw.UplinkTxInfo|undefined} value
* @return {!proto.streams.UplinkFrameLog} returns this
* @return {!proto.stream.UplinkFrameLog} returns this
*/
proto.streams.UplinkFrameLog.prototype.setTxInfo = function(value) {
proto.stream.UplinkFrameLog.prototype.setTxInfo = function(value) {
return jspb.Message.setWrapperField(this, 2, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.streams.UplinkFrameLog} returns this
* @return {!proto.stream.UplinkFrameLog} returns this
*/
proto.streams.UplinkFrameLog.prototype.clearTxInfo = function() {
proto.stream.UplinkFrameLog.prototype.clearTxInfo = function() {
return this.setTxInfo(undefined);
};
@ -358,7 +358,7 @@ proto.streams.UplinkFrameLog.prototype.clearTxInfo = function() {
* Returns whether this field is set.
* @return {boolean}
*/
proto.streams.UplinkFrameLog.prototype.hasTxInfo = function() {
proto.stream.UplinkFrameLog.prototype.hasTxInfo = function() {
return jspb.Message.getField(this, 2) != null;
};
@ -367,7 +367,7 @@ proto.streams.UplinkFrameLog.prototype.hasTxInfo = function() {
* repeated gw.UplinkRxInfo rx_info = 3;
* @return {!Array<!proto.gw.UplinkRxInfo>}
*/
proto.streams.UplinkFrameLog.prototype.getRxInfoList = function() {
proto.stream.UplinkFrameLog.prototype.getRxInfoList = function() {
return /** @type{!Array<!proto.gw.UplinkRxInfo>} */ (
jspb.Message.getRepeatedWrapperField(this, gw_gw_pb.UplinkRxInfo, 3));
};
@ -375,9 +375,9 @@ proto.streams.UplinkFrameLog.prototype.getRxInfoList = function() {
/**
* @param {!Array<!proto.gw.UplinkRxInfo>} value
* @return {!proto.streams.UplinkFrameLog} returns this
* @return {!proto.stream.UplinkFrameLog} returns this
*/
proto.streams.UplinkFrameLog.prototype.setRxInfoList = function(value) {
proto.stream.UplinkFrameLog.prototype.setRxInfoList = function(value) {
return jspb.Message.setRepeatedWrapperField(this, 3, value);
};
@ -387,16 +387,16 @@ proto.streams.UplinkFrameLog.prototype.setRxInfoList = function(value) {
* @param {number=} opt_index
* @return {!proto.gw.UplinkRxInfo}
*/
proto.streams.UplinkFrameLog.prototype.addRxInfo = function(opt_value, opt_index) {
proto.stream.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.streams.UplinkFrameLog} returns this
* @return {!proto.stream.UplinkFrameLog} returns this
*/
proto.streams.UplinkFrameLog.prototype.clearRxInfoList = function() {
proto.stream.UplinkFrameLog.prototype.clearRxInfoList = function() {
return this.setRxInfoList([]);
};
@ -405,16 +405,16 @@ proto.streams.UplinkFrameLog.prototype.clearRxInfoList = function() {
* optional common.MType m_type = 4;
* @return {!proto.common.MType}
*/
proto.streams.UplinkFrameLog.prototype.getMType = function() {
proto.stream.UplinkFrameLog.prototype.getMType = function() {
return /** @type {!proto.common.MType} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
};
/**
* @param {!proto.common.MType} value
* @return {!proto.streams.UplinkFrameLog} returns this
* @return {!proto.stream.UplinkFrameLog} returns this
*/
proto.streams.UplinkFrameLog.prototype.setMType = function(value) {
proto.stream.UplinkFrameLog.prototype.setMType = function(value) {
return jspb.Message.setProto3EnumField(this, 4, value);
};
@ -423,16 +423,16 @@ proto.streams.UplinkFrameLog.prototype.setMType = function(value) {
* optional string dev_addr = 5;
* @return {string}
*/
proto.streams.UplinkFrameLog.prototype.getDevAddr = function() {
proto.stream.UplinkFrameLog.prototype.getDevAddr = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
};
/**
* @param {string} value
* @return {!proto.streams.UplinkFrameLog} returns this
* @return {!proto.stream.UplinkFrameLog} returns this
*/
proto.streams.UplinkFrameLog.prototype.setDevAddr = function(value) {
proto.stream.UplinkFrameLog.prototype.setDevAddr = function(value) {
return jspb.Message.setProto3StringField(this, 5, value);
};
@ -441,16 +441,16 @@ proto.streams.UplinkFrameLog.prototype.setDevAddr = function(value) {
* optional string dev_eui = 6;
* @return {string}
*/
proto.streams.UplinkFrameLog.prototype.getDevEui = function() {
proto.stream.UplinkFrameLog.prototype.getDevEui = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
};
/**
* @param {string} value
* @return {!proto.streams.UplinkFrameLog} returns this
* @return {!proto.stream.UplinkFrameLog} returns this
*/
proto.streams.UplinkFrameLog.prototype.setDevEui = function(value) {
proto.stream.UplinkFrameLog.prototype.setDevEui = function(value) {
return jspb.Message.setProto3StringField(this, 6, value);
};
@ -459,7 +459,7 @@ proto.streams.UplinkFrameLog.prototype.setDevEui = function(value) {
* optional google.protobuf.Timestamp time = 7;
* @return {?proto.google.protobuf.Timestamp}
*/
proto.streams.UplinkFrameLog.prototype.getTime = function() {
proto.stream.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.streams.UplinkFrameLog.prototype.getTime = function() {
/**
* @param {?proto.google.protobuf.Timestamp|undefined} value
* @return {!proto.streams.UplinkFrameLog} returns this
* @return {!proto.stream.UplinkFrameLog} returns this
*/
proto.streams.UplinkFrameLog.prototype.setTime = function(value) {
proto.stream.UplinkFrameLog.prototype.setTime = function(value) {
return jspb.Message.setWrapperField(this, 7, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.streams.UplinkFrameLog} returns this
* @return {!proto.stream.UplinkFrameLog} returns this
*/
proto.streams.UplinkFrameLog.prototype.clearTime = function() {
proto.stream.UplinkFrameLog.prototype.clearTime = function() {
return this.setTime(undefined);
};
@ -487,7 +487,7 @@ proto.streams.UplinkFrameLog.prototype.clearTime = function() {
* Returns whether this field is set.
* @return {boolean}
*/
proto.streams.UplinkFrameLog.prototype.hasTime = function() {
proto.stream.UplinkFrameLog.prototype.hasTime = function() {
return jspb.Message.getField(this, 7) != null;
};
@ -496,16 +496,16 @@ proto.streams.UplinkFrameLog.prototype.hasTime = function() {
* optional bool plaintext_f_opts = 8;
* @return {boolean}
*/
proto.streams.UplinkFrameLog.prototype.getPlaintextFOpts = function() {
proto.stream.UplinkFrameLog.prototype.getPlaintextFOpts = function() {
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 8, false));
};
/**
* @param {boolean} value
* @return {!proto.streams.UplinkFrameLog} returns this
* @return {!proto.stream.UplinkFrameLog} returns this
*/
proto.streams.UplinkFrameLog.prototype.setPlaintextFOpts = function(value) {
proto.stream.UplinkFrameLog.prototype.setPlaintextFOpts = function(value) {
return jspb.Message.setProto3BooleanField(this, 8, value);
};
@ -514,16 +514,16 @@ proto.streams.UplinkFrameLog.prototype.setPlaintextFOpts = function(value) {
* optional bool plaintext_frm_payload = 9;
* @return {boolean}
*/
proto.streams.UplinkFrameLog.prototype.getPlaintextFrmPayload = function() {
proto.stream.UplinkFrameLog.prototype.getPlaintextFrmPayload = function() {
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 9, false));
};
/**
* @param {boolean} value
* @return {!proto.streams.UplinkFrameLog} returns this
* @return {!proto.stream.UplinkFrameLog} returns this
*/
proto.streams.UplinkFrameLog.prototype.setPlaintextFrmPayload = function(value) {
proto.stream.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.streams.DownlinkFrameLog.prototype.toObject = function(opt_includeInstance) {
return proto.streams.DownlinkFrameLog.toObject(opt_includeInstance, this);
proto.stream.DownlinkFrameLog.prototype.toObject = function(opt_includeInstance) {
return proto.stream.DownlinkFrameLog.toObject(opt_includeInstance, this);
};
@ -554,11 +554,11 @@ proto.streams.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.streams.DownlinkFrameLog} msg The msg instance to transform.
* @param {!proto.stream.DownlinkFrameLog} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.streams.DownlinkFrameLog.toObject = function(includeInstance, msg) {
proto.stream.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.streams.DownlinkFrameLog.toObject = function(includeInstance, msg) {
/**
* Deserializes binary data (in protobuf wire format).
* @param {jspb.ByteSource} bytes The bytes to deserialize.
* @return {!proto.streams.DownlinkFrameLog}
* @return {!proto.stream.DownlinkFrameLog}
*/
proto.streams.DownlinkFrameLog.deserializeBinary = function(bytes) {
proto.stream.DownlinkFrameLog.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.streams.DownlinkFrameLog;
return proto.streams.DownlinkFrameLog.deserializeBinaryFromReader(msg, reader);
var msg = new proto.stream.DownlinkFrameLog;
return proto.stream.DownlinkFrameLog.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.streams.DownlinkFrameLog} msg The message object to deserialize into.
* @param {!proto.stream.DownlinkFrameLog} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.streams.DownlinkFrameLog}
* @return {!proto.stream.DownlinkFrameLog}
*/
proto.streams.DownlinkFrameLog.deserializeBinaryFromReader = function(msg, reader) {
proto.stream.DownlinkFrameLog.deserializeBinaryFromReader = function(msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
@ -661,9 +661,9 @@ proto.streams.DownlinkFrameLog.deserializeBinaryFromReader = function(msg, reade
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.streams.DownlinkFrameLog.prototype.serializeBinary = function() {
proto.stream.DownlinkFrameLog.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.streams.DownlinkFrameLog.serializeBinaryToWriter(this, writer);
proto.stream.DownlinkFrameLog.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer();
};
@ -671,11 +671,11 @@ proto.streams.DownlinkFrameLog.prototype.serializeBinary = function() {
/**
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.streams.DownlinkFrameLog} message
* @param {!proto.stream.DownlinkFrameLog} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.streams.DownlinkFrameLog.serializeBinaryToWriter = function(message, writer) {
proto.stream.DownlinkFrameLog.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getTime();
if (f != null) {
@ -756,7 +756,7 @@ proto.streams.DownlinkFrameLog.serializeBinaryToWriter = function(message, write
* optional google.protobuf.Timestamp time = 1;
* @return {?proto.google.protobuf.Timestamp}
*/
proto.streams.DownlinkFrameLog.prototype.getTime = function() {
proto.stream.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.streams.DownlinkFrameLog.prototype.getTime = function() {
/**
* @param {?proto.google.protobuf.Timestamp|undefined} value
* @return {!proto.streams.DownlinkFrameLog} returns this
* @return {!proto.stream.DownlinkFrameLog} returns this
*/
proto.streams.DownlinkFrameLog.prototype.setTime = function(value) {
proto.stream.DownlinkFrameLog.prototype.setTime = function(value) {
return jspb.Message.setWrapperField(this, 1, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.streams.DownlinkFrameLog} returns this
* @return {!proto.stream.DownlinkFrameLog} returns this
*/
proto.streams.DownlinkFrameLog.prototype.clearTime = function() {
proto.stream.DownlinkFrameLog.prototype.clearTime = function() {
return this.setTime(undefined);
};
@ -784,7 +784,7 @@ proto.streams.DownlinkFrameLog.prototype.clearTime = function() {
* Returns whether this field is set.
* @return {boolean}
*/
proto.streams.DownlinkFrameLog.prototype.hasTime = function() {
proto.stream.DownlinkFrameLog.prototype.hasTime = function() {
return jspb.Message.getField(this, 1) != null;
};
@ -793,7 +793,7 @@ proto.streams.DownlinkFrameLog.prototype.hasTime = function() {
* optional bytes phy_payload = 2;
* @return {!(string|Uint8Array)}
*/
proto.streams.DownlinkFrameLog.prototype.getPhyPayload = function() {
proto.stream.DownlinkFrameLog.prototype.getPhyPayload = function() {
return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
};
@ -803,7 +803,7 @@ proto.streams.DownlinkFrameLog.prototype.getPhyPayload = function() {
* This is a type-conversion wrapper around `getPhyPayload()`
* @return {string}
*/
proto.streams.DownlinkFrameLog.prototype.getPhyPayload_asB64 = function() {
proto.stream.DownlinkFrameLog.prototype.getPhyPayload_asB64 = function() {
return /** @type {string} */ (jspb.Message.bytesAsB64(
this.getPhyPayload()));
};
@ -816,7 +816,7 @@ proto.streams.DownlinkFrameLog.prototype.getPhyPayload_asB64 = function() {
* This is a type-conversion wrapper around `getPhyPayload()`
* @return {!Uint8Array}
*/
proto.streams.DownlinkFrameLog.prototype.getPhyPayload_asU8 = function() {
proto.stream.DownlinkFrameLog.prototype.getPhyPayload_asU8 = function() {
return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
this.getPhyPayload()));
};
@ -824,9 +824,9 @@ proto.streams.DownlinkFrameLog.prototype.getPhyPayload_asU8 = function() {
/**
* @param {!(string|Uint8Array)} value
* @return {!proto.streams.DownlinkFrameLog} returns this
* @return {!proto.stream.DownlinkFrameLog} returns this
*/
proto.streams.DownlinkFrameLog.prototype.setPhyPayload = function(value) {
proto.stream.DownlinkFrameLog.prototype.setPhyPayload = function(value) {
return jspb.Message.setProto3BytesField(this, 2, value);
};
@ -835,7 +835,7 @@ proto.streams.DownlinkFrameLog.prototype.setPhyPayload = function(value) {
* optional gw.DownlinkTxInfo tx_info = 3;
* @return {?proto.gw.DownlinkTxInfo}
*/
proto.streams.DownlinkFrameLog.prototype.getTxInfo = function() {
proto.stream.DownlinkFrameLog.prototype.getTxInfo = function() {
return /** @type{?proto.gw.DownlinkTxInfo} */ (
jspb.Message.getWrapperField(this, gw_gw_pb.DownlinkTxInfo, 3));
};
@ -843,18 +843,18 @@ proto.streams.DownlinkFrameLog.prototype.getTxInfo = function() {
/**
* @param {?proto.gw.DownlinkTxInfo|undefined} value
* @return {!proto.streams.DownlinkFrameLog} returns this
* @return {!proto.stream.DownlinkFrameLog} returns this
*/
proto.streams.DownlinkFrameLog.prototype.setTxInfo = function(value) {
proto.stream.DownlinkFrameLog.prototype.setTxInfo = function(value) {
return jspb.Message.setWrapperField(this, 3, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.streams.DownlinkFrameLog} returns this
* @return {!proto.stream.DownlinkFrameLog} returns this
*/
proto.streams.DownlinkFrameLog.prototype.clearTxInfo = function() {
proto.stream.DownlinkFrameLog.prototype.clearTxInfo = function() {
return this.setTxInfo(undefined);
};
@ -863,7 +863,7 @@ proto.streams.DownlinkFrameLog.prototype.clearTxInfo = function() {
* Returns whether this field is set.
* @return {boolean}
*/
proto.streams.DownlinkFrameLog.prototype.hasTxInfo = function() {
proto.stream.DownlinkFrameLog.prototype.hasTxInfo = function() {
return jspb.Message.getField(this, 3) != null;
};
@ -872,16 +872,16 @@ proto.streams.DownlinkFrameLog.prototype.hasTxInfo = function() {
* optional uint32 downlink_id = 4;
* @return {number}
*/
proto.streams.DownlinkFrameLog.prototype.getDownlinkId = function() {
proto.stream.DownlinkFrameLog.prototype.getDownlinkId = function() {
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
};
/**
* @param {number} value
* @return {!proto.streams.DownlinkFrameLog} returns this
* @return {!proto.stream.DownlinkFrameLog} returns this
*/
proto.streams.DownlinkFrameLog.prototype.setDownlinkId = function(value) {
proto.stream.DownlinkFrameLog.prototype.setDownlinkId = function(value) {
return jspb.Message.setProto3IntField(this, 4, value);
};
@ -890,16 +890,16 @@ proto.streams.DownlinkFrameLog.prototype.setDownlinkId = function(value) {
* optional string gateway_id = 5;
* @return {string}
*/
proto.streams.DownlinkFrameLog.prototype.getGatewayId = function() {
proto.stream.DownlinkFrameLog.prototype.getGatewayId = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
};
/**
* @param {string} value
* @return {!proto.streams.DownlinkFrameLog} returns this
* @return {!proto.stream.DownlinkFrameLog} returns this
*/
proto.streams.DownlinkFrameLog.prototype.setGatewayId = function(value) {
proto.stream.DownlinkFrameLog.prototype.setGatewayId = function(value) {
return jspb.Message.setProto3StringField(this, 5, value);
};
@ -908,16 +908,16 @@ proto.streams.DownlinkFrameLog.prototype.setGatewayId = function(value) {
* optional common.MType m_type = 6;
* @return {!proto.common.MType}
*/
proto.streams.DownlinkFrameLog.prototype.getMType = function() {
proto.stream.DownlinkFrameLog.prototype.getMType = function() {
return /** @type {!proto.common.MType} */ (jspb.Message.getFieldWithDefault(this, 6, 0));
};
/**
* @param {!proto.common.MType} value
* @return {!proto.streams.DownlinkFrameLog} returns this
* @return {!proto.stream.DownlinkFrameLog} returns this
*/
proto.streams.DownlinkFrameLog.prototype.setMType = function(value) {
proto.stream.DownlinkFrameLog.prototype.setMType = function(value) {
return jspb.Message.setProto3EnumField(this, 6, value);
};
@ -926,16 +926,16 @@ proto.streams.DownlinkFrameLog.prototype.setMType = function(value) {
* optional string dev_addr = 7;
* @return {string}
*/
proto.streams.DownlinkFrameLog.prototype.getDevAddr = function() {
proto.stream.DownlinkFrameLog.prototype.getDevAddr = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
};
/**
* @param {string} value
* @return {!proto.streams.DownlinkFrameLog} returns this
* @return {!proto.stream.DownlinkFrameLog} returns this
*/
proto.streams.DownlinkFrameLog.prototype.setDevAddr = function(value) {
proto.stream.DownlinkFrameLog.prototype.setDevAddr = function(value) {
return jspb.Message.setProto3StringField(this, 7, value);
};
@ -944,16 +944,16 @@ proto.streams.DownlinkFrameLog.prototype.setDevAddr = function(value) {
* optional string dev_eui = 8;
* @return {string}
*/
proto.streams.DownlinkFrameLog.prototype.getDevEui = function() {
proto.stream.DownlinkFrameLog.prototype.getDevEui = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
};
/**
* @param {string} value
* @return {!proto.streams.DownlinkFrameLog} returns this
* @return {!proto.stream.DownlinkFrameLog} returns this
*/
proto.streams.DownlinkFrameLog.prototype.setDevEui = function(value) {
proto.stream.DownlinkFrameLog.prototype.setDevEui = function(value) {
return jspb.Message.setProto3StringField(this, 8, value);
};
@ -962,16 +962,16 @@ proto.streams.DownlinkFrameLog.prototype.setDevEui = function(value) {
* optional bool plaintext_f_opts = 9;
* @return {boolean}
*/
proto.streams.DownlinkFrameLog.prototype.getPlaintextFOpts = function() {
proto.stream.DownlinkFrameLog.prototype.getPlaintextFOpts = function() {
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 9, false));
};
/**
* @param {boolean} value
* @return {!proto.streams.DownlinkFrameLog} returns this
* @return {!proto.stream.DownlinkFrameLog} returns this
*/
proto.streams.DownlinkFrameLog.prototype.setPlaintextFOpts = function(value) {
proto.stream.DownlinkFrameLog.prototype.setPlaintextFOpts = function(value) {
return jspb.Message.setProto3BooleanField(this, 9, value);
};
@ -980,18 +980,18 @@ proto.streams.DownlinkFrameLog.prototype.setPlaintextFOpts = function(value) {
* optional bool plaintext_frm_payload = 10;
* @return {boolean}
*/
proto.streams.DownlinkFrameLog.prototype.getPlaintextFrmPayload = function() {
proto.stream.DownlinkFrameLog.prototype.getPlaintextFrmPayload = function() {
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 10, false));
};
/**
* @param {boolean} value
* @return {!proto.streams.DownlinkFrameLog} returns this
* @return {!proto.stream.DownlinkFrameLog} returns this
*/
proto.streams.DownlinkFrameLog.prototype.setPlaintextFrmPayload = function(value) {
proto.stream.DownlinkFrameLog.prototype.setPlaintextFrmPayload = function(value) {
return jspb.Message.setProto3BooleanField(this, 10, value);
};
goog.object.extend(exports, proto.streams);
goog.object.extend(exports, proto.stream);

View File

@ -1,5 +1,5 @@
// package: streams
// file: streams/meta.proto
// package: stream
// file: stream/meta.proto
import * as jspb from "google-protobuf";
import * as common_common_pb from "../common/common_pb";

View File

@ -1,4 +1,4 @@
// source: streams/meta.proto
// source: stream/meta.proto
/**
* @fileoverview
* @enhanceable
@ -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.streams.DownlinkMeta', null, global);
goog.exportSymbol('proto.streams.UplinkMeta', null, global);
goog.exportSymbol('proto.stream.DownlinkMeta', null, global);
goog.exportSymbol('proto.stream.UplinkMeta', null, global);
/**
* Generated by JsPbCodeGenerator.
* @param {Array=} opt_data Optional initial data array, typically from a
@ -28,16 +28,16 @@ goog.exportSymbol('proto.streams.UplinkMeta', null, global);
* @extends {jspb.Message}
* @constructor
*/
proto.streams.UplinkMeta = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, proto.streams.UplinkMeta.repeatedFields_, null);
proto.stream.UplinkMeta = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, proto.stream.UplinkMeta.repeatedFields_, null);
};
goog.inherits(proto.streams.UplinkMeta, jspb.Message);
goog.inherits(proto.stream.UplinkMeta, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.streams.UplinkMeta.displayName = 'proto.streams.UplinkMeta';
proto.stream.UplinkMeta.displayName = 'proto.stream.UplinkMeta';
}
/**
* Generated by JsPbCodeGenerator.
@ -49,16 +49,16 @@ if (goog.DEBUG && !COMPILED) {
* @extends {jspb.Message}
* @constructor
*/
proto.streams.DownlinkMeta = function(opt_data) {
proto.stream.DownlinkMeta = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.streams.DownlinkMeta, jspb.Message);
goog.inherits(proto.stream.DownlinkMeta, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.streams.DownlinkMeta.displayName = 'proto.streams.DownlinkMeta';
proto.stream.DownlinkMeta.displayName = 'proto.stream.DownlinkMeta';
}
/**
@ -66,7 +66,7 @@ if (goog.DEBUG && !COMPILED) {
* @private {!Array<number>}
* @const
*/
proto.streams.UplinkMeta.repeatedFields_ = [3];
proto.stream.UplinkMeta.repeatedFields_ = [3];
@ -83,8 +83,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
* http://goto/soy-param-migration
* @return {!Object}
*/
proto.streams.UplinkMeta.prototype.toObject = function(opt_includeInstance) {
return proto.streams.UplinkMeta.toObject(opt_includeInstance, this);
proto.stream.UplinkMeta.prototype.toObject = function(opt_includeInstance) {
return proto.stream.UplinkMeta.toObject(opt_includeInstance, this);
};
@ -93,11 +93,11 @@ proto.streams.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.streams.UplinkMeta} msg The msg instance to transform.
* @param {!proto.stream.UplinkMeta} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.streams.UplinkMeta.toObject = function(includeInstance, msg) {
proto.stream.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.streams.UplinkMeta.toObject = function(includeInstance, msg) {
/**
* Deserializes binary data (in protobuf wire format).
* @param {jspb.ByteSource} bytes The bytes to deserialize.
* @return {!proto.streams.UplinkMeta}
* @return {!proto.stream.UplinkMeta}
*/
proto.streams.UplinkMeta.deserializeBinary = function(bytes) {
proto.stream.UplinkMeta.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.streams.UplinkMeta;
return proto.streams.UplinkMeta.deserializeBinaryFromReader(msg, reader);
var msg = new proto.stream.UplinkMeta;
return proto.stream.UplinkMeta.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.streams.UplinkMeta} msg The message object to deserialize into.
* @param {!proto.stream.UplinkMeta} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.streams.UplinkMeta}
* @return {!proto.stream.UplinkMeta}
*/
proto.streams.UplinkMeta.deserializeBinaryFromReader = function(msg, reader) {
proto.stream.UplinkMeta.deserializeBinaryFromReader = function(msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
@ -186,9 +186,9 @@ proto.streams.UplinkMeta.deserializeBinaryFromReader = function(msg, reader) {
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.streams.UplinkMeta.prototype.serializeBinary = function() {
proto.stream.UplinkMeta.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.streams.UplinkMeta.serializeBinaryToWriter(this, writer);
proto.stream.UplinkMeta.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer();
};
@ -196,11 +196,11 @@ proto.streams.UplinkMeta.prototype.serializeBinary = function() {
/**
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.streams.UplinkMeta} message
* @param {!proto.stream.UplinkMeta} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.streams.UplinkMeta.serializeBinaryToWriter = function(message, writer) {
proto.stream.UplinkMeta.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getDevEui();
if (f.length > 0) {
@ -260,16 +260,16 @@ proto.streams.UplinkMeta.serializeBinaryToWriter = function(message, writer) {
* optional string dev_eui = 1;
* @return {string}
*/
proto.streams.UplinkMeta.prototype.getDevEui = function() {
proto.stream.UplinkMeta.prototype.getDevEui = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
};
/**
* @param {string} value
* @return {!proto.streams.UplinkMeta} returns this
* @return {!proto.stream.UplinkMeta} returns this
*/
proto.streams.UplinkMeta.prototype.setDevEui = function(value) {
proto.stream.UplinkMeta.prototype.setDevEui = function(value) {
return jspb.Message.setProto3StringField(this, 1, value);
};
@ -278,7 +278,7 @@ proto.streams.UplinkMeta.prototype.setDevEui = function(value) {
* optional gw.UplinkTxInfo tx_info = 2;
* @return {?proto.gw.UplinkTxInfo}
*/
proto.streams.UplinkMeta.prototype.getTxInfo = function() {
proto.stream.UplinkMeta.prototype.getTxInfo = function() {
return /** @type{?proto.gw.UplinkTxInfo} */ (
jspb.Message.getWrapperField(this, gw_gw_pb.UplinkTxInfo, 2));
};
@ -286,18 +286,18 @@ proto.streams.UplinkMeta.prototype.getTxInfo = function() {
/**
* @param {?proto.gw.UplinkTxInfo|undefined} value
* @return {!proto.streams.UplinkMeta} returns this
* @return {!proto.stream.UplinkMeta} returns this
*/
proto.streams.UplinkMeta.prototype.setTxInfo = function(value) {
proto.stream.UplinkMeta.prototype.setTxInfo = function(value) {
return jspb.Message.setWrapperField(this, 2, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.streams.UplinkMeta} returns this
* @return {!proto.stream.UplinkMeta} returns this
*/
proto.streams.UplinkMeta.prototype.clearTxInfo = function() {
proto.stream.UplinkMeta.prototype.clearTxInfo = function() {
return this.setTxInfo(undefined);
};
@ -306,7 +306,7 @@ proto.streams.UplinkMeta.prototype.clearTxInfo = function() {
* Returns whether this field is set.
* @return {boolean}
*/
proto.streams.UplinkMeta.prototype.hasTxInfo = function() {
proto.stream.UplinkMeta.prototype.hasTxInfo = function() {
return jspb.Message.getField(this, 2) != null;
};
@ -315,7 +315,7 @@ proto.streams.UplinkMeta.prototype.hasTxInfo = function() {
* repeated gw.UplinkRxInfo rx_info = 3;
* @return {!Array<!proto.gw.UplinkRxInfo>}
*/
proto.streams.UplinkMeta.prototype.getRxInfoList = function() {
proto.stream.UplinkMeta.prototype.getRxInfoList = function() {
return /** @type{!Array<!proto.gw.UplinkRxInfo>} */ (
jspb.Message.getRepeatedWrapperField(this, gw_gw_pb.UplinkRxInfo, 3));
};
@ -323,9 +323,9 @@ proto.streams.UplinkMeta.prototype.getRxInfoList = function() {
/**
* @param {!Array<!proto.gw.UplinkRxInfo>} value
* @return {!proto.streams.UplinkMeta} returns this
* @return {!proto.stream.UplinkMeta} returns this
*/
proto.streams.UplinkMeta.prototype.setRxInfoList = function(value) {
proto.stream.UplinkMeta.prototype.setRxInfoList = function(value) {
return jspb.Message.setRepeatedWrapperField(this, 3, value);
};
@ -335,16 +335,16 @@ proto.streams.UplinkMeta.prototype.setRxInfoList = function(value) {
* @param {number=} opt_index
* @return {!proto.gw.UplinkRxInfo}
*/
proto.streams.UplinkMeta.prototype.addRxInfo = function(opt_value, opt_index) {
proto.stream.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.streams.UplinkMeta} returns this
* @return {!proto.stream.UplinkMeta} returns this
*/
proto.streams.UplinkMeta.prototype.clearRxInfoList = function() {
proto.stream.UplinkMeta.prototype.clearRxInfoList = function() {
return this.setRxInfoList([]);
};
@ -353,16 +353,16 @@ proto.streams.UplinkMeta.prototype.clearRxInfoList = function() {
* optional uint32 phy_payload_byte_count = 4;
* @return {number}
*/
proto.streams.UplinkMeta.prototype.getPhyPayloadByteCount = function() {
proto.stream.UplinkMeta.prototype.getPhyPayloadByteCount = function() {
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
};
/**
* @param {number} value
* @return {!proto.streams.UplinkMeta} returns this
* @return {!proto.stream.UplinkMeta} returns this
*/
proto.streams.UplinkMeta.prototype.setPhyPayloadByteCount = function(value) {
proto.stream.UplinkMeta.prototype.setPhyPayloadByteCount = function(value) {
return jspb.Message.setProto3IntField(this, 4, value);
};
@ -371,16 +371,16 @@ proto.streams.UplinkMeta.prototype.setPhyPayloadByteCount = function(value) {
* optional uint32 mac_command_byte_count = 5;
* @return {number}
*/
proto.streams.UplinkMeta.prototype.getMacCommandByteCount = function() {
proto.stream.UplinkMeta.prototype.getMacCommandByteCount = function() {
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
};
/**
* @param {number} value
* @return {!proto.streams.UplinkMeta} returns this
* @return {!proto.stream.UplinkMeta} returns this
*/
proto.streams.UplinkMeta.prototype.setMacCommandByteCount = function(value) {
proto.stream.UplinkMeta.prototype.setMacCommandByteCount = function(value) {
return jspb.Message.setProto3IntField(this, 5, value);
};
@ -389,16 +389,16 @@ proto.streams.UplinkMeta.prototype.setMacCommandByteCount = function(value) {
* optional uint32 application_payload_byte_count = 6;
* @return {number}
*/
proto.streams.UplinkMeta.prototype.getApplicationPayloadByteCount = function() {
proto.stream.UplinkMeta.prototype.getApplicationPayloadByteCount = function() {
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0));
};
/**
* @param {number} value
* @return {!proto.streams.UplinkMeta} returns this
* @return {!proto.stream.UplinkMeta} returns this
*/
proto.streams.UplinkMeta.prototype.setApplicationPayloadByteCount = function(value) {
proto.stream.UplinkMeta.prototype.setApplicationPayloadByteCount = function(value) {
return jspb.Message.setProto3IntField(this, 6, value);
};
@ -407,16 +407,16 @@ proto.streams.UplinkMeta.prototype.setApplicationPayloadByteCount = function(val
* optional common.MType message_type = 7;
* @return {!proto.common.MType}
*/
proto.streams.UplinkMeta.prototype.getMessageType = function() {
proto.stream.UplinkMeta.prototype.getMessageType = function() {
return /** @type {!proto.common.MType} */ (jspb.Message.getFieldWithDefault(this, 7, 0));
};
/**
* @param {!proto.common.MType} value
* @return {!proto.streams.UplinkMeta} returns this
* @return {!proto.stream.UplinkMeta} returns this
*/
proto.streams.UplinkMeta.prototype.setMessageType = function(value) {
proto.stream.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.streams.DownlinkMeta.prototype.toObject = function(opt_includeInstance) {
return proto.streams.DownlinkMeta.toObject(opt_includeInstance, this);
proto.stream.DownlinkMeta.prototype.toObject = function(opt_includeInstance) {
return proto.stream.DownlinkMeta.toObject(opt_includeInstance, this);
};
@ -447,11 +447,11 @@ proto.streams.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.streams.DownlinkMeta} msg The msg instance to transform.
* @param {!proto.stream.DownlinkMeta} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.streams.DownlinkMeta.toObject = function(includeInstance, msg) {
proto.stream.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.streams.DownlinkMeta.toObject = function(includeInstance, msg) {
/**
* Deserializes binary data (in protobuf wire format).
* @param {jspb.ByteSource} bytes The bytes to deserialize.
* @return {!proto.streams.DownlinkMeta}
* @return {!proto.stream.DownlinkMeta}
*/
proto.streams.DownlinkMeta.deserializeBinary = function(bytes) {
proto.stream.DownlinkMeta.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.streams.DownlinkMeta;
return proto.streams.DownlinkMeta.deserializeBinaryFromReader(msg, reader);
var msg = new proto.stream.DownlinkMeta;
return proto.stream.DownlinkMeta.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.streams.DownlinkMeta} msg The message object to deserialize into.
* @param {!proto.stream.DownlinkMeta} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.streams.DownlinkMeta}
* @return {!proto.stream.DownlinkMeta}
*/
proto.streams.DownlinkMeta.deserializeBinaryFromReader = function(msg, reader) {
proto.stream.DownlinkMeta.deserializeBinaryFromReader = function(msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
@ -543,9 +543,9 @@ proto.streams.DownlinkMeta.deserializeBinaryFromReader = function(msg, reader) {
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.streams.DownlinkMeta.prototype.serializeBinary = function() {
proto.stream.DownlinkMeta.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.streams.DownlinkMeta.serializeBinaryToWriter(this, writer);
proto.stream.DownlinkMeta.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer();
};
@ -553,11 +553,11 @@ proto.streams.DownlinkMeta.prototype.serializeBinary = function() {
/**
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.streams.DownlinkMeta} message
* @param {!proto.stream.DownlinkMeta} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.streams.DownlinkMeta.serializeBinaryToWriter = function(message, writer) {
proto.stream.DownlinkMeta.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getDevEui();
if (f.length > 0) {
@ -623,16 +623,16 @@ proto.streams.DownlinkMeta.serializeBinaryToWriter = function(message, writer) {
* optional string dev_eui = 1;
* @return {string}
*/
proto.streams.DownlinkMeta.prototype.getDevEui = function() {
proto.stream.DownlinkMeta.prototype.getDevEui = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
};
/**
* @param {string} value
* @return {!proto.streams.DownlinkMeta} returns this
* @return {!proto.stream.DownlinkMeta} returns this
*/
proto.streams.DownlinkMeta.prototype.setDevEui = function(value) {
proto.stream.DownlinkMeta.prototype.setDevEui = function(value) {
return jspb.Message.setProto3StringField(this, 1, value);
};
@ -641,16 +641,16 @@ proto.streams.DownlinkMeta.prototype.setDevEui = function(value) {
* optional string multicast_group_id = 2;
* @return {string}
*/
proto.streams.DownlinkMeta.prototype.getMulticastGroupId = function() {
proto.stream.DownlinkMeta.prototype.getMulticastGroupId = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
};
/**
* @param {string} value
* @return {!proto.streams.DownlinkMeta} returns this
* @return {!proto.stream.DownlinkMeta} returns this
*/
proto.streams.DownlinkMeta.prototype.setMulticastGroupId = function(value) {
proto.stream.DownlinkMeta.prototype.setMulticastGroupId = function(value) {
return jspb.Message.setProto3StringField(this, 2, value);
};
@ -659,7 +659,7 @@ proto.streams.DownlinkMeta.prototype.setMulticastGroupId = function(value) {
* optional gw.DownlinkTxInfo tx_info = 3;
* @return {?proto.gw.DownlinkTxInfo}
*/
proto.streams.DownlinkMeta.prototype.getTxInfo = function() {
proto.stream.DownlinkMeta.prototype.getTxInfo = function() {
return /** @type{?proto.gw.DownlinkTxInfo} */ (
jspb.Message.getWrapperField(this, gw_gw_pb.DownlinkTxInfo, 3));
};
@ -667,18 +667,18 @@ proto.streams.DownlinkMeta.prototype.getTxInfo = function() {
/**
* @param {?proto.gw.DownlinkTxInfo|undefined} value
* @return {!proto.streams.DownlinkMeta} returns this
* @return {!proto.stream.DownlinkMeta} returns this
*/
proto.streams.DownlinkMeta.prototype.setTxInfo = function(value) {
proto.stream.DownlinkMeta.prototype.setTxInfo = function(value) {
return jspb.Message.setWrapperField(this, 3, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.streams.DownlinkMeta} returns this
* @return {!proto.stream.DownlinkMeta} returns this
*/
proto.streams.DownlinkMeta.prototype.clearTxInfo = function() {
proto.stream.DownlinkMeta.prototype.clearTxInfo = function() {
return this.setTxInfo(undefined);
};
@ -687,7 +687,7 @@ proto.streams.DownlinkMeta.prototype.clearTxInfo = function() {
* Returns whether this field is set.
* @return {boolean}
*/
proto.streams.DownlinkMeta.prototype.hasTxInfo = function() {
proto.stream.DownlinkMeta.prototype.hasTxInfo = function() {
return jspb.Message.getField(this, 3) != null;
};
@ -696,16 +696,16 @@ proto.streams.DownlinkMeta.prototype.hasTxInfo = function() {
* optional uint32 phy_payload_byte_count = 4;
* @return {number}
*/
proto.streams.DownlinkMeta.prototype.getPhyPayloadByteCount = function() {
proto.stream.DownlinkMeta.prototype.getPhyPayloadByteCount = function() {
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
};
/**
* @param {number} value
* @return {!proto.streams.DownlinkMeta} returns this
* @return {!proto.stream.DownlinkMeta} returns this
*/
proto.streams.DownlinkMeta.prototype.setPhyPayloadByteCount = function(value) {
proto.stream.DownlinkMeta.prototype.setPhyPayloadByteCount = function(value) {
return jspb.Message.setProto3IntField(this, 4, value);
};
@ -714,16 +714,16 @@ proto.streams.DownlinkMeta.prototype.setPhyPayloadByteCount = function(value) {
* optional uint32 mac_command_byte_count = 5;
* @return {number}
*/
proto.streams.DownlinkMeta.prototype.getMacCommandByteCount = function() {
proto.stream.DownlinkMeta.prototype.getMacCommandByteCount = function() {
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
};
/**
* @param {number} value
* @return {!proto.streams.DownlinkMeta} returns this
* @return {!proto.stream.DownlinkMeta} returns this
*/
proto.streams.DownlinkMeta.prototype.setMacCommandByteCount = function(value) {
proto.stream.DownlinkMeta.prototype.setMacCommandByteCount = function(value) {
return jspb.Message.setProto3IntField(this, 5, value);
};
@ -732,16 +732,16 @@ proto.streams.DownlinkMeta.prototype.setMacCommandByteCount = function(value) {
* optional uint32 application_payload_byte_count = 6;
* @return {number}
*/
proto.streams.DownlinkMeta.prototype.getApplicationPayloadByteCount = function() {
proto.stream.DownlinkMeta.prototype.getApplicationPayloadByteCount = function() {
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0));
};
/**
* @param {number} value
* @return {!proto.streams.DownlinkMeta} returns this
* @return {!proto.stream.DownlinkMeta} returns this
*/
proto.streams.DownlinkMeta.prototype.setApplicationPayloadByteCount = function(value) {
proto.stream.DownlinkMeta.prototype.setApplicationPayloadByteCount = function(value) {
return jspb.Message.setProto3IntField(this, 6, value);
};
@ -750,16 +750,16 @@ proto.streams.DownlinkMeta.prototype.setApplicationPayloadByteCount = function(v
* optional common.MType message_type = 7;
* @return {!proto.common.MType}
*/
proto.streams.DownlinkMeta.prototype.getMessageType = function() {
proto.stream.DownlinkMeta.prototype.getMessageType = function() {
return /** @type {!proto.common.MType} */ (jspb.Message.getFieldWithDefault(this, 7, 0));
};
/**
* @param {!proto.common.MType} value
* @return {!proto.streams.DownlinkMeta} returns this
* @return {!proto.stream.DownlinkMeta} returns this
*/
proto.streams.DownlinkMeta.prototype.setMessageType = function(value) {
proto.stream.DownlinkMeta.prototype.setMessageType = function(value) {
return jspb.Message.setProto3EnumField(this, 7, value);
};
@ -768,18 +768,18 @@ proto.streams.DownlinkMeta.prototype.setMessageType = function(value) {
* optional string gateway_id = 8;
* @return {string}
*/
proto.streams.DownlinkMeta.prototype.getGatewayId = function() {
proto.stream.DownlinkMeta.prototype.getGatewayId = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
};
/**
* @param {string} value
* @return {!proto.streams.DownlinkMeta} returns this
* @return {!proto.stream.DownlinkMeta} returns this
*/
proto.streams.DownlinkMeta.prototype.setGatewayId = function(value) {
proto.stream.DownlinkMeta.prototype.setGatewayId = function(value) {
return jspb.Message.setProto3StringField(this, 8, value);
};
goog.object.extend(exports, proto.streams);
goog.object.extend(exports, proto.stream);

View File

@ -1,12 +1,12 @@
syntax = "proto3";
package streams;
package stream;
option go_package = "github.com/chirpstack/chirpstack/api/go/v4/streams";
option java_package = "io.chirpstack.api.streams";
option go_package = "github.com/chirpstack/chirpstack/api/go/v4/stream";
option java_package = "io.chirpstack.api.stream";
option java_multiple_files = true;
option java_outer_classname = "ApiRequestsProto";
option csharp_namespace = "Chirpstack.Streams";
option java_outer_classname = "ApiRequestProto";
option csharp_namespace = "Chirpstack.Stream";
import "google/protobuf/timestamp.proto";
import "common/common.proto";

View File

@ -1,12 +1,12 @@
syntax = "proto3";
package streams;
package stream;
option go_package = "github.com/chirpstack/chirpstack/api/go/v4/streams";
option java_package = "io.chirpstack.api.streams";
option go_package = "github.com/chirpstack/chirpstack/api/go/v4/stream";
option java_package = "io.chirpstack.api.stream";
option java_multiple_files = true;
option java_outer_classname = "FramesProto";
option csharp_namespace = "Chirpstack.Streams";
option java_outer_classname = "FrameProto";
option csharp_namespace = "Chirpstack.Stream";
import "google/protobuf/timestamp.proto";
import "common/common.proto";

View File

@ -1,12 +1,12 @@
syntax = "proto3";
package streams;
package stream;
option go_package = "github.com/chirpstack/chirpstack/api/go/v4/streams";
option java_package = "io.chirpstack.api.streams";
option go_package = "github.com/chirpstack/chirpstack/api/go/v4/stream";
option java_package = "io.chirpstack.api.stream";
option java_multiple_files = true;
option java_outer_classname = "MetaProto";
option csharp_namespace = "Chirpstack.Streams";
option csharp_namespace = "Chirpstack.Stream";
import "common/common.proto";
import "gw/gw.proto";

12
api/python/Makefile vendored
View File

@ -1,10 +1,10 @@
.PHONY: requirements common gw api integration streams
.PHONY: requirements common gw api integration stream
PROTOC := python -m grpc_tools.protoc
PROTOC_ARGS := -I=/googleapis -I=proto --python_out=src --grpc_python_out=src --pyi_out=src
PACKAGE_NAME := import \"chirpstack-api/
all: requirements pre-build common gw api integration streams
all: requirements pre-build common gw api integration stream
requirements:
pip install grpcio-tools
@ -41,7 +41,7 @@ api:
integration:
$(PROTOC) ${PROTOC_ARGS} chirpstack-api/integration/integration.proto
streams:
$(PROTOC) ${PROTOC_ARGS} chirpstack-api/streams/meta.proto
$(PROTOC) ${PROTOC_ARGS} chirpstack-api/streams/frames.proto
$(PROTOC) ${PROTOC_ARGS} chirpstack-api/streams/api_requests.proto
stream:
$(PROTOC) ${PROTOC_ARGS} chirpstack-api/stream/meta.proto
$(PROTOC) ${PROTOC_ARGS} chirpstack-api/stream/frame.proto
$(PROTOC) ${PROTOC_ARGS} chirpstack-api/stream/api_request.proto

View File

@ -1,12 +1,12 @@
syntax = "proto3";
package streams;
package stream;
option go_package = "github.com/chirpstack/chirpstack/api/go/v4/streams";
option java_package = "io.chirpstack.api.streams";
option go_package = "github.com/chirpstack/chirpstack/api/go/v4/stream";
option java_package = "io.chirpstack.api.stream";
option java_multiple_files = true;
option java_outer_classname = "ApiRequestsProto";
option csharp_namespace = "Chirpstack.Streams";
option java_outer_classname = "ApiRequestProto";
option csharp_namespace = "Chirpstack.Stream";
import "google/protobuf/timestamp.proto";
import "chirpstack-api/common/common.proto";

View File

@ -1,12 +1,12 @@
syntax = "proto3";
package streams;
package stream;
option go_package = "github.com/chirpstack/chirpstack/api/go/v4/streams";
option java_package = "io.chirpstack.api.streams";
option go_package = "github.com/chirpstack/chirpstack/api/go/v4/stream";
option java_package = "io.chirpstack.api.stream";
option java_multiple_files = true;
option java_outer_classname = "FramesProto";
option csharp_namespace = "Chirpstack.Streams";
option java_outer_classname = "FrameProto";
option csharp_namespace = "Chirpstack.Stream";
import "google/protobuf/timestamp.proto";
import "chirpstack-api/common/common.proto";

View File

@ -1,12 +1,12 @@
syntax = "proto3";
package streams;
package stream;
option go_package = "github.com/chirpstack/chirpstack/api/go/v4/streams";
option java_package = "io.chirpstack.api.streams";
option go_package = "github.com/chirpstack/chirpstack/api/go/v4/stream";
option java_package = "io.chirpstack.api.stream";
option java_multiple_files = true;
option java_outer_classname = "MetaProto";
option csharp_namespace = "Chirpstack.Streams";
option csharp_namespace = "Chirpstack.Stream";
import "chirpstack-api/common/common.proto";
import "chirpstack-api/gw/gw.proto";

View File

@ -0,0 +1,3 @@
from .frame_pb2 import *
from .meta_pb2 import *
from .api_request_pb2 import *

View File

@ -0,0 +1,34 @@
# -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: chirpstack-api/stream/api_request.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/stream/api_request.proto\x12\x06stream\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\"chirpstack-api/common/common.proto\x1a\x1a\x63hirpstack-api/gw/gw.proto\"\x98\x01\n\rApiRequestLog\x12\x0f\n\x07service\x18\x01 \x01(\t\x12\x0e\n\x06method\x18\x02 \x01(\t\x12\x35\n\x08metadata\x18\x03 \x03(\x0b\x32#.stream.ApiRequestLog.MetadataEntry\x1a/\n\rMetadataEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x42t\n\x18io.chirpstack.api.streamB\x0f\x41piRequestProtoP\x01Z1github.com/chirpstack/chirpstack/api/go/v4/stream\xaa\x02\x11\x43hirpstack.Streamb\x06proto3')
_globals = globals()
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'chirpstack_api.stream.api_request_pb2', _globals)
if _descriptor._USE_C_DESCRIPTORS == False:
DESCRIPTOR._options = None
DESCRIPTOR._serialized_options = b'\n\030io.chirpstack.api.streamB\017ApiRequestProtoP\001Z1github.com/chirpstack/chirpstack/api/go/v4/stream\252\002\021Chirpstack.Stream'
_APIREQUESTLOG_METADATAENTRY._options = None
_APIREQUESTLOG_METADATAENTRY._serialized_options = b'8\001'
_globals['_APIREQUESTLOG']._serialized_start=149
_globals['_APIREQUESTLOG']._serialized_end=301
_globals['_APIREQUESTLOG_METADATAENTRY']._serialized_start=254
_globals['_APIREQUESTLOG_METADATAENTRY']._serialized_end=301
# @@protoc_insertion_point(module_scope)

View File

@ -0,0 +1,32 @@
# -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: chirpstack-api/stream/frame.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/stream/frame.proto\x12\x06stream\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\x42o\n\x18io.chirpstack.api.streamB\nFrameProtoP\x01Z1github.com/chirpstack/chirpstack/api/go/v4/stream\xaa\x02\x11\x43hirpstack.Streamb\x06proto3')
_globals = globals()
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'chirpstack_api.stream.frame_pb2', _globals)
if _descriptor._USE_C_DESCRIPTORS == False:
DESCRIPTOR._options = None
DESCRIPTOR._serialized_options = b'\n\030io.chirpstack.api.streamB\nFrameProtoP\001Z1github.com/chirpstack/chirpstack/api/go/v4/stream\252\002\021Chirpstack.Stream'
_globals['_UPLINKFRAMELOG']._serialized_start=143
_globals['_UPLINKFRAMELOG']._serialized_end=415
_globals['_DOWNLINKFRAMELOG']._serialized_start=418
_globals['_DOWNLINKFRAMELOG']._serialized_end=700
# @@protoc_insertion_point(module_scope)

View File

@ -0,0 +1,31 @@
# -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: chirpstack-api/stream/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/stream/meta.proto\x12\x06stream\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(\tBn\n\x18io.chirpstack.api.streamB\tMetaProtoP\x01Z1github.com/chirpstack/chirpstack/api/go/v4/stream\xaa\x02\x11\x43hirpstack.Streamb\x06proto3')
_globals = globals()
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'chirpstack_api.stream.meta_pb2', _globals)
if _descriptor._USE_C_DESCRIPTORS == False:
DESCRIPTOR._options = None
DESCRIPTOR._serialized_options = b'\n\030io.chirpstack.api.streamB\tMetaProtoP\001Z1github.com/chirpstack/chirpstack/api/go/v4/stream\252\002\021Chirpstack.Stream'
_globals['_UPLINKMETA']._serialized_start=109
_globals['_UPLINKMETA']._serialized_end=349
_globals['_DOWNLINKMETA']._serialized_start=352
_globals['_DOWNLINKMETA']._serialized_end=609
# @@protoc_insertion_point(module_scope)

View File

@ -1,3 +0,0 @@
from .frames_pb2 import *
from .meta_pb2 import *
from .api_requests_pb2 import *

View File

@ -1,34 +0,0 @@
# -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: chirpstack-api/streams/api_requests.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/api_requests.proto\x12\x07streams\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\"chirpstack-api/common/common.proto\x1a\x1a\x63hirpstack-api/gw/gw.proto\"\x99\x01\n\rApiRequestLog\x12\x0f\n\x07service\x18\x01 \x01(\t\x12\x0e\n\x06method\x18\x02 \x01(\t\x12\x36\n\x08metadata\x18\x03 \x03(\x0b\x32$.streams.ApiRequestLog.MetadataEntry\x1a/\n\rMetadataEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x42x\n\x19io.chirpstack.api.streamsB\x10\x41piRequestsProtoP\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.api_requests_pb2', _globals)
if _descriptor._USE_C_DESCRIPTORS == False:
DESCRIPTOR._options = None
DESCRIPTOR._serialized_options = b'\n\031io.chirpstack.api.streamsB\020ApiRequestsProtoP\001Z2github.com/chirpstack/chirpstack/api/go/v4/streams\252\002\022Chirpstack.Streams'
_APIREQUESTLOG_METADATAENTRY._options = None
_APIREQUESTLOG_METADATAENTRY._serialized_options = b'8\001'
_globals['_APIREQUESTLOG']._serialized_start=152
_globals['_APIREQUESTLOG']._serialized_end=305
_globals['_APIREQUESTLOG_METADATAENTRY']._serialized_start=258
_globals['_APIREQUESTLOG_METADATAENTRY']._serialized_end=305
# @@protoc_insertion_point(module_scope)

View File

@ -1,32 +0,0 @@
# -*- 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)

View File

@ -1,31 +0,0 @@
# -*- 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)

24
api/rust/build.rs vendored
View File

@ -13,7 +13,7 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
std::fs::create_dir_all(out_dir.join("gw")).unwrap();
std::fs::create_dir_all(out_dir.join("internal")).unwrap();
std::fs::create_dir_all(out_dir.join("integration")).unwrap();
std::fs::create_dir_all(out_dir.join("streams")).unwrap();
std::fs::create_dir_all(out_dir.join("stream")).unwrap();
std::fs::create_dir_all(out_dir.join("api")).unwrap();
#[cfg(feature = "json")]
@ -138,23 +138,19 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
// streams
tonic_build::configure()
.out_dir(out_dir.join("streams"))
.file_descriptor_set_path(out_dir.join("streams").join("proto_descriptor.bin"))
.out_dir(out_dir.join("stream"))
.file_descriptor_set_path(out_dir.join("stream").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(),
cs_dir.join("stream").join("meta.proto").to_str().unwrap(),
cs_dir.join("stream").join("frame.proto").to_str().unwrap(),
cs_dir
.join("streams")
.join("frames.proto")
.to_str()
.unwrap(),
cs_dir
.join("streams")
.join("api_requests.proto")
.join("stream")
.join("api_request.proto")
.to_str()
.unwrap(),
],
@ -166,14 +162,14 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
#[cfg(feature = "json")]
{
let descriptor_set = std::fs::read(out_dir.join("streams").join("proto_descriptor.bin"))?;
let descriptor_set = std::fs::read(out_dir.join("stream").join("proto_descriptor.bin"))?;
pbjson_build::Builder::new()
.register_descriptors(&descriptor_set)?
.ignore_unknown_fields()
.out_dir(out_dir.join("streams"))
.out_dir(out_dir.join("stream"))
.extern_path(".common", "crate::common")
.extern_path(".gw", "crate::gw")
.build(&[".streams"])?;
.build(&[".stream"])?;
}
// api

View File

@ -1,12 +1,12 @@
syntax = "proto3";
package streams;
package stream;
option go_package = "github.com/chirpstack/chirpstack/api/go/v4/streams";
option java_package = "io.chirpstack.api.streams";
option go_package = "github.com/chirpstack/chirpstack/api/go/v4/stream";
option java_package = "io.chirpstack.api.stream";
option java_multiple_files = true;
option java_outer_classname = "ApiRequestsProto";
option csharp_namespace = "Chirpstack.Streams";
option java_outer_classname = "ApiRequestProto";
option csharp_namespace = "Chirpstack.Stream";
import "google/protobuf/timestamp.proto";
import "common/common.proto";

View File

@ -1,12 +1,12 @@
syntax = "proto3";
package streams;
package stream;
option go_package = "github.com/chirpstack/chirpstack/api/go/v4/streams";
option java_package = "io.chirpstack.api.streams";
option go_package = "github.com/chirpstack/chirpstack/api/go/v4/stream";
option java_package = "io.chirpstack.api.stream";
option java_multiple_files = true;
option java_outer_classname = "FramesProto";
option csharp_namespace = "Chirpstack.Streams";
option java_outer_classname = "FrameProto";
option csharp_namespace = "Chirpstack.Stream";
import "google/protobuf/timestamp.proto";
import "common/common.proto";

View File

@ -1,12 +1,12 @@
syntax = "proto3";
package streams;
package stream;
option go_package = "github.com/chirpstack/chirpstack/api/go/v4/streams";
option java_package = "io.chirpstack.api.streams";
option go_package = "github.com/chirpstack/chirpstack/api/go/v4/stream";
option java_package = "io.chirpstack.api.stream";
option java_multiple_files = true;
option java_outer_classname = "MetaProto";
option csharp_namespace = "Chirpstack.Streams";
option csharp_namespace = "Chirpstack.Stream";
import "common/common.proto";
import "gw/gw.proto";

2
api/rust/src/lib.rs vendored
View File

@ -6,4 +6,4 @@ pub mod gw;
pub mod integration;
#[cfg(feature = "internal")]
pub mod internal;
pub mod streams;
pub mod stream;

3
api/rust/src/stream.rs vendored Normal file
View File

@ -0,0 +1,3 @@
include!(concat!(env!("OUT_DIR"), "/stream/stream.rs"));
#[cfg(feature = "json")]
include!(concat!(env!("OUT_DIR"), "/stream/stream.serde.rs"));

View File

@ -1,3 +0,0 @@
include!(concat!(env!("OUT_DIR"), "/streams/streams.rs"));
#[cfg(feature = "json")]
include!(concat!(env!("OUT_DIR"), "/streams/streams.serde.rs"));

View File

@ -22,7 +22,7 @@ use super::error::ToStatus;
use super::helpers::ToProto;
use super::{helpers, oidc};
use crate::storage::{api_key, device, error::Error, gateway, redis_key, search, tenant, user};
use crate::{config, region, streams};
use crate::{config, region, stream};
use lrwn::EUI64;
pub struct Internal {
@ -599,7 +599,7 @@ impl InternalService for Internal {
let (redis_tx, mut redis_rx) = mpsc::channel(1);
let (stream_tx, stream_rx) = mpsc::channel(1);
let mut framelog_future = Box::pin(streams::frames::get_frame_logs(key, 10, redis_tx));
let mut framelog_future = Box::pin(stream::frame::get_frame_logs(key, 10, redis_tx));
let (drop_receiver, mut close_rx) = DropReceiver::new(ReceiverStream::new(stream_rx));
tokio::spawn(async move {
@ -666,7 +666,7 @@ impl InternalService for Internal {
let (redis_tx, mut redis_rx) = mpsc::channel(1);
let (stream_tx, stream_rx) = mpsc::channel(1);
let mut framelog_future = Box::pin(streams::frames::get_frame_logs(key, 10, redis_tx));
let mut framelog_future = Box::pin(stream::frame::get_frame_logs(key, 10, redis_tx));
let (drop_receiver, mut close_rx) = DropReceiver::new(ReceiverStream::new(stream_rx));
tokio::spawn(async move {
@ -734,7 +734,7 @@ impl InternalService for Internal {
let (redis_tx, mut redis_rx) = mpsc::channel(1);
let (stream_tx, stream_rx) = mpsc::channel(1);
let mut eventlog_future = Box::pin(streams::events::get_event_logs(key, 10, redis_tx));
let mut eventlog_future = Box::pin(stream::event::get_event_logs(key, 10, redis_tx));
let (drop_receiver, mut close_rx) = DropReceiver::new(ReceiverStream::new(stream_rx));
tokio::spawn(async move {

View File

@ -35,13 +35,13 @@ use chirpstack_api::api::multicast_group_service_server::MulticastGroupServiceSe
use chirpstack_api::api::relay_service_server::RelayServiceServer;
use chirpstack_api::api::tenant_service_server::TenantServiceServer;
use chirpstack_api::api::user_service_server::UserServiceServer;
use chirpstack_api::streams;
use chirpstack_api::stream as stream_pb;
use super::config;
use crate::api::auth::validator;
use crate::helpers::errors::PrintFullError;
use crate::monitoring::prometheus;
use crate::streams::api_requests;
use crate::stream;
pub mod application;
pub mod auth;
@ -401,7 +401,7 @@ where
.observe(this.start.elapsed().as_secs_f64());
// Log API request to Redis
let req_log = streams::ApiRequestLog {
let req_log = stream_pb::ApiRequestLog {
service: this.service.to_string(),
method: this.method.to_string(),
metadata: response
@ -421,7 +421,7 @@ where
};
task::spawn(async move {
if let Err(e) = api_requests::log_request(&req_log).await {
if let Err(e) = stream::api_request::log_request(&req_log).await {
error!(error = %e.full(), "Log request error");
}
});

View File

@ -11,8 +11,8 @@ use crate::storage::{
device::{self, DeviceClass},
device_profile, device_queue, device_session, downlink_frame, multicast, tenant,
};
use crate::{integration, streams};
use chirpstack_api::{common, gw, integration as integration_pb, internal, streams as streams_pb};
use crate::{integration, stream};
use chirpstack_api::{common, gw, integration as integration_pb, internal, stream as stream_pb};
pub struct TxAck {
downlink_tx_ack: gw::DownlinkTxAck,
@ -609,7 +609,7 @@ impl TxAck {
let dfi = self.downlink_frame_item.as_ref().unwrap();
let phy = self.phy_payload.as_mut().unwrap();
let dfl = streams_pb::DownlinkFrameLog {
let dfl = stream_pb::DownlinkFrameLog {
time: Some(Utc::now().into()),
phy_payload: dfi.phy_payload.clone(),
tx_info: dfi.tx_info.clone(),
@ -642,7 +642,7 @@ impl TxAck {
// Log for gateway (with potentially encrypted mac-commands).
info!(gateway_id = %dfl.gateway_id, "Log downlink-frame for gateway");
streams::frames::log_downlink_for_gateway(&dfl).await?;
stream::frame::log_downlink_for_gateway(&dfl).await?;
// Downlink is not related to a device / DevEUI, e.g. it could be a multicast
// or proprietary downlink. Therefore we can't log it for a specific DevEUI.
@ -678,7 +678,7 @@ impl TxAck {
phy.decrypt_f_opts(&nwk_s_enc_key)?;
}
let dfl = streams_pb::DownlinkFrameLog {
let dfl = stream_pb::DownlinkFrameLog {
time: dfl.time.clone(),
phy_payload: phy.to_vec()?,
tx_info: dfl.tx_info.clone(),
@ -693,7 +693,7 @@ impl TxAck {
// Log for device.
info!(device_eui = %dfl.dev_eui, "Log downlink-frame for device");
streams::frames::log_downlink_for_device(&dfl).await?;
stream::frame::log_downlink_for_device(&dfl).await?;
Ok(())
}
@ -705,7 +705,7 @@ impl TxAck {
let dfi = self.downlink_frame_item.as_ref().unwrap();
let phy = self.phy_payload.as_ref().unwrap();
let dm = streams_pb::DownlinkMeta {
let dm = stream_pb::DownlinkMeta {
dev_eui: if !df.dev_eui.is_empty() {
EUI64::from_slice(&df.dev_eui)?.to_string()
} else {
@ -749,7 +749,7 @@ impl TxAck {
gateway_id: df.downlink_frame.as_ref().unwrap().gateway_id.clone(),
};
streams::meta::log_downlink(&dm).await
stream::meta::log_downlink(&dm).await
}
fn is_error(&self) -> bool {

View File

@ -6,7 +6,7 @@ use prost::Message;
use tracing::info;
use super::Integration as IntegrationTrait;
use crate::streams;
use crate::stream;
use chirpstack_api::integration;
pub struct Integration {}
@ -30,7 +30,7 @@ impl IntegrationTrait for Integration {
.as_ref()
.ok_or_else(|| anyhow!("device_info is None"))?;
let b = pl.encode_to_vec();
streams::events::log_event_for_device("up", &dev_info.dev_eui, &b).await
stream::event::log_event_for_device("up", &dev_info.dev_eui, &b).await
}
async fn join_event(
@ -43,7 +43,7 @@ impl IntegrationTrait for Integration {
.as_ref()
.ok_or_else(|| anyhow!("device_info is None"))?;
let b = pl.encode_to_vec();
streams::events::log_event_for_device("join", &dev_info.dev_eui, &b).await
stream::event::log_event_for_device("join", &dev_info.dev_eui, &b).await
}
async fn ack_event(
@ -56,7 +56,7 @@ impl IntegrationTrait for Integration {
.as_ref()
.ok_or_else(|| anyhow!("device_info is None"))?;
let b = pl.encode_to_vec();
streams::events::log_event_for_device("ack", &dev_info.dev_eui, &b).await
stream::event::log_event_for_device("ack", &dev_info.dev_eui, &b).await
}
async fn txack_event(
@ -69,7 +69,7 @@ impl IntegrationTrait for Integration {
.as_ref()
.ok_or_else(|| anyhow!("device_info is None"))?;
let b = pl.encode_to_vec();
streams::events::log_event_for_device("txack", &dev_info.dev_eui, &b).await
stream::event::log_event_for_device("txack", &dev_info.dev_eui, &b).await
}
async fn log_event(
@ -82,7 +82,7 @@ impl IntegrationTrait for Integration {
.as_ref()
.ok_or_else(|| anyhow!("device_info is None"))?;
let b = pl.encode_to_vec();
streams::events::log_event_for_device("log", &dev_info.dev_eui, &b).await
stream::event::log_event_for_device("log", &dev_info.dev_eui, &b).await
}
async fn status_event(
@ -95,7 +95,7 @@ impl IntegrationTrait for Integration {
.as_ref()
.ok_or_else(|| anyhow!("device_info is None"))?;
let b = pl.encode_to_vec();
streams::events::log_event_for_device("status", &dev_info.dev_eui, &b).await
stream::event::log_event_for_device("status", &dev_info.dev_eui, &b).await
}
async fn location_event(
@ -108,7 +108,7 @@ impl IntegrationTrait for Integration {
.as_ref()
.ok_or_else(|| anyhow!("device_info is None"))?;
let b = pl.encode_to_vec();
streams::events::log_event_for_device("location", &dev_info.dev_eui, &b).await
stream::event::log_event_for_device("location", &dev_info.dev_eui, &b).await
}
async fn integration_event(
@ -121,7 +121,7 @@ impl IntegrationTrait for Integration {
.as_ref()
.ok_or_else(|| anyhow!("device_info is None"))?;
let b = pl.encode_to_vec();
streams::events::log_event_for_device("integration", &dev_info.dev_eui, &b).await
stream::event::log_event_for_device("integration", &dev_info.dev_eui, &b).await
}
}

View File

@ -39,7 +39,7 @@ mod monitoring;
mod region;
mod sensitivity;
mod storage;
mod streams;
mod stream;
#[cfg(test)]
mod test;
mod uplink;

View File

@ -4,9 +4,9 @@ use tokio::task;
use crate::config;
use crate::storage::{get_redis_conn, redis_key};
use chirpstack_api::streams;
use chirpstack_api::stream;
pub async fn log_request(pl: &streams::ApiRequestLog) -> Result<()> {
pub async fn log_request(pl: &stream::ApiRequestLog) -> Result<()> {
task::spawn_blocking({
let pl = pl.clone();
@ -46,7 +46,7 @@ mod tests {
async fn test_log_request() {
let _guard = test::prepare().await;
let pl = streams::ApiRequestLog {
let pl = stream::ApiRequestLog {
service: "ap.Foo".to_string(),
method: "bar".to_string(),
metadata: [("user_id".to_string(), "foo_user".to_string())]
@ -71,7 +71,7 @@ mod tests {
assert_eq!(1, srr.keys[0].ids.len());
if let Some(redis::Value::Data(b)) = srr.keys[0].ids[0].map.get("request") {
let pl_recv = streams::ApiRequestLog::decode(&mut Cursor::new(b)).unwrap();
let pl_recv = stream::ApiRequestLog::decode(&mut Cursor::new(b)).unwrap();
assert_eq!(pl, pl_recv);
} else {
panic!("No request log");

View File

@ -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, streams};
use chirpstack_api::{api, stream};
pub async fn log_uplink_for_gateways(ufl: &streams::UplinkFrameLog) -> Result<()> {
pub async fn log_uplink_for_gateways(ufl: &stream::UplinkFrameLog) -> Result<()> {
task::spawn_blocking({
let ufl = ufl.clone();
move || -> Result<()> {
@ -28,7 +28,7 @@ pub async fn log_uplink_for_gateways(ufl: &streams::UplinkFrameLog) -> Result<()
for rx_info in &ufl.rx_info {
let gateway_id = EUI64::from_str(&rx_info.gateway_id)?;
let ufl_copy = streams::UplinkFrameLog {
let ufl_copy = stream::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: &streams::UplinkFrameLog) -> Result<()
.await?
}
pub async fn log_downlink_for_gateway(dfl: &streams::DownlinkFrameLog) -> Result<()> {
pub async fn log_downlink_for_gateway(dfl: &stream::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: &streams::DownlinkFrameLog) -> Result
.await?
}
pub async fn log_uplink_for_device(ufl: &streams::UplinkFrameLog) -> Result<()> {
pub async fn log_uplink_for_device(ufl: &stream::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: &streams::UplinkFrameLog) -> Result<()>
.await?
}
pub async fn log_downlink_for_device(dfl: &streams::DownlinkFrameLog) -> Result<()> {
pub async fn log_downlink_for_device(dfl: &stream::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 = streams::UplinkFrameLog::decode(&mut Cursor::new(b))?;
let pl = stream::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() {
@ -317,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 = streams::DownlinkFrameLog::decode(&mut Cursor::new(b))?;
let pl = stream::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() {

View File

@ -4,9 +4,9 @@ use tokio::task;
use crate::config;
use crate::storage::{get_redis_conn, redis_key};
use chirpstack_api::streams;
use chirpstack_api::stream;
pub async fn log_uplink(up: &streams::UplinkMeta) -> Result<()> {
pub async fn log_uplink(up: &stream::UplinkMeta) -> Result<()> {
task::spawn_blocking({
let up = up.clone();
move || -> Result<()> {
@ -32,7 +32,7 @@ pub async fn log_uplink(up: &streams::UplinkMeta) -> Result<()> {
.await?
}
pub async fn log_downlink(down: &streams::DownlinkMeta) -> Result<()> {
pub async fn log_downlink(down: &stream::DownlinkMeta) -> Result<()> {
task::spawn_blocking({
let down = down.clone();
move || -> Result<()> {

View File

@ -0,0 +1,4 @@
pub mod api_request;
pub mod event;
pub mod frame;
pub mod meta;

View File

@ -1,4 +0,0 @@
pub mod api_requests;
pub mod events;
pub mod frames;
pub mod meta;

View File

@ -19,8 +19,8 @@ use crate::storage::{
device::{self, DeviceClass},
device_gateway, device_profile, device_queue, device_session, fields, metrics, tenant,
};
use crate::{codec, config, downlink, integration, maccommand, region, streams};
use chirpstack_api::{integration as integration_pb, internal, streams as streams_pb};
use crate::{codec, config, downlink, integration, maccommand, region, stream};
use chirpstack_api::{integration as integration_pb, internal, stream as stream_pb};
use lrwn::{AES128Key, EUI64};
pub struct Data {
@ -276,10 +276,9 @@ 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: streams_pb::UplinkFrameLog =
(&self.uplink_frame_set).try_into()?;
let mut ufl: stream_pb::UplinkFrameLog = (&self.uplink_frame_set).try_into()?;
ufl.dev_eui = "0000000000000000".to_string();
streams::frames::log_uplink_for_device(&ufl).await?;
stream::frame::log_uplink_for_device(&ufl).await?;
return Err(Error::Abort);
}
@ -649,7 +648,7 @@ impl Data {
async fn log_uplink_frame_set(&self) -> Result<()> {
trace!("Logging uplink frame-set");
let mut ufl: streams_pb::UplinkFrameLog = (&self.uplink_frame_set).try_into()?;
let mut ufl: stream_pb::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.
@ -657,7 +656,7 @@ impl Data {
ufl.plaintext_frm_payload = true;
ufl.phy_payload = self.phy_payload.to_vec()?;
streams::frames::log_uplink_for_device(&ufl).await?;
stream::frame::log_uplink_for_device(&ufl).await?;
Ok(())
}
@ -734,7 +733,7 @@ impl Data {
trace!("Logging uplink meta");
if let lrwn::Payload::MACPayload(mac_pl) = &self.phy_payload.payload {
let um = streams_pb::UplinkMeta {
let um = stream_pb::UplinkMeta {
dev_eui: self.device.as_ref().unwrap().dev_eui.to_string(),
tx_info: Some(self.uplink_frame_set.tx_info.clone()),
rx_info: self.uplink_frame_set.rx_info_set.clone(),
@ -764,7 +763,7 @@ impl Data {
message_type: self.phy_payload.mhdr.m_type.to_proto().into(),
};
streams::meta::log_uplink(&um).await?;
stream::meta::log_uplink(&um).await?;
}
Ok(())

View File

@ -28,8 +28,8 @@ use crate::storage::{
error::Error as StorageError,
metrics, tenant,
};
use crate::{config, devaddr::get_random_dev_addr, downlink, integration, region, streams};
use chirpstack_api::{common, integration as integration_pb, internal, streams as streams_pb};
use crate::{config, devaddr::get_random_dev_addr, downlink, integration, region, stream};
use chirpstack_api::{common, integration as integration_pb, internal, stream as stream_pb};
pub struct JoinRequest {
uplink_frame_set: UplinkFrameSet,
@ -381,8 +381,8 @@ impl JoinRequest {
async fn log_uplink_frame_set(&self) -> Result<()> {
trace!("Logging uplink frame-set");
let ufl: streams_pb::UplinkFrameLog = (&self.uplink_frame_set).try_into()?;
streams::frames::log_uplink_for_device(&ufl).await?;
let ufl: stream_pb::UplinkFrameLog = (&self.uplink_frame_set).try_into()?;
stream::frame::log_uplink_for_device(&ufl).await?;
Ok(())
}
@ -766,7 +766,7 @@ impl JoinRequest {
async fn log_uplink_meta(&self) -> Result<()> {
trace!("Logging uplink meta");
let um = streams_pb::UplinkMeta {
let um = stream_pb::UplinkMeta {
dev_eui: self.device.as_ref().unwrap().dev_eui.to_string(),
tx_info: Some(self.uplink_frame_set.tx_info.clone()),
rx_info: self.uplink_frame_set.rx_info_set.clone(),
@ -775,7 +775,7 @@ impl JoinRequest {
..Default::default()
};
streams::meta::log_uplink(&um).await?;
stream::meta::log_uplink(&um).await?;
Ok(())
}

View File

@ -14,9 +14,9 @@ use crate::storage::{
error::Error as StorageError,
metrics, tenant,
};
use crate::{config, devaddr::get_random_dev_addr, integration, region, streams};
use crate::{config, devaddr::get_random_dev_addr, integration, region, stream};
use backend::{PRStartAnsPayload, PRStartReqPayload};
use chirpstack_api::{common, integration as integration_pb, internal, streams as streams_pb};
use chirpstack_api::{common, integration as integration_pb, internal, stream as stream_pb};
use lrwn::{keys, AES128Key, DevAddr, NetID};
pub struct JoinRequest {
@ -555,7 +555,7 @@ impl JoinRequest {
async fn log_uplink_meta(&self) -> Result<()> {
trace!("Logging uplink meta");
let req = streams_pb::UplinkMeta {
let req = stream_pb::UplinkMeta {
dev_eui: self.device.as_ref().unwrap().dev_eui.to_string(),
tx_info: Some(self.uplink_frame_set.tx_info.clone()),
rx_info: self.uplink_frame_set.rx_info_set.clone(),
@ -564,7 +564,7 @@ impl JoinRequest {
..Default::default()
};
streams::meta::log_uplink(&req).await?;
stream::meta::log_uplink(&req).await?;
Ok(())
}

View File

@ -17,8 +17,8 @@ use crate::helpers::errors::PrintFullError;
use crate::storage::{
device, device_profile, error::Error as StorageError, gateway, get_redis_conn, redis_key,
};
use crate::streams;
use chirpstack_api::{common, gw, internal, streams as streams_pb};
use crate::stream;
use chirpstack_api::{common, gw, internal, stream as stream_pb};
use lrwn::region::CommonName;
use lrwn::{ForwardUplinkReq, MType, PhyPayload, EUI64};
@ -57,13 +57,13 @@ pub struct UplinkFrameSet {
pub roaming_meta_data: Option<RoamingMetaData>,
}
impl TryFrom<&UplinkFrameSet> for streams_pb::UplinkFrameLog {
impl TryFrom<&UplinkFrameSet> for stream_pb::UplinkFrameLog {
type Error = anyhow::Error;
fn try_from(
ufs: &UplinkFrameSet,
) -> std::result::Result<streams_pb::UplinkFrameLog, Self::Error> {
let mut ufl = streams_pb::UplinkFrameLog {
) -> std::result::Result<stream_pb::UplinkFrameLog, Self::Error> {
let mut ufl = stream_pb::UplinkFrameLog {
phy_payload: ufs.phy_payload.to_vec()?,
tx_info: Some(ufs.tx_info.clone()),
rx_info: ufs.rx_info_set.clone(),
@ -317,8 +317,8 @@ 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: streams_pb::UplinkFrameLog = (&uplink).try_into()?;
streams::frames::log_uplink_for_gateways(&ufl)
let ufl: stream_pb::UplinkFrameLog = (&uplink).try_into()?;
stream::frame::log_uplink_for_gateways(&ufl)
.await
.context("Log uplink for gateways")?;