< Summary

Class:DCL.ECSComponents.AvatarTexture
Assembly:DCL.ECSComponents.ProtobufData
File(s):/tmp/workspace/unity-renderer/unity-renderer/Assets/DCLPlugins/ECS7/ProtocolBuffers/Generated/Texture.gen.cs
Covered lines:12
Uncovered lines:78
Coverable lines:90
Total lines:961
Line coverage:13.3% (12 of 90)
Covered branches:0
Total branches:0

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity NPath complexity Sequence coverage
AvatarTexture()0%110100%
get_Descriptor()0%2100%
AvatarTexture(...)0%2100%
Clone()0%2100%
AvatarTexture()0%110100%
ClearWrapMode()0%2100%
ClearFilterMode()0%2100%
Equals(...)0%2100%
Equals(...)0%42600%
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/DCLPlugins/ECS7/ProtocolBuffers/Generated/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 DCL.ECSComponents {
 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            "Cl93cmFwX21vZGVCDgoMX2ZpbHRlcl9tb2RlIoQBCgxUZXh0dXJlVW5pb24S",
 37            "LwoHdGV4dHVyZRgBIAEoCzIcLmRlY2VudHJhbGFuZC5jb21tb24uVGV4dHVy",
 38            "ZUgAEjwKDmF2YXRhcl90ZXh0dXJlGAIgASgLMiIuZGVjZW50cmFsYW5kLmNv",
 39            "bW1vbi5BdmF0YXJUZXh0dXJlSABCBQoDdGV4KlUKD1RleHR1cmVXcmFwTW9k",
 40            "ZRIOCgpUV01fUkVQRUFUEAASDQoJVFdNX0NMQU1QEAESDgoKVFdNX01JUlJP",
 41            "UhACEhMKD1RXTV9NSVJST1JfT05DRRADKkcKEVRleHR1cmVGaWx0ZXJNb2Rl",
 42            "Eg0KCVRGTV9QT0lOVBAAEhAKDFRGTV9CSUxJTkVBUhABEhEKDVRGTV9UUklM",
 43            "SU5FQVIQAkIUqgIRRENMLkVDU0NvbXBvbmVudHNiBnByb3RvMw=="));
 44      descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
 45          new pbr::FileDescriptor[] { },
 46          new pbr::GeneratedClrTypeInfo(new[] {typeof(global::DCL.ECSComponents.TextureWrapMode), typeof(global::DCL.ECS
 47            new pbr::GeneratedClrTypeInfo(typeof(global::DCL.ECSComponents.Texture), global::DCL.ECSComponents.Texture.P
 48            new pbr::GeneratedClrTypeInfo(typeof(global::DCL.ECSComponents.AvatarTexture), global::DCL.ECSComponents.Ava
 49            new pbr::GeneratedClrTypeInfo(typeof(global::DCL.ECSComponents.TextureUnion), global::DCL.ECSComponents.Text
 50          }));
 51    }
 52    #endregion
 53
 54  }
 55  #region Enums
 56  public enum TextureWrapMode {
 57    [pbr::OriginalName("TWM_REPEAT")] TwmRepeat = 0,
 58    [pbr::OriginalName("TWM_CLAMP")] TwmClamp = 1,
 59    [pbr::OriginalName("TWM_MIRROR")] TwmMirror = 2,
 60    [pbr::OriginalName("TWM_MIRROR_ONCE")] TwmMirrorOnce = 3,
 61  }
 62
 63  public enum TextureFilterMode {
 64    [pbr::OriginalName("TFM_POINT")] TfmPoint = 0,
 65    [pbr::OriginalName("TFM_BILINEAR")] TfmBilinear = 1,
 66    [pbr::OriginalName("TFM_TRILINEAR")] TfmTrilinear = 2,
 67  }
 68
 69  #endregion
 70
 71  #region Messages
 72  public sealed partial class Texture : pb::IMessage<Texture>
 73  #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 74      , pb::IBufferMessage
 75  #endif
 76  {
 77    private static readonly pb::MessageParser<Texture> _parser = new pb::MessageParser<Texture>(() => new Texture());
 78    private pb::UnknownFieldSet _unknownFields;
 79    private int _hasBits0;
 80    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 81    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 82    public static pb::MessageParser<Texture> Parser { get { return _parser; } }
 83
 84    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 85    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 86    public static pbr::MessageDescriptor Descriptor {
 87      get { return global::DCL.ECSComponents.TextureReflection.Descriptor.MessageTypes[0]; }
 88    }
 89
 90    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 91    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 92    pbr::MessageDescriptor pb::IMessage.Descriptor {
 93      get { return Descriptor; }
 94    }
 95
 96    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 97    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 98    public Texture() {
 99      OnConstruction();
 100    }
 101
 102    partial void OnConstruction();
 103
 104    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 105    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 106    public Texture(Texture other) : this() {
 107      _hasBits0 = other._hasBits0;
 108      src_ = other.src_;
 109      wrapMode_ = other.wrapMode_;
 110      filterMode_ = other.filterMode_;
 111      _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
 112    }
 113
 114    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 115    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 116    public Texture Clone() {
 117      return new Texture(this);
 118    }
 119
 120    /// <summary>Field number for the "src" field.</summary>
 121    public const int SrcFieldNumber = 1;
 122    private string src_ = "";
 123    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 124    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 125    public string Src {
 126      get { return src_; }
 127      set {
 128        src_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
 129      }
 130    }
 131
 132    /// <summary>Field number for the "wrap_mode" field.</summary>
 133    public const int WrapModeFieldNumber = 2;
 134    private global::DCL.ECSComponents.TextureWrapMode wrapMode_;
 135    /// <summary>
 136    /// default = TextureWrapMode.Clamp
 137    /// </summary>
 138    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 139    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 140    public global::DCL.ECSComponents.TextureWrapMode WrapMode {
 141      get { if ((_hasBits0 & 1) != 0) { return wrapMode_; } else { return global::DCL.ECSComponents.TextureWrapMode.TwmR
 142      set {
 143        _hasBits0 |= 1;
 144        wrapMode_ = value;
 145      }
 146    }
 147    /// <summary>Gets whether the "wrap_mode" field is set</summary>
 148    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 149    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 150    public bool HasWrapMode {
 151      get { return (_hasBits0 & 1) != 0; }
 152    }
 153    /// <summary>Clears the value of the "wrap_mode" field</summary>
 154    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 155    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 156    public void ClearWrapMode() {
 157      _hasBits0 &= ~1;
 158    }
 159
 160    /// <summary>Field number for the "filter_mode" field.</summary>
 161    public const int FilterModeFieldNumber = 3;
 162    private global::DCL.ECSComponents.TextureFilterMode filterMode_;
 163    /// <summary>
 164    /// default = FilterMode.Bilinear
 165    /// </summary>
 166    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 167    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 168    public global::DCL.ECSComponents.TextureFilterMode FilterMode {
 169      get { if ((_hasBits0 & 2) != 0) { return filterMode_; } else { return global::DCL.ECSComponents.TextureFilterMode.
 170      set {
 171        _hasBits0 |= 2;
 172        filterMode_ = value;
 173      }
 174    }
 175    /// <summary>Gets whether the "filter_mode" field is set</summary>
 176    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 177    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 178    public bool HasFilterMode {
 179      get { return (_hasBits0 & 2) != 0; }
 180    }
 181    /// <summary>Clears the value of the "filter_mode" field</summary>
 182    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 183    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 184    public void ClearFilterMode() {
 185      _hasBits0 &= ~2;
 186    }
 187
 188    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 189    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 190    public override bool Equals(object other) {
 191      return Equals(other as Texture);
 192    }
 193
 194    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 195    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 196    public bool Equals(Texture other) {
 197      if (ReferenceEquals(other, null)) {
 198        return false;
 199      }
 200      if (ReferenceEquals(other, this)) {
 201        return true;
 202      }
 203      if (Src != other.Src) return false;
 204      if (WrapMode != other.WrapMode) return false;
 205      if (FilterMode != other.FilterMode) return false;
 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() {
 212      int hash = 1;
 213      if (Src.Length != 0) hash ^= Src.GetHashCode();
 214      if (HasWrapMode) hash ^= WrapMode.GetHashCode();
 215      if (HasFilterMode) hash ^= FilterMode.GetHashCode();
 216      if (_unknownFields != null) {
 217        hash ^= _unknownFields.GetHashCode();
 218      }
 219      return hash;
 220    }
 221
 222    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 223    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 224    public override string ToString() {
 225      return pb::JsonFormatter.ToDiagnosticString(this);
 226    }
 227
 228    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 229    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 230    public void WriteTo(pb::CodedOutputStream output) {
 231    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 232      output.WriteRawMessage(this);
 233    #else
 234      if (Src.Length != 0) {
 235        output.WriteRawTag(10);
 236        output.WriteString(Src);
 237      }
 238      if (HasWrapMode) {
 239        output.WriteRawTag(16);
 240        output.WriteEnum((int) WrapMode);
 241      }
 242      if (HasFilterMode) {
 243        output.WriteRawTag(24);
 244        output.WriteEnum((int) FilterMode);
 245      }
 246      if (_unknownFields != null) {
 247        _unknownFields.WriteTo(output);
 248      }
 249    #endif
 250    }
 251
 252    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 253    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 254    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 255    void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
 256      if (Src.Length != 0) {
 257        output.WriteRawTag(10);
 258        output.WriteString(Src);
 259      }
 260      if (HasWrapMode) {
 261        output.WriteRawTag(16);
 262        output.WriteEnum((int) WrapMode);
 263      }
 264      if (HasFilterMode) {
 265        output.WriteRawTag(24);
 266        output.WriteEnum((int) FilterMode);
 267      }
 268      if (_unknownFields != null) {
 269        _unknownFields.WriteTo(ref output);
 270      }
 271    }
 272    #endif
 273
 274    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 275    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 276    public int CalculateSize() {
 277      int size = 0;
 278      if (Src.Length != 0) {
 279        size += 1 + pb::CodedOutputStream.ComputeStringSize(Src);
 280      }
 281      if (HasWrapMode) {
 282        size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) WrapMode);
 283      }
 284      if (HasFilterMode) {
 285        size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) FilterMode);
 286      }
 287      if (_unknownFields != null) {
 288        size += _unknownFields.CalculateSize();
 289      }
 290      return size;
 291    }
 292
 293    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 294    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 295    public void MergeFrom(Texture other) {
 296      if (other == null) {
 297        return;
 298      }
 299      if (other.Src.Length != 0) {
 300        Src = other.Src;
 301      }
 302      if (other.HasWrapMode) {
 303        WrapMode = other.WrapMode;
 304      }
 305      if (other.HasFilterMode) {
 306        FilterMode = other.FilterMode;
 307      }
 308      _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 309    }
 310
 311    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 312    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 313    public void MergeFrom(pb::CodedInputStream input) {
 314    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 315      input.ReadRawMessage(this);
 316    #else
 317      uint tag;
 318      while ((tag = input.ReadTag()) != 0) {
 319        switch(tag) {
 320          default:
 321            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
 322            break;
 323          case 10: {
 324            Src = input.ReadString();
 325            break;
 326          }
 327          case 16: {
 328            WrapMode = (global::DCL.ECSComponents.TextureWrapMode) input.ReadEnum();
 329            break;
 330          }
 331          case 24: {
 332            FilterMode = (global::DCL.ECSComponents.TextureFilterMode) input.ReadEnum();
 333            break;
 334          }
 335        }
 336      }
 337    #endif
 338    }
 339
 340    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 341    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 342    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 343    void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
 344      uint tag;
 345      while ((tag = input.ReadTag()) != 0) {
 346        switch(tag) {
 347          default:
 348            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
 349            break;
 350          case 10: {
 351            Src = input.ReadString();
 352            break;
 353          }
 354          case 16: {
 355            WrapMode = (global::DCL.ECSComponents.TextureWrapMode) input.ReadEnum();
 356            break;
 357          }
 358          case 24: {
 359            FilterMode = (global::DCL.ECSComponents.TextureFilterMode) input.ReadEnum();
 360            break;
 361          }
 362        }
 363      }
 364    }
 365    #endif
 366
 367  }
 368
 369  public sealed partial class AvatarTexture : pb::IMessage<AvatarTexture>
 370  #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 371      , pb::IBufferMessage
 372  #endif
 373  {
 1374    private static readonly pb::MessageParser<AvatarTexture> _parser = new pb::MessageParser<AvatarTexture>(() => new Av
 375    private pb::UnknownFieldSet _unknownFields;
 376    private int _hasBits0;
 377    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 378    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 0379    public static pb::MessageParser<AvatarTexture> Parser { get { return _parser; } }
 380
 381    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 382    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 383    public static pbr::MessageDescriptor Descriptor {
 0384      get { return global::DCL.ECSComponents.TextureReflection.Descriptor.MessageTypes[1]; }
 385    }
 386
 387    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 388    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 389    pbr::MessageDescriptor pb::IMessage.Descriptor {
 0390      get { return Descriptor; }
 391    }
 392
 393    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 394    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 1395    public AvatarTexture() {
 396      OnConstruction();
 1397    }
 398
 399    partial void OnConstruction();
 400
 401    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 402    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 0403    public AvatarTexture(AvatarTexture other) : this() {
 0404      _hasBits0 = other._hasBits0;
 0405      userId_ = other.userId_;
 0406      wrapMode_ = other.wrapMode_;
 0407      filterMode_ = other.filterMode_;
 0408      _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
 0409    }
 410
 411    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 412    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 413    public AvatarTexture Clone() {
 0414      return new AvatarTexture(this);
 415    }
 416
 417    /// <summary>Field number for the "user_id" field.</summary>
 418    public const int UserIdFieldNumber = 1;
 1419    private string userId_ = "";
 420    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 421    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 422    public string UserId {
 0423      get { return userId_; }
 424      set {
 1425        userId_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
 1426      }
 427    }
 428
 429    /// <summary>Field number for the "wrap_mode" field.</summary>
 430    public const int WrapModeFieldNumber = 2;
 431    private global::DCL.ECSComponents.TextureWrapMode wrapMode_;
 432    /// <summary>
 433    /// default = TextureWrapMode.Clamp
 434    /// </summary>
 435    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 436    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 437    public global::DCL.ECSComponents.TextureWrapMode WrapMode {
 0438      get { if ((_hasBits0 & 1) != 0) { return wrapMode_; } else { return global::DCL.ECSComponents.TextureWrapMode.TwmR
 439      set {
 1440        _hasBits0 |= 1;
 1441        wrapMode_ = value;
 1442      }
 443    }
 444    /// <summary>Gets whether the "wrap_mode" field is set</summary>
 445    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 446    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 447    public bool HasWrapMode {
 0448      get { return (_hasBits0 & 1) != 0; }
 449    }
 450    /// <summary>Clears the value of the "wrap_mode" field</summary>
 451    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 452    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 453    public void ClearWrapMode() {
 0454      _hasBits0 &= ~1;
 0455    }
 456
 457    /// <summary>Field number for the "filter_mode" field.</summary>
 458    public const int FilterModeFieldNumber = 3;
 459    private global::DCL.ECSComponents.TextureFilterMode filterMode_;
 460    /// <summary>
 461    /// default = FilterMode.Bilinear
 462    /// </summary>
 463    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 464    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 465    public global::DCL.ECSComponents.TextureFilterMode FilterMode {
 0466      get { if ((_hasBits0 & 2) != 0) { return filterMode_; } else { return global::DCL.ECSComponents.TextureFilterMode.
 467      set {
 1468        _hasBits0 |= 2;
 1469        filterMode_ = value;
 1470      }
 471    }
 472    /// <summary>Gets whether the "filter_mode" field is set</summary>
 473    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 474    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 475    public bool HasFilterMode {
 0476      get { return (_hasBits0 & 2) != 0; }
 477    }
 478    /// <summary>Clears the value of the "filter_mode" field</summary>
 479    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 480    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 481    public void ClearFilterMode() {
 0482      _hasBits0 &= ~2;
 0483    }
 484
 485    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 486    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 487    public override bool Equals(object other) {
 0488      return Equals(other as AvatarTexture);
 489    }
 490
 491    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 492    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 493    public bool Equals(AvatarTexture other) {
 0494      if (ReferenceEquals(other, null)) {
 0495        return false;
 496      }
 0497      if (ReferenceEquals(other, this)) {
 0498        return true;
 499      }
 0500      if (UserId != other.UserId) return false;
 0501      if (WrapMode != other.WrapMode) return false;
 0502      if (FilterMode != other.FilterMode) return false;
 0503      return Equals(_unknownFields, other._unknownFields);
 504    }
 505
 506    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 507    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 508    public override int GetHashCode() {
 0509      int hash = 1;
 0510      if (UserId.Length != 0) hash ^= UserId.GetHashCode();
 0511      if (HasWrapMode) hash ^= WrapMode.GetHashCode();
 0512      if (HasFilterMode) hash ^= FilterMode.GetHashCode();
 0513      if (_unknownFields != null) {
 0514        hash ^= _unknownFields.GetHashCode();
 515      }
 0516      return hash;
 517    }
 518
 519    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 520    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 521    public override string ToString() {
 0522      return pb::JsonFormatter.ToDiagnosticString(this);
 523    }
 524
 525    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 526    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 527    public void WriteTo(pb::CodedOutputStream output) {
 528    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 529      output.WriteRawMessage(this);
 530    #else
 0531      if (UserId.Length != 0) {
 0532        output.WriteRawTag(10);
 0533        output.WriteString(UserId);
 534      }
 0535      if (HasWrapMode) {
 0536        output.WriteRawTag(16);
 0537        output.WriteEnum((int) WrapMode);
 538      }
 0539      if (HasFilterMode) {
 0540        output.WriteRawTag(24);
 0541        output.WriteEnum((int) FilterMode);
 542      }
 0543      if (_unknownFields != null) {
 0544        _unknownFields.WriteTo(output);
 545      }
 546    #endif
 0547    }
 548
 549    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 550    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 551    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 552    void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
 553      if (UserId.Length != 0) {
 554        output.WriteRawTag(10);
 555        output.WriteString(UserId);
 556      }
 557      if (HasWrapMode) {
 558        output.WriteRawTag(16);
 559        output.WriteEnum((int) WrapMode);
 560      }
 561      if (HasFilterMode) {
 562        output.WriteRawTag(24);
 563        output.WriteEnum((int) FilterMode);
 564      }
 565      if (_unknownFields != null) {
 566        _unknownFields.WriteTo(ref output);
 567      }
 568    }
 569    #endif
 570
 571    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 572    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 573    public int CalculateSize() {
 0574      int size = 0;
 0575      if (UserId.Length != 0) {
 0576        size += 1 + pb::CodedOutputStream.ComputeStringSize(UserId);
 577      }
 0578      if (HasWrapMode) {
 0579        size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) WrapMode);
 580      }
 0581      if (HasFilterMode) {
 0582        size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) FilterMode);
 583      }
 0584      if (_unknownFields != null) {
 0585        size += _unknownFields.CalculateSize();
 586      }
 0587      return size;
 588    }
 589
 590    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 591    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 592    public void MergeFrom(AvatarTexture other) {
 0593      if (other == null) {
 0594        return;
 595      }
 0596      if (other.UserId.Length != 0) {
 0597        UserId = other.UserId;
 598      }
 0599      if (other.HasWrapMode) {
 0600        WrapMode = other.WrapMode;
 601      }
 0602      if (other.HasFilterMode) {
 0603        FilterMode = other.FilterMode;
 604      }
 0605      _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 0606    }
 607
 608    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 609    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 610    public void MergeFrom(pb::CodedInputStream input) {
 611    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 612      input.ReadRawMessage(this);
 613    #else
 614      uint tag;
 0615      while ((tag = input.ReadTag()) != 0) {
 616        switch(tag) {
 617          default:
 0618            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
 0619            break;
 620          case 10: {
 0621            UserId = input.ReadString();
 0622            break;
 623          }
 624          case 16: {
 0625            WrapMode = (global::DCL.ECSComponents.TextureWrapMode) input.ReadEnum();
 0626            break;
 627          }
 628          case 24: {
 0629            FilterMode = (global::DCL.ECSComponents.TextureFilterMode) input.ReadEnum();
 630            break;
 631          }
 632        }
 633      }
 634    #endif
 0635    }
 636
 637    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 638    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 639    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 640    void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
 641      uint tag;
 642      while ((tag = input.ReadTag()) != 0) {
 643        switch(tag) {
 644          default:
 645            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
 646            break;
 647          case 10: {
 648            UserId = input.ReadString();
 649            break;
 650          }
 651          case 16: {
 652            WrapMode = (global::DCL.ECSComponents.TextureWrapMode) input.ReadEnum();
 653            break;
 654          }
 655          case 24: {
 656            FilterMode = (global::DCL.ECSComponents.TextureFilterMode) input.ReadEnum();
 657            break;
 658          }
 659        }
 660      }
 661    }
 662    #endif
 663
 664  }
 665
 666  public sealed partial class TextureUnion : pb::IMessage<TextureUnion>
 667  #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 668      , pb::IBufferMessage
 669  #endif
 670  {
 671    private static readonly pb::MessageParser<TextureUnion> _parser = new pb::MessageParser<TextureUnion>(() => new Text
 672    private pb::UnknownFieldSet _unknownFields;
 673    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 674    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 675    public static pb::MessageParser<TextureUnion> Parser { get { return _parser; } }
 676
 677    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 678    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 679    public static pbr::MessageDescriptor Descriptor {
 680      get { return global::DCL.ECSComponents.TextureReflection.Descriptor.MessageTypes[2]; }
 681    }
 682
 683    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 684    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 685    pbr::MessageDescriptor pb::IMessage.Descriptor {
 686      get { return Descriptor; }
 687    }
 688
 689    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 690    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 691    public TextureUnion() {
 692      OnConstruction();
 693    }
 694
 695    partial void OnConstruction();
 696
 697    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 698    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 699    public TextureUnion(TextureUnion other) : this() {
 700      switch (other.TexCase) {
 701        case TexOneofCase.Texture:
 702          Texture = other.Texture.Clone();
 703          break;
 704        case TexOneofCase.AvatarTexture:
 705          AvatarTexture = other.AvatarTexture.Clone();
 706          break;
 707      }
 708
 709      _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
 710    }
 711
 712    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 713    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 714    public TextureUnion Clone() {
 715      return new TextureUnion(this);
 716    }
 717
 718    /// <summary>Field number for the "texture" field.</summary>
 719    public const int TextureFieldNumber = 1;
 720    /// <summary>
 721    /// default = null
 722    /// </summary>
 723    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 724    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 725    public global::DCL.ECSComponents.Texture Texture {
 726      get { return texCase_ == TexOneofCase.Texture ? (global::DCL.ECSComponents.Texture) tex_ : null; }
 727      set {
 728        tex_ = value;
 729        texCase_ = value == null ? TexOneofCase.None : TexOneofCase.Texture;
 730      }
 731    }
 732
 733    /// <summary>Field number for the "avatar_texture" field.</summary>
 734    public const int AvatarTextureFieldNumber = 2;
 735    /// <summary>
 736    /// default = null
 737    /// </summary>
 738    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 739    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 740    public global::DCL.ECSComponents.AvatarTexture AvatarTexture {
 741      get { return texCase_ == TexOneofCase.AvatarTexture ? (global::DCL.ECSComponents.AvatarTexture) tex_ : null; }
 742      set {
 743        tex_ = value;
 744        texCase_ = value == null ? TexOneofCase.None : TexOneofCase.AvatarTexture;
 745      }
 746    }
 747
 748    private object tex_;
 749    /// <summary>Enum of possible cases for the "tex" oneof.</summary>
 750    public enum TexOneofCase {
 751      None = 0,
 752      Texture = 1,
 753      AvatarTexture = 2,
 754    }
 755    private TexOneofCase texCase_ = TexOneofCase.None;
 756    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 757    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 758    public TexOneofCase TexCase {
 759      get { return texCase_; }
 760    }
 761
 762    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 763    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 764    public void ClearTex() {
 765      texCase_ = TexOneofCase.None;
 766      tex_ = null;
 767    }
 768
 769    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 770    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 771    public override bool Equals(object other) {
 772      return Equals(other as TextureUnion);
 773    }
 774
 775    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 776    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 777    public bool Equals(TextureUnion other) {
 778      if (ReferenceEquals(other, null)) {
 779        return false;
 780      }
 781      if (ReferenceEquals(other, this)) {
 782        return true;
 783      }
 784      if (!object.Equals(Texture, other.Texture)) return false;
 785      if (!object.Equals(AvatarTexture, other.AvatarTexture)) return false;
 786      if (TexCase != other.TexCase) return false;
 787      return Equals(_unknownFields, other._unknownFields);
 788    }
 789
 790    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 791    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 792    public override int GetHashCode() {
 793      int hash = 1;
 794      if (texCase_ == TexOneofCase.Texture) hash ^= Texture.GetHashCode();
 795      if (texCase_ == TexOneofCase.AvatarTexture) hash ^= AvatarTexture.GetHashCode();
 796      hash ^= (int) texCase_;
 797      if (_unknownFields != null) {
 798        hash ^= _unknownFields.GetHashCode();
 799      }
 800      return hash;
 801    }
 802
 803    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 804    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 805    public override string ToString() {
 806      return pb::JsonFormatter.ToDiagnosticString(this);
 807    }
 808
 809    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 810    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 811    public void WriteTo(pb::CodedOutputStream output) {
 812    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 813      output.WriteRawMessage(this);
 814    #else
 815      if (texCase_ == TexOneofCase.Texture) {
 816        output.WriteRawTag(10);
 817        output.WriteMessage(Texture);
 818      }
 819      if (texCase_ == TexOneofCase.AvatarTexture) {
 820        output.WriteRawTag(18);
 821        output.WriteMessage(AvatarTexture);
 822      }
 823      if (_unknownFields != null) {
 824        _unknownFields.WriteTo(output);
 825      }
 826    #endif
 827    }
 828
 829    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 830    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 831    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 832    void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
 833      if (texCase_ == TexOneofCase.Texture) {
 834        output.WriteRawTag(10);
 835        output.WriteMessage(Texture);
 836      }
 837      if (texCase_ == TexOneofCase.AvatarTexture) {
 838        output.WriteRawTag(18);
 839        output.WriteMessage(AvatarTexture);
 840      }
 841      if (_unknownFields != null) {
 842        _unknownFields.WriteTo(ref output);
 843      }
 844    }
 845    #endif
 846
 847    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 848    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 849    public int CalculateSize() {
 850      int size = 0;
 851      if (texCase_ == TexOneofCase.Texture) {
 852        size += 1 + pb::CodedOutputStream.ComputeMessageSize(Texture);
 853      }
 854      if (texCase_ == TexOneofCase.AvatarTexture) {
 855        size += 1 + pb::CodedOutputStream.ComputeMessageSize(AvatarTexture);
 856      }
 857      if (_unknownFields != null) {
 858        size += _unknownFields.CalculateSize();
 859      }
 860      return size;
 861    }
 862
 863    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 864    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 865    public void MergeFrom(TextureUnion other) {
 866      if (other == null) {
 867        return;
 868      }
 869      switch (other.TexCase) {
 870        case TexOneofCase.Texture:
 871          if (Texture == null) {
 872            Texture = new global::DCL.ECSComponents.Texture();
 873          }
 874          Texture.MergeFrom(other.Texture);
 875          break;
 876        case TexOneofCase.AvatarTexture:
 877          if (AvatarTexture == null) {
 878            AvatarTexture = new global::DCL.ECSComponents.AvatarTexture();
 879          }
 880          AvatarTexture.MergeFrom(other.AvatarTexture);
 881          break;
 882      }
 883
 884      _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 885    }
 886
 887    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 888    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 889    public void MergeFrom(pb::CodedInputStream input) {
 890    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 891      input.ReadRawMessage(this);
 892    #else
 893      uint tag;
 894      while ((tag = input.ReadTag()) != 0) {
 895        switch(tag) {
 896          default:
 897            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
 898            break;
 899          case 10: {
 900            global::DCL.ECSComponents.Texture subBuilder = new global::DCL.ECSComponents.Texture();
 901            if (texCase_ == TexOneofCase.Texture) {
 902              subBuilder.MergeFrom(Texture);
 903            }
 904            input.ReadMessage(subBuilder);
 905            Texture = subBuilder;
 906            break;
 907          }
 908          case 18: {
 909            global::DCL.ECSComponents.AvatarTexture subBuilder = new global::DCL.ECSComponents.AvatarTexture();
 910            if (texCase_ == TexOneofCase.AvatarTexture) {
 911              subBuilder.MergeFrom(AvatarTexture);
 912            }
 913            input.ReadMessage(subBuilder);
 914            AvatarTexture = subBuilder;
 915            break;
 916          }
 917        }
 918      }
 919    #endif
 920    }
 921
 922    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 923    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 924    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 925    void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
 926      uint tag;
 927      while ((tag = input.ReadTag()) != 0) {
 928        switch(tag) {
 929          default:
 930            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
 931            break;
 932          case 10: {
 933            global::DCL.ECSComponents.Texture subBuilder = new global::DCL.ECSComponents.Texture();
 934            if (texCase_ == TexOneofCase.Texture) {
 935              subBuilder.MergeFrom(Texture);
 936            }
 937            input.ReadMessage(subBuilder);
 938            Texture = subBuilder;
 939            break;
 940          }
 941          case 18: {
 942            global::DCL.ECSComponents.AvatarTexture subBuilder = new global::DCL.ECSComponents.AvatarTexture();
 943            if (texCase_ == TexOneofCase.AvatarTexture) {
 944              subBuilder.MergeFrom(AvatarTexture);
 945            }
 946            input.ReadMessage(subBuilder);
 947            AvatarTexture = subBuilder;
 948            break;
 949          }
 950        }
 951      }
 952    }
 953    #endif
 954
 955  }
 956
 957  #endregion
 958
 959}
 960
 961#endregion Designer generated code