< Summary

Class:Decentraland.Common.ContentMappingReflection
Assembly:Decentraland.Protocol.GeneratedCode
File(s):/tmp/workspace/unity-renderer/unity-renderer/Assets/Scripts/MainScripts/DCL/DecentralandProtocol/ContentMapping.gen.cs
Covered lines:4
Uncovered lines:0
Coverable lines:4
Total lines:270
Line coverage:100% (4 of 4)
Covered branches:0
Total branches:0

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity NPath complexity Sequence coverage
ContentMappingReflection()0%110100%

File(s)

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

#LineLine coverage
 1// <auto-generated>
 2//     Generated by the protocol buffer compiler.  DO NOT EDIT!
 3//     source: decentraland/common/content_mapping.proto
 4// </auto-generated>
 5#pragma warning disable 1591, 0612, 3021
 6#region Designer generated code
 7
 8using pb = global::Google.Protobuf;
 9using pbc = global::Google.Protobuf.Collections;
 10using pbr = global::Google.Protobuf.Reflection;
 11using scg = global::System.Collections.Generic;
 12namespace Decentraland.Common {
 13
 14  /// <summary>Holder for reflection information generated from decentraland/common/content_mapping.proto</summary>
 15  public static partial class ContentMappingReflection {
 16
 17    #region Descriptor
 18    /// <summary>File descriptor for decentraland/common/content_mapping.proto</summary>
 19    public static pbr::FileDescriptor Descriptor {
 120      get { return descriptor; }
 21    }
 22    private static pbr::FileDescriptor descriptor;
 23
 24    static ContentMappingReflection() {
 125      byte[] descriptorData = global::System.Convert.FromBase64String(
 26          string.Concat(
 27            "CilkZWNlbnRyYWxhbmQvY29tbW9uL2NvbnRlbnRfbWFwcGluZy5wcm90bxIT",
 28            "ZGVjZW50cmFsYW5kLmNvbW1vbiIsCg5Db250ZW50TWFwcGluZxIMCgRmaWxl",
 29            "GAEgASgJEgwKBGhhc2gYAiABKAliBnByb3RvMw=="));
 130      descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
 31          new pbr::FileDescriptor[] { },
 32          new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
 33            new pbr::GeneratedClrTypeInfo(typeof(global::Decentraland.Common.ContentMapping), global::Decentraland.Commo
 34          }));
 135    }
 36    #endregion
 37
 38  }
 39  #region Messages
 40  public sealed partial class ContentMapping : pb::IMessage<ContentMapping>
 41  #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 42      , pb::IBufferMessage
 43  #endif
 44  {
 45    private static readonly pb::MessageParser<ContentMapping> _parser = new pb::MessageParser<ContentMapping>(() => new 
 46    private pb::UnknownFieldSet _unknownFields;
 47    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 48    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 49    public static pb::MessageParser<ContentMapping> Parser { get { return _parser; } }
 50
 51    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 52    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 53    public static pbr::MessageDescriptor Descriptor {
 54      get { return global::Decentraland.Common.ContentMappingReflection.Descriptor.MessageTypes[0]; }
 55    }
 56
 57    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 58    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 59    pbr::MessageDescriptor pb::IMessage.Descriptor {
 60      get { return Descriptor; }
 61    }
 62
 63    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 64    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 65    public ContentMapping() {
 66      OnConstruction();
 67    }
 68
 69    partial void OnConstruction();
 70
 71    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 72    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 73    public ContentMapping(ContentMapping other) : this() {
 74      file_ = other.file_;
 75      hash_ = other.hash_;
 76      _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
 77    }
 78
 79    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 80    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 81    public ContentMapping Clone() {
 82      return new ContentMapping(this);
 83    }
 84
 85    /// <summary>Field number for the "file" field.</summary>
 86    public const int FileFieldNumber = 1;
 87    private string file_ = "";
 88    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 89    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 90    public string File {
 91      get { return file_; }
 92      set {
 93        file_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
 94      }
 95    }
 96
 97    /// <summary>Field number for the "hash" field.</summary>
 98    public const int HashFieldNumber = 2;
 99    private string hash_ = "";
 100    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 101    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 102    public string Hash {
 103      get { return hash_; }
 104      set {
 105        hash_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
 106      }
 107    }
 108
 109    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 110    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 111    public override bool Equals(object other) {
 112      return Equals(other as ContentMapping);
 113    }
 114
 115    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 116    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 117    public bool Equals(ContentMapping other) {
 118      if (ReferenceEquals(other, null)) {
 119        return false;
 120      }
 121      if (ReferenceEquals(other, this)) {
 122        return true;
 123      }
 124      if (File != other.File) return false;
 125      if (Hash != other.Hash) return false;
 126      return Equals(_unknownFields, other._unknownFields);
 127    }
 128
 129    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 130    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 131    public override int GetHashCode() {
 132      int hash = 1;
 133      if (File.Length != 0) hash ^= File.GetHashCode();
 134      if (Hash.Length != 0) hash ^= Hash.GetHashCode();
 135      if (_unknownFields != null) {
 136        hash ^= _unknownFields.GetHashCode();
 137      }
 138      return hash;
 139    }
 140
 141    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 142    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 143    public override string ToString() {
 144      return pb::JsonFormatter.ToDiagnosticString(this);
 145    }
 146
 147    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 148    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 149    public void WriteTo(pb::CodedOutputStream output) {
 150    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 151      output.WriteRawMessage(this);
 152    #else
 153      if (File.Length != 0) {
 154        output.WriteRawTag(10);
 155        output.WriteString(File);
 156      }
 157      if (Hash.Length != 0) {
 158        output.WriteRawTag(18);
 159        output.WriteString(Hash);
 160      }
 161      if (_unknownFields != null) {
 162        _unknownFields.WriteTo(output);
 163      }
 164    #endif
 165    }
 166
 167    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 168    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 169    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 170    void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
 171      if (File.Length != 0) {
 172        output.WriteRawTag(10);
 173        output.WriteString(File);
 174      }
 175      if (Hash.Length != 0) {
 176        output.WriteRawTag(18);
 177        output.WriteString(Hash);
 178      }
 179      if (_unknownFields != null) {
 180        _unknownFields.WriteTo(ref output);
 181      }
 182    }
 183    #endif
 184
 185    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 186    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 187    public int CalculateSize() {
 188      int size = 0;
 189      if (File.Length != 0) {
 190        size += 1 + pb::CodedOutputStream.ComputeStringSize(File);
 191      }
 192      if (Hash.Length != 0) {
 193        size += 1 + pb::CodedOutputStream.ComputeStringSize(Hash);
 194      }
 195      if (_unknownFields != null) {
 196        size += _unknownFields.CalculateSize();
 197      }
 198      return size;
 199    }
 200
 201    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 202    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 203    public void MergeFrom(ContentMapping other) {
 204      if (other == null) {
 205        return;
 206      }
 207      if (other.File.Length != 0) {
 208        File = other.File;
 209      }
 210      if (other.Hash.Length != 0) {
 211        Hash = other.Hash;
 212      }
 213      _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 214    }
 215
 216    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 217    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 218    public void MergeFrom(pb::CodedInputStream input) {
 219    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 220      input.ReadRawMessage(this);
 221    #else
 222      uint tag;
 223      while ((tag = input.ReadTag()) != 0) {
 224        switch(tag) {
 225          default:
 226            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
 227            break;
 228          case 10: {
 229            File = input.ReadString();
 230            break;
 231          }
 232          case 18: {
 233            Hash = input.ReadString();
 234            break;
 235          }
 236        }
 237      }
 238    #endif
 239    }
 240
 241    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 242    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 243    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 244    void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
 245      uint tag;
 246      while ((tag = input.ReadTag()) != 0) {
 247        switch(tag) {
 248          default:
 249            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
 250            break;
 251          case 10: {
 252            File = input.ReadString();
 253            break;
 254          }
 255          case 18: {
 256            Hash = input.ReadString();
 257            break;
 258          }
 259        }
 260      }
 261    }
 262    #endif
 263
 264  }
 265
 266  #endregion
 267
 268}
 269
 270#endregion Designer generated code