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