| | 1 | | // <auto-generated> |
| | 2 | | // Generated by the protocol buffer compiler. DO NOT EDIT! |
| | 3 | | // source: OnPointerUpResult.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 OnPointerUpResult.proto</summary> |
| | 15 | | public static partial class OnPointerUpResultReflection { |
| | 16 | |
|
| | 17 | | #region Descriptor |
| | 18 | | /// <summary>File descriptor for OnPointerUpResult.proto</summary> |
| | 19 | | public static pbr::FileDescriptor Descriptor { |
| 0 | 20 | | get { return descriptor; } |
| | 21 | | } |
| | 22 | | private static pbr::FileDescriptor descriptor; |
| | 23 | |
|
| | 24 | | static OnPointerUpResultReflection() { |
| 0 | 25 | | byte[] descriptorData = global::System.Convert.FromBase64String( |
| | 26 | | string.Concat( |
| | 27 | | "ChdPblBvaW50ZXJVcFJlc3VsdC5wcm90bxIQZGVjZW50cmFsYW5kLmVjcxoU", |
| | 28 | | "Y29tbW9uL1ZlY3RvcjMucHJvdG8aGWNvbW1vbi9BY3Rpb25CdXR0b24ucHJv", |
| | 29 | | "dG8i1QEKE1BCT25Qb2ludGVyVXBSZXN1bHQSHQoGYnV0dG9uGAIgASgOMg0u", |
| | 30 | | "QWN0aW9uQnV0dG9uEhAKCG1lc2hOYW1lGAMgASgJEhgKBm9yaWdpbhgEIAEo", |
| | 31 | | "CzIILlZlY3RvcjMSGwoJZGlyZWN0aW9uGAUgASgLMgguVmVjdG9yMxIXCgVw", |
| | 32 | | "b2ludBgGIAEoCzIILlZlY3RvcjMSGAoGbm9ybWFsGAcgASgLMgguVmVjdG9y", |
| | 33 | | "MxIQCghkaXN0YW5jZRgIIAEoAhIRCgl0aW1lc3RhbXAYCSABKAVCFKoCEURD", |
| | 34 | | "TC5FQ1NDb21wb25lbnRzYgZwcm90bzM=")); |
| 0 | 35 | | descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, |
| | 36 | | new pbr::FileDescriptor[] { global::Vector3Reflection.Descriptor, global::ActionButtonReflection.Descriptor, } |
| | 37 | | new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { |
| | 38 | | new pbr::GeneratedClrTypeInfo(typeof(global::DCL.ECSComponents.PBOnPointerUpResult), global::DCL.ECSComponen |
| | 39 | | })); |
| 0 | 40 | | } |
| | 41 | | #endregion |
| | 42 | |
|
| | 43 | | } |
| | 44 | | #region Messages |
| | 45 | | public sealed partial class PBOnPointerUpResult : pb::IMessage<PBOnPointerUpResult> { |
| | 46 | | private static readonly pb::MessageParser<PBOnPointerUpResult> _parser = new pb::MessageParser<PBOnPointerUpResult>( |
| | 47 | | private pb::UnknownFieldSet _unknownFields; |
| | 48 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 49 | | public static pb::MessageParser<PBOnPointerUpResult> Parser { get { return _parser; } } |
| | 50 | |
|
| | 51 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 52 | | public static pbr::MessageDescriptor Descriptor { |
| | 53 | | get { return global::DCL.ECSComponents.OnPointerUpResultReflection.Descriptor.MessageTypes[0]; } |
| | 54 | | } |
| | 55 | |
|
| | 56 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 57 | | pbr::MessageDescriptor pb::IMessage.Descriptor { |
| | 58 | | get { return Descriptor; } |
| | 59 | | } |
| | 60 | |
|
| | 61 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 62 | | public PBOnPointerUpResult() { |
| | 63 | | OnConstruction(); |
| | 64 | | } |
| | 65 | |
|
| | 66 | | partial void OnConstruction(); |
| | 67 | |
|
| | 68 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 69 | | public PBOnPointerUpResult(PBOnPointerUpResult other) : this() { |
| | 70 | | button_ = other.button_; |
| | 71 | | meshName_ = other.meshName_; |
| | 72 | | origin_ = other.origin_ != null ? other.origin_.Clone() : null; |
| | 73 | | direction_ = other.direction_ != null ? other.direction_.Clone() : null; |
| | 74 | | point_ = other.point_ != null ? other.point_.Clone() : null; |
| | 75 | | normal_ = other.normal_ != null ? other.normal_.Clone() : null; |
| | 76 | | distance_ = other.distance_; |
| | 77 | | timestamp_ = other.timestamp_; |
| | 78 | | _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); |
| | 79 | | } |
| | 80 | |
|
| | 81 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 82 | | public PBOnPointerUpResult Clone() { |
| | 83 | | return new PBOnPointerUpResult(this); |
| | 84 | | } |
| | 85 | |
|
| | 86 | | /// <summary>Field number for the "button" field.</summary> |
| | 87 | | public const int ButtonFieldNumber = 2; |
| | 88 | | private global::ActionButton button_ = global::ActionButton.Pointer; |
| | 89 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 90 | | public global::ActionButton Button { |
| | 91 | | get { return button_; } |
| | 92 | | set { |
| | 93 | | button_ = value; |
| | 94 | | } |
| | 95 | | } |
| | 96 | |
|
| | 97 | | /// <summary>Field number for the "meshName" field.</summary> |
| | 98 | | public const int MeshNameFieldNumber = 3; |
| | 99 | | private string meshName_ = ""; |
| | 100 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 101 | | public string MeshName { |
| | 102 | | get { return meshName_; } |
| | 103 | | set { |
| | 104 | | meshName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); |
| | 105 | | } |
| | 106 | | } |
| | 107 | |
|
| | 108 | | /// <summary>Field number for the "origin" field.</summary> |
| | 109 | | public const int OriginFieldNumber = 4; |
| | 110 | | private global::Vector3 origin_; |
| | 111 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 112 | | public global::Vector3 Origin { |
| | 113 | | get { return origin_; } |
| | 114 | | set { |
| | 115 | | origin_ = value; |
| | 116 | | } |
| | 117 | | } |
| | 118 | |
|
| | 119 | | /// <summary>Field number for the "direction" field.</summary> |
| | 120 | | public const int DirectionFieldNumber = 5; |
| | 121 | | private global::Vector3 direction_; |
| | 122 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 123 | | public global::Vector3 Direction { |
| | 124 | | get { return direction_; } |
| | 125 | | set { |
| | 126 | | direction_ = value; |
| | 127 | | } |
| | 128 | | } |
| | 129 | |
|
| | 130 | | /// <summary>Field number for the "point" field.</summary> |
| | 131 | | public const int PointFieldNumber = 6; |
| | 132 | | private global::Vector3 point_; |
| | 133 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 134 | | public global::Vector3 Point { |
| | 135 | | get { return point_; } |
| | 136 | | set { |
| | 137 | | point_ = value; |
| | 138 | | } |
| | 139 | | } |
| | 140 | |
|
| | 141 | | /// <summary>Field number for the "normal" field.</summary> |
| | 142 | | public const int NormalFieldNumber = 7; |
| | 143 | | private global::Vector3 normal_; |
| | 144 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 145 | | public global::Vector3 Normal { |
| | 146 | | get { return normal_; } |
| | 147 | | set { |
| | 148 | | normal_ = value; |
| | 149 | | } |
| | 150 | | } |
| | 151 | |
|
| | 152 | | /// <summary>Field number for the "distance" field.</summary> |
| | 153 | | public const int DistanceFieldNumber = 8; |
| | 154 | | private float distance_; |
| | 155 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 156 | | public float Distance { |
| | 157 | | get { return distance_; } |
| | 158 | | set { |
| | 159 | | distance_ = value; |
| | 160 | | } |
| | 161 | | } |
| | 162 | |
|
| | 163 | | /// <summary>Field number for the "timestamp" field.</summary> |
| | 164 | | public const int TimestampFieldNumber = 9; |
| | 165 | | private int timestamp_; |
| | 166 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 167 | | public int Timestamp { |
| | 168 | | get { return timestamp_; } |
| | 169 | | set { |
| | 170 | | timestamp_ = value; |
| | 171 | | } |
| | 172 | | } |
| | 173 | |
|
| | 174 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 175 | | public override bool Equals(object other) { |
| | 176 | | return Equals(other as PBOnPointerUpResult); |
| | 177 | | } |
| | 178 | |
|
| | 179 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 180 | | public bool Equals(PBOnPointerUpResult other) { |
| | 181 | | if (ReferenceEquals(other, null)) { |
| | 182 | | return false; |
| | 183 | | } |
| | 184 | | if (ReferenceEquals(other, this)) { |
| | 185 | | return true; |
| | 186 | | } |
| | 187 | | if (Button != other.Button) return false; |
| | 188 | | if (MeshName != other.MeshName) return false; |
| | 189 | | if (!object.Equals(Origin, other.Origin)) return false; |
| | 190 | | if (!object.Equals(Direction, other.Direction)) return false; |
| | 191 | | if (!object.Equals(Point, other.Point)) return false; |
| | 192 | | if (!object.Equals(Normal, other.Normal)) return false; |
| | 193 | | if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Distance, other.Distance)) return false; |
| | 194 | | if (Timestamp != other.Timestamp) return false; |
| | 195 | | return Equals(_unknownFields, other._unknownFields); |
| | 196 | | } |
| | 197 | |
|
| | 198 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 199 | | public override int GetHashCode() { |
| | 200 | | int hash = 1; |
| | 201 | | if (Button != global::ActionButton.Pointer) hash ^= Button.GetHashCode(); |
| | 202 | | if (MeshName.Length != 0) hash ^= MeshName.GetHashCode(); |
| | 203 | | if (origin_ != null) hash ^= Origin.GetHashCode(); |
| | 204 | | if (direction_ != null) hash ^= Direction.GetHashCode(); |
| | 205 | | if (point_ != null) hash ^= Point.GetHashCode(); |
| | 206 | | if (normal_ != null) hash ^= Normal.GetHashCode(); |
| | 207 | | if (Distance != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Distance); |
| | 208 | | if (Timestamp != 0) hash ^= Timestamp.GetHashCode(); |
| | 209 | | if (_unknownFields != null) { |
| | 210 | | hash ^= _unknownFields.GetHashCode(); |
| | 211 | | } |
| | 212 | | return hash; |
| | 213 | | } |
| | 214 | |
|
| | 215 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 216 | | public override string ToString() { |
| | 217 | | return pb::JsonFormatter.ToDiagnosticString(this); |
| | 218 | | } |
| | 219 | |
|
| | 220 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 221 | | public void WriteTo(pb::CodedOutputStream output) { |
| | 222 | | if (Button != global::ActionButton.Pointer) { |
| | 223 | | output.WriteRawTag(16); |
| | 224 | | output.WriteEnum((int) Button); |
| | 225 | | } |
| | 226 | | if (MeshName.Length != 0) { |
| | 227 | | output.WriteRawTag(26); |
| | 228 | | output.WriteString(MeshName); |
| | 229 | | } |
| | 230 | | if (origin_ != null) { |
| | 231 | | output.WriteRawTag(34); |
| | 232 | | output.WriteMessage(Origin); |
| | 233 | | } |
| | 234 | | if (direction_ != null) { |
| | 235 | | output.WriteRawTag(42); |
| | 236 | | output.WriteMessage(Direction); |
| | 237 | | } |
| | 238 | | if (point_ != null) { |
| | 239 | | output.WriteRawTag(50); |
| | 240 | | output.WriteMessage(Point); |
| | 241 | | } |
| | 242 | | if (normal_ != null) { |
| | 243 | | output.WriteRawTag(58); |
| | 244 | | output.WriteMessage(Normal); |
| | 245 | | } |
| | 246 | | if (Distance != 0F) { |
| | 247 | | output.WriteRawTag(69); |
| | 248 | | output.WriteFloat(Distance); |
| | 249 | | } |
| | 250 | | if (Timestamp != 0) { |
| | 251 | | output.WriteRawTag(72); |
| | 252 | | output.WriteInt32(Timestamp); |
| | 253 | | } |
| | 254 | | if (_unknownFields != null) { |
| | 255 | | _unknownFields.WriteTo(output); |
| | 256 | | } |
| | 257 | | } |
| | 258 | |
|
| | 259 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 260 | | public int CalculateSize() { |
| | 261 | | int size = 0; |
| | 262 | | if (Button != global::ActionButton.Pointer) { |
| | 263 | | size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Button); |
| | 264 | | } |
| | 265 | | if (MeshName.Length != 0) { |
| | 266 | | size += 1 + pb::CodedOutputStream.ComputeStringSize(MeshName); |
| | 267 | | } |
| | 268 | | if (origin_ != null) { |
| | 269 | | size += 1 + pb::CodedOutputStream.ComputeMessageSize(Origin); |
| | 270 | | } |
| | 271 | | if (direction_ != null) { |
| | 272 | | size += 1 + pb::CodedOutputStream.ComputeMessageSize(Direction); |
| | 273 | | } |
| | 274 | | if (point_ != null) { |
| | 275 | | size += 1 + pb::CodedOutputStream.ComputeMessageSize(Point); |
| | 276 | | } |
| | 277 | | if (normal_ != null) { |
| | 278 | | size += 1 + pb::CodedOutputStream.ComputeMessageSize(Normal); |
| | 279 | | } |
| | 280 | | if (Distance != 0F) { |
| | 281 | | size += 1 + 4; |
| | 282 | | } |
| | 283 | | if (Timestamp != 0) { |
| | 284 | | size += 1 + pb::CodedOutputStream.ComputeInt32Size(Timestamp); |
| | 285 | | } |
| | 286 | | if (_unknownFields != null) { |
| | 287 | | size += _unknownFields.CalculateSize(); |
| | 288 | | } |
| | 289 | | return size; |
| | 290 | | } |
| | 291 | |
|
| | 292 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 293 | | public void MergeFrom(PBOnPointerUpResult other) { |
| | 294 | | if (other == null) { |
| | 295 | | return; |
| | 296 | | } |
| | 297 | | if (other.Button != global::ActionButton.Pointer) { |
| | 298 | | Button = other.Button; |
| | 299 | | } |
| | 300 | | if (other.MeshName.Length != 0) { |
| | 301 | | MeshName = other.MeshName; |
| | 302 | | } |
| | 303 | | if (other.origin_ != null) { |
| | 304 | | if (origin_ == null) { |
| | 305 | | Origin = new global::Vector3(); |
| | 306 | | } |
| | 307 | | Origin.MergeFrom(other.Origin); |
| | 308 | | } |
| | 309 | | if (other.direction_ != null) { |
| | 310 | | if (direction_ == null) { |
| | 311 | | Direction = new global::Vector3(); |
| | 312 | | } |
| | 313 | | Direction.MergeFrom(other.Direction); |
| | 314 | | } |
| | 315 | | if (other.point_ != null) { |
| | 316 | | if (point_ == null) { |
| | 317 | | Point = new global::Vector3(); |
| | 318 | | } |
| | 319 | | Point.MergeFrom(other.Point); |
| | 320 | | } |
| | 321 | | if (other.normal_ != null) { |
| | 322 | | if (normal_ == null) { |
| | 323 | | Normal = new global::Vector3(); |
| | 324 | | } |
| | 325 | | Normal.MergeFrom(other.Normal); |
| | 326 | | } |
| | 327 | | if (other.Distance != 0F) { |
| | 328 | | Distance = other.Distance; |
| | 329 | | } |
| | 330 | | if (other.Timestamp != 0) { |
| | 331 | | Timestamp = other.Timestamp; |
| | 332 | | } |
| | 333 | | _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); |
| | 334 | | } |
| | 335 | |
|
| | 336 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 337 | | public void MergeFrom(pb::CodedInputStream input) { |
| | 338 | | uint tag; |
| | 339 | | while ((tag = input.ReadTag()) != 0) { |
| | 340 | | switch(tag) { |
| | 341 | | default: |
| | 342 | | _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); |
| | 343 | | break; |
| | 344 | | case 16: { |
| | 345 | | Button = (global::ActionButton) input.ReadEnum(); |
| | 346 | | break; |
| | 347 | | } |
| | 348 | | case 26: { |
| | 349 | | MeshName = input.ReadString(); |
| | 350 | | break; |
| | 351 | | } |
| | 352 | | case 34: { |
| | 353 | | if (origin_ == null) { |
| | 354 | | Origin = new global::Vector3(); |
| | 355 | | } |
| | 356 | | input.ReadMessage(Origin); |
| | 357 | | break; |
| | 358 | | } |
| | 359 | | case 42: { |
| | 360 | | if (direction_ == null) { |
| | 361 | | Direction = new global::Vector3(); |
| | 362 | | } |
| | 363 | | input.ReadMessage(Direction); |
| | 364 | | break; |
| | 365 | | } |
| | 366 | | case 50: { |
| | 367 | | if (point_ == null) { |
| | 368 | | Point = new global::Vector3(); |
| | 369 | | } |
| | 370 | | input.ReadMessage(Point); |
| | 371 | | break; |
| | 372 | | } |
| | 373 | | case 58: { |
| | 374 | | if (normal_ == null) { |
| | 375 | | Normal = new global::Vector3(); |
| | 376 | | } |
| | 377 | | input.ReadMessage(Normal); |
| | 378 | | break; |
| | 379 | | } |
| | 380 | | case 69: { |
| | 381 | | Distance = input.ReadFloat(); |
| | 382 | | break; |
| | 383 | | } |
| | 384 | | case 72: { |
| | 385 | | Timestamp = input.ReadInt32(); |
| | 386 | | break; |
| | 387 | | } |
| | 388 | | } |
| | 389 | | } |
| | 390 | | } |
| | 391 | |
|
| | 392 | | } |
| | 393 | |
|
| | 394 | | #endregion |
| | 395 | |
|
| | 396 | | } |
| | 397 | |
|
| | 398 | | #endregion Designer generated code |