< Summary

Class:DCL.ECSComponents.PlayerIdentityDataReflection
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:4
Coverable lines:4
Total lines:279
Line coverage:0% (0 of 4)
Covered branches:0
Total branches:0
Covered methods:0
Total methods:2
Method coverage:0% (0 of 2)

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity NPath complexity Sequence coverage
PlayerIdentityDataReflection()0%2100%

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 {
 020      get { return descriptor; }
 21    }
 22    private static pbr::FileDescriptor descriptor;
 23
 24    static PlayerIdentityDataReflection() {
 025      byte[] descriptorData = global::System.Convert.FromBase64String(
 26          string.Concat(
 27            "CjZkZWNlbnRyYWxhbmQvc2RrL2NvbXBvbmVudHMvcGxheWVyX2lkZW50aXR5",
 28            "X2RhdGEucHJvdG8SG2RlY2VudHJhbGFuZC5zZGsuY29tcG9uZW50cyI5ChRQ",
 29            "QlBsYXllcklkZW50aXR5RGF0YRIPCgdhZGRyZXNzGAEgASgJEhAKCGlzX2d1",
 30            "ZXN0GAMgASgIQhSqAhFEQ0wuRUNTQ29tcG9uZW50c2IGcHJvdG8z"));
 031      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          }));
 036    }
 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  {
 51    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)]
 55    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 {
 60      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 {
 66      get { return Descriptor; }
 67    }
 68
 69    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 70    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 71    public PBPlayerIdentityData() {
 72      OnConstruction();
 73    }
 74
 75    partial void OnConstruction();
 76
 77    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 78    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 79    public PBPlayerIdentityData(PBPlayerIdentityData other) : this() {
 80      address_ = other.address_;
 81      isGuest_ = other.isGuest_;
 82      _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
 83    }
 84
 85    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 86    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 87    public PBPlayerIdentityData Clone() {
 88      return new PBPlayerIdentityData(this);
 89    }
 90
 91    /// <summary>Field number for the "address" field.</summary>
 92    public const int AddressFieldNumber = 1;
 93    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 {
 100      get { return address_; }
 101      set {
 102        address_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
 103      }
 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 {
 112      get { return isGuest_; }
 113      set {
 114        isGuest_ = value;
 115      }
 116    }
 117
 118    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 119    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 120    public override bool Equals(object other) {
 121      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) {
 127      if (ReferenceEquals(other, null)) {
 128        return false;
 129      }
 130      if (ReferenceEquals(other, this)) {
 131        return true;
 132      }
 133      if (Address != other.Address) return false;
 134      if (IsGuest != other.IsGuest) return false;
 135      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() {
 141      int hash = 1;
 142      if (Address.Length != 0) hash ^= Address.GetHashCode();
 143      if (IsGuest != false) hash ^= IsGuest.GetHashCode();
 144      if (_unknownFields != null) {
 145        hash ^= _unknownFields.GetHashCode();
 146      }
 147      return hash;
 148    }
 149
 150    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 151    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 152    public override string ToString() {
 153      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
 162      if (Address.Length != 0) {
 163        output.WriteRawTag(10);
 164        output.WriteString(Address);
 165      }
 166      if (IsGuest != false) {
 167        output.WriteRawTag(24);
 168        output.WriteBool(IsGuest);
 169      }
 170      if (_unknownFields != null) {
 171        _unknownFields.WriteTo(output);
 172      }
 173    #endif
 174    }
 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() {
 197      int size = 0;
 198      if (Address.Length != 0) {
 199        size += 1 + pb::CodedOutputStream.ComputeStringSize(Address);
 200      }
 201      if (IsGuest != false) {
 202        size += 1 + 1;
 203      }
 204      if (_unknownFields != null) {
 205        size += _unknownFields.CalculateSize();
 206      }
 207      return size;
 208    }
 209
 210    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 211    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 212    public void MergeFrom(PBPlayerIdentityData other) {
 213      if (other == null) {
 214        return;
 215      }
 216      if (other.Address.Length != 0) {
 217        Address = other.Address;
 218      }
 219      if (other.IsGuest != false) {
 220        IsGuest = other.IsGuest;
 221      }
 222      _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 223    }
 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;
 232      while ((tag = input.ReadTag()) != 0) {
 233        switch(tag) {
 234          default:
 235            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
 236            break;
 237          case 10: {
 238            Address = input.ReadString();
 239            break;
 240          }
 241          case 24: {
 242            IsGuest = input.ReadBool();
 243            break;
 244          }
 245        }
 246      }
 247    #endif
 248    }
 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