Files
Novaria/Novaria.Common/Protos/EventResult.cs

440 lines
15 KiB
C#

// <auto-generated>
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: EventResult.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 EventResult.proto</summary>
public static partial class EventResultReflection {
#region Descriptor
/// <summary>File descriptor for EventResult.proto</summary>
public static pbr::FileDescriptor Descriptor {
get { return descriptor; }
}
private static pbr::FileDescriptor descriptor;
static EventResultReflection() {
byte[] descriptorData = global::System.Convert.FromBase64String(
string.Concat(
"ChFFdmVudFJlc3VsdC5wcm90byKIAQoLRXZlbnRSZXN1bHQSCgoCaWQYASAB",
"KAUSDwoHZWZmZWN0MRgCIAEoBRISCgpwYXJhbWV0ZXIxGAMgAygFEg8KB2Vm",
"ZmVjdDIYBCABKAUSEgoKcGFyYW1ldGVyMhgFIAMoBRIPCgdlZmZlY3QzGAYg",
"ASgFEhIKCnBhcmFtZXRlcjMYByADKAVCDqoCC05vdmEuQ2xpZW50YgZwcm90",
"bzM="));
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
new pbr::FileDescriptor[] { },
new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.EventResult), global::Nova.Client.EventResult.Parser, new[]{ "Id", "Effect1", "Parameter1", "Effect2", "Parameter2", "Effect3", "Parameter3" }, null, null, null, null)
}));
}
#endregion
}
#region Messages
[global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
public sealed partial class EventResult : pb::IMessage<EventResult>
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser<EventResult> _parser = new pb::MessageParser<EventResult>(() => new EventResult());
private pb::UnknownFieldSet _unknownFields;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pb::MessageParser<EventResult> 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.EventResultReflection.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 EventResult() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public EventResult(EventResult other) : this() {
id_ = other.id_;
effect1_ = other.effect1_;
parameter1_ = other.parameter1_.Clone();
effect2_ = other.effect2_;
parameter2_ = other.parameter2_.Clone();
effect3_ = other.effect3_;
parameter3_ = other.parameter3_.Clone();
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public EventResult Clone() {
return new EventResult(this);
}
/// <summary>Field number for the "id" field.</summary>
public const int IdFieldNumber = 1;
private int id_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int Id {
get { return id_; }
set {
id_ = value;
}
}
/// <summary>Field number for the "effect1" field.</summary>
public const int Effect1FieldNumber = 2;
private int effect1_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int Effect1 {
get { return effect1_; }
set {
effect1_ = value;
}
}
/// <summary>Field number for the "parameter1" field.</summary>
public const int Parameter1FieldNumber = 3;
private static readonly pb::FieldCodec<int> _repeated_parameter1_codec
= pb::FieldCodec.ForInt32(26);
private readonly pbc::RepeatedField<int> parameter1_ = new pbc::RepeatedField<int>();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public pbc::RepeatedField<int> Parameter1 {
get { return parameter1_; }
}
/// <summary>Field number for the "effect2" field.</summary>
public const int Effect2FieldNumber = 4;
private int effect2_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int Effect2 {
get { return effect2_; }
set {
effect2_ = value;
}
}
/// <summary>Field number for the "parameter2" field.</summary>
public const int Parameter2FieldNumber = 5;
private static readonly pb::FieldCodec<int> _repeated_parameter2_codec
= pb::FieldCodec.ForInt32(42);
private readonly pbc::RepeatedField<int> parameter2_ = new pbc::RepeatedField<int>();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public pbc::RepeatedField<int> Parameter2 {
get { return parameter2_; }
}
/// <summary>Field number for the "effect3" field.</summary>
public const int Effect3FieldNumber = 6;
private int effect3_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int Effect3 {
get { return effect3_; }
set {
effect3_ = value;
}
}
/// <summary>Field number for the "parameter3" field.</summary>
public const int Parameter3FieldNumber = 7;
private static readonly pb::FieldCodec<int> _repeated_parameter3_codec
= pb::FieldCodec.ForInt32(58);
private readonly pbc::RepeatedField<int> parameter3_ = new pbc::RepeatedField<int>();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public pbc::RepeatedField<int> Parameter3 {
get { return parameter3_; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
return Equals(other as EventResult);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(EventResult other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (Id != other.Id) return false;
if (Effect1 != other.Effect1) return false;
if(!parameter1_.Equals(other.parameter1_)) return false;
if (Effect2 != other.Effect2) return false;
if(!parameter2_.Equals(other.parameter2_)) return false;
if (Effect3 != other.Effect3) return false;
if(!parameter3_.Equals(other.parameter3_)) 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 (Effect1 != 0) hash ^= Effect1.GetHashCode();
hash ^= parameter1_.GetHashCode();
if (Effect2 != 0) hash ^= Effect2.GetHashCode();
hash ^= parameter2_.GetHashCode();
if (Effect3 != 0) hash ^= Effect3.GetHashCode();
hash ^= parameter3_.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.WriteInt32(Id);
}
if (Effect1 != 0) {
output.WriteRawTag(16);
output.WriteInt32(Effect1);
}
parameter1_.WriteTo(output, _repeated_parameter1_codec);
if (Effect2 != 0) {
output.WriteRawTag(32);
output.WriteInt32(Effect2);
}
parameter2_.WriteTo(output, _repeated_parameter2_codec);
if (Effect3 != 0) {
output.WriteRawTag(48);
output.WriteInt32(Effect3);
}
parameter3_.WriteTo(output, _repeated_parameter3_codec);
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.WriteInt32(Id);
}
if (Effect1 != 0) {
output.WriteRawTag(16);
output.WriteInt32(Effect1);
}
parameter1_.WriteTo(ref output, _repeated_parameter1_codec);
if (Effect2 != 0) {
output.WriteRawTag(32);
output.WriteInt32(Effect2);
}
parameter2_.WriteTo(ref output, _repeated_parameter2_codec);
if (Effect3 != 0) {
output.WriteRawTag(48);
output.WriteInt32(Effect3);
}
parameter3_.WriteTo(ref output, _repeated_parameter3_codec);
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.ComputeInt32Size(Id);
}
if (Effect1 != 0) {
size += 1 + pb::CodedOutputStream.ComputeInt32Size(Effect1);
}
size += parameter1_.CalculateSize(_repeated_parameter1_codec);
if (Effect2 != 0) {
size += 1 + pb::CodedOutputStream.ComputeInt32Size(Effect2);
}
size += parameter2_.CalculateSize(_repeated_parameter2_codec);
if (Effect3 != 0) {
size += 1 + pb::CodedOutputStream.ComputeInt32Size(Effect3);
}
size += parameter3_.CalculateSize(_repeated_parameter3_codec);
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(EventResult other) {
if (other == null) {
return;
}
if (other.Id != 0) {
Id = other.Id;
}
if (other.Effect1 != 0) {
Effect1 = other.Effect1;
}
parameter1_.Add(other.parameter1_);
if (other.Effect2 != 0) {
Effect2 = other.Effect2;
}
parameter2_.Add(other.parameter2_);
if (other.Effect3 != 0) {
Effect3 = other.Effect3;
}
parameter3_.Add(other.parameter3_);
_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.ReadInt32();
break;
}
case 16: {
Effect1 = input.ReadInt32();
break;
}
case 26:
case 24: {
parameter1_.AddEntriesFrom(input, _repeated_parameter1_codec);
break;
}
case 32: {
Effect2 = input.ReadInt32();
break;
}
case 42:
case 40: {
parameter2_.AddEntriesFrom(input, _repeated_parameter2_codec);
break;
}
case 48: {
Effect3 = input.ReadInt32();
break;
}
case 58:
case 56: {
parameter3_.AddEntriesFrom(input, _repeated_parameter3_codec);
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.ReadInt32();
break;
}
case 16: {
Effect1 = input.ReadInt32();
break;
}
case 26:
case 24: {
parameter1_.AddEntriesFrom(ref input, _repeated_parameter1_codec);
break;
}
case 32: {
Effect2 = input.ReadInt32();
break;
}
case 42:
case 40: {
parameter2_.AddEntriesFrom(ref input, _repeated_parameter2_codec);
break;
}
case 48: {
Effect3 = input.ReadInt32();
break;
}
case 58:
case 56: {
parameter3_.AddEntriesFrom(ref input, _repeated_parameter3_codec);
break;
}
}
}
}
#endif
}
#endregion
}
#endregion Designer generated code