1071 lines
41 KiB
C#
1071 lines
41 KiB
C#
// <auto-generated>
|
|
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
// source: VictronV1/BatteryStatus48TL.proto
|
|
// </auto-generated>
|
|
#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 {
|
|
|
|
/// <summary>Holder for reflection information generated from VictronV1/BatteryStatus48TL.proto</summary>
|
|
public static partial class BatteryStatus48TLReflection {
|
|
|
|
#region Descriptor
|
|
/// <summary>File descriptor for VictronV1/BatteryStatus48TL.proto</summary>
|
|
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,
|
|
/// <summary>
|
|
/// fake
|
|
/// </summary>
|
|
[pbr::OriginalName("BatteryCold")] BatteryCold = 8,
|
|
/// <summary>
|
|
/// fake
|
|
/// </summary>
|
|
[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<Leds> {
|
|
private static readonly pb::MessageParser<Leds> _parser = new pb::MessageParser<Leds>(() => new Leds());
|
|
private pb::UnknownFieldSet _unknownFields;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public static pb::MessageParser<Leds> 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);
|
|
}
|
|
|
|
/// <summary>Field number for the "green" field.</summary>
|
|
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;
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "amber" field.</summary>
|
|
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;
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "blue" field.</summary>
|
|
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;
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "red" field.</summary>
|
|
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<Temperatures> {
|
|
private static readonly pb::MessageParser<Temperatures> _parser = new pb::MessageParser<Temperatures>(() => new Temperatures());
|
|
private pb::UnknownFieldSet _unknownFields;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public static pb::MessageParser<Temperatures> 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);
|
|
}
|
|
|
|
/// <summary>Field number for the "board" field.</summary>
|
|
public const int BoardFieldNumber = 1;
|
|
private float board_;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public float Board {
|
|
get { return board_; }
|
|
set {
|
|
board_ = value;
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "cellsCenter" field.</summary>
|
|
public const int CellsCenterFieldNumber = 2;
|
|
private float cellsCenter_;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public float CellsCenter {
|
|
get { return cellsCenter_; }
|
|
set {
|
|
cellsCenter_ = value;
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "cellsLateral1" field.</summary>
|
|
public const int CellsLateral1FieldNumber = 3;
|
|
private float cellsLateral1_;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public float CellsLateral1 {
|
|
get { return cellsLateral1_; }
|
|
set {
|
|
cellsLateral1_ = value;
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "cellsLateral2" field.</summary>
|
|
public const int CellsLateral2FieldNumber = 4;
|
|
private float cellsLateral2_;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public float CellsLateral2 {
|
|
get { return cellsLateral2_; }
|
|
set {
|
|
cellsLateral2_ = value;
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "heaterPowerCenterPct" field.</summary>
|
|
public const int HeaterPowerCenterPctFieldNumber = 5;
|
|
private float heaterPowerCenterPct_;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public float HeaterPowerCenterPct {
|
|
get { return heaterPowerCenterPct_; }
|
|
set {
|
|
heaterPowerCenterPct_ = value;
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "heaterPowerLateralPct" field.</summary>
|
|
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<BatteryStatus48TL> {
|
|
private static readonly pb::MessageParser<BatteryStatus48TL> _parser = new pb::MessageParser<BatteryStatus48TL>(() => new BatteryStatus48TL());
|
|
private pb::UnknownFieldSet _unknownFields;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public static pb::MessageParser<BatteryStatus48TL> 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);
|
|
}
|
|
|
|
/// <summary>Field number for the "nodeId" field.</summary>
|
|
public const int NodeIdFieldNumber = 1;
|
|
private int nodeId_;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public int NodeId {
|
|
get { return nodeId_; }
|
|
set {
|
|
nodeId_ = value;
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "soc" field.</summary>
|
|
public const int SocFieldNumber = 2;
|
|
private float soc_;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public float Soc {
|
|
get { return soc_; }
|
|
set {
|
|
soc_ = value;
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "cellsVoltage" field.</summary>
|
|
public const int CellsVoltageFieldNumber = 3;
|
|
private float cellsVoltage_;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public float CellsVoltage {
|
|
get { return cellsVoltage_; }
|
|
set {
|
|
cellsVoltage_ = value;
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "cellsCurrent" field.</summary>
|
|
public const int CellsCurrentFieldNumber = 4;
|
|
private float cellsCurrent_;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public float CellsCurrent {
|
|
get { return cellsCurrent_; }
|
|
set {
|
|
cellsCurrent_ = value;
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "busVoltage" field.</summary>
|
|
public const int BusVoltageFieldNumber = 5;
|
|
private float busVoltage_;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public float BusVoltage {
|
|
get { return busVoltage_; }
|
|
set {
|
|
busVoltage_ = value;
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "temperature" field.</summary>
|
|
public const int TemperatureFieldNumber = 6;
|
|
private float temperature_;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public float Temperature {
|
|
get { return temperature_; }
|
|
set {
|
|
temperature_ = value;
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "leds" field.</summary>
|
|
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;
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "temperatures" field.</summary>
|
|
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;
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "warnings" field.</summary>
|
|
public const int WarningsFieldNumber = 9;
|
|
private static readonly pb::FieldCodec<global::InnovEnergy.WireFormat.VictronV1.Warnings> _repeated_warnings_codec
|
|
= pb::FieldCodec.ForEnum(74, x => (int) x, x => (global::InnovEnergy.WireFormat.VictronV1.Warnings) x);
|
|
private readonly pbc::RepeatedField<global::InnovEnergy.WireFormat.VictronV1.Warnings> warnings_ = new pbc::RepeatedField<global::InnovEnergy.WireFormat.VictronV1.Warnings>();
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public pbc::RepeatedField<global::InnovEnergy.WireFormat.VictronV1.Warnings> Warnings {
|
|
get { return warnings_; }
|
|
}
|
|
|
|
/// <summary>Field number for the "alarms" field.</summary>
|
|
public const int AlarmsFieldNumber = 10;
|
|
private static readonly pb::FieldCodec<global::InnovEnergy.WireFormat.VictronV1.Alarms> _repeated_alarms_codec
|
|
= pb::FieldCodec.ForEnum(82, x => (int) x, x => (global::InnovEnergy.WireFormat.VictronV1.Alarms) x);
|
|
private readonly pbc::RepeatedField<global::InnovEnergy.WireFormat.VictronV1.Alarms> alarms_ = new pbc::RepeatedField<global::InnovEnergy.WireFormat.VictronV1.Alarms>();
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public pbc::RepeatedField<global::InnovEnergy.WireFormat.VictronV1.Alarms> Alarms {
|
|
get { return alarms_; }
|
|
}
|
|
|
|
/// <summary>Field number for the "ioStatus" field.</summary>
|
|
public const int IoStatusFieldNumber = 11;
|
|
private static readonly pb::FieldCodec<global::InnovEnergy.WireFormat.VictronV1.IoStatus> _repeated_ioStatus_codec
|
|
= pb::FieldCodec.ForEnum(90, x => (int) x, x => (global::InnovEnergy.WireFormat.VictronV1.IoStatus) x);
|
|
private readonly pbc::RepeatedField<global::InnovEnergy.WireFormat.VictronV1.IoStatus> ioStatus_ = new pbc::RepeatedField<global::InnovEnergy.WireFormat.VictronV1.IoStatus>();
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public pbc::RepeatedField<global::InnovEnergy.WireFormat.VictronV1.IoStatus> 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
|