Files
DanhengServer-OpenSource/Proto/MaterialSubmitInfo.cs
2024-12-07 14:00:38 +08:00

348 lines
12 KiB
C#

// <auto-generated>
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: MaterialSubmitInfo.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 MaterialSubmitInfo.proto</summary>
public static partial class MaterialSubmitInfoReflection {
#region Descriptor
/// <summary>File descriptor for MaterialSubmitInfo.proto</summary>
public static pbr::FileDescriptor Descriptor {
get { return descriptor; }
}
private static pbr::FileDescriptor descriptor;
static MaterialSubmitInfoReflection() {
byte[] descriptorData = global::System.Convert.FromBase64String(
string.Concat(
"ChhNYXRlcmlhbFN1Ym1pdEluZm8ucHJvdG8icQoSTWF0ZXJpYWxTdWJtaXRJ",
"bmZvEhAKCHBhbmVsX2lkGAYgASgNEh0KFWlzX2ZpcnN0X3Jld2FyZF90YWtl",
"bhgMIAEoCBIRCgljb21wbGV0ZWQYDiABKAgSFwoPYmVsb2JvZ19zaG9wX2lk",
"GAIgASgNQh6qAhtFZ2dMaW5rLkRhbmhlbmdTZXJ2ZXIuUHJvdG9iBnByb3Rv",
"Mw=="));
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
new pbr::FileDescriptor[] { },
new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.MaterialSubmitInfo), global::EggLink.DanhengServer.Proto.MaterialSubmitInfo.Parser, new[]{ "PanelId", "IsFirstRewardTaken", "Completed", "BelobogShopId" }, null, null, null, null)
}));
}
#endregion
}
#region Messages
[global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
public sealed partial class MaterialSubmitInfo : pb::IMessage<MaterialSubmitInfo>
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser<MaterialSubmitInfo> _parser = new pb::MessageParser<MaterialSubmitInfo>(() => new MaterialSubmitInfo());
private pb::UnknownFieldSet _unknownFields;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pb::MessageParser<MaterialSubmitInfo> 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.MaterialSubmitInfoReflection.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 MaterialSubmitInfo() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public MaterialSubmitInfo(MaterialSubmitInfo other) : this() {
panelId_ = other.panelId_;
isFirstRewardTaken_ = other.isFirstRewardTaken_;
completed_ = other.completed_;
belobogShopId_ = other.belobogShopId_;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public MaterialSubmitInfo Clone() {
return new MaterialSubmitInfo(this);
}
/// <summary>Field number for the "panel_id" field.</summary>
public const int PanelIdFieldNumber = 6;
private uint panelId_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public uint PanelId {
get { return panelId_; }
set {
panelId_ = value;
}
}
/// <summary>Field number for the "is_first_reward_taken" field.</summary>
public const int IsFirstRewardTakenFieldNumber = 12;
private bool isFirstRewardTaken_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool IsFirstRewardTaken {
get { return isFirstRewardTaken_; }
set {
isFirstRewardTaken_ = value;
}
}
/// <summary>Field number for the "completed" field.</summary>
public const int CompletedFieldNumber = 14;
private bool completed_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Completed {
get { return completed_; }
set {
completed_ = value;
}
}
/// <summary>Field number for the "belobog_shop_id" field.</summary>
public const int BelobogShopIdFieldNumber = 2;
private uint belobogShopId_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public uint BelobogShopId {
get { return belobogShopId_; }
set {
belobogShopId_ = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
return Equals(other as MaterialSubmitInfo);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(MaterialSubmitInfo other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (PanelId != other.PanelId) return false;
if (IsFirstRewardTaken != other.IsFirstRewardTaken) return false;
if (Completed != other.Completed) return false;
if (BelobogShopId != other.BelobogShopId) 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 (PanelId != 0) hash ^= PanelId.GetHashCode();
if (IsFirstRewardTaken != false) hash ^= IsFirstRewardTaken.GetHashCode();
if (Completed != false) hash ^= Completed.GetHashCode();
if (BelobogShopId != 0) hash ^= BelobogShopId.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 (BelobogShopId != 0) {
output.WriteRawTag(16);
output.WriteUInt32(BelobogShopId);
}
if (PanelId != 0) {
output.WriteRawTag(48);
output.WriteUInt32(PanelId);
}
if (IsFirstRewardTaken != false) {
output.WriteRawTag(96);
output.WriteBool(IsFirstRewardTaken);
}
if (Completed != false) {
output.WriteRawTag(112);
output.WriteBool(Completed);
}
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 (BelobogShopId != 0) {
output.WriteRawTag(16);
output.WriteUInt32(BelobogShopId);
}
if (PanelId != 0) {
output.WriteRawTag(48);
output.WriteUInt32(PanelId);
}
if (IsFirstRewardTaken != false) {
output.WriteRawTag(96);
output.WriteBool(IsFirstRewardTaken);
}
if (Completed != false) {
output.WriteRawTag(112);
output.WriteBool(Completed);
}
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 (PanelId != 0) {
size += 1 + pb::CodedOutputStream.ComputeUInt32Size(PanelId);
}
if (IsFirstRewardTaken != false) {
size += 1 + 1;
}
if (Completed != false) {
size += 1 + 1;
}
if (BelobogShopId != 0) {
size += 1 + pb::CodedOutputStream.ComputeUInt32Size(BelobogShopId);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(MaterialSubmitInfo other) {
if (other == null) {
return;
}
if (other.PanelId != 0) {
PanelId = other.PanelId;
}
if (other.IsFirstRewardTaken != false) {
IsFirstRewardTaken = other.IsFirstRewardTaken;
}
if (other.Completed != false) {
Completed = other.Completed;
}
if (other.BelobogShopId != 0) {
BelobogShopId = other.BelobogShopId;
}
_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: {
BelobogShopId = input.ReadUInt32();
break;
}
case 48: {
PanelId = input.ReadUInt32();
break;
}
case 96: {
IsFirstRewardTaken = input.ReadBool();
break;
}
case 112: {
Completed = input.ReadBool();
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: {
BelobogShopId = input.ReadUInt32();
break;
}
case 48: {
PanelId = input.ReadUInt32();
break;
}
case 96: {
IsFirstRewardTaken = input.ReadBool();
break;
}
case 112: {
Completed = input.ReadBool();
break;
}
}
}
}
#endif
}
#endregion
}
#endregion Designer generated code