< Summary

Class:DCL.ECSComponents.PBUiInputResult
Assembly:Decentraland.Protocol.GeneratedCode
File(s):/tmp/workspace/unity-renderer/unity-renderer/Assets/Scripts/MainScripts/DCL/DecentralandProtocol/UiInputResult.gen.cs
Covered lines:11
Uncovered lines:60
Coverable lines:71
Total lines:290
Line coverage:15.4% (11 of 71)
Covered branches:0
Total branches:0
Covered methods:6
Total methods:21
Method coverage:28.5% (6 of 21)

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity NPath complexity Sequence coverage
PBUiInputResult()0%110100%
get_Descriptor()0%2100%
PBUiInputResult(...)0%2100%
Clone()0%2100%
PBUiInputResult()0%110100%
ClearIsSubmit()0%2100%
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/Scripts/MainScripts/DCL/DecentralandProtocol/UiInputResult.gen.cs

#LineLine coverage
 1// <auto-generated>
 2//     Generated by the protocol buffer compiler.  DO NOT EDIT!
 3//     source: decentraland/sdk/components/ui_input_result.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/ui_input_result.proto</summa
 15  public static partial class UiInputResultReflection {
 16
 17    #region Descriptor
 18    /// <summary>File descriptor for decentraland/sdk/components/ui_input_result.proto</summary>
 19    public static pbr::FileDescriptor Descriptor {
 20      get { return descriptor; }
 21    }
 22    private static pbr::FileDescriptor descriptor;
 23
 24    static UiInputResultReflection() {
 25      byte[] descriptorData = global::System.Convert.FromBase64String(
 26          string.Concat(
 27            "CjFkZWNlbnRyYWxhbmQvc2RrL2NvbXBvbmVudHMvdWlfaW5wdXRfcmVzdWx0",
 28            "LnByb3RvEhtkZWNlbnRyYWxhbmQuc2RrLmNvbXBvbmVudHMiRgoPUEJVaUlu",
 29            "cHV0UmVzdWx0Eg0KBXZhbHVlGAEgASgJEhYKCWlzX3N1Ym1pdBgCIAEoCEgA",
 30            "iAEBQgwKCl9pc19zdWJtaXRCFKoCEURDTC5FQ1NDb21wb25lbnRzYgZwcm90",
 31            "bzM="));
 32      descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
 33          new pbr::FileDescriptor[] { },
 34          new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
 35            new pbr::GeneratedClrTypeInfo(typeof(global::DCL.ECSComponents.PBUiInputResult), global::DCL.ECSComponents.P
 36          }));
 37    }
 38    #endregion
 39
 40  }
 41  #region Messages
 42  public sealed partial class PBUiInputResult : pb::IMessage<PBUiInputResult>
 43  #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 44      , pb::IBufferMessage
 45  #endif
 46  {
 147    private static readonly pb::MessageParser<PBUiInputResult> _parser = new pb::MessageParser<PBUiInputResult>(() => ne
 48    private pb::UnknownFieldSet _unknownFields;
 49    private int _hasBits0;
 50    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 51    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 052    public static pb::MessageParser<PBUiInputResult> Parser { get { return _parser; } }
 53
 54    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 55    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 56    public static pbr::MessageDescriptor Descriptor {
 057      get { return global::DCL.ECSComponents.UiInputResultReflection.Descriptor.MessageTypes[0]; }
 58    }
 59
 60    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 61    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 62    pbr::MessageDescriptor pb::IMessage.Descriptor {
 063      get { return Descriptor; }
 64    }
 65
 66    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 67    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 1768    public PBUiInputResult() {
 69      OnConstruction();
 1770    }
 71
 72    partial void OnConstruction();
 73
 74    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 75    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 076    public PBUiInputResult(PBUiInputResult other) : this() {
 077      _hasBits0 = other._hasBits0;
 078      value_ = other.value_;
 079      isSubmit_ = other.isSubmit_;
 080      _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
 081    }
 82
 83    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 84    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 85    public PBUiInputResult Clone() {
 086      return new PBUiInputResult(this);
 87    }
 88
 89    /// <summary>Field number for the "value" field.</summary>
 90    public const int ValueFieldNumber = 1;
 1791    private string value_ = "";
 92    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 93    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 94    public string Value {
 195      get { return value_; }
 96      set {
 197        value_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
 198      }
 99    }
 100
 101    /// <summary>Field number for the "is_submit" field.</summary>
 102    public const int IsSubmitFieldNumber = 2;
 103    private bool isSubmit_;
 104    /// <summary>
 105    /// default: false
 106    /// </summary>
 107    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 108    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 109    public bool IsSubmit {
 2110      get { if ((_hasBits0 & 1) != 0) { return isSubmit_; } else { return false; } }
 111      set {
 1112        _hasBits0 |= 1;
 1113        isSubmit_ = value;
 1114      }
 115    }
 116    /// <summary>Gets whether the "is_submit" field is set</summary>
 117    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 118    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 119    public bool HasIsSubmit {
 0120      get { return (_hasBits0 & 1) != 0; }
 121    }
 122    /// <summary>Clears the value of the "is_submit" field</summary>
 123    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 124    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 125    public void ClearIsSubmit() {
 0126      _hasBits0 &= ~1;
 0127    }
 128
 129    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 130    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 131    public override bool Equals(object other) {
 0132      return Equals(other as PBUiInputResult);
 133    }
 134
 135    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 136    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 137    public bool Equals(PBUiInputResult other) {
 0138      if (ReferenceEquals(other, null)) {
 0139        return false;
 140      }
 0141      if (ReferenceEquals(other, this)) {
 0142        return true;
 143      }
 0144      if (Value != other.Value) return false;
 0145      if (IsSubmit != other.IsSubmit) return false;
 0146      return Equals(_unknownFields, other._unknownFields);
 147    }
 148
 149    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 150    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 151    public override int GetHashCode() {
 0152      int hash = 1;
 0153      if (Value.Length != 0) hash ^= Value.GetHashCode();
 0154      if (HasIsSubmit) hash ^= IsSubmit.GetHashCode();
 0155      if (_unknownFields != null) {
 0156        hash ^= _unknownFields.GetHashCode();
 157      }
 0158      return hash;
 159    }
 160
 161    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 162    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 163    public override string ToString() {
 0164      return pb::JsonFormatter.ToDiagnosticString(this);
 165    }
 166
 167    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 168    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 169    public void WriteTo(pb::CodedOutputStream output) {
 170    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 171      output.WriteRawMessage(this);
 172    #else
 0173      if (Value.Length != 0) {
 0174        output.WriteRawTag(10);
 0175        output.WriteString(Value);
 176      }
 0177      if (HasIsSubmit) {
 0178        output.WriteRawTag(16);
 0179        output.WriteBool(IsSubmit);
 180      }
 0181      if (_unknownFields != null) {
 0182        _unknownFields.WriteTo(output);
 183      }
 184    #endif
 0185    }
 186
 187    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 188    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 189    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 190    void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
 191      if (Value.Length != 0) {
 192        output.WriteRawTag(10);
 193        output.WriteString(Value);
 194      }
 195      if (HasIsSubmit) {
 196        output.WriteRawTag(16);
 197        output.WriteBool(IsSubmit);
 198      }
 199      if (_unknownFields != null) {
 200        _unknownFields.WriteTo(ref output);
 201      }
 202    }
 203    #endif
 204
 205    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 206    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 207    public int CalculateSize() {
 0208      int size = 0;
 0209      if (Value.Length != 0) {
 0210        size += 1 + pb::CodedOutputStream.ComputeStringSize(Value);
 211      }
 0212      if (HasIsSubmit) {
 0213        size += 1 + 1;
 214      }
 0215      if (_unknownFields != null) {
 0216        size += _unknownFields.CalculateSize();
 217      }
 0218      return size;
 219    }
 220
 221    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 222    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 223    public void MergeFrom(PBUiInputResult other) {
 0224      if (other == null) {
 0225        return;
 226      }
 0227      if (other.Value.Length != 0) {
 0228        Value = other.Value;
 229      }
 0230      if (other.HasIsSubmit) {
 0231        IsSubmit = other.IsSubmit;
 232      }
 0233      _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 0234    }
 235
 236    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 237    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 238    public void MergeFrom(pb::CodedInputStream input) {
 239    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 240      input.ReadRawMessage(this);
 241    #else
 242      uint tag;
 0243      while ((tag = input.ReadTag()) != 0) {
 244        switch(tag) {
 245          default:
 0246            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
 0247            break;
 248          case 10: {
 0249            Value = input.ReadString();
 0250            break;
 251          }
 252          case 16: {
 0253            IsSubmit = input.ReadBool();
 254            break;
 255          }
 256        }
 257      }
 258    #endif
 0259    }
 260
 261    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 262    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 263    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 264    void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
 265      uint tag;
 266      while ((tag = input.ReadTag()) != 0) {
 267        switch(tag) {
 268          default:
 269            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
 270            break;
 271          case 10: {
 272            Value = input.ReadString();
 273            break;
 274          }
 275          case 16: {
 276            IsSubmit = input.ReadBool();
 277            break;
 278          }
 279        }
 280      }
 281    }
 282    #endif
 283
 284  }
 285
 286  #endregion
 287
 288}
 289
 290#endregion Designer generated code