< Summary

Class:DCL.ECSComponents.PBMaterial
Assembly:DCL.ECSComponents.ProtobufData
File(s):/tmp/workspace/unity-renderer/unity-renderer/Assets/DCLPlugins/ECS7/ProtocolBuffers/Generated/PBFiles/Material.cs
Covered lines:76
Uncovered lines:354
Coverable lines:430
Total lines:1376
Line coverage:17.6% (76 of 430)
Covered branches:0
Total branches:0

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity NPath complexity Sequence coverage
PBMaterial()0%110100%
get_Descriptor()0%2100%
PBMaterial()0%110100%
PBMaterial(...)0%15150100%
Clone()0%2100%
ClearAlphaTest()0%2100%
ClearCastShadows()0%2100%
ClearTransparencyMode()0%2100%
ClearMetallic()0%2100%
ClearRoughness()0%2100%
ClearGlossiness()0%2100%
ClearSpecularIntensity()0%2100%
ClearEmissiveIntensity()0%2100%
ClearDirectIntensity()0%2100%
Equals(...)0%2100%
Equals(...)0%54.0219054.05%
GetHashCode()0%3421800%
ToString()0%2100%
WriteTo(...)0%3421800%
CalculateSize()0%3421800%
MergeFrom(...)0%6502500%
MergeFrom(...)0%10563200%
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%7.736063.64%
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/PBFiles/Material.cs

