diff --git a/csharp/lib/Wireformat/WireFormat.csproj b/csharp/lib/Wireformat/WireFormat.csproj
deleted file mode 100644
index 464e89496..000000000
--- a/csharp/lib/Wireformat/WireFormat.csproj
+++ /dev/null
@@ -1,23 +0,0 @@
-
-
-
-
- enable
- InnovEnergy.WireFormat
- InnovEnergy.WireFormat
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/csharp/lib/Wireformat/cs/BatteryStatus48TL.cs b/csharp/lib/Wireformat/cs/BatteryStatus48TL.cs
deleted file mode 100644
index e773f156e..000000000
--- a/csharp/lib/Wireformat/cs/BatteryStatus48TL.cs
+++ /dev/null
@@ -1,1070 +0,0 @@
-//
-// Generated by the protocol buffer compiler. DO NOT EDIT!
-// source: VictronV1/BatteryStatus48TL.proto
-//
-#pragma warning disable 1591, 0612, 3021
-#region Designer generated code
-
-using pb = global::Google.Protobuf;
-using pbc = global::Google.Protobuf.Collections;
-using pbr = global::Google.Protobuf.Reflection;
-using scg = global::System.Collections.Generic;
-namespace InnovEnergy.WireFormat.VictronV1 {
-
- /// Holder for reflection information generated from VictronV1/BatteryStatus48TL.proto
- public static partial class BatteryStatus48TLReflection {
-
- #region Descriptor
- /// File descriptor for VictronV1/BatteryStatus48TL.proto
- public static pbr::FileDescriptor Descriptor {
- get { return descriptor; }
- }
- private static pbr::FileDescriptor descriptor;
-
- static BatteryStatus48TLReflection() {
- byte[] descriptorData = global::System.Convert.FromBase64String(
- string.Concat(
- "CiFWaWN0cm9uVjEvQmF0dGVyeVN0YXR1czQ4VEwucHJvdG8iVwoETGVkcxIT",
- "CgVncmVlbhgBIAEoDjIELkxlZBITCgVhbWJlchgCIAEoDjIELkxlZBISCgRi",
- "bHVlGAMgASgOMgQuTGVkEhEKA3JlZBgEIAEoDjIELkxlZCKdAQoMVGVtcGVy",
- "YXR1cmVzEg0KBWJvYXJkGAEgASgCEhMKC2NlbGxzQ2VudGVyGAIgASgCEhUK",
- "DWNlbGxzTGF0ZXJhbDEYAyABKAISFQoNY2VsbHNMYXRlcmFsMhgEIAEoAhIc",
- "ChRoZWF0ZXJQb3dlckNlbnRlclBjdBgFIAEoAhIdChVoZWF0ZXJQb3dlckxh",
- "dGVyYWxQY3QYBiABKAIikgIKEUJhdHRlcnlTdGF0dXM0OFRMEg4KBm5vZGVJ",
- "ZBgBIAEoBRILCgNzb2MYAiABKAISFAoMY2VsbHNWb2x0YWdlGAMgASgCEhQK",
- "DGNlbGxzQ3VycmVudBgEIAEoAhISCgpidXNWb2x0YWdlGAUgASgCEhMKC3Rl",
- "bXBlcmF0dXJlGAYgASgCEhMKBGxlZHMYByABKAsyBS5MZWRzEiMKDHRlbXBl",
- "cmF0dXJlcxgIIAEoCzINLlRlbXBlcmF0dXJlcxIbCgh3YXJuaW5ncxgJIAMo",
- "DjIJLldhcm5pbmdzEhcKBmFsYXJtcxgKIAMoDjIHLkFsYXJtcxIbCghpb1N0",
- "YXR1cxgLIAMoDjIJLklvU3RhdHVzKpYCCghXYXJuaW5ncxINCglOb1dhcm5p",
- "bmcQABINCglUYU0xX0JpdDEQARINCglUYk0xX0JpdDQQBBINCglWQm0xX0Jp",
- "dDYQBhINCglWQk0xX0JpdDgQCBIOCgpJRE0xX0JpdDEwEAoSDgoKdnNNMV9C",
- "aXQyNBAYEg4KCmlDTTFfQml0MjYQGhIOCgppRE0xX0JpdDI4EBwSDgoKTUlE",
- "MV9CaXQzMBAeEg4KCkJMUFdfQml0MzIQIBIOCgpBaF9XX0JpdDM1ECMSDgoK",
- "TVBNTV9CaXQzOBAmEg4KClRDTU1fQml0MzkQJxIOCgpUQ2RpX0JpdDQwECgS",
- "DgoKV01UT19CaXQ0MRApEg8KC0NFTEwxX0JpdDQ2EC4qjwcKBkFsYXJtcxIM",
- "CghUYW1fQml0MBAAEg0KCVRhTTJfQml0MhACEgwKCFRibV9CaXQzEAMSDQoJ",
- "VGJNMl9CaXQ1EAUSDQoJVkJtMl9CaXQ3EAcSDQoJVkJNMl9CaXQ4EAgSDgoK",
- "SURNMl9CaXQxMRALEg4KCklTT0JfQml0MTIQDBIOCgpNU1dFX0JpdDEzEA0S",
- "DgoKRlVTRV9CaXQxNBAOEg4KCkhUUkVfQml0MTUQDxIOCgpUQ1BFX0JpdDE2",
- "EBASDgoKU1RSRV9CaXQxNxAREg0KCUNNRV9CaXQxOBASEg4KCkhXRkxfQml0",
- "MTkQExIOCgpIV0VNX0JpdDIwEBQSDQoJVGhNX0JpdDIxEBUSDgoKdnNtMV9C",
- "aXQyMhAWEg4KCnZzbTJfQml0MjMQFxIOCgp2c00yX0JpdDI1EBkSDgoKaUNN",
- "Ml9CaXQyNxAbEg4KCmlETTJfQml0MjkQHRIOCgpNSUQyX0JpdDMxEB8SDgoK",
- "Q0NCRl9CaXQzMxAhEg4KCkFoRkxfQml0MzQQIhIOCgpUYkNNX0JpdDM2ECQS",
- "DgoKQlJORl9CaXQzNxAlEg4KCkhURlNfQml0NDIQKhIOCgpEQVRBX0JpdDQz",
- "ECsSDwoLQ0VMTDJfQml0NDUQLRIWChJVbmRvY3VtZW50ZWRfQml0NDQQLBIW",
- "ChJVbmRvY3VtZW50ZWRfQml0NDcQLxIWChJVbmRvY3VtZW50ZWRfQml0NDgQ",
- "MBIWChJVbmRvY3VtZW50ZWRfQml0NDkQMRIWChJVbmRvY3VtZW50ZWRfQml0",
- "NTAQMhIWChJVbmRvY3VtZW50ZWRfQml0NTEQMxIWChJVbmRvY3VtZW50ZWRf",
- "Qml0NTIQNBIWChJVbmRvY3VtZW50ZWRfQml0NTMQNRIWChJVbmRvY3VtZW50",
- "ZWRfQml0NTQQNhIWChJVbmRvY3VtZW50ZWRfQml0NTUQNxIWChJVbmRvY3Vt",
- "ZW50ZWRfQml0NTYQOBIWChJVbmRvY3VtZW50ZWRfQml0NTcQORIWChJVbmRv",
- "Y3VtZW50ZWRfQml0NTgQOhIWChJVbmRvY3VtZW50ZWRfQml0NTkQOxIWChJV",
- "bmRvY3VtZW50ZWRfQml0NjAQPBIWChJVbmRvY3VtZW50ZWRfQml0NjEQPRIW",
- "ChJVbmRvY3VtZW50ZWRfQml0NjIQPhIWChJVbmRvY3VtZW50ZWRfQml0NjMQ",
- "PyqvAQoISW9TdGF0dXMSDAoITm9TdGF0dXMQABIWChJEaXNjb25uZWN0ZWRG",
- "cm9tRGMQARIPCgtBbGFybUFjdGl2ZRACEhoKFlZvbHRNZWFzdXJlbWVudEFs",
- "bG93ZWQQBBIMCghBdXhSZWxheRAFEg8KC1JlbW90ZVN0YXRlEAYSEAoMSGVh",
- "dGVyQWN0aXZlEAcSDwoLQmF0dGVyeUNvbGQQCBIOCgpFb2NSZWFjaGVkEAkq",
- "OgoDTGVkEgcKA09mZhAAEgYKAk9uEAESEAoMQmxpbmtpbmdTbG93EAISEAoM",
- "QmxpbmtpbmdGYXNoEANCI6oCIElubm92RW5lcmd5LldpcmVGb3JtYXQuVmlj",
- "dHJvblYxYgZwcm90bzM="));
- descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
- new pbr::FileDescriptor[] { },
- new pbr::GeneratedClrTypeInfo(new[] {typeof(global::InnovEnergy.WireFormat.VictronV1.Warnings), typeof(global::InnovEnergy.WireFormat.VictronV1.Alarms), typeof(global::InnovEnergy.WireFormat.VictronV1.IoStatus), typeof(global::InnovEnergy.WireFormat.VictronV1.Led), }, new pbr::GeneratedClrTypeInfo[] {
- new pbr::GeneratedClrTypeInfo(typeof(global::InnovEnergy.WireFormat.VictronV1.Leds), global::InnovEnergy.WireFormat.VictronV1.Leds.Parser, new[]{ "Green", "Amber", "Blue", "Red" }, null, null, null),
- new pbr::GeneratedClrTypeInfo(typeof(global::InnovEnergy.WireFormat.VictronV1.Temperatures), global::InnovEnergy.WireFormat.VictronV1.Temperatures.Parser, new[]{ "Board", "CellsCenter", "CellsLateral1", "CellsLateral2", "HeaterPowerCenterPct", "HeaterPowerLateralPct" }, null, null, null),
- new pbr::GeneratedClrTypeInfo(typeof(global::InnovEnergy.WireFormat.VictronV1.BatteryStatus48TL), global::InnovEnergy.WireFormat.VictronV1.BatteryStatus48TL.Parser, new[]{ "NodeId", "Soc", "CellsVoltage", "CellsCurrent", "BusVoltage", "Temperature", "Leds", "Temperatures", "Warnings", "Alarms", "IoStatus" }, null, null, null)
- }));
- }
- #endregion
-
- }
- #region Enums
- public enum Warnings {
- [pbr::OriginalName("NoWarning")] NoWarning = 0,
- [pbr::OriginalName("TaM1_Bit1")] TaM1Bit1 = 1,
- [pbr::OriginalName("TbM1_Bit4")] TbM1Bit4 = 4,
- [pbr::OriginalName("VBm1_Bit6")] Vbm1Bit6 = 6,
- [pbr::OriginalName("VBM1_Bit8")] Vbm1Bit8 = 8,
- [pbr::OriginalName("IDM1_Bit10")] Idm1Bit10 = 10,
- [pbr::OriginalName("vsM1_Bit24")] VsM1Bit24 = 24,
- [pbr::OriginalName("iCM1_Bit26")] ICm1Bit26 = 26,
- [pbr::OriginalName("iDM1_Bit28")] IDm1Bit28 = 28,
- [pbr::OriginalName("MID1_Bit30")] Mid1Bit30 = 30,
- [pbr::OriginalName("BLPW_Bit32")] BlpwBit32 = 32,
- [pbr::OriginalName("Ah_W_Bit35")] AhWBit35 = 35,
- [pbr::OriginalName("MPMM_Bit38")] MpmmBit38 = 38,
- [pbr::OriginalName("TCMM_Bit39")] TcmmBit39 = 39,
- [pbr::OriginalName("TCdi_Bit40")] TcdiBit40 = 40,
- [pbr::OriginalName("WMTO_Bit41")] WmtoBit41 = 41,
- [pbr::OriginalName("CELL1_Bit46")] Cell1Bit46 = 46,
- }
-
- public enum Alarms {
- [pbr::OriginalName("Tam_Bit0")] TamBit0 = 0,
- [pbr::OriginalName("TaM2_Bit2")] TaM2Bit2 = 2,
- [pbr::OriginalName("Tbm_Bit3")] TbmBit3 = 3,
- [pbr::OriginalName("TbM2_Bit5")] TbM2Bit5 = 5,
- [pbr::OriginalName("VBm2_Bit7")] Vbm2Bit7 = 7,
- [pbr::OriginalName("VBM2_Bit8")] Vbm2Bit8 = 8,
- [pbr::OriginalName("IDM2_Bit11")] Idm2Bit11 = 11,
- [pbr::OriginalName("ISOB_Bit12")] IsobBit12 = 12,
- [pbr::OriginalName("MSWE_Bit13")] MsweBit13 = 13,
- [pbr::OriginalName("FUSE_Bit14")] FuseBit14 = 14,
- [pbr::OriginalName("HTRE_Bit15")] HtreBit15 = 15,
- [pbr::OriginalName("TCPE_Bit16")] TcpeBit16 = 16,
- [pbr::OriginalName("STRE_Bit17")] StreBit17 = 17,
- [pbr::OriginalName("CME_Bit18")] CmeBit18 = 18,
- [pbr::OriginalName("HWFL_Bit19")] HwflBit19 = 19,
- [pbr::OriginalName("HWEM_Bit20")] HwemBit20 = 20,
- [pbr::OriginalName("ThM_Bit21")] ThMBit21 = 21,
- [pbr::OriginalName("vsm1_Bit22")] Vsm1Bit22 = 22,
- [pbr::OriginalName("vsm2_Bit23")] Vsm2Bit23 = 23,
- [pbr::OriginalName("vsM2_Bit25")] VsM2Bit25 = 25,
- [pbr::OriginalName("iCM2_Bit27")] ICm2Bit27 = 27,
- [pbr::OriginalName("iDM2_Bit29")] IDm2Bit29 = 29,
- [pbr::OriginalName("MID2_Bit31")] Mid2Bit31 = 31,
- [pbr::OriginalName("CCBF_Bit33")] CcbfBit33 = 33,
- [pbr::OriginalName("AhFL_Bit34")] AhFlBit34 = 34,
- [pbr::OriginalName("TbCM_Bit36")] TbCmBit36 = 36,
- [pbr::OriginalName("BRNF_Bit37")] BrnfBit37 = 37,
- [pbr::OriginalName("HTFS_Bit42")] HtfsBit42 = 42,
- [pbr::OriginalName("DATA_Bit43")] DataBit43 = 43,
- [pbr::OriginalName("CELL2_Bit45")] Cell2Bit45 = 45,
- [pbr::OriginalName("Undocumented_Bit44")] UndocumentedBit44 = 44,
- [pbr::OriginalName("Undocumented_Bit47")] UndocumentedBit47 = 47,
- [pbr::OriginalName("Undocumented_Bit48")] UndocumentedBit48 = 48,
- [pbr::OriginalName("Undocumented_Bit49")] UndocumentedBit49 = 49,
- [pbr::OriginalName("Undocumented_Bit50")] UndocumentedBit50 = 50,
- [pbr::OriginalName("Undocumented_Bit51")] UndocumentedBit51 = 51,
- [pbr::OriginalName("Undocumented_Bit52")] UndocumentedBit52 = 52,
- [pbr::OriginalName("Undocumented_Bit53")] UndocumentedBit53 = 53,
- [pbr::OriginalName("Undocumented_Bit54")] UndocumentedBit54 = 54,
- [pbr::OriginalName("Undocumented_Bit55")] UndocumentedBit55 = 55,
- [pbr::OriginalName("Undocumented_Bit56")] UndocumentedBit56 = 56,
- [pbr::OriginalName("Undocumented_Bit57")] UndocumentedBit57 = 57,
- [pbr::OriginalName("Undocumented_Bit58")] UndocumentedBit58 = 58,
- [pbr::OriginalName("Undocumented_Bit59")] UndocumentedBit59 = 59,
- [pbr::OriginalName("Undocumented_Bit60")] UndocumentedBit60 = 60,
- [pbr::OriginalName("Undocumented_Bit61")] UndocumentedBit61 = 61,
- [pbr::OriginalName("Undocumented_Bit62")] UndocumentedBit62 = 62,
- [pbr::OriginalName("Undocumented_Bit63")] UndocumentedBit63 = 63,
- }
-
- public enum IoStatus {
- [pbr::OriginalName("NoStatus")] NoStatus = 0,
- [pbr::OriginalName("DisconnectedFromDc")] DisconnectedFromDc = 1,
- [pbr::OriginalName("AlarmActive")] AlarmActive = 2,
- [pbr::OriginalName("VoltMeasurementAllowed")] VoltMeasurementAllowed = 4,
- [pbr::OriginalName("AuxRelay")] AuxRelay = 5,
- [pbr::OriginalName("RemoteState")] RemoteState = 6,
- [pbr::OriginalName("HeaterActive")] HeaterActive = 7,
- ///
- /// fake
- ///
- [pbr::OriginalName("BatteryCold")] BatteryCold = 8,
- ///
- /// fake
- ///
- [pbr::OriginalName("EocReached")] EocReached = 9,
- }
-
- public enum Led {
- [pbr::OriginalName("Off")] Off = 0,
- [pbr::OriginalName("On")] On = 1,
- [pbr::OriginalName("BlinkingSlow")] BlinkingSlow = 2,
- [pbr::OriginalName("BlinkingFash")] BlinkingFash = 3,
- }
-
- #endregion
-
- #region Messages
- public sealed partial class Leds : pb::IMessage {
- private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Leds());
- private pb::UnknownFieldSet _unknownFields;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pb::MessageParser Parser { get { return _parser; } }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pbr::MessageDescriptor Descriptor {
- get { return global::InnovEnergy.WireFormat.VictronV1.BatteryStatus48TLReflection.Descriptor.MessageTypes[0]; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public Leds() {
- OnConstruction();
- }
-
- partial void OnConstruction();
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public Leds(Leds other) : this() {
- green_ = other.green_;
- amber_ = other.amber_;
- blue_ = other.blue_;
- red_ = other.red_;
- _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public Leds Clone() {
- return new Leds(this);
- }
-
- /// Field number for the "green" field.
- public const int GreenFieldNumber = 1;
- private global::InnovEnergy.WireFormat.VictronV1.Led green_ = 0;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public global::InnovEnergy.WireFormat.VictronV1.Led Green {
- get { return green_; }
- set {
- green_ = value;
- }
- }
-
- /// Field number for the "amber" field.
- public const int AmberFieldNumber = 2;
- private global::InnovEnergy.WireFormat.VictronV1.Led amber_ = 0;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public global::InnovEnergy.WireFormat.VictronV1.Led Amber {
- get { return amber_; }
- set {
- amber_ = value;
- }
- }
-
- /// Field number for the "blue" field.
- public const int BlueFieldNumber = 3;
- private global::InnovEnergy.WireFormat.VictronV1.Led blue_ = 0;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public global::InnovEnergy.WireFormat.VictronV1.Led Blue {
- get { return blue_; }
- set {
- blue_ = value;
- }
- }
-
- /// Field number for the "red" field.
- public const int RedFieldNumber = 4;
- private global::InnovEnergy.WireFormat.VictronV1.Led red_ = 0;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public global::InnovEnergy.WireFormat.VictronV1.Led Red {
- get { return red_; }
- set {
- red_ = value;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override bool Equals(object other) {
- return Equals(other as Leds);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool Equals(Leds other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (Green != other.Green) return false;
- if (Amber != other.Amber) return false;
- if (Blue != other.Blue) return false;
- if (Red != other.Red) return false;
- return Equals(_unknownFields, other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override int GetHashCode() {
- int hash = 1;
- if (Green != 0) hash ^= Green.GetHashCode();
- if (Amber != 0) hash ^= Amber.GetHashCode();
- if (Blue != 0) hash ^= Blue.GetHashCode();
- if (Red != 0) hash ^= Red.GetHashCode();
- if (_unknownFields != null) {
- hash ^= _unknownFields.GetHashCode();
- }
- return hash;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void WriteTo(pb::CodedOutputStream output) {
- if (Green != 0) {
- output.WriteRawTag(8);
- output.WriteEnum((int) Green);
- }
- if (Amber != 0) {
- output.WriteRawTag(16);
- output.WriteEnum((int) Amber);
- }
- if (Blue != 0) {
- output.WriteRawTag(24);
- output.WriteEnum((int) Blue);
- }
- if (Red != 0) {
- output.WriteRawTag(32);
- output.WriteEnum((int) Red);
- }
- if (_unknownFields != null) {
- _unknownFields.WriteTo(output);
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int CalculateSize() {
- int size = 0;
- if (Green != 0) {
- size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Green);
- }
- if (Amber != 0) {
- size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Amber);
- }
- if (Blue != 0) {
- size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Blue);
- }
- if (Red != 0) {
- size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Red);
- }
- if (_unknownFields != null) {
- size += _unknownFields.CalculateSize();
- }
- return size;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(Leds other) {
- if (other == null) {
- return;
- }
- if (other.Green != 0) {
- Green = other.Green;
- }
- if (other.Amber != 0) {
- Amber = other.Amber;
- }
- if (other.Blue != 0) {
- Blue = other.Blue;
- }
- if (other.Red != 0) {
- Red = other.Red;
- }
- _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
- break;
- case 8: {
- green_ = (global::InnovEnergy.WireFormat.VictronV1.Led) input.ReadEnum();
- break;
- }
- case 16: {
- amber_ = (global::InnovEnergy.WireFormat.VictronV1.Led) input.ReadEnum();
- break;
- }
- case 24: {
- blue_ = (global::InnovEnergy.WireFormat.VictronV1.Led) input.ReadEnum();
- break;
- }
- case 32: {
- red_ = (global::InnovEnergy.WireFormat.VictronV1.Led) input.ReadEnum();
- break;
- }
- }
- }
- }
-
- }
-
- public sealed partial class Temperatures : pb::IMessage {
- private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Temperatures());
- private pb::UnknownFieldSet _unknownFields;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pb::MessageParser Parser { get { return _parser; } }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pbr::MessageDescriptor Descriptor {
- get { return global::InnovEnergy.WireFormat.VictronV1.BatteryStatus48TLReflection.Descriptor.MessageTypes[1]; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public Temperatures() {
- OnConstruction();
- }
-
- partial void OnConstruction();
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public Temperatures(Temperatures other) : this() {
- board_ = other.board_;
- cellsCenter_ = other.cellsCenter_;
- cellsLateral1_ = other.cellsLateral1_;
- cellsLateral2_ = other.cellsLateral2_;
- heaterPowerCenterPct_ = other.heaterPowerCenterPct_;
- heaterPowerLateralPct_ = other.heaterPowerLateralPct_;
- _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public Temperatures Clone() {
- return new Temperatures(this);
- }
-
- /// Field number for the "board" field.
- public const int BoardFieldNumber = 1;
- private float board_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public float Board {
- get { return board_; }
- set {
- board_ = value;
- }
- }
-
- /// Field number for the "cellsCenter" field.
- public const int CellsCenterFieldNumber = 2;
- private float cellsCenter_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public float CellsCenter {
- get { return cellsCenter_; }
- set {
- cellsCenter_ = value;
- }
- }
-
- /// Field number for the "cellsLateral1" field.
- public const int CellsLateral1FieldNumber = 3;
- private float cellsLateral1_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public float CellsLateral1 {
- get { return cellsLateral1_; }
- set {
- cellsLateral1_ = value;
- }
- }
-
- /// Field number for the "cellsLateral2" field.
- public const int CellsLateral2FieldNumber = 4;
- private float cellsLateral2_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public float CellsLateral2 {
- get { return cellsLateral2_; }
- set {
- cellsLateral2_ = value;
- }
- }
-
- /// Field number for the "heaterPowerCenterPct" field.
- public const int HeaterPowerCenterPctFieldNumber = 5;
- private float heaterPowerCenterPct_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public float HeaterPowerCenterPct {
- get { return heaterPowerCenterPct_; }
- set {
- heaterPowerCenterPct_ = value;
- }
- }
-
- /// Field number for the "heaterPowerLateralPct" field.
- public const int HeaterPowerLateralPctFieldNumber = 6;
- private float heaterPowerLateralPct_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public float HeaterPowerLateralPct {
- get { return heaterPowerLateralPct_; }
- set {
- heaterPowerLateralPct_ = value;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override bool Equals(object other) {
- return Equals(other as Temperatures);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool Equals(Temperatures other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Board, other.Board)) return false;
- if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(CellsCenter, other.CellsCenter)) return false;
- if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(CellsLateral1, other.CellsLateral1)) return false;
- if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(CellsLateral2, other.CellsLateral2)) return false;
- if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(HeaterPowerCenterPct, other.HeaterPowerCenterPct)) return false;
- if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(HeaterPowerLateralPct, other.HeaterPowerLateralPct)) return false;
- return Equals(_unknownFields, other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override int GetHashCode() {
- int hash = 1;
- if (Board != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Board);
- if (CellsCenter != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(CellsCenter);
- if (CellsLateral1 != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(CellsLateral1);
- if (CellsLateral2 != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(CellsLateral2);
- if (HeaterPowerCenterPct != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(HeaterPowerCenterPct);
- if (HeaterPowerLateralPct != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(HeaterPowerLateralPct);
- if (_unknownFields != null) {
- hash ^= _unknownFields.GetHashCode();
- }
- return hash;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void WriteTo(pb::CodedOutputStream output) {
- if (Board != 0F) {
- output.WriteRawTag(13);
- output.WriteFloat(Board);
- }
- if (CellsCenter != 0F) {
- output.WriteRawTag(21);
- output.WriteFloat(CellsCenter);
- }
- if (CellsLateral1 != 0F) {
- output.WriteRawTag(29);
- output.WriteFloat(CellsLateral1);
- }
- if (CellsLateral2 != 0F) {
- output.WriteRawTag(37);
- output.WriteFloat(CellsLateral2);
- }
- if (HeaterPowerCenterPct != 0F) {
- output.WriteRawTag(45);
- output.WriteFloat(HeaterPowerCenterPct);
- }
- if (HeaterPowerLateralPct != 0F) {
- output.WriteRawTag(53);
- output.WriteFloat(HeaterPowerLateralPct);
- }
- if (_unknownFields != null) {
- _unknownFields.WriteTo(output);
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int CalculateSize() {
- int size = 0;
- if (Board != 0F) {
- size += 1 + 4;
- }
- if (CellsCenter != 0F) {
- size += 1 + 4;
- }
- if (CellsLateral1 != 0F) {
- size += 1 + 4;
- }
- if (CellsLateral2 != 0F) {
- size += 1 + 4;
- }
- if (HeaterPowerCenterPct != 0F) {
- size += 1 + 4;
- }
- if (HeaterPowerLateralPct != 0F) {
- size += 1 + 4;
- }
- if (_unknownFields != null) {
- size += _unknownFields.CalculateSize();
- }
- return size;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(Temperatures other) {
- if (other == null) {
- return;
- }
- if (other.Board != 0F) {
- Board = other.Board;
- }
- if (other.CellsCenter != 0F) {
- CellsCenter = other.CellsCenter;
- }
- if (other.CellsLateral1 != 0F) {
- CellsLateral1 = other.CellsLateral1;
- }
- if (other.CellsLateral2 != 0F) {
- CellsLateral2 = other.CellsLateral2;
- }
- if (other.HeaterPowerCenterPct != 0F) {
- HeaterPowerCenterPct = other.HeaterPowerCenterPct;
- }
- if (other.HeaterPowerLateralPct != 0F) {
- HeaterPowerLateralPct = other.HeaterPowerLateralPct;
- }
- _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
- break;
- case 13: {
- Board = input.ReadFloat();
- break;
- }
- case 21: {
- CellsCenter = input.ReadFloat();
- break;
- }
- case 29: {
- CellsLateral1 = input.ReadFloat();
- break;
- }
- case 37: {
- CellsLateral2 = input.ReadFloat();
- break;
- }
- case 45: {
- HeaterPowerCenterPct = input.ReadFloat();
- break;
- }
- case 53: {
- HeaterPowerLateralPct = input.ReadFloat();
- break;
- }
- }
- }
- }
-
- }
-
- public sealed partial class BatteryStatus48TL : pb::IMessage {
- private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new BatteryStatus48TL());
- private pb::UnknownFieldSet _unknownFields;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pb::MessageParser Parser { get { return _parser; } }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pbr::MessageDescriptor Descriptor {
- get { return global::InnovEnergy.WireFormat.VictronV1.BatteryStatus48TLReflection.Descriptor.MessageTypes[2]; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public BatteryStatus48TL() {
- OnConstruction();
- }
-
- partial void OnConstruction();
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public BatteryStatus48TL(BatteryStatus48TL other) : this() {
- nodeId_ = other.nodeId_;
- soc_ = other.soc_;
- cellsVoltage_ = other.cellsVoltage_;
- cellsCurrent_ = other.cellsCurrent_;
- busVoltage_ = other.busVoltage_;
- temperature_ = other.temperature_;
- leds_ = other.leds_ != null ? other.leds_.Clone() : null;
- temperatures_ = other.temperatures_ != null ? other.temperatures_.Clone() : null;
- warnings_ = other.warnings_.Clone();
- alarms_ = other.alarms_.Clone();
- ioStatus_ = other.ioStatus_.Clone();
- _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public BatteryStatus48TL Clone() {
- return new BatteryStatus48TL(this);
- }
-
- /// Field number for the "nodeId" field.
- public const int NodeIdFieldNumber = 1;
- private int nodeId_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int NodeId {
- get { return nodeId_; }
- set {
- nodeId_ = value;
- }
- }
-
- /// Field number for the "soc" field.
- public const int SocFieldNumber = 2;
- private float soc_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public float Soc {
- get { return soc_; }
- set {
- soc_ = value;
- }
- }
-
- /// Field number for the "cellsVoltage" field.
- public const int CellsVoltageFieldNumber = 3;
- private float cellsVoltage_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public float CellsVoltage {
- get { return cellsVoltage_; }
- set {
- cellsVoltage_ = value;
- }
- }
-
- /// Field number for the "cellsCurrent" field.
- public const int CellsCurrentFieldNumber = 4;
- private float cellsCurrent_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public float CellsCurrent {
- get { return cellsCurrent_; }
- set {
- cellsCurrent_ = value;
- }
- }
-
- /// Field number for the "busVoltage" field.
- public const int BusVoltageFieldNumber = 5;
- private float busVoltage_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public float BusVoltage {
- get { return busVoltage_; }
- set {
- busVoltage_ = value;
- }
- }
-
- /// Field number for the "temperature" field.
- public const int TemperatureFieldNumber = 6;
- private float temperature_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public float Temperature {
- get { return temperature_; }
- set {
- temperature_ = value;
- }
- }
-
- /// Field number for the "leds" field.
- public const int LedsFieldNumber = 7;
- private global::InnovEnergy.WireFormat.VictronV1.Leds leds_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public global::InnovEnergy.WireFormat.VictronV1.Leds Leds {
- get { return leds_; }
- set {
- leds_ = value;
- }
- }
-
- /// Field number for the "temperatures" field.
- public const int TemperaturesFieldNumber = 8;
- private global::InnovEnergy.WireFormat.VictronV1.Temperatures temperatures_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public global::InnovEnergy.WireFormat.VictronV1.Temperatures Temperatures {
- get { return temperatures_; }
- set {
- temperatures_ = value;
- }
- }
-
- /// Field number for the "warnings" field.
- public const int WarningsFieldNumber = 9;
- private static readonly pb::FieldCodec _repeated_warnings_codec
- = pb::FieldCodec.ForEnum(74, x => (int) x, x => (global::InnovEnergy.WireFormat.VictronV1.Warnings) x);
- private readonly pbc::RepeatedField warnings_ = new pbc::RepeatedField();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public pbc::RepeatedField Warnings {
- get { return warnings_; }
- }
-
- /// Field number for the "alarms" field.
- public const int AlarmsFieldNumber = 10;
- private static readonly pb::FieldCodec _repeated_alarms_codec
- = pb::FieldCodec.ForEnum(82, x => (int) x, x => (global::InnovEnergy.WireFormat.VictronV1.Alarms) x);
- private readonly pbc::RepeatedField alarms_ = new pbc::RepeatedField();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public pbc::RepeatedField Alarms {
- get { return alarms_; }
- }
-
- /// Field number for the "ioStatus" field.
- public const int IoStatusFieldNumber = 11;
- private static readonly pb::FieldCodec _repeated_ioStatus_codec
- = pb::FieldCodec.ForEnum(90, x => (int) x, x => (global::InnovEnergy.WireFormat.VictronV1.IoStatus) x);
- private readonly pbc::RepeatedField ioStatus_ = new pbc::RepeatedField();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public pbc::RepeatedField IoStatus {
- get { return ioStatus_; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override bool Equals(object other) {
- return Equals(other as BatteryStatus48TL);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool Equals(BatteryStatus48TL other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (NodeId != other.NodeId) return false;
- if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Soc, other.Soc)) return false;
- if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(CellsVoltage, other.CellsVoltage)) return false;
- if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(CellsCurrent, other.CellsCurrent)) return false;
- if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(BusVoltage, other.BusVoltage)) return false;
- if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Temperature, other.Temperature)) return false;
- if (!object.Equals(Leds, other.Leds)) return false;
- if (!object.Equals(Temperatures, other.Temperatures)) return false;
- if(!warnings_.Equals(other.warnings_)) return false;
- if(!alarms_.Equals(other.alarms_)) return false;
- if(!ioStatus_.Equals(other.ioStatus_)) return false;
- return Equals(_unknownFields, other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override int GetHashCode() {
- int hash = 1;
- if (NodeId != 0) hash ^= NodeId.GetHashCode();
- if (Soc != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Soc);
- if (CellsVoltage != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(CellsVoltage);
- if (CellsCurrent != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(CellsCurrent);
- if (BusVoltage != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(BusVoltage);
- if (Temperature != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Temperature);
- if (leds_ != null) hash ^= Leds.GetHashCode();
- if (temperatures_ != null) hash ^= Temperatures.GetHashCode();
- hash ^= warnings_.GetHashCode();
- hash ^= alarms_.GetHashCode();
- hash ^= ioStatus_.GetHashCode();
- if (_unknownFields != null) {
- hash ^= _unknownFields.GetHashCode();
- }
- return hash;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void WriteTo(pb::CodedOutputStream output) {
- if (NodeId != 0) {
- output.WriteRawTag(8);
- output.WriteInt32(NodeId);
- }
- if (Soc != 0F) {
- output.WriteRawTag(21);
- output.WriteFloat(Soc);
- }
- if (CellsVoltage != 0F) {
- output.WriteRawTag(29);
- output.WriteFloat(CellsVoltage);
- }
- if (CellsCurrent != 0F) {
- output.WriteRawTag(37);
- output.WriteFloat(CellsCurrent);
- }
- if (BusVoltage != 0F) {
- output.WriteRawTag(45);
- output.WriteFloat(BusVoltage);
- }
- if (Temperature != 0F) {
- output.WriteRawTag(53);
- output.WriteFloat(Temperature);
- }
- if (leds_ != null) {
- output.WriteRawTag(58);
- output.WriteMessage(Leds);
- }
- if (temperatures_ != null) {
- output.WriteRawTag(66);
- output.WriteMessage(Temperatures);
- }
- warnings_.WriteTo(output, _repeated_warnings_codec);
- alarms_.WriteTo(output, _repeated_alarms_codec);
- ioStatus_.WriteTo(output, _repeated_ioStatus_codec);
- if (_unknownFields != null) {
- _unknownFields.WriteTo(output);
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int CalculateSize() {
- int size = 0;
- if (NodeId != 0) {
- size += 1 + pb::CodedOutputStream.ComputeInt32Size(NodeId);
- }
- if (Soc != 0F) {
- size += 1 + 4;
- }
- if (CellsVoltage != 0F) {
- size += 1 + 4;
- }
- if (CellsCurrent != 0F) {
- size += 1 + 4;
- }
- if (BusVoltage != 0F) {
- size += 1 + 4;
- }
- if (Temperature != 0F) {
- size += 1 + 4;
- }
- if (leds_ != null) {
- size += 1 + pb::CodedOutputStream.ComputeMessageSize(Leds);
- }
- if (temperatures_ != null) {
- size += 1 + pb::CodedOutputStream.ComputeMessageSize(Temperatures);
- }
- size += warnings_.CalculateSize(_repeated_warnings_codec);
- size += alarms_.CalculateSize(_repeated_alarms_codec);
- size += ioStatus_.CalculateSize(_repeated_ioStatus_codec);
- if (_unknownFields != null) {
- size += _unknownFields.CalculateSize();
- }
- return size;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(BatteryStatus48TL other) {
- if (other == null) {
- return;
- }
- if (other.NodeId != 0) {
- NodeId = other.NodeId;
- }
- if (other.Soc != 0F) {
- Soc = other.Soc;
- }
- if (other.CellsVoltage != 0F) {
- CellsVoltage = other.CellsVoltage;
- }
- if (other.CellsCurrent != 0F) {
- CellsCurrent = other.CellsCurrent;
- }
- if (other.BusVoltage != 0F) {
- BusVoltage = other.BusVoltage;
- }
- if (other.Temperature != 0F) {
- Temperature = other.Temperature;
- }
- if (other.leds_ != null) {
- if (leds_ == null) {
- leds_ = new global::InnovEnergy.WireFormat.VictronV1.Leds();
- }
- Leds.MergeFrom(other.Leds);
- }
- if (other.temperatures_ != null) {
- if (temperatures_ == null) {
- temperatures_ = new global::InnovEnergy.WireFormat.VictronV1.Temperatures();
- }
- Temperatures.MergeFrom(other.Temperatures);
- }
- warnings_.Add(other.warnings_);
- alarms_.Add(other.alarms_);
- ioStatus_.Add(other.ioStatus_);
- _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
- break;
- case 8: {
- NodeId = input.ReadInt32();
- break;
- }
- case 21: {
- Soc = input.ReadFloat();
- break;
- }
- case 29: {
- CellsVoltage = input.ReadFloat();
- break;
- }
- case 37: {
- CellsCurrent = input.ReadFloat();
- break;
- }
- case 45: {
- BusVoltage = input.ReadFloat();
- break;
- }
- case 53: {
- Temperature = input.ReadFloat();
- break;
- }
- case 58: {
- if (leds_ == null) {
- leds_ = new global::InnovEnergy.WireFormat.VictronV1.Leds();
- }
- input.ReadMessage(leds_);
- break;
- }
- case 66: {
- if (temperatures_ == null) {
- temperatures_ = new global::InnovEnergy.WireFormat.VictronV1.Temperatures();
- }
- input.ReadMessage(temperatures_);
- break;
- }
- case 74:
- case 72: {
- warnings_.AddEntriesFrom(input, _repeated_warnings_codec);
- break;
- }
- case 82:
- case 80: {
- alarms_.AddEntriesFrom(input, _repeated_alarms_codec);
- break;
- }
- case 90:
- case 88: {
- ioStatus_.AddEntriesFrom(input, _repeated_ioStatus_codec);
- break;
- }
- }
- }
- }
-
- }
-
- #endregion
-
-}
-
-#endregion Designer generated code
diff --git a/csharp/lib/Wireformat/cs/Device.cs b/csharp/lib/Wireformat/cs/Device.cs
deleted file mode 100644
index a58a46840..000000000
--- a/csharp/lib/Wireformat/cs/Device.cs
+++ /dev/null
@@ -1,464 +0,0 @@
-//
-// Generated by the protocol buffer compiler. DO NOT EDIT!
-// source: VictronV1/Device.proto
-//
-#pragma warning disable 1591, 0612, 3021
-#region Designer generated code
-
-using pb = global::Google.Protobuf;
-using pbc = global::Google.Protobuf.Collections;
-using pbr = global::Google.Protobuf.Reflection;
-using scg = global::System.Collections.Generic;
-namespace InnovEnergy.WireFormat.VictronV1 {
-
- /// Holder for reflection information generated from VictronV1/Device.proto
- public static partial class DeviceReflection {
-
- #region Descriptor
- /// File descriptor for VictronV1/Device.proto
- public static pbr::FileDescriptor Descriptor {
- get { return descriptor; }
- }
- private static pbr::FileDescriptor descriptor;
-
- static DeviceReflection() {
- byte[] descriptorData = global::System.Convert.FromBase64String(
- string.Concat(
- "ChZWaWN0cm9uVjEvRGV2aWNlLnByb3RvGiFWaWN0cm9uVjEvQmF0dGVyeVN0",
- "YXR1czQ4VEwucHJvdG8iOAoFUGhhc2USDwoHdm9sdGFnZRgBIAEoAhIPCgdj",
- "dXJyZW50GAIgASgCEg0KBXBvd2VyGAMgASgCIn4KBkRldmljZRIZCgR0eXBl",
- "GAEgASgOMgsuRGV2aWNlVHlwZRIWCgZwaGFzZXMYBCADKAsyBi5QaGFzZRIY",
- "CgdkZXZpY2VzGAUgAygLMgcuRGV2aWNlEicKC2JhdHRlcnlEYXRhGAogASgL",
- "MhIuQmF0dGVyeVN0YXR1czQ4VEwq5wEKCkRldmljZVR5cGUSEQoNVW5rbm93",
- "bkRldmljZRAAEggKBEdyaWQQARIJCgVTaG9yZRACEgsKB0FjSW5CdXMQAxIM",
- "CghBY091dEJ1cxAEEgkKBUFjQnVzEAUSCQoFRGNCdXMQBhIMCghJbnZlcnRl",
- "chAHEhIKDkJhdHRlcnk0OFRMMjAwEAgSDgoKUHZJbnZlcnRlchAJEggKBE1w",
- "cHQQChINCglHZW5lcmF0b3IQCxIKCgZBY0xvYWQQDBIKCgZEY0xvYWQQDRIK",
- "CgZMb3NzZXMQDhIRCg1CYXR0ZXJ5SGVhdGVyEA9CI6oCIElubm92RW5lcmd5",
- "LldpcmVGb3JtYXQuVmljdHJvblYxYgZwcm90bzM="));
- descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
- new pbr::FileDescriptor[] { global::InnovEnergy.WireFormat.VictronV1.BatteryStatus48TLReflection.Descriptor, },
- new pbr::GeneratedClrTypeInfo(new[] {typeof(global::InnovEnergy.WireFormat.VictronV1.DeviceType), }, new pbr::GeneratedClrTypeInfo[] {
- new pbr::GeneratedClrTypeInfo(typeof(global::InnovEnergy.WireFormat.VictronV1.Phase), global::InnovEnergy.WireFormat.VictronV1.Phase.Parser, new[]{ "Voltage", "Current", "Power" }, null, null, null),
- new pbr::GeneratedClrTypeInfo(typeof(global::InnovEnergy.WireFormat.VictronV1.Device), global::InnovEnergy.WireFormat.VictronV1.Device.Parser, new[]{ "Type", "Phases", "Devices", "BatteryData" }, null, null, null)
- }));
- }
- #endregion
-
- }
- #region Enums
- public enum DeviceType {
- [pbr::OriginalName("UnknownDevice")] UnknownDevice = 0,
- [pbr::OriginalName("Grid")] Grid = 1,
- [pbr::OriginalName("Shore")] Shore = 2,
- [pbr::OriginalName("AcInBus")] AcInBus = 3,
- [pbr::OriginalName("AcOutBus")] AcOutBus = 4,
- [pbr::OriginalName("AcBus")] AcBus = 5,
- [pbr::OriginalName("DcBus")] DcBus = 6,
- [pbr::OriginalName("Inverter")] Inverter = 7,
- [pbr::OriginalName("Battery48TL200")] Battery48Tl200 = 8,
- [pbr::OriginalName("PvInverter")] PvInverter = 9,
- [pbr::OriginalName("Mppt")] Mppt = 10,
- [pbr::OriginalName("Generator")] Generator = 11,
- [pbr::OriginalName("AcLoad")] AcLoad = 12,
- [pbr::OriginalName("DcLoad")] DcLoad = 13,
- [pbr::OriginalName("Losses")] Losses = 14,
- [pbr::OriginalName("BatteryHeater")] BatteryHeater = 15,
- }
-
- #endregion
-
- #region Messages
- public sealed partial class Phase : pb::IMessage {
- private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Phase());
- private pb::UnknownFieldSet _unknownFields;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pb::MessageParser Parser { get { return _parser; } }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pbr::MessageDescriptor Descriptor {
- get { return global::InnovEnergy.WireFormat.VictronV1.DeviceReflection.Descriptor.MessageTypes[0]; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public Phase() {
- OnConstruction();
- }
-
- partial void OnConstruction();
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public Phase(Phase other) : this() {
- voltage_ = other.voltage_;
- current_ = other.current_;
- power_ = other.power_;
- _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public Phase Clone() {
- return new Phase(this);
- }
-
- /// Field number for the "voltage" field.
- public const int VoltageFieldNumber = 1;
- private float voltage_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public float Voltage {
- get { return voltage_; }
- set {
- voltage_ = value;
- }
- }
-
- /// Field number for the "current" field.
- public const int CurrentFieldNumber = 2;
- private float current_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public float Current {
- get { return current_; }
- set {
- current_ = value;
- }
- }
-
- /// Field number for the "power" field.
- public const int PowerFieldNumber = 3;
- private float power_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public float Power {
- get { return power_; }
- set {
- power_ = value;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override bool Equals(object other) {
- return Equals(other as Phase);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool Equals(Phase other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Voltage, other.Voltage)) return false;
- if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Current, other.Current)) return false;
- if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Power, other.Power)) return false;
- return Equals(_unknownFields, other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override int GetHashCode() {
- int hash = 1;
- if (Voltage != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Voltage);
- if (Current != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Current);
- if (Power != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Power);
- if (_unknownFields != null) {
- hash ^= _unknownFields.GetHashCode();
- }
- return hash;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void WriteTo(pb::CodedOutputStream output) {
- if (Voltage != 0F) {
- output.WriteRawTag(13);
- output.WriteFloat(Voltage);
- }
- if (Current != 0F) {
- output.WriteRawTag(21);
- output.WriteFloat(Current);
- }
- if (Power != 0F) {
- output.WriteRawTag(29);
- output.WriteFloat(Power);
- }
- if (_unknownFields != null) {
- _unknownFields.WriteTo(output);
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int CalculateSize() {
- int size = 0;
- if (Voltage != 0F) {
- size += 1 + 4;
- }
- if (Current != 0F) {
- size += 1 + 4;
- }
- if (Power != 0F) {
- size += 1 + 4;
- }
- if (_unknownFields != null) {
- size += _unknownFields.CalculateSize();
- }
- return size;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(Phase other) {
- if (other == null) {
- return;
- }
- if (other.Voltage != 0F) {
- Voltage = other.Voltage;
- }
- if (other.Current != 0F) {
- Current = other.Current;
- }
- if (other.Power != 0F) {
- Power = other.Power;
- }
- _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
- break;
- case 13: {
- Voltage = input.ReadFloat();
- break;
- }
- case 21: {
- Current = input.ReadFloat();
- break;
- }
- case 29: {
- Power = input.ReadFloat();
- break;
- }
- }
- }
- }
-
- }
-
- public sealed partial class Device : pb::IMessage {
- private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Device());
- private pb::UnknownFieldSet _unknownFields;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pb::MessageParser Parser { get { return _parser; } }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pbr::MessageDescriptor Descriptor {
- get { return global::InnovEnergy.WireFormat.VictronV1.DeviceReflection.Descriptor.MessageTypes[1]; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public Device() {
- OnConstruction();
- }
-
- partial void OnConstruction();
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public Device(Device other) : this() {
- type_ = other.type_;
- phases_ = other.phases_.Clone();
- devices_ = other.devices_.Clone();
- batteryData_ = other.batteryData_ != null ? other.batteryData_.Clone() : null;
- _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public Device Clone() {
- return new Device(this);
- }
-
- /// Field number for the "type" field.
- public const int TypeFieldNumber = 1;
- private global::InnovEnergy.WireFormat.VictronV1.DeviceType type_ = 0;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public global::InnovEnergy.WireFormat.VictronV1.DeviceType Type {
- get { return type_; }
- set {
- type_ = value;
- }
- }
-
- /// Field number for the "phases" field.
- public const int PhasesFieldNumber = 4;
- private static readonly pb::FieldCodec _repeated_phases_codec
- = pb::FieldCodec.ForMessage(34, global::InnovEnergy.WireFormat.VictronV1.Phase.Parser);
- private readonly pbc::RepeatedField phases_ = new pbc::RepeatedField();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public pbc::RepeatedField Phases {
- get { return phases_; }
- }
-
- /// Field number for the "devices" field.
- public const int DevicesFieldNumber = 5;
- private static readonly pb::FieldCodec _repeated_devices_codec
- = pb::FieldCodec.ForMessage(42, global::InnovEnergy.WireFormat.VictronV1.Device.Parser);
- private readonly pbc::RepeatedField devices_ = new pbc::RepeatedField();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public pbc::RepeatedField Devices {
- get { return devices_; }
- }
-
- /// Field number for the "batteryData" field.
- public const int BatteryDataFieldNumber = 10;
- private global::InnovEnergy.WireFormat.VictronV1.BatteryStatus48TL batteryData_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public global::InnovEnergy.WireFormat.VictronV1.BatteryStatus48TL BatteryData {
- get { return batteryData_; }
- set {
- batteryData_ = value;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override bool Equals(object other) {
- return Equals(other as Device);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool Equals(Device other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (Type != other.Type) return false;
- if(!phases_.Equals(other.phases_)) return false;
- if(!devices_.Equals(other.devices_)) return false;
- if (!object.Equals(BatteryData, other.BatteryData)) return false;
- return Equals(_unknownFields, other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override int GetHashCode() {
- int hash = 1;
- if (Type != 0) hash ^= Type.GetHashCode();
- hash ^= phases_.GetHashCode();
- hash ^= devices_.GetHashCode();
- if (batteryData_ != null) hash ^= BatteryData.GetHashCode();
- if (_unknownFields != null) {
- hash ^= _unknownFields.GetHashCode();
- }
- return hash;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void WriteTo(pb::CodedOutputStream output) {
- if (Type != 0) {
- output.WriteRawTag(8);
- output.WriteEnum((int) Type);
- }
- phases_.WriteTo(output, _repeated_phases_codec);
- devices_.WriteTo(output, _repeated_devices_codec);
- if (batteryData_ != null) {
- output.WriteRawTag(82);
- output.WriteMessage(BatteryData);
- }
- if (_unknownFields != null) {
- _unknownFields.WriteTo(output);
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int CalculateSize() {
- int size = 0;
- if (Type != 0) {
- size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Type);
- }
- size += phases_.CalculateSize(_repeated_phases_codec);
- size += devices_.CalculateSize(_repeated_devices_codec);
- if (batteryData_ != null) {
- size += 1 + pb::CodedOutputStream.ComputeMessageSize(BatteryData);
- }
- if (_unknownFields != null) {
- size += _unknownFields.CalculateSize();
- }
- return size;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(Device other) {
- if (other == null) {
- return;
- }
- if (other.Type != 0) {
- Type = other.Type;
- }
- phases_.Add(other.phases_);
- devices_.Add(other.devices_);
- if (other.batteryData_ != null) {
- if (batteryData_ == null) {
- batteryData_ = new global::InnovEnergy.WireFormat.VictronV1.BatteryStatus48TL();
- }
- BatteryData.MergeFrom(other.BatteryData);
- }
- _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
- break;
- case 8: {
- type_ = (global::InnovEnergy.WireFormat.VictronV1.DeviceType) input.ReadEnum();
- break;
- }
- case 34: {
- phases_.AddEntriesFrom(input, _repeated_phases_codec);
- break;
- }
- case 42: {
- devices_.AddEntriesFrom(input, _repeated_devices_codec);
- break;
- }
- case 82: {
- if (batteryData_ == null) {
- batteryData_ = new global::InnovEnergy.WireFormat.VictronV1.BatteryStatus48TL();
- }
- input.ReadMessage(batteryData_);
- break;
- }
- }
- }
- }
-
- }
-
- #endregion
-
-}
-
-#endregion Designer generated code
diff --git a/csharp/lib/Wireformat/cs/Payload.cs b/csharp/lib/Wireformat/cs/Payload.cs
deleted file mode 100644
index 2e2a38842..000000000
--- a/csharp/lib/Wireformat/cs/Payload.cs
+++ /dev/null
@@ -1,210 +0,0 @@
-//
-// Generated by the protocol buffer compiler. DO NOT EDIT!
-// source: Payload.proto
-//
-#pragma warning disable 1591, 0612, 3021
-#region Designer generated code
-
-using pb = global::Google.Protobuf;
-using pbc = global::Google.Protobuf.Collections;
-using pbr = global::Google.Protobuf.Reflection;
-using scg = global::System.Collections.Generic;
-namespace InnovEnergy.WireFormat {
-
- /// Holder for reflection information generated from Payload.proto
- public static partial class PayloadReflection {
-
- #region Descriptor
- /// File descriptor for Payload.proto
- public static pbr::FileDescriptor Descriptor {
- get { return descriptor; }
- }
- private static pbr::FileDescriptor descriptor;
-
- static PayloadReflection() {
- byte[] descriptorData = global::System.Convert.FromBase64String(
- string.Concat(
- "Cg1QYXlsb2FkLnByb3RvGiFWaWN0cm9uVjEvVmljdHJvblRvcG9sb2d5VjEu",
- "cHJvdG8iRQoHUGF5bG9hZBIvChFWaWN0cm9uVG9wb2xvZ3lWMRgBIAEoCzIS",
- "LlZpY3Ryb25Ub3BvbG9neVYxSABCCQoHVmVyc2lvbkIZqgIWSW5ub3ZFbmVy",
- "Z3kuV2lyZUZvcm1hdGIGcHJvdG8z"));
- descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
- new pbr::FileDescriptor[] { global::InnovEnergy.WireFormat.VictronV1.VictronTopologyV1Reflection.Descriptor, },
- new pbr::GeneratedClrTypeInfo(null, new pbr::GeneratedClrTypeInfo[] {
- new pbr::GeneratedClrTypeInfo(typeof(global::InnovEnergy.WireFormat.Payload), global::InnovEnergy.WireFormat.Payload.Parser, new[]{ "VictronTopologyV1" }, new[]{ "Version" }, null, null)
- }));
- }
- #endregion
-
- }
- #region Messages
- public sealed partial class Payload : pb::IMessage {
- private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Payload());
- private pb::UnknownFieldSet _unknownFields;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pb::MessageParser Parser { get { return _parser; } }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pbr::MessageDescriptor Descriptor {
- get { return global::InnovEnergy.WireFormat.PayloadReflection.Descriptor.MessageTypes[0]; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public Payload() {
- OnConstruction();
- }
-
- partial void OnConstruction();
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public Payload(Payload other) : this() {
- switch (other.VersionCase) {
- case VersionOneofCase.VictronTopologyV1:
- VictronTopologyV1 = other.VictronTopologyV1.Clone();
- break;
- }
-
- _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public Payload Clone() {
- return new Payload(this);
- }
-
- /// Field number for the "VictronTopologyV1" field.
- public const int VictronTopologyV1FieldNumber = 1;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public global::InnovEnergy.WireFormat.VictronV1.VictronTopologyV1 VictronTopologyV1 {
- get { return versionCase_ == VersionOneofCase.VictronTopologyV1 ? (global::InnovEnergy.WireFormat.VictronV1.VictronTopologyV1) version_ : null; }
- set {
- version_ = value;
- versionCase_ = value == null ? VersionOneofCase.None : VersionOneofCase.VictronTopologyV1;
- }
- }
-
- private object version_;
- /// Enum of possible cases for the "Version" oneof.
- public enum VersionOneofCase {
- None = 0,
- VictronTopologyV1 = 1,
- }
- private VersionOneofCase versionCase_ = VersionOneofCase.None;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public VersionOneofCase VersionCase {
- get { return versionCase_; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void ClearVersion() {
- versionCase_ = VersionOneofCase.None;
- version_ = null;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override bool Equals(object other) {
- return Equals(other as Payload);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool Equals(Payload other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (!object.Equals(VictronTopologyV1, other.VictronTopologyV1)) return false;
- if (VersionCase != other.VersionCase) return false;
- return Equals(_unknownFields, other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override int GetHashCode() {
- int hash = 1;
- if (versionCase_ == VersionOneofCase.VictronTopologyV1) hash ^= VictronTopologyV1.GetHashCode();
- hash ^= (int) versionCase_;
- if (_unknownFields != null) {
- hash ^= _unknownFields.GetHashCode();
- }
- return hash;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void WriteTo(pb::CodedOutputStream output) {
- if (versionCase_ == VersionOneofCase.VictronTopologyV1) {
- output.WriteRawTag(10);
- output.WriteMessage(VictronTopologyV1);
- }
- if (_unknownFields != null) {
- _unknownFields.WriteTo(output);
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int CalculateSize() {
- int size = 0;
- if (versionCase_ == VersionOneofCase.VictronTopologyV1) {
- size += 1 + pb::CodedOutputStream.ComputeMessageSize(VictronTopologyV1);
- }
- if (_unknownFields != null) {
- size += _unknownFields.CalculateSize();
- }
- return size;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(Payload other) {
- if (other == null) {
- return;
- }
- switch (other.VersionCase) {
- case VersionOneofCase.VictronTopologyV1:
- if (VictronTopologyV1 == null) {
- VictronTopologyV1 = new global::InnovEnergy.WireFormat.VictronV1.VictronTopologyV1();
- }
- VictronTopologyV1.MergeFrom(other.VictronTopologyV1);
- break;
- }
-
- _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
- break;
- case 10: {
- global::InnovEnergy.WireFormat.VictronV1.VictronTopologyV1 subBuilder = new global::InnovEnergy.WireFormat.VictronV1.VictronTopologyV1();
- if (versionCase_ == VersionOneofCase.VictronTopologyV1) {
- subBuilder.MergeFrom(VictronTopologyV1);
- }
- input.ReadMessage(subBuilder);
- VictronTopologyV1 = subBuilder;
- break;
- }
- }
- }
- }
-
- }
-
- #endregion
-
-}
-
-#endregion Designer generated code
diff --git a/csharp/lib/Wireformat/cs/VictronTopologyV1.cs b/csharp/lib/Wireformat/cs/VictronTopologyV1.cs
deleted file mode 100644
index 45011faf7..000000000
--- a/csharp/lib/Wireformat/cs/VictronTopologyV1.cs
+++ /dev/null
@@ -1,180 +0,0 @@
-//
-// Generated by the protocol buffer compiler. DO NOT EDIT!
-// source: VictronV1/VictronTopologyV1.proto
-//
-#pragma warning disable 1591, 0612, 3021
-#region Designer generated code
-
-using pb = global::Google.Protobuf;
-using pbc = global::Google.Protobuf.Collections;
-using pbr = global::Google.Protobuf.Reflection;
-using scg = global::System.Collections.Generic;
-namespace InnovEnergy.WireFormat.VictronV1 {
-
- /// Holder for reflection information generated from VictronV1/VictronTopologyV1.proto
- public static partial class VictronTopologyV1Reflection {
-
- #region Descriptor
- /// File descriptor for VictronV1/VictronTopologyV1.proto
- public static pbr::FileDescriptor Descriptor {
- get { return descriptor; }
- }
- private static pbr::FileDescriptor descriptor;
-
- static VictronTopologyV1Reflection() {
- byte[] descriptorData = global::System.Convert.FromBase64String(
- string.Concat(
- "CiFWaWN0cm9uVjEvVmljdHJvblRvcG9sb2d5VjEucHJvdG8aFlZpY3Ryb25W",
- "MS9EZXZpY2UucHJvdG8iKgoRVmljdHJvblRvcG9sb2d5VjESFQoEcm9vdBgB",
- "IAEoCzIHLkRldmljZUIjqgIgSW5ub3ZFbmVyZ3kuV2lyZUZvcm1hdC5WaWN0",
- "cm9uVjFiBnByb3RvMw=="));
- descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
- new pbr::FileDescriptor[] { global::InnovEnergy.WireFormat.VictronV1.DeviceReflection.Descriptor, },
- new pbr::GeneratedClrTypeInfo(null, new pbr::GeneratedClrTypeInfo[] {
- new pbr::GeneratedClrTypeInfo(typeof(global::InnovEnergy.WireFormat.VictronV1.VictronTopologyV1), global::InnovEnergy.WireFormat.VictronV1.VictronTopologyV1.Parser, new[]{ "Root" }, null, null, null)
- }));
- }
- #endregion
-
- }
- #region Messages
- public sealed partial class VictronTopologyV1 : pb::IMessage {
- private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new VictronTopologyV1());
- private pb::UnknownFieldSet _unknownFields;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pb::MessageParser Parser { get { return _parser; } }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pbr::MessageDescriptor Descriptor {
- get { return global::InnovEnergy.WireFormat.VictronV1.VictronTopologyV1Reflection.Descriptor.MessageTypes[0]; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public VictronTopologyV1() {
- OnConstruction();
- }
-
- partial void OnConstruction();
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public VictronTopologyV1(VictronTopologyV1 other) : this() {
- root_ = other.root_ != null ? other.root_.Clone() : null;
- _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public VictronTopologyV1 Clone() {
- return new VictronTopologyV1(this);
- }
-
- /// Field number for the "root" field.
- public const int RootFieldNumber = 1;
- private global::InnovEnergy.WireFormat.VictronV1.Device root_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public global::InnovEnergy.WireFormat.VictronV1.Device Root {
- get { return root_; }
- set {
- root_ = value;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override bool Equals(object other) {
- return Equals(other as VictronTopologyV1);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool Equals(VictronTopologyV1 other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (!object.Equals(Root, other.Root)) return false;
- return Equals(_unknownFields, other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override int GetHashCode() {
- int hash = 1;
- if (root_ != null) hash ^= Root.GetHashCode();
- if (_unknownFields != null) {
- hash ^= _unknownFields.GetHashCode();
- }
- return hash;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void WriteTo(pb::CodedOutputStream output) {
- if (root_ != null) {
- output.WriteRawTag(10);
- output.WriteMessage(Root);
- }
- if (_unknownFields != null) {
- _unknownFields.WriteTo(output);
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int CalculateSize() {
- int size = 0;
- if (root_ != null) {
- size += 1 + pb::CodedOutputStream.ComputeMessageSize(Root);
- }
- if (_unknownFields != null) {
- size += _unknownFields.CalculateSize();
- }
- return size;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(VictronTopologyV1 other) {
- if (other == null) {
- return;
- }
- if (other.root_ != null) {
- if (root_ == null) {
- root_ = new global::InnovEnergy.WireFormat.VictronV1.Device();
- }
- Root.MergeFrom(other.Root);
- }
- _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
- break;
- case 10: {
- if (root_ == null) {
- root_ = new global::InnovEnergy.WireFormat.VictronV1.Device();
- }
- input.ReadMessage(root_);
- break;
- }
- }
- }
- }
-
- }
-
- #endregion
-
-}
-
-#endregion Designer generated code