< Summary

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

Metrics

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

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: ecs/components/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 ecs/components/AvatarAttach.proto</summary>
 15  public static partial class AvatarAttachReflection {
 16
 17    #region Descriptor
 18    /// <summary>File descriptor for ecs/components/AvatarAttach.proto</summary>
 19    public static pbr::FileDescriptor Descriptor {
 020      get { return descriptor; }
 21    }
 22    private static pbr::FileDescriptor descriptor;
 23
 24    static AvatarAttachReflection() {
 025      byte[] descriptorData = global::System.Convert.FromBase64String(
 26          string.Concat(
 27            "CiFlY3MvY29tcG9uZW50cy9BdmF0YXJBdHRhY2gucHJvdG8SEGRlY2VudHJh",
 28            "bGFuZC5lY3MiYQoOUEJBdmF0YXJBdHRhY2gSEQoJYXZhdGFyX2lkGAEgASgJ",
 29            "EjwKD2FuY2hvcl9wb2ludF9pZBgCIAEoDjIjLmRlY2VudHJhbGFuZC5lY3Mu",
 30            "QXZhdGFyQW5jaG9yUG9pbnQqTgoRQXZhdGFyQW5jaG9yUG9pbnQSDAoIUE9T",
 31            "SVRJT04QABIMCghOQU1FX1RBRxABEg0KCUxFRlRfSEFORBACEg4KClJJR0hU",
 32            "X0hBTkQQA0IUqgIRRENMLkVDU0NvbXBvbmVudHNiBnByb3RvMw=="));
 033      descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
 34          new pbr::FileDescriptor[] { },
 35          new pbr::GeneratedClrTypeInfo(new[] {typeof(global::DCL.ECSComponents.AvatarAnchorPoint), }, null, new pbr::Ge
 36            new pbr::GeneratedClrTypeInfo(typeof(global::DCL.ECSComponents.PBAvatarAttach), global::DCL.ECSComponents.PB
 37          }));
 038    }
 39    #endregion
 40
 41  }
 42  #region Enums
 43  public enum AvatarAnchorPoint {
 44    [pbr::OriginalName("POSITION")] Position = 0,
 45    [pbr::OriginalName("NAME_TAG")] NameTag = 1,
 46    [pbr::OriginalName("LEFT_HAND")] LeftHand = 2,
 47    [pbr::OriginalName("RIGHT_HAND")] RightHand = 3,
 48  }
 49
 50  #endregion
 51
 52  #region Messages
 53  public sealed partial class PBAvatarAttach : pb::IMessage<PBAvatarAttach>
 54  #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 55      , pb::IBufferMessage
 56  #endif
 57  {
 58    private static readonly pb::MessageParser<PBAvatarAttach> _parser = new pb::MessageParser<PBAvatarAttach>(() => new 
 59    private pb::UnknownFieldSet _unknownFields;
 60    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 61    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 62    public static pb::MessageParser<PBAvatarAttach> Parser { get { return _parser; } }
 63
 64    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 65    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 66    public static pbr::MessageDescriptor Descriptor {
 67      get { return global::DCL.ECSComponents.AvatarAttachReflection.Descriptor.MessageTypes[0]; }
 68    }
 69
 70    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 71    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 72    pbr::MessageDescriptor pb::IMessage.Descriptor {
 73      get { return Descriptor; }
 74    }
 75
 76    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 77    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 78    public PBAvatarAttach() {
 79      OnConstruction();
 80    }
 81
 82    partial void OnConstruction();
 83
 84    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 85    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 86    public PBAvatarAttach(PBAvatarAttach other) : this() {
 87      avatarId_ = other.avatarId_;
 88      anchorPointId_ = other.anchorPointId_;
 89      _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
 90    }
 91
 92    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 93    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 94    public PBAvatarAttach Clone() {
 95      return new PBAvatarAttach(this);
 96    }
 97
 98    /// <summary>Field number for the "avatar_id" field.</summary>
 99    public const int AvatarIdFieldNumber = 1;
 100    private string avatarId_ = "";
 101    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 102    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 103    public string AvatarId {
 104      get { return avatarId_; }
 105      set {
 106        avatarId_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
 107      }
 108    }
 109
 110    /// <summary>Field number for the "anchor_point_id" field.</summary>
 111    public const int AnchorPointIdFieldNumber = 2;
 112    private global::DCL.ECSComponents.AvatarAnchorPoint anchorPointId_ = global::DCL.ECSComponents.AvatarAnchorPoint.Pos
 113    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 114    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 115    public global::DCL.ECSComponents.AvatarAnchorPoint AnchorPointId {
 116      get { return anchorPointId_; }
 117      set {
 118        anchorPointId_ = value;
 119      }
 120    }
 121
 122    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 123    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 124    public override bool Equals(object other) {
 125      return Equals(other as PBAvatarAttach);
 126    }
 127
 128    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 129    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 130    public bool Equals(PBAvatarAttach other) {
 131      if (ReferenceEquals(other, null)) {
 132        return false;
 133      }
 134      if (ReferenceEquals(other, this)) {
 135        return true;
 136      }
 137      if (AvatarId != other.AvatarId) return false;
 138      if (AnchorPointId != other.AnchorPointId) return false;
 139      return Equals(_unknownFields, other._unknownFields);
 140    }
 141
 142    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 143    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 144    public override int GetHashCode() {
 145      int hash = 1;
 146      if (AvatarId.Length != 0) hash ^= AvatarId.GetHashCode();
 147      if (AnchorPointId != global::DCL.ECSComponents.AvatarAnchorPoint.Position) hash ^= AnchorPointId.GetHashCode();
 148      if (_unknownFields != null) {
 149        hash ^= _unknownFields.GetHashCode();
 150      }
 151      return hash;
 152    }
 153
 154    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 155    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 156    public override string ToString() {
 157      return pb::JsonFormatter.ToDiagnosticString(this);
 158    }
 159
 160    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 161    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 162    public void WriteTo(pb::CodedOutputStream output) {
 163    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 164      output.WriteRawMessage(this);
 165    #else
 166      if (AvatarId.Length != 0) {
 167        output.WriteRawTag(10);
 168        output.WriteString(AvatarId);
 169      }
 170      if (AnchorPointId != global::DCL.ECSComponents.AvatarAnchorPoint.Position) {
 171        output.WriteRawTag(16);
 172        output.WriteEnum((int) AnchorPointId);
 173      }
 174      if (_unknownFields != null) {
 175        _unknownFields.WriteTo(output);
 176      }
 177    #endif
 178    }
 179
 180    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 181    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 182    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 183    void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
 184      if (AvatarId.Length != 0) {
 185        output.WriteRawTag(10);
 186        output.WriteString(AvatarId);
 187      }
 188      if (AnchorPointId != global::DCL.ECSComponents.AvatarAnchorPoint.Position) {
 189        output.WriteRawTag(16);
 190        output.WriteEnum((int) AnchorPointId);
 191      }
 192      if (_unknownFields != null) {
 193        _unknownFields.WriteTo(ref output);
 194      }
 195    }
 196    #endif
 197
 198    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 199    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 200    public int CalculateSize() {
 201      int size = 0;
 202      if (AvatarId.Length != 0) {
 203        size += 1 + pb::CodedOutputStream.ComputeStringSize(AvatarId);
 204      }
 205      if (AnchorPointId != global::DCL.ECSComponents.AvatarAnchorPoint.Position) {
 206        size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) AnchorPointId);
 207      }
 208      if (_unknownFields != null) {
 209        size += _unknownFields.CalculateSize();
 210      }
 211      return size;
 212    }
 213
 214    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 215    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 216    public void MergeFrom(PBAvatarAttach other) {
 217      if (other == null) {
 218        return;
 219      }
 220      if (other.AvatarId.Length != 0) {
 221        AvatarId = other.AvatarId;
 222      }
 223      if (other.AnchorPointId != global::DCL.ECSComponents.AvatarAnchorPoint.Position) {
 224        AnchorPointId = other.AnchorPointId;
 225      }
 226      _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 227    }
 228
 229    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 230    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 231    public void MergeFrom(pb::CodedInputStream input) {
 232    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 233      input.ReadRawMessage(this);
 234    #else
 235      uint tag;
 236      while ((tag = input.ReadTag()) != 0) {
 237        switch(tag) {
 238          default:
 239            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
 240            break;
 241          case 10: {
 242            AvatarId = input.ReadString();
 243            break;
 244          }
 245          case 16: {
 246            AnchorPointId = (global::DCL.ECSComponents.AvatarAnchorPoint) input.ReadEnum();
 247            break;
 248          }
 249        }
 250      }
 251    #endif
 252    }
 253
 254    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 255    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 256    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 257    void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
 258      uint tag;
 259      while ((tag = input.ReadTag()) != 0) {
 260        switch(tag) {
 261          default:
 262            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
 263            break;
 264          case 10: {
 265            AvatarId = input.ReadString();
 266            break;
 267          }
 268          case 16: {
 269            AnchorPointId = (global::DCL.ECSComponents.AvatarAnchorPoint) input.ReadEnum();
 270            break;
 271          }
 272        }
 273      }
 274    }
 275    #endif
 276
 277  }
 278
 279  #endregion
 280
 281}
 282
 283#endregion Designer generated code