< Summary

Class:Decentraland.Renderer.KernelServices.TriggerExpressionRequest
Assembly:Decentraland.Protocol.GeneratedCode
File(s):/tmp/workspace/unity-renderer/unity-renderer/Assets/Scripts/MainScripts/DCL/DecentralandProtocol/EmotesKernel.gen.cs
Covered lines:31
Uncovered lines:35
Coverable lines:66
Total lines:429
Line coverage:46.9% (31 of 66)
Covered branches:0
Total branches:0

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity NPath complexity Sequence coverage
TriggerExpressionRequest()0%110100%
get_Descriptor()0%2100%
TriggerExpressionRequest(...)0%2100%
Clone()0%2100%
TriggerExpressionRequest()0%110100%
Equals(...)0%2100%
Equals(...)0%30500%
GetHashCode()0%20400%
ToString()0%2100%
WriteTo(...)0%4.024088.89%
CalculateSize()0%4.034087.5%
MergeFrom(...)0%20400%
MergeFrom(...)0%4.374071.43%

File(s)

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

#LineLine coverage
 1// <auto-generated>
 2//     Generated by the protocol buffer compiler.  DO NOT EDIT!
 3//     source: decentraland/renderer/kernel_services/emotes_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/emotes_kernel.prot
 15  public static partial class EmotesKernelReflection {
 16
 17    #region Descriptor
 18    /// <summary>File descriptor for decentraland/renderer/kernel_services/emotes_kernel.proto</summary>
 19    public static pbr::FileDescriptor Descriptor {
 20      get { return descriptor; }
 21    }
 22    private static pbr::FileDescriptor descriptor;
 23
 24    static EmotesKernelReflection() {
 25      byte[] descriptorData = global::System.Convert.FromBase64String(
 26          string.Concat(
 27            "CjlkZWNlbnRyYWxhbmQvcmVuZGVyZXIva2VybmVsX3NlcnZpY2VzL2Vtb3Rl",
 28            "c19rZXJuZWwucHJvdG8SJWRlY2VudHJhbGFuZC5yZW5kZXJlci5rZXJuZWxf",
 29            "c2VydmljZXMiOQoYVHJpZ2dlckV4cHJlc3Npb25SZXF1ZXN0EgoKAmlkGAEg",
 30            "ASgJEhEKCXRpbWVzdGFtcBgCIAEoAiIbChlUcmlnZ2VyRXhwcmVzc2lvblJl",
 31            "c3BvbnNlMrABChNFbW90ZXNLZXJuZWxTZXJ2aWNlEpgBChFUcmlnZ2VyRXhw",
 32            "cmVzc2lvbhI/LmRlY2VudHJhbGFuZC5yZW5kZXJlci5rZXJuZWxfc2Vydmlj",
 33            "ZXMuVHJpZ2dlckV4cHJlc3Npb25SZXF1ZXN0GkAuZGVjZW50cmFsYW5kLnJl",
 34            "bmRlcmVyLmtlcm5lbF9zZXJ2aWNlcy5UcmlnZ2VyRXhwcmVzc2lvblJlc3Bv",
 35            "bnNlIgBiBnByb3RvMw=="));
 36      descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
 37          new pbr::FileDescriptor[] { },
 38          new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
 39            new pbr::GeneratedClrTypeInfo(typeof(global::Decentraland.Renderer.KernelServices.TriggerExpressionRequest),
 40            new pbr::GeneratedClrTypeInfo(typeof(global::Decentraland.Renderer.KernelServices.TriggerExpressionResponse)
 41          }));
 42    }
 43    #endregion
 44
 45  }
 46  #region Messages
 47  public sealed partial class TriggerExpressionRequest : pb::IMessage<TriggerExpressionRequest>
 48  #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 49      , pb::IBufferMessage
 50  #endif
 51  {
 252    private static readonly pb::MessageParser<TriggerExpressionRequest> _parser = new pb::MessageParser<TriggerExpressio
 53    private pb::UnknownFieldSet _unknownFields;
 54    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 55    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 256    public static pb::MessageParser<TriggerExpressionRequest> Parser { get { return _parser; } }
 57
 58    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 59    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 60    public static pbr::MessageDescriptor Descriptor {
 061      get { return global::Decentraland.Renderer.KernelServices.EmotesKernelReflection.Descriptor.MessageTypes[0]; }
 62    }
 63
 64    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 65    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 66    pbr::MessageDescriptor pb::IMessage.Descriptor {
 067      get { return Descriptor; }
 68    }
 69
 70    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 71    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 272    public TriggerExpressionRequest() {
 73      OnConstruction();
 274    }
 75
 76    partial void OnConstruction();
 77
 78    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 79    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 080    public TriggerExpressionRequest(TriggerExpressionRequest other) : this() {
 081      id_ = other.id_;
 082      timestamp_ = other.timestamp_;
 083      _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
 084    }
 85
 86    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 87    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 88    public TriggerExpressionRequest Clone() {
 089      return new TriggerExpressionRequest(this);
 90    }
 91
 92    /// <summary>Field number for the "id" field.</summary>
 93    public const int IdFieldNumber = 1;
 294    private string id_ = "";
 95    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 96    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 97    public string Id {
 698      get { return id_; }
 99      set {
 2100        id_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
 2101      }
 102    }
 103
 104    /// <summary>Field number for the "timestamp" field.</summary>
 105    public const int TimestampFieldNumber = 2;
 106    private float timestamp_;
 107    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 108    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 109    public float Timestamp {
 5110      get { return timestamp_; }
 111      set {
 2112        timestamp_ = value;
 2113      }
 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 TriggerExpressionRequest);
 120    }
 121
 122    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 123    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 124    public bool Equals(TriggerExpressionRequest other) {
 0125      if (ReferenceEquals(other, null)) {
 0126        return false;
 127      }
 0128      if (ReferenceEquals(other, this)) {
 0129        return true;
 130      }
 0131      if (Id != other.Id) return false;
 0132      if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Timestamp, other.Timestamp)) return false
 0133      return Equals(_unknownFields, other._unknownFields);
 134    }
 135
 136    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 137    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 138    public override int GetHashCode() {
 0139      int hash = 1;
 0140      if (Id.Length != 0) hash ^= Id.GetHashCode();
 0141      if (Timestamp != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Timestamp);
 0142      if (_unknownFields != null) {
 0143        hash ^= _unknownFields.GetHashCode();
 144      }
 0145      return hash;
 146    }
 147
 148    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 149    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 150    public override string ToString() {
 0151      return pb::JsonFormatter.ToDiagnosticString(this);
 152    }
 153
 154    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 155    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 156    public void WriteTo(pb::CodedOutputStream output) {
 157    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 158      output.WriteRawMessage(this);
 159    #else
 1160      if (Id.Length != 0) {
 1161        output.WriteRawTag(10);
 1162        output.WriteString(Id);
 163      }
 1164      if (Timestamp != 0F) {
 1165        output.WriteRawTag(21);
 1166        output.WriteFloat(Timestamp);
 167      }
 1168      if (_unknownFields != null) {
 0169        _unknownFields.WriteTo(output);
 170      }
 171    #endif
 1172    }
 173
 174    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 175    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 176    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 177    void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
 178      if (Id.Length != 0) {
 179        output.WriteRawTag(10);
 180        output.WriteString(Id);
 181      }
 182      if (Timestamp != 0F) {
 183        output.WriteRawTag(21);
 184        output.WriteFloat(Timestamp);
 185      }
 186      if (_unknownFields != null) {
 187        _unknownFields.WriteTo(ref output);
 188      }
 189    }
 190    #endif
 191
 192    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 193    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 194    public int CalculateSize() {
 1195      int size = 0;
 1196      if (Id.Length != 0) {
 1197        size += 1 + pb::CodedOutputStream.ComputeStringSize(Id);
 198      }
 1199      if (Timestamp != 0F) {
 1200        size += 1 + 4;
 201      }
 1202      if (_unknownFields != null) {
 0203        size += _unknownFields.CalculateSize();
 204      }
 1205      return size;
 206    }
 207
 208    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 209    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 210    public void MergeFrom(TriggerExpressionRequest other) {
 0211      if (other == null) {
 0212        return;
 213      }
 0214      if (other.Id.Length != 0) {
 0215        Id = other.Id;
 216      }
 0217      if (other.Timestamp != 0F) {
 0218        Timestamp = other.Timestamp;
 219      }
 0220      _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 0221    }
 222
 223    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 224    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 225    public void MergeFrom(pb::CodedInputStream input) {
 226    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 227      input.ReadRawMessage(this);
 228    #else
 229      uint tag;
 3230      while ((tag = input.ReadTag()) != 0) {
 231        switch(tag) {
 232          default:
 0233            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
 0234            break;
 235          case 10: {
 1236            Id = input.ReadString();
 1237            break;
 238          }
 239          case 21: {
 1240            Timestamp = input.ReadFloat();
 241            break;
 242          }
 243        }
 244      }
 245    #endif
 1246    }
 247
 248    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 249    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 250    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 251    void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
 252      uint tag;
 253      while ((tag = input.ReadTag()) != 0) {
 254        switch(tag) {
 255          default:
 256            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
 257            break;
 258          case 10: {
 259            Id = input.ReadString();
 260            break;
 261          }
 262          case 21: {
 263            Timestamp = input.ReadFloat();
 264            break;
 265          }
 266        }
 267      }
 268    }
 269    #endif
 270
 271  }
 272
 273  public sealed partial class TriggerExpressionResponse : pb::IMessage<TriggerExpressionResponse>
 274  #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 275      , pb::IBufferMessage
 276  #endif
 277  {
 278    private static readonly pb::MessageParser<TriggerExpressionResponse> _parser = new pb::MessageParser<TriggerExpressi
 279    private pb::UnknownFieldSet _unknownFields;
 280    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 281    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 282    public static pb::MessageParser<TriggerExpressionResponse> Parser { get { return _parser; } }
 283
 284    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 285    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 286    public static pbr::MessageDescriptor Descriptor {
 287      get { return global::Decentraland.Renderer.KernelServices.EmotesKernelReflection.Descriptor.MessageTypes[1]; }
 288    }
 289
 290    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 291    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 292    pbr::MessageDescriptor pb::IMessage.Descriptor {
 293      get { return Descriptor; }
 294    }
 295
 296    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 297    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 298    public TriggerExpressionResponse() {
 299      OnConstruction();
 300    }
 301
 302    partial void OnConstruction();
 303
 304    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 305    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 306    public TriggerExpressionResponse(TriggerExpressionResponse other) : this() {
 307      _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
 308    }
 309
 310    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 311    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 312    public TriggerExpressionResponse Clone() {
 313      return new TriggerExpressionResponse(this);
 314    }
 315
 316    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 317    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 318    public override bool Equals(object other) {
 319      return Equals(other as TriggerExpressionResponse);
 320    }
 321
 322    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 323    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 324    public bool Equals(TriggerExpressionResponse other) {
 325      if (ReferenceEquals(other, null)) {
 326        return false;
 327      }
 328      if (ReferenceEquals(other, this)) {
 329        return true;
 330      }
 331      return Equals(_unknownFields, other._unknownFields);
 332    }
 333
 334    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 335    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 336    public override int GetHashCode() {
 337      int hash = 1;
 338      if (_unknownFields != null) {
 339        hash ^= _unknownFields.GetHashCode();
 340      }
 341      return hash;
 342    }
 343
 344    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 345    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 346    public override string ToString() {
 347      return pb::JsonFormatter.ToDiagnosticString(this);
 348    }
 349
 350    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 351    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 352    public void WriteTo(pb::CodedOutputStream output) {
 353    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 354      output.WriteRawMessage(this);
 355    #else
 356      if (_unknownFields != null) {
 357        _unknownFields.WriteTo(output);
 358      }
 359    #endif
 360    }
 361
 362    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 363    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 364    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 365    void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
 366      if (_unknownFields != null) {
 367        _unknownFields.WriteTo(ref output);
 368      }
 369    }
 370    #endif
 371
 372    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 373    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 374    public int CalculateSize() {
 375      int size = 0;
 376      if (_unknownFields != null) {
 377        size += _unknownFields.CalculateSize();
 378      }
 379      return size;
 380    }
 381
 382    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 383    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 384    public void MergeFrom(TriggerExpressionResponse other) {
 385      if (other == null) {
 386        return;
 387      }
 388      _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 389    }
 390
 391    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 392    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 393    public void MergeFrom(pb::CodedInputStream input) {
 394    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 395      input.ReadRawMessage(this);
 396    #else
 397      uint tag;
 398      while ((tag = input.ReadTag()) != 0) {
 399        switch(tag) {
 400          default:
 401            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
 402            break;
 403        }
 404      }
 405    #endif
 406    }
 407
 408    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 409    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 410    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 411    void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
 412      uint tag;
 413      while ((tag = input.ReadTag()) != 0) {
 414        switch(tag) {
 415          default:
 416            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
 417            break;
 418        }
 419      }
 420    }
 421    #endif
 422
 423  }
 424
 425  #endregion
 426
 427}
 428
 429#endregion Designer generated code