mirror of
https://github.com/raphaeIl/Novaria.git
synced 2025-12-13 06:54:48 +01:00
392 lines
13 KiB
C#
392 lines
13 KiB
C#
// <auto-generated>
|
|
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
// source: CharGrade.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 Nova.Client {
|
|
|
|
/// <summary>Holder for reflection information generated from CharGrade.proto</summary>
|
|
public static partial class CharGradeReflection {
|
|
|
|
#region Descriptor
|
|
/// <summary>File descriptor for CharGrade.proto</summary>
|
|
public static pbr::FileDescriptor Descriptor {
|
|
get { return descriptor; }
|
|
}
|
|
private static pbr::FileDescriptor descriptor;
|
|
|
|
static CharGradeReflection() {
|
|
byte[] descriptorData = global::System.Convert.FromBase64String(
|
|
string.Concat(
|
|
"Cg9DaGFyR3JhZGUucHJvdG8ihwEKCUNoYXJHcmFkZRINCgVncmFkZRgBIAEo",
|
|
"BRIVCg1mcmFnbWVudHNfcXR5GAIgASgFEhsKE2dlbmVyYWxfZnJhZ21lbnRf",
|
|
"aWQYAyABKAUSGgoSc3Vic3RpdHV0ZV9pdGVtX2lkGAQgASgFEhsKE3N1YnN0",
|
|
"aXR1dGVfaXRlbV9xdHkYBSABKAVCDqoCC05vdmEuQ2xpZW50YgZwcm90bzM="));
|
|
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
|
|
new pbr::FileDescriptor[] { },
|
|
new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
|
|
new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.CharGrade), global::Nova.Client.CharGrade.Parser, new[]{ "Grade", "FragmentsQty", "GeneralFragmentId", "SubstituteItemId", "SubstituteItemQty" }, null, null, null, null)
|
|
}));
|
|
}
|
|
#endregion
|
|
|
|
}
|
|
#region Messages
|
|
[global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
|
|
public sealed partial class CharGrade : pb::IMessage<CharGrade>
|
|
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
|
, pb::IBufferMessage
|
|
#endif
|
|
{
|
|
private static readonly pb::MessageParser<CharGrade> _parser = new pb::MessageParser<CharGrade>(() => new CharGrade());
|
|
private pb::UnknownFieldSet _unknownFields;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public static pb::MessageParser<CharGrade> Parser { get { return _parser; } }
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public static pbr::MessageDescriptor Descriptor {
|
|
get { return global::Nova.Client.CharGradeReflection.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 CharGrade() {
|
|
OnConstruction();
|
|
}
|
|
|
|
partial void OnConstruction();
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public CharGrade(CharGrade other) : this() {
|
|
grade_ = other.grade_;
|
|
fragmentsQty_ = other.fragmentsQty_;
|
|
generalFragmentId_ = other.generalFragmentId_;
|
|
substituteItemId_ = other.substituteItemId_;
|
|
substituteItemQty_ = other.substituteItemQty_;
|
|
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public CharGrade Clone() {
|
|
return new CharGrade(this);
|
|
}
|
|
|
|
/// <summary>Field number for the "grade" field.</summary>
|
|
public const int GradeFieldNumber = 1;
|
|
private int grade_;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public int Grade {
|
|
get { return grade_; }
|
|
set {
|
|
grade_ = value;
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "fragments_qty" field.</summary>
|
|
public const int FragmentsQtyFieldNumber = 2;
|
|
private int fragmentsQty_;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public int FragmentsQty {
|
|
get { return fragmentsQty_; }
|
|
set {
|
|
fragmentsQty_ = value;
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "general_fragment_id" field.</summary>
|
|
public const int GeneralFragmentIdFieldNumber = 3;
|
|
private int generalFragmentId_;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public int GeneralFragmentId {
|
|
get { return generalFragmentId_; }
|
|
set {
|
|
generalFragmentId_ = value;
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "substitute_item_id" field.</summary>
|
|
public const int SubstituteItemIdFieldNumber = 4;
|
|
private int substituteItemId_;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public int SubstituteItemId {
|
|
get { return substituteItemId_; }
|
|
set {
|
|
substituteItemId_ = value;
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "substitute_item_qty" field.</summary>
|
|
public const int SubstituteItemQtyFieldNumber = 5;
|
|
private int substituteItemQty_;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public int SubstituteItemQty {
|
|
get { return substituteItemQty_; }
|
|
set {
|
|
substituteItemQty_ = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public override bool Equals(object other) {
|
|
return Equals(other as CharGrade);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public bool Equals(CharGrade other) {
|
|
if (ReferenceEquals(other, null)) {
|
|
return false;
|
|
}
|
|
if (ReferenceEquals(other, this)) {
|
|
return true;
|
|
}
|
|
if (Grade != other.Grade) return false;
|
|
if (FragmentsQty != other.FragmentsQty) return false;
|
|
if (GeneralFragmentId != other.GeneralFragmentId) return false;
|
|
if (SubstituteItemId != other.SubstituteItemId) return false;
|
|
if (SubstituteItemQty != other.SubstituteItemQty) 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 (Grade != 0) hash ^= Grade.GetHashCode();
|
|
if (FragmentsQty != 0) hash ^= FragmentsQty.GetHashCode();
|
|
if (GeneralFragmentId != 0) hash ^= GeneralFragmentId.GetHashCode();
|
|
if (SubstituteItemId != 0) hash ^= SubstituteItemId.GetHashCode();
|
|
if (SubstituteItemQty != 0) hash ^= SubstituteItemQty.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 (Grade != 0) {
|
|
output.WriteRawTag(8);
|
|
output.WriteInt32(Grade);
|
|
}
|
|
if (FragmentsQty != 0) {
|
|
output.WriteRawTag(16);
|
|
output.WriteInt32(FragmentsQty);
|
|
}
|
|
if (GeneralFragmentId != 0) {
|
|
output.WriteRawTag(24);
|
|
output.WriteInt32(GeneralFragmentId);
|
|
}
|
|
if (SubstituteItemId != 0) {
|
|
output.WriteRawTag(32);
|
|
output.WriteInt32(SubstituteItemId);
|
|
}
|
|
if (SubstituteItemQty != 0) {
|
|
output.WriteRawTag(40);
|
|
output.WriteInt32(SubstituteItemQty);
|
|
}
|
|
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 (Grade != 0) {
|
|
output.WriteRawTag(8);
|
|
output.WriteInt32(Grade);
|
|
}
|
|
if (FragmentsQty != 0) {
|
|
output.WriteRawTag(16);
|
|
output.WriteInt32(FragmentsQty);
|
|
}
|
|
if (GeneralFragmentId != 0) {
|
|
output.WriteRawTag(24);
|
|
output.WriteInt32(GeneralFragmentId);
|
|
}
|
|
if (SubstituteItemId != 0) {
|
|
output.WriteRawTag(32);
|
|
output.WriteInt32(SubstituteItemId);
|
|
}
|
|
if (SubstituteItemQty != 0) {
|
|
output.WriteRawTag(40);
|
|
output.WriteInt32(SubstituteItemQty);
|
|
}
|
|
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 (Grade != 0) {
|
|
size += 1 + pb::CodedOutputStream.ComputeInt32Size(Grade);
|
|
}
|
|
if (FragmentsQty != 0) {
|
|
size += 1 + pb::CodedOutputStream.ComputeInt32Size(FragmentsQty);
|
|
}
|
|
if (GeneralFragmentId != 0) {
|
|
size += 1 + pb::CodedOutputStream.ComputeInt32Size(GeneralFragmentId);
|
|
}
|
|
if (SubstituteItemId != 0) {
|
|
size += 1 + pb::CodedOutputStream.ComputeInt32Size(SubstituteItemId);
|
|
}
|
|
if (SubstituteItemQty != 0) {
|
|
size += 1 + pb::CodedOutputStream.ComputeInt32Size(SubstituteItemQty);
|
|
}
|
|
if (_unknownFields != null) {
|
|
size += _unknownFields.CalculateSize();
|
|
}
|
|
return size;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public void MergeFrom(CharGrade other) {
|
|
if (other == null) {
|
|
return;
|
|
}
|
|
if (other.Grade != 0) {
|
|
Grade = other.Grade;
|
|
}
|
|
if (other.FragmentsQty != 0) {
|
|
FragmentsQty = other.FragmentsQty;
|
|
}
|
|
if (other.GeneralFragmentId != 0) {
|
|
GeneralFragmentId = other.GeneralFragmentId;
|
|
}
|
|
if (other.SubstituteItemId != 0) {
|
|
SubstituteItemId = other.SubstituteItemId;
|
|
}
|
|
if (other.SubstituteItemQty != 0) {
|
|
SubstituteItemQty = other.SubstituteItemQty;
|
|
}
|
|
_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 8: {
|
|
Grade = input.ReadInt32();
|
|
break;
|
|
}
|
|
case 16: {
|
|
FragmentsQty = input.ReadInt32();
|
|
break;
|
|
}
|
|
case 24: {
|
|
GeneralFragmentId = input.ReadInt32();
|
|
break;
|
|
}
|
|
case 32: {
|
|
SubstituteItemId = input.ReadInt32();
|
|
break;
|
|
}
|
|
case 40: {
|
|
SubstituteItemQty = input.ReadInt32();
|
|
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 8: {
|
|
Grade = input.ReadInt32();
|
|
break;
|
|
}
|
|
case 16: {
|
|
FragmentsQty = input.ReadInt32();
|
|
break;
|
|
}
|
|
case 24: {
|
|
GeneralFragmentId = input.ReadInt32();
|
|
break;
|
|
}
|
|
case 32: {
|
|
SubstituteItemId = input.ReadInt32();
|
|
break;
|
|
}
|
|
case 40: {
|
|
SubstituteItemQty = input.ReadInt32();
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
#endif
|
|
|
|
}
|
|
|
|
#endregion
|
|
|
|
}
|
|
|
|
#endregion Designer generated code
|