< Summary

Class:Plugin.Status
Assembly:bamlab.micromissiles
File(s):/github/workspace/Assets/Scripts/Generated/Proto/Status.cs
Covered lines:0
Uncovered lines:106
Coverable lines:106
Total lines:323
Line coverage:0% (0 of 106)
Covered branches:0
Total branches:0
Covered methods:0
Total methods:21
Method coverage:0% (0 of 21)

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity NPath complexity Sequence coverage
Status()0%2100%
get_Descriptor()0%2100%
Status(...)0%2100%
Clone()0%2100%
Status()0%2100%
Equals(...)0%2100%
Equals(...)0%30500%
GetHashCode()0%20400%
ToString()0%2100%
WriteTo(...)0%2100%
InternalWriteTo(...)0%20400%
CalculateSize()0%20400%
MergeFrom(...)0%20400%
MergeFrom(...)0%2100%
InternalMergeFrom(...)0%30500%

File(s)

/github/workspace/Assets/Scripts/Generated/Proto/Status.cs

#LineLine coverage
 1// <auto-generated>
 2//     Generated by the protocol buffer compiler.  DO NOT EDIT!
 3//     source: Plugin/status.proto
 4// </auto-generated>
 5#pragma warning disable 1591, 0612, 3021, 8981
 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 Plugin {
 13
 14  /// <summary>Holder for reflection information generated from Plugin/status.proto</summary>
 15  public static partial class StatusReflection {
 16
 17    #region Descriptor
 18    /// <summary>File descriptor for Plugin/status.proto</summary>
 19    public static pbr::FileDescriptor Descriptor {
 20      get { return descriptor; }
 21    }
 22    private static pbr::FileDescriptor descriptor;
 23
 24    static StatusReflection() {
 25      byte[] descriptorData = global::System.Convert.FromBase64String(
 26          string.Concat(
 27            "ChNQbHVnaW4vc3RhdHVzLnByb3RvEgZwbHVnaW4iOwoGU3RhdHVzEiAKBGNv",
 28            "ZGUYASABKA4yEi5wbHVnaW4uU3RhdHVzQ29kZRIPCgdtZXNzYWdlGAIgASgJ",
 29            "KrQDCgpTdGF0dXNDb2RlEg0KCVNUQVRVU19PSxAAEhQKEFNUQVRVU19DQU5D",
 30            "RUxMRUQQARISCg5TVEFUVVNfVU5LTk9XThACEhsKF1NUQVRVU19JTlZBTElE",
 31            "X0FSR1VNRU5UEAMSHAoYU1RBVFVTX0RFQURMSU5FX0VYQ0VFREVEEAQSFAoQ",
 32            "U1RBVFVTX05PVF9GT1VORBAFEhkKFVNUQVRVU19BTFJFQURZX0VYSVNUUxAG",
 33            "EhwKGFNUQVRVU19QRVJNSVNTSU9OX0RFTklFRBAHEhoKFlNUQVRVU19VTkFV",
 34            "VEhFTlRJQ0FURUQQCBIdChlTVEFUVVNfUkVTT1VSQ0VfRVhIQVVTVEVEEAkS",
 35            "HgoaU1RBVFVTX0ZBSUxFRF9QUkVDT05ESVRJT04QChISCg5TVEFUVVNfQUJP",
 36            "UlRFRBALEhcKE1NUQVRVU19PVVRfT0ZfUkFOR0UQDBIYChRTVEFUVVNfVU5J",
 37            "TVBMRU1FTlRFRBANEhMKD1NUQVRVU19JTlRFUk5BTBAOEhYKElNUQVRVU19V",
 38            "TkFWQUlMQUJMRRAPEhQKEFNUQVRVU19EQVRBX0xPU1MQEGIGcHJvdG8z"));
 39      descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
 40          new pbr::FileDescriptor[] { },
 41          new pbr::GeneratedClrTypeInfo(new[] {typeof(global::Plugin.StatusCode), }, null, new pbr::GeneratedClrTypeInfo
 42            new pbr::GeneratedClrTypeInfo(typeof(global::Plugin.Status), global::Plugin.Status.Parser, new[]{ "Code", "M
 43          }));
 44    }
 45    #endregion
 46
 47  }
 48  #region Enums
 49  /// <summary>
 50  /// Status enumeration.
 51  /// </summary>
 52  public enum StatusCode {
 53    [pbr::OriginalName("STATUS_OK")] StatusOk = 0,
 54    [pbr::OriginalName("STATUS_CANCELLED")] StatusCancelled = 1,
 55    [pbr::OriginalName("STATUS_UNKNOWN")] StatusUnknown = 2,
 56    [pbr::OriginalName("STATUS_INVALID_ARGUMENT")] StatusInvalidArgument = 3,
 57    [pbr::OriginalName("STATUS_DEADLINE_EXCEEDED")] StatusDeadlineExceeded = 4,
 58    [pbr::OriginalName("STATUS_NOT_FOUND")] StatusNotFound = 5,
 59    [pbr::OriginalName("STATUS_ALREADY_EXISTS")] StatusAlreadyExists = 6,
 60    [pbr::OriginalName("STATUS_PERMISSION_DENIED")] StatusPermissionDenied = 7,
 61    [pbr::OriginalName("STATUS_UNAUTHENTICATED")] StatusUnauthenticated = 8,
 62    [pbr::OriginalName("STATUS_RESOURCE_EXHAUSTED")] StatusResourceExhausted = 9,
 63    [pbr::OriginalName("STATUS_FAILED_PRECONDITION")] StatusFailedPrecondition = 10,
 64    [pbr::OriginalName("STATUS_ABORTED")] StatusAborted = 11,
 65    [pbr::OriginalName("STATUS_OUT_OF_RANGE")] StatusOutOfRange = 12,
 66    [pbr::OriginalName("STATUS_UNIMPLEMENTED")] StatusUnimplemented = 13,
 67    [pbr::OriginalName("STATUS_INTERNAL")] StatusInternal = 14,
 68    [pbr::OriginalName("STATUS_UNAVAILABLE")] StatusUnavailable = 15,
 69    [pbr::OriginalName("STATUS_DATA_LOSS")] StatusDataLoss = 16,
 70  }
 71
 72  #endregion
 73
 74  #region Messages
 75  /// <summary>
 76  /// Status.
 77  /// </summary>
 78  [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
 79  public sealed partial class Status : pb::IMessage<Status>
 80  #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 81      , pb::IBufferMessage
 82  #endif
 83  {
 084    private static readonly pb::MessageParser<Status> _parser = new pb::MessageParser<Status>(() => new Status());
 85    private pb::UnknownFieldSet _unknownFields;
 86    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 87    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 088    public static pb::MessageParser<Status> Parser { get { return _parser; } }
 89
 90    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 91    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 92    public static pbr::MessageDescriptor Descriptor {
 093      get { return global::Plugin.StatusReflection.Descriptor.MessageTypes[0]; }
 94    }
 95
 96    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 97    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 98    pbr::MessageDescriptor pb::IMessage.Descriptor {
 099      get { return Descriptor; }
 100    }
 101
 102    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 103    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 0104    public Status() {
 105      OnConstruction();
 0106    }
 107
 108    partial void OnConstruction();
 109
 110    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 111    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 0112    public Status(Status other) : this() {
 0113      code_ = other.code_;
 0114      message_ = other.message_;
 0115      _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
 0116    }
 117
 118    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 119    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 0120    public Status Clone() {
 0121      return new Status(this);
 0122    }
 123
 124    /// <summary>Field number for the "code" field.</summary>
 125    public const int CodeFieldNumber = 1;
 0126    private global::Plugin.StatusCode code_ = global::Plugin.StatusCode.StatusOk;
 127    /// <summary>
 128    /// Status code.
 129    /// </summary>
 130    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 131    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 132    public global::Plugin.StatusCode Code {
 0133      get { return code_; }
 0134      set {
 0135        code_ = value;
 0136      }
 137    }
 138
 139    /// <summary>Field number for the "message" field.</summary>
 140    public const int MessageFieldNumber = 2;
 0141    private string message_ = "";
 142    /// <summary>
 143    /// Status message.
 144    /// </summary>
 145    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 146    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 147    public string Message {
 0148      get { return message_; }
 0149      set {
 0150        message_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
 0151      }
 152    }
 153
 154    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 155    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 0156    public override bool Equals(object other) {
 0157      return Equals(other as Status);
 0158    }
 159
 160    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 161    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 0162    public bool Equals(Status other) {
 0163      if (ReferenceEquals(other, null)) {
 0164        return false;
 165      }
 0166      if (ReferenceEquals(other, this)) {
 0167        return true;
 168      }
 0169      if (Code != other.Code) return false;
 0170      if (Message != other.Message) return false;
 0171      return Equals(_unknownFields, other._unknownFields);
 0172    }
 173
 174    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 175    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 0176    public override int GetHashCode() {
 0177      int hash = 1;
 0178      if (Code != global::Plugin.StatusCode.StatusOk) hash ^= Code.GetHashCode();
 0179      if (Message.Length != 0) hash ^= Message.GetHashCode();
 0180      if (_unknownFields != null) {
 0181        hash ^= _unknownFields.GetHashCode();
 0182      }
 0183      return hash;
 0184    }
 185
 186    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 187    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 0188    public override string ToString() {
 0189      return pb::JsonFormatter.ToDiagnosticString(this);
 0190    }
 191
 192    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 193    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 0194    public void WriteTo(pb::CodedOutputStream output) {
 195    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 0196      output.WriteRawMessage(this);
 197    #else
 198      if (Code != global::Plugin.StatusCode.StatusOk) {
 199        output.WriteRawTag(8);
 200        output.WriteEnum((int) Code);
 201      }
 202      if (Message.Length != 0) {
 203        output.WriteRawTag(18);
 204        output.WriteString(Message);
 205      }
 206      if (_unknownFields != null) {
 207        _unknownFields.WriteTo(output);
 208      }
 209    #endif
 0210    }
 211
 212    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 213    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 214    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 0215    void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
 0216      if (Code != global::Plugin.StatusCode.StatusOk) {
 0217        output.WriteRawTag(8);
 0218        output.WriteEnum((int) Code);
 0219      }
 0220      if (Message.Length != 0) {
 0221        output.WriteRawTag(18);
 0222        output.WriteString(Message);
 0223      }
 0224      if (_unknownFields != null) {
 0225        _unknownFields.WriteTo(ref output);
 0226      }
 0227    }
 228    #endif
 229
 230    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 231    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 0232    public int CalculateSize() {
 0233      int size = 0;
 0234      if (Code != global::Plugin.StatusCode.StatusOk) {
 0235        size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Code);
 0236      }
 0237      if (Message.Length != 0) {
 0238        size += 1 + pb::CodedOutputStream.ComputeStringSize(Message);
 0239      }
 0240      if (_unknownFields != null) {
 0241        size += _unknownFields.CalculateSize();
 0242      }
 0243      return size;
 0244    }
 245
 246    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 247    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 0248    public void MergeFrom(Status other) {
 0249      if (other == null) {
 0250        return;
 251      }
 0252      if (other.Code != global::Plugin.StatusCode.StatusOk) {
 0253        Code = other.Code;
 0254      }
 0255      if (other.Message.Length != 0) {
 0256        Message = other.Message;
 0257      }
 0258      _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 0259    }
 260
 261    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 262    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 0263    public void MergeFrom(pb::CodedInputStream input) {
 264    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 0265      input.ReadRawMessage(this);
 266    #else
 267      uint tag;
 268      while ((tag = input.ReadTag()) != 0) {
 269      if ((tag & 7) == 4) {
 270        // Abort on any end group tag.
 271        return;
 272      }
 273      switch(tag) {
 274          default:
 275            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
 276            break;
 277          case 8: {
 278            Code = (global::Plugin.StatusCode) input.ReadEnum();
 279            break;
 280          }
 281          case 18: {
 282            Message = input.ReadString();
 283            break;
 284          }
 285        }
 286      }
 287    #endif
 0288    }
 289
 290    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 291    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 292    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 0293    void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
 294      uint tag;
 0295      while ((tag = input.ReadTag()) != 0) {
 0296      if ((tag & 7) == 4) {
 297        // Abort on any end group tag.
 0298        return;
 299      }
 0300      switch(tag) {
 301          default:
 0302            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
 0303            break;
 0304          case 8: {
 0305            Code = (global::Plugin.StatusCode) input.ReadEnum();
 0306            break;
 307          }
 0308          case 18: {
 0309            Message = input.ReadString();
 0310            break;
 311          }
 312        }
 0313      }
 0314    }
 315    #endif
 316
 317  }
 318
 319  #endregion
 320
 321}
 322
 323#endregion Designer generated code