//
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: rec_room/persistence/invention_instance_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 RecRoom.Protobuf {
/// Holder for reflection information generated from rec_room/persistence/invention_instance_data.proto
public static partial class InventionInstanceDataReflection {
#region Descriptor
/// File descriptor for rec_room/persistence/invention_instance_data.proto
public static pbr::FileDescriptor Descriptor {
get { return descriptor; }
}
private static pbr::FileDescriptor descriptor;
static InventionInstanceDataReflection() {
byte[] descriptorData = global::System.Convert.FromBase64String(
string.Concat(
"CjJyZWNfcm9vbS9wZXJzaXN0ZW5jZS9pbnZlbnRpb25faW5zdGFuY2VfZGF0",
"YS5wcm90bxIIcmVjX3Jvb20aFGNvcmUvZ3VpZF9kYXRhLnByb3RvIlIKFUlu",
"dmVudGlvbkluc3RhbmNlRGF0YRIUCgxpbnZlbnRpb25faWQYASABKAMSIwoL",
"aW5zdGFuY2VfaWQYAiABKAsyDi5jb3JlLkd1aWREYXRhQhOqAhBSZWNSb29t",
"LlByb3RvYnVmYgZwcm90bzM="));
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::RecRoom.Protobuf.InventionInstanceData), global::RecRoom.Protobuf.InventionInstanceData.Parser, new[]{ "InventionId", "InstanceId" }, null, null, null, null)
}));
}
#endregion
}
#region Messages
[global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
public sealed partial class InventionInstanceData : pb::IMessage
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new InventionInstanceData());
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::RecRoom.Protobuf.InventionInstanceDataReflection.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 InventionInstanceData() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public InventionInstanceData(InventionInstanceData other) : this() {
inventionId_ = other.inventionId_;
instanceId_ = other.instanceId_ != null ? other.instanceId_.Clone() : null;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public InventionInstanceData Clone() {
return new InventionInstanceData(this);
}
/// Field number for the "invention_id" field.
public const int InventionIdFieldNumber = 1;
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 "instance_id" field.
public const int InstanceIdFieldNumber = 2;
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;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
return Equals(other as InventionInstanceData);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(InventionInstanceData other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (InventionId != other.InventionId) return false;
if (!object.Equals(InstanceId, other.InstanceId)) 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 (InventionId != 0L) hash ^= InventionId.GetHashCode();
if (instanceId_ != null) hash ^= InstanceId.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 (InventionId != 0L) {
output.WriteRawTag(8);
output.WriteInt64(InventionId);
}
if (instanceId_ != null) {
output.WriteRawTag(18);
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 (InventionId != 0L) {
output.WriteRawTag(8);
output.WriteInt64(InventionId);
}
if (instanceId_ != null) {
output.WriteRawTag(18);
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 (InventionId != 0L) {
size += 1 + pb::CodedOutputStream.ComputeInt64Size(InventionId);
}
if (instanceId_ != null) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(InstanceId);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(InventionInstanceData other) {
if (other == null) {
return;
}
if (other.InventionId != 0L) {
InventionId = other.InventionId;
}
if (other.instanceId_ != null) {
if (instanceId_ == null) {
InstanceId = new global::RecRoom.Protobuf.Core.GuidData();
}
InstanceId.MergeFrom(other.InstanceId);
}
_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: {
InventionId = input.ReadInt64();
break;
}
case 18: {
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 8: {
InventionId = input.ReadInt64();
break;
}
case 18: {
if (instanceId_ == null) {
InstanceId = new global::RecRoom.Protobuf.Core.GuidData();
}
input.ReadMessage(InstanceId);
break;
}
}
}
}
#endif
}
#endregion
}
#endregion Designer generated code