Files
DanhengServer-OpenSource/Proto/AnnounceData.cs
2025-09-27 13:58:04 +08:00

573 lines
20 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(
"ChJBbm5vdW5jZURhdGEucHJvdG8ijgIKDEFubm91bmNlRGF0YRISCgpiZWdp",
"bl90aW1lGAUgASgDEhMKC2Jhbm5lcl90ZXh0GAcgASgJEhcKD2NvdW50X2Rv",
"d25fdGV4dBgEIAEoCRIRCgljb25maWdfaWQYDyABKA0SGAoQYmFubmVyX2Zy",
"ZXF1ZW5jeRgCIAEoDRItCiVpc19jZW50ZXJfc3lzdGVtX2xhc3RfNV9ldmVy",
"eV9taW51dGVzGA0gASgIEhUKDWhhc19yZWNvbW1hbmQYBiABKAgSFgoOZW1l",
"cmdlbmN5X3RleHQYAyABKAkSEAoIZW5kX3RpbWUYCyABKAMSHwoXY2VudGVy",
"X3N5c3RlbV9mcmVxdWVuY3kYCSABKA1CHqoCG0VnZ0xpbmsuRGFuaGVuZ1Nl",
"cnZlci5Qcm90b2IGcHJvdG8z"));
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[]{ "BeginTime", "BannerText", "CountDownText", "ConfigId", "BannerFrequency", "IsCenterSystemLast5EveryMinutes", "HasRecommand", "EmergencyText", "EndTime", "CenterSystemFrequency" }, 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() {
beginTime_ = other.beginTime_;
bannerText_ = other.bannerText_;
countDownText_ = other.countDownText_;
configId_ = other.configId_;
bannerFrequency_ = other.bannerFrequency_;
isCenterSystemLast5EveryMinutes_ = other.isCenterSystemLast5EveryMinutes_;
hasRecommand_ = other.hasRecommand_;
emergencyText_ = other.emergencyText_;
endTime_ = other.endTime_;
centerSystemFrequency_ = other.centerSystemFrequency_;
_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 "begin_time" field.</summary>
public const int BeginTimeFieldNumber = 5;
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 "banner_text" field.</summary>
public const int BannerTextFieldNumber = 7;
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 "count_down_text" field.</summary>
public const int CountDownTextFieldNumber = 4;
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");
}
}
/// <summary>Field number for the "config_id" field.</summary>
public const int ConfigIdFieldNumber = 15;
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 = 2;
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 "is_center_system_last_5_every_minutes" field.</summary>
public const int IsCenterSystemLast5EveryMinutesFieldNumber = 13;
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 "has_recommand" field.</summary>
public const int HasRecommandFieldNumber = 6;
private bool hasRecommand_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool HasRecommand {
get { return hasRecommand_; }
set {
hasRecommand_ = value;
}
}
/// <summary>Field number for the "emergency_text" field.</summary>
public const int EmergencyTextFieldNumber = 3;
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 "end_time" field.</summary>
public const int EndTimeFieldNumber = 11;
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 "center_system_frequency" field.</summary>
public const int CenterSystemFrequencyFieldNumber = 9;
private uint centerSystemFrequency_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public uint CenterSystemFrequency {
get { return centerSystemFrequency_; }
set {
centerSystemFrequency_ = 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 (BeginTime != other.BeginTime) return false;
if (BannerText != other.BannerText) return false;
if (CountDownText != other.CountDownText) return false;
if (ConfigId != other.ConfigId) return false;
if (BannerFrequency != other.BannerFrequency) return false;
if (IsCenterSystemLast5EveryMinutes != other.IsCenterSystemLast5EveryMinutes) return false;
if (HasRecommand != other.HasRecommand) return false;
if (EmergencyText != other.EmergencyText) return false;
if (EndTime != other.EndTime) return false;
if (CenterSystemFrequency != other.CenterSystemFrequency) 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 (BeginTime != 0L) hash ^= BeginTime.GetHashCode();
if (BannerText.Length != 0) hash ^= BannerText.GetHashCode();
if (CountDownText.Length != 0) hash ^= CountDownText.GetHashCode();
if (ConfigId != 0) hash ^= ConfigId.GetHashCode();
if (BannerFrequency != 0) hash ^= BannerFrequency.GetHashCode();
if (IsCenterSystemLast5EveryMinutes != false) hash ^= IsCenterSystemLast5EveryMinutes.GetHashCode();
if (HasRecommand != false) hash ^= HasRecommand.GetHashCode();
if (EmergencyText.Length != 0) hash ^= EmergencyText.GetHashCode();
if (EndTime != 0L) hash ^= EndTime.GetHashCode();
if (CenterSystemFrequency != 0) hash ^= CenterSystemFrequency.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 (BannerFrequency != 0) {
output.WriteRawTag(16);
output.WriteUInt32(BannerFrequency);
}
if (EmergencyText.Length != 0) {
output.WriteRawTag(26);
output.WriteString(EmergencyText);
}
if (CountDownText.Length != 0) {
output.WriteRawTag(34);
output.WriteString(CountDownText);
}
if (BeginTime != 0L) {
output.WriteRawTag(40);
output.WriteInt64(BeginTime);
}
if (HasRecommand != false) {
output.WriteRawTag(48);
output.WriteBool(HasRecommand);
}
if (BannerText.Length != 0) {
output.WriteRawTag(58);
output.WriteString(BannerText);
}
if (CenterSystemFrequency != 0) {
output.WriteRawTag(72);
output.WriteUInt32(CenterSystemFrequency);
}
if (EndTime != 0L) {
output.WriteRawTag(88);
output.WriteInt64(EndTime);
}
if (IsCenterSystemLast5EveryMinutes != false) {
output.WriteRawTag(104);
output.WriteBool(IsCenterSystemLast5EveryMinutes);
}
if (ConfigId != 0) {
output.WriteRawTag(120);
output.WriteUInt32(ConfigId);
}
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 (BannerFrequency != 0) {
output.WriteRawTag(16);
output.WriteUInt32(BannerFrequency);
}
if (EmergencyText.Length != 0) {
output.WriteRawTag(26);
output.WriteString(EmergencyText);
}
if (CountDownText.Length != 0) {
output.WriteRawTag(34);
output.WriteString(CountDownText);
}
if (BeginTime != 0L) {
output.WriteRawTag(40);
output.WriteInt64(BeginTime);
}
if (HasRecommand != false) {
output.WriteRawTag(48);
output.WriteBool(HasRecommand);
}
if (BannerText.Length != 0) {
output.WriteRawTag(58);
output.WriteString(BannerText);
}
if (CenterSystemFrequency != 0) {
output.WriteRawTag(72);
output.WriteUInt32(CenterSystemFrequency);
}
if (EndTime != 0L) {
output.WriteRawTag(88);
output.WriteInt64(EndTime);
}
if (IsCenterSystemLast5EveryMinutes != false) {
output.WriteRawTag(104);
output.WriteBool(IsCenterSystemLast5EveryMinutes);
}
if (ConfigId != 0) {
output.WriteRawTag(120);
output.WriteUInt32(ConfigId);
}
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 (BeginTime != 0L) {
size += 1 + pb::CodedOutputStream.ComputeInt64Size(BeginTime);
}
if (BannerText.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(BannerText);
}
if (CountDownText.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(CountDownText);
}
if (ConfigId != 0) {
size += 1 + pb::CodedOutputStream.ComputeUInt32Size(ConfigId);
}
if (BannerFrequency != 0) {
size += 1 + pb::CodedOutputStream.ComputeUInt32Size(BannerFrequency);
}
if (IsCenterSystemLast5EveryMinutes != false) {
size += 1 + 1;
}
if (HasRecommand != false) {
size += 1 + 1;
}
if (EmergencyText.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(EmergencyText);
}
if (EndTime != 0L) {
size += 1 + pb::CodedOutputStream.ComputeInt64Size(EndTime);
}
if (CenterSystemFrequency != 0) {
size += 1 + pb::CodedOutputStream.ComputeUInt32Size(CenterSystemFrequency);
}
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.BeginTime != 0L) {
BeginTime = other.BeginTime;
}
if (other.BannerText.Length != 0) {
BannerText = other.BannerText;
}
if (other.CountDownText.Length != 0) {
CountDownText = other.CountDownText;
}
if (other.ConfigId != 0) {
ConfigId = other.ConfigId;
}
if (other.BannerFrequency != 0) {
BannerFrequency = other.BannerFrequency;
}
if (other.IsCenterSystemLast5EveryMinutes != false) {
IsCenterSystemLast5EveryMinutes = other.IsCenterSystemLast5EveryMinutes;
}
if (other.HasRecommand != false) {
HasRecommand = other.HasRecommand;
}
if (other.EmergencyText.Length != 0) {
EmergencyText = other.EmergencyText;
}
if (other.EndTime != 0L) {
EndTime = other.EndTime;
}
if (other.CenterSystemFrequency != 0) {
CenterSystemFrequency = other.CenterSystemFrequency;
}
_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 16: {
BannerFrequency = input.ReadUInt32();
break;
}
case 26: {
EmergencyText = input.ReadString();
break;
}
case 34: {
CountDownText = input.ReadString();
break;
}
case 40: {
BeginTime = input.ReadInt64();
break;
}
case 48: {
HasRecommand = input.ReadBool();
break;
}
case 58: {
BannerText = input.ReadString();
break;
}
case 72: {
CenterSystemFrequency = input.ReadUInt32();
break;
}
case 88: {
EndTime = input.ReadInt64();
break;
}
case 104: {
IsCenterSystemLast5EveryMinutes = input.ReadBool();
break;
}
case 120: {
ConfigId = 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 16: {
BannerFrequency = input.ReadUInt32();
break;
}
case 26: {
EmergencyText = input.ReadString();
break;
}
case 34: {
CountDownText = input.ReadString();
break;
}
case 40: {
BeginTime = input.ReadInt64();
break;
}
case 48: {
HasRecommand = input.ReadBool();
break;
}
case 58: {
BannerText = input.ReadString();
break;
}
case 72: {
CenterSystemFrequency = input.ReadUInt32();
break;
}
case 88: {
EndTime = input.ReadInt64();
break;
}
case 104: {
IsCenterSystemLast5EveryMinutes = input.ReadBool();
break;
}
case 120: {
ConfigId = input.ReadUInt32();
break;
}
}
}
}
#endif
}
#endregion
}
#endregion Designer generated code