< Summary

Class:DCL.ECSComponents.AvatarEmoteCommandReflection
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:4
Coverable lines:4
Total lines:316
Line coverage:0% (0 of 4)
Covered branches:0
Total branches:0
Covered methods:0
Total methods:2
Method coverage:0% (0 of 2)

Metrics

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

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 {
 020      get { return descriptor; }
 21    }
 22    private static pbr::FileDescriptor descriptor;
 23
 24    static AvatarEmoteCommandReflection() {
 025      byte[] descriptorData = global::System.Convert.FromBase64String(
 26          string.Concat(
 27            "CjZkZWNlbnRyYWxhbmQvc2RrL2NvbXBvbmVudHMvYXZhdGFyX2Vtb3RlX2Nv",
 28            "bW1hbmQucHJvdG8SG2RlY2VudHJhbGFuZC5zZGsuY29tcG9uZW50cyJKChRQ",
 29            "QkF2YXRhckVtb3RlQ29tbWFuZBIRCgllbW90ZV91cm4YASABKAkSDAoEbG9v",
 30            "cBgCIAEoCBIRCgl0aW1lc3RhbXAYAyABKA1CFKoCEURDTC5FQ1NDb21wb25l",
 31            "bnRzYgZwcm90bzM="));
 032      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          }));
 037    }
 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  {
 51    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)]
 55    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 {
 60      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 {
 66      get { return Descriptor; }
 67    }
 68
 69    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 70    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 71    public PBAvatarEmoteCommand() {
 72      OnConstruction();
 73    }
 74
 75    partial void OnConstruction();
 76
 77    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 78    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 79    public PBAvatarEmoteCommand(PBAvatarEmoteCommand other) : this() {
 80      emoteUrn_ = other.emoteUrn_;
 81      loop_ = other.loop_;
 82      timestamp_ = other.timestamp_;
 83      _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
 84    }
 85
 86    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 87    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 88    public PBAvatarEmoteCommand Clone() {
 89      return new PBAvatarEmoteCommand(this);
 90    }
 91
 92    /// <summary>Field number for the "emote_urn" field.</summary>
 93    public const int EmoteUrnFieldNumber = 1;
 94    private string emoteUrn_ = "";
 95    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 96    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 97    public string EmoteUrn {
 98      get { return emoteUrn_; }
 99      set {
 100        emoteUrn_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
 101      }
 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 {
 110      get { return loop_; }
 111      set {
 112        loop_ = value;
 113      }
 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 {
 125      get { return timestamp_; }
 126      set {
 127        timestamp_ = value;
 128      }
 129    }
 130
 131    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 132    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 133    public override bool Equals(object other) {
 134      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) {
 140      if (ReferenceEquals(other, null)) {
 141        return false;
 142      }
 143      if (ReferenceEquals(other, this)) {
 144        return true;
 145      }
 146      if (EmoteUrn != other.EmoteUrn) return false;
 147      if (Loop != other.Loop) return false;
 148      if (Timestamp != other.Timestamp) return false;
 149      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() {
 155      int hash = 1;
 156      if (EmoteUrn.Length != 0) hash ^= EmoteUrn.GetHashCode();
 157      if (Loop != false) hash ^= Loop.GetHashCode();
 158      if (Timestamp != 0) hash ^= Timestamp.GetHashCode();
 159      if (_unknownFields != null) {
 160        hash ^= _unknownFields.GetHashCode();
 161      }
 162      return hash;
 163    }
 164
 165    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 166    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 167    public override string ToString() {
 168      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
 177      if (EmoteUrn.Length != 0) {
 178        output.WriteRawTag(10);
 179        output.WriteString(EmoteUrn);
 180      }
 181      if (Loop != false) {
 182        output.WriteRawTag(16);
 183        output.WriteBool(Loop);
 184      }
 185      if (Timestamp != 0) {
 186        output.WriteRawTag(24);
 187        output.WriteUInt32(Timestamp);
 188      }
 189      if (_unknownFields != null) {
 190        _unknownFields.WriteTo(output);
 191      }
 192    #endif
 193    }
 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() {
 220      int size = 0;
 221      if (EmoteUrn.Length != 0) {
 222        size += 1 + pb::CodedOutputStream.ComputeStringSize(EmoteUrn);
 223      }
 224      if (Loop != false) {
 225        size += 1 + 1;
 226      }
 227      if (Timestamp != 0) {
 228        size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Timestamp);
 229      }
 230      if (_unknownFields != null) {
 231        size += _unknownFields.CalculateSize();
 232      }
 233      return size;
 234    }
 235
 236    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 237    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 238    public void MergeFrom(PBAvatarEmoteCommand other) {
 239      if (other == null) {
 240        return;
 241      }
 242      if (other.EmoteUrn.Length != 0) {
 243        EmoteUrn = other.EmoteUrn;
 244      }
 245      if (other.Loop != false) {
 246        Loop = other.Loop;
 247      }
 248      if (other.Timestamp != 0) {
 249        Timestamp = other.Timestamp;
 250      }
 251      _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 252    }
 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;
 261      while ((tag = input.ReadTag()) != 0) {
 262        switch(tag) {
 263          default:
 264            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
 265            break;
 266          case 10: {
 267            EmoteUrn = input.ReadString();
 268            break;
 269          }
 270          case 16: {
 271            Loop = input.ReadBool();
 272            break;
 273          }
 274          case 24: {
 275            Timestamp = input.ReadUInt32();
 276            break;
 277          }
 278        }
 279      }
 280    #endif
 281    }
 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