| | 1 | | // <auto-generated> |
| | 2 | | // Generated by the protocol buffer compiler. DO NOT EDIT! |
| | 3 | | // source: decentraland/sdk/components/gltf_container.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 decentraland/sdk/components/gltf_container.proto</summar |
| | 15 | | public static partial class GltfContainerReflection { |
| | 16 | |
|
| | 17 | | #region Descriptor |
| | 18 | | /// <summary>File descriptor for decentraland/sdk/components/gltf_container.proto</summary> |
| | 19 | | public static pbr::FileDescriptor Descriptor { |
| 0 | 20 | | get { return descriptor; } |
| | 21 | | } |
| | 22 | | private static pbr::FileDescriptor descriptor; |
| | 23 | |
|
| | 24 | | static GltfContainerReflection() { |
| 0 | 25 | | byte[] descriptorData = global::System.Convert.FromBase64String( |
| | 26 | | string.Concat( |
| | 27 | | "CjBkZWNlbnRyYWxhbmQvc2RrL2NvbXBvbmVudHMvZ2x0Zl9jb250YWluZXIu", |
| | 28 | | "cHJvdG8SG2RlY2VudHJhbGFuZC5zZGsuY29tcG9uZW50cyLKAQoPUEJHbHRm", |
| | 29 | | "Q29udGFpbmVyEgsKA3NyYxgBIAEoCRIqCh12aXNpYmxlX21lc2hlc19jb2xs", |
| | 30 | | "aXNpb25fbWFzaxgEIAEoDUgAiAEBEiwKH2ludmlzaWJsZV9tZXNoZXNfY29s", |
| | 31 | | "bGlzaW9uX21hc2sYBSABKA1IAYgBAUIgCh5fdmlzaWJsZV9tZXNoZXNfY29s", |
| | 32 | | "bGlzaW9uX21hc2tCIgogX2ludmlzaWJsZV9tZXNoZXNfY29sbGlzaW9uX21h", |
| | 33 | | "c2tKBAgCEANKBAgDEARCFKoCEURDTC5FQ1NDb21wb25lbnRzYgZwcm90bzM=")); |
| 0 | 34 | | descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, |
| | 35 | | new pbr::FileDescriptor[] { }, |
| | 36 | | new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { |
| | 37 | | new pbr::GeneratedClrTypeInfo(typeof(global::DCL.ECSComponents.PBGltfContainer), global::DCL.ECSComponents.P |
| | 38 | | })); |
| 0 | 39 | | } |
| | 40 | | #endregion |
| | 41 | |
|
| | 42 | | } |
| | 43 | | #region Messages |
| | 44 | | /// <summary> |
| | 45 | | /// GltfContainer loads a GLTF file (and any additional files packaged inside) attached to an Entity. |
| | 46 | | /// |
| | 47 | | /// This allows the use of custom models, materials, collision boundaries and shapes that can't be |
| | 48 | | /// achieved using MeshRenderer, MeshCollider and other standard components. |
| | 49 | | /// </summary> |
| | 50 | | public sealed partial class PBGltfContainer : pb::IMessage<PBGltfContainer> |
| | 51 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| | 52 | | , pb::IBufferMessage |
| | 53 | | #endif |
| | 54 | | { |
| | 55 | | private static readonly pb::MessageParser<PBGltfContainer> _parser = new pb::MessageParser<PBGltfContainer>(() => ne |
| | 56 | | private pb::UnknownFieldSet _unknownFields; |
| | 57 | | private int _hasBits0; |
| | 58 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 59 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 60 | | public static pb::MessageParser<PBGltfContainer> Parser { get { return _parser; } } |
| | 61 | |
|
| | 62 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 63 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 64 | | public static pbr::MessageDescriptor Descriptor { |
| | 65 | | get { return global::DCL.ECSComponents.GltfContainerReflection.Descriptor.MessageTypes[0]; } |
| | 66 | | } |
| | 67 | |
|
| | 68 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 69 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 70 | | pbr::MessageDescriptor pb::IMessage.Descriptor { |
| | 71 | | get { return Descriptor; } |
| | 72 | | } |
| | 73 | |
|
| | 74 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 75 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 76 | | public PBGltfContainer() { |
| | 77 | | OnConstruction(); |
| | 78 | | } |
| | 79 | |
|
| | 80 | | partial void OnConstruction(); |
| | 81 | |
|
| | 82 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 83 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 84 | | public PBGltfContainer(PBGltfContainer other) : this() { |
| | 85 | | _hasBits0 = other._hasBits0; |
| | 86 | | src_ = other.src_; |
| | 87 | | visibleMeshesCollisionMask_ = other.visibleMeshesCollisionMask_; |
| | 88 | | invisibleMeshesCollisionMask_ = other.invisibleMeshesCollisionMask_; |
| | 89 | | _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); |
| | 90 | | } |
| | 91 | |
|
| | 92 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 93 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 94 | | public PBGltfContainer Clone() { |
| | 95 | | return new PBGltfContainer(this); |
| | 96 | | } |
| | 97 | |
|
| | 98 | | /// <summary>Field number for the "src" field.</summary> |
| | 99 | | public const int SrcFieldNumber = 1; |
| | 100 | | private string src_ = ""; |
| | 101 | | /// <summary> |
| | 102 | | /// the GLTF file path as listed in the scene's manifest. |
| | 103 | | /// </summary> |
| | 104 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 105 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 106 | | public string Src { |
| | 107 | | get { return src_; } |
| | 108 | | set { |
| | 109 | | src_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); |
| | 110 | | } |
| | 111 | | } |
| | 112 | |
|
| | 113 | | /// <summary>Field number for the "visible_meshes_collision_mask" field.</summary> |
| | 114 | | public const int VisibleMeshesCollisionMaskFieldNumber = 4; |
| | 115 | | private uint visibleMeshesCollisionMask_; |
| | 116 | | /// <summary> |
| | 117 | | /// default: 0 |
| | 118 | | /// </summary> |
| | 119 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 120 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 121 | | public uint VisibleMeshesCollisionMask { |
| | 122 | | get { if ((_hasBits0 & 1) != 0) { return visibleMeshesCollisionMask_; } else { return 0; } } |
| | 123 | | set { |
| | 124 | | _hasBits0 |= 1; |
| | 125 | | visibleMeshesCollisionMask_ = value; |
| | 126 | | } |
| | 127 | | } |
| | 128 | | /// <summary>Gets whether the "visible_meshes_collision_mask" field is set</summary> |
| | 129 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 130 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 131 | | public bool HasVisibleMeshesCollisionMask { |
| | 132 | | get { return (_hasBits0 & 1) != 0; } |
| | 133 | | } |
| | 134 | | /// <summary>Clears the value of the "visible_meshes_collision_mask" field</summary> |
| | 135 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 136 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 137 | | public void ClearVisibleMeshesCollisionMask() { |
| | 138 | | _hasBits0 &= ~1; |
| | 139 | | } |
| | 140 | |
|
| | 141 | | /// <summary>Field number for the "invisible_meshes_collision_mask" field.</summary> |
| | 142 | | public const int InvisibleMeshesCollisionMaskFieldNumber = 5; |
| | 143 | | private uint invisibleMeshesCollisionMask_; |
| | 144 | | /// <summary> |
| | 145 | | /// default: CL_POINTER | CL_PHYSICS |
| | 146 | | /// </summary> |
| | 147 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 148 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 149 | | public uint InvisibleMeshesCollisionMask { |
| | 150 | | get { if ((_hasBits0 & 2) != 0) { return invisibleMeshesCollisionMask_; } else { return 0; } } |
| | 151 | | set { |
| | 152 | | _hasBits0 |= 2; |
| | 153 | | invisibleMeshesCollisionMask_ = value; |
| | 154 | | } |
| | 155 | | } |
| | 156 | | /// <summary>Gets whether the "invisible_meshes_collision_mask" field is set</summary> |
| | 157 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 158 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 159 | | public bool HasInvisibleMeshesCollisionMask { |
| | 160 | | get { return (_hasBits0 & 2) != 0; } |
| | 161 | | } |
| | 162 | | /// <summary>Clears the value of the "invisible_meshes_collision_mask" field</summary> |
| | 163 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 164 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 165 | | public void ClearInvisibleMeshesCollisionMask() { |
| | 166 | | _hasBits0 &= ~2; |
| | 167 | | } |
| | 168 | |
|
| | 169 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 170 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 171 | | public override bool Equals(object other) { |
| | 172 | | return Equals(other as PBGltfContainer); |
| | 173 | | } |
| | 174 | |
|
| | 175 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 176 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 177 | | public bool Equals(PBGltfContainer other) { |
| | 178 | | if (ReferenceEquals(other, null)) { |
| | 179 | | return false; |
| | 180 | | } |
| | 181 | | if (ReferenceEquals(other, this)) { |
| | 182 | | return true; |
| | 183 | | } |
| | 184 | | if (Src != other.Src) return false; |
| | 185 | | if (VisibleMeshesCollisionMask != other.VisibleMeshesCollisionMask) return false; |
| | 186 | | if (InvisibleMeshesCollisionMask != other.InvisibleMeshesCollisionMask) return false; |
| | 187 | | return Equals(_unknownFields, other._unknownFields); |
| | 188 | | } |
| | 189 | |
|
| | 190 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 191 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 192 | | public override int GetHashCode() { |
| | 193 | | int hash = 1; |
| | 194 | | if (Src.Length != 0) hash ^= Src.GetHashCode(); |
| | 195 | | if (HasVisibleMeshesCollisionMask) hash ^= VisibleMeshesCollisionMask.GetHashCode(); |
| | 196 | | if (HasInvisibleMeshesCollisionMask) hash ^= InvisibleMeshesCollisionMask.GetHashCode(); |
| | 197 | | if (_unknownFields != null) { |
| | 198 | | hash ^= _unknownFields.GetHashCode(); |
| | 199 | | } |
| | 200 | | return hash; |
| | 201 | | } |
| | 202 | |
|
| | 203 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 204 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 205 | | public override string ToString() { |
| | 206 | | return pb::JsonFormatter.ToDiagnosticString(this); |
| | 207 | | } |
| | 208 | |
|
| | 209 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 210 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 211 | | public void WriteTo(pb::CodedOutputStream output) { |
| | 212 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| | 213 | | output.WriteRawMessage(this); |
| | 214 | | #else |
| | 215 | | if (Src.Length != 0) { |
| | 216 | | output.WriteRawTag(10); |
| | 217 | | output.WriteString(Src); |
| | 218 | | } |
| | 219 | | if (HasVisibleMeshesCollisionMask) { |
| | 220 | | output.WriteRawTag(32); |
| | 221 | | output.WriteUInt32(VisibleMeshesCollisionMask); |
| | 222 | | } |
| | 223 | | if (HasInvisibleMeshesCollisionMask) { |
| | 224 | | output.WriteRawTag(40); |
| | 225 | | output.WriteUInt32(InvisibleMeshesCollisionMask); |
| | 226 | | } |
| | 227 | | if (_unknownFields != null) { |
| | 228 | | _unknownFields.WriteTo(output); |
| | 229 | | } |
| | 230 | | #endif |
| | 231 | | } |
| | 232 | |
|
| | 233 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| | 234 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 235 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 236 | | void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { |
| | 237 | | if (Src.Length != 0) { |
| | 238 | | output.WriteRawTag(10); |
| | 239 | | output.WriteString(Src); |
| | 240 | | } |
| | 241 | | if (HasVisibleMeshesCollisionMask) { |
| | 242 | | output.WriteRawTag(32); |
| | 243 | | output.WriteUInt32(VisibleMeshesCollisionMask); |
| | 244 | | } |
| | 245 | | if (HasInvisibleMeshesCollisionMask) { |
| | 246 | | output.WriteRawTag(40); |
| | 247 | | output.WriteUInt32(InvisibleMeshesCollisionMask); |
| | 248 | | } |
| | 249 | | if (_unknownFields != null) { |
| | 250 | | _unknownFields.WriteTo(ref output); |
| | 251 | | } |
| | 252 | | } |
| | 253 | | #endif |
| | 254 | |
|
| | 255 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 256 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 257 | | public int CalculateSize() { |
| | 258 | | int size = 0; |
| | 259 | | if (Src.Length != 0) { |
| | 260 | | size += 1 + pb::CodedOutputStream.ComputeStringSize(Src); |
| | 261 | | } |
| | 262 | | if (HasVisibleMeshesCollisionMask) { |
| | 263 | | size += 1 + pb::CodedOutputStream.ComputeUInt32Size(VisibleMeshesCollisionMask); |
| | 264 | | } |
| | 265 | | if (HasInvisibleMeshesCollisionMask) { |
| | 266 | | size += 1 + pb::CodedOutputStream.ComputeUInt32Size(InvisibleMeshesCollisionMask); |
| | 267 | | } |
| | 268 | | if (_unknownFields != null) { |
| | 269 | | size += _unknownFields.CalculateSize(); |
| | 270 | | } |
| | 271 | | return size; |
| | 272 | | } |
| | 273 | |
|
| | 274 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 275 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 276 | | public void MergeFrom(PBGltfContainer other) { |
| | 277 | | if (other == null) { |
| | 278 | | return; |
| | 279 | | } |
| | 280 | | if (other.Src.Length != 0) { |
| | 281 | | Src = other.Src; |
| | 282 | | } |
| | 283 | | if (other.HasVisibleMeshesCollisionMask) { |
| | 284 | | VisibleMeshesCollisionMask = other.VisibleMeshesCollisionMask; |
| | 285 | | } |
| | 286 | | if (other.HasInvisibleMeshesCollisionMask) { |
| | 287 | | InvisibleMeshesCollisionMask = other.InvisibleMeshesCollisionMask; |
| | 288 | | } |
| | 289 | | _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); |
| | 290 | | } |
| | 291 | |
|
| | 292 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 293 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 294 | | public void MergeFrom(pb::CodedInputStream input) { |
| | 295 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| | 296 | | input.ReadRawMessage(this); |
| | 297 | | #else |
| | 298 | | uint tag; |
| | 299 | | while ((tag = input.ReadTag()) != 0) { |
| | 300 | | switch(tag) { |
| | 301 | | default: |
| | 302 | | _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); |
| | 303 | | break; |
| | 304 | | case 10: { |
| | 305 | | Src = input.ReadString(); |
| | 306 | | break; |
| | 307 | | } |
| | 308 | | case 32: { |
| | 309 | | VisibleMeshesCollisionMask = input.ReadUInt32(); |
| | 310 | | break; |
| | 311 | | } |
| | 312 | | case 40: { |
| | 313 | | InvisibleMeshesCollisionMask = input.ReadUInt32(); |
| | 314 | | break; |
| | 315 | | } |
| | 316 | | } |
| | 317 | | } |
| | 318 | | #endif |
| | 319 | | } |
| | 320 | |
|
| | 321 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| | 322 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 323 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 324 | | void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { |
| | 325 | | uint tag; |
| | 326 | | while ((tag = input.ReadTag()) != 0) { |
| | 327 | | switch(tag) { |
| | 328 | | default: |
| | 329 | | _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); |
| | 330 | | break; |
| | 331 | | case 10: { |
| | 332 | | Src = input.ReadString(); |
| | 333 | | break; |
| | 334 | | } |
| | 335 | | case 32: { |
| | 336 | | VisibleMeshesCollisionMask = input.ReadUInt32(); |
| | 337 | | break; |
| | 338 | | } |
| | 339 | | case 40: { |
| | 340 | | InvisibleMeshesCollisionMask = input.ReadUInt32(); |
| | 341 | | break; |
| | 342 | | } |
| | 343 | | } |
| | 344 | | } |
| | 345 | | } |
| | 346 | | #endif |
| | 347 | |
|
| | 348 | | } |
| | 349 | |
|
| | 350 | | #endregion |
| | 351 | |
|
| | 352 | | } |
| | 353 | |
|
| | 354 | | #endregion Designer generated code |