// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: ValveState.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.Diagnostics {
/// Holder for reflection information generated from ValveState.proto
public static partial class ValveStateReflection {
#region Descriptor
/// File descriptor for ValveState.proto
public static pbr::FileDescriptor Descriptor {
get { return descriptor; }
}
private static pbr::FileDescriptor descriptor;
static ValveStateReflection() {
byte[] descriptorData = global::System.Convert.FromBase64String(
string.Concat(
"ChBWYWx2ZVN0YXRlLnByb3RvEhVUYW5nby5QTVIuRGlhZ25vc3RpY3MaD1Zh",
"bHZlVHlwZS5wcm90bxoUVmFsdmVTdGF0ZUNvZGUucHJvdG8idwoKVmFsdmVT",
"dGF0ZRIzCglWYWx2ZVR5cGUYASABKA4yIC5UYW5nby5QTVIuRGlhZ25vc3Rp",
"Y3MuVmFsdmVUeXBlEjQKBVN0YXRlGAIgASgOMiUuVGFuZ28uUE1SLkRpYWdu",
"b3N0aWNzLlZhbHZlU3RhdGVDb2RlQiEKH2NvbS50d2luZS50YW5nby5wbXIu",
"ZGlhZ25vc3RpY3NiBnByb3RvMw=="));
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
new pbr::FileDescriptor[] { global::Tango.PMR.Diagnostics.ValveTypeReflection.Descriptor, global::Tango.PMR.Diagnostics.ValveStateCodeReflection.Descriptor, },
new pbr::GeneratedClrTypeInfo(null, new pbr::GeneratedClrTypeInfo[] {
new pbr::GeneratedClrTypeInfo(typeof(global::Tango.PMR.Diagnostics.ValveState), global::Tango.PMR.Diagnostics.ValveState.Parser, new[]{ "ValveType", "State" }, null, null, null)
}));
}
#endregion
}
#region Messages
public sealed partial class ValveState : pb::IMessage {
private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ValveState());
[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.Diagnostics.ValveStateReflection.Descriptor.MessageTypes[0]; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
pbr::MessageDescriptor pb::IMessage.Descriptor {
get { return Descriptor; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public ValveState() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public ValveState(ValveState other) : this() {
valveType_ = other.valveType_;
state_ = other.state_;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public ValveState Clone() {
return new ValveState(this);
}
/// Field number for the "ValveType" field.
public const int ValveTypeFieldNumber = 1;
private global::Tango.PMR.Diagnostics.ValveType valveType_ = 0;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public global::Tango.PMR.Diagnostics.ValveType ValveType {
get { return valveType_; }
set {
valveType_ = value;
}
}
/// Field number for the "State" field.
public const int StateFieldNumber = 2;
private global::Tango.PMR.Diagnostics.ValveStateCode state_ = 0;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public global::Tango.PMR.Diagnostics.ValveStateCode State {
get { return state_; }
set {
state_ = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override bool Equals(object other) {
return Equals(other as ValveState);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool Equals(ValveState other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (ValveType != other.ValveType) return false;
if (State != other.State) return false;
return true;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override int GetHashCode() {
int hash = 1;
if (ValveType != 0) hash ^= ValveType.GetHashCode();
if (State != 0) hash ^= State.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 (ValveType != 0) {
output.WriteRawTag(8);
output.WriteEnum((int) ValveType);
}
if (State != 0) {
output.WriteRawTag(16);
output.WriteEnum((int) State);
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public int CalculateSize() {
int size = 0;
if (ValveType != 0) {
size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) ValveType);
}
if (State != 0) {
size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) State);
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void MergeFrom(ValveState other) {
if (other == null) {
return;
}
if (other.ValveType != 0) {
ValveType = other.ValveType;
}
if (other.State != 0) {
State = other.State;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void MergeFrom(pb::CodedInputStream input) {
uint tag;
while ((tag = input.ReadTag()) != 0) {
switch(tag) {
default:
input.SkipLastField();
break;
case 8: {
valveType_ = (global::Tango.PMR.Diagnostics.ValveType) input.ReadEnum();
break;
}
case 16: {
state_ = (global::Tango.PMR.Diagnostics.ValveStateCode) input.ReadEnum();
break;
}
}
}
}
}
#endregion
}
#endregion Designer generated code