mirror of
https://github.com/raphaeIl/Novaria.git
synced 2025-12-14 15:34:37 +01:00
test ike crypto works, new protos from pb
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
// <auto-generated>
|
||||
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
// source: DiscStrengthen.proto
|
||||
// source: disc_strengthen.proto
|
||||
// </auto-generated>
|
||||
#pragma warning disable 1591, 0612, 3021, 8981
|
||||
#region Designer generated code
|
||||
@@ -9,13 +9,13 @@ 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 {
|
||||
namespace Proto {
|
||||
|
||||
/// <summary>Holder for reflection information generated from DiscStrengthen.proto</summary>
|
||||
/// <summary>Holder for reflection information generated from disc_strengthen.proto</summary>
|
||||
public static partial class DiscStrengthenReflection {
|
||||
|
||||
#region Descriptor
|
||||
/// <summary>File descriptor for DiscStrengthen.proto</summary>
|
||||
/// <summary>File descriptor for disc_strengthen.proto</summary>
|
||||
public static pbr::FileDescriptor Descriptor {
|
||||
get { return descriptor; }
|
||||
}
|
||||
@@ -24,12 +24,17 @@ namespace Nova.Client {
|
||||
static DiscStrengthenReflection() {
|
||||
byte[] descriptorData = global::System.Convert.FromBase64String(
|
||||
string.Concat(
|
||||
"ChREaXNjU3RyZW5ndGhlbi5wcm90byIpCg5EaXNjU3RyZW5ndGhlbhIKCgJp",
|
||||
"ZBgBIAEoBRILCgNleHAYAiABKAVCDqoCC05vdmEuQ2xpZW50YgZwcm90bzM="));
|
||||
"ChVkaXNjX3N0cmVuZ3RoZW4ucHJvdG8SBXByb3RvGgxwdWJsaWMucHJvdG8i",
|
||||
"VQoRRGlzY1N0cmVuZ3RoZW5SZXESCgoCSWQYASABKA0SHgoFSXRlbXMYAiAD",
|
||||
"KAsyDy5wcm90by5JdGVtSW5mbxIUCgtOZXh0UGFja2FnZRj/DyABKAwiaQoS",
|
||||
"RGlzY1N0cmVuZ3RoZW5SZXNwEg0KBUxldmVsGAEgASgNEgsKA0V4cBgCIAEo",
|
||||
"DRIhCgZDaGFuZ2UYAyABKAsyES5wcm90by5DaGFuZ2VJbmZvEhQKC05leHRQ",
|
||||
"YWNrYWdlGP8PIAEoDFAAYgZwcm90bzM="));
|
||||
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
|
||||
new pbr::FileDescriptor[] { },
|
||||
new pbr::FileDescriptor[] { global::Proto.PublicReflection.Descriptor, },
|
||||
new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
|
||||
new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.DiscStrengthen), global::Nova.Client.DiscStrengthen.Parser, new[]{ "Id", "Exp" }, null, null, null, null)
|
||||
new pbr::GeneratedClrTypeInfo(typeof(global::Proto.DiscStrengthenReq), global::Proto.DiscStrengthenReq.Parser, new[]{ "Id", "Items", "NextPackage" }, null, null, null, null),
|
||||
new pbr::GeneratedClrTypeInfo(typeof(global::Proto.DiscStrengthenResp), global::Proto.DiscStrengthenResp.Parser, new[]{ "Level", "Exp", "Change", "NextPackage" }, null, null, null, null)
|
||||
}));
|
||||
}
|
||||
#endregion
|
||||
@@ -37,21 +42,21 @@ namespace Nova.Client {
|
||||
}
|
||||
#region Messages
|
||||
[global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
|
||||
public sealed partial class DiscStrengthen : pb::IMessage<DiscStrengthen>
|
||||
public sealed partial class DiscStrengthenReq : pb::IMessage<DiscStrengthenReq>
|
||||
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
||||
, pb::IBufferMessage
|
||||
#endif
|
||||
{
|
||||
private static readonly pb::MessageParser<DiscStrengthen> _parser = new pb::MessageParser<DiscStrengthen>(() => new DiscStrengthen());
|
||||
private static readonly pb::MessageParser<DiscStrengthenReq> _parser = new pb::MessageParser<DiscStrengthenReq>(() => new DiscStrengthenReq());
|
||||
private pb::UnknownFieldSet _unknownFields;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public static pb::MessageParser<DiscStrengthen> Parser { get { return _parser; } }
|
||||
public static pb::MessageParser<DiscStrengthenReq> 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.DiscStrengthenReflection.Descriptor.MessageTypes[0]; }
|
||||
get { return global::Proto.DiscStrengthenReflection.Descriptor.MessageTypes[0]; }
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
@@ -62,7 +67,7 @@ namespace Nova.Client {
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public DiscStrengthen() {
|
||||
public DiscStrengthenReq() {
|
||||
OnConstruction();
|
||||
}
|
||||
|
||||
@@ -70,51 +75,63 @@ namespace Nova.Client {
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public DiscStrengthen(DiscStrengthen other) : this() {
|
||||
public DiscStrengthenReq(DiscStrengthenReq other) : this() {
|
||||
id_ = other.id_;
|
||||
exp_ = other.exp_;
|
||||
items_ = other.items_.Clone();
|
||||
nextPackage_ = other.nextPackage_;
|
||||
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public DiscStrengthen Clone() {
|
||||
return new DiscStrengthen(this);
|
||||
public DiscStrengthenReq Clone() {
|
||||
return new DiscStrengthenReq(this);
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "id" field.</summary>
|
||||
/// <summary>Field number for the "Id" field.</summary>
|
||||
public const int IdFieldNumber = 1;
|
||||
private int id_;
|
||||
private uint id_;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public int Id {
|
||||
public uint Id {
|
||||
get { return id_; }
|
||||
set {
|
||||
id_ = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "exp" field.</summary>
|
||||
public const int ExpFieldNumber = 2;
|
||||
private int exp_;
|
||||
/// <summary>Field number for the "Items" field.</summary>
|
||||
public const int ItemsFieldNumber = 2;
|
||||
private static readonly pb::FieldCodec<global::Proto.ItemInfo> _repeated_items_codec
|
||||
= pb::FieldCodec.ForMessage(18, global::Proto.ItemInfo.Parser);
|
||||
private readonly pbc::RepeatedField<global::Proto.ItemInfo> items_ = new pbc::RepeatedField<global::Proto.ItemInfo>();
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public int Exp {
|
||||
get { return exp_; }
|
||||
public pbc::RepeatedField<global::Proto.ItemInfo> Items {
|
||||
get { return items_; }
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "NextPackage" field.</summary>
|
||||
public const int NextPackageFieldNumber = 2047;
|
||||
private pb::ByteString nextPackage_ = pb::ByteString.Empty;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public pb::ByteString NextPackage {
|
||||
get { return nextPackage_; }
|
||||
set {
|
||||
exp_ = value;
|
||||
nextPackage_ = 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 DiscStrengthen);
|
||||
return Equals(other as DiscStrengthenReq);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool Equals(DiscStrengthen other) {
|
||||
public bool Equals(DiscStrengthenReq other) {
|
||||
if (ReferenceEquals(other, null)) {
|
||||
return false;
|
||||
}
|
||||
@@ -122,7 +139,8 @@ namespace Nova.Client {
|
||||
return true;
|
||||
}
|
||||
if (Id != other.Id) return false;
|
||||
if (Exp != other.Exp) return false;
|
||||
if(!items_.Equals(other.items_)) return false;
|
||||
if (NextPackage != other.NextPackage) return false;
|
||||
return Equals(_unknownFields, other._unknownFields);
|
||||
}
|
||||
|
||||
@@ -131,7 +149,8 @@ namespace Nova.Client {
|
||||
public override int GetHashCode() {
|
||||
int hash = 1;
|
||||
if (Id != 0) hash ^= Id.GetHashCode();
|
||||
if (Exp != 0) hash ^= Exp.GetHashCode();
|
||||
hash ^= items_.GetHashCode();
|
||||
if (NextPackage.Length != 0) hash ^= NextPackage.GetHashCode();
|
||||
if (_unknownFields != null) {
|
||||
hash ^= _unknownFields.GetHashCode();
|
||||
}
|
||||
@@ -152,11 +171,12 @@ namespace Nova.Client {
|
||||
#else
|
||||
if (Id != 0) {
|
||||
output.WriteRawTag(8);
|
||||
output.WriteInt32(Id);
|
||||
output.WriteUInt32(Id);
|
||||
}
|
||||
if (Exp != 0) {
|
||||
output.WriteRawTag(16);
|
||||
output.WriteInt32(Exp);
|
||||
items_.WriteTo(output, _repeated_items_codec);
|
||||
if (NextPackage.Length != 0) {
|
||||
output.WriteRawTag(250, 127);
|
||||
output.WriteBytes(NextPackage);
|
||||
}
|
||||
if (_unknownFields != null) {
|
||||
_unknownFields.WriteTo(output);
|
||||
@@ -170,11 +190,12 @@ namespace Nova.Client {
|
||||
void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
|
||||
if (Id != 0) {
|
||||
output.WriteRawTag(8);
|
||||
output.WriteInt32(Id);
|
||||
output.WriteUInt32(Id);
|
||||
}
|
||||
if (Exp != 0) {
|
||||
output.WriteRawTag(16);
|
||||
output.WriteInt32(Exp);
|
||||
items_.WriteTo(ref output, _repeated_items_codec);
|
||||
if (NextPackage.Length != 0) {
|
||||
output.WriteRawTag(250, 127);
|
||||
output.WriteBytes(NextPackage);
|
||||
}
|
||||
if (_unknownFields != null) {
|
||||
_unknownFields.WriteTo(ref output);
|
||||
@@ -187,10 +208,11 @@ namespace Nova.Client {
|
||||
public int CalculateSize() {
|
||||
int size = 0;
|
||||
if (Id != 0) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id);
|
||||
size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Id);
|
||||
}
|
||||
if (Exp != 0) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeInt32Size(Exp);
|
||||
size += items_.CalculateSize(_repeated_items_codec);
|
||||
if (NextPackage.Length != 0) {
|
||||
size += 2 + pb::CodedOutputStream.ComputeBytesSize(NextPackage);
|
||||
}
|
||||
if (_unknownFields != null) {
|
||||
size += _unknownFields.CalculateSize();
|
||||
@@ -200,15 +222,16 @@ namespace Nova.Client {
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void MergeFrom(DiscStrengthen other) {
|
||||
public void MergeFrom(DiscStrengthenReq other) {
|
||||
if (other == null) {
|
||||
return;
|
||||
}
|
||||
if (other.Id != 0) {
|
||||
Id = other.Id;
|
||||
}
|
||||
if (other.Exp != 0) {
|
||||
Exp = other.Exp;
|
||||
items_.Add(other.items_);
|
||||
if (other.NextPackage.Length != 0) {
|
||||
NextPackage = other.NextPackage;
|
||||
}
|
||||
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
|
||||
}
|
||||
@@ -230,11 +253,15 @@ namespace Nova.Client {
|
||||
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
|
||||
break;
|
||||
case 8: {
|
||||
Id = input.ReadInt32();
|
||||
Id = input.ReadUInt32();
|
||||
break;
|
||||
}
|
||||
case 16: {
|
||||
Exp = input.ReadInt32();
|
||||
case 18: {
|
||||
items_.AddEntriesFrom(input, _repeated_items_codec);
|
||||
break;
|
||||
}
|
||||
case 16378: {
|
||||
NextPackage = input.ReadBytes();
|
||||
break;
|
||||
}
|
||||
}
|
||||
@@ -257,11 +284,333 @@ namespace Nova.Client {
|
||||
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
|
||||
break;
|
||||
case 8: {
|
||||
Id = input.ReadInt32();
|
||||
Id = input.ReadUInt32();
|
||||
break;
|
||||
}
|
||||
case 18: {
|
||||
items_.AddEntriesFrom(ref input, _repeated_items_codec);
|
||||
break;
|
||||
}
|
||||
case 16378: {
|
||||
NextPackage = input.ReadBytes();
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
|
||||
public sealed partial class DiscStrengthenResp : pb::IMessage<DiscStrengthenResp>
|
||||
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
||||
, pb::IBufferMessage
|
||||
#endif
|
||||
{
|
||||
private static readonly pb::MessageParser<DiscStrengthenResp> _parser = new pb::MessageParser<DiscStrengthenResp>(() => new DiscStrengthenResp());
|
||||
private pb::UnknownFieldSet _unknownFields;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public static pb::MessageParser<DiscStrengthenResp> Parser { get { return _parser; } }
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public static pbr::MessageDescriptor Descriptor {
|
||||
get { return global::Proto.DiscStrengthenReflection.Descriptor.MessageTypes[1]; }
|
||||
}
|
||||
|
||||
[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 DiscStrengthenResp() {
|
||||
OnConstruction();
|
||||
}
|
||||
|
||||
partial void OnConstruction();
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public DiscStrengthenResp(DiscStrengthenResp other) : this() {
|
||||
level_ = other.level_;
|
||||
exp_ = other.exp_;
|
||||
change_ = other.change_ != null ? other.change_.Clone() : null;
|
||||
nextPackage_ = other.nextPackage_;
|
||||
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public DiscStrengthenResp Clone() {
|
||||
return new DiscStrengthenResp(this);
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "Level" field.</summary>
|
||||
public const int LevelFieldNumber = 1;
|
||||
private uint level_;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public uint Level {
|
||||
get { return level_; }
|
||||
set {
|
||||
level_ = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "Exp" field.</summary>
|
||||
public const int ExpFieldNumber = 2;
|
||||
private uint exp_;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public uint Exp {
|
||||
get { return exp_; }
|
||||
set {
|
||||
exp_ = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "Change" field.</summary>
|
||||
public const int ChangeFieldNumber = 3;
|
||||
private global::Proto.ChangeInfo change_;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public global::Proto.ChangeInfo Change {
|
||||
get { return change_; }
|
||||
set {
|
||||
change_ = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "NextPackage" field.</summary>
|
||||
public const int NextPackageFieldNumber = 2047;
|
||||
private pb::ByteString nextPackage_ = pb::ByteString.Empty;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public pb::ByteString NextPackage {
|
||||
get { return nextPackage_; }
|
||||
set {
|
||||
nextPackage_ = 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 DiscStrengthenResp);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool Equals(DiscStrengthenResp other) {
|
||||
if (ReferenceEquals(other, null)) {
|
||||
return false;
|
||||
}
|
||||
if (ReferenceEquals(other, this)) {
|
||||
return true;
|
||||
}
|
||||
if (Level != other.Level) return false;
|
||||
if (Exp != other.Exp) return false;
|
||||
if (!object.Equals(Change, other.Change)) return false;
|
||||
if (NextPackage != other.NextPackage) 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 (Level != 0) hash ^= Level.GetHashCode();
|
||||
if (Exp != 0) hash ^= Exp.GetHashCode();
|
||||
if (change_ != null) hash ^= Change.GetHashCode();
|
||||
if (NextPackage.Length != 0) hash ^= NextPackage.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 (Level != 0) {
|
||||
output.WriteRawTag(8);
|
||||
output.WriteUInt32(Level);
|
||||
}
|
||||
if (Exp != 0) {
|
||||
output.WriteRawTag(16);
|
||||
output.WriteUInt32(Exp);
|
||||
}
|
||||
if (change_ != null) {
|
||||
output.WriteRawTag(26);
|
||||
output.WriteMessage(Change);
|
||||
}
|
||||
if (NextPackage.Length != 0) {
|
||||
output.WriteRawTag(250, 127);
|
||||
output.WriteBytes(NextPackage);
|
||||
}
|
||||
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 (Level != 0) {
|
||||
output.WriteRawTag(8);
|
||||
output.WriteUInt32(Level);
|
||||
}
|
||||
if (Exp != 0) {
|
||||
output.WriteRawTag(16);
|
||||
output.WriteUInt32(Exp);
|
||||
}
|
||||
if (change_ != null) {
|
||||
output.WriteRawTag(26);
|
||||
output.WriteMessage(Change);
|
||||
}
|
||||
if (NextPackage.Length != 0) {
|
||||
output.WriteRawTag(250, 127);
|
||||
output.WriteBytes(NextPackage);
|
||||
}
|
||||
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 (Level != 0) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Level);
|
||||
}
|
||||
if (Exp != 0) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Exp);
|
||||
}
|
||||
if (change_ != null) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeMessageSize(Change);
|
||||
}
|
||||
if (NextPackage.Length != 0) {
|
||||
size += 2 + pb::CodedOutputStream.ComputeBytesSize(NextPackage);
|
||||
}
|
||||
if (_unknownFields != null) {
|
||||
size += _unknownFields.CalculateSize();
|
||||
}
|
||||
return size;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void MergeFrom(DiscStrengthenResp other) {
|
||||
if (other == null) {
|
||||
return;
|
||||
}
|
||||
if (other.Level != 0) {
|
||||
Level = other.Level;
|
||||
}
|
||||
if (other.Exp != 0) {
|
||||
Exp = other.Exp;
|
||||
}
|
||||
if (other.change_ != null) {
|
||||
if (change_ == null) {
|
||||
Change = new global::Proto.ChangeInfo();
|
||||
}
|
||||
Change.MergeFrom(other.Change);
|
||||
}
|
||||
if (other.NextPackage.Length != 0) {
|
||||
NextPackage = other.NextPackage;
|
||||
}
|
||||
_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: {
|
||||
Level = input.ReadUInt32();
|
||||
break;
|
||||
}
|
||||
case 16: {
|
||||
Exp = input.ReadInt32();
|
||||
Exp = input.ReadUInt32();
|
||||
break;
|
||||
}
|
||||
case 26: {
|
||||
if (change_ == null) {
|
||||
Change = new global::Proto.ChangeInfo();
|
||||
}
|
||||
input.ReadMessage(Change);
|
||||
break;
|
||||
}
|
||||
case 16378: {
|
||||
NextPackage = input.ReadBytes();
|
||||
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: {
|
||||
Level = input.ReadUInt32();
|
||||
break;
|
||||
}
|
||||
case 16: {
|
||||
Exp = input.ReadUInt32();
|
||||
break;
|
||||
}
|
||||
case 26: {
|
||||
if (change_ == null) {
|
||||
Change = new global::Proto.ChangeInfo();
|
||||
}
|
||||
input.ReadMessage(Change);
|
||||
break;
|
||||
}
|
||||
case 16378: {
|
||||
NextPackage = input.ReadBytes();
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user