< Summary

Class:DCL.ECSComponents.PBAvatarAttach
Assembly:DCL.ECSComponents.ProtobufData
File(s):/tmp/workspace/unity-renderer/unity-renderer/Assets/DCLPlugins/ECS7/ProtocolBuffers/Generated/AvatarAttach.gen.cs
Covered lines:6
Uncovered lines:60
Coverable lines:66
Total lines:285
Line coverage:9% (6 of 66)
Covered branches:0
Total branches:0

Metrics

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

File(s)

/tmp/workspace/unity-renderer/unity-renderer/Assets/DCLPlugins/ECS7/ProtocolBuffers/Generated/AvatarAttach.gen.cs

#LineLine coverage
 1// <auto-generated>
 2//     Generated by the protocol buffer compiler.  DO NOT EDIT!
 3//     source: decentraland/sdk/components/avatar_attach.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_attach.proto</summary
 15  public static partial class AvatarAttachReflection {
 16
 17    #region Descriptor
 18    /// <summary>File descriptor for decentraland/sdk/components/avatar_attach.proto</summary>
 19    public static pbr::FileDescriptor Descriptor {
 20      get { return descriptor; }
 21    }
 22    private static pbr::FileDescriptor descriptor;
 23
 24    static AvatarAttachReflection() {
 25      byte[] descriptorData = global::System.Convert.FromBase64String(
 26          string.Concat(
 27            "Ci9kZWNlbnRyYWxhbmQvc2RrL2NvbXBvbmVudHMvYXZhdGFyX2F0dGFjaC5w",
 28            "cm90bxIbZGVjZW50cmFsYW5kLnNkay5jb21wb25lbnRzInAKDlBCQXZhdGFy",
 29            "QXR0YWNoEhEKCWF2YXRhcl9pZBgBIAEoCRJLCg9hbmNob3JfcG9pbnRfaWQY",
 30            "AiABKA4yMi5kZWNlbnRyYWxhbmQuc2RrLmNvbXBvbmVudHMuQXZhdGFyQW5j",
 31            "aG9yUG9pbnRUeXBlKmYKFUF2YXRhckFuY2hvclBvaW50VHlwZRIRCg1BQVBU",
 32            "X1BPU0lUSU9OEAASEQoNQUFQVF9OQU1FX1RBRxABEhIKDkFBUFRfTEVGVF9I",
 33            "QU5EEAISEwoPQUFQVF9SSUdIVF9IQU5EEANCFKoCEURDTC5FQ1NDb21wb25l",
 34            "bnRzYgZwcm90bzM="));
 35      descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
 36          new pbr::FileDescriptor[] { },
 37          new pbr::GeneratedClrTypeInfo(new[] {typeof(global::DCL.ECSComponents.AvatarAnchorPointType), }, null, new pbr
 38            new pbr::GeneratedClrTypeInfo(typeof(global::DCL.ECSComponents.PBAvatarAttach), global::DCL.ECSComponents.PB
 39          }));
 40    }
 41    #endregion
 42
 43  }
 44  #region Enums
 45  public enum AvatarAnchorPointType {
 46    [pbr::OriginalName("AAPT_POSITION")] AaptPosition = 0,
 47    [pbr::OriginalName("AAPT_NAME_TAG")] AaptNameTag = 1,
 48    [pbr::OriginalName("AAPT_LEFT_HAND")] AaptLeftHand = 2,
 49    [pbr::OriginalName("AAPT_RIGHT_HAND")] AaptRightHand = 3,
 50  }
 51
 52  #endregion
 53
 54  #region Messages
 55  public sealed partial class PBAvatarAttach : pb::IMessage<PBAvatarAttach>
 56  #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 57      , pb::IBufferMessage
 58  #endif
 59  {
 160    private static readonly pb::MessageParser<PBAvatarAttach> _parser = new pb::MessageParser<PBAvatarAttach>(() => new 
 61    private pb::UnknownFieldSet _unknownFields;
 62    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 63    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 064    public static pb::MessageParser<PBAvatarAttach> Parser { get { return _parser; } }
 65
 66    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 67    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 68    public static pbr::MessageDescriptor Descriptor {
 069      get { return global::DCL.ECSComponents.AvatarAttachReflection.Descriptor.MessageTypes[0]; }
 70    }
 71
 72    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 73    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 74    pbr::MessageDescriptor pb::IMessage.Descriptor {
 075      get { return Descriptor; }
 76    }
 77
 78    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 79    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 180    public PBAvatarAttach() {
 81      OnConstruction();
 182    }
 83
 84    partial void OnConstruction();
 85
 86    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 87    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 088    public PBAvatarAttach(PBAvatarAttach other) : this() {
 089      avatarId_ = other.avatarId_;
 090      anchorPointId_ = other.anchorPointId_;
 091      _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
 092    }
 93
 94    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 95    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 96    public PBAvatarAttach Clone() {
 097      return new PBAvatarAttach(this);
 98    }
 99
 100    /// <summary>Field number for the "avatar_id" field.</summary>
 101    public const int AvatarIdFieldNumber = 1;
 1102    private string avatarId_ = "";
 103    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 104    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 105    public string AvatarId {
 0106      get { return avatarId_; }
 107      set {
 1108        avatarId_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
 1109      }
 110    }
 111
 112    /// <summary>Field number for the "anchor_point_id" field.</summary>
 113    public const int AnchorPointIdFieldNumber = 2;
 114    private global::DCL.ECSComponents.AvatarAnchorPointType anchorPointId_ = global::DCL.ECSComponents.AvatarAnchorPoint
 115    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 116    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 117    public global::DCL.ECSComponents.AvatarAnchorPointType AnchorPointId {
 0118      get { return anchorPointId_; }
 119      set {
 0120        anchorPointId_ = value;
 0121      }
 122    }
 123
 124    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 125    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 126    public override bool Equals(object other) {
 0127      return Equals(other as PBAvatarAttach);
 128    }
 129
 130    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 131    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 132    public bool Equals(PBAvatarAttach other) {
 0133      if (ReferenceEquals(other, null)) {
 0134        return false;
 135      }
 0136      if (ReferenceEquals(other, this)) {
 0137        return true;
 138      }
 0139      if (AvatarId != other.AvatarId) return false;
 0140      if (AnchorPointId != other.AnchorPointId) return false;
 0141      return Equals(_unknownFields, other._unknownFields);
 142    }
 143
 144    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 145    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 146    public override int GetHashCode() {
 0147      int hash = 1;
 0148      if (AvatarId.Length != 0) hash ^= AvatarId.GetHashCode();
 0149      if (AnchorPointId != global::DCL.ECSComponents.AvatarAnchorPointType.AaptPosition) hash ^= AnchorPointId.GetHashCo
 0150      if (_unknownFields != null) {
 0151        hash ^= _unknownFields.GetHashCode();
 152      }
 0153      return hash;
 154    }
 155
 156    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 157    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 158    public override string ToString() {
 0159      return pb::JsonFormatter.ToDiagnosticString(this);
 160    }
 161
 162    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 163    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 164    public void WriteTo(pb::CodedOutputStream output) {
 165    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 166      output.WriteRawMessage(this);
 167    #else
 0168      if (AvatarId.Length != 0) {
 0169        output.WriteRawTag(10);
 0170        output.WriteString(AvatarId);
 171      }
 0172      if (AnchorPointId != global::DCL.ECSComponents.AvatarAnchorPointType.AaptPosition) {
 0173        output.WriteRawTag(16);
 0174        output.WriteEnum((int) AnchorPointId);
 175      }
 0176      if (_unknownFields != null) {
 0177        _unknownFields.WriteTo(output);
 178      }
 179    #endif
 0180    }
 181
 182    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 183    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 184    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 185    void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
 186      if (AvatarId.Length != 0) {
 187        output.WriteRawTag(10);
 188        output.WriteString(AvatarId);
 189      }
 190      if (AnchorPointId != global::DCL.ECSComponents.AvatarAnchorPointType.AaptPosition) {
 191        output.WriteRawTag(16);
 192        output.WriteEnum((int) AnchorPointId);
 193      }
 194      if (_unknownFields != null) {
 195        _unknownFields.WriteTo(ref output);
 196      }
 197    }
 198    #endif
 199
 200    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 201    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 202    public int CalculateSize() {
 0203      int size = 0;
 0204      if (AvatarId.Length != 0) {
 0205        size += 1 + pb::CodedOutputStream.ComputeStringSize(AvatarId);
 206      }
 0207      if (AnchorPointId != global::DCL.ECSComponents.AvatarAnchorPointType.AaptPosition) {
 0208        size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) AnchorPointId);
 209      }
 0210      if (_unknownFields != null) {
 0211        size += _unknownFields.CalculateSize();
 212      }
 0213      return size;
 214    }
 215
 216    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 217    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 218    public void MergeFrom(PBAvatarAttach other) {
 0219      if (other == null) {
 0220        return;
 221      }
 0222      if (other.AvatarId.Length != 0) {
 0223        AvatarId = other.AvatarId;
 224      }
 0225      if (other.AnchorPointId != global::DCL.ECSComponents.AvatarAnchorPointType.AaptPosition) {
 0226        AnchorPointId = other.AnchorPointId;
 227      }
 0228      _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 0229    }
 230
 231    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 232    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 233    public void MergeFrom(pb::CodedInputStream input) {
 234    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 235      input.ReadRawMessage(this);
 236    #else
 237      uint tag;
 0238      while ((tag = input.ReadTag()) != 0) {
 239        switch(tag) {
 240          default:
 0241            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
 0242            break;
 243          case 10: {
 0244            AvatarId = input.ReadString();
 0245            break;
 246          }
 247          case 16: {
 0248            AnchorPointId = (global::DCL.ECSComponents.AvatarAnchorPointType) input.ReadEnum();
 249            break;
 250          }
 251        }
 252      }
 253    #endif
 0254    }
 255
 256    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 257    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 258    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 259    void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
 260      uint tag;
 261      while ((tag = input.ReadTag()) != 0) {
 262        switch(tag) {
 263          default:
 264            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
 265            break;
 266          case 10: {
 267            AvatarId = input.ReadString();
 268            break;
 269          }
 270          case 16: {
 271            AnchorPointId = (global::DCL.ECSComponents.AvatarAnchorPointType) input.ReadEnum();
 272            break;
 273          }
 274        }
 275      }
 276    }
 277    #endif
 278
 279  }
 280
 281  #endregion
 282
 283}
 284
 285#endregion Designer generated code