//
// 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