mirror of
https://github.com/EggLinks/DanhengServer-OpenSource.git
synced 2026-01-03 04:36:03 +08:00
535 lines
19 KiB
C#
535 lines
19 KiB
C#
// <auto-generated>
|
|
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
// source: AnnounceData.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 EggLink.DanhengServer.Proto {
|
|
|
|
/// <summary>Holder for reflection information generated from AnnounceData.proto</summary>
|
|
public static partial class AnnounceDataReflection {
|
|
|
|
#region Descriptor
|
|
/// <summary>File descriptor for AnnounceData.proto</summary>
|
|
public static pbr::FileDescriptor Descriptor {
|
|
get { return descriptor; }
|
|
}
|
|
private static pbr::FileDescriptor descriptor;
|
|
|
|
static AnnounceDataReflection() {
|
|
byte[] descriptorData = global::System.Convert.FromBase64String(
|
|
string.Concat(
|
|
"ChJBbm5vdW5jZURhdGEucHJvdG8i9wEKDEFubm91bmNlRGF0YRIQCghlbmRf",
|
|
"dGltZRgDIAEoAxIWCg5lbWVyZ2VuY3lfdGV4dBgJIAEoCRITCgtiYW5uZXJf",
|
|
"dGV4dBgCIAEoCRIRCgljb25maWdfaWQYDiABKA0SGAoQYmFubmVyX2ZyZXF1",
|
|
"ZW5jeRgPIAEoDRIfChdjZW50ZXJfc3lzdGVtX2ZyZXF1ZW5jeRgNIAEoDRIS",
|
|
"CgpiZWdpbl90aW1lGAYgASgDEi0KJWlzX2NlbnRlcl9zeXN0ZW1fbGFzdF81",
|
|
"X2V2ZXJ5X21pbnV0ZXMYCiABKAgSFwoPY291bnRfZG93bl90ZXh0GAEgASgJ",
|
|
"Qh6qAhtFZ2dMaW5rLkRhbmhlbmdTZXJ2ZXIuUHJvdG9iBnByb3RvMw=="));
|
|
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
|
|
new pbr::FileDescriptor[] { },
|
|
new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
|
|
new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.AnnounceData), global::EggLink.DanhengServer.Proto.AnnounceData.Parser, new[]{ "EndTime", "EmergencyText", "BannerText", "ConfigId", "BannerFrequency", "CenterSystemFrequency", "BeginTime", "IsCenterSystemLast5EveryMinutes", "CountDownText" }, null, null, null, null)
|
|
}));
|
|
}
|
|
#endregion
|
|
|
|
}
|
|
#region Messages
|
|
[global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
|
|
public sealed partial class AnnounceData : pb::IMessage<AnnounceData>
|
|
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
|
, pb::IBufferMessage
|
|
#endif
|
|
{
|
|
private static readonly pb::MessageParser<AnnounceData> _parser = new pb::MessageParser<AnnounceData>(() => new AnnounceData());
|
|
private pb::UnknownFieldSet _unknownFields;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public static pb::MessageParser<AnnounceData> Parser { get { return _parser; } }
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public static pbr::MessageDescriptor Descriptor {
|
|
get { return global::EggLink.DanhengServer.Proto.AnnounceDataReflection.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 AnnounceData() {
|
|
OnConstruction();
|
|
}
|
|
|
|
partial void OnConstruction();
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public AnnounceData(AnnounceData other) : this() {
|
|
endTime_ = other.endTime_;
|
|
emergencyText_ = other.emergencyText_;
|
|
bannerText_ = other.bannerText_;
|
|
configId_ = other.configId_;
|
|
bannerFrequency_ = other.bannerFrequency_;
|
|
centerSystemFrequency_ = other.centerSystemFrequency_;
|
|
beginTime_ = other.beginTime_;
|
|
isCenterSystemLast5EveryMinutes_ = other.isCenterSystemLast5EveryMinutes_;
|
|
countDownText_ = other.countDownText_;
|
|
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public AnnounceData Clone() {
|
|
return new AnnounceData(this);
|
|
}
|
|
|
|
/// <summary>Field number for the "end_time" field.</summary>
|
|
public const int EndTimeFieldNumber = 3;
|
|
private long endTime_;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public long EndTime {
|
|
get { return endTime_; }
|
|
set {
|
|
endTime_ = value;
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "emergency_text" field.</summary>
|
|
public const int EmergencyTextFieldNumber = 9;
|
|
private string emergencyText_ = "";
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public string EmergencyText {
|
|
get { return emergencyText_; }
|
|
set {
|
|
emergencyText_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "banner_text" field.</summary>
|
|
public const int BannerTextFieldNumber = 2;
|
|
private string bannerText_ = "";
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public string BannerText {
|
|
get { return bannerText_; }
|
|
set {
|
|
bannerText_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "config_id" field.</summary>
|
|
public const int ConfigIdFieldNumber = 14;
|
|
private uint configId_;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public uint ConfigId {
|
|
get { return configId_; }
|
|
set {
|
|
configId_ = value;
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "banner_frequency" field.</summary>
|
|
public const int BannerFrequencyFieldNumber = 15;
|
|
private uint bannerFrequency_;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public uint BannerFrequency {
|
|
get { return bannerFrequency_; }
|
|
set {
|
|
bannerFrequency_ = value;
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "center_system_frequency" field.</summary>
|
|
public const int CenterSystemFrequencyFieldNumber = 13;
|
|
private uint centerSystemFrequency_;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public uint CenterSystemFrequency {
|
|
get { return centerSystemFrequency_; }
|
|
set {
|
|
centerSystemFrequency_ = value;
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "begin_time" field.</summary>
|
|
public const int BeginTimeFieldNumber = 6;
|
|
private long beginTime_;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public long BeginTime {
|
|
get { return beginTime_; }
|
|
set {
|
|
beginTime_ = value;
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "is_center_system_last_5_every_minutes" field.</summary>
|
|
public const int IsCenterSystemLast5EveryMinutesFieldNumber = 10;
|
|
private bool isCenterSystemLast5EveryMinutes_;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public bool IsCenterSystemLast5EveryMinutes {
|
|
get { return isCenterSystemLast5EveryMinutes_; }
|
|
set {
|
|
isCenterSystemLast5EveryMinutes_ = value;
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "count_down_text" field.</summary>
|
|
public const int CountDownTextFieldNumber = 1;
|
|
private string countDownText_ = "";
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public string CountDownText {
|
|
get { return countDownText_; }
|
|
set {
|
|
countDownText_ = 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 AnnounceData);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public bool Equals(AnnounceData other) {
|
|
if (ReferenceEquals(other, null)) {
|
|
return false;
|
|
}
|
|
if (ReferenceEquals(other, this)) {
|
|
return true;
|
|
}
|
|
if (EndTime != other.EndTime) return false;
|
|
if (EmergencyText != other.EmergencyText) return false;
|
|
if (BannerText != other.BannerText) return false;
|
|
if (ConfigId != other.ConfigId) return false;
|
|
if (BannerFrequency != other.BannerFrequency) return false;
|
|
if (CenterSystemFrequency != other.CenterSystemFrequency) return false;
|
|
if (BeginTime != other.BeginTime) return false;
|
|
if (IsCenterSystemLast5EveryMinutes != other.IsCenterSystemLast5EveryMinutes) return false;
|
|
if (CountDownText != other.CountDownText) 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 (EndTime != 0L) hash ^= EndTime.GetHashCode();
|
|
if (EmergencyText.Length != 0) hash ^= EmergencyText.GetHashCode();
|
|
if (BannerText.Length != 0) hash ^= BannerText.GetHashCode();
|
|
if (ConfigId != 0) hash ^= ConfigId.GetHashCode();
|
|
if (BannerFrequency != 0) hash ^= BannerFrequency.GetHashCode();
|
|
if (CenterSystemFrequency != 0) hash ^= CenterSystemFrequency.GetHashCode();
|
|
if (BeginTime != 0L) hash ^= BeginTime.GetHashCode();
|
|
if (IsCenterSystemLast5EveryMinutes != false) hash ^= IsCenterSystemLast5EveryMinutes.GetHashCode();
|
|
if (CountDownText.Length != 0) hash ^= CountDownText.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 (CountDownText.Length != 0) {
|
|
output.WriteRawTag(10);
|
|
output.WriteString(CountDownText);
|
|
}
|
|
if (BannerText.Length != 0) {
|
|
output.WriteRawTag(18);
|
|
output.WriteString(BannerText);
|
|
}
|
|
if (EndTime != 0L) {
|
|
output.WriteRawTag(24);
|
|
output.WriteInt64(EndTime);
|
|
}
|
|
if (BeginTime != 0L) {
|
|
output.WriteRawTag(48);
|
|
output.WriteInt64(BeginTime);
|
|
}
|
|
if (EmergencyText.Length != 0) {
|
|
output.WriteRawTag(74);
|
|
output.WriteString(EmergencyText);
|
|
}
|
|
if (IsCenterSystemLast5EveryMinutes != false) {
|
|
output.WriteRawTag(80);
|
|
output.WriteBool(IsCenterSystemLast5EveryMinutes);
|
|
}
|
|
if (CenterSystemFrequency != 0) {
|
|
output.WriteRawTag(104);
|
|
output.WriteUInt32(CenterSystemFrequency);
|
|
}
|
|
if (ConfigId != 0) {
|
|
output.WriteRawTag(112);
|
|
output.WriteUInt32(ConfigId);
|
|
}
|
|
if (BannerFrequency != 0) {
|
|
output.WriteRawTag(120);
|
|
output.WriteUInt32(BannerFrequency);
|
|
}
|
|
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 (CountDownText.Length != 0) {
|
|
output.WriteRawTag(10);
|
|
output.WriteString(CountDownText);
|
|
}
|
|
if (BannerText.Length != 0) {
|
|
output.WriteRawTag(18);
|
|
output.WriteString(BannerText);
|
|
}
|
|
if (EndTime != 0L) {
|
|
output.WriteRawTag(24);
|
|
output.WriteInt64(EndTime);
|
|
}
|
|
if (BeginTime != 0L) {
|
|
output.WriteRawTag(48);
|
|
output.WriteInt64(BeginTime);
|
|
}
|
|
if (EmergencyText.Length != 0) {
|
|
output.WriteRawTag(74);
|
|
output.WriteString(EmergencyText);
|
|
}
|
|
if (IsCenterSystemLast5EveryMinutes != false) {
|
|
output.WriteRawTag(80);
|
|
output.WriteBool(IsCenterSystemLast5EveryMinutes);
|
|
}
|
|
if (CenterSystemFrequency != 0) {
|
|
output.WriteRawTag(104);
|
|
output.WriteUInt32(CenterSystemFrequency);
|
|
}
|
|
if (ConfigId != 0) {
|
|
output.WriteRawTag(112);
|
|
output.WriteUInt32(ConfigId);
|
|
}
|
|
if (BannerFrequency != 0) {
|
|
output.WriteRawTag(120);
|
|
output.WriteUInt32(BannerFrequency);
|
|
}
|
|
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 (EndTime != 0L) {
|
|
size += 1 + pb::CodedOutputStream.ComputeInt64Size(EndTime);
|
|
}
|
|
if (EmergencyText.Length != 0) {
|
|
size += 1 + pb::CodedOutputStream.ComputeStringSize(EmergencyText);
|
|
}
|
|
if (BannerText.Length != 0) {
|
|
size += 1 + pb::CodedOutputStream.ComputeStringSize(BannerText);
|
|
}
|
|
if (ConfigId != 0) {
|
|
size += 1 + pb::CodedOutputStream.ComputeUInt32Size(ConfigId);
|
|
}
|
|
if (BannerFrequency != 0) {
|
|
size += 1 + pb::CodedOutputStream.ComputeUInt32Size(BannerFrequency);
|
|
}
|
|
if (CenterSystemFrequency != 0) {
|
|
size += 1 + pb::CodedOutputStream.ComputeUInt32Size(CenterSystemFrequency);
|
|
}
|
|
if (BeginTime != 0L) {
|
|
size += 1 + pb::CodedOutputStream.ComputeInt64Size(BeginTime);
|
|
}
|
|
if (IsCenterSystemLast5EveryMinutes != false) {
|
|
size += 1 + 1;
|
|
}
|
|
if (CountDownText.Length != 0) {
|
|
size += 1 + pb::CodedOutputStream.ComputeStringSize(CountDownText);
|
|
}
|
|
if (_unknownFields != null) {
|
|
size += _unknownFields.CalculateSize();
|
|
}
|
|
return size;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public void MergeFrom(AnnounceData other) {
|
|
if (other == null) {
|
|
return;
|
|
}
|
|
if (other.EndTime != 0L) {
|
|
EndTime = other.EndTime;
|
|
}
|
|
if (other.EmergencyText.Length != 0) {
|
|
EmergencyText = other.EmergencyText;
|
|
}
|
|
if (other.BannerText.Length != 0) {
|
|
BannerText = other.BannerText;
|
|
}
|
|
if (other.ConfigId != 0) {
|
|
ConfigId = other.ConfigId;
|
|
}
|
|
if (other.BannerFrequency != 0) {
|
|
BannerFrequency = other.BannerFrequency;
|
|
}
|
|
if (other.CenterSystemFrequency != 0) {
|
|
CenterSystemFrequency = other.CenterSystemFrequency;
|
|
}
|
|
if (other.BeginTime != 0L) {
|
|
BeginTime = other.BeginTime;
|
|
}
|
|
if (other.IsCenterSystemLast5EveryMinutes != false) {
|
|
IsCenterSystemLast5EveryMinutes = other.IsCenterSystemLast5EveryMinutes;
|
|
}
|
|
if (other.CountDownText.Length != 0) {
|
|
CountDownText = other.CountDownText;
|
|
}
|
|
_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) {
|
|
switch(tag) {
|
|
default:
|
|
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
|
|
break;
|
|
case 10: {
|
|
CountDownText = input.ReadString();
|
|
break;
|
|
}
|
|
case 18: {
|
|
BannerText = input.ReadString();
|
|
break;
|
|
}
|
|
case 24: {
|
|
EndTime = input.ReadInt64();
|
|
break;
|
|
}
|
|
case 48: {
|
|
BeginTime = input.ReadInt64();
|
|
break;
|
|
}
|
|
case 74: {
|
|
EmergencyText = input.ReadString();
|
|
break;
|
|
}
|
|
case 80: {
|
|
IsCenterSystemLast5EveryMinutes = input.ReadBool();
|
|
break;
|
|
}
|
|
case 104: {
|
|
CenterSystemFrequency = input.ReadUInt32();
|
|
break;
|
|
}
|
|
case 112: {
|
|
ConfigId = input.ReadUInt32();
|
|
break;
|
|
}
|
|
case 120: {
|
|
BannerFrequency = input.ReadUInt32();
|
|
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) {
|
|
switch(tag) {
|
|
default:
|
|
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
|
|
break;
|
|
case 10: {
|
|
CountDownText = input.ReadString();
|
|
break;
|
|
}
|
|
case 18: {
|
|
BannerText = input.ReadString();
|
|
break;
|
|
}
|
|
case 24: {
|
|
EndTime = input.ReadInt64();
|
|
break;
|
|
}
|
|
case 48: {
|
|
BeginTime = input.ReadInt64();
|
|
break;
|
|
}
|
|
case 74: {
|
|
EmergencyText = input.ReadString();
|
|
break;
|
|
}
|
|
case 80: {
|
|
IsCenterSystemLast5EveryMinutes = input.ReadBool();
|
|
break;
|
|
}
|
|
case 104: {
|
|
CenterSystemFrequency = input.ReadUInt32();
|
|
break;
|
|
}
|
|
case 112: {
|
|
ConfigId = input.ReadUInt32();
|
|
break;
|
|
}
|
|
case 120: {
|
|
BannerFrequency = input.ReadUInt32();
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
#endif
|
|
|
|
}
|
|
|
|
#endregion
|
|
|
|
}
|
|
|
|
#endregion Designer generated code
|