Protobuf...
This commit is contained in:
355
StudioObjectUnityAssetData.cs
Normal file
355
StudioObjectUnityAssetData.cs
Normal file
@@ -0,0 +1,355 @@
|
||||
// <auto-generated>
|
||||
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
// source: rec_room/persistence/studio_object_unity_asset_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/studio_object_unity_asset_data.proto</summary>
|
||||
public static partial class StudioObjectUnityAssetDataReflection {
|
||||
|
||||
#region Descriptor
|
||||
/// <summary>File descriptor for rec_room/persistence/studio_object_unity_asset_data.proto</summary>
|
||||
public static pbr::FileDescriptor Descriptor {
|
||||
get { return descriptor; }
|
||||
}
|
||||
private static pbr::FileDescriptor descriptor;
|
||||
|
||||
static StudioObjectUnityAssetDataReflection() {
|
||||
byte[] descriptorData = global::System.Convert.FromBase64String(
|
||||
string.Concat(
|
||||
"CjlyZWNfcm9vbS9wZXJzaXN0ZW5jZS9zdHVkaW9fb2JqZWN0X3VuaXR5X2Fz",
|
||||
"c2V0X2RhdGEucHJvdG8SCHJlY19yb29tGhRjb3JlL2d1aWRfZGF0YS5wcm90",
|
||||
"byK3AQoaU3R1ZGlvT2JqZWN0VW5pdHlBc3NldERhdGESKgoSdW5pdHlfc3Vi",
|
||||
"X2Fzc2V0X2lkGAEgASgLMg4uY29yZS5HdWlkRGF0YRIyChpyZWZlcmVuY2Vk",
|
||||
"X3VuaXR5X2Fzc2V0X2lkcxgCIAMoCzIOLmNvcmUuR3VpZERhdGESGQoRb2Jq",
|
||||
"ZWN0X2JvYXJkX2RhdGEYAyABKAwSHgoWb2JqZWN0X2JvYXJkX3NpZ25hdHVy",
|
||||
"ZRgEIAEoCUITqgIQUmVjUm9vbS5Qcm90b2J1ZmIGcHJvdG8z"));
|
||||
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.StudioObjectUnityAssetData), global::RecRoom.Protobuf.StudioObjectUnityAssetData.Parser, new[]{ "UnitySubAssetId", "ReferencedUnityAssetIds", "ObjectBoardData", "ObjectBoardSignature" }, null, null, null, null)
|
||||
}));
|
||||
}
|
||||
#endregion
|
||||
|
||||
}
|
||||
#region Messages
|
||||
[global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
|
||||
public sealed partial class StudioObjectUnityAssetData : pb::IMessage<StudioObjectUnityAssetData>
|
||||
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
||||
, pb::IBufferMessage
|
||||
#endif
|
||||
{
|
||||
private static readonly pb::MessageParser<StudioObjectUnityAssetData> _parser = new pb::MessageParser<StudioObjectUnityAssetData>(() => new StudioObjectUnityAssetData());
|
||||
private pb::UnknownFieldSet _unknownFields;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public static pb::MessageParser<StudioObjectUnityAssetData> 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.StudioObjectUnityAssetDataReflection.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 StudioObjectUnityAssetData() {
|
||||
OnConstruction();
|
||||
}
|
||||
|
||||
partial void OnConstruction();
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public StudioObjectUnityAssetData(StudioObjectUnityAssetData other) : this() {
|
||||
unitySubAssetId_ = other.unitySubAssetId_ != null ? other.unitySubAssetId_.Clone() : null;
|
||||
referencedUnityAssetIds_ = other.referencedUnityAssetIds_.Clone();
|
||||
objectBoardData_ = other.objectBoardData_;
|
||||
objectBoardSignature_ = other.objectBoardSignature_;
|
||||
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public StudioObjectUnityAssetData Clone() {
|
||||
return new StudioObjectUnityAssetData(this);
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "unity_sub_asset_id" field.</summary>
|
||||
public const int UnitySubAssetIdFieldNumber = 1;
|
||||
private global::RecRoom.Protobuf.Core.GuidData unitySubAssetId_;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public global::RecRoom.Protobuf.Core.GuidData UnitySubAssetId {
|
||||
get { return unitySubAssetId_; }
|
||||
set {
|
||||
unitySubAssetId_ = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "referenced_unity_asset_ids" field.</summary>
|
||||
public const int ReferencedUnityAssetIdsFieldNumber = 2;
|
||||
private static readonly pb::FieldCodec<global::RecRoom.Protobuf.Core.GuidData> _repeated_referencedUnityAssetIds_codec
|
||||
= pb::FieldCodec.ForMessage(18, global::RecRoom.Protobuf.Core.GuidData.Parser);
|
||||
private readonly pbc::RepeatedField<global::RecRoom.Protobuf.Core.GuidData> referencedUnityAssetIds_ = new pbc::RepeatedField<global::RecRoom.Protobuf.Core.GuidData>();
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public pbc::RepeatedField<global::RecRoom.Protobuf.Core.GuidData> ReferencedUnityAssetIds {
|
||||
get { return referencedUnityAssetIds_; }
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "object_board_data" field.</summary>
|
||||
public const int ObjectBoardDataFieldNumber = 3;
|
||||
private pb::ByteString objectBoardData_ = pb::ByteString.Empty;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public pb::ByteString ObjectBoardData {
|
||||
get { return objectBoardData_; }
|
||||
set {
|
||||
objectBoardData_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "object_board_signature" field.</summary>
|
||||
public const int ObjectBoardSignatureFieldNumber = 4;
|
||||
private string objectBoardSignature_ = "";
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public string ObjectBoardSignature {
|
||||
get { return objectBoardSignature_; }
|
||||
set {
|
||||
objectBoardSignature_ = 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 StudioObjectUnityAssetData);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool Equals(StudioObjectUnityAssetData other) {
|
||||
if (ReferenceEquals(other, null)) {
|
||||
return false;
|
||||
}
|
||||
if (ReferenceEquals(other, this)) {
|
||||
return true;
|
||||
}
|
||||
if (!object.Equals(UnitySubAssetId, other.UnitySubAssetId)) return false;
|
||||
if(!referencedUnityAssetIds_.Equals(other.referencedUnityAssetIds_)) return false;
|
||||
if (ObjectBoardData != other.ObjectBoardData) return false;
|
||||
if (ObjectBoardSignature != other.ObjectBoardSignature) 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 (unitySubAssetId_ != null) hash ^= UnitySubAssetId.GetHashCode();
|
||||
hash ^= referencedUnityAssetIds_.GetHashCode();
|
||||
if (ObjectBoardData.Length != 0) hash ^= ObjectBoardData.GetHashCode();
|
||||
if (ObjectBoardSignature.Length != 0) hash ^= ObjectBoardSignature.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 (unitySubAssetId_ != null) {
|
||||
output.WriteRawTag(10);
|
||||
output.WriteMessage(UnitySubAssetId);
|
||||
}
|
||||
referencedUnityAssetIds_.WriteTo(output, _repeated_referencedUnityAssetIds_codec);
|
||||
if (ObjectBoardData.Length != 0) {
|
||||
output.WriteRawTag(26);
|
||||
output.WriteBytes(ObjectBoardData);
|
||||
}
|
||||
if (ObjectBoardSignature.Length != 0) {
|
||||
output.WriteRawTag(34);
|
||||
output.WriteString(ObjectBoardSignature);
|
||||
}
|
||||
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 (unitySubAssetId_ != null) {
|
||||
output.WriteRawTag(10);
|
||||
output.WriteMessage(UnitySubAssetId);
|
||||
}
|
||||
referencedUnityAssetIds_.WriteTo(ref output, _repeated_referencedUnityAssetIds_codec);
|
||||
if (ObjectBoardData.Length != 0) {
|
||||
output.WriteRawTag(26);
|
||||
output.WriteBytes(ObjectBoardData);
|
||||
}
|
||||
if (ObjectBoardSignature.Length != 0) {
|
||||
output.WriteRawTag(34);
|
||||
output.WriteString(ObjectBoardSignature);
|
||||
}
|
||||
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 (unitySubAssetId_ != null) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeMessageSize(UnitySubAssetId);
|
||||
}
|
||||
size += referencedUnityAssetIds_.CalculateSize(_repeated_referencedUnityAssetIds_codec);
|
||||
if (ObjectBoardData.Length != 0) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeBytesSize(ObjectBoardData);
|
||||
}
|
||||
if (ObjectBoardSignature.Length != 0) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeStringSize(ObjectBoardSignature);
|
||||
}
|
||||
if (_unknownFields != null) {
|
||||
size += _unknownFields.CalculateSize();
|
||||
}
|
||||
return size;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void MergeFrom(StudioObjectUnityAssetData other) {
|
||||
if (other == null) {
|
||||
return;
|
||||
}
|
||||
if (other.unitySubAssetId_ != null) {
|
||||
if (unitySubAssetId_ == null) {
|
||||
UnitySubAssetId = new global::RecRoom.Protobuf.Core.GuidData();
|
||||
}
|
||||
UnitySubAssetId.MergeFrom(other.UnitySubAssetId);
|
||||
}
|
||||
referencedUnityAssetIds_.Add(other.referencedUnityAssetIds_);
|
||||
if (other.ObjectBoardData.Length != 0) {
|
||||
ObjectBoardData = other.ObjectBoardData;
|
||||
}
|
||||
if (other.ObjectBoardSignature.Length != 0) {
|
||||
ObjectBoardSignature = other.ObjectBoardSignature;
|
||||
}
|
||||
_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: {
|
||||
if (unitySubAssetId_ == null) {
|
||||
UnitySubAssetId = new global::RecRoom.Protobuf.Core.GuidData();
|
||||
}
|
||||
input.ReadMessage(UnitySubAssetId);
|
||||
break;
|
||||
}
|
||||
case 18: {
|
||||
referencedUnityAssetIds_.AddEntriesFrom(input, _repeated_referencedUnityAssetIds_codec);
|
||||
break;
|
||||
}
|
||||
case 26: {
|
||||
ObjectBoardData = input.ReadBytes();
|
||||
break;
|
||||
}
|
||||
case 34: {
|
||||
ObjectBoardSignature = input.ReadString();
|
||||
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: {
|
||||
if (unitySubAssetId_ == null) {
|
||||
UnitySubAssetId = new global::RecRoom.Protobuf.Core.GuidData();
|
||||
}
|
||||
input.ReadMessage(UnitySubAssetId);
|
||||
break;
|
||||
}
|
||||
case 18: {
|
||||
referencedUnityAssetIds_.AddEntriesFrom(ref input, _repeated_referencedUnityAssetIds_codec);
|
||||
break;
|
||||
}
|
||||
case 26: {
|
||||
ObjectBoardData = input.ReadBytes();
|
||||
break;
|
||||
}
|
||||
case 34: {
|
||||
ObjectBoardSignature = input.ReadString();
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
}
|
||||
|
||||
#endregion Designer generated code
|
||||
Reference in New Issue
Block a user