Protobuf...
This commit is contained in:
375
StickyData.cs
Normal file
375
StickyData.cs
Normal file
@@ -0,0 +1,375 @@
|
||||
// <auto-generated>
|
||||
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
// source: rec_room/persistence/sticky_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/sticky_data.proto</summary>
|
||||
public static partial class StickyDataReflection {
|
||||
|
||||
#region Descriptor
|
||||
/// <summary>File descriptor for rec_room/persistence/sticky_data.proto</summary>
|
||||
public static pbr::FileDescriptor Descriptor {
|
||||
get { return descriptor; }
|
||||
}
|
||||
private static pbr::FileDescriptor descriptor;
|
||||
|
||||
static StickyDataReflection() {
|
||||
byte[] descriptorData = global::System.Convert.FromBase64String(
|
||||
string.Concat(
|
||||
"CiZyZWNfcm9vbS9wZXJzaXN0ZW5jZS9zdGlja3lfZGF0YS5wcm90bxIIcmVj",
|
||||
"X3Jvb20aF2NvcmUvdmVjdG9yM19kYXRhLnByb3RvIqoBCgpTdGlja3lEYXRh",
|
||||
"EhMKC2lzX2F0dGFjaGVkGAEgASgIEhkKEWNvbm5lY3RlZF92aWV3X2lkGAIg",
|
||||
"ASgMEjUKGmF0dGFjaGVkX3JlbGF0aXZlX3Bvc2l0aW9uGAMgASgLMhEuY29y",
|
||||
"ZS5WZWN0b3IzRGF0YRI1ChphdHRhY2hlZF9yZWxhdGl2ZV9yb3RhdGlvbhgE",
|
||||
"IAEoCzIRLmNvcmUuVmVjdG9yM0RhdGFCE6oCEFJlY1Jvb20uUHJvdG9idWZi",
|
||||
"BnByb3RvMw=="));
|
||||
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
|
||||
new pbr::FileDescriptor[] { global::RecRoom.Protobuf.Core.Vector3DataReflection.Descriptor, },
|
||||
new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
|
||||
new pbr::GeneratedClrTypeInfo(typeof(global::RecRoom.Protobuf.StickyData), global::RecRoom.Protobuf.StickyData.Parser, new[]{ "IsAttached", "ConnectedViewId", "AttachedRelativePosition", "AttachedRelativeRotation" }, null, null, null, null)
|
||||
}));
|
||||
}
|
||||
#endregion
|
||||
|
||||
}
|
||||
#region Messages
|
||||
[global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
|
||||
public sealed partial class StickyData : pb::IMessage<StickyData>
|
||||
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
||||
, pb::IBufferMessage
|
||||
#endif
|
||||
{
|
||||
private static readonly pb::MessageParser<StickyData> _parser = new pb::MessageParser<StickyData>(() => new StickyData());
|
||||
private pb::UnknownFieldSet _unknownFields;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public static pb::MessageParser<StickyData> 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.StickyDataReflection.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 StickyData() {
|
||||
OnConstruction();
|
||||
}
|
||||
|
||||
partial void OnConstruction();
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public StickyData(StickyData other) : this() {
|
||||
isAttached_ = other.isAttached_;
|
||||
connectedViewId_ = other.connectedViewId_;
|
||||
attachedRelativePosition_ = other.attachedRelativePosition_ != null ? other.attachedRelativePosition_.Clone() : null;
|
||||
attachedRelativeRotation_ = other.attachedRelativeRotation_ != null ? other.attachedRelativeRotation_.Clone() : null;
|
||||
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public StickyData Clone() {
|
||||
return new StickyData(this);
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "is_attached" field.</summary>
|
||||
public const int IsAttachedFieldNumber = 1;
|
||||
private bool isAttached_;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool IsAttached {
|
||||
get { return isAttached_; }
|
||||
set {
|
||||
isAttached_ = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "connected_view_id" field.</summary>
|
||||
public const int ConnectedViewIdFieldNumber = 2;
|
||||
private pb::ByteString connectedViewId_ = pb::ByteString.Empty;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public pb::ByteString ConnectedViewId {
|
||||
get { return connectedViewId_; }
|
||||
set {
|
||||
connectedViewId_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "attached_relative_position" field.</summary>
|
||||
public const int AttachedRelativePositionFieldNumber = 3;
|
||||
private global::RecRoom.Protobuf.Core.Vector3Data attachedRelativePosition_;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public global::RecRoom.Protobuf.Core.Vector3Data AttachedRelativePosition {
|
||||
get { return attachedRelativePosition_; }
|
||||
set {
|
||||
attachedRelativePosition_ = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "attached_relative_rotation" field.</summary>
|
||||
public const int AttachedRelativeRotationFieldNumber = 4;
|
||||
private global::RecRoom.Protobuf.Core.Vector3Data attachedRelativeRotation_;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public global::RecRoom.Protobuf.Core.Vector3Data AttachedRelativeRotation {
|
||||
get { return attachedRelativeRotation_; }
|
||||
set {
|
||||
attachedRelativeRotation_ = value;
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public override bool Equals(object other) {
|
||||
return Equals(other as StickyData);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool Equals(StickyData other) {
|
||||
if (ReferenceEquals(other, null)) {
|
||||
return false;
|
||||
}
|
||||
if (ReferenceEquals(other, this)) {
|
||||
return true;
|
||||
}
|
||||
if (IsAttached != other.IsAttached) return false;
|
||||
if (ConnectedViewId != other.ConnectedViewId) return false;
|
||||
if (!object.Equals(AttachedRelativePosition, other.AttachedRelativePosition)) return false;
|
||||
if (!object.Equals(AttachedRelativeRotation, other.AttachedRelativeRotation)) 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 (IsAttached != false) hash ^= IsAttached.GetHashCode();
|
||||
if (ConnectedViewId.Length != 0) hash ^= ConnectedViewId.GetHashCode();
|
||||
if (attachedRelativePosition_ != null) hash ^= AttachedRelativePosition.GetHashCode();
|
||||
if (attachedRelativeRotation_ != null) hash ^= AttachedRelativeRotation.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 (IsAttached != false) {
|
||||
output.WriteRawTag(8);
|
||||
output.WriteBool(IsAttached);
|
||||
}
|
||||
if (ConnectedViewId.Length != 0) {
|
||||
output.WriteRawTag(18);
|
||||
output.WriteBytes(ConnectedViewId);
|
||||
}
|
||||
if (attachedRelativePosition_ != null) {
|
||||
output.WriteRawTag(26);
|
||||
output.WriteMessage(AttachedRelativePosition);
|
||||
}
|
||||
if (attachedRelativeRotation_ != null) {
|
||||
output.WriteRawTag(34);
|
||||
output.WriteMessage(AttachedRelativeRotation);
|
||||
}
|
||||
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 (IsAttached != false) {
|
||||
output.WriteRawTag(8);
|
||||
output.WriteBool(IsAttached);
|
||||
}
|
||||
if (ConnectedViewId.Length != 0) {
|
||||
output.WriteRawTag(18);
|
||||
output.WriteBytes(ConnectedViewId);
|
||||
}
|
||||
if (attachedRelativePosition_ != null) {
|
||||
output.WriteRawTag(26);
|
||||
output.WriteMessage(AttachedRelativePosition);
|
||||
}
|
||||
if (attachedRelativeRotation_ != null) {
|
||||
output.WriteRawTag(34);
|
||||
output.WriteMessage(AttachedRelativeRotation);
|
||||
}
|
||||
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 (IsAttached != false) {
|
||||
size += 1 + 1;
|
||||
}
|
||||
if (ConnectedViewId.Length != 0) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeBytesSize(ConnectedViewId);
|
||||
}
|
||||
if (attachedRelativePosition_ != null) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeMessageSize(AttachedRelativePosition);
|
||||
}
|
||||
if (attachedRelativeRotation_ != null) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeMessageSize(AttachedRelativeRotation);
|
||||
}
|
||||
if (_unknownFields != null) {
|
||||
size += _unknownFields.CalculateSize();
|
||||
}
|
||||
return size;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void MergeFrom(StickyData other) {
|
||||
if (other == null) {
|
||||
return;
|
||||
}
|
||||
if (other.IsAttached != false) {
|
||||
IsAttached = other.IsAttached;
|
||||
}
|
||||
if (other.ConnectedViewId.Length != 0) {
|
||||
ConnectedViewId = other.ConnectedViewId;
|
||||
}
|
||||
if (other.attachedRelativePosition_ != null) {
|
||||
if (attachedRelativePosition_ == null) {
|
||||
AttachedRelativePosition = new global::RecRoom.Protobuf.Core.Vector3Data();
|
||||
}
|
||||
AttachedRelativePosition.MergeFrom(other.AttachedRelativePosition);
|
||||
}
|
||||
if (other.attachedRelativeRotation_ != null) {
|
||||
if (attachedRelativeRotation_ == null) {
|
||||
AttachedRelativeRotation = new global::RecRoom.Protobuf.Core.Vector3Data();
|
||||
}
|
||||
AttachedRelativeRotation.MergeFrom(other.AttachedRelativeRotation);
|
||||
}
|
||||
_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: {
|
||||
IsAttached = input.ReadBool();
|
||||
break;
|
||||
}
|
||||
case 18: {
|
||||
ConnectedViewId = input.ReadBytes();
|
||||
break;
|
||||
}
|
||||
case 26: {
|
||||
if (attachedRelativePosition_ == null) {
|
||||
AttachedRelativePosition = new global::RecRoom.Protobuf.Core.Vector3Data();
|
||||
}
|
||||
input.ReadMessage(AttachedRelativePosition);
|
||||
break;
|
||||
}
|
||||
case 34: {
|
||||
if (attachedRelativeRotation_ == null) {
|
||||
AttachedRelativeRotation = new global::RecRoom.Protobuf.Core.Vector3Data();
|
||||
}
|
||||
input.ReadMessage(AttachedRelativeRotation);
|
||||
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: {
|
||||
IsAttached = input.ReadBool();
|
||||
break;
|
||||
}
|
||||
case 18: {
|
||||
ConnectedViewId = input.ReadBytes();
|
||||
break;
|
||||
}
|
||||
case 26: {
|
||||
if (attachedRelativePosition_ == null) {
|
||||
AttachedRelativePosition = new global::RecRoom.Protobuf.Core.Vector3Data();
|
||||
}
|
||||
input.ReadMessage(AttachedRelativePosition);
|
||||
break;
|
||||
}
|
||||
case 34: {
|
||||
if (attachedRelativeRotation_ == null) {
|
||||
AttachedRelativeRotation = new global::RecRoom.Protobuf.Core.Vector3Data();
|
||||
}
|
||||
input.ReadMessage(AttachedRelativeRotation);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
}
|
||||
|
||||
#endregion Designer generated code
|
||||
Reference in New Issue
Block a user