< Summary

Class:DCL.ECSComponents.PBPlayerIdentityData
Assembly:Decentraland.Protocol.GeneratedCode
File(s):/tmp/workspace/unity-renderer/unity-renderer/Assets/Scripts/MainScripts/DCL/DecentralandProtocol/PlayerIdentityData.gen.cs
Covered lines:0
Uncovered lines:66
Coverable lines:66
Total lines:279
Line coverage:0% (0 of 66)
Covered branches:0
Total branches:0
Covered methods:0
Total methods:19
Method coverage:0% (0 of 19)

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity NPath complexity Sequence coverage
PBPlayerIdentityData()0%2100%
get_Descriptor()0%2100%
PBPlayerIdentityData(...)0%2100%
Clone()0%2100%
PBPlayerIdentityData()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/PlayerIdentityData.gen.cs

#LineLine coverage
 1// <auto-generated>
 2//     Generated by the protocol buffer compiler.  DO NOT EDIT!
 3//     source: decentraland/sdk/components/player_identity_data.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/sdk/components/player_identity_data.proto</
 15  public static partial class PlayerIdentityDataReflection {
 16
 17    #region Descriptor
 18    /// <summary>File descriptor for decentraland/sdk/components/player_identity_data.proto</summary>
 19    public static pbr::FileDescriptor Descriptor {
 20      get { return descriptor; }
 21    }
 22    private static pbr::FileDescriptor descriptor;
 23
 24    static PlayerIdentityDataReflection() {
 25      byte[] descriptorData = global::System.Convert.FromBase64String(
 26          string.Concat(
 27            "CjZkZWNlbnRyYWxhbmQvc2RrL2NvbXBvbmVudHMvcGxheWVyX2lkZW50aXR5",
 28            "X2RhdGEucHJvdG8SG2RlY2VudHJhbGFuZC5zZGsuY29tcG9uZW50cyI5ChRQ",
 29            "QlBsYXllcklkZW50aXR5RGF0YRIPCgdhZGRyZXNzGAEgASgJEhAKCGlzX2d1",
 30            "ZXN0GAMgASgIQhSqAhFEQ0wuRUNTQ29tcG9uZW50c2IGcHJvdG8z"));
 31      descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
 32          new pbr::FileDescriptor[] { },
 33          new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
 34            new pbr::GeneratedClrTypeInfo(typeof(global::DCL.ECSComponents.PBPlayerIdentityData), global::DCL.ECSCompone
 35          }));
 36    }
 37    #endregion
 38
 39  }
 40  #region Messages
 41  /// <summary>
 42  /// PlayerIdentityData is used to read the information about the avatar's
 43  /// identity. this component is written by the engine using the communications
 44  /// transports' data.
 45  /// </summary>
 46  public sealed partial class PBPlayerIdentityData : pb::IMessage<PBPlayerIdentityData>
 47  #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 48      , pb::IBufferMessage
 49  #endif
 50  {
 051    private static readonly pb::MessageParser<PBPlayerIdentityData> _parser = new pb::MessageParser<PBPlayerIdentityData
 52    private pb::UnknownFieldSet _unknownFields;
 53    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 54    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 055    public static pb::MessageParser<PBPlayerIdentityData> Parser { get { return _parser; } }
 56
 57    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 58    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 59    public static pbr::MessageDescriptor Descriptor {
 060      get { return global::DCL.ECSComponents.PlayerIdentityDataReflection.Descriptor.MessageTypes[0]; }
 61    }
 62
 63    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 64    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 65    pbr::MessageDescriptor pb::IMessage.Descriptor {
 066      get { return Descriptor; }
 67    }
 68
 69    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 70    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 071    public PBPlayerIdentityData() {
 72      OnConstruction();
 073    }
 74
 75    partial void OnConstruction();
 76
 77    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 78    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 079    public PBPlayerIdentityData(PBPlayerIdentityData other) : this() {
 080      address_ = other.address_;
 081      isGuest_ = other.isGuest_;
 082      _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
 083    }
 84
 85    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 86    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 87    public PBPlayerIdentityData Clone() {
 088      return new PBPlayerIdentityData(this);
 89    }
 90
 91    /// <summary>Field number for the "address" field.</summary>
 92    public const int AddressFieldNumber = 1;
 093    private string address_ = "";
 94    /// <summary>
 95    /// ethereum address of this player
 96    /// </summary>
 97    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 98    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 99    public string Address {
 0100      get { return address_; }
 101      set {
 0102        address_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
 0103      }
 104    }
 105
 106    /// <summary>Field number for the "is_guest" field.</summary>
 107    public const int IsGuestFieldNumber = 3;
 108    private bool isGuest_;
 109    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 110    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 111    public bool IsGuest {
 0112      get { return isGuest_; }
 113      set {
 0114        isGuest_ = value;
 0115      }
 116    }
 117
 118    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 119    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 120    public override bool Equals(object other) {
 0121      return Equals(other as PBPlayerIdentityData);
 122    }
 123
 124    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 125    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 126    public bool Equals(PBPlayerIdentityData other) {
 0127      if (ReferenceEquals(other, null)) {
 0128        return false;
 129      }
 0130      if (ReferenceEquals(other, this)) {
 0131        return true;
 132      }
 0133      if (Address != other.Address) return false;
 0134      if (IsGuest != other.IsGuest) return false;
 0135      return Equals(_unknownFields, other._unknownFields);
 136    }
 137
 138    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 139    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 140    public override int GetHashCode() {
 0141      int hash = 1;
 0142      if (Address.Length != 0) hash ^= Address.GetHashCode();
 0143      if (IsGuest != false) hash ^= IsGuest.GetHashCode();
 0144      if (_unknownFields != null) {
 0145        hash ^= _unknownFields.GetHashCode();
 146      }
 0147      return hash;
 148    }
 149
 150    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 151    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 152    public override string ToString() {
 0153      return pb::JsonFormatter.ToDiagnosticString(this);
 154    }
 155
 156    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 157    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 158    public void WriteTo(pb::CodedOutputStream output) {
 159    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 160      output.WriteRawMessage(this);
 161    #else
 0162      if (Address.Length != 0) {
 0163        output.WriteRawTag(10);
 0164        output.WriteString(Address);
 165      }
 0166      if (IsGuest != false) {
 0167        output.WriteRawTag(24);
 0168        output.WriteBool(IsGuest);
 169      }
 0170      if (_unknownFields != null) {
 0171        _unknownFields.WriteTo(output);
 172      }
 173    #endif
 0174    }
 175
 176    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 177    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 178    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 179    void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
 180      if (Address.Length != 0) {
 181        output.WriteRawTag(10);
 182        output.WriteString(Address);
 183      }
 184      if (IsGuest != false) {
 185        output.WriteRawTag(24);
 186        output.WriteBool(IsGuest);
 187      }
 188      if (_unknownFields != null) {
 189        _unknownFields.WriteTo(ref output);
 190      }
 191    }
 192    #endif
 193
 194    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 195    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 196    public int CalculateSize() {
 0197      int size = 0;
 0198      if (Address.Length != 0) {
 0199        size += 1 + pb::CodedOutputStream.ComputeStringSize(Address);
 200      }
 0201      if (IsGuest != false) {
 0202        size += 1 + 1;
 203      }
 0204      if (_unknownFields != null) {
 0205        size += _unknownFields.CalculateSize();
 206      }
 0207      return size;
 208    }
 209
 210    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 211    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 212    public void MergeFrom(PBPlayerIdentityData other) {
 0213      if (other == null) {
 0214        return;
 215      }
 0216      if (other.Address.Length != 0) {
 0217        Address = other.Address;
 218      }
 0219      if (other.IsGuest != false) {
 0220        IsGuest = other.IsGuest;
 221      }
 0222      _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 0223    }
 224
 225    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 226    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 227    public void MergeFrom(pb::CodedInputStream input) {
 228    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 229      input.ReadRawMessage(this);
 230    #else
 231      uint tag;
 0232      while ((tag = input.ReadTag()) != 0) {
 233        switch(tag) {
 234          default:
 0235            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
 0236            break;
 237          case 10: {
 0238            Address = input.ReadString();
 0239            break;
 240          }
 241          case 24: {
 0242            IsGuest = input.ReadBool();
 243            break;
 244          }
 245        }
 246      }
 247    #endif
 0248    }
 249
 250    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 251    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 252    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 253    void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
 254      uint tag;
 255      while ((tag = input.ReadTag()) != 0) {
 256        switch(tag) {
 257          default:
 258            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
 259            break;
 260          case 10: {
 261            Address = input.ReadString();
 262            break;
 263          }
 264          case 24: {
 265            IsGuest = input.ReadBool();
 266            break;
 267          }
 268        }
 269      }
 270    }
 271    #endif
 272
 273  }
 274
 275  #endregion
 276
 277}
 278
 279#endregion Designer generated code