< Summary

Class:DCL.ECSComponents.AvatarAttachReflection
Assembly:Decentraland.Protocol.GeneratedCode
File(s):/tmp/workspace/unity-renderer/unity-renderer/Assets/Scripts/MainScripts/DCL/DecentralandProtocol/AvatarAttach.gen.cs
Covered lines:0
Uncovered lines:4
Coverable lines:4
Total lines:300
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/Scripts/MainScripts/DCL/DecentralandProtocol/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 {
 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            "Ci9kZWNlbnRyYWxhbmQvc2RrL2NvbXBvbmVudHMvYXZhdGFyX2F0dGFjaC5w",
 28            "cm90bxIbZGVjZW50cmFsYW5kLnNkay5jb21wb25lbnRzIoMBCg5QQkF2YXRh",
 29            "ckF0dGFjaBIWCglhdmF0YXJfaWQYASABKAlIAIgBARJLCg9hbmNob3JfcG9p",
 30            "bnRfaWQYAiABKA4yMi5kZWNlbnRyYWxhbmQuc2RrLmNvbXBvbmVudHMuQXZh",
 31            "dGFyQW5jaG9yUG9pbnRUeXBlQgwKCl9hdmF0YXJfaWQqZgoVQXZhdGFyQW5j",
 32            "aG9yUG9pbnRUeXBlEhEKDUFBUFRfUE9TSVRJT04QABIRCg1BQVBUX05BTUVf",
 33            "VEFHEAESEgoOQUFQVF9MRUZUX0hBTkQQAhITCg9BQVBUX1JJR0hUX0hBTkQQ",
 34            "A0IUqgIRRENMLkVDU0NvbXBvbmVudHNiBnByb3RvMw=="));
 035      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          }));
 040    }
 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  {
 60    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)]
 64    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 {
 69      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 {
 75      get { return Descriptor; }
 76    }
 77
 78    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 79    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 80    public PBAvatarAttach() {
 81      OnConstruction();
 82    }
 83
 84    partial void OnConstruction();
 85
 86    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 87    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 88    public PBAvatarAttach(PBAvatarAttach other) : this() {
 89      avatarId_ = other.avatarId_;
 90      anchorPointId_ = other.anchorPointId_;
 91      _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
 92    }
 93
 94    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 95    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 96    public PBAvatarAttach Clone() {
 97      return new PBAvatarAttach(this);
 98    }
 99
 100    /// <summary>Field number for the "avatar_id" field.</summary>
 101    public const int AvatarIdFieldNumber = 1;
 102    private string avatarId_;
 103    /// <summary>
 104    /// default's to current player avatar id if not provided
 105    /// </summary>
 106    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 107    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 108    public string AvatarId {
 109      get { return avatarId_ ?? ""; }
 110      set {
 111        avatarId_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
 112      }
 113    }
 114    /// <summary>Gets whether the "avatar_id" field is set</summary>
 115    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 116    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 117    public bool HasAvatarId {
 118      get { return avatarId_ != null; }
 119    }
 120    /// <summary>Clears the value of the "avatar_id" field</summary>
 121    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 122    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 123    public void ClearAvatarId() {
 124      avatarId_ = null;
 125    }
 126
 127    /// <summary>Field number for the "anchor_point_id" field.</summary>
 128    public const int AnchorPointIdFieldNumber = 2;
 129    private global::DCL.ECSComponents.AvatarAnchorPointType anchorPointId_ = global::DCL.ECSComponents.AvatarAnchorPoint
 130    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 131    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 132    public global::DCL.ECSComponents.AvatarAnchorPointType AnchorPointId {
 133      get { return anchorPointId_; }
 134      set {
 135        anchorPointId_ = value;
 136      }
 137    }
 138
 139    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 140    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 141    public override bool Equals(object other) {
 142      return Equals(other as PBAvatarAttach);
 143    }
 144
 145    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 146    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 147    public bool Equals(PBAvatarAttach other) {
 148      if (ReferenceEquals(other, null)) {
 149        return false;
 150      }
 151      if (ReferenceEquals(other, this)) {
 152        return true;
 153      }
 154      if (AvatarId != other.AvatarId) return false;
 155      if (AnchorPointId != other.AnchorPointId) return false;
 156      return Equals(_unknownFields, other._unknownFields);
 157    }
 158
 159    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 160    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 161    public override int GetHashCode() {
 162      int hash = 1;
 163      if (HasAvatarId) hash ^= AvatarId.GetHashCode();
 164      if (AnchorPointId != global::DCL.ECSComponents.AvatarAnchorPointType.AaptPosition) hash ^= AnchorPointId.GetHashCo
 165      if (_unknownFields != null) {
 166        hash ^= _unknownFields.GetHashCode();
 167      }
 168      return hash;
 169    }
 170
 171    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 172    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 173    public override string ToString() {
 174      return pb::JsonFormatter.ToDiagnosticString(this);
 175    }
 176
 177    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 178    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 179    public void WriteTo(pb::CodedOutputStream output) {
 180    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 181      output.WriteRawMessage(this);
 182    #else
 183      if (HasAvatarId) {
 184        output.WriteRawTag(10);
 185        output.WriteString(AvatarId);
 186      }
 187      if (AnchorPointId != global::DCL.ECSComponents.AvatarAnchorPointType.AaptPosition) {
 188        output.WriteRawTag(16);
 189        output.WriteEnum((int) AnchorPointId);
 190      }
 191      if (_unknownFields != null) {
 192        _unknownFields.WriteTo(output);
 193      }
 194    #endif
 195    }
 196
 197    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 198    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 199    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 200    void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
 201      if (HasAvatarId) {
 202        output.WriteRawTag(10);
 203        output.WriteString(AvatarId);
 204      }
 205      if (AnchorPointId != global::DCL.ECSComponents.AvatarAnchorPointType.AaptPosition) {
 206        output.WriteRawTag(16);
 207        output.WriteEnum((int) AnchorPointId);
 208      }
 209      if (_unknownFields != null) {
 210        _unknownFields.WriteTo(ref output);
 211      }
 212    }
 213    #endif
 214
 215    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 216    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 217    public int CalculateSize() {
 218      int size = 0;
 219      if (HasAvatarId) {
 220        size += 1 + pb::CodedOutputStream.ComputeStringSize(AvatarId);
 221      }
 222      if (AnchorPointId != global::DCL.ECSComponents.AvatarAnchorPointType.AaptPosition) {
 223        size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) AnchorPointId);
 224      }
 225      if (_unknownFields != null) {
 226        size += _unknownFields.CalculateSize();
 227      }
 228      return size;
 229    }
 230
 231    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 232    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 233    public void MergeFrom(PBAvatarAttach other) {
 234      if (other == null) {
 235        return;
 236      }
 237      if (other.HasAvatarId) {
 238        AvatarId = other.AvatarId;
 239      }
 240      if (other.AnchorPointId != global::DCL.ECSComponents.AvatarAnchorPointType.AaptPosition) {
 241        AnchorPointId = other.AnchorPointId;
 242      }
 243      _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 244    }
 245
 246    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 247    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 248    public void MergeFrom(pb::CodedInputStream input) {
 249    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 250      input.ReadRawMessage(this);
 251    #else
 252      uint tag;
 253      while ((tag = input.ReadTag()) != 0) {
 254        switch(tag) {
 255          default:
 256            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
 257            break;
 258          case 10: {
 259            AvatarId = input.ReadString();
 260            break;
 261          }
 262          case 16: {
 263            AnchorPointId = (global::DCL.ECSComponents.AvatarAnchorPointType) input.ReadEnum();
 264            break;
 265          }
 266        }
 267      }
 268    #endif
 269    }
 270
 271    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 272    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 273    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 274    void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
 275      uint tag;
 276      while ((tag = input.ReadTag()) != 0) {
 277        switch(tag) {
 278          default:
 279            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
 280            break;
 281          case 10: {
 282            AvatarId = input.ReadString();
 283            break;
 284          }
 285          case 16: {
 286            AnchorPointId = (global::DCL.ECSComponents.AvatarAnchorPointType) input.ReadEnum();
 287            break;
 288          }
 289        }
 290      }
 291    }
 292    #endif
 293
 294  }
 295
 296  #endregion
 297
 298}
 299
 300#endregion Designer generated code