470 lines
16 KiB
C#
470 lines
16 KiB
C#
// <auto-generated>
|
|
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
// source: RCUOnOffLine.proto
|
|
// </auto-generated>
|
|
#pragma warning disable 1591, 0612, 3021, 8981
|
|
#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 BLWData.Entity {
|
|
|
|
/// <summary>Holder for reflection information generated from RCUOnOffLine.proto</summary>
|
|
public static partial class RCUOnOffLineReflection {
|
|
|
|
#region Descriptor
|
|
/// <summary>File descriptor for RCUOnOffLine.proto</summary>
|
|
public static pbr::FileDescriptor Descriptor {
|
|
get { return descriptor; }
|
|
}
|
|
private static pbr::FileDescriptor descriptor;
|
|
|
|
static RCUOnOffLineReflection() {
|
|
byte[] descriptorData = global::System.Convert.FromBase64String(
|
|
string.Concat(
|
|
"ChJSQ1VPbk9mZkxpbmUucHJvdG8SDkJMV0RhdGEuRW50aXR5IpUBCg1Pbk9m",
|
|
"ZkxpbmVEYXRhEhEKCUhvdGVsQ29kZRgBIAEoCRISCgpIb3N0TnVtYmVyGAIg",
|
|
"ASgJEgsKA01hYxgDIAEoCRISCgpSb29tTnVtYmVyGAQgASgJEhAKCEVuZFBv",
|
|
"aW50GAUgASgJEhUKDUN1cnJlbnRTdGF0dXMYBiABKAkSEwoLQ3VycmVudFRp",
|
|
"bWUYByABKAliBnByb3RvMw=="));
|
|
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
|
|
new pbr::FileDescriptor[] { },
|
|
new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
|
|
new pbr::GeneratedClrTypeInfo(typeof(global::BLWData.Entity.OnOffLineData), global::BLWData.Entity.OnOffLineData.Parser, new[]{ "HotelCode", "HostNumber", "Mac", "RoomNumber", "EndPoint", "CurrentStatus", "CurrentTime" }, null, null, null, null)
|
|
}));
|
|
}
|
|
#endregion
|
|
|
|
}
|
|
#region Messages
|
|
/// <summary>
|
|
/// 定义一个Person消息类型
|
|
/// </summary>
|
|
[global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
|
|
public sealed partial class OnOffLineData : pb::IMessage<OnOffLineData>
|
|
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
|
, pb::IBufferMessage
|
|
#endif
|
|
{
|
|
private static readonly pb::MessageParser<OnOffLineData> _parser = new pb::MessageParser<OnOffLineData>(() => new OnOffLineData());
|
|
private pb::UnknownFieldSet _unknownFields;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public static pb::MessageParser<OnOffLineData> Parser { get { return _parser; } }
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public static pbr::MessageDescriptor Descriptor {
|
|
get { return global::BLWData.Entity.RCUOnOffLineReflection.Descriptor.MessageTypes[0]; }
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
pbr::MessageDescriptor pb::IMessage.Descriptor {
|
|
get { return Descriptor; }
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public OnOffLineData() {
|
|
OnConstruction();
|
|
}
|
|
|
|
partial void OnConstruction();
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public OnOffLineData(OnOffLineData other) : this() {
|
|
hotelCode_ = other.hotelCode_;
|
|
hostNumber_ = other.hostNumber_;
|
|
mac_ = other.mac_;
|
|
roomNumber_ = other.roomNumber_;
|
|
endPoint_ = other.endPoint_;
|
|
currentStatus_ = other.currentStatus_;
|
|
currentTime_ = other.currentTime_;
|
|
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public OnOffLineData Clone() {
|
|
return new OnOffLineData(this);
|
|
}
|
|
|
|
/// <summary>Field number for the "HotelCode" field.</summary>
|
|
public const int HotelCodeFieldNumber = 1;
|
|
private string hotelCode_ = "";
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public string HotelCode {
|
|
get { return hotelCode_; }
|
|
set {
|
|
hotelCode_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "HostNumber" field.</summary>
|
|
public const int HostNumberFieldNumber = 2;
|
|
private string hostNumber_ = "";
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public string HostNumber {
|
|
get { return hostNumber_; }
|
|
set {
|
|
hostNumber_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "Mac" field.</summary>
|
|
public const int MacFieldNumber = 3;
|
|
private string mac_ = "";
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public string Mac {
|
|
get { return mac_; }
|
|
set {
|
|
mac_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "RoomNumber" field.</summary>
|
|
public const int RoomNumberFieldNumber = 4;
|
|
private string roomNumber_ = "";
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public string RoomNumber {
|
|
get { return roomNumber_; }
|
|
set {
|
|
roomNumber_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "EndPoint" field.</summary>
|
|
public const int EndPointFieldNumber = 5;
|
|
private string endPoint_ = "";
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public string EndPoint {
|
|
get { return endPoint_; }
|
|
set {
|
|
endPoint_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "CurrentStatus" field.</summary>
|
|
public const int CurrentStatusFieldNumber = 6;
|
|
private string currentStatus_ = "";
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public string CurrentStatus {
|
|
get { return currentStatus_; }
|
|
set {
|
|
currentStatus_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "CurrentTime" field.</summary>
|
|
public const int CurrentTimeFieldNumber = 7;
|
|
private string currentTime_ = "";
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public string CurrentTime {
|
|
get { return currentTime_; }
|
|
set {
|
|
currentTime_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public override bool Equals(object other) {
|
|
return Equals(other as OnOffLineData);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public bool Equals(OnOffLineData other) {
|
|
if (ReferenceEquals(other, null)) {
|
|
return false;
|
|
}
|
|
if (ReferenceEquals(other, this)) {
|
|
return true;
|
|
}
|
|
if (HotelCode != other.HotelCode) return false;
|
|
if (HostNumber != other.HostNumber) return false;
|
|
if (Mac != other.Mac) return false;
|
|
if (RoomNumber != other.RoomNumber) return false;
|
|
if (EndPoint != other.EndPoint) return false;
|
|
if (CurrentStatus != other.CurrentStatus) return false;
|
|
if (CurrentTime != other.CurrentTime) return false;
|
|
return Equals(_unknownFields, other._unknownFields);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public override int GetHashCode() {
|
|
int hash = 1;
|
|
if (HotelCode.Length != 0) hash ^= HotelCode.GetHashCode();
|
|
if (HostNumber.Length != 0) hash ^= HostNumber.GetHashCode();
|
|
if (Mac.Length != 0) hash ^= Mac.GetHashCode();
|
|
if (RoomNumber.Length != 0) hash ^= RoomNumber.GetHashCode();
|
|
if (EndPoint.Length != 0) hash ^= EndPoint.GetHashCode();
|
|
if (CurrentStatus.Length != 0) hash ^= CurrentStatus.GetHashCode();
|
|
if (CurrentTime.Length != 0) hash ^= CurrentTime.GetHashCode();
|
|
if (_unknownFields != null) {
|
|
hash ^= _unknownFields.GetHashCode();
|
|
}
|
|
return hash;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public override string ToString() {
|
|
return pb::JsonFormatter.ToDiagnosticString(this);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public void WriteTo(pb::CodedOutputStream output) {
|
|
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
|
output.WriteRawMessage(this);
|
|
#else
|
|
if (HotelCode.Length != 0) {
|
|
output.WriteRawTag(10);
|
|
output.WriteString(HotelCode);
|
|
}
|
|
if (HostNumber.Length != 0) {
|
|
output.WriteRawTag(18);
|
|
output.WriteString(HostNumber);
|
|
}
|
|
if (Mac.Length != 0) {
|
|
output.WriteRawTag(26);
|
|
output.WriteString(Mac);
|
|
}
|
|
if (RoomNumber.Length != 0) {
|
|
output.WriteRawTag(34);
|
|
output.WriteString(RoomNumber);
|
|
}
|
|
if (EndPoint.Length != 0) {
|
|
output.WriteRawTag(42);
|
|
output.WriteString(EndPoint);
|
|
}
|
|
if (CurrentStatus.Length != 0) {
|
|
output.WriteRawTag(50);
|
|
output.WriteString(CurrentStatus);
|
|
}
|
|
if (CurrentTime.Length != 0) {
|
|
output.WriteRawTag(58);
|
|
output.WriteString(CurrentTime);
|
|
}
|
|
if (_unknownFields != null) {
|
|
_unknownFields.WriteTo(output);
|
|
}
|
|
#endif
|
|
}
|
|
|
|
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
|
|
if (HotelCode.Length != 0) {
|
|
output.WriteRawTag(10);
|
|
output.WriteString(HotelCode);
|
|
}
|
|
if (HostNumber.Length != 0) {
|
|
output.WriteRawTag(18);
|
|
output.WriteString(HostNumber);
|
|
}
|
|
if (Mac.Length != 0) {
|
|
output.WriteRawTag(26);
|
|
output.WriteString(Mac);
|
|
}
|
|
if (RoomNumber.Length != 0) {
|
|
output.WriteRawTag(34);
|
|
output.WriteString(RoomNumber);
|
|
}
|
|
if (EndPoint.Length != 0) {
|
|
output.WriteRawTag(42);
|
|
output.WriteString(EndPoint);
|
|
}
|
|
if (CurrentStatus.Length != 0) {
|
|
output.WriteRawTag(50);
|
|
output.WriteString(CurrentStatus);
|
|
}
|
|
if (CurrentTime.Length != 0) {
|
|
output.WriteRawTag(58);
|
|
output.WriteString(CurrentTime);
|
|
}
|
|
if (_unknownFields != null) {
|
|
_unknownFields.WriteTo(ref output);
|
|
}
|
|
}
|
|
#endif
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public int CalculateSize() {
|
|
int size = 0;
|
|
if (HotelCode.Length != 0) {
|
|
size += 1 + pb::CodedOutputStream.ComputeStringSize(HotelCode);
|
|
}
|
|
if (HostNumber.Length != 0) {
|
|
size += 1 + pb::CodedOutputStream.ComputeStringSize(HostNumber);
|
|
}
|
|
if (Mac.Length != 0) {
|
|
size += 1 + pb::CodedOutputStream.ComputeStringSize(Mac);
|
|
}
|
|
if (RoomNumber.Length != 0) {
|
|
size += 1 + pb::CodedOutputStream.ComputeStringSize(RoomNumber);
|
|
}
|
|
if (EndPoint.Length != 0) {
|
|
size += 1 + pb::CodedOutputStream.ComputeStringSize(EndPoint);
|
|
}
|
|
if (CurrentStatus.Length != 0) {
|
|
size += 1 + pb::CodedOutputStream.ComputeStringSize(CurrentStatus);
|
|
}
|
|
if (CurrentTime.Length != 0) {
|
|
size += 1 + pb::CodedOutputStream.ComputeStringSize(CurrentTime);
|
|
}
|
|
if (_unknownFields != null) {
|
|
size += _unknownFields.CalculateSize();
|
|
}
|
|
return size;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public void MergeFrom(OnOffLineData other) {
|
|
if (other == null) {
|
|
return;
|
|
}
|
|
if (other.HotelCode.Length != 0) {
|
|
HotelCode = other.HotelCode;
|
|
}
|
|
if (other.HostNumber.Length != 0) {
|
|
HostNumber = other.HostNumber;
|
|
}
|
|
if (other.Mac.Length != 0) {
|
|
Mac = other.Mac;
|
|
}
|
|
if (other.RoomNumber.Length != 0) {
|
|
RoomNumber = other.RoomNumber;
|
|
}
|
|
if (other.EndPoint.Length != 0) {
|
|
EndPoint = other.EndPoint;
|
|
}
|
|
if (other.CurrentStatus.Length != 0) {
|
|
CurrentStatus = other.CurrentStatus;
|
|
}
|
|
if (other.CurrentTime.Length != 0) {
|
|
CurrentTime = other.CurrentTime;
|
|
}
|
|
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public void MergeFrom(pb::CodedInputStream input) {
|
|
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
|
input.ReadRawMessage(this);
|
|
#else
|
|
uint tag;
|
|
while ((tag = input.ReadTag()) != 0) {
|
|
if ((tag & 7) == 4) {
|
|
// Abort on any end group tag.
|
|
return;
|
|
}
|
|
switch(tag) {
|
|
default:
|
|
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
|
|
break;
|
|
case 10: {
|
|
HotelCode = input.ReadString();
|
|
break;
|
|
}
|
|
case 18: {
|
|
HostNumber = input.ReadString();
|
|
break;
|
|
}
|
|
case 26: {
|
|
Mac = input.ReadString();
|
|
break;
|
|
}
|
|
case 34: {
|
|
RoomNumber = input.ReadString();
|
|
break;
|
|
}
|
|
case 42: {
|
|
EndPoint = input.ReadString();
|
|
break;
|
|
}
|
|
case 50: {
|
|
CurrentStatus = input.ReadString();
|
|
break;
|
|
}
|
|
case 58: {
|
|
CurrentTime = input.ReadString();
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
#endif
|
|
}
|
|
|
|
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
|
|
uint tag;
|
|
while ((tag = input.ReadTag()) != 0) {
|
|
if ((tag & 7) == 4) {
|
|
// Abort on any end group tag.
|
|
return;
|
|
}
|
|
switch(tag) {
|
|
default:
|
|
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
|
|
break;
|
|
case 10: {
|
|
HotelCode = input.ReadString();
|
|
break;
|
|
}
|
|
case 18: {
|
|
HostNumber = input.ReadString();
|
|
break;
|
|
}
|
|
case 26: {
|
|
Mac = input.ReadString();
|
|
break;
|
|
}
|
|
case 34: {
|
|
RoomNumber = input.ReadString();
|
|
break;
|
|
}
|
|
case 42: {
|
|
EndPoint = input.ReadString();
|
|
break;
|
|
}
|
|
case 50: {
|
|
CurrentStatus = input.ReadString();
|
|
break;
|
|
}
|
|
case 58: {
|
|
CurrentTime = input.ReadString();
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
#endif
|
|
|
|
}
|
|
|
|
#endregion
|
|
|
|
}
|
|
|
|
#endregion Designer generated code
|