< Summary

Class:Decentraland.Renderer.Common.FriendRequestCommonReflection
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:4
Coverable lines:4
Total lines:412
Line coverage:0% (0 of 4)
Covered branches:0
Total branches:0

Metrics

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

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 {
 020      get { return descriptor; }
 21    }
 22    private static pbr::FileDescriptor descriptor;
 23
 24    static FriendRequestCommonReflection() {
 025      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="));
 037      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          }));
 042    }
 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  {
 64    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)]
 68    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 {
 73      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 {
 79      get { return Descriptor; }
 80    }
 81
 82    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 83    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 84    public FriendRequestInfo() {
 85      OnConstruction();
 86    }
 87
 88    partial void OnConstruction();
 89
 90    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 91    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 92    public FriendRequestInfo(FriendRequestInfo other) : this() {
 93      friendRequestId_ = other.friendRequestId_;
 94      timestamp_ = other.timestamp_;
 95      from_ = other.from_;
 96      to_ = other.to_;
 97      messageBody_ = other.messageBody_;
 98      _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
 99    }
 100
 101    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 102    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 103    public FriendRequestInfo Clone() {
 104      return new FriendRequestInfo(this);
 105    }
 106
 107    /// <summary>Field number for the "friend_request_id" field.</summary>
 108    public const int FriendRequestIdFieldNumber = 1;
 109    private string friendRequestId_ = "";
 110    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 111    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 112    public string FriendRequestId {
 113      get { return friendRequestId_; }
 114      set {
 115        friendRequestId_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
 116      }
 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 {
 125      get { return timestamp_; }
 126      set {
 127        timestamp_ = value;
 128      }
 129    }
 130
 131    /// <summary>Field number for the "from" field.</summary>
 132    public const int FromFieldNumber = 3;
 133    private string from_ = "";
 134    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 135    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 136    public string From {
 137      get { return from_; }
 138      set {
 139        from_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
 140      }
 141    }
 142
 143    /// <summary>Field number for the "to" field.</summary>
 144    public const int ToFieldNumber = 4;
 145    private string to_ = "";
 146    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 147    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 148    public string To {
 149      get { return to_; }
 150      set {
 151        to_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
 152      }
 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 {
 161      get { return messageBody_ ?? ""; }
 162      set {
 163        messageBody_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
 164      }
 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 {
 170      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() {
 176      messageBody_ = null;
 177    }
 178
 179    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 180    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 181    public override bool Equals(object other) {
 182      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) {
 188      if (ReferenceEquals(other, null)) {
 189        return false;
 190      }
 191      if (ReferenceEquals(other, this)) {
 192        return true;
 193      }
 194      if (FriendRequestId != other.FriendRequestId) return false;
 195      if (Timestamp != other.Timestamp) return false;
 196      if (From != other.From) return false;
 197      if (To != other.To) return false;
 198      if (MessageBody != other.MessageBody) return false;
 199      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() {
 205      int hash = 1;
 206      if (FriendRequestId.Length != 0) hash ^= FriendRequestId.GetHashCode();
 207      if (Timestamp != 0UL) hash ^= Timestamp.GetHashCode();
 208      if (From.Length != 0) hash ^= From.GetHashCode();
 209      if (To.Length != 0) hash ^= To.GetHashCode();
 210      if (HasMessageBody) hash ^= MessageBody.GetHashCode();
 211      if (_unknownFields != null) {
 212        hash ^= _unknownFields.GetHashCode();
 213      }
 214      return hash;
 215    }
 216
 217    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 218    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 219    public override string ToString() {
 220      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
 229      if (FriendRequestId.Length != 0) {
 230        output.WriteRawTag(10);
 231        output.WriteString(FriendRequestId);
 232      }
 233      if (Timestamp != 0UL) {
 234        output.WriteRawTag(16);
 235        output.WriteUInt64(Timestamp);
 236      }
 237      if (From.Length != 0) {
 238        output.WriteRawTag(26);
 239        output.WriteString(From);
 240      }
 241      if (To.Length != 0) {
 242        output.WriteRawTag(34);
 243        output.WriteString(To);
 244      }
 245      if (HasMessageBody) {
 246        output.WriteRawTag(42);
 247        output.WriteString(MessageBody);
 248      }
 249      if (_unknownFields != null) {
 250        _unknownFields.WriteTo(output);
 251      }
 252    #endif
 253    }
 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() {
 288      int size = 0;
 289      if (FriendRequestId.Length != 0) {
 290        size += 1 + pb::CodedOutputStream.ComputeStringSize(FriendRequestId);
 291      }
 292      if (Timestamp != 0UL) {
 293        size += 1 + pb::CodedOutputStream.ComputeUInt64Size(Timestamp);
 294      }
 295      if (From.Length != 0) {
 296        size += 1 + pb::CodedOutputStream.ComputeStringSize(From);
 297      }
 298      if (To.Length != 0) {
 299        size += 1 + pb::CodedOutputStream.ComputeStringSize(To);
 300      }
 301      if (HasMessageBody) {
 302        size += 1 + pb::CodedOutputStream.ComputeStringSize(MessageBody);
 303      }
 304      if (_unknownFields != null) {
 305        size += _unknownFields.CalculateSize();
 306      }
 307      return size;
 308    }
 309
 310    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 311    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 312    public void MergeFrom(FriendRequestInfo other) {
 313      if (other == null) {
 314        return;
 315      }
 316      if (other.FriendRequestId.Length != 0) {
 317        FriendRequestId = other.FriendRequestId;
 318      }
 319      if (other.Timestamp != 0UL) {
 320        Timestamp = other.Timestamp;
 321      }
 322      if (other.From.Length != 0) {
 323        From = other.From;
 324      }
 325      if (other.To.Length != 0) {
 326        To = other.To;
 327      }
 328      if (other.HasMessageBody) {
 329        MessageBody = other.MessageBody;
 330      }
 331      _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 332    }
 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;
 341      while ((tag = input.ReadTag()) != 0) {
 342        switch(tag) {
 343          default:
 344            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
 345            break;
 346          case 10: {
 347            FriendRequestId = input.ReadString();
 348            break;
 349          }
 350          case 16: {
 351            Timestamp = input.ReadUInt64();
 352            break;
 353          }
 354          case 26: {
 355            From = input.ReadString();
 356            break;
 357          }
 358          case 34: {
 359            To = input.ReadString();
 360            break;
 361          }
 362          case 42: {
 363            MessageBody = input.ReadString();
 364            break;
 365          }
 366        }
 367      }
 368    #endif
 369    }
 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