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: EnergyBuy.proto
|
||||
// source: energy_buy.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 EnergyBuy.proto</summary>
|
||||
/// <summary>Holder for reflection information generated from energy_buy.proto</summary>
|
||||
public static partial class EnergyBuyReflection {
|
||||
|
||||
#region Descriptor
|
||||
/// <summary>File descriptor for EnergyBuy.proto</summary>
|
||||
/// <summary>File descriptor for energy_buy.proto</summary>
|
||||
public static pbr::FileDescriptor Descriptor {
|
||||
get { return descriptor; }
|
||||
}
|
||||
@@ -24,14 +24,14 @@ namespace Nova.Client {
|
||||
static EnergyBuyReflection() {
|
||||
byte[] descriptorData = global::System.Convert.FromBase64String(
|
||||
string.Concat(
|
||||
"Cg9FbmVyZ3lCdXkucHJvdG8iYgoJRW5lcmd5QnV5EgoKAmlkGAEgASgFEhgK",
|
||||
"EGN1cnJlbmN5X2l0ZW1faWQYAiABKAUSGQoRY3VycmVuY3lfaXRlbV9xdHkY",
|
||||
"AyABKAUSFAoMZW5lcmd5X3ZhbHVlGAQgASgFQg6qAgtOb3ZhLkNsaWVudGIG",
|
||||
"cHJvdG8z"));
|
||||
"ChBlbmVyZ3lfYnV5LnByb3RvEgVwcm90bxoMcHVibGljLnByb3RvIlcKDUVu",
|
||||
"ZXJneUJ1eVJlc3ASDQoFQ291bnQYASABKA0SIQoGQ2hhbmdlGAIgASgLMhEu",
|
||||
"cHJvdG8uQ2hhbmdlSW5mbxIUCgtOZXh0UGFja2FnZRj/DyABKAxQAGIGcHJv",
|
||||
"dG8z"));
|
||||
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.EnergyBuy), global::Nova.Client.EnergyBuy.Parser, new[]{ "Id", "CurrencyItemId", "CurrencyItemQty", "EnergyValue" }, null, null, null, null)
|
||||
new pbr::GeneratedClrTypeInfo(typeof(global::Proto.EnergyBuyResp), global::Proto.EnergyBuyResp.Parser, new[]{ "Count", "Change", "NextPackage" }, null, null, null, null)
|
||||
}));
|
||||
}
|
||||
#endregion
|
||||
@@ -39,21 +39,21 @@ namespace Nova.Client {
|
||||
}
|
||||
#region Messages
|
||||
[global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
|
||||
public sealed partial class EnergyBuy : pb::IMessage<EnergyBuy>
|
||||
public sealed partial class EnergyBuyResp : pb::IMessage<EnergyBuyResp>
|
||||
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
||||
, pb::IBufferMessage
|
||||
#endif
|
||||
{
|
||||
private static readonly pb::MessageParser<EnergyBuy> _parser = new pb::MessageParser<EnergyBuy>(() => new EnergyBuy());
|
||||
private static readonly pb::MessageParser<EnergyBuyResp> _parser = new pb::MessageParser<EnergyBuyResp>(() => new EnergyBuyResp());
|
||||
private pb::UnknownFieldSet _unknownFields;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public static pb::MessageParser<EnergyBuy> Parser { get { return _parser; } }
|
||||
public static pb::MessageParser<EnergyBuyResp> 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.EnergyBuyReflection.Descriptor.MessageTypes[0]; }
|
||||
get { return global::Proto.EnergyBuyReflection.Descriptor.MessageTypes[0]; }
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
@@ -64,7 +64,7 @@ namespace Nova.Client {
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public EnergyBuy() {
|
||||
public EnergyBuyResp() {
|
||||
OnConstruction();
|
||||
}
|
||||
|
||||
@@ -72,87 +72,73 @@ namespace Nova.Client {
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public EnergyBuy(EnergyBuy other) : this() {
|
||||
id_ = other.id_;
|
||||
currencyItemId_ = other.currencyItemId_;
|
||||
currencyItemQty_ = other.currencyItemQty_;
|
||||
energyValue_ = other.energyValue_;
|
||||
public EnergyBuyResp(EnergyBuyResp other) : this() {
|
||||
count_ = other.count_;
|
||||
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 EnergyBuy Clone() {
|
||||
return new EnergyBuy(this);
|
||||
public EnergyBuyResp Clone() {
|
||||
return new EnergyBuyResp(this);
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "id" field.</summary>
|
||||
public const int IdFieldNumber = 1;
|
||||
private int id_;
|
||||
/// <summary>Field number for the "Count" field.</summary>
|
||||
public const int CountFieldNumber = 1;
|
||||
private uint count_;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public int Id {
|
||||
get { return id_; }
|
||||
public uint Count {
|
||||
get { return count_; }
|
||||
set {
|
||||
id_ = value;
|
||||
count_ = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "currency_item_id" field.</summary>
|
||||
public const int CurrencyItemIdFieldNumber = 2;
|
||||
private int currencyItemId_;
|
||||
/// <summary>Field number for the "Change" field.</summary>
|
||||
public const int ChangeFieldNumber = 2;
|
||||
private global::Proto.ChangeInfo change_;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public int CurrencyItemId {
|
||||
get { return currencyItemId_; }
|
||||
public global::Proto.ChangeInfo Change {
|
||||
get { return change_; }
|
||||
set {
|
||||
currencyItemId_ = value;
|
||||
change_ = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "currency_item_qty" field.</summary>
|
||||
public const int CurrencyItemQtyFieldNumber = 3;
|
||||
private int currencyItemQty_;
|
||||
/// <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 int CurrencyItemQty {
|
||||
get { return currencyItemQty_; }
|
||||
public pb::ByteString NextPackage {
|
||||
get { return nextPackage_; }
|
||||
set {
|
||||
currencyItemQty_ = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "energy_value" field.</summary>
|
||||
public const int EnergyValueFieldNumber = 4;
|
||||
private int energyValue_;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public int EnergyValue {
|
||||
get { return energyValue_; }
|
||||
set {
|
||||
energyValue_ = 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 EnergyBuy);
|
||||
return Equals(other as EnergyBuyResp);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool Equals(EnergyBuy other) {
|
||||
public bool Equals(EnergyBuyResp other) {
|
||||
if (ReferenceEquals(other, null)) {
|
||||
return false;
|
||||
}
|
||||
if (ReferenceEquals(other, this)) {
|
||||
return true;
|
||||
}
|
||||
if (Id != other.Id) return false;
|
||||
if (CurrencyItemId != other.CurrencyItemId) return false;
|
||||
if (CurrencyItemQty != other.CurrencyItemQty) return false;
|
||||
if (EnergyValue != other.EnergyValue) return false;
|
||||
if (Count != other.Count) return false;
|
||||
if (!object.Equals(Change, other.Change)) return false;
|
||||
if (NextPackage != other.NextPackage) return false;
|
||||
return Equals(_unknownFields, other._unknownFields);
|
||||
}
|
||||
|
||||
@@ -160,10 +146,9 @@ namespace Nova.Client {
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public override int GetHashCode() {
|
||||
int hash = 1;
|
||||
if (Id != 0) hash ^= Id.GetHashCode();
|
||||
if (CurrencyItemId != 0) hash ^= CurrencyItemId.GetHashCode();
|
||||
if (CurrencyItemQty != 0) hash ^= CurrencyItemQty.GetHashCode();
|
||||
if (EnergyValue != 0) hash ^= EnergyValue.GetHashCode();
|
||||
if (Count != 0) hash ^= Count.GetHashCode();
|
||||
if (change_ != null) hash ^= Change.GetHashCode();
|
||||
if (NextPackage.Length != 0) hash ^= NextPackage.GetHashCode();
|
||||
if (_unknownFields != null) {
|
||||
hash ^= _unknownFields.GetHashCode();
|
||||
}
|
||||
@@ -182,21 +167,17 @@ namespace Nova.Client {
|
||||
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
||||
output.WriteRawMessage(this);
|
||||
#else
|
||||
if (Id != 0) {
|
||||
if (Count != 0) {
|
||||
output.WriteRawTag(8);
|
||||
output.WriteInt32(Id);
|
||||
output.WriteUInt32(Count);
|
||||
}
|
||||
if (CurrencyItemId != 0) {
|
||||
output.WriteRawTag(16);
|
||||
output.WriteInt32(CurrencyItemId);
|
||||
if (change_ != null) {
|
||||
output.WriteRawTag(18);
|
||||
output.WriteMessage(Change);
|
||||
}
|
||||
if (CurrencyItemQty != 0) {
|
||||
output.WriteRawTag(24);
|
||||
output.WriteInt32(CurrencyItemQty);
|
||||
}
|
||||
if (EnergyValue != 0) {
|
||||
output.WriteRawTag(32);
|
||||
output.WriteInt32(EnergyValue);
|
||||
if (NextPackage.Length != 0) {
|
||||
output.WriteRawTag(250, 127);
|
||||
output.WriteBytes(NextPackage);
|
||||
}
|
||||
if (_unknownFields != null) {
|
||||
_unknownFields.WriteTo(output);
|
||||
@@ -208,21 +189,17 @@ namespace Nova.Client {
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
|
||||
if (Id != 0) {
|
||||
if (Count != 0) {
|
||||
output.WriteRawTag(8);
|
||||
output.WriteInt32(Id);
|
||||
output.WriteUInt32(Count);
|
||||
}
|
||||
if (CurrencyItemId != 0) {
|
||||
output.WriteRawTag(16);
|
||||
output.WriteInt32(CurrencyItemId);
|
||||
if (change_ != null) {
|
||||
output.WriteRawTag(18);
|
||||
output.WriteMessage(Change);
|
||||
}
|
||||
if (CurrencyItemQty != 0) {
|
||||
output.WriteRawTag(24);
|
||||
output.WriteInt32(CurrencyItemQty);
|
||||
}
|
||||
if (EnergyValue != 0) {
|
||||
output.WriteRawTag(32);
|
||||
output.WriteInt32(EnergyValue);
|
||||
if (NextPackage.Length != 0) {
|
||||
output.WriteRawTag(250, 127);
|
||||
output.WriteBytes(NextPackage);
|
||||
}
|
||||
if (_unknownFields != null) {
|
||||
_unknownFields.WriteTo(ref output);
|
||||
@@ -234,17 +211,14 @@ namespace Nova.Client {
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public int CalculateSize() {
|
||||
int size = 0;
|
||||
if (Id != 0) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id);
|
||||
if (Count != 0) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Count);
|
||||
}
|
||||
if (CurrencyItemId != 0) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeInt32Size(CurrencyItemId);
|
||||
if (change_ != null) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeMessageSize(Change);
|
||||
}
|
||||
if (CurrencyItemQty != 0) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeInt32Size(CurrencyItemQty);
|
||||
}
|
||||
if (EnergyValue != 0) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeInt32Size(EnergyValue);
|
||||
if (NextPackage.Length != 0) {
|
||||
size += 2 + pb::CodedOutputStream.ComputeBytesSize(NextPackage);
|
||||
}
|
||||
if (_unknownFields != null) {
|
||||
size += _unknownFields.CalculateSize();
|
||||
@@ -254,21 +228,21 @@ namespace Nova.Client {
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void MergeFrom(EnergyBuy other) {
|
||||
public void MergeFrom(EnergyBuyResp other) {
|
||||
if (other == null) {
|
||||
return;
|
||||
}
|
||||
if (other.Id != 0) {
|
||||
Id = other.Id;
|
||||
if (other.Count != 0) {
|
||||
Count = other.Count;
|
||||
}
|
||||
if (other.CurrencyItemId != 0) {
|
||||
CurrencyItemId = other.CurrencyItemId;
|
||||
if (other.change_ != null) {
|
||||
if (change_ == null) {
|
||||
Change = new global::Proto.ChangeInfo();
|
||||
}
|
||||
Change.MergeFrom(other.Change);
|
||||
}
|
||||
if (other.CurrencyItemQty != 0) {
|
||||
CurrencyItemQty = other.CurrencyItemQty;
|
||||
}
|
||||
if (other.EnergyValue != 0) {
|
||||
EnergyValue = other.EnergyValue;
|
||||
if (other.NextPackage.Length != 0) {
|
||||
NextPackage = other.NextPackage;
|
||||
}
|
||||
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
|
||||
}
|
||||
@@ -290,19 +264,18 @@ namespace Nova.Client {
|
||||
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
|
||||
break;
|
||||
case 8: {
|
||||
Id = input.ReadInt32();
|
||||
Count = input.ReadUInt32();
|
||||
break;
|
||||
}
|
||||
case 16: {
|
||||
CurrencyItemId = input.ReadInt32();
|
||||
case 18: {
|
||||
if (change_ == null) {
|
||||
Change = new global::Proto.ChangeInfo();
|
||||
}
|
||||
input.ReadMessage(Change);
|
||||
break;
|
||||
}
|
||||
case 24: {
|
||||
CurrencyItemQty = input.ReadInt32();
|
||||
break;
|
||||
}
|
||||
case 32: {
|
||||
EnergyValue = input.ReadInt32();
|
||||
case 16378: {
|
||||
NextPackage = input.ReadBytes();
|
||||
break;
|
||||
}
|
||||
}
|
||||
@@ -325,19 +298,18 @@ namespace Nova.Client {
|
||||
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
|
||||
break;
|
||||
case 8: {
|
||||
Id = input.ReadInt32();
|
||||
Count = input.ReadUInt32();
|
||||
break;
|
||||
}
|
||||
case 16: {
|
||||
CurrencyItemId = input.ReadInt32();
|
||||
case 18: {
|
||||
if (change_ == null) {
|
||||
Change = new global::Proto.ChangeInfo();
|
||||
}
|
||||
input.ReadMessage(Change);
|
||||
break;
|
||||
}
|
||||
case 24: {
|
||||
CurrencyItemQty = input.ReadInt32();
|
||||
break;
|
||||
}
|
||||
case 32: {
|
||||
EnergyValue = input.ReadInt32();
|
||||
case 16378: {
|
||||
NextPackage = input.ReadBytes();
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user