< Summary

Class:DCL.ECSComponents.OnPointerUpReflection
Assembly:DCL.Components.ProtobufData
File(s):/tmp/workspace/unity-renderer/unity-renderer/Assets/DCLPlugins/ECS7/ProtocolBuffers/Generated/PBFiles/OnPointerUp.cs
Covered lines:0
Uncovered lines:4
Coverable lines:4
Total lines:259
Line coverage:0% (0 of 4)
Covered branches:0
Total branches:0

Metrics

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

File(s)

/tmp/workspace/unity-renderer/unity-renderer/Assets/DCLPlugins/ECS7/ProtocolBuffers/Generated/PBFiles/OnPointerUp.cs

#LineLine coverage
 1// <auto-generated>
 2//     Generated by the protocol buffer compiler.  DO NOT EDIT!
 3//     source: OnPointerUp.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 OnPointerUp.proto</summary>
 15  public static partial class OnPointerUpReflection {
 16
 17    #region Descriptor
 18    /// <summary>File descriptor for OnPointerUp.proto</summary>
 19    public static pbr::FileDescriptor Descriptor {
 020      get { return descriptor; }
 21    }
 22    private static pbr::FileDescriptor descriptor;
 23
 24    static OnPointerUpReflection() {
 025      byte[] descriptorData = global::System.Convert.FromBase64String(
 26          string.Concat(
 27            "ChFPblBvaW50ZXJVcC5wcm90bxIQZGVjZW50cmFsYW5kLmVjcxoZY29tbW9u",
 28            "L0FjdGlvbkJ1dHRvbi5wcm90byJrCg1QQk9uUG9pbnRlclVwEh0KBmJ1dHRv",
 29            "bhgBIAEoDjINLkFjdGlvbkJ1dHRvbhISCgpob3Zlcl90ZXh0GAIgASgJEhAK",
 30            "CGRpc3RhbmNlGAMgASgCEhUKDXNob3dfZmVlZGJhY2sYBCABKAhCFKoCEURD",
 31            "TC5FQ1NDb21wb25lbnRzYgZwcm90bzM="));
 032      descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
 33          new pbr::FileDescriptor[] { global::ActionButtonReflection.Descriptor, },
 34          new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
 35            new pbr::GeneratedClrTypeInfo(typeof(global::DCL.ECSComponents.PBOnPointerUp), global::DCL.ECSComponents.PBO
 36          }));
 037    }
 38    #endregion
 39
 40  }
 41  #region Messages
 42  public sealed partial class PBOnPointerUp : pb::IMessage<PBOnPointerUp> {
 43    private static readonly pb::MessageParser<PBOnPointerUp> _parser = new pb::MessageParser<PBOnPointerUp>(() => new PB
 44    private pb::UnknownFieldSet _unknownFields;
 45    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 46    public static pb::MessageParser<PBOnPointerUp> Parser { get { return _parser; } }
 47
 48    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 49    public static pbr::MessageDescriptor Descriptor {
 50      get { return global::DCL.ECSComponents.OnPointerUpReflection.Descriptor.MessageTypes[0]; }
 51    }
 52
 53    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 54    pbr::MessageDescriptor pb::IMessage.Descriptor {
 55      get { return Descriptor; }
 56    }
 57
 58    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 59    public PBOnPointerUp() {
 60      OnConstruction();
 61    }
 62
 63    partial void OnConstruction();
 64
 65    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 66    public PBOnPointerUp(PBOnPointerUp other) : this() {
 67      button_ = other.button_;
 68      hoverText_ = other.hoverText_;
 69      distance_ = other.distance_;
 70      showFeedback_ = other.showFeedback_;
 71      _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
 72    }
 73
 74    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 75    public PBOnPointerUp Clone() {
 76      return new PBOnPointerUp(this);
 77    }
 78
 79    /// <summary>Field number for the "button" field.</summary>
 80    public const int ButtonFieldNumber = 1;
 81    private global::ActionButton button_ = global::ActionButton.Pointer;
 82    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 83    public global::ActionButton Button {
 84      get { return button_; }
 85      set {
 86        button_ = value;
 87      }
 88    }
 89
 90    /// <summary>Field number for the "hover_text" field.</summary>
 91    public const int HoverTextFieldNumber = 2;
 92    private string hoverText_ = "";
 93    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 94    public string HoverText {
 95      get { return hoverText_; }
 96      set {
 97        hoverText_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
 98      }
 99    }
 100
 101    /// <summary>Field number for the "distance" field.</summary>
 102    public const int DistanceFieldNumber = 3;
 103    private float distance_;
 104    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 105    public float Distance {
 106      get { return distance_; }
 107      set {
 108        distance_ = value;
 109      }
 110    }
 111
 112    /// <summary>Field number for the "show_feedback" field.</summary>
 113    public const int ShowFeedbackFieldNumber = 4;
 114    private bool showFeedback_;
 115    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 116    public bool ShowFeedback {
 117      get { return showFeedback_; }
 118      set {
 119        showFeedback_ = value;
 120      }
 121    }
 122
 123    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 124    public override bool Equals(object other) {
 125      return Equals(other as PBOnPointerUp);
 126    }
 127
 128    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 129    public bool Equals(PBOnPointerUp other) {
 130      if (ReferenceEquals(other, null)) {
 131        return false;
 132      }
 133      if (ReferenceEquals(other, this)) {
 134        return true;
 135      }
 136      if (Button != other.Button) return false;
 137      if (HoverText != other.HoverText) return false;
 138      if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Distance, other.Distance)) return false;
 139      if (ShowFeedback != other.ShowFeedback) return false;
 140      return Equals(_unknownFields, other._unknownFields);
 141    }
 142
 143    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 144    public override int GetHashCode() {
 145      int hash = 1;
 146      if (Button != global::ActionButton.Pointer) hash ^= Button.GetHashCode();
 147      if (HoverText.Length != 0) hash ^= HoverText.GetHashCode();
 148      if (Distance != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Distance);
 149      if (ShowFeedback != false) hash ^= ShowFeedback.GetHashCode();
 150      if (_unknownFields != null) {
 151        hash ^= _unknownFields.GetHashCode();
 152      }
 153      return hash;
 154    }
 155
 156    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 157    public override string ToString() {
 158      return pb::JsonFormatter.ToDiagnosticString(this);
 159    }
 160
 161    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 162    public void WriteTo(pb::CodedOutputStream output) {
 163      if (Button != global::ActionButton.Pointer) {
 164        output.WriteRawTag(8);
 165        output.WriteEnum((int) Button);
 166      }
 167      if (HoverText.Length != 0) {
 168        output.WriteRawTag(18);
 169        output.WriteString(HoverText);
 170      }
 171      if (Distance != 0F) {
 172        output.WriteRawTag(29);
 173        output.WriteFloat(Distance);
 174      }
 175      if (ShowFeedback != false) {
 176        output.WriteRawTag(32);
 177        output.WriteBool(ShowFeedback);
 178      }
 179      if (_unknownFields != null) {
 180        _unknownFields.WriteTo(output);
 181      }
 182    }
 183
 184    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 185    public int CalculateSize() {
 186      int size = 0;
 187      if (Button != global::ActionButton.Pointer) {
 188        size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Button);
 189      }
 190      if (HoverText.Length != 0) {
 191        size += 1 + pb::CodedOutputStream.ComputeStringSize(HoverText);
 192      }
 193      if (Distance != 0F) {
 194        size += 1 + 4;
 195      }
 196      if (ShowFeedback != false) {
 197        size += 1 + 1;
 198      }
 199      if (_unknownFields != null) {
 200        size += _unknownFields.CalculateSize();
 201      }
 202      return size;
 203    }
 204
 205    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 206    public void MergeFrom(PBOnPointerUp other) {
 207      if (other == null) {
 208        return;
 209      }
 210      if (other.Button != global::ActionButton.Pointer) {
 211        Button = other.Button;
 212      }
 213      if (other.HoverText.Length != 0) {
 214        HoverText = other.HoverText;
 215      }
 216      if (other.Distance != 0F) {
 217        Distance = other.Distance;
 218      }
 219      if (other.ShowFeedback != false) {
 220        ShowFeedback = other.ShowFeedback;
 221      }
 222      _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 223    }
 224
 225    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 226    public void MergeFrom(pb::CodedInputStream input) {
 227      uint tag;
 228      while ((tag = input.ReadTag()) != 0) {
 229        switch(tag) {
 230          default:
 231            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
 232            break;
 233          case 8: {
 234            Button = (global::ActionButton) input.ReadEnum();
 235            break;
 236          }
 237          case 18: {
 238            HoverText = input.ReadString();
 239            break;
 240          }
 241          case 29: {
 242            Distance = input.ReadFloat();
 243            break;
 244          }
 245          case 32: {
 246            ShowFeedback = input.ReadBool();
 247            break;
 248          }
 249        }
 250      }
 251    }
 252
 253  }
 254
 255  #endregion
 256
 257}
 258
 259#endregion Designer generated code