// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: DeviceInformation.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 Tango.PMR.Connection {
/// Holder for reflection information generated from DeviceInformation.proto
public static partial class DeviceInformationReflection {
#region Descriptor
/// File descriptor for DeviceInformation.proto
public static pbr::FileDescriptor Descriptor {
get { return descriptor; }
}
private static pbr::FileDescriptor descriptor;
static DeviceInformationReflection() {
byte[] descriptorData = global::System.Convert.FromBase64String(
string.Concat(
"ChdEZXZpY2VJbmZvcm1hdGlvbi5wcm90bxIUVGFuZ28uUE1SLkNvbm5lY3Rp",
"b24aDkhlYWRUeXBlLnByb3RvIocCChFEZXZpY2VJbmZvcm1hdGlvbhIMCgRO",
"YW1lGAEgASgJEg8KB1ZlcnNpb24YAiABKAkSEQoJQnVpbGREYXRlGAMgASgJ",
"EhUKDUJvYXJkUmV2aXNpb24YBCABKAkSFwoPQXNzZW1ibHlWZXJzaW9uGAUg",
"ASgJEhQKDEZQR0ExVmVyc2lvbhgGIAEoCRIUCgxGUEdBMlZlcnNpb24YByAB",
"KAkSFAoMRlBHQTNWZXJzaW9uGAggASgJEhsKE0RpYWdub3N0aWNzSW50ZXJ2",
"YWwYCSABKA0SMQoISGVhZFR5cGUYCiABKA4yHy5UYW5nby5QTVIuRGlhZ25v",
"c3RpY3MuSGVhZFR5cGVCIAoeY29tLnR3aW5lLnRhbmdvLnBtci5jb25uZWN0",
"aW9uYgZwcm90bzM="));
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
new pbr::FileDescriptor[] { global::Tango.PMR.Diagnostics.HeadTypeReflection.Descriptor, },
new pbr::GeneratedClrTypeInfo(null, new pbr::GeneratedClrTypeInfo[] {
new pbr::GeneratedClrTypeInfo(typeof(global::Tango.PMR.Connection.DeviceInformation), global::Tango.PMR.Connection.DeviceInformation.Parser, new[]{ "Name", "Version", "BuildDate", "BoardRevision", "AssemblyVersion", "FPGA1Version", "FPGA2Version", "FPGA3Version", "DiagnosticsInterval", "HeadType" }, null, null, null)
}));
}
#endregion
}
#region Messages
public sealed partial class DeviceInformation : pb::IMessage {
private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DeviceInformation());
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pb::MessageParser Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pbr::MessageDescriptor Descriptor {
get { return global::Tango.PMR.Connection.DeviceInformationReflection.Descriptor.MessageTypes[0]; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
pbr::MessageDescriptor pb::IMessage.Descriptor {
get { return Descriptor; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public DeviceInformation() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public DeviceInformation(DeviceInformation other) : this() {
name_ = other.name_;
version_ = other.version_;
buildDate_ = other.buildDate_;
boardRevision_ = other.boardRevision_;
assemblyVersion_ = other.assemblyVersion_;
fPGA1Version_ = other.fPGA1Version_;
fPGA2Version_ = other.fPGA2Version_;
fPGA3Version_ = other.fPGA3Version_;
diagnosticsInterval_ = other.diagnosticsInterval_;
headType_ = other.headType_;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public DeviceInformation Clone() {
return new DeviceInformation(this);
}
/// Field number for the "Name" field.
public const int NameFieldNumber = 1;
private string name_ = "";
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public string Name {
get { return name_; }
set {
name_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
}
}
/// Field number for the "Version" field.
public const int VersionFieldNumber = 2;
private string version_ = "";
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public string Version {
get { return version_; }
set {
version_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
}
}
/// Field number for the "BuildDate" field.
public const int BuildDateFieldNumber = 3;
private string buildDate_ = "";
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public string BuildDate {
get { return buildDate_; }
set {
buildDate_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
}
}
/// Field number for the "BoardRevision" field.
public const int BoardRevisionFieldNumber = 4;
private string boardRevision_ = "";
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public string BoardRevision {
get { return boardRevision_; }
set {
boardRevision_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
}
}
/// Field number for the "AssemblyVersion" field.
public const int AssemblyVersionFieldNumber = 5;
private string assemblyVersion_ = "";
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public string AssemblyVersion {
get { return assemblyVersion_; }
set {
assemblyVersion_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
}
}
/// Field number for the "FPGA1Version" field.
public const int FPGA1VersionFieldNumber = 6;
private string fPGA1Version_ = "";
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public string FPGA1Version {
get { return fPGA1Version_; }
set {
fPGA1Version_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
}
}
/// Field number for the "FPGA2Version" field.
public const int FPGA2VersionFieldNumber = 7;
private string fPGA2Version_ = "";
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public string FPGA2Version {
get { return fPGA2Version_; }
set {
fPGA2Version_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
}
}
/// Field number for the "FPGA3Version" field.
public const int FPGA3VersionFieldNumber = 8;
private string fPGA3Version_ = "";
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public string FPGA3Version {
get { return fPGA3Version_; }
set {
fPGA3Version_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
}
}
/// Field number for the "DiagnosticsInterval" field.
public const int DiagnosticsIntervalFieldNumber = 9;
private uint diagnosticsInterval_;
///
///Diagnostics interval in milliseconds
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public uint DiagnosticsInterval {
get { return diagnosticsInterval_; }
set {
diagnosticsInterval_ = value;
}
}
/// Field number for the "HeadType" field.
public const int HeadTypeFieldNumber = 10;
private global::Tango.PMR.Diagnostics.HeadType headType_ = 0;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public global::Tango.PMR.Diagnostics.HeadType HeadType {
get { return headType_; }
set {
headType_ = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override bool Equals(object other) {
return Equals(other as DeviceInformation);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool Equals(DeviceInformation other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (Name != other.Name) return false;
if (Version != other.Version) return false;
if (BuildDate != other.BuildDate) return false;
if (BoardRevision != other.BoardRevision) return false;
if (AssemblyVersion != other.AssemblyVersion) return false;
if (FPGA1Version != other.FPGA1Version) return false;
if (FPGA2Version != other.FPGA2Version) return false;
if (FPGA3Version != other.FPGA3Version) return false;
if (DiagnosticsInterval != other.DiagnosticsInterval) return false;
if (HeadType != other.HeadType) return false;
return true;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override int GetHashCode() {
int hash = 1;
if (Name.Length != 0) hash ^= Name.GetHashCode();
if (Version.Length != 0) hash ^= Version.GetHashCode();
if (BuildDate.Length != 0) hash ^= BuildDate.GetHashCode();
if (BoardRevision.Length != 0) hash ^= BoardRevision.GetHashCode();
if (AssemblyVersion.Length != 0) hash ^= AssemblyVersion.GetHashCode();
if (FPGA1Version.Length != 0) hash ^= FPGA1Version.GetHashCode();
if (FPGA2Version.Length != 0) hash ^= FPGA2Version.GetHashCode();
if (FPGA3Version.Length != 0) hash ^= FPGA3Version.GetHashCode();
if (DiagnosticsInterval != 0) hash ^= DiagnosticsInterval.GetHashCode();
if (HeadType != 0) hash ^= HeadType.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 (Name.Length != 0) {
output.WriteRawTag(10);
output.WriteString(Name);
}
if (Version.Length != 0) {
output.WriteRawTag(18);
output.WriteString(Version);
}
if (BuildDate.Length != 0) {
output.WriteRawTag(26);
output.WriteString(BuildDate);
}
if (BoardRevision.Length != 0) {
output.WriteRawTag(34);
output.WriteString(BoardRevision);
}
if (AssemblyVersion.Length != 0) {
output.WriteRawTag(42);
output.WriteString(AssemblyVersion);
}
if (FPGA1Version.Length != 0) {
output.WriteRawTag(50);
output.WriteString(FPGA1Version);
}
if (FPGA2Version.Length != 0) {
output.WriteRawTag(58);
output.WriteString(FPGA2Version);
}
if (FPGA3Version.Length != 0) {
output.WriteRawTag(66);
output.WriteString(FPGA3Version);
}
if (DiagnosticsInterval != 0) {
output.WriteRawTag(72);
output.WriteUInt32(DiagnosticsInterval);
}
if (HeadType != 0) {
output.WriteRawTag(80);
output.WriteEnum((int) HeadType);
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public int CalculateSize() {
int size = 0;
if (Name.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(Name);
}
if (Version.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(Version);
}
if (BuildDate.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(BuildDate);
}
if (BoardRevision.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(BoardRevision);
}
if (AssemblyVersion.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(AssemblyVersion);
}
if (FPGA1Version.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(FPGA1Version);
}
if (FPGA2Version.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(FPGA2Version);
}
if (FPGA3Version.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(FPGA3Version);
}
if (DiagnosticsInterval != 0) {
size += 1 + pb::CodedOutputStream.ComputeUInt32Size(DiagnosticsInterval);
}
if (HeadType != 0) {
size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) HeadType);
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void MergeFrom(DeviceInformation other) {
if (other == null) {
return;
}
if (other.Name.Length != 0) {
Name = other.Name;
}
if (other.Version.Length != 0) {
Version = other.Version;
}
if (other.BuildDate.Length != 0) {
BuildDate = other.BuildDate;
}
if (other.BoardRevision.Length != 0) {
BoardRevision = other.BoardRevision;
}
if (other.AssemblyVersion.Length != 0) {
AssemblyVersion = other.AssemblyVersion;
}
if (other.FPGA1Version.Length != 0) {
FPGA1Version = other.FPGA1Version;
}
if (other.FPGA2Version.Length != 0) {
FPGA2Version = other.FPGA2Version;
}
if (other.FPGA3Version.Length != 0) {
FPGA3Version = other.FPGA3Version;
}
if (other.DiagnosticsInterval != 0) {
DiagnosticsInterval = other.DiagnosticsInterval;
}
if (other.HeadType != 0) {
HeadType = other.HeadType;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void MergeFrom(pb::CodedInputStream input) {
uint tag;
while ((tag = input.ReadTag()) != 0) {
switch(tag) {
default:
input.SkipLastField();
break;
case 10: {
Name = input.ReadString();
break;
}
case 18: {
Version = input.ReadString();
break;
}
case 26: {
BuildDate = input.ReadString();
break;
}
case 34: {
BoardRevision = input.ReadString();
break;
}
case 42: {
AssemblyVersion = input.ReadString();
break;
}
case 50: {
FPGA1Version = input.ReadString();
break;
}
case 58: {
FPGA2Version = input.ReadString();
break;
}
case 66: {
FPGA3Version = input.ReadString();
break;
}
case 72: {
DiagnosticsInterval = input.ReadUInt32();
break;
}
case 80: {
headType_ = (global::Tango.PMR.Diagnostics.HeadType) input.ReadEnum();
break;
}
}
}
}
}
#endregion
}
#endregion Designer generated code