< Summary

Class:DCL.ECSComponents.PBAvatarEmoteCommand
Assembly:Decentraland.Protocol.GeneratedCode
File(s):/tmp/workspace/unity-renderer/unity-renderer/Assets/Scripts/MainScripts/DCL/DecentralandProtocol/AvatarEmoteCommand.gen.cs
Covered lines:0
Uncovered lines:81
Coverable lines:81
Total lines:316
Line coverage:0% (0 of 81)
Covered branches:0
Total branches:0
Covered methods:0
Total methods:21
Method coverage:0% (0 of 21)

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity NPath complexity Sequence coverage
PBAvatarEmoteCommand()0%2100%
get_Descriptor()0%2100%
PBAvatarEmoteCommand(...)0%2100%
Clone()0%2100%
PBAvatarEmoteCommand()0%2100%
Equals(...)0%2100%
Equals(...)0%42600%
GetHashCode()0%30500%
ToString()0%2100%
WriteTo(...)0%30500%
CalculateSize()0%30500%
MergeFrom(...)0%30500%
MergeFrom(...)0%30500%

File(s)

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

#LineLine coverage
 1// <auto-generated>
 2//     Generated by the protocol buffer compiler.  DO NOT EDIT!
 3//     source: decentraland/sdk/components/avatar_emote_command.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/avatar_emote_command.proto</
 15  public static partial class AvatarEmoteCommandReflection {
 16
 17    #region Descriptor
 18    /// <summary>File descriptor for decentraland/sdk/components/avatar_emote_command.proto</summary>
 19    public static pbr::FileDescriptor Descriptor {
 20      get { return descriptor; }
 21    }
 22    private static pbr::FileDescriptor descriptor;
 23
 24    static AvatarEmoteCommandReflection() {
 25      byte[] descriptorData = global::System.Convert.FromBase64String(
 26          string.Concat(
 27            "CjZkZWNlbnRyYWxhbmQvc2RrL2NvbXBvbmVudHMvYXZhdGFyX2Vtb3RlX2Nv",
 28            "bW1hbmQucHJvdG8SG2RlY2VudHJhbGFuZC5zZGsuY29tcG9uZW50cyJKChRQ",
 29            "QkF2YXRhckVtb3RlQ29tbWFuZBIRCgllbW90ZV91cm4YASABKAkSDAoEbG9v",
 30            "cBgCIAEoCBIRCgl0aW1lc3RhbXAYAyABKA1CFKoCEURDTC5FQ1NDb21wb25l",
 31            "bnRzYgZwcm90bzM="));
 32      descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
 33          new pbr::FileDescriptor[] { },
 34          new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
 35            new pbr::GeneratedClrTypeInfo(typeof(global::DCL.ECSComponents.PBAvatarEmoteCommand), global::DCL.ECSCompone
 36          }));
 37    }
 38    #endregion
 39
 40  }
 41  #region Messages
 42  /// <summary>
 43  /// AvatarEmoteCommand is a grow only value set, used to signal the renderer about
 44  /// avatar emotes playback.
 45  /// </summary>
 46  public sealed partial class PBAvatarEmoteCommand : pb::IMessage<PBAvatarEmoteCommand>
 47  #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 48      , pb::IBufferMessage
 49  #endif
 50  {
 051    private static readonly pb::MessageParser<PBAvatarEmoteCommand> _parser = new pb::MessageParser<PBAvatarEmoteCommand
 52    private pb::UnknownFieldSet _unknownFields;
 53    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 54    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 055    public static pb::MessageParser<PBAvatarEmoteCommand> Parser { get { return _parser; } }
 56
 57    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 58    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 59    public static pbr::MessageDescriptor Descriptor {
 060      get { return global::DCL.ECSComponents.AvatarEmoteCommandReflection.Descriptor.MessageTypes[0]; }
 61    }
 62
 63    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 64    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 65    pbr::MessageDescriptor pb::IMessage.Descriptor {
 066      get { return Descriptor; }
 67    }
 68
 69    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 70    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 071    public PBAvatarEmoteCommand() {
 72      OnConstruction();
 073    }
 74
 75    partial void OnConstruction();
 76
 77    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 78    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 079    public PBAvatarEmoteCommand(PBAvatarEmoteCommand other) : this() {
 080      emoteUrn_ = other.emoteUrn_;
 081      loop_ = other.loop_;
 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 PBAvatarEmoteCommand Clone() {
 089      return new PBAvatarEmoteCommand(this);
 90    }
 91
 92    /// <summary>Field number for the "emote_urn" field.</summary>
 93    public const int EmoteUrnFieldNumber = 1;
 094    private string emoteUrn_ = "";
 95    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 96    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 97    public string EmoteUrn {
 098      get { return emoteUrn_; }
 99      set {
 0100        emoteUrn_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
 0101      }
 102    }
 103
 104    /// <summary>Field number for the "loop" field.</summary>
 105    public const int LoopFieldNumber = 2;
 106    private bool loop_;
 107    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 108    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 109    public bool Loop {
 0110      get { return loop_; }
 111      set {
 0112        loop_ = value;
 0113      }
 114    }
 115
 116    /// <summary>Field number for the "timestamp" field.</summary>
 117    public const int TimestampFieldNumber = 3;
 118    private uint timestamp_;
 119    /// <summary>
 120    /// monotonic counter
 121    /// </summary>
 122    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 123    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 124    public uint Timestamp {
 0125      get { return timestamp_; }
 126      set {
 0127        timestamp_ = value;
 0128      }
 129    }
 130
 131    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 132    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 133    public override bool Equals(object other) {
 0134      return Equals(other as PBAvatarEmoteCommand);
 135    }
 136
 137    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 138    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 139    public bool Equals(PBAvatarEmoteCommand other) {
 0140      if (ReferenceEquals(other, null)) {
 0141        return false;
 142      }
 0143      if (ReferenceEquals(other, this)) {
 0144        return true;
 145      }
 0146      if (EmoteUrn != other.EmoteUrn) return false;
 0147      if (Loop != other.Loop) return false;
 0148      if (Timestamp != other.Timestamp) return false;
 0149      return Equals(_unknownFields, other._unknownFields);
 150    }
 151
 152    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 153    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 154    public override int GetHashCode() {
 0155      int hash = 1;
 0156      if (EmoteUrn.Length != 0) hash ^= EmoteUrn.GetHashCode();
 0157      if (Loop != false) hash ^= Loop.GetHashCode();
 0158      if (Timestamp != 0) hash ^= Timestamp.GetHashCode();
 0159      if (_unknownFields != null) {
 0160        hash ^= _unknownFields.GetHashCode();
 161      }
 0162      return hash;
 163    }
 164
 165    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 166    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 167    public override string ToString() {
 0168      return pb::JsonFormatter.ToDiagnosticString(this);
 169    }
 170
 171    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 172    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 173    public void WriteTo(pb::CodedOutputStream output) {
 174    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 175      output.WriteRawMessage(this);
 176    #else
 0177      if (EmoteUrn.Length != 0) {
 0178        output.WriteRawTag(10);
 0179        output.WriteString(EmoteUrn);
 180      }
 0181      if (Loop != false) {
 0182        output.WriteRawTag(16);
 0183        output.WriteBool(Loop);
 184      }
 0185      if (Timestamp != 0) {
 0186        output.WriteRawTag(24);
 0187        output.WriteUInt32(Timestamp);
 188      }
 0189      if (_unknownFields != null) {
 0190        _unknownFields.WriteTo(output);
 191      }
 192    #endif
 0193    }
 194
 195    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 196    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 197    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 198    void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
 199      if (EmoteUrn.Length != 0) {
 200        output.WriteRawTag(10);
 201        output.WriteString(EmoteUrn);
 202      }
 203      if (Loop != false) {
 204        output.WriteRawTag(16);
 205        output.WriteBool(Loop);
 206      }
 207      if (Timestamp != 0) {
 208        output.WriteRawTag(24);
 209        output.WriteUInt32(Timestamp);
 210      }
 211      if (_unknownFields != null) {
 212        _unknownFields.WriteTo(ref output);
 213      }
 214    }
 215    #endif
 216
 217    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 218    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 219    public int CalculateSize() {
 0220      int size = 0;
 0221      if (EmoteUrn.Length != 0) {
 0222        size += 1 + pb::CodedOutputStream.ComputeStringSize(EmoteUrn);
 223      }
 0224      if (Loop != false) {
 0225        size += 1 + 1;
 226      }
 0227      if (Timestamp != 0) {
 0228        size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Timestamp);
 229      }
 0230      if (_unknownFields != null) {
 0231        size += _unknownFields.CalculateSize();
 232      }
 0233      return size;
 234    }
 235
 236    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 237    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 238    public void MergeFrom(PBAvatarEmoteCommand other) {
 0239      if (other == null) {
 0240        return;
 241      }
 0242      if (other.EmoteUrn.Length != 0) {
 0243        EmoteUrn = other.EmoteUrn;
 244      }
 0245      if (other.Loop != false) {
 0246        Loop = other.Loop;
 247      }
 0248      if (other.Timestamp != 0) {
 0249        Timestamp = other.Timestamp;
 250      }
 0251      _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 0252    }
 253
 254    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 255    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 256    public void MergeFrom(pb::CodedInputStream input) {
 257    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 258      input.ReadRawMessage(this);
 259    #else
 260      uint tag;
 0261      while ((tag = input.ReadTag()) != 0) {
 262        switch(tag) {
 263          default:
 0264            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
 0265            break;
 266          case 10: {
 0267            EmoteUrn = input.ReadString();
 0268            break;
 269          }
 270          case 16: {
 0271            Loop = input.ReadBool();
 0272            break;
 273          }
 274          case 24: {
 0275            Timestamp = input.ReadUInt32();
 276            break;
 277          }
 278        }
 279      }
 280    #endif
 0281    }
 282
 283    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 284    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 285    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 286    void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
 287      uint tag;
 288      while ((tag = input.ReadTag()) != 0) {
 289        switch(tag) {
 290          default:
 291            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
 292            break;
 293          case 10: {
 294            EmoteUrn = input.ReadString();
 295            break;
 296          }
 297          case 16: {
 298            Loop = input.ReadBool();
 299            break;
 300          }
 301          case 24: {
 302            Timestamp = input.ReadUInt32();
 303            break;
 304          }
 305        }
 306      }
 307    }
 308    #endif
 309
 310  }
 311
 312  #endregion
 313
 314}
 315
 316#endregion Designer generated code