mirror of
https://github.com/raphaeIl/Novaria.git
synced 2025-12-13 06:54:48 +01:00
test ike crypto works, new protos from pb
This commit is contained in:
927
Novaria.Common/Protos/AgentRewardReceive.cs
Normal file
927
Novaria.Common/Protos/AgentRewardReceive.cs
Normal file
@@ -0,0 +1,927 @@
|
||||
// <auto-generated>
|
||||
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
// source: agent_reward_receive.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 Proto {
|
||||
|
||||
/// <summary>Holder for reflection information generated from agent_reward_receive.proto</summary>
|
||||
public static partial class AgentRewardReceiveReflection {
|
||||
|
||||
#region Descriptor
|
||||
/// <summary>File descriptor for agent_reward_receive.proto</summary>
|
||||
public static pbr::FileDescriptor Descriptor {
|
||||
get { return descriptor; }
|
||||
}
|
||||
private static pbr::FileDescriptor descriptor;
|
||||
|
||||
static AgentRewardReceiveReflection() {
|
||||
byte[] descriptorData = global::System.Convert.FromBase64String(
|
||||
string.Concat(
|
||||
"ChphZ2VudF9yZXdhcmRfcmVjZWl2ZS5wcm90bxIFcHJvdG8aDHB1YmxpYy5w",
|
||||
"cm90byI5ChVBZ2VudFJld2FyZFJlY2VpdmVSZXESCgoCSWQYASABKA0SFAoL",
|
||||
"TmV4dFBhY2thZ2UY/w8gASgMIqEBChZBZ2VudFJld2FyZFJlY2VpdmVSZXNw",
|
||||
"Eg8KB0NoYXJJZHMYASADKA0SEAoIQnVpbGRJZHMYAiADKAQSKwoLUmV3YXJk",
|
||||
"U2hvd3MYAyADKAsyFi5wcm90by5BZ2VudFJld2FyZFNob3cSIQoGQ2hhbmdl",
|
||||
"GAQgASgLMhEucHJvdG8uQ2hhbmdlSW5mbxIUCgtOZXh0UGFja2FnZRj/DyAB",
|
||||
"KAwimwEKD0FnZW50UmV3YXJkU2hvdxIKCgJJZBgBIAEoDRIfCgdSZXdhcmRz",
|
||||
"GAIgAygLMg4ucHJvdG8uSXRlbVRwbBIdCgVCb251cxgDIAMoCzIOLnByb3Rv",
|
||||
"Lkl0ZW1UcGwSJgoOU3BlY2lhbFJld2FyZHMYBCADKAsyDi5wcm90by5JdGVt",
|
||||
"VHBsEhQKC05leHRQYWNrYWdlGP8PIAEoDFAAYgZwcm90bzM="));
|
||||
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
|
||||
new pbr::FileDescriptor[] { global::Proto.PublicReflection.Descriptor, },
|
||||
new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
|
||||
new pbr::GeneratedClrTypeInfo(typeof(global::Proto.AgentRewardReceiveReq), global::Proto.AgentRewardReceiveReq.Parser, new[]{ "Id", "NextPackage" }, null, null, null, null),
|
||||
new pbr::GeneratedClrTypeInfo(typeof(global::Proto.AgentRewardReceiveResp), global::Proto.AgentRewardReceiveResp.Parser, new[]{ "CharIds", "BuildIds", "RewardShows", "Change", "NextPackage" }, null, null, null, null),
|
||||
new pbr::GeneratedClrTypeInfo(typeof(global::Proto.AgentRewardShow), global::Proto.AgentRewardShow.Parser, new[]{ "Id", "Rewards", "Bonus", "SpecialRewards", "NextPackage" }, null, null, null, null)
|
||||
}));
|
||||
}
|
||||
#endregion
|
||||
|
||||
}
|
||||
#region Messages
|
||||
[global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
|
||||
public sealed partial class AgentRewardReceiveReq : pb::IMessage<AgentRewardReceiveReq>
|
||||
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
||||
, pb::IBufferMessage
|
||||
#endif
|
||||
{
|
||||
private static readonly pb::MessageParser<AgentRewardReceiveReq> _parser = new pb::MessageParser<AgentRewardReceiveReq>(() => new AgentRewardReceiveReq());
|
||||
private pb::UnknownFieldSet _unknownFields;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public static pb::MessageParser<AgentRewardReceiveReq> Parser { get { return _parser; } }
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public static pbr::MessageDescriptor Descriptor {
|
||||
get { return global::Proto.AgentRewardReceiveReflection.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 AgentRewardReceiveReq() {
|
||||
OnConstruction();
|
||||
}
|
||||
|
||||
partial void OnConstruction();
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public AgentRewardReceiveReq(AgentRewardReceiveReq other) : this() {
|
||||
id_ = other.id_;
|
||||
nextPackage_ = other.nextPackage_;
|
||||
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public AgentRewardReceiveReq Clone() {
|
||||
return new AgentRewardReceiveReq(this);
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "Id" field.</summary>
|
||||
public const int IdFieldNumber = 1;
|
||||
private uint id_;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public uint Id {
|
||||
get { return id_; }
|
||||
set {
|
||||
id_ = 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 AgentRewardReceiveReq);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool Equals(AgentRewardReceiveReq other) {
|
||||
if (ReferenceEquals(other, null)) {
|
||||
return false;
|
||||
}
|
||||
if (ReferenceEquals(other, this)) {
|
||||
return true;
|
||||
}
|
||||
if (Id != other.Id) 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 (Id != 0) hash ^= Id.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 (Id != 0) {
|
||||
output.WriteRawTag(8);
|
||||
output.WriteUInt32(Id);
|
||||
}
|
||||
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 (Id != 0) {
|
||||
output.WriteRawTag(8);
|
||||
output.WriteUInt32(Id);
|
||||
}
|
||||
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 (Id != 0) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Id);
|
||||
}
|
||||
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(AgentRewardReceiveReq other) {
|
||||
if (other == null) {
|
||||
return;
|
||||
}
|
||||
if (other.Id != 0) {
|
||||
Id = other.Id;
|
||||
}
|
||||
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: {
|
||||
Id = input.ReadUInt32();
|
||||
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: {
|
||||
Id = input.ReadUInt32();
|
||||
break;
|
||||
}
|
||||
case 16378: {
|
||||
NextPackage = input.ReadBytes();
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
|
||||
public sealed partial class AgentRewardReceiveResp : pb::IMessage<AgentRewardReceiveResp>
|
||||
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
||||
, pb::IBufferMessage
|
||||
#endif
|
||||
{
|
||||
private static readonly pb::MessageParser<AgentRewardReceiveResp> _parser = new pb::MessageParser<AgentRewardReceiveResp>(() => new AgentRewardReceiveResp());
|
||||
private pb::UnknownFieldSet _unknownFields;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public static pb::MessageParser<AgentRewardReceiveResp> Parser { get { return _parser; } }
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public static pbr::MessageDescriptor Descriptor {
|
||||
get { return global::Proto.AgentRewardReceiveReflection.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 AgentRewardReceiveResp() {
|
||||
OnConstruction();
|
||||
}
|
||||
|
||||
partial void OnConstruction();
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public AgentRewardReceiveResp(AgentRewardReceiveResp other) : this() {
|
||||
charIds_ = other.charIds_.Clone();
|
||||
buildIds_ = other.buildIds_.Clone();
|
||||
rewardShows_ = other.rewardShows_.Clone();
|
||||
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 AgentRewardReceiveResp Clone() {
|
||||
return new AgentRewardReceiveResp(this);
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "CharIds" field.</summary>
|
||||
public const int CharIdsFieldNumber = 1;
|
||||
private static readonly pb::FieldCodec<uint> _repeated_charIds_codec
|
||||
= pb::FieldCodec.ForUInt32(10);
|
||||
private readonly pbc::RepeatedField<uint> charIds_ = new pbc::RepeatedField<uint>();
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public pbc::RepeatedField<uint> CharIds {
|
||||
get { return charIds_; }
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "BuildIds" field.</summary>
|
||||
public const int BuildIdsFieldNumber = 2;
|
||||
private static readonly pb::FieldCodec<ulong> _repeated_buildIds_codec
|
||||
= pb::FieldCodec.ForUInt64(18);
|
||||
private readonly pbc::RepeatedField<ulong> buildIds_ = new pbc::RepeatedField<ulong>();
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public pbc::RepeatedField<ulong> BuildIds {
|
||||
get { return buildIds_; }
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "RewardShows" field.</summary>
|
||||
public const int RewardShowsFieldNumber = 3;
|
||||
private static readonly pb::FieldCodec<global::Proto.AgentRewardShow> _repeated_rewardShows_codec
|
||||
= pb::FieldCodec.ForMessage(26, global::Proto.AgentRewardShow.Parser);
|
||||
private readonly pbc::RepeatedField<global::Proto.AgentRewardShow> rewardShows_ = new pbc::RepeatedField<global::Proto.AgentRewardShow>();
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public pbc::RepeatedField<global::Proto.AgentRewardShow> RewardShows {
|
||||
get { return rewardShows_; }
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "Change" field.</summary>
|
||||
public const int ChangeFieldNumber = 4;
|
||||
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 AgentRewardReceiveResp);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool Equals(AgentRewardReceiveResp other) {
|
||||
if (ReferenceEquals(other, null)) {
|
||||
return false;
|
||||
}
|
||||
if (ReferenceEquals(other, this)) {
|
||||
return true;
|
||||
}
|
||||
if(!charIds_.Equals(other.charIds_)) return false;
|
||||
if(!buildIds_.Equals(other.buildIds_)) return false;
|
||||
if(!rewardShows_.Equals(other.rewardShows_)) 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;
|
||||
hash ^= charIds_.GetHashCode();
|
||||
hash ^= buildIds_.GetHashCode();
|
||||
hash ^= rewardShows_.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
|
||||
charIds_.WriteTo(output, _repeated_charIds_codec);
|
||||
buildIds_.WriteTo(output, _repeated_buildIds_codec);
|
||||
rewardShows_.WriteTo(output, _repeated_rewardShows_codec);
|
||||
if (change_ != null) {
|
||||
output.WriteRawTag(34);
|
||||
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) {
|
||||
charIds_.WriteTo(ref output, _repeated_charIds_codec);
|
||||
buildIds_.WriteTo(ref output, _repeated_buildIds_codec);
|
||||
rewardShows_.WriteTo(ref output, _repeated_rewardShows_codec);
|
||||
if (change_ != null) {
|
||||
output.WriteRawTag(34);
|
||||
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;
|
||||
size += charIds_.CalculateSize(_repeated_charIds_codec);
|
||||
size += buildIds_.CalculateSize(_repeated_buildIds_codec);
|
||||
size += rewardShows_.CalculateSize(_repeated_rewardShows_codec);
|
||||
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(AgentRewardReceiveResp other) {
|
||||
if (other == null) {
|
||||
return;
|
||||
}
|
||||
charIds_.Add(other.charIds_);
|
||||
buildIds_.Add(other.buildIds_);
|
||||
rewardShows_.Add(other.rewardShows_);
|
||||
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 10:
|
||||
case 8: {
|
||||
charIds_.AddEntriesFrom(input, _repeated_charIds_codec);
|
||||
break;
|
||||
}
|
||||
case 18:
|
||||
case 16: {
|
||||
buildIds_.AddEntriesFrom(input, _repeated_buildIds_codec);
|
||||
break;
|
||||
}
|
||||
case 26: {
|
||||
rewardShows_.AddEntriesFrom(input, _repeated_rewardShows_codec);
|
||||
break;
|
||||
}
|
||||
case 34: {
|
||||
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 10:
|
||||
case 8: {
|
||||
charIds_.AddEntriesFrom(ref input, _repeated_charIds_codec);
|
||||
break;
|
||||
}
|
||||
case 18:
|
||||
case 16: {
|
||||
buildIds_.AddEntriesFrom(ref input, _repeated_buildIds_codec);
|
||||
break;
|
||||
}
|
||||
case 26: {
|
||||
rewardShows_.AddEntriesFrom(ref input, _repeated_rewardShows_codec);
|
||||
break;
|
||||
}
|
||||
case 34: {
|
||||
if (change_ == null) {
|
||||
Change = new global::Proto.ChangeInfo();
|
||||
}
|
||||
input.ReadMessage(Change);
|
||||
break;
|
||||
}
|
||||
case 16378: {
|
||||
NextPackage = input.ReadBytes();
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
|
||||
public sealed partial class AgentRewardShow : pb::IMessage<AgentRewardShow>
|
||||
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
||||
, pb::IBufferMessage
|
||||
#endif
|
||||
{
|
||||
private static readonly pb::MessageParser<AgentRewardShow> _parser = new pb::MessageParser<AgentRewardShow>(() => new AgentRewardShow());
|
||||
private pb::UnknownFieldSet _unknownFields;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public static pb::MessageParser<AgentRewardShow> Parser { get { return _parser; } }
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public static pbr::MessageDescriptor Descriptor {
|
||||
get { return global::Proto.AgentRewardReceiveReflection.Descriptor.MessageTypes[2]; }
|
||||
}
|
||||
|
||||
[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 AgentRewardShow() {
|
||||
OnConstruction();
|
||||
}
|
||||
|
||||
partial void OnConstruction();
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public AgentRewardShow(AgentRewardShow other) : this() {
|
||||
id_ = other.id_;
|
||||
rewards_ = other.rewards_.Clone();
|
||||
bonus_ = other.bonus_.Clone();
|
||||
specialRewards_ = other.specialRewards_.Clone();
|
||||
nextPackage_ = other.nextPackage_;
|
||||
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public AgentRewardShow Clone() {
|
||||
return new AgentRewardShow(this);
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "Id" field.</summary>
|
||||
public const int IdFieldNumber = 1;
|
||||
private uint id_;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public uint Id {
|
||||
get { return id_; }
|
||||
set {
|
||||
id_ = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "Rewards" field.</summary>
|
||||
public const int RewardsFieldNumber = 2;
|
||||
private static readonly pb::FieldCodec<global::Proto.ItemTpl> _repeated_rewards_codec
|
||||
= pb::FieldCodec.ForMessage(18, global::Proto.ItemTpl.Parser);
|
||||
private readonly pbc::RepeatedField<global::Proto.ItemTpl> rewards_ = new pbc::RepeatedField<global::Proto.ItemTpl>();
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public pbc::RepeatedField<global::Proto.ItemTpl> Rewards {
|
||||
get { return rewards_; }
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "Bonus" field.</summary>
|
||||
public const int BonusFieldNumber = 3;
|
||||
private static readonly pb::FieldCodec<global::Proto.ItemTpl> _repeated_bonus_codec
|
||||
= pb::FieldCodec.ForMessage(26, global::Proto.ItemTpl.Parser);
|
||||
private readonly pbc::RepeatedField<global::Proto.ItemTpl> bonus_ = new pbc::RepeatedField<global::Proto.ItemTpl>();
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public pbc::RepeatedField<global::Proto.ItemTpl> Bonus {
|
||||
get { return bonus_; }
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "SpecialRewards" field.</summary>
|
||||
public const int SpecialRewardsFieldNumber = 4;
|
||||
private static readonly pb::FieldCodec<global::Proto.ItemTpl> _repeated_specialRewards_codec
|
||||
= pb::FieldCodec.ForMessage(34, global::Proto.ItemTpl.Parser);
|
||||
private readonly pbc::RepeatedField<global::Proto.ItemTpl> specialRewards_ = new pbc::RepeatedField<global::Proto.ItemTpl>();
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public pbc::RepeatedField<global::Proto.ItemTpl> SpecialRewards {
|
||||
get { return specialRewards_; }
|
||||
}
|
||||
|
||||
/// <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 AgentRewardShow);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool Equals(AgentRewardShow other) {
|
||||
if (ReferenceEquals(other, null)) {
|
||||
return false;
|
||||
}
|
||||
if (ReferenceEquals(other, this)) {
|
||||
return true;
|
||||
}
|
||||
if (Id != other.Id) return false;
|
||||
if(!rewards_.Equals(other.rewards_)) return false;
|
||||
if(!bonus_.Equals(other.bonus_)) return false;
|
||||
if(!specialRewards_.Equals(other.specialRewards_)) 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 (Id != 0) hash ^= Id.GetHashCode();
|
||||
hash ^= rewards_.GetHashCode();
|
||||
hash ^= bonus_.GetHashCode();
|
||||
hash ^= specialRewards_.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 (Id != 0) {
|
||||
output.WriteRawTag(8);
|
||||
output.WriteUInt32(Id);
|
||||
}
|
||||
rewards_.WriteTo(output, _repeated_rewards_codec);
|
||||
bonus_.WriteTo(output, _repeated_bonus_codec);
|
||||
specialRewards_.WriteTo(output, _repeated_specialRewards_codec);
|
||||
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 (Id != 0) {
|
||||
output.WriteRawTag(8);
|
||||
output.WriteUInt32(Id);
|
||||
}
|
||||
rewards_.WriteTo(ref output, _repeated_rewards_codec);
|
||||
bonus_.WriteTo(ref output, _repeated_bonus_codec);
|
||||
specialRewards_.WriteTo(ref output, _repeated_specialRewards_codec);
|
||||
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 (Id != 0) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Id);
|
||||
}
|
||||
size += rewards_.CalculateSize(_repeated_rewards_codec);
|
||||
size += bonus_.CalculateSize(_repeated_bonus_codec);
|
||||
size += specialRewards_.CalculateSize(_repeated_specialRewards_codec);
|
||||
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(AgentRewardShow other) {
|
||||
if (other == null) {
|
||||
return;
|
||||
}
|
||||
if (other.Id != 0) {
|
||||
Id = other.Id;
|
||||
}
|
||||
rewards_.Add(other.rewards_);
|
||||
bonus_.Add(other.bonus_);
|
||||
specialRewards_.Add(other.specialRewards_);
|
||||
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: {
|
||||
Id = input.ReadUInt32();
|
||||
break;
|
||||
}
|
||||
case 18: {
|
||||
rewards_.AddEntriesFrom(input, _repeated_rewards_codec);
|
||||
break;
|
||||
}
|
||||
case 26: {
|
||||
bonus_.AddEntriesFrom(input, _repeated_bonus_codec);
|
||||
break;
|
||||
}
|
||||
case 34: {
|
||||
specialRewards_.AddEntriesFrom(input, _repeated_specialRewards_codec);
|
||||
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: {
|
||||
Id = input.ReadUInt32();
|
||||
break;
|
||||
}
|
||||
case 18: {
|
||||
rewards_.AddEntriesFrom(ref input, _repeated_rewards_codec);
|
||||
break;
|
||||
}
|
||||
case 26: {
|
||||
bonus_.AddEntriesFrom(ref input, _repeated_bonus_codec);
|
||||
break;
|
||||
}
|
||||
case 34: {
|
||||
specialRewards_.AddEntriesFrom(ref input, _repeated_specialRewards_codec);
|
||||
break;
|
||||
}
|
||||
case 16378: {
|
||||
NextPackage = input.ReadBytes();
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
}
|
||||
|
||||
#endregion Designer generated code
|
||||
Reference in New Issue
Block a user