356 lines
13 KiB
C#
356 lines
13 KiB
C#
// <auto-generated>
|
|
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
// source: rec_room/persistence/invention_piece_data.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 RecRoom.Protobuf {
|
|
|
|
/// <summary>Holder for reflection information generated from rec_room/persistence/invention_piece_data.proto</summary>
|
|
public static partial class InventionPieceDataReflection {
|
|
|
|
#region Descriptor
|
|
/// <summary>File descriptor for rec_room/persistence/invention_piece_data.proto</summary>
|
|
public static pbr::FileDescriptor Descriptor {
|
|
get { return descriptor; }
|
|
}
|
|
private static pbr::FileDescriptor descriptor;
|
|
|
|
static InventionPieceDataReflection() {
|
|
byte[] descriptorData = global::System.Convert.FromBase64String(
|
|
string.Concat(
|
|
"Ci9yZWNfcm9vbS9wZXJzaXN0ZW5jZS9pbnZlbnRpb25fcGllY2VfZGF0YS5w",
|
|
"cm90bxIIcmVjX3Jvb20igAEKEkludmVudGlvblBpZWNlRGF0YRITCgtpbnN0",
|
|
"YW5jZV9pZBgBIAEoDBIUCgxpbnZlbnRpb25faWQYAiABKAMSFgoOdmVyc2lv",
|
|
"bl9udW1iZXIYAyABKAUSJwofb3JpZ2luYWxseV9mcm9tX290aGVyX2ludmVu",
|
|
"dGlvbhgEIAEoCEITqgIQUmVjUm9vbS5Qcm90b2J1ZmIGcHJvdG8z"));
|
|
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
|
|
new pbr::FileDescriptor[] { },
|
|
new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
|
|
new pbr::GeneratedClrTypeInfo(typeof(global::RecRoom.Protobuf.InventionPieceData), global::RecRoom.Protobuf.InventionPieceData.Parser, new[]{ "InstanceId", "InventionId", "VersionNumber", "OriginallyFromOtherInvention" }, null, null, null, null)
|
|
}));
|
|
}
|
|
#endregion
|
|
|
|
}
|
|
#region Messages
|
|
[global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
|
|
public sealed partial class InventionPieceData : pb::IMessage<InventionPieceData>
|
|
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
|
, pb::IBufferMessage
|
|
#endif
|
|
{
|
|
private static readonly pb::MessageParser<InventionPieceData> _parser = new pb::MessageParser<InventionPieceData>(() => new InventionPieceData());
|
|
private pb::UnknownFieldSet _unknownFields;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public static pb::MessageParser<InventionPieceData> Parser { get { return _parser; } }
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public static pbr::MessageDescriptor Descriptor {
|
|
get { return global::RecRoom.Protobuf.InventionPieceDataReflection.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 InventionPieceData() {
|
|
OnConstruction();
|
|
}
|
|
|
|
partial void OnConstruction();
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public InventionPieceData(InventionPieceData other) : this() {
|
|
instanceId_ = other.instanceId_;
|
|
inventionId_ = other.inventionId_;
|
|
versionNumber_ = other.versionNumber_;
|
|
originallyFromOtherInvention_ = other.originallyFromOtherInvention_;
|
|
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public InventionPieceData Clone() {
|
|
return new InventionPieceData(this);
|
|
}
|
|
|
|
/// <summary>Field number for the "instance_id" field.</summary>
|
|
public const int InstanceIdFieldNumber = 1;
|
|
private pb::ByteString instanceId_ = pb::ByteString.Empty;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public pb::ByteString InstanceId {
|
|
get { return instanceId_; }
|
|
set {
|
|
instanceId_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "invention_id" field.</summary>
|
|
public const int InventionIdFieldNumber = 2;
|
|
private long inventionId_;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public long InventionId {
|
|
get { return inventionId_; }
|
|
set {
|
|
inventionId_ = value;
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "version_number" field.</summary>
|
|
public const int VersionNumberFieldNumber = 3;
|
|
private int versionNumber_;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public int VersionNumber {
|
|
get { return versionNumber_; }
|
|
set {
|
|
versionNumber_ = value;
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "originally_from_other_invention" field.</summary>
|
|
public const int OriginallyFromOtherInventionFieldNumber = 4;
|
|
private bool originallyFromOtherInvention_;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public bool OriginallyFromOtherInvention {
|
|
get { return originallyFromOtherInvention_; }
|
|
set {
|
|
originallyFromOtherInvention_ = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public override bool Equals(object other) {
|
|
return Equals(other as InventionPieceData);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public bool Equals(InventionPieceData other) {
|
|
if (ReferenceEquals(other, null)) {
|
|
return false;
|
|
}
|
|
if (ReferenceEquals(other, this)) {
|
|
return true;
|
|
}
|
|
if (InstanceId != other.InstanceId) return false;
|
|
if (InventionId != other.InventionId) return false;
|
|
if (VersionNumber != other.VersionNumber) return false;
|
|
if (OriginallyFromOtherInvention != other.OriginallyFromOtherInvention) 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 (InstanceId.Length != 0) hash ^= InstanceId.GetHashCode();
|
|
if (InventionId != 0L) hash ^= InventionId.GetHashCode();
|
|
if (VersionNumber != 0) hash ^= VersionNumber.GetHashCode();
|
|
if (OriginallyFromOtherInvention != false) hash ^= OriginallyFromOtherInvention.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 (InstanceId.Length != 0) {
|
|
output.WriteRawTag(10);
|
|
output.WriteBytes(InstanceId);
|
|
}
|
|
if (InventionId != 0L) {
|
|
output.WriteRawTag(16);
|
|
output.WriteInt64(InventionId);
|
|
}
|
|
if (VersionNumber != 0) {
|
|
output.WriteRawTag(24);
|
|
output.WriteInt32(VersionNumber);
|
|
}
|
|
if (OriginallyFromOtherInvention != false) {
|
|
output.WriteRawTag(32);
|
|
output.WriteBool(OriginallyFromOtherInvention);
|
|
}
|
|
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 (InstanceId.Length != 0) {
|
|
output.WriteRawTag(10);
|
|
output.WriteBytes(InstanceId);
|
|
}
|
|
if (InventionId != 0L) {
|
|
output.WriteRawTag(16);
|
|
output.WriteInt64(InventionId);
|
|
}
|
|
if (VersionNumber != 0) {
|
|
output.WriteRawTag(24);
|
|
output.WriteInt32(VersionNumber);
|
|
}
|
|
if (OriginallyFromOtherInvention != false) {
|
|
output.WriteRawTag(32);
|
|
output.WriteBool(OriginallyFromOtherInvention);
|
|
}
|
|
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 (InstanceId.Length != 0) {
|
|
size += 1 + pb::CodedOutputStream.ComputeBytesSize(InstanceId);
|
|
}
|
|
if (InventionId != 0L) {
|
|
size += 1 + pb::CodedOutputStream.ComputeInt64Size(InventionId);
|
|
}
|
|
if (VersionNumber != 0) {
|
|
size += 1 + pb::CodedOutputStream.ComputeInt32Size(VersionNumber);
|
|
}
|
|
if (OriginallyFromOtherInvention != false) {
|
|
size += 1 + 1;
|
|
}
|
|
if (_unknownFields != null) {
|
|
size += _unknownFields.CalculateSize();
|
|
}
|
|
return size;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public void MergeFrom(InventionPieceData other) {
|
|
if (other == null) {
|
|
return;
|
|
}
|
|
if (other.InstanceId.Length != 0) {
|
|
InstanceId = other.InstanceId;
|
|
}
|
|
if (other.InventionId != 0L) {
|
|
InventionId = other.InventionId;
|
|
}
|
|
if (other.VersionNumber != 0) {
|
|
VersionNumber = other.VersionNumber;
|
|
}
|
|
if (other.OriginallyFromOtherInvention != false) {
|
|
OriginallyFromOtherInvention = other.OriginallyFromOtherInvention;
|
|
}
|
|
_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: {
|
|
InstanceId = input.ReadBytes();
|
|
break;
|
|
}
|
|
case 16: {
|
|
InventionId = input.ReadInt64();
|
|
break;
|
|
}
|
|
case 24: {
|
|
VersionNumber = input.ReadInt32();
|
|
break;
|
|
}
|
|
case 32: {
|
|
OriginallyFromOtherInvention = input.ReadBool();
|
|
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: {
|
|
InstanceId = input.ReadBytes();
|
|
break;
|
|
}
|
|
case 16: {
|
|
InventionId = input.ReadInt64();
|
|
break;
|
|
}
|
|
case 24: {
|
|
VersionNumber = input.ReadInt32();
|
|
break;
|
|
}
|
|
case 32: {
|
|
OriginallyFromOtherInvention = input.ReadBool();
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
#endif
|
|
|
|
}
|
|
|
|
#endregion
|
|
|
|
}
|
|
|
|
#endregion Designer generated code
|