< Summary

Class:Decentraland.Renderer.KernelServices.GetFriendshipStatusResponse
Assembly:Decentraland.Protocol.GeneratedCode
File(s):/tmp/workspace/unity-renderer/unity-renderer/Assets/Scripts/MainScripts/DCL/DecentralandProtocol/FriendsKernel.gen.cs
Covered lines:0
Uncovered lines:50
Coverable lines:50
Total lines:442
Line coverage:0% (0 of 50)
Covered branches:0
Total branches:0

Metrics

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

File(s)

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

#LineLine coverage
 1// <auto-generated>
 2//     Generated by the protocol buffer compiler.  DO NOT EDIT!
 3//     source: decentraland/renderer/kernel_services/friends_kernel.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.KernelServices {
 13
 14  /// <summary>Holder for reflection information generated from decentraland/renderer/kernel_services/friends_kernel.pro
 15  public static partial class FriendsKernelReflection {
 16
 17    #region Descriptor
 18    /// <summary>File descriptor for decentraland/renderer/kernel_services/friends_kernel.proto</summary>
 19    public static pbr::FileDescriptor Descriptor {
 20      get { return descriptor; }
 21    }
 22    private static pbr::FileDescriptor descriptor;
 23
 24    static FriendsKernelReflection() {
 25      byte[] descriptorData = global::System.Convert.FromBase64String(
 26          string.Concat(
 27            "CjpkZWNlbnRyYWxhbmQvcmVuZGVyZXIva2VybmVsX3NlcnZpY2VzL2ZyaWVu",
 28            "ZHNfa2VybmVsLnByb3RvEiVkZWNlbnRyYWxhbmQucmVuZGVyZXIua2VybmVs",
 29            "X3NlcnZpY2VzImYKG0dldEZyaWVuZHNoaXBTdGF0dXNSZXNwb25zZRJHCgZz",
 30            "dGF0dXMYASABKA4yNy5kZWNlbnRyYWxhbmQucmVuZGVyZXIua2VybmVsX3Nl",
 31            "cnZpY2VzLkZyaWVuZHNoaXBTdGF0dXMiLQoaR2V0RnJpZW5kc2hpcFN0YXR1",
 32            "c1JlcXVlc3QSDwoHdXNlcl9pZBgBIAEoCSpQChBGcmllbmRzaGlwU3RhdHVz",
 33            "EggKBE5PTkUQABIMCghBUFBST1ZFRBABEhIKDlJFUVVFU1RFRF9GUk9NEAIS",
 34            "EAoMUkVRVUVTVEVEX1RPEAMytwEKFEZyaWVuZHNLZXJuZWxTZXJ2aWNlEp4B",
 35            "ChNHZXRGcmllbmRzaGlwU3RhdHVzEkEuZGVjZW50cmFsYW5kLnJlbmRlcmVy",
 36            "Lmtlcm5lbF9zZXJ2aWNlcy5HZXRGcmllbmRzaGlwU3RhdHVzUmVxdWVzdBpC",
 37            "LmRlY2VudHJhbGFuZC5yZW5kZXJlci5rZXJuZWxfc2VydmljZXMuR2V0RnJp",
 38            "ZW5kc2hpcFN0YXR1c1Jlc3BvbnNlIgBiBnByb3RvMw=="));
 39      descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
 40          new pbr::FileDescriptor[] { },
 41          new pbr::GeneratedClrTypeInfo(new[] {typeof(global::Decentraland.Renderer.KernelServices.FriendshipStatus), },
 42            new pbr::GeneratedClrTypeInfo(typeof(global::Decentraland.Renderer.KernelServices.GetFriendshipStatusRespons
 43            new pbr::GeneratedClrTypeInfo(typeof(global::Decentraland.Renderer.KernelServices.GetFriendshipStatusRequest
 44          }));
 45    }
 46    #endregion
 47
 48  }
 49  #region Enums
 50  public enum FriendshipStatus {
 51    [pbr::OriginalName("NONE")] None = 0,
 52    [pbr::OriginalName("APPROVED")] Approved = 1,
 53    [pbr::OriginalName("REQUESTED_FROM")] RequestedFrom = 2,
 54    [pbr::OriginalName("REQUESTED_TO")] RequestedTo = 3,
 55  }
 56
 57  #endregion
 58
 59  #region Messages
 60  public sealed partial class GetFriendshipStatusResponse : pb::IMessage<GetFriendshipStatusResponse>
 61  #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 62      , pb::IBufferMessage
 63  #endif
 64  {
 065    private static readonly pb::MessageParser<GetFriendshipStatusResponse> _parser = new pb::MessageParser<GetFriendship
 66    private pb::UnknownFieldSet _unknownFields;
 67    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 68    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 069    public static pb::MessageParser<GetFriendshipStatusResponse> Parser { get { return _parser; } }
 70
 71    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 72    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 73    public static pbr::MessageDescriptor Descriptor {
 074      get { return global::Decentraland.Renderer.KernelServices.FriendsKernelReflection.Descriptor.MessageTypes[0]; }
 75    }
 76
 77    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 78    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 79    pbr::MessageDescriptor pb::IMessage.Descriptor {
 080      get { return Descriptor; }
 81    }
 82
 83    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 84    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 085    public GetFriendshipStatusResponse() {
 86      OnConstruction();
 087    }
 88
 89    partial void OnConstruction();
 90
 91    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 92    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 093    public GetFriendshipStatusResponse(GetFriendshipStatusResponse other) : this() {
 094      status_ = other.status_;
 095      _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
 096    }
 97
 98    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 99    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 100    public GetFriendshipStatusResponse Clone() {
 0101      return new GetFriendshipStatusResponse(this);
 102    }
 103
 104    /// <summary>Field number for the "status" field.</summary>
 105    public const int StatusFieldNumber = 1;
 106    private global::Decentraland.Renderer.KernelServices.FriendshipStatus status_ = global::Decentraland.Renderer.Kernel
 107    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 108    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 109    public global::Decentraland.Renderer.KernelServices.FriendshipStatus Status {
 0110      get { return status_; }
 111      set {
 0112        status_ = value;
 0113      }
 114    }
 115
 116    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 117    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 118    public override bool Equals(object other) {
 0119      return Equals(other as GetFriendshipStatusResponse);
 120    }
 121
 122    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 123    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 124    public bool Equals(GetFriendshipStatusResponse other) {
 0125      if (ReferenceEquals(other, null)) {
 0126        return false;
 127      }
 0128      if (ReferenceEquals(other, this)) {
 0129        return true;
 130      }
 0131      if (Status != other.Status) return false;
 0132      return Equals(_unknownFields, other._unknownFields);
 133    }
 134
 135    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 136    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 137    public override int GetHashCode() {
 0138      int hash = 1;
 0139      if (Status != global::Decentraland.Renderer.KernelServices.FriendshipStatus.None) hash ^= Status.GetHashCode();
 0140      if (_unknownFields != null) {
 0141        hash ^= _unknownFields.GetHashCode();
 142      }
 0143      return hash;
 144    }
 145
 146    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 147    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 148    public override string ToString() {
 0149      return pb::JsonFormatter.ToDiagnosticString(this);
 150    }
 151
 152    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 153    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 154    public void WriteTo(pb::CodedOutputStream output) {
 155    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 156      output.WriteRawMessage(this);
 157    #else
 0158      if (Status != global::Decentraland.Renderer.KernelServices.FriendshipStatus.None) {
 0159        output.WriteRawTag(8);
 0160        output.WriteEnum((int) Status);
 161      }
 0162      if (_unknownFields != null) {
 0163        _unknownFields.WriteTo(output);
 164      }
 165    #endif
 0166    }
 167
 168    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 169    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 170    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 171    void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
 172      if (Status != global::Decentraland.Renderer.KernelServices.FriendshipStatus.None) {
 173        output.WriteRawTag(8);
 174        output.WriteEnum((int) Status);
 175      }
 176      if (_unknownFields != null) {
 177        _unknownFields.WriteTo(ref output);
 178      }
 179    }
 180    #endif
 181
 182    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 183    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 184    public int CalculateSize() {
 0185      int size = 0;
 0186      if (Status != global::Decentraland.Renderer.KernelServices.FriendshipStatus.None) {
 0187        size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Status);
 188      }
 0189      if (_unknownFields != null) {
 0190        size += _unknownFields.CalculateSize();
 191      }
 0192      return size;
 193    }
 194
 195    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 196    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 197    public void MergeFrom(GetFriendshipStatusResponse other) {
 0198      if (other == null) {
 0199        return;
 200      }
 0201      if (other.Status != global::Decentraland.Renderer.KernelServices.FriendshipStatus.None) {
 0202        Status = other.Status;
 203      }
 0204      _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 0205    }
 206
 207    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 208    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 209    public void MergeFrom(pb::CodedInputStream input) {
 210    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 211      input.ReadRawMessage(this);
 212    #else
 213      uint tag;
 0214      while ((tag = input.ReadTag()) != 0) {
 215        switch(tag) {
 216          default:
 0217            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
 0218            break;
 219          case 8: {
 0220            Status = (global::Decentraland.Renderer.KernelServices.FriendshipStatus) input.ReadEnum();
 221            break;
 222          }
 223        }
 224      }
 225    #endif
 0226    }
 227
 228    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 229    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 230    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 231    void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
 232      uint tag;
 233      while ((tag = input.ReadTag()) != 0) {
 234        switch(tag) {
 235          default:
 236            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
 237            break;
 238          case 8: {
 239            Status = (global::Decentraland.Renderer.KernelServices.FriendshipStatus) input.ReadEnum();
 240            break;
 241          }
 242        }
 243      }
 244    }
 245    #endif
 246
 247  }
 248
 249  public sealed partial class GetFriendshipStatusRequest : pb::IMessage<GetFriendshipStatusRequest>
 250  #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 251      , pb::IBufferMessage
 252  #endif
 253  {
 254    private static readonly pb::MessageParser<GetFriendshipStatusRequest> _parser = new pb::MessageParser<GetFriendshipS
 255    private pb::UnknownFieldSet _unknownFields;
 256    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 257    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 258    public static pb::MessageParser<GetFriendshipStatusRequest> Parser { get { return _parser; } }
 259
 260    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 261    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 262    public static pbr::MessageDescriptor Descriptor {
 263      get { return global::Decentraland.Renderer.KernelServices.FriendsKernelReflection.Descriptor.MessageTypes[1]; }
 264    }
 265
 266    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 267    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 268    pbr::MessageDescriptor pb::IMessage.Descriptor {
 269      get { return Descriptor; }
 270    }
 271
 272    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 273    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 274    public GetFriendshipStatusRequest() {
 275      OnConstruction();
 276    }
 277
 278    partial void OnConstruction();
 279
 280    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 281    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 282    public GetFriendshipStatusRequest(GetFriendshipStatusRequest other) : this() {
 283      userId_ = other.userId_;
 284      _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
 285    }
 286
 287    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 288    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 289    public GetFriendshipStatusRequest Clone() {
 290      return new GetFriendshipStatusRequest(this);
 291    }
 292
 293    /// <summary>Field number for the "user_id" field.</summary>
 294    public const int UserIdFieldNumber = 1;
 295    private string userId_ = "";
 296    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 297    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 298    public string UserId {
 299      get { return userId_; }
 300      set {
 301        userId_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
 302      }
 303    }
 304
 305    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 306    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 307    public override bool Equals(object other) {
 308      return Equals(other as GetFriendshipStatusRequest);
 309    }
 310
 311    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 312    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 313    public bool Equals(GetFriendshipStatusRequest other) {
 314      if (ReferenceEquals(other, null)) {
 315        return false;
 316      }
 317      if (ReferenceEquals(other, this)) {
 318        return true;
 319      }
 320      if (UserId != other.UserId) return false;
 321      return Equals(_unknownFields, other._unknownFields);
 322    }
 323
 324    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 325    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 326    public override int GetHashCode() {
 327      int hash = 1;
 328      if (UserId.Length != 0) hash ^= UserId.GetHashCode();
 329      if (_unknownFields != null) {
 330        hash ^= _unknownFields.GetHashCode();
 331      }
 332      return hash;
 333    }
 334
 335    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 336    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 337    public override string ToString() {
 338      return pb::JsonFormatter.ToDiagnosticString(this);
 339    }
 340
 341    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 342    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 343    public void WriteTo(pb::CodedOutputStream output) {
 344    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 345      output.WriteRawMessage(this);
 346    #else
 347      if (UserId.Length != 0) {
 348        output.WriteRawTag(10);
 349        output.WriteString(UserId);
 350      }
 351      if (_unknownFields != null) {
 352        _unknownFields.WriteTo(output);
 353      }
 354    #endif
 355    }
 356
 357    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 358    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 359    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 360    void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
 361      if (UserId.Length != 0) {
 362        output.WriteRawTag(10);
 363        output.WriteString(UserId);
 364      }
 365      if (_unknownFields != null) {
 366        _unknownFields.WriteTo(ref output);
 367      }
 368    }
 369    #endif
 370
 371    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 372    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 373    public int CalculateSize() {
 374      int size = 0;
 375      if (UserId.Length != 0) {
 376        size += 1 + pb::CodedOutputStream.ComputeStringSize(UserId);
 377      }
 378      if (_unknownFields != null) {
 379        size += _unknownFields.CalculateSize();
 380      }
 381      return size;
 382    }
 383
 384    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 385    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 386    public void MergeFrom(GetFriendshipStatusRequest other) {
 387      if (other == null) {
 388        return;
 389      }
 390      if (other.UserId.Length != 0) {
 391        UserId = other.UserId;
 392      }
 393      _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 394    }
 395
 396    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 397    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 398    public void MergeFrom(pb::CodedInputStream input) {
 399    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 400      input.ReadRawMessage(this);
 401    #else
 402      uint tag;
 403      while ((tag = input.ReadTag()) != 0) {
 404        switch(tag) {
 405          default:
 406            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
 407            break;
 408          case 10: {
 409            UserId = input.ReadString();
 410            break;
 411          }
 412        }
 413      }
 414    #endif
 415    }
 416
 417    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 418    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 419    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 420    void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
 421      uint tag;
 422      while ((tag = input.ReadTag()) != 0) {
 423        switch(tag) {
 424          default:
 425            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
 426            break;
 427          case 10: {
 428            UserId = input.ReadString();
 429            break;
 430          }
 431        }
 432      }
 433    }
 434    #endif
 435
 436  }
 437
 438  #endregion
 439
 440}
 441
 442#endregion Designer generated code