< Summary

Class:Decentraland.Common.Texture
Assembly:Decentraland.Protocol.GeneratedCode
File(s):/tmp/workspace/unity-renderer/unity-renderer/Assets/Scripts/MainScripts/DCL/DecentralandProtocol/Texture.gen.cs
Covered lines:32
Uncovered lines:58
Coverable lines:90
Total lines:1321
Line coverage:35.5% (32 of 90)
Covered branches:0
Total branches:0

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity NPath complexity Sequence coverage
Texture()0%110100%
get_Descriptor()0%2100%
Texture(...)0%110100%
Clone()0%110100%
Texture()0%110100%
ClearWrapMode()0%2100%
ClearFilterMode()0%2100%
Equals(...)0%110100%
Equals(...)0%6.736072.73%
GetHashCode()0%30500%
ToString()0%2100%
WriteTo(...)0%30500%
CalculateSize()0%30500%
MergeFrom(...)0%30500%
MergeFrom(...)0%30500%

File(s)

/tmp/workspace/unity-renderer/unity-renderer/Assets/Scripts/MainScripts/DCL/DecentralandProtocol/Texture.gen.cs

#LineLine coverage
 1// <auto-generated>
 2//     Generated by the protocol buffer compiler.  DO NOT EDIT!
 3//     source: decentraland/common/texture.proto
 4// </auto-generated>
 5#pragma warning disable 1591, 0612, 3021
 6#region Designer generated code
 7
 8using pb = global::Google.Protobuf;
 9using pbc = global::Google.Protobuf.Collections;
 10using pbr = global::Google.Protobuf.Reflection;
 11using scg = global::System.Collections.Generic;
 12namespace Decentraland.Common {
 13
 14  /// <summary>Holder for reflection information generated from decentraland/common/texture.proto</summary>
 15  public static partial class TextureReflection {
 16
 17    #region Descriptor
 18    /// <summary>File descriptor for decentraland/common/texture.proto</summary>
 19    public static pbr::FileDescriptor Descriptor {
 20      get { return descriptor; }
 21    }
 22    private static pbr::FileDescriptor descriptor;
 23
 24    static TextureReflection() {
 25      byte[] descriptorData = global::System.Convert.FromBase64String(
 26          string.Concat(
 27            "CiFkZWNlbnRyYWxhbmQvY29tbW9uL3RleHR1cmUucHJvdG8SE2RlY2VudHJh",
 28            "bGFuZC5jb21tb24itAEKB1RleHR1cmUSCwoDc3JjGAEgASgJEjwKCXdyYXBf",
 29            "bW9kZRgCIAEoDjIkLmRlY2VudHJhbGFuZC5jb21tb24uVGV4dHVyZVdyYXBN",
 30            "b2RlSACIAQESQAoLZmlsdGVyX21vZGUYAyABKA4yJi5kZWNlbnRyYWxhbmQu",
 31            "Y29tbW9uLlRleHR1cmVGaWx0ZXJNb2RlSAGIAQFCDAoKX3dyYXBfbW9kZUIO",
 32            "CgxfZmlsdGVyX21vZGUivgEKDUF2YXRhclRleHR1cmUSDwoHdXNlcl9pZBgB",
 33            "IAEoCRI8Cgl3cmFwX21vZGUYAiABKA4yJC5kZWNlbnRyYWxhbmQuY29tbW9u",
 34            "LlRleHR1cmVXcmFwTW9kZUgAiAEBEkAKC2ZpbHRlcl9tb2RlGAMgASgOMiYu",
 35            "ZGVjZW50cmFsYW5kLmNvbW1vbi5UZXh0dXJlRmlsdGVyTW9kZUgBiAEBQgwK",
 36            "Cl93cmFwX21vZGVCDgoMX2ZpbHRlcl9tb2RlIskBCgxWaWRlb1RleHR1cmUS",
 37            "GwoTdmlkZW9fcGxheWVyX2VudGl0eRgBIAEoDRI8Cgl3cmFwX21vZGUYAiAB",
 38            "KA4yJC5kZWNlbnRyYWxhbmQuY29tbW9uLlRleHR1cmVXcmFwTW9kZUgAiAEB",
 39            "EkAKC2ZpbHRlcl9tb2RlGAMgASgOMiYuZGVjZW50cmFsYW5kLmNvbW1vbi5U",
 40            "ZXh0dXJlRmlsdGVyTW9kZUgBiAEBQgwKCl93cmFwX21vZGVCDgoMX2ZpbHRl",
 41            "cl9tb2RlIsABCgxUZXh0dXJlVW5pb24SLwoHdGV4dHVyZRgBIAEoCzIcLmRl",
 42            "Y2VudHJhbGFuZC5jb21tb24uVGV4dHVyZUgAEjwKDmF2YXRhcl90ZXh0dXJl",
 43            "GAIgASgLMiIuZGVjZW50cmFsYW5kLmNvbW1vbi5BdmF0YXJUZXh0dXJlSAAS",
 44            "OgoNdmlkZW9fdGV4dHVyZRgDIAEoCzIhLmRlY2VudHJhbGFuZC5jb21tb24u",
 45            "VmlkZW9UZXh0dXJlSABCBQoDdGV4KlUKD1RleHR1cmVXcmFwTW9kZRIOCgpU",
 46            "V01fUkVQRUFUEAASDQoJVFdNX0NMQU1QEAESDgoKVFdNX01JUlJPUhACEhMK",
 47            "D1RXTV9NSVJST1JfT05DRRADKkcKEVRleHR1cmVGaWx0ZXJNb2RlEg0KCVRG",
 48            "TV9QT0lOVBAAEhAKDFRGTV9CSUxJTkVBUhABEhEKDVRGTV9UUklMSU5FQVIQ",
 49            "AmIGcHJvdG8z"));
 50      descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
 51          new pbr::FileDescriptor[] { },
 52          new pbr::GeneratedClrTypeInfo(new[] {typeof(global::Decentraland.Common.TextureWrapMode), typeof(global::Decen
 53            new pbr::GeneratedClrTypeInfo(typeof(global::Decentraland.Common.Texture), global::Decentraland.Common.Textu
 54            new pbr::GeneratedClrTypeInfo(typeof(global::Decentraland.Common.AvatarTexture), global::Decentraland.Common
 55            new pbr::GeneratedClrTypeInfo(typeof(global::Decentraland.Common.VideoTexture), global::Decentraland.Common.
 56            new pbr::GeneratedClrTypeInfo(typeof(global::Decentraland.Common.TextureUnion), global::Decentraland.Common.
 57          }));
 58    }
 59    #endregion
 60
 61  }
 62  #region Enums
 63  public enum TextureWrapMode {
 64    [pbr::OriginalName("TWM_REPEAT")] TwmRepeat = 0,
 65    [pbr::OriginalName("TWM_CLAMP")] TwmClamp = 1,
 66    [pbr::OriginalName("TWM_MIRROR")] TwmMirror = 2,
 67    [pbr::OriginalName("TWM_MIRROR_ONCE")] TwmMirrorOnce = 3,
 68  }
 69
 70  public enum TextureFilterMode {
 71    [pbr::OriginalName("TFM_POINT")] TfmPoint = 0,
 72    [pbr::OriginalName("TFM_BILINEAR")] TfmBilinear = 1,
 73    [pbr::OriginalName("TFM_TRILINEAR")] TfmTrilinear = 2,
 74  }
 75
 76  #endregion
 77
 78  #region Messages
 79  public sealed partial class Texture : pb::IMessage<Texture>
 80  #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 81      , pb::IBufferMessage
 82  #endif
 83  {
 184    private static readonly pb::MessageParser<Texture> _parser = new pb::MessageParser<Texture>(() => new Texture());
 85    private pb::UnknownFieldSet _unknownFields;
 86    private int _hasBits0;
 87    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 88    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 089    public static pb::MessageParser<Texture> Parser { get { return _parser; } }
 90
 91    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 92    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 93    public static pbr::MessageDescriptor Descriptor {
 094      get { return global::Decentraland.Common.TextureReflection.Descriptor.MessageTypes[0]; }
 95    }
 96
 97    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 98    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 99    pbr::MessageDescriptor pb::IMessage.Descriptor {
 0100      get { return Descriptor; }
 101    }
 102
 103    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 104    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 18105    public Texture() {
 106      OnConstruction();
 18107    }
 108
 109    partial void OnConstruction();
 110
 111    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 112    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 5113    public Texture(Texture other) : this() {
 5114      _hasBits0 = other._hasBits0;
 5115      src_ = other.src_;
 5116      wrapMode_ = other.wrapMode_;
 5117      filterMode_ = other.filterMode_;
 5118      _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
 5119    }
 120
 121    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 122    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 123    public Texture Clone() {
 5124      return new Texture(this);
 125    }
 126
 127    /// <summary>Field number for the "src" field.</summary>
 128    public const int SrcFieldNumber = 1;
 18129    private string src_ = "";
 130    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 131    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 132    public string Src {
 34133      get { return src_; }
 134      set {
 9135        src_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
 9136      }
 137    }
 138
 139    /// <summary>Field number for the "wrap_mode" field.</summary>
 140    public const int WrapModeFieldNumber = 2;
 141    private global::Decentraland.Common.TextureWrapMode wrapMode_;
 142    /// <summary>
 143    /// default = TextureWrapMode.Clamp
 144    /// </summary>
 145    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 146    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 147    public global::Decentraland.Common.TextureWrapMode WrapMode {
 20148      get { if ((_hasBits0 & 1) != 0) { return wrapMode_; } else { return global::Decentraland.Common.TextureWrapMode.Tw
 149      set {
 4150        _hasBits0 |= 1;
 4151        wrapMode_ = value;
 4152      }
 153    }
 154    /// <summary>Gets whether the "wrap_mode" field is set</summary>
 155    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 156    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 157    public bool HasWrapMode {
 12158      get { return (_hasBits0 & 1) != 0; }
 159    }
 160    /// <summary>Clears the value of the "wrap_mode" field</summary>
 161    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 162    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 163    public void ClearWrapMode() {
 0164      _hasBits0 &= ~1;
 0165    }
 166
 167    /// <summary>Field number for the "filter_mode" field.</summary>
 168    public const int FilterModeFieldNumber = 3;
 169    private global::Decentraland.Common.TextureFilterMode filterMode_;
 170    /// <summary>
 171    /// default = FilterMode.Bilinear
 172    /// </summary>
 173    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 174    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 175    public global::Decentraland.Common.TextureFilterMode FilterMode {
 10176      get { if ((_hasBits0 & 2) != 0) { return filterMode_; } else { return global::Decentraland.Common.TextureFilterMod
 177      set {
 1178        _hasBits0 |= 2;
 1179        filterMode_ = value;
 1180      }
 181    }
 182    /// <summary>Gets whether the "filter_mode" field is set</summary>
 183    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 184    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 185    public bool HasFilterMode {
 12186      get { return (_hasBits0 & 2) != 0; }
 187    }
 188    /// <summary>Clears the value of the "filter_mode" field</summary>
 189    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 190    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 191    public void ClearFilterMode() {
 0192      _hasBits0 &= ~2;
 0193    }
 194
 195    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 196    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 197    public override bool Equals(object other) {
 5198      return Equals(other as Texture);
 199    }
 200
 201    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 202    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 203    public bool Equals(Texture other) {
 5204      if (ReferenceEquals(other, null)) {
 0205        return false;
 206      }
 5207      if (ReferenceEquals(other, this)) {
 0208        return true;
 209      }
 7210      if (Src != other.Src) return false;
 4211      if (WrapMode != other.WrapMode) return false;
 2212      if (FilterMode != other.FilterMode) return false;
 2213      return Equals(_unknownFields, other._unknownFields);
 214    }
 215
 216    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 217    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 218    public override int GetHashCode() {
 0219      int hash = 1;
 0220      if (Src.Length != 0) hash ^= Src.GetHashCode();
 0221      if (HasWrapMode) hash ^= WrapMode.GetHashCode();
 0222      if (HasFilterMode) hash ^= FilterMode.GetHashCode();
 0223      if (_unknownFields != null) {
 0224        hash ^= _unknownFields.GetHashCode();
 225      }
 0226      return hash;
 227    }
 228
 229    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 230    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 231    public override string ToString() {
 0232      return pb::JsonFormatter.ToDiagnosticString(this);
 233    }
 234
 235    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 236    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 237    public void WriteTo(pb::CodedOutputStream output) {
 238    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 239      output.WriteRawMessage(this);
 240    #else
 0241      if (Src.Length != 0) {
 0242        output.WriteRawTag(10);
 0243        output.WriteString(Src);
 244      }
 0245      if (HasWrapMode) {
 0246        output.WriteRawTag(16);
 0247        output.WriteEnum((int) WrapMode);
 248      }
 0249      if (HasFilterMode) {
 0250        output.WriteRawTag(24);
 0251        output.WriteEnum((int) FilterMode);
 252      }
 0253      if (_unknownFields != null) {
 0254        _unknownFields.WriteTo(output);
 255      }
 256    #endif
 0257    }
 258
 259    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 260    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 261    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 262    void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
 263      if (Src.Length != 0) {
 264        output.WriteRawTag(10);
 265        output.WriteString(Src);
 266      }
 267      if (HasWrapMode) {
 268        output.WriteRawTag(16);
 269        output.WriteEnum((int) WrapMode);
 270      }
 271      if (HasFilterMode) {
 272        output.WriteRawTag(24);
 273        output.WriteEnum((int) FilterMode);
 274      }
 275      if (_unknownFields != null) {
 276        _unknownFields.WriteTo(ref output);
 277      }
 278    }
 279    #endif
 280
 281    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 282    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 283    public int CalculateSize() {
 0284      int size = 0;
 0285      if (Src.Length != 0) {
 0286        size += 1 + pb::CodedOutputStream.ComputeStringSize(Src);
 287      }
 0288      if (HasWrapMode) {
 0289        size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) WrapMode);
 290      }
 0291      if (HasFilterMode) {
 0292        size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) FilterMode);
 293      }
 0294      if (_unknownFields != null) {
 0295        size += _unknownFields.CalculateSize();
 296      }
 0297      return size;
 298    }
 299
 300    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 301    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 302    public void MergeFrom(Texture other) {
 0303      if (other == null) {
 0304        return;
 305      }
 0306      if (other.Src.Length != 0) {
 0307        Src = other.Src;
 308      }
 0309      if (other.HasWrapMode) {
 0310        WrapMode = other.WrapMode;
 311      }
 0312      if (other.HasFilterMode) {
 0313        FilterMode = other.FilterMode;
 314      }
 0315      _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 0316    }
 317
 318    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 319    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 320    public void MergeFrom(pb::CodedInputStream input) {
 321    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 322      input.ReadRawMessage(this);
 323    #else
 324      uint tag;
 0325      while ((tag = input.ReadTag()) != 0) {
 326        switch(tag) {
 327          default:
 0328            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
 0329            break;
 330          case 10: {
 0331            Src = input.ReadString();
 0332            break;
 333          }
 334          case 16: {
 0335            WrapMode = (global::Decentraland.Common.TextureWrapMode) input.ReadEnum();
 0336            break;
 337          }
 338          case 24: {
 0339            FilterMode = (global::Decentraland.Common.TextureFilterMode) input.ReadEnum();
 340            break;
 341          }
 342        }
 343      }
 344    #endif
 0345    }
 346
 347    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 348    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 349    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 350    void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
 351      uint tag;
 352      while ((tag = input.ReadTag()) != 0) {
 353        switch(tag) {
 354          default:
 355            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
 356            break;
 357          case 10: {
 358            Src = input.ReadString();
 359            break;
 360          }
 361          case 16: {
 362            WrapMode = (global::Decentraland.Common.TextureWrapMode) input.ReadEnum();
 363            break;
 364          }
 365          case 24: {
 366            FilterMode = (global::Decentraland.Common.TextureFilterMode) input.ReadEnum();
 367            break;
 368          }
 369        }
 370      }
 371    }
 372    #endif
 373
 374  }
 375
 376  public sealed partial class AvatarTexture : pb::IMessage<AvatarTexture>
 377  #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 378      , pb::IBufferMessage
 379  #endif
 380  {
 381    private static readonly pb::MessageParser<AvatarTexture> _parser = new pb::MessageParser<AvatarTexture>(() => new Av
 382    private pb::UnknownFieldSet _unknownFields;
 383    private int _hasBits0;
 384    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 385    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 386    public static pb::MessageParser<AvatarTexture> Parser { get { return _parser; } }
 387
 388    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 389    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 390    public static pbr::MessageDescriptor Descriptor {
 391      get { return global::Decentraland.Common.TextureReflection.Descriptor.MessageTypes[1]; }
 392    }
 393
 394    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 395    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 396    pbr::MessageDescriptor pb::IMessage.Descriptor {
 397      get { return Descriptor; }
 398    }
 399
 400    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 401    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 402    public AvatarTexture() {
 403      OnConstruction();
 404    }
 405
 406    partial void OnConstruction();
 407
 408    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 409    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 410    public AvatarTexture(AvatarTexture other) : this() {
 411      _hasBits0 = other._hasBits0;
 412      userId_ = other.userId_;
 413      wrapMode_ = other.wrapMode_;
 414      filterMode_ = other.filterMode_;
 415      _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
 416    }
 417
 418    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 419    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 420    public AvatarTexture Clone() {
 421      return new AvatarTexture(this);
 422    }
 423
 424    /// <summary>Field number for the "user_id" field.</summary>
 425    public const int UserIdFieldNumber = 1;
 426    private string userId_ = "";
 427    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 428    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 429    public string UserId {
 430      get { return userId_; }
 431      set {
 432        userId_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
 433      }
 434    }
 435
 436    /// <summary>Field number for the "wrap_mode" field.</summary>
 437    public const int WrapModeFieldNumber = 2;
 438    private global::Decentraland.Common.TextureWrapMode wrapMode_;
 439    /// <summary>
 440    /// default = TextureWrapMode.Clamp
 441    /// </summary>
 442    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 443    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 444    public global::Decentraland.Common.TextureWrapMode WrapMode {
 445      get { if ((_hasBits0 & 1) != 0) { return wrapMode_; } else { return global::Decentraland.Common.TextureWrapMode.Tw
 446      set {
 447        _hasBits0 |= 1;
 448        wrapMode_ = value;
 449      }
 450    }
 451    /// <summary>Gets whether the "wrap_mode" field is set</summary>
 452    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 453    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 454    public bool HasWrapMode {
 455      get { return (_hasBits0 & 1) != 0; }
 456    }
 457    /// <summary>Clears the value of the "wrap_mode" field</summary>
 458    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 459    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 460    public void ClearWrapMode() {
 461      _hasBits0 &= ~1;
 462    }
 463
 464    /// <summary>Field number for the "filter_mode" field.</summary>
 465    public const int FilterModeFieldNumber = 3;
 466    private global::Decentraland.Common.TextureFilterMode filterMode_;
 467    /// <summary>
 468    /// default = FilterMode.Bilinear
 469    /// </summary>
 470    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 471    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 472    public global::Decentraland.Common.TextureFilterMode FilterMode {
 473      get { if ((_hasBits0 & 2) != 0) { return filterMode_; } else { return global::Decentraland.Common.TextureFilterMod
 474      set {
 475        _hasBits0 |= 2;
 476        filterMode_ = value;
 477      }
 478    }
 479    /// <summary>Gets whether the "filter_mode" field is set</summary>
 480    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 481    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 482    public bool HasFilterMode {
 483      get { return (_hasBits0 & 2) != 0; }
 484    }
 485    /// <summary>Clears the value of the "filter_mode" field</summary>
 486    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 487    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 488    public void ClearFilterMode() {
 489      _hasBits0 &= ~2;
 490    }
 491
 492    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 493    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 494    public override bool Equals(object other) {
 495      return Equals(other as AvatarTexture);
 496    }
 497
 498    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 499    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 500    public bool Equals(AvatarTexture other) {
 501      if (ReferenceEquals(other, null)) {
 502        return false;
 503      }
 504      if (ReferenceEquals(other, this)) {
 505        return true;
 506      }
 507      if (UserId != other.UserId) return false;
 508      if (WrapMode != other.WrapMode) return false;
 509      if (FilterMode != other.FilterMode) return false;
 510      return Equals(_unknownFields, other._unknownFields);
 511    }
 512
 513    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 514    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 515    public override int GetHashCode() {
 516      int hash = 1;
 517      if (UserId.Length != 0) hash ^= UserId.GetHashCode();
 518      if (HasWrapMode) hash ^= WrapMode.GetHashCode();
 519      if (HasFilterMode) hash ^= FilterMode.GetHashCode();
 520      if (_unknownFields != null) {
 521        hash ^= _unknownFields.GetHashCode();
 522      }
 523      return hash;
 524    }
 525
 526    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 527    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 528    public override string ToString() {
 529      return pb::JsonFormatter.ToDiagnosticString(this);
 530    }
 531
 532    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 533    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 534    public void WriteTo(pb::CodedOutputStream output) {
 535    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 536      output.WriteRawMessage(this);
 537    #else
 538      if (UserId.Length != 0) {
 539        output.WriteRawTag(10);
 540        output.WriteString(UserId);
 541      }
 542      if (HasWrapMode) {
 543        output.WriteRawTag(16);
 544        output.WriteEnum((int) WrapMode);
 545      }
 546      if (HasFilterMode) {
 547        output.WriteRawTag(24);
 548        output.WriteEnum((int) FilterMode);
 549      }
 550      if (_unknownFields != null) {
 551        _unknownFields.WriteTo(output);
 552      }
 553    #endif
 554    }
 555
 556    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 557    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 558    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 559    void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
 560      if (UserId.Length != 0) {
 561        output.WriteRawTag(10);
 562        output.WriteString(UserId);
 563      }
 564      if (HasWrapMode) {
 565        output.WriteRawTag(16);
 566        output.WriteEnum((int) WrapMode);
 567      }
 568      if (HasFilterMode) {
 569        output.WriteRawTag(24);
 570        output.WriteEnum((int) FilterMode);
 571      }
 572      if (_unknownFields != null) {
 573        _unknownFields.WriteTo(ref output);
 574      }
 575    }
 576    #endif
 577
 578    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 579    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 580    public int CalculateSize() {
 581      int size = 0;
 582      if (UserId.Length != 0) {
 583        size += 1 + pb::CodedOutputStream.ComputeStringSize(UserId);
 584      }
 585      if (HasWrapMode) {
 586        size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) WrapMode);
 587      }
 588      if (HasFilterMode) {
 589        size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) FilterMode);
 590      }
 591      if (_unknownFields != null) {
 592        size += _unknownFields.CalculateSize();
 593      }
 594      return size;
 595    }
 596
 597    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 598    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 599    public void MergeFrom(AvatarTexture other) {
 600      if (other == null) {
 601        return;
 602      }
 603      if (other.UserId.Length != 0) {
 604        UserId = other.UserId;
 605      }
 606      if (other.HasWrapMode) {
 607        WrapMode = other.WrapMode;
 608      }
 609      if (other.HasFilterMode) {
 610        FilterMode = other.FilterMode;
 611      }
 612      _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 613    }
 614
 615    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 616    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 617    public void MergeFrom(pb::CodedInputStream input) {
 618    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 619      input.ReadRawMessage(this);
 620    #else
 621      uint tag;
 622      while ((tag = input.ReadTag()) != 0) {
 623        switch(tag) {
 624          default:
 625            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
 626            break;
 627          case 10: {
 628            UserId = input.ReadString();
 629            break;
 630          }
 631          case 16: {
 632            WrapMode = (global::Decentraland.Common.TextureWrapMode) input.ReadEnum();
 633            break;
 634          }
 635          case 24: {
 636            FilterMode = (global::Decentraland.Common.TextureFilterMode) input.ReadEnum();
 637            break;
 638          }
 639        }
 640      }
 641    #endif
 642    }
 643
 644    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 645    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 646    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 647    void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
 648      uint tag;
 649      while ((tag = input.ReadTag()) != 0) {
 650        switch(tag) {
 651          default:
 652            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
 653            break;
 654          case 10: {
 655            UserId = input.ReadString();
 656            break;
 657          }
 658          case 16: {
 659            WrapMode = (global::Decentraland.Common.TextureWrapMode) input.ReadEnum();
 660            break;
 661          }
 662          case 24: {
 663            FilterMode = (global::Decentraland.Common.TextureFilterMode) input.ReadEnum();
 664            break;
 665          }
 666        }
 667      }
 668    }
 669    #endif
 670
 671  }
 672
 673  public sealed partial class VideoTexture : pb::IMessage<VideoTexture>
 674  #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 675      , pb::IBufferMessage
 676  #endif
 677  {
 678    private static readonly pb::MessageParser<VideoTexture> _parser = new pb::MessageParser<VideoTexture>(() => new Vide
 679    private pb::UnknownFieldSet _unknownFields;
 680    private int _hasBits0;
 681    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 682    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 683    public static pb::MessageParser<VideoTexture> Parser { get { return _parser; } }
 684
 685    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 686    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 687    public static pbr::MessageDescriptor Descriptor {
 688      get { return global::Decentraland.Common.TextureReflection.Descriptor.MessageTypes[2]; }
 689    }
 690
 691    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 692    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 693    pbr::MessageDescriptor pb::IMessage.Descriptor {
 694      get { return Descriptor; }
 695    }
 696
 697    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 698    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 699    public VideoTexture() {
 700      OnConstruction();
 701    }
 702
 703    partial void OnConstruction();
 704
 705    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 706    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 707    public VideoTexture(VideoTexture other) : this() {
 708      _hasBits0 = other._hasBits0;
 709      videoPlayerEntity_ = other.videoPlayerEntity_;
 710      wrapMode_ = other.wrapMode_;
 711      filterMode_ = other.filterMode_;
 712      _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
 713    }
 714
 715    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 716    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 717    public VideoTexture Clone() {
 718      return new VideoTexture(this);
 719    }
 720
 721    /// <summary>Field number for the "video_player_entity" field.</summary>
 722    public const int VideoPlayerEntityFieldNumber = 1;
 723    private uint videoPlayerEntity_;
 724    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 725    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 726    public uint VideoPlayerEntity {
 727      get { return videoPlayerEntity_; }
 728      set {
 729        videoPlayerEntity_ = value;
 730      }
 731    }
 732
 733    /// <summary>Field number for the "wrap_mode" field.</summary>
 734    public const int WrapModeFieldNumber = 2;
 735    private global::Decentraland.Common.TextureWrapMode wrapMode_;
 736    /// <summary>
 737    /// default = TextureWrapMode.Clamp
 738    /// </summary>
 739    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 740    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 741    public global::Decentraland.Common.TextureWrapMode WrapMode {
 742      get { if ((_hasBits0 & 1) != 0) { return wrapMode_; } else { return global::Decentraland.Common.TextureWrapMode.Tw
 743      set {
 744        _hasBits0 |= 1;
 745        wrapMode_ = value;
 746      }
 747    }
 748    /// <summary>Gets whether the "wrap_mode" field is set</summary>
 749    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 750    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 751    public bool HasWrapMode {
 752      get { return (_hasBits0 & 1) != 0; }
 753    }
 754    /// <summary>Clears the value of the "wrap_mode" field</summary>
 755    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 756    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 757    public void ClearWrapMode() {
 758      _hasBits0 &= ~1;
 759    }
 760
 761    /// <summary>Field number for the "filter_mode" field.</summary>
 762    public const int FilterModeFieldNumber = 3;
 763    private global::Decentraland.Common.TextureFilterMode filterMode_;
 764    /// <summary>
 765    /// default = FilterMode.Bilinear
 766    /// </summary>
 767    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 768    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 769    public global::Decentraland.Common.TextureFilterMode FilterMode {
 770      get { if ((_hasBits0 & 2) != 0) { return filterMode_; } else { return global::Decentraland.Common.TextureFilterMod
 771      set {
 772        _hasBits0 |= 2;
 773        filterMode_ = value;
 774      }
 775    }
 776    /// <summary>Gets whether the "filter_mode" field is set</summary>
 777    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 778    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 779    public bool HasFilterMode {
 780      get { return (_hasBits0 & 2) != 0; }
 781    }
 782    /// <summary>Clears the value of the "filter_mode" field</summary>
 783    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 784    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 785    public void ClearFilterMode() {
 786      _hasBits0 &= ~2;
 787    }
 788
 789    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 790    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 791    public override bool Equals(object other) {
 792      return Equals(other as VideoTexture);
 793    }
 794
 795    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 796    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 797    public bool Equals(VideoTexture other) {
 798      if (ReferenceEquals(other, null)) {
 799        return false;
 800      }
 801      if (ReferenceEquals(other, this)) {
 802        return true;
 803      }
 804      if (VideoPlayerEntity != other.VideoPlayerEntity) return false;
 805      if (WrapMode != other.WrapMode) return false;
 806      if (FilterMode != other.FilterMode) return false;
 807      return Equals(_unknownFields, other._unknownFields);
 808    }
 809
 810    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 811    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 812    public override int GetHashCode() {
 813      int hash = 1;
 814      if (VideoPlayerEntity != 0) hash ^= VideoPlayerEntity.GetHashCode();
 815      if (HasWrapMode) hash ^= WrapMode.GetHashCode();
 816      if (HasFilterMode) hash ^= FilterMode.GetHashCode();
 817      if (_unknownFields != null) {
 818        hash ^= _unknownFields.GetHashCode();
 819      }
 820      return hash;
 821    }
 822
 823    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 824    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 825    public override string ToString() {
 826      return pb::JsonFormatter.ToDiagnosticString(this);
 827    }
 828
 829    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 830    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 831    public void WriteTo(pb::CodedOutputStream output) {
 832    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 833      output.WriteRawMessage(this);
 834    #else
 835      if (VideoPlayerEntity != 0) {
 836        output.WriteRawTag(8);
 837        output.WriteUInt32(VideoPlayerEntity);
 838      }
 839      if (HasWrapMode) {
 840        output.WriteRawTag(16);
 841        output.WriteEnum((int) WrapMode);
 842      }
 843      if (HasFilterMode) {
 844        output.WriteRawTag(24);
 845        output.WriteEnum((int) FilterMode);
 846      }
 847      if (_unknownFields != null) {
 848        _unknownFields.WriteTo(output);
 849      }
 850    #endif
 851    }
 852
 853    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 854    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 855    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 856    void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
 857      if (VideoPlayerEntity != 0) {
 858        output.WriteRawTag(8);
 859        output.WriteUInt32(VideoPlayerEntity);
 860      }
 861      if (HasWrapMode) {
 862        output.WriteRawTag(16);
 863        output.WriteEnum((int) WrapMode);
 864      }
 865      if (HasFilterMode) {
 866        output.WriteRawTag(24);
 867        output.WriteEnum((int) FilterMode);
 868      }
 869      if (_unknownFields != null) {
 870        _unknownFields.WriteTo(ref output);
 871      }
 872    }
 873    #endif
 874
 875    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 876    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 877    public int CalculateSize() {
 878      int size = 0;
 879      if (VideoPlayerEntity != 0) {
 880        size += 1 + pb::CodedOutputStream.ComputeUInt32Size(VideoPlayerEntity);
 881      }
 882      if (HasWrapMode) {
 883        size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) WrapMode);
 884      }
 885      if (HasFilterMode) {
 886        size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) FilterMode);
 887      }
 888      if (_unknownFields != null) {
 889        size += _unknownFields.CalculateSize();
 890      }
 891      return size;
 892    }
 893
 894    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 895    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 896    public void MergeFrom(VideoTexture other) {
 897      if (other == null) {
 898        return;
 899      }
 900      if (other.VideoPlayerEntity != 0) {
 901        VideoPlayerEntity = other.VideoPlayerEntity;
 902      }
 903      if (other.HasWrapMode) {
 904        WrapMode = other.WrapMode;
 905      }
 906      if (other.HasFilterMode) {
 907        FilterMode = other.FilterMode;
 908      }
 909      _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 910    }
 911
 912    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 913    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 914    public void MergeFrom(pb::CodedInputStream input) {
 915    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 916      input.ReadRawMessage(this);
 917    #else
 918      uint tag;
 919      while ((tag = input.ReadTag()) != 0) {
 920        switch(tag) {
 921          default:
 922            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
 923            break;
 924          case 8: {
 925            VideoPlayerEntity = input.ReadUInt32();
 926            break;
 927          }
 928          case 16: {
 929            WrapMode = (global::Decentraland.Common.TextureWrapMode) input.ReadEnum();
 930            break;
 931          }
 932          case 24: {
 933            FilterMode = (global::Decentraland.Common.TextureFilterMode) input.ReadEnum();
 934            break;
 935          }
 936        }
 937      }
 938    #endif
 939    }
 940
 941    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 942    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 943    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 944    void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
 945      uint tag;
 946      while ((tag = input.ReadTag()) != 0) {
 947        switch(tag) {
 948          default:
 949            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
 950            break;
 951          case 8: {
 952            VideoPlayerEntity = input.ReadUInt32();
 953            break;
 954          }
 955          case 16: {
 956            WrapMode = (global::Decentraland.Common.TextureWrapMode) input.ReadEnum();
 957            break;
 958          }
 959          case 24: {
 960            FilterMode = (global::Decentraland.Common.TextureFilterMode) input.ReadEnum();
 961            break;
 962          }
 963        }
 964      }
 965    }
 966    #endif
 967
 968  }
 969
 970  public sealed partial class TextureUnion : pb::IMessage<TextureUnion>
 971  #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 972      , pb::IBufferMessage
 973  #endif
 974  {
 975    private static readonly pb::MessageParser<TextureUnion> _parser = new pb::MessageParser<TextureUnion>(() => new Text
 976    private pb::UnknownFieldSet _unknownFields;
 977    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 978    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 979    public static pb::MessageParser<TextureUnion> Parser { get { return _parser; } }
 980
 981    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 982    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 983    public static pbr::MessageDescriptor Descriptor {
 984      get { return global::Decentraland.Common.TextureReflection.Descriptor.MessageTypes[3]; }
 985    }
 986
 987    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 988    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 989    pbr::MessageDescriptor pb::IMessage.Descriptor {
 990      get { return Descriptor; }
 991    }
 992
 993    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 994    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 995    public TextureUnion() {
 996      OnConstruction();
 997    }
 998
 999    partial void OnConstruction();
 1000
 1001    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 1002    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 1003    public TextureUnion(TextureUnion other) : this() {
 1004      switch (other.TexCase) {
 1005        case TexOneofCase.Texture:
 1006          Texture = other.Texture.Clone();
 1007          break;
 1008        case TexOneofCase.AvatarTexture:
 1009          AvatarTexture = other.AvatarTexture.Clone();
 1010          break;
 1011        case TexOneofCase.VideoTexture:
 1012          VideoTexture = other.VideoTexture.Clone();
 1013          break;
 1014      }
 1015
 1016      _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
 1017    }
 1018
 1019    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 1020    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 1021    public TextureUnion Clone() {
 1022      return new TextureUnion(this);
 1023    }
 1024
 1025    /// <summary>Field number for the "texture" field.</summary>
 1026    public const int TextureFieldNumber = 1;
 1027    /// <summary>
 1028    /// default = null
 1029    /// </summary>
 1030    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 1031    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 1032    public global::Decentraland.Common.Texture Texture {
 1033      get { return texCase_ == TexOneofCase.Texture ? (global::Decentraland.Common.Texture) tex_ : null; }
 1034      set {
 1035        tex_ = value;
 1036        texCase_ = value == null ? TexOneofCase.None : TexOneofCase.Texture;
 1037      }
 1038    }
 1039
 1040    /// <summary>Field number for the "avatar_texture" field.</summary>
 1041    public const int AvatarTextureFieldNumber = 2;
 1042    /// <summary>
 1043    /// default = null
 1044    /// </summary>
 1045    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 1046    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 1047    public global::Decentraland.Common.AvatarTexture AvatarTexture {
 1048      get { return texCase_ == TexOneofCase.AvatarTexture ? (global::Decentraland.Common.AvatarTexture) tex_ : null; }
 1049      set {
 1050        tex_ = value;
 1051        texCase_ = value == null ? TexOneofCase.None : TexOneofCase.AvatarTexture;
 1052      }
 1053    }
 1054
 1055    /// <summary>Field number for the "video_texture" field.</summary>
 1056    public const int VideoTextureFieldNumber = 3;
 1057    /// <summary>
 1058    /// default = null
 1059    /// </summary>
 1060    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 1061    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 1062    public global::Decentraland.Common.VideoTexture VideoTexture {
 1063      get { return texCase_ == TexOneofCase.VideoTexture ? (global::Decentraland.Common.VideoTexture) tex_ : null; }
 1064      set {
 1065        tex_ = value;
 1066        texCase_ = value == null ? TexOneofCase.None : TexOneofCase.VideoTexture;
 1067      }
 1068    }
 1069
 1070    private object tex_;
 1071    /// <summary>Enum of possible cases for the "tex" oneof.</summary>
 1072    public enum TexOneofCase {
 1073      None = 0,
 1074      Texture = 1,
 1075      AvatarTexture = 2,
 1076      VideoTexture = 3,
 1077    }
 1078    private TexOneofCase texCase_ = TexOneofCase.None;
 1079    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 1080    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 1081    public TexOneofCase TexCase {
 1082      get { return texCase_; }
 1083    }
 1084
 1085    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 1086    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 1087    public void ClearTex() {
 1088      texCase_ = TexOneofCase.None;
 1089      tex_ = null;
 1090    }
 1091
 1092    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 1093    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 1094    public override bool Equals(object other) {
 1095      return Equals(other as TextureUnion);
 1096    }
 1097
 1098    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 1099    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 1100    public bool Equals(TextureUnion other) {
 1101      if (ReferenceEquals(other, null)) {
 1102        return false;
 1103      }
 1104      if (ReferenceEquals(other, this)) {
 1105        return true;
 1106      }
 1107      if (!object.Equals(Texture, other.Texture)) return false;
 1108      if (!object.Equals(AvatarTexture, other.AvatarTexture)) return false;
 1109      if (!object.Equals(VideoTexture, other.VideoTexture)) return false;
 1110      if (TexCase != other.TexCase) return false;
 1111      return Equals(_unknownFields, other._unknownFields);
 1112    }
 1113
 1114    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 1115    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 1116    public override int GetHashCode() {
 1117      int hash = 1;
 1118      if (texCase_ == TexOneofCase.Texture) hash ^= Texture.GetHashCode();
 1119      if (texCase_ == TexOneofCase.AvatarTexture) hash ^= AvatarTexture.GetHashCode();
 1120      if (texCase_ == TexOneofCase.VideoTexture) hash ^= VideoTexture.GetHashCode();
 1121      hash ^= (int) texCase_;
 1122      if (_unknownFields != null) {
 1123        hash ^= _unknownFields.GetHashCode();
 1124      }
 1125      return hash;
 1126    }
 1127
 1128    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 1129    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 1130    public override string ToString() {
 1131      return pb::JsonFormatter.ToDiagnosticString(this);
 1132    }
 1133
 1134    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 1135    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 1136    public void WriteTo(pb::CodedOutputStream output) {
 1137    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 1138      output.WriteRawMessage(this);
 1139    #else
 1140      if (texCase_ == TexOneofCase.Texture) {
 1141        output.WriteRawTag(10);
 1142        output.WriteMessage(Texture);
 1143      }
 1144      if (texCase_ == TexOneofCase.AvatarTexture) {
 1145        output.WriteRawTag(18);
 1146        output.WriteMessage(AvatarTexture);
 1147      }
 1148      if (texCase_ == TexOneofCase.VideoTexture) {
 1149        output.WriteRawTag(26);
 1150        output.WriteMessage(VideoTexture);
 1151      }
 1152      if (_unknownFields != null) {
 1153        _unknownFields.WriteTo(output);
 1154      }
 1155    #endif
 1156    }
 1157
 1158    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 1159    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 1160    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 1161    void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
 1162      if (texCase_ == TexOneofCase.Texture) {
 1163        output.WriteRawTag(10);
 1164        output.WriteMessage(Texture);
 1165      }
 1166      if (texCase_ == TexOneofCase.AvatarTexture) {
 1167        output.WriteRawTag(18);
 1168        output.WriteMessage(AvatarTexture);
 1169      }
 1170      if (texCase_ == TexOneofCase.VideoTexture) {
 1171        output.WriteRawTag(26);
 1172        output.WriteMessage(VideoTexture);
 1173      }
 1174      if (_unknownFields != null) {
 1175        _unknownFields.WriteTo(ref output);
 1176      }
 1177    }
 1178    #endif
 1179
 1180    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 1181    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 1182    public int CalculateSize() {
 1183      int size = 0;
 1184      if (texCase_ == TexOneofCase.Texture) {
 1185        size += 1 + pb::CodedOutputStream.ComputeMessageSize(Texture);
 1186      }
 1187      if (texCase_ == TexOneofCase.AvatarTexture) {
 1188        size += 1 + pb::CodedOutputStream.ComputeMessageSize(AvatarTexture);
 1189      }
 1190      if (texCase_ == TexOneofCase.VideoTexture) {
 1191        size += 1 + pb::CodedOutputStream.ComputeMessageSize(VideoTexture);
 1192      }
 1193      if (_unknownFields != null) {
 1194        size += _unknownFields.CalculateSize();
 1195      }
 1196      return size;
 1197    }
 1198
 1199    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 1200    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 1201    public void MergeFrom(TextureUnion other) {
 1202      if (other == null) {
 1203        return;
 1204      }
 1205      switch (other.TexCase) {
 1206        case TexOneofCase.Texture:
 1207          if (Texture == null) {
 1208            Texture = new global::Decentraland.Common.Texture();
 1209          }
 1210          Texture.MergeFrom(other.Texture);
 1211          break;
 1212        case TexOneofCase.AvatarTexture:
 1213          if (AvatarTexture == null) {
 1214            AvatarTexture = new global::Decentraland.Common.AvatarTexture();
 1215          }
 1216          AvatarTexture.MergeFrom(other.AvatarTexture);
 1217          break;
 1218        case TexOneofCase.VideoTexture:
 1219          if (VideoTexture == null) {
 1220            VideoTexture = new global::Decentraland.Common.VideoTexture();
 1221          }
 1222          VideoTexture.MergeFrom(other.VideoTexture);
 1223          break;
 1224      }
 1225
 1226      _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 1227    }
 1228
 1229    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 1230    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 1231    public void MergeFrom(pb::CodedInputStream input) {
 1232    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 1233      input.ReadRawMessage(this);
 1234    #else
 1235      uint tag;
 1236      while ((tag = input.ReadTag()) != 0) {
 1237        switch(tag) {
 1238          default:
 1239            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
 1240            break;
 1241          case 10: {
 1242            global::Decentraland.Common.Texture subBuilder = new global::Decentraland.Common.Texture();
 1243            if (texCase_ == TexOneofCase.Texture) {
 1244              subBuilder.MergeFrom(Texture);
 1245            }
 1246            input.ReadMessage(subBuilder);
 1247            Texture = subBuilder;
 1248            break;
 1249          }
 1250          case 18: {
 1251            global::Decentraland.Common.AvatarTexture subBuilder = new global::Decentraland.Common.AvatarTexture();
 1252            if (texCase_ == TexOneofCase.AvatarTexture) {
 1253              subBuilder.MergeFrom(AvatarTexture);
 1254            }
 1255            input.ReadMessage(subBuilder);
 1256            AvatarTexture = subBuilder;
 1257            break;
 1258          }
 1259          case 26: {
 1260            global::Decentraland.Common.VideoTexture subBuilder = new global::Decentraland.Common.VideoTexture();
 1261            if (texCase_ == TexOneofCase.VideoTexture) {
 1262              subBuilder.MergeFrom(VideoTexture);
 1263            }
 1264            input.ReadMessage(subBuilder);
 1265            VideoTexture = subBuilder;
 1266            break;
 1267          }
 1268        }
 1269      }
 1270    #endif
 1271    }
 1272
 1273    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 1274    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 1275    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 1276    void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
 1277      uint tag;
 1278      while ((tag = input.ReadTag()) != 0) {
 1279        switch(tag) {
 1280          default:
 1281            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
 1282            break;
 1283          case 10: {
 1284            global::Decentraland.Common.Texture subBuilder = new global::Decentraland.Common.Texture();
 1285            if (texCase_ == TexOneofCase.Texture) {
 1286              subBuilder.MergeFrom(Texture);
 1287            }
 1288            input.ReadMessage(subBuilder);
 1289            Texture = subBuilder;
 1290            break;
 1291          }
 1292          case 18: {
 1293            global::Decentraland.Common.AvatarTexture subBuilder = new global::Decentraland.Common.AvatarTexture();
 1294            if (texCase_ == TexOneofCase.AvatarTexture) {
 1295              subBuilder.MergeFrom(AvatarTexture);
 1296            }
 1297            input.ReadMessage(subBuilder);
 1298            AvatarTexture = subBuilder;
 1299            break;
 1300          }
 1301          case 26: {
 1302            global::Decentraland.Common.VideoTexture subBuilder = new global::Decentraland.Common.VideoTexture();
 1303            if (texCase_ == TexOneofCase.VideoTexture) {
 1304              subBuilder.MergeFrom(VideoTexture);
 1305            }
 1306            input.ReadMessage(subBuilder);
 1307            VideoTexture = subBuilder;
 1308            break;
 1309          }
 1310        }
 1311      }
 1312    }
 1313    #endif
 1314
 1315  }
 1316
 1317  #endregion
 1318
 1319}
 1320
 1321#endregion Designer generated code