Files
DanhengServer-OpenSource/Proto/ScenePropInfo.cs
2025-05-25 09:26:31 +08:00

421 lines
15 KiB
C#

// <auto-generated>
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: ScenePropInfo.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 ScenePropInfo.proto</summary>
public static partial class ScenePropInfoReflection {
#region Descriptor
/// <summary>File descriptor for ScenePropInfo.proto</summary>
public static pbr::FileDescriptor Descriptor {
get { return descriptor; }
}
private static pbr::FileDescriptor descriptor;
static ScenePropInfoReflection() {
byte[] descriptorData = global::System.Convert.FromBase64String(
string.Concat(
"ChNTY2VuZVByb3BJbmZvLnByb3RvGhNQcm9wRXh0cmFJbmZvLnByb3RvIqEB",
"Cg1TY2VuZVByb3BJbmZvEhkKEXRyaWdnZXJfbmFtZV9saXN0GAIgAygJEhYK",
"DmNyZWF0ZV90aW1lX21zGA4gASgEEiIKCmV4dHJhX2luZm8YBCABKAsyDi5Q",
"cm9wRXh0cmFJbmZvEg8KB3Byb3BfaWQYCSABKA0SEgoKcHJvcF9zdGF0ZRgF",
"IAEoDRIUCgxsaWZlX3RpbWVfbXMYAyABKA1CHqoCG0VnZ0xpbmsuRGFuaGVu",
"Z1NlcnZlci5Qcm90b2IGcHJvdG8z"));
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
new pbr::FileDescriptor[] { global::EggLink.DanhengServer.Proto.PropExtraInfoReflection.Descriptor, },
new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.ScenePropInfo), global::EggLink.DanhengServer.Proto.ScenePropInfo.Parser, new[]{ "TriggerNameList", "CreateTimeMs", "ExtraInfo", "PropId", "PropState", "LifeTimeMs" }, null, null, null, null)
}));
}
#endregion
}
#region Messages
[global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
public sealed partial class ScenePropInfo : pb::IMessage<ScenePropInfo>
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser<ScenePropInfo> _parser = new pb::MessageParser<ScenePropInfo>(() => new ScenePropInfo());
private pb::UnknownFieldSet _unknownFields;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pb::MessageParser<ScenePropInfo> 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.ScenePropInfoReflection.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 ScenePropInfo() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public ScenePropInfo(ScenePropInfo other) : this() {
triggerNameList_ = other.triggerNameList_.Clone();
createTimeMs_ = other.createTimeMs_;
extraInfo_ = other.extraInfo_ != null ? other.extraInfo_.Clone() : null;
propId_ = other.propId_;
propState_ = other.propState_;
lifeTimeMs_ = other.lifeTimeMs_;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public ScenePropInfo Clone() {
return new ScenePropInfo(this);
}
/// <summary>Field number for the "trigger_name_list" field.</summary>
public const int TriggerNameListFieldNumber = 2;
private static readonly pb::FieldCodec<string> _repeated_triggerNameList_codec
= pb::FieldCodec.ForString(18);
private readonly pbc::RepeatedField<string> triggerNameList_ = new pbc::RepeatedField<string>();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public pbc::RepeatedField<string> TriggerNameList {
get { return triggerNameList_; }
}
/// <summary>Field number for the "create_time_ms" field.</summary>
public const int CreateTimeMsFieldNumber = 14;
private ulong createTimeMs_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public ulong CreateTimeMs {
get { return createTimeMs_; }
set {
createTimeMs_ = value;
}
}
/// <summary>Field number for the "extra_info" field.</summary>
public const int ExtraInfoFieldNumber = 4;
private global::EggLink.DanhengServer.Proto.PropExtraInfo extraInfo_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public global::EggLink.DanhengServer.Proto.PropExtraInfo ExtraInfo {
get { return extraInfo_; }
set {
extraInfo_ = value;
}
}
/// <summary>Field number for the "prop_id" field.</summary>
public const int PropIdFieldNumber = 9;
private uint propId_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public uint PropId {
get { return propId_; }
set {
propId_ = value;
}
}
/// <summary>Field number for the "prop_state" field.</summary>
public const int PropStateFieldNumber = 5;
private uint propState_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public uint PropState {
get { return propState_; }
set {
propState_ = value;
}
}
/// <summary>Field number for the "life_time_ms" field.</summary>
public const int LifeTimeMsFieldNumber = 3;
private uint lifeTimeMs_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public uint LifeTimeMs {
get { return lifeTimeMs_; }
set {
lifeTimeMs_ = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
return Equals(other as ScenePropInfo);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(ScenePropInfo other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if(!triggerNameList_.Equals(other.triggerNameList_)) return false;
if (CreateTimeMs != other.CreateTimeMs) return false;
if (!object.Equals(ExtraInfo, other.ExtraInfo)) return false;
if (PropId != other.PropId) return false;
if (PropState != other.PropState) return false;
if (LifeTimeMs != other.LifeTimeMs) 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;
hash ^= triggerNameList_.GetHashCode();
if (CreateTimeMs != 0UL) hash ^= CreateTimeMs.GetHashCode();
if (extraInfo_ != null) hash ^= ExtraInfo.GetHashCode();
if (PropId != 0) hash ^= PropId.GetHashCode();
if (PropState != 0) hash ^= PropState.GetHashCode();
if (LifeTimeMs != 0) hash ^= LifeTimeMs.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
triggerNameList_.WriteTo(output, _repeated_triggerNameList_codec);
if (LifeTimeMs != 0) {
output.WriteRawTag(24);
output.WriteUInt32(LifeTimeMs);
}
if (extraInfo_ != null) {
output.WriteRawTag(34);
output.WriteMessage(ExtraInfo);
}
if (PropState != 0) {
output.WriteRawTag(40);
output.WriteUInt32(PropState);
}
if (PropId != 0) {
output.WriteRawTag(72);
output.WriteUInt32(PropId);
}
if (CreateTimeMs != 0UL) {
output.WriteRawTag(112);
output.WriteUInt64(CreateTimeMs);
}
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) {
triggerNameList_.WriteTo(ref output, _repeated_triggerNameList_codec);
if (LifeTimeMs != 0) {
output.WriteRawTag(24);
output.WriteUInt32(LifeTimeMs);
}
if (extraInfo_ != null) {
output.WriteRawTag(34);
output.WriteMessage(ExtraInfo);
}
if (PropState != 0) {
output.WriteRawTag(40);
output.WriteUInt32(PropState);
}
if (PropId != 0) {
output.WriteRawTag(72);
output.WriteUInt32(PropId);
}
if (CreateTimeMs != 0UL) {
output.WriteRawTag(112);
output.WriteUInt64(CreateTimeMs);
}
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;
size += triggerNameList_.CalculateSize(_repeated_triggerNameList_codec);
if (CreateTimeMs != 0UL) {
size += 1 + pb::CodedOutputStream.ComputeUInt64Size(CreateTimeMs);
}
if (extraInfo_ != null) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(ExtraInfo);
}
if (PropId != 0) {
size += 1 + pb::CodedOutputStream.ComputeUInt32Size(PropId);
}
if (PropState != 0) {
size += 1 + pb::CodedOutputStream.ComputeUInt32Size(PropState);
}
if (LifeTimeMs != 0) {
size += 1 + pb::CodedOutputStream.ComputeUInt32Size(LifeTimeMs);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(ScenePropInfo other) {
if (other == null) {
return;
}
triggerNameList_.Add(other.triggerNameList_);
if (other.CreateTimeMs != 0UL) {
CreateTimeMs = other.CreateTimeMs;
}
if (other.extraInfo_ != null) {
if (extraInfo_ == null) {
ExtraInfo = new global::EggLink.DanhengServer.Proto.PropExtraInfo();
}
ExtraInfo.MergeFrom(other.ExtraInfo);
}
if (other.PropId != 0) {
PropId = other.PropId;
}
if (other.PropState != 0) {
PropState = other.PropState;
}
if (other.LifeTimeMs != 0) {
LifeTimeMs = other.LifeTimeMs;
}
_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 18: {
triggerNameList_.AddEntriesFrom(input, _repeated_triggerNameList_codec);
break;
}
case 24: {
LifeTimeMs = input.ReadUInt32();
break;
}
case 34: {
if (extraInfo_ == null) {
ExtraInfo = new global::EggLink.DanhengServer.Proto.PropExtraInfo();
}
input.ReadMessage(ExtraInfo);
break;
}
case 40: {
PropState = input.ReadUInt32();
break;
}
case 72: {
PropId = input.ReadUInt32();
break;
}
case 112: {
CreateTimeMs = input.ReadUInt64();
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 18: {
triggerNameList_.AddEntriesFrom(ref input, _repeated_triggerNameList_codec);
break;
}
case 24: {
LifeTimeMs = input.ReadUInt32();
break;
}
case 34: {
if (extraInfo_ == null) {
ExtraInfo = new global::EggLink.DanhengServer.Proto.PropExtraInfo();
}
input.ReadMessage(ExtraInfo);
break;
}
case 40: {
PropState = input.ReadUInt32();
break;
}
case 72: {
PropId = input.ReadUInt32();
break;
}
case 112: {
CreateTimeMs = input.ReadUInt64();
break;
}
}
}
}
#endif
}
#endregion
}
#endregion Designer generated code