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