< Summary

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

Metrics

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

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 {
 20      get { return descriptor; }
 21    }
 22    private static pbr::FileDescriptor descriptor;
 23
 24    static ContentMappingReflection() {
 25      byte[] descriptorData = global::System.Convert.FromBase64String(
 26          string.Concat(
 27            "CilkZWNlbnRyYWxhbmQvY29tbW9uL2NvbnRlbnRfbWFwcGluZy5wcm90bxIT",
 28            "ZGVjZW50cmFsYW5kLmNvbW1vbiIsCg5Db250ZW50TWFwcGluZxIMCgRmaWxl",
 29            "GAEgASgJEgwKBGhhc2gYAiABKAliBnByb3RvMw=="));
 30      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          }));
 35    }
 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  {
 145    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)]
 249    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 {
 054      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 {
 060      get { return Descriptor; }
 61    }
 62
 63    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 64    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 065    public ContentMapping() {
 66      OnConstruction();
 067    }
 68
 69    partial void OnConstruction();
 70
 71    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 72    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 073    public ContentMapping(ContentMapping other) : this() {
 074      file_ = other.file_;
 075      hash_ = other.hash_;
 076      _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
 077    }
 78
 79    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 80    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 81    public ContentMapping Clone() {
 082      return new ContentMapping(this);
 83    }
 84
 85    /// <summary>Field number for the "file" field.</summary>
 86    public const int FileFieldNumber = 1;
 087    private string file_ = "";
 88    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 89    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 90    public string File {
 091      get { return file_; }
 92      set {
 093        file_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
 094      }
 95    }
 96
 97    /// <summary>Field number for the "hash" field.</summary>
 98    public const int HashFieldNumber = 2;
 099    private string hash_ = "";
 100    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 101    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 102    public string Hash {
 0103      get { return hash_; }
 104      set {
 0105        hash_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
 0106      }
 107    }
 108
 109    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 110    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 111    public override bool Equals(object other) {
 0112      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) {
 0118      if (ReferenceEquals(other, null)) {
 0119        return false;
 120      }
 0121      if (ReferenceEquals(other, this)) {
 0122        return true;
 123      }
 0124      if (File != other.File) return false;
 0125      if (Hash != other.Hash) return false;
 0126      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() {
 0132      int hash = 1;
 0133      if (File.Length != 0) hash ^= File.GetHashCode();
 0134      if (Hash.Length != 0) hash ^= Hash.GetHashCode();
 0135      if (_unknownFields != null) {
 0136        hash ^= _unknownFields.GetHashCode();
 137      }
 0138      return hash;
 139    }
 140
 141    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 142    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 143    public override string ToString() {
 0144      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
 0153      if (File.Length != 0) {
 0154        output.WriteRawTag(10);
 0155        output.WriteString(File);
 156      }
 0157      if (Hash.Length != 0) {
 0158        output.WriteRawTag(18);
 0159        output.WriteString(Hash);
 160      }
 0161      if (_unknownFields != null) {
 0162        _unknownFields.WriteTo(output);
 163      }
 164    #endif
 0165    }
 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() {
 0188      int size = 0;
 0189      if (File.Length != 0) {
 0190        size += 1 + pb::CodedOutputStream.ComputeStringSize(File);
 191      }
 0192      if (Hash.Length != 0) {
 0193        size += 1 + pb::CodedOutputStream.ComputeStringSize(Hash);
 194      }
 0195      if (_unknownFields != null) {
 0196        size += _unknownFields.CalculateSize();
 197      }
 0198      return size;
 199    }
 200
 201    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 202    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 203    public void MergeFrom(ContentMapping other) {
 0204      if (other == null) {
 0205        return;
 206      }
 0207      if (other.File.Length != 0) {
 0208        File = other.File;
 209      }
 0210      if (other.Hash.Length != 0) {
 0211        Hash = other.Hash;
 212      }
 0213      _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 0214    }
 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;
 0223      while ((tag = input.ReadTag()) != 0) {
 224        switch(tag) {
 225          default:
 0226            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
 0227            break;
 228          case 10: {
 0229            File = input.ReadString();
 0230            break;
 231          }
 232          case 18: {
 0233            Hash = input.ReadString();
 234            break;
 235          }
 236        }
 237      }
 238    #endif
 0239    }
 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