#LineLine coverage
 1// <auto-generated>
 2//     Generated by the protocol buffer compiler.  DO NOT EDIT!
 3//     source: Material.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 Material.proto</summary>
 15  public static partial class MaterialReflection {
 16
 17    #region Descriptor
 18    /// <summary>File descriptor for Material.proto</summary>
 19    public static pbr::FileDescriptor Descriptor {
 20      get { return descriptor; }
 21    }
 22    private static pbr::FileDescriptor descriptor;
 23
 24    static MaterialReflection() {
 25      byte[] descriptorData = global::System.Convert.FromBase64String(
 26          string.Concat(
 27            "Cg5NYXRlcmlhbC5wcm90bxIQZGVjZW50cmFsYW5kLmVjcxoTY29tbW9uL0Nv",
 28            "bG9yMy5wcm90byLVCAoKUEJNYXRlcmlhbBI6Cgd0ZXh0dXJlGAEgASgLMiQu",
 29            "ZGVjZW50cmFsYW5kLmVjcy5QQk1hdGVyaWFsLlRleHR1cmVIAIgBARIWCglh",
 30            "bHBoYVRlc3QYAiABKAJIAYgBARIYCgtjYXN0U2hhZG93cxgDIAEoCEgCiAEB",
 31            "Ej8KDGFscGhhVGV4dHVyZRgEIAEoCzIkLmRlY2VudHJhbGFuZC5lY3MuUEJN",
 32            "YXRlcmlhbC5UZXh0dXJlSAOIAQESQgoPZW1pc3NpdmVUZXh0dXJlGAUgASgL",
 33            "MiQuZGVjZW50cmFsYW5kLmVjcy5QQk1hdGVyaWFsLlRleHR1cmVIBIgBARI+",
 34            "CgtidW1wVGV4dHVyZRgGIAEoCzIkLmRlY2VudHJhbGFuZC5lY3MuUEJNYXRl",
 35            "cmlhbC5UZXh0dXJlSAWIAQESIQoLYWxiZWRvQ29sb3IYByABKAsyBy5Db2xv",
 36            "cjNIBogBARIjCg1lbWlzc2l2ZUNvbG9yGAggASgLMgcuQ29sb3IzSAeIAQES",
 37            "JwoRcmVmbGVjdGl2aXR5Q29sb3IYCSABKAsyBy5Db2xvcjNICIgBARJBChB0",
 38            "cmFuc3BhcmVuY3lNb2RlGAogASgOMiIuZGVjZW50cmFsYW5kLmVjcy5UcmFu",
 39            "c3BhcmVuY3lNb2RlSAmIAQESFQoIbWV0YWxsaWMYCyABKAJICogBARIWCgly",
 40            "b3VnaG5lc3MYDCABKAJIC4gBARIXCgpnbG9zc2luZXNzGA0gASgCSAyIAQES",
 41            "HgoRc3BlY3VsYXJJbnRlbnNpdHkYDiABKAJIDYgBARIeChFlbWlzc2l2ZUlu",
 42            "dGVuc2l0eRgPIAEoAkgOiAEBEhwKD2RpcmVjdEludGVuc2l0eRgQIAEoAkgP",
 43            "iAEBGqMBCgdUZXh0dXJlEgsKA3NyYxgBIAEoCRI4Cgh3cmFwTW9kZRgCIAEo",
 44            "DjIhLmRlY2VudHJhbGFuZC5lY3MuVGV4dHVyZVdyYXBNb2RlSACIAQESNQoK",
 45            "ZmlsdGVyTW9kZRgDIAEoDjIcLmRlY2VudHJhbGFuZC5lY3MuRmlsdGVyTW9k",
 46            "ZUgBiAEBQgsKCV93cmFwTW9kZUINCgtfZmlsdGVyTW9kZUIKCghfdGV4dHVy",
 47            "ZUIMCgpfYWxwaGFUZXN0Qg4KDF9jYXN0U2hhZG93c0IPCg1fYWxwaGFUZXh0",
 48            "dXJlQhIKEF9lbWlzc2l2ZVRleHR1cmVCDgoMX2J1bXBUZXh0dXJlQg4KDF9h",
 49            "bGJlZG9Db2xvckIQCg5fZW1pc3NpdmVDb2xvckIUChJfcmVmbGVjdGl2aXR5",
 50            "Q29sb3JCEwoRX3RyYW5zcGFyZW5jeU1vZGVCCwoJX21ldGFsbGljQgwKCl9y",
 51            "b3VnaG5lc3NCDQoLX2dsb3NzaW5lc3NCFAoSX3NwZWN1bGFySW50ZW5zaXR5",
 52            "QhQKEl9lbWlzc2l2ZUludGVuc2l0eUISChBfZGlyZWN0SW50ZW5zaXR5KkQK",
 53            "D1RleHR1cmVXcmFwTW9kZRIKCgZSZXBlYXQQABIJCgVDbGFtcBABEgoKBk1p",
 54            "cnJvchACEg4KCk1pcnJvck9uY2UQAyo0CgpGaWx0ZXJNb2RlEgkKBVBvaW50",
 55            "EAASDAoIQmlsaW5lYXIQARINCglUcmlsaW5lYXIQAipjChBUcmFuc3BhcmVu",
 56            "Y3lNb2RlEgoKBk9wYXF1ZRAAEg0KCUFscGhhVGVzdBABEg4KCkFscGhhQmxl",
 57            "bmQQAhIaChZBbHBoYVRlc3RBbmRBbHBoYUJsZW5kEAMSCAoEQXV0bxAEQhSq",
 58            "AhFEQ0wuRUNTQ29tcG9uZW50c2IGcHJvdG8z"));
 59      descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
 60          new pbr::FileDescriptor[] { global::Color3Reflection.Descriptor, },
 61          new pbr::GeneratedClrTypeInfo(new[] {typeof(global::DCL.ECSComponents.TextureWrapMode), typeof(global::DCL.ECS
 62            new pbr::GeneratedClrTypeInfo(typeof(global::DCL.ECSComponents.PBMaterial), global::DCL.ECSComponents.PBMate
 63          }));
 64    }
 65    #endregion
 66
 67  }
 68  #region Enums
 69  public enum TextureWrapMode {
 70    [pbr::OriginalName("Repeat")] Repeat = 0,
 71    [pbr::OriginalName("Clamp")] Clamp = 1,
 72    [pbr::OriginalName("Mirror")] Mirror = 2,
 73    [pbr::OriginalName("MirrorOnce")] MirrorOnce = 3,
 74  }
 75
 76  public enum FilterMode {
 77    [pbr::OriginalName("Point")] Point = 0,
 78    [pbr::OriginalName("Bilinear")] Bilinear = 1,
 79    [pbr::OriginalName("Trilinear")] Trilinear = 2,
 80  }
 81
 82  public enum TransparencyMode {
 83    [pbr::OriginalName("Opaque")] Opaque = 0,
 84    [pbr::OriginalName("AlphaTest")] AlphaTest = 1,
 85    [pbr::OriginalName("AlphaBlend")] AlphaBlend = 2,
 86    [pbr::OriginalName("AlphaTestAndAlphaBlend")] AlphaTestAndAlphaBlend = 3,
 87    [pbr::OriginalName("Auto")] Auto = 4,
 88  }
 89
 90  #endregion
 91
 92  #region Messages
 93  public sealed partial class PBMaterial : pb::IMessage<PBMaterial>
 94  #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 95      , pb::IBufferMessage
 96  #endif
 97  {
 198    private static readonly pb::MessageParser<PBMaterial> _parser = new pb::MessageParser<PBMaterial>(() => new PBMateri
 99    private pb::UnknownFieldSet _unknownFields;
 100    private int _hasBits0;
 101    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 102    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 0103    public static pb::MessageParser<PBMaterial> Parser { get { return _parser; } }
 104
 105    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 106    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 107    public static pbr::MessageDescriptor Descriptor {
 0108      get { return global::DCL.ECSComponents.MaterialReflection.Descriptor.MessageTypes[0]; }
 109    }
 110
 111    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 112    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 113    pbr::MessageDescriptor pb::IMessage.Descriptor {
 0114      get { return Descriptor; }
 115    }
 116
 117    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 118    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 1119    public PBMaterial() {
 120      OnConstruction();
 1121    }
 122
 123    partial void OnConstruction();
 124
 125    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 126    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 4127    public PBMaterial(PBMaterial other) : this() {
 4128      _hasBits0 = other._hasBits0;
 4129      texture_ = other.texture_ != null ? other.texture_.Clone() : null;
 4130      alphaTest_ = other.alphaTest_;
 4131      castShadows_ = other.castShadows_;
 4132      alphaTexture_ = other.alphaTexture_ != null ? other.alphaTexture_.Clone() : null;
 4133      emissiveTexture_ = other.emissiveTexture_ != null ? other.emissiveTexture_.Clone() : null;
 4134      bumpTexture_ = other.bumpTexture_ != null ? other.bumpTexture_.Clone() : null;
 4135      albedoColor_ = other.albedoColor_ != null ? other.albedoColor_.Clone() : null;
 4136      emissiveColor_ = other.emissiveColor_ != null ? other.emissiveColor_.Clone() : null;
 4137      reflectivityColor_ = other.reflectivityColor_ != null ? other.reflectivityColor_.Clone() : null;
 4138      transparencyMode_ = other.transparencyMode_;
 4139      metallic_ = other.metallic_;
 4140      roughness_ = other.roughness_;
 4141      glossiness_ = other.glossiness_;
 4142      specularIntensity_ = other.specularIntensity_;
 4143      emissiveIntensity_ = other.emissiveIntensity_;
 4144      directIntensity_ = other.directIntensity_;
 4145      _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
 4146    }
 147
 148    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 149    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 150    public PBMaterial Clone() {
 0151      return new PBMaterial(this);
 152    }
 153
 154    /// <summary>Field number for the "texture" field.</summary>
 155    public const int TextureFieldNumber = 1;
 156    private global::DCL.ECSComponents.PBMaterial.Types.Texture texture_;
 157    /// <summary>
 158    /// default = null
 159    /// </summary>
 160    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 161    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 162    public global::DCL.ECSComponents.PBMaterial.Types.Texture Texture {
 1163      get { return texture_; }
 164      set {
 1165        texture_ = value;
 1166      }
 167    }
 168
 169    /// <summary>Field number for the "alphaTest" field.</summary>
 170    public const int AlphaTestFieldNumber = 2;
 171    private float alphaTest_;
 172    /// <summary>
 173    /// default = 0.5. range value: from 0 to 1
 174    /// </summary>
 175    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 176    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 177    public float AlphaTest {
 8178      get { if ((_hasBits0 & 1) != 0) { return alphaTest_; } else { return 0F; } }
 179      set {
 0180        _hasBits0 |= 1;
 0181        alphaTest_ = value;
 0182      }
 183    }
 184    /// <summary>Gets whether the "alphaTest" field is set</summary>
 185    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 186    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 187    public bool HasAlphaTest {
 0188      get { return (_hasBits0 & 1) != 0; }
 189    }
 190    /// <summary>Clears the value of the "alphaTest" field</summary>
 191    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 192    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 193    public void ClearAlphaTest() {
 0194      _hasBits0 &= ~1;
 0195    }
 196
 197    /// <summary>Field number for the "castShadows" field.</summary>
 198    public const int CastShadowsFieldNumber = 3;
 199    private bool castShadows_;
 200    /// <summary>
 201    /// default =  true
 202    /// </summary>
 203    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 204    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 205    public bool CastShadows {
 0206      get { if ((_hasBits0 & 2) != 0) { return castShadows_; } else { return false; } }
 207      set {
 0208        _hasBits0 |= 2;
 0209        castShadows_ = value;
 0210      }
 211    }
 212    /// <summary>Gets whether the "castShadows" field is set</summary>
 213    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 214    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 215    public bool HasCastShadows {
 0216      get { return (_hasBits0 & 2) != 0; }
 217    }
 218    /// <summary>Clears the value of the "castShadows" field</summary>
 219    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 220    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 221    public void ClearCastShadows() {
 0222      _hasBits0 &= ~2;
 0223    }
 224
 225    /// <summary>Field number for the "alphaTexture" field.</summary>
 226    public const int AlphaTextureFieldNumber = 4;
 227    private global::DCL.ECSComponents.PBMaterial.Types.Texture alphaTexture_;
 228    /// <summary>
 229    /// default = null
 230    /// </summary>
 231    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 232    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 233    public global::DCL.ECSComponents.PBMaterial.Types.Texture AlphaTexture {
 0234      get { return alphaTexture_; }
 235      set {
 0236        alphaTexture_ = value;
 0237      }
 238    }
 239
 240    /// <summary>Field number for the "emissiveTexture" field.</summary>
 241    public const int EmissiveTextureFieldNumber = 5;
 242    private global::DCL.ECSComponents.PBMaterial.Types.Texture emissiveTexture_;
 243    /// <summary>
 244    /// default = null
 245    /// </summary>
 246    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 247    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 248    public global::DCL.ECSComponents.PBMaterial.Types.Texture EmissiveTexture {
 0249      get { return emissiveTexture_; }
 250      set {
 0251        emissiveTexture_ = value;
 0252      }
 253    }
 254
 255    /// <summary>Field number for the "bumpTexture" field.</summary>
 256    public const int BumpTextureFieldNumber = 6;
 257    private global::DCL.ECSComponents.PBMaterial.Types.Texture bumpTexture_;
 258    /// <summary>
 259    /// default = null
 260    /// </summary>
 261    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 262    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 263    public global::DCL.ECSComponents.PBMaterial.Types.Texture BumpTexture {
 0264      get { return bumpTexture_; }
 265      set {
 0266        bumpTexture_ = value;
 0267      }
 268    }
 269
 270    /// <summary>Field number for the "albedoColor" field.</summary>
 271    public const int AlbedoColorFieldNumber = 7;
 272    private global::Color3 albedoColor_;
 273    /// <summary>
 274    /// default = white;
 275    /// </summary>
 276    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 277    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 278    public global::Color3 AlbedoColor {
 0279      get { return albedoColor_; }
 280      set {
 0281        albedoColor_ = value;
 0282      }
 283    }
 284
 285    /// <summary>Field number for the "emissiveColor" field.</summary>
 286    public const int EmissiveColorFieldNumber = 8;
 287    private global::Color3 emissiveColor_;
 288    /// <summary>
 289    /// default = black;
 290    /// </summary>
 291    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 292    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 293    public global::Color3 EmissiveColor {
 0294      get { return emissiveColor_; }
 295      set {
 0296        emissiveColor_ = value;
 0297      }
 298    }
 299
 300    /// <summary>Field number for the "reflectivityColor" field.</summary>
 301    public const int ReflectivityColorFieldNumber = 9;
 302    private global::Color3 reflectivityColor_;
 303    /// <summary>
 304    /// default = white;
 305    /// </summary>
 306    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 307    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 308    public global::Color3 ReflectivityColor {
 0309      get { return reflectivityColor_; }
 310      set {
 0311        reflectivityColor_ = value;
 0312      }
 313    }
 314
 315    /// <summary>Field number for the "transparencyMode" field.</summary>
 316    public const int TransparencyModeFieldNumber = 10;
 317    private global::DCL.ECSComponents.TransparencyMode transparencyMode_;
 318    /// <summary>
 319    /// default = TransparencyMode.Auto
 320    /// </summary>
 321    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 322    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 323    public global::DCL.ECSComponents.TransparencyMode TransparencyMode {
 0324      get { if ((_hasBits0 & 4) != 0) { return transparencyMode_; } else { return global::DCL.ECSComponents.Transparency
 325      set {
 0326        _hasBits0 |= 4;
 0327        transparencyMode_ = value;
 0328      }
 329    }
 330    /// <summary>Gets whether the "transparencyMode" field is set</summary>
 331    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 332    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 333    public bool HasTransparencyMode {
 0334      get { return (_hasBits0 & 4) != 0; }
 335    }
 336    /// <summary>Clears the value of the "transparencyMode" field</summary>
 337    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 338    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 339    public void ClearTransparencyMode() {
 0340      _hasBits0 &= ~4;
 0341    }
 342
 343    /// <summary>Field number for the "metallic" field.</summary>
 344    public const int MetallicFieldNumber = 11;
 345    private float metallic_;
 346    /// <summary>
 347    /// default = 0.5
 348    /// </summary>
 349    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 350    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 351    public float Metallic {
 8352      get { if ((_hasBits0 & 8) != 0) { return metallic_; } else { return 0F; } }
 353      set {
 0354        _hasBits0 |= 8;
 0355        metallic_ = value;
 0356      }
 357    }
 358    /// <summary>Gets whether the "metallic" field is set</summary>
 359    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 360    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 361    public bool HasMetallic {
 0362      get { return (_hasBits0 & 8) != 0; }
 363    }
 364    /// <summary>Clears the value of the "metallic" field</summary>
 365    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 366    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 367    public void ClearMetallic() {
 0368      _hasBits0 &= ~8;
 0369    }
 370
 371    /// <summary>Field number for the "roughness" field.</summary>
 372    public const int RoughnessFieldNumber = 12;
 373    private float roughness_;
 374    /// <summary>
 375    /// default = 0.5
 376    /// </summary>
 377    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 378    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 379    public float Roughness {
 8380      get { if ((_hasBits0 & 16) != 0) { return roughness_; } else { return 0F; } }
 381      set {
 0382        _hasBits0 |= 16;
 0383        roughness_ = value;
 0384      }
 385    }
 386    /// <summary>Gets whether the "roughness" field is set</summary>
 387    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 388    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 389    public bool HasRoughness {
 0390      get { return (_hasBits0 & 16) != 0; }
 391    }
 392    /// <summary>Clears the value of the "roughness" field</summary>
 393    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 394    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 395    public void ClearRoughness() {
 0396      _hasBits0 &= ~16;
 0397    }
 398
 399    /// <summary>Field number for the "glossiness" field.</summary>
 400    public const int GlossinessFieldNumber = 13;
 401    private float glossiness_;
 402    /// <summary>
 403    /// default = 1
 404    /// </summary>
 405    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 406    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 407    public float Glossiness {
 8408      get { if ((_hasBits0 & 32) != 0) { return glossiness_; } else { return 0F; } }
 409      set {
 0410        _hasBits0 |= 32;
 0411        glossiness_ = value;
 0412      }
 413    }
 414    /// <summary>Gets whether the "glossiness" field is set</summary>
 415    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 416    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 417    public bool HasGlossiness {
 0418      get { return (_hasBits0 & 32) != 0; }
 419    }
 420    /// <summary>Clears the value of the "glossiness" field</summary>
 421    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 422    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 423    public void ClearGlossiness() {
 0424      _hasBits0 &= ~32;
 0425    }
 426
 427    /// <summary>Field number for the "specularIntensity" field.</summary>
 428    public const int SpecularIntensityFieldNumber = 14;
 429    private float specularIntensity_;
 430    /// <summary>
 431    /// default = 1
 432    /// </summary>
 433    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 434    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 435    public float SpecularIntensity {
 8436      get { if ((_hasBits0 & 64) != 0) { return specularIntensity_; } else { return 0F; } }
 437      set {
 0438        _hasBits0 |= 64;
 0439        specularIntensity_ = value;
 0440      }
 441    }
 442    /// <summary>Gets whether the "specularIntensity" field is set</summary>
 443    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 444    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 445    public bool HasSpecularIntensity {
 0446      get { return (_hasBits0 & 64) != 0; }
 447    }
 448    /// <summary>Clears the value of the "specularIntensity" field</summary>
 449    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 450    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 451    public void ClearSpecularIntensity() {
 0452      _hasBits0 &= ~64;
 0453    }
 454
 455    /// <summary>Field number for the "emissiveIntensity" field.</summary>
 456    public const int EmissiveIntensityFieldNumber = 15;
 457    private float emissiveIntensity_;
 458    /// <summary>
 459    /// default = 2
 460    /// </summary>
 461    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 462    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 463    public float EmissiveIntensity {
 8464      get { if ((_hasBits0 & 128) != 0) { return emissiveIntensity_; } else { return 0F; } }
 465      set {
 0466        _hasBits0 |= 128;
 0467        emissiveIntensity_ = value;
 0468      }
 469    }
 470    /// <summary>Gets whether the "emissiveIntensity" field is set</summary>
 471    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 472    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 473    public bool HasEmissiveIntensity {
 0474      get { return (_hasBits0 & 128) != 0; }
 475    }
 476    /// <summary>Clears the value of the "emissiveIntensity" field</summary>
 477    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 478    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 479    public void ClearEmissiveIntensity() {
 0480      _hasBits0 &= ~128;
 0481    }
 482
 483    /// <summary>Field number for the "directIntensity" field.</summary>
 484    public const int DirectIntensityFieldNumber = 16;
 485    private float directIntensity_;
 486    /// <summary>
 487    /// default = 1
 488    /// </summary>
 489    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 490    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 491    public float DirectIntensity {
 8492      get { if ((_hasBits0 & 256) != 0) { return directIntensity_; } else { return 0F; } }
 493      set {
 0494        _hasBits0 |= 256;
 0495        directIntensity_ = value;
 0496      }
 497    }
 498    /// <summary>Gets whether the "directIntensity" field is set</summary>
 499    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 500    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 501    public bool HasDirectIntensity {
 0502      get { return (_hasBits0 & 256) != 0; }
 503    }
 504    /// <summary>Clears the value of the "directIntensity" field</summary>
 505    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 506    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 507    public void ClearDirectIntensity() {
 0508      _hasBits0 &= ~256;
 0509    }
 510
 511    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 512    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 513    public override bool Equals(object other) {
 0514      return Equals(other as PBMaterial);
 515    }
 516
 517    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 518    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 519    public bool Equals(PBMaterial other) {
 4520      if (ReferenceEquals(other, null)) {
 0521        return false;
 522      }
 4523      if (ReferenceEquals(other, this)) {
 0524        return true;
 525      }
 6526      if (!object.Equals(Texture, other.Texture)) return false;
 2527      if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(AlphaTest, other.AlphaTest)) return false
 2528      if (CastShadows != other.CastShadows) return false;
 2529      if (!object.Equals(AlphaTexture, other.AlphaTexture)) return false;
 2530      if (!object.Equals(EmissiveTexture, other.EmissiveTexture)) return false;
 2531      if (!object.Equals(BumpTexture, other.BumpTexture)) return false;
 2532      if (!object.Equals(AlbedoColor, other.AlbedoColor)) return false;
 2533      if (!object.Equals(EmissiveColor, other.EmissiveColor)) return false;
 2534      if (!object.Equals(ReflectivityColor, other.ReflectivityColor)) return false;
 2535      if (TransparencyMode != other.TransparencyMode) return false;
 2536      if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Metallic, other.Metallic)) return false;
 2537      if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Roughness, other.Roughness)) return false
 2538      if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Glossiness, other.Glossiness)) return fal
 2539      if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(SpecularIntensity, other.SpecularIntensit
 2540      if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(EmissiveIntensity, other.EmissiveIntensit
 2541      if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(DirectIntensity, other.DirectIntensity)) 
 2542      return Equals(_unknownFields, other._unknownFields);
 543    }
 544
 545    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 546    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 547    public override int GetHashCode() {
 0548      int hash = 1;
 0549      if (texture_ != null) hash ^= Texture.GetHashCode();
 0550      if (HasAlphaTest) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(AlphaTest);
 0551      if (HasCastShadows) hash ^= CastShadows.GetHashCode();
 0552      if (alphaTexture_ != null) hash ^= AlphaTexture.GetHashCode();
 0553      if (emissiveTexture_ != null) hash ^= EmissiveTexture.GetHashCode();
 0554      if (bumpTexture_ != null) hash ^= BumpTexture.GetHashCode();
 0555      if (albedoColor_ != null) hash ^= AlbedoColor.GetHashCode();
 0556      if (emissiveColor_ != null) hash ^= EmissiveColor.GetHashCode();
 0557      if (reflectivityColor_ != null) hash ^= ReflectivityColor.GetHashCode();
 0558      if (HasTransparencyMode) hash ^= TransparencyMode.GetHashCode();
 0559      if (HasMetallic) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Metallic);
 0560      if (HasRoughness) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Roughness);
 0561      if (HasGlossiness) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Glossiness);
 0562      if (HasSpecularIntensity) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Specula
 0563      if (HasEmissiveIntensity) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Emissiv
 0564      if (HasDirectIntensity) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(DirectInt
 0565      if (_unknownFields != null) {
 0566        hash ^= _unknownFields.GetHashCode();
 567      }
 0568      return hash;
 569    }
 570
 571    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 572    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 573    public override string ToString() {
 0574      return pb::JsonFormatter.ToDiagnosticString(this);
 575    }
 576
 577    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 578    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 579    public void WriteTo(pb::CodedOutputStream output) {
 580    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 581      output.WriteRawMessage(this);
 582    #else
 0583      if (texture_ != null) {
 0584        output.WriteRawTag(10);
 0585        output.WriteMessage(Texture);
 586      }
 0587      if (HasAlphaTest) {
 0588        output.WriteRawTag(21);
 0589        output.WriteFloat(AlphaTest);
 590      }
 0591      if (HasCastShadows) {
 0592        output.WriteRawTag(24);
 0593        output.WriteBool(CastShadows);
 594      }
 0595      if (alphaTexture_ != null) {
 0596        output.WriteRawTag(34);
 0597        output.WriteMessage(AlphaTexture);
 598      }
 0599      if (emissiveTexture_ != null) {
 0600        output.WriteRawTag(42);
 0601        output.WriteMessage(EmissiveTexture);
 602      }
 0603      if (bumpTexture_ != null) {
 0604        output.WriteRawTag(50);
 0605        output.WriteMessage(BumpTexture);
 606      }
 0607      if (albedoColor_ != null) {
 0608        output.WriteRawTag(58);
 0609        output.WriteMessage(AlbedoColor);
 610      }
 0611      if (emissiveColor_ != null) {
 0612        output.WriteRawTag(66);
 0613        output.WriteMessage(EmissiveColor);
 614      }
 0615      if (reflectivityColor_ != null) {
 0616        output.WriteRawTag(74);
 0617        output.WriteMessage(ReflectivityColor);
 618      }
 0619      if (HasTransparencyMode) {
 0620        output.WriteRawTag(80);
 0621        output.WriteEnum((int) TransparencyMode);
 622      }
 0623      if (HasMetallic) {
 0624        output.WriteRawTag(93);
 0625        output.WriteFloat(Metallic);
 626      }
 0627      if (HasRoughness) {
 0628        output.WriteRawTag(101);
 0629        output.WriteFloat(Roughness);
 630      }
 0631      if (HasGlossiness) {
 0632        output.WriteRawTag(109);
 0633        output.WriteFloat(Glossiness);
 634      }
 0635      if (HasSpecularIntensity) {
 0636        output.WriteRawTag(117);
 0637        output.WriteFloat(SpecularIntensity);
 638      }
 0639      if (HasEmissiveIntensity) {
 0640        output.WriteRawTag(125);
 0641        output.WriteFloat(EmissiveIntensity);
 642      }
 0643      if (HasDirectIntensity) {
 0644        output.WriteRawTag(133, 1);
 0645        output.WriteFloat(DirectIntensity);
 646      }
 0647      if (_unknownFields != null) {
 0648        _unknownFields.WriteTo(output);
 649      }
 650    #endif
 0651    }
 652
 653    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 654    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 655    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 656    void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
 657      if (texture_ != null) {
 658        output.WriteRawTag(10);
 659        output.WriteMessage(Texture);
 660      }
 661      if (HasAlphaTest) {
 662        output.WriteRawTag(21);
 663        output.WriteFloat(AlphaTest);
 664      }
 665      if (HasCastShadows) {
 666        output.WriteRawTag(24);
 667        output.WriteBool(CastShadows);
 668      }
 669      if (alphaTexture_ != null) {
 670        output.WriteRawTag(34);
 671        output.WriteMessage(AlphaTexture);
 672      }
 673      if (emissiveTexture_ != null) {
 674        output.WriteRawTag(42);
 675        output.WriteMessage(EmissiveTexture);
 676      }
 677      if (bumpTexture_ != null) {
 678        output.WriteRawTag(50);
 679        output.WriteMessage(BumpTexture);
 680      }
 681      if (albedoColor_ != null) {
 682        output.WriteRawTag(58);
 683        output.WriteMessage(AlbedoColor);
 684      }
 685      if (emissiveColor_ != null) {
 686        output.WriteRawTag(66);
 687        output.WriteMessage(EmissiveColor);
 688      }
 689      if (reflectivityColor_ != null) {
 690        output.WriteRawTag(74);
 691        output.WriteMessage(ReflectivityColor);
 692      }
 693      if (HasTransparencyMode) {
 694        output.WriteRawTag(80);
 695        output.WriteEnum((int) TransparencyMode);
 696      }
 697      if (HasMetallic) {
 698        output.WriteRawTag(93);
 699        output.WriteFloat(Metallic);
 700      }
 701      if (HasRoughness) {
 702        output.WriteRawTag(101);
 703        output.WriteFloat(Roughness);
 704      }
 705      if (HasGlossiness) {
 706        output.WriteRawTag(109);
 707        output.WriteFloat(Glossiness);
 708      }
 709      if (HasSpecularIntensity) {
 710        output.WriteRawTag(117);
 711        output.WriteFloat(SpecularIntensity);
 712      }
 713      if (HasEmissiveIntensity) {
 714        output.WriteRawTag(125);
 715        output.WriteFloat(EmissiveIntensity);
 716      }
 717      if (HasDirectIntensity) {
 718        output.WriteRawTag(133, 1);
 719        output.WriteFloat(DirectIntensity);
 720      }
 721      if (_unknownFields != null) {
 722        _unknownFields.WriteTo(ref output);
 723      }
 724    }
 725    #endif
 726
 727    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 728    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 729    public int CalculateSize() {
 0730      int size = 0;
 0731      if (texture_ != null) {
 0732        size += 1 + pb::CodedOutputStream.ComputeMessageSize(Texture);
 733      }
 0734      if (HasAlphaTest) {
 0735        size += 1 + 4;
 736      }
 0737      if (HasCastShadows) {
 0738        size += 1 + 1;
 739      }
 0740      if (alphaTexture_ != null) {
 0741        size += 1 + pb::CodedOutputStream.ComputeMessageSize(AlphaTexture);
 742      }
 0743      if (emissiveTexture_ != null) {
 0744        size += 1 + pb::CodedOutputStream.ComputeMessageSize(EmissiveTexture);
 745      }
 0746      if (bumpTexture_ != null) {
 0747        size += 1 + pb::CodedOutputStream.ComputeMessageSize(BumpTexture);
 748      }
 0749      if (albedoColor_ != null) {
 0750        size += 1 + pb::CodedOutputStream.ComputeMessageSize(AlbedoColor);
 751      }
 0752      if (emissiveColor_ != null) {
 0753        size += 1 + pb::CodedOutputStream.ComputeMessageSize(EmissiveColor);
 754      }
 0755      if (reflectivityColor_ != null) {
 0756        size += 1 + pb::CodedOutputStream.ComputeMessageSize(ReflectivityColor);
 757      }
 0758      if (HasTransparencyMode) {
 0759        size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) TransparencyMode);
 760      }
 0761      if (HasMetallic) {
 0762        size += 1 + 4;
 763      }
 0764      if (HasRoughness) {
 0765        size += 1 + 4;
 766      }
 0767      if (HasGlossiness) {
 0768        size += 1 + 4;
 769      }
 0770      if (HasSpecularIntensity) {
 0771        size += 1 + 4;
 772      }
 0773      if (HasEmissiveIntensity) {
 0774        size += 1 + 4;
 775      }
 0776      if (HasDirectIntensity) {
 0777        size += 2 + 4;
 778      }
 0779      if (_unknownFields != null) {
 0780        size += _unknownFields.CalculateSize();
 781      }
 0782      return size;
 783    }
 784
 785    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 786    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 787    public void MergeFrom(PBMaterial other) {
 0788      if (other == null) {
 0789        return;
 790      }
 0791      if (other.texture_ != null) {
 0792        if (texture_ == null) {
 0793          Texture = new global::DCL.ECSComponents.PBMaterial.Types.Texture();
 794        }
 0795        Texture.MergeFrom(other.Texture);
 796      }
 0797      if (other.HasAlphaTest) {
 0798        AlphaTest = other.AlphaTest;
 799      }
 0800      if (other.HasCastShadows) {
 0801        CastShadows = other.CastShadows;
 802      }
 0803      if (other.alphaTexture_ != null) {
 0804        if (alphaTexture_ == null) {
 0805          AlphaTexture = new global::DCL.ECSComponents.PBMaterial.Types.Texture();
 806        }
 0807        AlphaTexture.MergeFrom(other.AlphaTexture);
 808      }
 0809      if (other.emissiveTexture_ != null) {
 0810        if (emissiveTexture_ == null) {
 0811          EmissiveTexture = new global::DCL.ECSComponents.PBMaterial.Types.Texture();
 812        }
 0813        EmissiveTexture.MergeFrom(other.EmissiveTexture);
 814      }
 0815      if (other.bumpTexture_ != null) {
 0816        if (bumpTexture_ == null) {
 0817          BumpTexture = new global::DCL.ECSComponents.PBMaterial.Types.Texture();
 818        }
 0819        BumpTexture.MergeFrom(other.BumpTexture);
 820      }
 0821      if (other.albedoColor_ != null) {
 0822        if (albedoColor_ == null) {
 0823          AlbedoColor = new global::Color3();
 824        }
 0825        AlbedoColor.MergeFrom(other.AlbedoColor);
 826      }
 0827      if (other.emissiveColor_ != null) {
 0828        if (emissiveColor_ == null) {
 0829          EmissiveColor = new global::Color3();
 830        }
 0831        EmissiveColor.MergeFrom(other.EmissiveColor);
 832      }
 0833      if (other.reflectivityColor_ != null) {
 0834        if (reflectivityColor_ == null) {
 0835          ReflectivityColor = new global::Color3();
 836        }
 0837        ReflectivityColor.MergeFrom(other.ReflectivityColor);
 838      }
 0839      if (other.HasTransparencyMode) {
 0840        TransparencyMode = other.TransparencyMode;
 841      }
 0842      if (other.HasMetallic) {
 0843        Metallic = other.Metallic;
 844      }
 0845      if (other.HasRoughness) {
 0846        Roughness = other.Roughness;
 847      }
 0848      if (other.HasGlossiness) {
 0849        Glossiness = other.Glossiness;
 850      }
 0851      if (other.HasSpecularIntensity) {
 0852        SpecularIntensity = other.SpecularIntensity;
 853      }
 0854      if (other.HasEmissiveIntensity) {
 0855        EmissiveIntensity = other.EmissiveIntensity;
 856      }
 0857      if (other.HasDirectIntensity) {
 0858        DirectIntensity = other.DirectIntensity;
 859      }
 0860      _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 0861    }
 862
 863    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 864    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 865    public void MergeFrom(pb::CodedInputStream input) {
 866    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 867      input.ReadRawMessage(this);
 868    #else
 869      uint tag;
 0870      while ((tag = input.ReadTag()) != 0) {
 871        switch(tag) {
 872          default:
 0873            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
 0874            break;
 875          case 10: {
 0876            if (texture_ == null) {
 0877              Texture = new global::DCL.ECSComponents.PBMaterial.Types.Texture();
 878            }
 0879            input.ReadMessage(Texture);
 0880            break;
 881          }
 882          case 21: {
 0883            AlphaTest = input.ReadFloat();
 0884            break;
 885          }
 886          case 24: {
 0887            CastShadows = input.ReadBool();
 0888            break;
 889          }
 890          case 34: {
 0891            if (alphaTexture_ == null) {
 0892              AlphaTexture = new global::DCL.ECSComponents.PBMaterial.Types.Texture();
 893            }
 0894            input.ReadMessage(AlphaTexture);
 0895            break;
 896          }
 897          case 42: {
 0898            if (emissiveTexture_ == null) {
 0899              EmissiveTexture = new global::DCL.ECSComponents.PBMaterial.Types.Texture();
 900            }
 0901            input.ReadMessage(EmissiveTexture);
 0902            break;
 903          }
 904          case 50: {
 0905            if (bumpTexture_ == null) {
 0906              BumpTexture = new global::DCL.ECSComponents.PBMaterial.Types.Texture();
 907            }
 0908            input.ReadMessage(BumpTexture);
 0909            break;
 910          }
 911          case 58: {
 0912            if (albedoColor_ == null) {
 0913              AlbedoColor = new global::Color3();
 914            }
 0915            input.ReadMessage(AlbedoColor);
 0916            break;
 917          }
 918          case 66: {
 0919            if (emissiveColor_ == null) {
 0920              EmissiveColor = new global::Color3();
 921            }
 0922            input.ReadMessage(EmissiveColor);
 0923            break;
 924          }
 925          case 74: {
 0926            if (reflectivityColor_ == null) {
 0927              ReflectivityColor = new global::Color3();
 928            }
 0929            input.ReadMessage(ReflectivityColor);
 0930            break;
 931          }
 932          case 80: {
 0933            TransparencyMode = (global::DCL.ECSComponents.TransparencyMode) input.ReadEnum();
 0934            break;
 935          }
 936          case 93: {
 0937            Metallic = input.ReadFloat();
 0938            break;
 939          }
 940          case 101: {
 0941            Roughness = input.ReadFloat();
 0942            break;
 943          }
 944          case 109: {
 0945            Glossiness = input.ReadFloat();
 0946            break;
 947          }
 948          case 117: {
 0949            SpecularIntensity = input.ReadFloat();
 0950            break;
 951          }
 952          case 125: {
 0953            EmissiveIntensity = input.ReadFloat();
 0954            break;
 955          }
 956          case 133: {
 0957            DirectIntensity = input.ReadFloat();
 958            break;
 959          }
 960        }
 961      }
 962    #endif
 0963    }
 964
 965    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 966    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 967    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 968    void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
 969      uint tag;
 970      while ((tag = input.ReadTag()) != 0) {
 971        switch(tag) {
 972          default:
 973            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
 974            break;
 975          case 10: {
 976            if (texture_ == null) {
 977              Texture = new global::DCL.ECSComponents.PBMaterial.Types.Texture();
 978            }
 979            input.ReadMessage(Texture);
 980            break;
 981          }
 982          case 21: {
 983            AlphaTest = input.ReadFloat();
 984            break;
 985          }
 986          case 24: {
 987            CastShadows = input.ReadBool();
 988            break;
 989          }
 990          case 34: {
 991            if (alphaTexture_ == null) {
 992              AlphaTexture = new global::DCL.ECSComponents.PBMaterial.Types.Texture();
 993            }
 994            input.ReadMessage(AlphaTexture);
 995            break;
 996          }
 997          case 42: {
 998            if (emissiveTexture_ == null) {
 999              EmissiveTexture = new global::DCL.ECSComponents.PBMaterial.Types.Texture();
 1000            }
 1001            input.ReadMessage(EmissiveTexture);
 1002            break;
 1003          }
 1004          case 50: {
 1005            if (bumpTexture_ == null) {
 1006              BumpTexture = new global::DCL.ECSComponents.PBMaterial.Types.Texture();
 1007            }
 1008            input.ReadMessage(BumpTexture);
 1009            break;
 1010          }
 1011          case 58: {
 1012            if (albedoColor_ == null) {
 1013              AlbedoColor = new global::Color3();
 1014            }
 1015            input.ReadMessage(AlbedoColor);
 1016            break;
 1017          }
 1018          case 66: {
 1019            if (emissiveColor_ == null) {
 1020              EmissiveColor = new global::Color3();
 1021            }
 1022            input.ReadMessage(EmissiveColor);
 1023            break;
 1024          }
 1025          case 74: {
 1026            if (reflectivityColor_ == null) {
 1027              ReflectivityColor = new global::Color3();
 1028            }
 1029            input.ReadMessage(ReflectivityColor);
 1030            break;
 1031          }
 1032          case 80: {
 1033            TransparencyMode = (global::DCL.ECSComponents.TransparencyMode) input.ReadEnum();
 1034            break;
 1035          }
 1036          case 93: {
 1037            Metallic = input.ReadFloat();
 1038            break;
 1039          }
 1040          case 101: {
 1041            Roughness = input.ReadFloat();
 1042            break;
 1043          }
 1044          case 109: {
 1045            Glossiness = input.ReadFloat();
 1046            break;
 1047          }
 1048          case 117: {
 1049            SpecularIntensity = input.ReadFloat();
 1050            break;
 1051          }
 1052          case 125: {
 1053            EmissiveIntensity = input.ReadFloat();
 1054            break;
 1055          }
 1056          case 133: {
 1057            DirectIntensity = input.ReadFloat();
 1058            break;
 1059          }
 1060        }
 1061      }
 1062    }
 1063    #endif
 1064
 1065    #region Nested types
 1066    /// <summary>Container for nested types declared in the PBMaterial message type.</summary>
 1067    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 1068    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 1069    public static partial class Types {
 1070      public sealed partial class Texture : pb::IMessage<Texture>
 1071      #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 1072          , pb::IBufferMessage
 1073      #endif
 1074      {
 11075        private static readonly pb::MessageParser<Texture> _parser = new pb::MessageParser<Texture>(() => new Texture())
 1076        private pb::UnknownFieldSet _unknownFields;
 1077        private int _hasBits0;
 1078        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 1079        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 01080        public static pb::MessageParser<Texture> Parser { get { return _parser; } }
 1081
 1082        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 1083        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 1084        public static pbr::MessageDescriptor Descriptor {
 01085          get { return global::DCL.ECSComponents.PBMaterial.Descriptor.NestedTypes[0]; }
 1086        }
 1087
 1088        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 1089        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 1090        pbr::MessageDescriptor pb::IMessage.Descriptor {
 01091          get { return Descriptor; }
 1092        }
 1093
 1094        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 1095        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 11096        public Texture() {
 1097          OnConstruction();
 11098        }
 1099
 1100        partial void OnConstruction();
 1101
 1102        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 1103        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 41104        public Texture(Texture other) : this() {
 41105          _hasBits0 = other._hasBits0;
 41106          src_ = other.src_;
 41107          wrapMode_ = other.wrapMode_;
 41108          filterMode_ = other.filterMode_;
 41109          _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
 41110        }
 1111
 1112        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 1113        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 1114        public Texture Clone() {
 41115          return new Texture(this);
 1116        }
 1117
 1118        /// <summary>Field number for the "src" field.</summary>
 1119        public const int SrcFieldNumber = 1;
 11120        private string src_ = "";
 1121        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 1122        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 1123        public string Src {
 01124          get { return src_; }
 1125          set {
 11126            src_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
 11127          }
 1128        }
 1129
 1130        /// <summary>Field number for the "wrapMode" field.</summary>
 1131        public const int WrapModeFieldNumber = 2;
 1132        private global::DCL.ECSComponents.TextureWrapMode wrapMode_;
 1133        /// <summary>
 1134        /// default = TextureWrapMode.Clamp
 1135        /// </summary>
 1136        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 1137        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 1138        public global::DCL.ECSComponents.TextureWrapMode WrapMode {
 01139          get { if ((_hasBits0 & 1) != 0) { return wrapMode_; } else { return global::DCL.ECSComponents.TextureWrapMode.
 1140          set {
 21141            _hasBits0 |= 1;
 21142            wrapMode_ = value;
 21143          }
 1144        }
 1145        /// <summary>Gets whether the "wrapMode" field is set</summary>
 1146        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 1147        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 1148        public bool HasWrapMode {
 01149          get { return (_hasBits0 & 1) != 0; }
 1150        }
 1151        /// <summary>Clears the value of the "wrapMode" field</summary>
 1152        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 1153        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 1154        public void ClearWrapMode() {
 01155          _hasBits0 &= ~1;
 01156        }
 1157
 1158        /// <summary>Field number for the "filterMode" field.</summary>
 1159        public const int FilterModeFieldNumber = 3;
 1160        private global::DCL.ECSComponents.FilterMode filterMode_;
 1161        /// <summary>
 1162        /// default = FilterMode.Bilinear
 1163        /// </summary>
 1164        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 1165        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 1166        public global::DCL.ECSComponents.FilterMode FilterMode {
 01167          get { if ((_hasBits0 & 2) != 0) { return filterMode_; } else { return global::DCL.ECSComponents.FilterMode.Poi
 1168          set {
 01169            _hasBits0 |= 2;
 01170            filterMode_ = value;
 01171          }
 1172        }
 1173        /// <summary>Gets whether the "filterMode" field is set</summary>
 1174        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 1175        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 1176        public bool HasFilterMode {
 01177          get { return (_hasBits0 & 2) != 0; }
 1178        }
 1179        /// <summary>Clears the value of the "filterMode" field</summary>
 1180        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 1181        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 1182        public void ClearFilterMode() {
 01183          _hasBits0 &= ~2;
 01184        }
 1185
 1186        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 1187        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 1188        public override bool Equals(object other) {
 41189          return Equals(other as Texture);
 1190        }
 1191
 1192        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 1193        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 1194        public bool Equals(Texture other) {
 41195          if (ReferenceEquals(other, null)) {
 01196            return false;
 1197          }
 41198          if (ReferenceEquals(other, this)) {
 01199            return true;
 1200          }
 41201          if (Src != other.Src) return false;
 61202          if (WrapMode != other.WrapMode) return false;
 21203          if (FilterMode != other.FilterMode) return false;
 21204          return Equals(_unknownFields, other._unknownFields);
 1205        }
 1206
 1207        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 1208        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 1209        public override int GetHashCode() {
 01210          int hash = 1;
 01211          if (Src.Length != 0) hash ^= Src.GetHashCode();
 01212          if (HasWrapMode) hash ^= WrapMode.GetHashCode();
 01213          if (HasFilterMode) hash ^= FilterMode.GetHashCode();
 01214          if (_unknownFields != null) {
 01215            hash ^= _unknownFields.GetHashCode();
 1216          }
 01217          return hash;
 1218        }
 1219
 1220        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 1221        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 1222        public override string ToString() {
 01223          return pb::JsonFormatter.ToDiagnosticString(this);
 1224        }
 1225
 1226        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 1227        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 1228        public void WriteTo(pb::CodedOutputStream output) {
 1229        #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 1230          output.WriteRawMessage(this);
 1231        #else
 01232          if (Src.Length != 0) {
 01233            output.WriteRawTag(10);
 01234            output.WriteString(Src);
 1235          }
 01236          if (HasWrapMode) {
 01237            output.WriteRawTag(16);
 01238            output.WriteEnum((int) WrapMode);
 1239          }
 01240          if (HasFilterMode) {
 01241            output.WriteRawTag(24);
 01242            output.WriteEnum((int) FilterMode);
 1243          }
 01244          if (_unknownFields != null) {
 01245            _unknownFields.WriteTo(output);
 1246          }
 1247        #endif
 01248        }
 1249
 1250        #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 1251        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 1252        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 1253        void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
 1254          if (Src.Length != 0) {
 1255            output.WriteRawTag(10);
 1256            output.WriteString(Src);
 1257          }
 1258          if (HasWrapMode) {
 1259            output.WriteRawTag(16);
 1260            output.WriteEnum((int) WrapMode);
 1261          }
 1262          if (HasFilterMode) {
 1263            output.WriteRawTag(24);
 1264            output.WriteEnum((int) FilterMode);
 1265          }
 1266          if (_unknownFields != null) {
 1267            _unknownFields.WriteTo(ref output);
 1268          }
 1269        }
 1270        #endif
 1271
 1272        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 1273        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 1274        public int CalculateSize() {
 01275          int size = 0;
 01276          if (Src.Length != 0) {
 01277            size += 1 + pb::CodedOutputStream.ComputeStringSize(Src);
 1278          }
 01279          if (HasWrapMode) {
 01280            size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) WrapMode);
 1281          }
 01282          if (HasFilterMode) {
 01283            size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) FilterMode);
 1284          }
 01285          if (_unknownFields != null) {
 01286            size += _unknownFields.CalculateSize();
 1287          }
 01288          return size;
 1289        }
 1290
 1291        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 1292        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 1293        public void MergeFrom(Texture other) {
 01294          if (other == null) {
 01295            return;
 1296          }
 01297          if (other.Src.Length != 0) {
 01298            Src = other.Src;
 1299          }
 01300          if (other.HasWrapMode) {
 01301            WrapMode = other.WrapMode;
 1302          }
 01303          if (other.HasFilterMode) {
 01304            FilterMode = other.FilterMode;
 1305          }
 01306          _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 01307        }
 1308
 1309        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 1310        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 1311        public void MergeFrom(pb::CodedInputStream input) {
 1312        #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 1313          input.ReadRawMessage(this);
 1314        #else
 1315          uint tag;
 01316          while ((tag = input.ReadTag()) != 0) {
 1317            switch(tag) {
 1318              default:
 01319                _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
 01320                break;
 1321              case 10: {
 01322                Src = input.ReadString();
 01323                break;
 1324              }
 1325              case 16: {
 01326                WrapMode = (global::DCL.ECSComponents.TextureWrapMode) input.ReadEnum();
 01327                break;
 1328              }
 1329              case 24: {
 01330                FilterMode = (global::DCL.ECSComponents.FilterMode) input.ReadEnum();
 1331                break;
 1332              }
 1333            }
 1334          }
 1335        #endif
 01336        }
 1337
 1338        #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 1339        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 1340        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 1341        void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
 1342          uint tag;
 1343          while ((tag = input.ReadTag()) != 0) {
 1344            switch(tag) {
 1345              default:
 1346                _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
 1347                break;
 1348              case 10: {
 1349                Src = input.ReadString();
 1350                break;
 1351              }
 1352              case 16: {
 1353                WrapMode = (global::DCL.ECSComponents.TextureWrapMode) input.ReadEnum();
 1354                break;
 1355              }
 1356              case 24: {
 1357                FilterMode = (global::DCL.ECSComponents.FilterMode) input.ReadEnum();
 1358                break;
 1359              }
 1360            }
 1361          }
 1362        }
 1363        #endif
 1364
 1365      }
 1366
 1367    }
 1368    #endregion
 1369
 1370  }
 1371
 1372  #endregion
 1373
 1374}
 1375
 1376#endregion Designer generated code

