| | 1 | | // <auto-generated> |
| | 2 | | // Generated by the protocol buffer compiler. DO NOT EDIT! |
| | 3 | | // source: BoxShape.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 BoxShape.proto</summary> |
| | 15 | | public static partial class BoxShapeReflection { |
| | 16 | |
|
| | 17 | | #region Descriptor |
| | 18 | | /// <summary>File descriptor for BoxShape.proto</summary> |
| | 19 | | public static pbr::FileDescriptor Descriptor { |
| | 20 | | get { return descriptor; } |
| | 21 | | } |
| | 22 | | private static pbr::FileDescriptor descriptor; |
| | 23 | |
|
| | 24 | | static BoxShapeReflection() { |
| | 25 | | byte[] descriptorData = global::System.Convert.FromBase64String( |
| | 26 | | string.Concat( |
| | 27 | | "Cg5Cb3hTaGFwZS5wcm90bxIQZGVjZW50cmFsYW5kLmVjcyKlAQoKUEJCb3hT", |
| | 28 | | "aGFwZRIcCg93aXRoX2NvbGxpc2lvbnMYASABKAhIAIgBARIfChJpc19wb2lu", |
| | 29 | | "dGVyX2Jsb2NrZXIYAiABKAhIAYgBARIUCgd2aXNpYmxlGAMgASgISAKIAQES", |
| | 30 | | "CwoDdXZzGAQgAygCQhIKEF93aXRoX2NvbGxpc2lvbnNCFQoTX2lzX3BvaW50", |
| | 31 | | "ZXJfYmxvY2tlckIKCghfdmlzaWJsZUIUqgIRRENMLkVDU0NvbXBvbmVudHNi", |
| | 32 | | "BnByb3RvMw==")); |
| | 33 | | descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, |
| | 34 | | new pbr::FileDescriptor[] { }, |
| | 35 | | new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { |
| | 36 | | new pbr::GeneratedClrTypeInfo(typeof(global::DCL.ECSComponents.PBBoxShape), global::DCL.ECSComponents.PBBoxS |
| | 37 | | })); |
| | 38 | | } |
| | 39 | | #endregion |
| | 40 | |
|
| | 41 | | } |
| | 42 | | #region Messages |
| | 43 | | public sealed partial class PBBoxShape : pb::IMessage<PBBoxShape> |
| | 44 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| | 45 | | , pb::IBufferMessage |
| | 46 | | #endif |
| | 47 | | { |
| 4 | 48 | | private static readonly pb::MessageParser<PBBoxShape> _parser = new pb::MessageParser<PBBoxShape>(() => new PBBoxSha |
| | 49 | | private pb::UnknownFieldSet _unknownFields; |
| | 50 | | private int _hasBits0; |
| | 51 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 52 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| 0 | 53 | | public static pb::MessageParser<PBBoxShape> Parser { get { return _parser; } } |
| | 54 | |
|
| | 55 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 56 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 57 | | public static pbr::MessageDescriptor Descriptor { |
| 0 | 58 | | get { return global::DCL.ECSComponents.BoxShapeReflection.Descriptor.MessageTypes[0]; } |
| | 59 | | } |
| | 60 | |
|
| | 61 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 62 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 63 | | pbr::MessageDescriptor pb::IMessage.Descriptor { |
| 0 | 64 | | get { return Descriptor; } |
| | 65 | | } |
| | 66 | |
|
| | 67 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 68 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| 1 | 69 | | public PBBoxShape() { |
| | 70 | | OnConstruction(); |
| 1 | 71 | | } |
| | 72 | |
|
| | 73 | | partial void OnConstruction(); |
| | 74 | |
|
| | 75 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 76 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| 0 | 77 | | public PBBoxShape(PBBoxShape other) : this() { |
| 0 | 78 | | _hasBits0 = other._hasBits0; |
| 0 | 79 | | withCollisions_ = other.withCollisions_; |
| 0 | 80 | | isPointerBlocker_ = other.isPointerBlocker_; |
| 0 | 81 | | visible_ = other.visible_; |
| 0 | 82 | | uvs_ = other.uvs_.Clone(); |
| 0 | 83 | | _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); |
| 0 | 84 | | } |
| | 85 | |
|
| | 86 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 87 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 88 | | public PBBoxShape Clone() { |
| 0 | 89 | | return new PBBoxShape(this); |
| | 90 | | } |
| | 91 | |
|
| | 92 | | /// <summary>Field number for the "with_collisions" field.</summary> |
| | 93 | | public const int WithCollisionsFieldNumber = 1; |
| | 94 | | private bool withCollisions_; |
| | 95 | | /// <summary> |
| | 96 | | /// @deprecated use MeshCollider instead https://github.com/decentraland/sdk/issues/366 |
| | 97 | | /// </summary> |
| | 98 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 99 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 100 | | public bool WithCollisions { |
| 0 | 101 | | get { if ((_hasBits0 & 1) != 0) { return withCollisions_; } else { return false; } } |
| | 102 | | set { |
| 6 | 103 | | _hasBits0 |= 1; |
| 6 | 104 | | withCollisions_ = value; |
| 6 | 105 | | } |
| | 106 | | } |
| | 107 | | /// <summary>Gets whether the "with_collisions" field is set</summary> |
| | 108 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 109 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 110 | | public bool HasWithCollisions { |
| 0 | 111 | | get { return (_hasBits0 & 1) != 0; } |
| | 112 | | } |
| | 113 | | /// <summary>Clears the value of the "with_collisions" field</summary> |
| | 114 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 115 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 116 | | public void ClearWithCollisions() { |
| 0 | 117 | | _hasBits0 &= ~1; |
| 0 | 118 | | } |
| | 119 | |
|
| | 120 | | /// <summary>Field number for the "is_pointer_blocker" field.</summary> |
| | 121 | | public const int IsPointerBlockerFieldNumber = 2; |
| | 122 | | private bool isPointerBlocker_; |
| | 123 | | /// <summary> |
| | 124 | | /// @deprecated use MeshCollider instead https://github.com/decentraland/sdk/issues/366 |
| | 125 | | /// </summary> |
| | 126 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 127 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 128 | | public bool IsPointerBlocker { |
| 0 | 129 | | get { if ((_hasBits0 & 2) != 0) { return isPointerBlocker_; } else { return false; } } |
| | 130 | | set { |
| 6 | 131 | | _hasBits0 |= 2; |
| 6 | 132 | | isPointerBlocker_ = value; |
| 6 | 133 | | } |
| | 134 | | } |
| | 135 | | /// <summary>Gets whether the "is_pointer_blocker" field is set</summary> |
| | 136 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 137 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 138 | | public bool HasIsPointerBlocker { |
| 0 | 139 | | get { return (_hasBits0 & 2) != 0; } |
| | 140 | | } |
| | 141 | | /// <summary>Clears the value of the "is_pointer_blocker" field</summary> |
| | 142 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 143 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 144 | | public void ClearIsPointerBlocker() { |
| 0 | 145 | | _hasBits0 &= ~2; |
| 0 | 146 | | } |
| | 147 | |
|
| | 148 | | /// <summary>Field number for the "visible" field.</summary> |
| | 149 | | public const int VisibleFieldNumber = 3; |
| | 150 | | private bool visible_; |
| | 151 | | /// <summary> |
| | 152 | | /// @deprecated use HiddenComponent instead https://github.com/decentraland/sdk/issues/353 |
| | 153 | | /// </summary> |
| | 154 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 155 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 156 | | public bool Visible { |
| 0 | 157 | | get { if ((_hasBits0 & 4) != 0) { return visible_; } else { return false; } } |
| | 158 | | set { |
| 6 | 159 | | _hasBits0 |= 4; |
| 6 | 160 | | visible_ = value; |
| 6 | 161 | | } |
| | 162 | | } |
| | 163 | | /// <summary>Gets whether the "visible" field is set</summary> |
| | 164 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 165 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 166 | | public bool HasVisible { |
| 0 | 167 | | get { return (_hasBits0 & 4) != 0; } |
| | 168 | | } |
| | 169 | | /// <summary>Clears the value of the "visible" field</summary> |
| | 170 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 171 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 172 | | public void ClearVisible() { |
| 0 | 173 | | _hasBits0 &= ~4; |
| 0 | 174 | | } |
| | 175 | |
|
| | 176 | | /// <summary>Field number for the "uvs" field.</summary> |
| | 177 | | public const int UvsFieldNumber = 4; |
| 1 | 178 | | private static readonly pb::FieldCodec<float> _repeated_uvs_codec |
| | 179 | | = pb::FieldCodec.ForFloat(34); |
| 1 | 180 | | private readonly pbc::RepeatedField<float> uvs_ = new pbc::RepeatedField<float>(); |
| | 181 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 182 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 183 | | public pbc::RepeatedField<float> Uvs { |
| 0 | 184 | | get { return uvs_; } |
| | 185 | | } |
| | 186 | |
|
| | 187 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 188 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 189 | | public override bool Equals(object other) { |
| 30 | 190 | | return Equals(other as PBBoxShape); |
| | 191 | | } |
| | 192 | |
|
| | 193 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 194 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 195 | | public bool Equals(PBBoxShape other) { |
| 30 | 196 | | if (ReferenceEquals(other, null)) { |
| 0 | 197 | | return false; |
| | 198 | | } |
| 30 | 199 | | if (ReferenceEquals(other, this)) { |
| 30 | 200 | | return true; |
| | 201 | | } |
| 0 | 202 | | if (WithCollisions != other.WithCollisions) return false; |
| 0 | 203 | | if (IsPointerBlocker != other.IsPointerBlocker) return false; |
| 0 | 204 | | if (Visible != other.Visible) return false; |
| 0 | 205 | | if(!uvs_.Equals(other.uvs_)) return false; |
| 0 | 206 | | return Equals(_unknownFields, other._unknownFields); |
| | 207 | | } |
| | 208 | |
|
| | 209 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 210 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 211 | | public override int GetHashCode() { |
| 48 | 212 | | int hash = 1; |
| 48 | 213 | | if (HasWithCollisions) hash ^= WithCollisions.GetHashCode(); |
| 48 | 214 | | if (HasIsPointerBlocker) hash ^= IsPointerBlocker.GetHashCode(); |
| 48 | 215 | | if (HasVisible) hash ^= Visible.GetHashCode(); |
| 48 | 216 | | hash ^= uvs_.GetHashCode(); |
| 48 | 217 | | if (_unknownFields != null) { |
| 0 | 218 | | hash ^= _unknownFields.GetHashCode(); |
| | 219 | | } |
| 48 | 220 | | return hash; |
| | 221 | | } |
| | 222 | |
|
| | 223 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 224 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 225 | | public override string ToString() { |
| 0 | 226 | | return pb::JsonFormatter.ToDiagnosticString(this); |
| | 227 | | } |
| | 228 | |
|
| | 229 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 230 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 231 | | public void WriteTo(pb::CodedOutputStream output) { |
| | 232 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| | 233 | | output.WriteRawMessage(this); |
| | 234 | | #else |
| 4 | 235 | | if (HasWithCollisions) { |
| 3 | 236 | | output.WriteRawTag(8); |
| 3 | 237 | | output.WriteBool(WithCollisions); |
| | 238 | | } |
| 4 | 239 | | if (HasIsPointerBlocker) { |
| 3 | 240 | | output.WriteRawTag(16); |
| 3 | 241 | | output.WriteBool(IsPointerBlocker); |
| | 242 | | } |
| 4 | 243 | | if (HasVisible) { |
| 3 | 244 | | output.WriteRawTag(24); |
| 3 | 245 | | output.WriteBool(Visible); |
| | 246 | | } |
| 4 | 247 | | uvs_.WriteTo(output, _repeated_uvs_codec); |
| 4 | 248 | | if (_unknownFields != null) { |
| 0 | 249 | | _unknownFields.WriteTo(output); |
| | 250 | | } |
| | 251 | | #endif |
| 4 | 252 | | } |
| | 253 | |
|
| | 254 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| | 255 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 256 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 257 | | void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { |
| | 258 | | if (HasWithCollisions) { |
| | 259 | | output.WriteRawTag(8); |
| | 260 | | output.WriteBool(WithCollisions); |
| | 261 | | } |
| | 262 | | if (HasIsPointerBlocker) { |
| | 263 | | output.WriteRawTag(16); |
| | 264 | | output.WriteBool(IsPointerBlocker); |
| | 265 | | } |
| | 266 | | if (HasVisible) { |
| | 267 | | output.WriteRawTag(24); |
| | 268 | | output.WriteBool(Visible); |
| | 269 | | } |
| | 270 | | uvs_.WriteTo(ref output, _repeated_uvs_codec); |
| | 271 | | if (_unknownFields != null) { |
| | 272 | | _unknownFields.WriteTo(ref output); |
| | 273 | | } |
| | 274 | | } |
| | 275 | | #endif |
| | 276 | |
|
| | 277 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 278 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 279 | | public int CalculateSize() { |
| 0 | 280 | | int size = 0; |
| 0 | 281 | | if (HasWithCollisions) { |
| 0 | 282 | | size += 1 + 1; |
| | 283 | | } |
| 0 | 284 | | if (HasIsPointerBlocker) { |
| 0 | 285 | | size += 1 + 1; |
| | 286 | | } |
| 0 | 287 | | if (HasVisible) { |
| 0 | 288 | | size += 1 + 1; |
| | 289 | | } |
| 0 | 290 | | size += uvs_.CalculateSize(_repeated_uvs_codec); |
| 0 | 291 | | if (_unknownFields != null) { |
| 0 | 292 | | size += _unknownFields.CalculateSize(); |
| | 293 | | } |
| 0 | 294 | | return size; |
| | 295 | | } |
| | 296 | |
|
| | 297 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 298 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 299 | | public void MergeFrom(PBBoxShape other) { |
| 0 | 300 | | if (other == null) { |
| 0 | 301 | | return; |
| | 302 | | } |
| 0 | 303 | | if (other.HasWithCollisions) { |
| 0 | 304 | | WithCollisions = other.WithCollisions; |
| | 305 | | } |
| 0 | 306 | | if (other.HasIsPointerBlocker) { |
| 0 | 307 | | IsPointerBlocker = other.IsPointerBlocker; |
| | 308 | | } |
| 0 | 309 | | if (other.HasVisible) { |
| 0 | 310 | | Visible = other.Visible; |
| | 311 | | } |
| 0 | 312 | | uvs_.Add(other.uvs_); |
| 0 | 313 | | _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); |
| 0 | 314 | | } |
| | 315 | |
|
| | 316 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 317 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 318 | | public void MergeFrom(pb::CodedInputStream input) { |
| | 319 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| | 320 | | input.ReadRawMessage(this); |
| | 321 | | #else |
| | 322 | | uint tag; |
| 15 | 323 | | while ((tag = input.ReadTag()) != 0) { |
| | 324 | | switch(tag) { |
| | 325 | | default: |
| 0 | 326 | | _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); |
| 0 | 327 | | break; |
| | 328 | | case 8: { |
| 3 | 329 | | WithCollisions = input.ReadBool(); |
| 3 | 330 | | break; |
| | 331 | | } |
| | 332 | | case 16: { |
| 3 | 333 | | IsPointerBlocker = input.ReadBool(); |
| 3 | 334 | | break; |
| | 335 | | } |
| | 336 | | case 24: { |
| 3 | 337 | | Visible = input.ReadBool(); |
| 3 | 338 | | break; |
| | 339 | | } |
| | 340 | | case 34: |
| | 341 | | case 37: { |
| 3 | 342 | | uvs_.AddEntriesFrom(input, _repeated_uvs_codec); |
| | 343 | | break; |
| | 344 | | } |
| | 345 | | } |
| | 346 | | } |
| | 347 | | #endif |
| 3 | 348 | | } |
| | 349 | |
|
| | 350 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| | 351 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 352 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 353 | | void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { |
| | 354 | | uint tag; |
| | 355 | | while ((tag = input.ReadTag()) != 0) { |
| | 356 | | switch(tag) { |
| | 357 | | default: |
| | 358 | | _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); |
| | 359 | | break; |
| | 360 | | case 8: { |
| | 361 | | WithCollisions = input.ReadBool(); |
| | 362 | | break; |
| | 363 | | } |
| | 364 | | case 16: { |
| | 365 | | IsPointerBlocker = input.ReadBool(); |
| | 366 | | break; |
| | 367 | | } |
| | 368 | | case 24: { |
| | 369 | | Visible = input.ReadBool(); |
| | 370 | | break; |
| | 371 | | } |
| | 372 | | case 34: |
| | 373 | | case 37: { |
| | 374 | | uvs_.AddEntriesFrom(ref input, _repeated_uvs_codec); |
| | 375 | | break; |
| | 376 | | } |
| | 377 | | } |
| | 378 | | } |
| | 379 | | } |
| | 380 | | #endif |
| | 381 | |
|
| | 382 | | } |
| | 383 | |
|
| | 384 | | #endregion |
| | 385 | |
|
| | 386 | | } |
| | 387 | |
|
| | 388 | | #endregion Designer generated code |