< Summary

Class:Decentraland.Renderer.Common.FriendRequestInfo
Assembly:Decentraland.Protocol.GeneratedCode
File(s):/tmp/workspace/unity-renderer/unity-renderer/Assets/Scripts/MainScripts/DCL/DecentralandProtocol/FriendRequestCommon.gen.cs
Covered lines:0
Uncovered lines:116
Coverable lines:116
Total lines:412
Line coverage:0% (0 of 116)
Covered branches:0
Total branches:0

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity NPath complexity Sequence coverage
FriendRequestInfo()0%2100%
get_Descriptor()0%2100%
FriendRequestInfo(...)0%2100%
Clone()0%2100%
FriendRequestInfo()0%2100%
ClearMessageBody()0%2100%
Equals(...)0%2100%
Equals(...)0%72800%
GetHashCode()0%56700%
ToString()0%2100%
WriteTo(...)0%56700%
CalculateSize()0%56700%
MergeFrom(...)0%56700%
MergeFrom(...)0%72800%

File(s)

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

#LineLine coverage
 1// <auto-generated>
 2//     Generated by the protocol buffer compiler.  DO NOT EDIT!
 3//     source: decentraland/renderer/common/friend_request_common.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.Renderer.Common {
 13
 14  /// <summary>Holder for reflection information generated from decentraland/renderer/common/friend_request_common.proto
 15  public static partial class FriendRequestCommonReflection {
 16
 17    #region Descriptor
 18    /// <summary>File descriptor for decentraland/renderer/common/friend_request_common.proto</summary>
 19    public static pbr::FileDescriptor Descriptor {
 20      get { return descriptor; }
 21    }
 22    private static pbr::FileDescriptor descriptor;
 23
 24    static FriendRequestCommonReflection() {
 25      byte[] descriptorData = global::System.Convert.FromBase64String(
 26          string.Concat(
 27            "CjhkZWNlbnRyYWxhbmQvcmVuZGVyZXIvY29tbW9uL2ZyaWVuZF9yZXF1ZXN0",
 28            "X2NvbW1vbi5wcm90bxIcZGVjZW50cmFsYW5kLnJlbmRlcmVyLmNvbW1vbiKH",
 29            "AQoRRnJpZW5kUmVxdWVzdEluZm8SGQoRZnJpZW5kX3JlcXVlc3RfaWQYASAB",
 30            "KAkSEQoJdGltZXN0YW1wGAIgASgEEgwKBGZyb20YAyABKAkSCgoCdG8YBCAB",
 31            "KAkSGQoMbWVzc2FnZV9ib2R5GAUgASgJSACIAQFCDwoNX21lc3NhZ2VfYm9k",
 32            "eSqwAQoTRnJpZW5kc2hpcEVycm9yQ29kZRIeChpGRUNfVE9PX01BTllfUkVR",
 33            "VUVTVFNfU0VOVBAAEh4KGkZFQ19OT1RfRU5PVUdIX1RJTUVfUEFTU0VEEAES",
 34            "FAoQRkVDX0JMT0NLRURfVVNFUhACEhkKFUZFQ19OT05fRVhJU1RJTkdfVVNF",
 35            "UhADEhcKE0ZFQ19JTlZBTElEX1JFUVVFU1QQBBIPCgtGRUNfVU5LTk9XThAF",
 36            "YgZwcm90bzM="));
 37      descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
 38          new pbr::FileDescriptor[] { },
 39          new pbr::GeneratedClrTypeInfo(new[] {typeof(global::Decentraland.Renderer.Common.FriendshipErrorCode), }, null
 40            new pbr::GeneratedClrTypeInfo(typeof(global::Decentraland.Renderer.Common.FriendRequestInfo), global::Decent
 41          }));
 42    }
 43    #endregion
 44
 45  }
 46  #region Enums
 47  public enum FriendshipErrorCode {
 48    [pbr::OriginalName("FEC_TOO_MANY_REQUESTS_SENT")] FecTooManyRequestsSent = 0,
 49    [pbr::OriginalName("FEC_NOT_ENOUGH_TIME_PASSED")] FecNotEnoughTimePassed = 1,
 50    [pbr::OriginalName("FEC_BLOCKED_USER")] FecBlockedUser = 2,
 51    [pbr::OriginalName("FEC_NON_EXISTING_USER")] FecNonExistingUser = 3,
 52    [pbr::OriginalName("FEC_INVALID_REQUEST")] FecInvalidRequest = 4,
 53    [pbr::OriginalName("FEC_UNKNOWN")] FecUnknown = 5,
 54  }
 55
 56  #endregion
 57
 58  #region Messages
 59  public sealed partial class FriendRequestInfo : pb::IMessage<FriendRequestInfo>
 60  #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 61      , pb::IBufferMessage
 62  #endif
 63  {
 064    private static readonly pb::MessageParser<FriendRequestInfo> _parser = new pb::MessageParser<FriendRequestInfo>(() =
 65    private pb::UnknownFieldSet _unknownFields;
 66    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 67    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 068    public static pb::MessageParser<FriendRequestInfo> Parser { get { return _parser; } }
 69
 70    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 71    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 72    public static pbr::MessageDescriptor Descriptor {
 073      get { return global::Decentraland.Renderer.Common.FriendRequestCommonReflection.Descriptor.MessageTypes[0]; }
 74    }
 75
 76    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 77    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 78    pbr::MessageDescriptor pb::IMessage.Descriptor {
 079      get { return Descriptor; }
 80    }
 81
 82    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 83    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 084    public FriendRequestInfo() {
 85      OnConstruction();
 086    }
 87
 88    partial void OnConstruction();
 89
 90    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 91    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 092    public FriendRequestInfo(FriendRequestInfo other) : this() {
 093      friendRequestId_ = other.friendRequestId_;
 094      timestamp_ = other.timestamp_;
 095      from_ = other.from_;
 096      to_ = other.to_;
 097      messageBody_ = other.messageBody_;
 098      _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
 099    }
 100
 101    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 102    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 103    public FriendRequestInfo Clone() {
 0104      return new FriendRequestInfo(this);
 105    }
 106
 107    /// <summary>Field number for the "friend_request_id" field.</summary>
 108    public const int FriendRequestIdFieldNumber = 1;
 0109    private string friendRequestId_ = "";
 110    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 111    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 112    public string FriendRequestId {
 0113      get { return friendRequestId_; }
 114      set {
 0115        friendRequestId_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
 0116      }
 117    }
 118
 119    /// <summary>Field number for the "timestamp" field.</summary>
 120    public const int TimestampFieldNumber = 2;
 121    private ulong timestamp_;
 122    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 123    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 124    public ulong Timestamp {
 0125      get { return timestamp_; }
 126      set {
 0127        timestamp_ = value;
 0128      }
 129    }
 130
 131    /// <summary>Field number for the "from" field.</summary>
 132    public const int FromFieldNumber = 3;
 0133    private string from_ = "";
 134    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 135    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 136    public string From {
 0137      get { return from_; }
 138      set {
 0139        from_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
 0140      }
 141    }
 142
 143    /// <summary>Field number for the "to" field.</summary>
 144    public const int ToFieldNumber = 4;
 0145    private string to_ = "";
 146    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 147    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 148    public string To {
 0149      get { return to_; }
 150      set {
 0151        to_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
 0152      }
 153    }
 154
 155    /// <summary>Field number for the "message_body" field.</summary>
 156    public const int MessageBodyFieldNumber = 5;
 157    private string messageBody_;
 158    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 159    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 160    public string MessageBody {
 0161      get { return messageBody_ ?? ""; }
 162      set {
 0163        messageBody_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
 0164      }
 165    }
 166    /// <summary>Gets whether the "message_body" field is set</summary>
 167    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 168    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 169    public bool HasMessageBody {
 0170      get { return messageBody_ != null; }
 171    }
 172    /// <summary>Clears the value of the "message_body" field</summary>
 173    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 174    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 175    public void ClearMessageBody() {
 0176      messageBody_ = null;
 0177    }
 178
 179    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 180    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 181    public override bool Equals(object other) {
 0182      return Equals(other as FriendRequestInfo);
 183    }
 184
 185    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 186    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 187    public bool Equals(FriendRequestInfo other) {
 0188      if (ReferenceEquals(other, null)) {
 0189        return false;
 190      }
 0191      if (ReferenceEquals(other, this)) {
 0192        return true;
 193      }
 0194      if (FriendRequestId != other.FriendRequestId) return false;
 0195      if (Timestamp != other.Timestamp) return false;
 0196      if (From != other.From) return false;
 0197      if (To != other.To) return false;
 0198      if (MessageBody != other.MessageBody) return false;
 0199      return Equals(_unknownFields, other._unknownFields);
 200    }
 201
 202    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 203    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 204    public override int GetHashCode() {
 0205      int hash = 1;
 0206      if (FriendRequestId.Length != 0) hash ^= FriendRequestId.GetHashCode();
 0207      if (Timestamp != 0UL) hash ^= Timestamp.GetHashCode();
 0208      if (From.Length != 0) hash ^= From.GetHashCode();
 0209      if (To.Length != 0) hash ^= To.GetHashCode();
 0210      if (HasMessageBody) hash ^= MessageBody.GetHashCode();
 0211      if (_unknownFields != null) {
 0212        hash ^= _unknownFields.GetHashCode();
 213      }
 0214      return hash;
 215    }
 216
 217    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 218    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 219    public override string ToString() {
 0220      return pb::JsonFormatter.ToDiagnosticString(this);
 221    }
 222
 223    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 224    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 225    public void WriteTo(pb::CodedOutputStream output) {
 226    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 227      output.WriteRawMessage(this);
 228    #else
 0229      if (FriendRequestId.Length != 0) {
 0230        output.WriteRawTag(10);
 0231        output.WriteString(FriendRequestId);
 232      }
 0233      if (Timestamp != 0UL) {
 0234        output.WriteRawTag(16);
 0235        output.WriteUInt64(Timestamp);
 236      }
 0237      if (From.Length != 0) {
 0238        output.WriteRawTag(26);
 0239        output.WriteString(From);
 240      }
 0241      if (To.Length != 0) {
 0242        output.WriteRawTag(34);
 0243        output.WriteString(To);
 244      }
 0245      if (HasMessageBody) {
 0246        output.WriteRawTag(42);
 0247        output.WriteString(MessageBody);
 248      }
 0249      if (_unknownFields != null) {
 0250        _unknownFields.WriteTo(output);
 251      }
 252    #endif
 0253    }
 254
 255    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 256    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 257    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 258    void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
 259      if (FriendRequestId.Length != 0) {
 260        output.WriteRawTag(10);
 261        output.WriteString(FriendRequestId);
 262      }
 263      if (Timestamp != 0UL) {
 264        output.WriteRawTag(16);
 265        output.WriteUInt64(Timestamp);
 266      }
 267      if (From.Length != 0) {
 268        output.WriteRawTag(26);
 269        output.WriteString(From);
 270      }
 271      if (To.Length != 0) {
 272        output.WriteRawTag(34);
 273        output.WriteString(To);
 274      }
 275      if (HasMessageBody) {
 276        output.WriteRawTag(42);
 277        output.WriteString(MessageBody);
 278      }
 279      if (_unknownFields != null) {
 280        _unknownFields.WriteTo(ref output);
 281      }
 282    }
 283    #endif
 284
 285    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 286    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 287    public int CalculateSize() {
 0288      int size = 0;
 0289      if (FriendRequestId.Length != 0) {
 0290        size += 1 + pb::CodedOutputStream.ComputeStringSize(FriendRequestId);
 291      }
 0292      if (Timestamp != 0UL) {
 0293        size += 1 + pb::CodedOutputStream.ComputeUInt64Size(Timestamp);
 294      }
 0295      if (From.Length != 0) {
 0296        size += 1 + pb::CodedOutputStream.ComputeStringSize(From);
 297      }
 0298      if (To.Length != 0) {
 0299        size += 1 + pb::CodedOutputStream.ComputeStringSize(To);
 300      }
 0301      if (HasMessageBody) {
 0302        size += 1 + pb::CodedOutputStream.ComputeStringSize(MessageBody);
 303      }
 0304      if (_unknownFields != null) {
 0305        size += _unknownFields.CalculateSize();
 306      }
 0307      return size;
 308    }
 309
 310    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 311    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 312    public void MergeFrom(FriendRequestInfo other) {
 0313      if (other == null) {
 0314        return;
 315      }
 0316      if (other.FriendRequestId.Length != 0) {
 0317        FriendRequestId = other.FriendRequestId;
 318      }
 0319      if (other.Timestamp != 0UL) {
 0320        Timestamp = other.Timestamp;
 321      }
 0322      if (other.From.Length != 0) {
 0323        From = other.From;
 324      }
 0325      if (other.To.Length != 0) {
 0326        To = other.To;
 327      }
 0328      if (other.HasMessageBody) {
 0329        MessageBody = other.MessageBody;
 330      }
 0331      _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 0332    }
 333
 334    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 335    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 336    public void MergeFrom(pb::CodedInputStream input) {
 337    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 338      input.ReadRawMessage(this);
 339    #else
 340      uint tag;
 0341      while ((tag = input.ReadTag()) != 0) {
 342        switch(tag) {
 343          default:
 0344            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
 0345            break;
 346          case 10: {
 0347            FriendRequestId = input.ReadString();
 0348            break;
 349          }
 350          case 16: {
 0351            Timestamp = input.ReadUInt64();
 0352            break;
 353          }
 354          case 26: {
 0355            From = input.ReadString();
 0356            break;
 357          }
 358          case 34: {
 0359            To = input.ReadString();
 0360            break;
 361          }
 362          case 42: {
 0363            MessageBody = input.ReadString();
 364            break;
 365          }
 366        }
 367      }
 368    #endif
 0369    }
 370
 371    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 372    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 373    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 374    void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
 375      uint tag;
 376      while ((tag = input.ReadTag()) != 0) {
 377        switch(tag) {
 378          default:
 379            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
 380            break;
 381          case 10: {
 382            FriendRequestId = input.ReadString();
 383            break;
 384          }
 385          case 16: {
 386            Timestamp = input.ReadUInt64();
 387            break;
 388          }
 389          case 26: {
 390            From = input.ReadString();
 391            break;
 392          }
 393          case 34: {
 394            To = input.ReadString();
 395            break;
 396          }
 397          case 42: {
 398            MessageBody = input.ReadString();
 399            break;
 400          }
 401        }
 402      }
 403    }
 404    #endif
 405
 406  }
 407
 408  #endregion
 409
 410}
 411
 412#endregion Designer generated code