Methods/Properties

PBMaterial()
Parser()
Descriptor()
get_Descriptor()
PBMaterial()
PBMaterial(DCL.ECSComponents.PBMaterial)
Clone()
Texture()
Texture(DCL.ECSComponents.PBMaterial/Types/Texture)
AlphaTest()
AlphaTest(System.Single)
HasAlphaTest()
ClearAlphaTest()
CastShadows()
CastShadows(System.Boolean)
HasCastShadows()
ClearCastShadows()
AlphaTexture()
AlphaTexture(DCL.ECSComponents.PBMaterial/Types/Texture)
EmissiveTexture()
EmissiveTexture(DCL.ECSComponents.PBMaterial/Types/Texture)
BumpTexture()
BumpTexture(DCL.ECSComponents.PBMaterial/Types/Texture)
AlbedoColor()
AlbedoColor(Color3)
EmissiveColor()
EmissiveColor(Color3)
ReflectivityColor()
ReflectivityColor(Color3)
TransparencyMode()
TransparencyMode(DCL.ECSComponents.TransparencyMode)
HasTransparencyMode()
ClearTransparencyMode()
Metallic()
Metallic(System.Single)
HasMetallic()
ClearMetallic()
Roughness()
Roughness(System.Single)
HasRoughness()
ClearRoughness()
Glossiness()
Glossiness(System.Single)
HasGlossiness()
ClearGlossiness()
SpecularIntensity()
SpecularIntensity(System.Single)
HasSpecularIntensity()
ClearSpecularIntensity()
EmissiveIntensity()
EmissiveIntensity(System.Single)
HasEmissiveIntensity()
ClearEmissiveIntensity()
DirectIntensity()
DirectIntensity(System.Single)
HasDirectIntensity()
ClearDirectIntensity()
Equals(System.Object)
Equals(DCL.ECSComponents.PBMaterial)
GetHashCode()
ToString()
WriteTo(Google.Protobuf.CodedOutputStream)
CalculateSize()
MergeFrom(DCL.ECSComponents.PBMaterial)
MergeFrom(Google.Protobuf.CodedInputStream)
Texture()
Parser()
Descriptor()
get_Descriptor()
Texture()
Texture(DCL.ECSComponents.PBMaterial/Types/Texture)
Clone()
Src()
Src(System.String)
WrapMode()
WrapMode(DCL.ECSComponents.TextureWrapMode)
HasWrapMode()
ClearWrapMode()
FilterMode()
FilterMode(DCL.ECSComponents.FilterMode)
HasFilterMode()
ClearFilterMode()
Equals(System.Object)
Equals(DCL.ECSComponents.PBMaterial/Types/Texture)
GetHashCode()
ToString()
WriteTo(Google.Protobuf.CodedOutputStream)
CalculateSize()
MergeFrom(DCL.ECSComponents.PBMaterial/Types/Texture)
MergeFrom(Google.Protobuf.CodedInputStream)