< Summary

Class:DCL.ECSComponents.PBAvatarAttach
Assembly:DCL.Components.ProtobufData
File(s):/tmp/workspace/unity-renderer/unity-renderer/Assets/DCLPlugins/ECS7/ProtocolBuffers/Generated/PBFiles/AvatarAttach.cs
Covered lines:6
Uncovered lines:60
Coverable lines:66
Total lines:201
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/PBFiles/AvatarAttach.cs

#LineLine coverage
 1// <auto-generated>
 2//     Generated by the protocol buffer compiler.  DO NOT EDIT!
 3//     source: AvatarAttach.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 AvatarAttach.proto</summary>
 15  public static partial class AvatarAttachReflection {
 16
 17    #region Descriptor
 18    /// <summary>File descriptor for AvatarAttach.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            "ChJBdmF0YXJBdHRhY2gucHJvdG8SEGRlY2VudHJhbGFuZC5lY3MiPAoOUEJB",
 28            "dmF0YXJBdHRhY2gSEQoJYXZhdGFyX2lkGAEgASgJEhcKD2FuY2hvcl9wb2lu",
 29            "dF9pZBgCIAEoBUIUqgIRRENMLkVDU0NvbXBvbmVudHNiBnByb3RvMw=="));
 30      descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
 31          new pbr::FileDescriptor[] { },
 32          new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
 33            new pbr::GeneratedClrTypeInfo(typeof(global::DCL.ECSComponents.PBAvatarAttach), global::DCL.ECSComponents.PB
 34          }));
 35    }
 36    #endregion
 37
 38  }
 39  #region Messages
 40  public sealed partial class PBAvatarAttach : pb::IMessage<PBAvatarAttach> {
 141    private static readonly pb::MessageParser<PBAvatarAttach> _parser = new pb::MessageParser<PBAvatarAttach>(() => new 
 42    private pb::UnknownFieldSet _unknownFields;
 43    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 044    public static pb::MessageParser<PBAvatarAttach> Parser { get { return _parser; } }
 45
 46    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 47    public static pbr::MessageDescriptor Descriptor {
 048      get { return global::DCL.ECSComponents.AvatarAttachReflection.Descriptor.MessageTypes[0]; }
 49    }
 50
 51    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 52    pbr::MessageDescriptor pb::IMessage.Descriptor {
 053      get { return Descriptor; }
 54    }
 55
 56    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 157    public PBAvatarAttach() {
 58      OnConstruction();
 159    }
 60
 61    partial void OnConstruction();
 62
 63    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 064    public PBAvatarAttach(PBAvatarAttach other) : this() {
 065      avatarId_ = other.avatarId_;
 066      anchorPointId_ = other.anchorPointId_;
 067      _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
 068    }
 69
 70    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 71    public PBAvatarAttach Clone() {
 072      return new PBAvatarAttach(this);
 73    }
 74
 75    /// <summary>Field number for the "avatar_id" field.</summary>
 76    public const int AvatarIdFieldNumber = 1;
 177    private string avatarId_ = "";
 78    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 79    public string AvatarId {
 080      get { return avatarId_; }
 81      set {
 182        avatarId_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
 183      }
 84    }
 85
 86    /// <summary>Field number for the "anchor_point_id" field.</summary>
 87    public const int AnchorPointIdFieldNumber = 2;
 88    private int anchorPointId_;
 89    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 90    public int AnchorPointId {
 091      get { return anchorPointId_; }
 92      set {
 093        anchorPointId_ = value;
 094      }
 95    }
 96
 97    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 98    public override bool Equals(object other) {
 099      return Equals(other as PBAvatarAttach);
 100    }
 101
 102    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 103    public bool Equals(PBAvatarAttach other) {
 0104      if (ReferenceEquals(other, null)) {
 0105        return false;
 106      }
 0107      if (ReferenceEquals(other, this)) {
 0108        return true;
 109      }
 0110      if (AvatarId != other.AvatarId) return false;
 0111      if (AnchorPointId != other.AnchorPointId) return false;
 0112      return Equals(_unknownFields, other._unknownFields);
 113    }
 114
 115    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 116    public override int GetHashCode() {
 0117      int hash = 1;
 0118      if (AvatarId.Length != 0) hash ^= AvatarId.GetHashCode();
 0119      if (AnchorPointId != 0) hash ^= AnchorPointId.GetHashCode();
 0120      if (_unknownFields != null) {
 0121        hash ^= _unknownFields.GetHashCode();
 122      }
 0123      return hash;
 124    }
 125
 126    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 127    public override string ToString() {
 0128      return pb::JsonFormatter.ToDiagnosticString(this);
 129    }
 130
 131    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 132    public void WriteTo(pb::CodedOutputStream output) {
 0133      if (AvatarId.Length != 0) {
 0134        output.WriteRawTag(10);
 0135        output.WriteString(AvatarId);
 136      }
 0137      if (AnchorPointId != 0) {
 0138        output.WriteRawTag(16);
 0139        output.WriteInt32(AnchorPointId);
 140      }
 0141      if (_unknownFields != null) {
 0142        _unknownFields.WriteTo(output);
 143      }
 0144    }
 145
 146    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 147    public int CalculateSize() {
 0148      int size = 0;
 0149      if (AvatarId.Length != 0) {
 0150        size += 1 + pb::CodedOutputStream.ComputeStringSize(AvatarId);
 151      }
 0152      if (AnchorPointId != 0) {
 0153        size += 1 + pb::CodedOutputStream.ComputeInt32Size(AnchorPointId);
 154      }
 0155      if (_unknownFields != null) {
 0156        size += _unknownFields.CalculateSize();
 157      }
 0158      return size;
 159    }
 160
 161    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 162    public void MergeFrom(PBAvatarAttach other) {
 0163      if (other == null) {
 0164        return;
 165      }
 0166      if (other.AvatarId.Length != 0) {
 0167        AvatarId = other.AvatarId;
 168      }
 0169      if (other.AnchorPointId != 0) {
 0170        AnchorPointId = other.AnchorPointId;
 171      }
 0172      _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 0173    }
 174
 175    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 176    public void MergeFrom(pb::CodedInputStream input) {
 177      uint tag;
 0178      while ((tag = input.ReadTag()) != 0) {
 179        switch(tag) {
 180          default:
 0181            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
 0182            break;
 183          case 10: {
 0184            AvatarId = input.ReadString();
 0185            break;
 186          }
 187          case 16: {
 0188            AnchorPointId = input.ReadInt32();
 189            break;
 190          }
 191        }
 192      }
 0193    }
 194
 195  }
 196
 197  #endregion
 198
 199}
 200
 201#endregion Designer generated code