// // Generated by the protocol buffer compiler. DO NOT EDIT! // source: circuits_v2/invention_piece_data.proto // #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 CircuitsV2.Protobuf { /// Holder for reflection information generated from circuits_v2/invention_piece_data.proto public static partial class InventionPieceDataReflection { #region Descriptor /// File descriptor for circuits_v2/invention_piece_data.proto public static pbr::FileDescriptor Descriptor { get { return descriptor; } } private static pbr::FileDescriptor descriptor; static InventionPieceDataReflection() { byte[] descriptorData = global::System.Convert.FromBase64String( string.Concat( "CiZjaXJjdWl0c192Mi9pbnZlbnRpb25fcGllY2VfZGF0YS5wcm90bxILY2ly", "Y3VpdHNfdjIaFGNvcmUvZ3VpZF9kYXRhLnByb3RvIrABChJJbnZlbnRpb25Q", "aWVjZURhdGESIwoLaW5zdGFuY2VfaWQYBSABKAsyDi5jb3JlLkd1aWREYXRh", "EhQKDGludmVudGlvbl9pZBgCIAEoAxIWCg52ZXJzaW9uX251bWJlchgDIAEo", "BRInCh9vcmlnaW5hbGx5X2Zyb21fb3RoZXJfaW52ZW50aW9uGAQgASgIEh4K", "FkRFUFJFQ0FURURfaW5zdGFuY2VfaWQYASABKAxCFqoCE0NpcmN1aXRzVjIu", "UHJvdG9idWZiBnByb3RvMw==")); descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, new pbr::FileDescriptor[] { global::RecRoom.Protobuf.Core.GuidDataReflection.Descriptor, }, new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::CircuitsV2.Protobuf.InventionPieceData), global::CircuitsV2.Protobuf.InventionPieceData.Parser, new[]{ "InstanceId", "InventionId", "VersionNumber", "OriginallyFromOtherInvention", "DEPRECATEDInstanceId" }, null, null, null, null) })); } #endregion } #region Messages [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] public sealed partial class InventionPieceData : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new InventionPieceData()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { get { return global::CircuitsV2.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_ != null ? other.instanceId_.Clone() : null; inventionId_ = other.inventionId_; versionNumber_ = other.versionNumber_; originallyFromOtherInvention_ = other.originallyFromOtherInvention_; dEPRECATEDInstanceId_ = other.dEPRECATEDInstanceId_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public InventionPieceData Clone() { return new InventionPieceData(this); } /// Field number for the "instance_id" field. public const int InstanceIdFieldNumber = 5; private global::RecRoom.Protobuf.Core.GuidData instanceId_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::RecRoom.Protobuf.Core.GuidData InstanceId { get { return instanceId_; } set { instanceId_ = value; } } /// Field number for the "invention_id" field. 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; } } /// Field number for the "version_number" field. 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; } } /// Field number for the "originally_from_other_invention" field. 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; } } /// Field number for the "DEPRECATED_instance_id" field. public const int DEPRECATEDInstanceIdFieldNumber = 1; private pb::ByteString dEPRECATEDInstanceId_ = pb::ByteString.Empty; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public pb::ByteString DEPRECATEDInstanceId { get { return dEPRECATEDInstanceId_; } set { dEPRECATEDInstanceId_ = 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 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 (!object.Equals(InstanceId, other.InstanceId)) return false; if (InventionId != other.InventionId) return false; if (VersionNumber != other.VersionNumber) return false; if (OriginallyFromOtherInvention != other.OriginallyFromOtherInvention) return false; if (DEPRECATEDInstanceId != other.DEPRECATEDInstanceId) 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_ != null) hash ^= InstanceId.GetHashCode(); if (InventionId != 0L) hash ^= InventionId.GetHashCode(); if (VersionNumber != 0) hash ^= VersionNumber.GetHashCode(); if (OriginallyFromOtherInvention != false) hash ^= OriginallyFromOtherInvention.GetHashCode(); if (DEPRECATEDInstanceId.Length != 0) hash ^= DEPRECATEDInstanceId.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 (DEPRECATEDInstanceId.Length != 0) { output.WriteRawTag(10); output.WriteBytes(DEPRECATEDInstanceId); } 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 (instanceId_ != null) { output.WriteRawTag(42); output.WriteMessage(InstanceId); } 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 (DEPRECATEDInstanceId.Length != 0) { output.WriteRawTag(10); output.WriteBytes(DEPRECATEDInstanceId); } 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 (instanceId_ != null) { output.WriteRawTag(42); output.WriteMessage(InstanceId); } 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_ != null) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(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 (DEPRECATEDInstanceId.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeBytesSize(DEPRECATEDInstanceId); } 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_ != null) { if (instanceId_ == null) { InstanceId = new global::RecRoom.Protobuf.Core.GuidData(); } InstanceId.MergeFrom(other.InstanceId); } if (other.InventionId != 0L) { InventionId = other.InventionId; } if (other.VersionNumber != 0) { VersionNumber = other.VersionNumber; } if (other.OriginallyFromOtherInvention != false) { OriginallyFromOtherInvention = other.OriginallyFromOtherInvention; } if (other.DEPRECATEDInstanceId.Length != 0) { DEPRECATEDInstanceId = other.DEPRECATEDInstanceId; } _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: { DEPRECATEDInstanceId = input.ReadBytes(); break; } case 16: { InventionId = input.ReadInt64(); break; } case 24: { VersionNumber = input.ReadInt32(); break; } case 32: { OriginallyFromOtherInvention = input.ReadBool(); break; } case 42: { if (instanceId_ == null) { InstanceId = new global::RecRoom.Protobuf.Core.GuidData(); } input.ReadMessage(InstanceId); 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: { DEPRECATEDInstanceId = input.ReadBytes(); break; } case 16: { InventionId = input.ReadInt64(); break; } case 24: { VersionNumber = input.ReadInt32(); break; } case 32: { OriginallyFromOtherInvention = input.ReadBool(); break; } case 42: { if (instanceId_ == null) { InstanceId = new global::RecRoom.Protobuf.Core.GuidData(); } input.ReadMessage(InstanceId); break; } } } } #endif } #endregion } #endregion Designer generated code