| | 1 | | // <auto-generated> |
| | 2 | | // Generated by the protocol buffer compiler. DO NOT EDIT! |
| | 3 | | // source: ecs/components/common/Vector3.proto |
| | 4 | | // </auto-generated> |
| | 5 | | #pragma warning disable 1591, 0612, 3021 |
| | 6 | | #region Designer generated code |
| | 7 | |
|
| | 8 | | using pb = global::Google.Protobuf; |
| | 9 | | using pbc = global::Google.Protobuf.Collections; |
| | 10 | | using pbr = global::Google.Protobuf.Reflection; |
| | 11 | | using scg = global::System.Collections.Generic; |
| | 12 | | namespace DCL.ECSComponents { |
| | 13 | |
|
| | 14 | | /// <summary>Holder for reflection information generated from ecs/components/common/Vector3.proto</summary> |
| | 15 | | public static partial class Vector3Reflection { |
| | 16 | |
|
| | 17 | | #region Descriptor |
| | 18 | | /// <summary>File descriptor for ecs/components/common/Vector3.proto</summary> |
| | 19 | | public static pbr::FileDescriptor Descriptor { |
| | 20 | | get { return descriptor; } |
| | 21 | | } |
| | 22 | | private static pbr::FileDescriptor descriptor; |
| | 23 | |
|
| | 24 | | static Vector3Reflection() { |
| | 25 | | byte[] descriptorData = global::System.Convert.FromBase64String( |
| | 26 | | string.Concat( |
| | 27 | | "CiNlY3MvY29tcG9uZW50cy9jb21tb24vVmVjdG9yMy5wcm90bxIQZGVjZW50", |
| | 28 | | "cmFsYW5kLmVjcyIqCgdWZWN0b3IzEgkKAXgYASABKAISCQoBeRgCIAEoAhIJ", |
| | 29 | | "CgF6GAMgASgCQhSqAhFEQ0wuRUNTQ29tcG9uZW50c2IGcHJvdG8z")); |
| | 30 | | descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, |
| | 31 | | new pbr::FileDescriptor[] { }, |
| | 32 | | new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { |
| | 33 | | new pbr::GeneratedClrTypeInfo(typeof(global::DCL.ECSComponents.Vector3), global::DCL.ECSComponents.Vector3.P |
| | 34 | | })); |
| | 35 | | } |
| | 36 | | #endregion |
| | 37 | |
|
| | 38 | | } |
| | 39 | | #region Messages |
| | 40 | | public sealed partial class Vector3 : pb::IMessage<Vector3> |
| | 41 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| | 42 | | , pb::IBufferMessage |
| | 43 | | #endif |
| | 44 | | { |
| 1 | 45 | | private static readonly pb::MessageParser<Vector3> _parser = new pb::MessageParser<Vector3>(() => new Vector3()); |
| | 46 | | private pb::UnknownFieldSet _unknownFields; |
| | 47 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 48 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| 0 | 49 | | public static pb::MessageParser<Vector3> Parser { get { return _parser; } } |
| | 50 | |
|
| | 51 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 52 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 53 | | public static pbr::MessageDescriptor Descriptor { |
| 0 | 54 | | get { return global::DCL.ECSComponents.Vector3Reflection.Descriptor.MessageTypes[0]; } |
| | 55 | | } |
| | 56 | |
|
| | 57 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 58 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 59 | | pbr::MessageDescriptor pb::IMessage.Descriptor { |
| 0 | 60 | | get { return Descriptor; } |
| | 61 | | } |
| | 62 | |
|
| | 63 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 64 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| 6 | 65 | | public Vector3() { |
| | 66 | | OnConstruction(); |
| 6 | 67 | | } |
| | 68 | |
|
| | 69 | | partial void OnConstruction(); |
| | 70 | |
|
| | 71 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 72 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| 9 | 73 | | public Vector3(Vector3 other) : this() { |
| 9 | 74 | | x_ = other.x_; |
| 9 | 75 | | y_ = other.y_; |
| 9 | 76 | | z_ = other.z_; |
| 9 | 77 | | _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); |
| 9 | 78 | | } |
| | 79 | |
|
| | 80 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 81 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 82 | | public Vector3 Clone() { |
| 9 | 83 | | return new Vector3(this); |
| | 84 | | } |
| | 85 | |
|
| | 86 | | /// <summary>Field number for the "x" field.</summary> |
| | 87 | | public const int XFieldNumber = 1; |
| | 88 | | private float x_; |
| | 89 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 90 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 91 | | public float X { |
| 0 | 92 | | get { return x_; } |
| | 93 | | set { |
| 6 | 94 | | x_ = value; |
| 6 | 95 | | } |
| | 96 | | } |
| | 97 | |
|
| | 98 | | /// <summary>Field number for the "y" field.</summary> |
| | 99 | | public const int YFieldNumber = 2; |
| | 100 | | private float y_; |
| | 101 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 102 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 103 | | public float Y { |
| 0 | 104 | | get { return y_; } |
| | 105 | | set { |
| 6 | 106 | | y_ = value; |
| 6 | 107 | | } |
| | 108 | | } |
| | 109 | |
|
| | 110 | | /// <summary>Field number for the "z" field.</summary> |
| | 111 | | public const int ZFieldNumber = 3; |
| | 112 | | private float z_; |
| | 113 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 114 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 115 | | public float Z { |
| 0 | 116 | | get { return z_; } |
| | 117 | | set { |
| 6 | 118 | | z_ = value; |
| 6 | 119 | | } |
| | 120 | | } |
| | 121 | |
|
| | 122 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 123 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 124 | | public override bool Equals(object other) { |
| 0 | 125 | | return Equals(other as Vector3); |
| | 126 | | } |
| | 127 | |
|
| | 128 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 129 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 130 | | public bool Equals(Vector3 other) { |
| 2 | 131 | | if (ReferenceEquals(other, null)) { |
| 0 | 132 | | return false; |
| | 133 | | } |
| 2 | 134 | | if (ReferenceEquals(other, this)) { |
| 0 | 135 | | return true; |
| | 136 | | } |
| 2 | 137 | | if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(X, other.X)) return false; |
| 2 | 138 | | if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Y, other.Y)) return false; |
| 2 | 139 | | if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Z, other.Z)) return false; |
| 2 | 140 | | return Equals(_unknownFields, other._unknownFields); |
| | 141 | | } |
| | 142 | |
|
| | 143 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 144 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 145 | | public override int GetHashCode() { |
| 0 | 146 | | int hash = 1; |
| 0 | 147 | | if (X != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(X); |
| 0 | 148 | | if (Y != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Y); |
| 0 | 149 | | if (Z != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Z); |
| 0 | 150 | | if (_unknownFields != null) { |
| 0 | 151 | | hash ^= _unknownFields.GetHashCode(); |
| | 152 | | } |
| 0 | 153 | | return hash; |
| | 154 | | } |
| | 155 | |
|
| | 156 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 157 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 158 | | public override string ToString() { |
| 0 | 159 | | return pb::JsonFormatter.ToDiagnosticString(this); |
| | 160 | | } |
| | 161 | |
|
| | 162 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 163 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 164 | | public void WriteTo(pb::CodedOutputStream output) { |
| | 165 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| | 166 | | output.WriteRawMessage(this); |
| | 167 | | #else |
| 2 | 168 | | if (X != 0F) { |
| 2 | 169 | | output.WriteRawTag(13); |
| 2 | 170 | | output.WriteFloat(X); |
| | 171 | | } |
| 2 | 172 | | if (Y != 0F) { |
| 2 | 173 | | output.WriteRawTag(21); |
| 2 | 174 | | output.WriteFloat(Y); |
| | 175 | | } |
| 2 | 176 | | if (Z != 0F) { |
| 2 | 177 | | output.WriteRawTag(29); |
| 2 | 178 | | output.WriteFloat(Z); |
| | 179 | | } |
| 2 | 180 | | if (_unknownFields != null) { |
| 0 | 181 | | _unknownFields.WriteTo(output); |
| | 182 | | } |
| | 183 | | #endif |
| 2 | 184 | | } |
| | 185 | |
|
| | 186 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| | 187 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 188 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 189 | | void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { |
| | 190 | | if (X != 0F) { |
| | 191 | | output.WriteRawTag(13); |
| | 192 | | output.WriteFloat(X); |
| | 193 | | } |
| | 194 | | if (Y != 0F) { |
| | 195 | | output.WriteRawTag(21); |
| | 196 | | output.WriteFloat(Y); |
| | 197 | | } |
| | 198 | | if (Z != 0F) { |
| | 199 | | output.WriteRawTag(29); |
| | 200 | | output.WriteFloat(Z); |
| | 201 | | } |
| | 202 | | if (_unknownFields != null) { |
| | 203 | | _unknownFields.WriteTo(ref output); |
| | 204 | | } |
| | 205 | | } |
| | 206 | | #endif |
| | 207 | |
|
| | 208 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 209 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 210 | | public int CalculateSize() { |
| 4 | 211 | | int size = 0; |
| 4 | 212 | | if (X != 0F) { |
| 4 | 213 | | size += 1 + 4; |
| | 214 | | } |
| 4 | 215 | | if (Y != 0F) { |
| 4 | 216 | | size += 1 + 4; |
| | 217 | | } |
| 4 | 218 | | if (Z != 0F) { |
| 4 | 219 | | size += 1 + 4; |
| | 220 | | } |
| 4 | 221 | | if (_unknownFields != null) { |
| 0 | 222 | | size += _unknownFields.CalculateSize(); |
| | 223 | | } |
| 4 | 224 | | return size; |
| | 225 | | } |
| | 226 | |
|
| | 227 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 228 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 229 | | public void MergeFrom(Vector3 other) { |
| 0 | 230 | | if (other == null) { |
| 0 | 231 | | return; |
| | 232 | | } |
| 0 | 233 | | if (other.X != 0F) { |
| 0 | 234 | | X = other.X; |
| | 235 | | } |
| 0 | 236 | | if (other.Y != 0F) { |
| 0 | 237 | | Y = other.Y; |
| | 238 | | } |
| 0 | 239 | | if (other.Z != 0F) { |
| 0 | 240 | | Z = other.Z; |
| | 241 | | } |
| 0 | 242 | | _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); |
| 0 | 243 | | } |
| | 244 | |
|
| | 245 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 246 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 247 | | public void MergeFrom(pb::CodedInputStream input) { |
| | 248 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| | 249 | | input.ReadRawMessage(this); |
| | 250 | | #else |
| | 251 | | uint tag; |
| 8 | 252 | | while ((tag = input.ReadTag()) != 0) { |
| | 253 | | switch(tag) { |
| | 254 | | default: |
| 0 | 255 | | _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); |
| 0 | 256 | | break; |
| | 257 | | case 13: { |
| 2 | 258 | | X = input.ReadFloat(); |
| 2 | 259 | | break; |
| | 260 | | } |
| | 261 | | case 21: { |
| 2 | 262 | | Y = input.ReadFloat(); |
| 2 | 263 | | break; |
| | 264 | | } |
| | 265 | | case 29: { |
| 2 | 266 | | Z = input.ReadFloat(); |
| | 267 | | break; |
| | 268 | | } |
| | 269 | | } |
| | 270 | | } |
| | 271 | | #endif |
| 2 | 272 | | } |
| | 273 | |
|
| | 274 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| | 275 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 276 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 277 | | void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { |
| | 278 | | uint tag; |
| | 279 | | while ((tag = input.ReadTag()) != 0) { |
| | 280 | | switch(tag) { |
| | 281 | | default: |
| | 282 | | _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); |
| | 283 | | break; |
| | 284 | | case 13: { |
| | 285 | | X = input.ReadFloat(); |
| | 286 | | break; |
| | 287 | | } |
| | 288 | | case 21: { |
| | 289 | | Y = input.ReadFloat(); |
| | 290 | | break; |
| | 291 | | } |
| | 292 | | case 29: { |
| | 293 | | Z = input.ReadFloat(); |
| | 294 | | break; |
| | 295 | | } |
| | 296 | | } |
| | 297 | | } |
| | 298 | | } |
| | 299 | | #endif |
| | 300 | |
|
| | 301 | | } |
| | 302 | |
|
| | 303 | | #endregion |
| | 304 | |
|
| | 305 | | } |
| | 306 | |
|
| | 307 | | #endregion Designer generated code |