< Summary

Class:Micromissiles.StateReflection
Assembly:bamlab.micromissiles
File(s):/github/workspace/Assets/Scripts/Generated/Protobuf/State.cs
Covered lines:0
Uncovered lines:5
Coverable lines:5
Total lines:358
Line coverage:0% (0 of 5)
Covered branches:0
Total branches:0
Covered methods:0
Total methods:2
Method coverage:0% (0 of 2)

Metrics

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

File(s)

/github/workspace/Assets/Scripts/Generated/Protobuf/State.cs

#LineLine coverage
 1// <auto-generated>
 2//     Generated by the protocol buffer compiler.  DO NOT EDIT!
 3//     source: configs/proto/state.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 Micromissiles {
 13
 14  /// <summary>Holder for reflection information generated from configs/proto/state.proto</summary>
 15  public static partial class StateReflection {
 16
 17    #region Descriptor
 18    /// <summary>File descriptor for configs/proto/state.proto</summary>
 19    public static pbr::FileDescriptor Descriptor {
 020      get { return descriptor; }
 21    }
 22    private static pbr::FileDescriptor descriptor;
 23
 024    static StateReflection() {
 025      byte[] descriptorData = global::System.Convert.FromBase64String(
 26          string.Concat(
 27            "Chljb25maWdzL3Byb3RvL3N0YXRlLnByb3RvEg1taWNyb21pc3NpbGVzGh9j",
 28            "b25maWdzL3Byb3RvL2Nvb3JkaW5hdGVzLnByb3RvIrABCgVTdGF0ZRI1Cghw",
 29            "b3NpdGlvbhgBIAEoCzIjLm1pY3JvbWlzc2lsZXMuQ2FydGVzaWFuQ29vcmRp",
 30            "bmF0ZXMSNQoIdmVsb2NpdHkYAiABKAsyIy5taWNyb21pc3NpbGVzLkNhcnRl",
 31            "c2lhbkNvb3JkaW5hdGVzEjkKDGFjY2VsZXJhdGlvbhgDIAEoCzIjLm1pY3Jv",
 32            "bWlzc2lsZXMuQ2FydGVzaWFuQ29vcmRpbmF0ZXNiBnByb3RvMw=="));
 033      descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
 34          new pbr::FileDescriptor[] { global::Micromissiles.CoordinatesReflection.Descriptor, },
 35          new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
 36            new pbr::GeneratedClrTypeInfo(typeof(global::Micromissiles.State), global::Micromissiles.State.Parser, new[]
 37          }));
 038    }
 39    #endregion
 40
 41  }
 42  #region Messages
 43  /// <summary>
 44  /// Agent state.
 45  /// </summary>
 46  [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
 47  public sealed partial class State : pb::IMessage<State>
 48  #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 49      , pb::IBufferMessage
 50  #endif
 51  {
 52    private static readonly pb::MessageParser<State> _parser = new pb::MessageParser<State>(() => new State());
 53    private pb::UnknownFieldSet _unknownFields;
 54    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 55    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 56    public static pb::MessageParser<State> Parser { get { return _parser; } }
 57
 58    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 59    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 60    public static pbr::MessageDescriptor Descriptor {
 61      get { return global::Micromissiles.StateReflection.Descriptor.MessageTypes[0]; }
 62    }
 63
 64    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 65    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 66    pbr::MessageDescriptor pb::IMessage.Descriptor {
 67      get { return Descriptor; }
 68    }
 69
 70    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 71    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 72    public State() {
 73      OnConstruction();
 74    }
 75
 76    partial void OnConstruction();
 77
 78    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 79    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 80    public State(State other) : this() {
 81      position_ = other.position_ != null ? other.position_.Clone() : null;
 82      velocity_ = other.velocity_ != null ? other.velocity_.Clone() : null;
 83      acceleration_ = other.acceleration_ != null ? other.acceleration_.Clone() : null;
 84      _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
 85    }
 86
 87    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 88    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 89    public State Clone() {
 90      return new State(this);
 91    }
 92
 93    /// <summary>Field number for the "position" field.</summary>
 94    public const int PositionFieldNumber = 1;
 95    private global::Micromissiles.CartesianCoordinates position_;
 96    /// <summary>
 97    /// Position in m.
 98    /// </summary>
 99    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 100    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 101    public global::Micromissiles.CartesianCoordinates Position {
 102      get { return position_; }
 103      set {
 104        position_ = value;
 105      }
 106    }
 107
 108    /// <summary>Field number for the "velocity" field.</summary>
 109    public const int VelocityFieldNumber = 2;
 110    private global::Micromissiles.CartesianCoordinates velocity_;
 111    /// <summary>
 112    /// Velocity in m/s.
 113    /// </summary>
 114    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 115    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 116    public global::Micromissiles.CartesianCoordinates Velocity {
 117      get { return velocity_; }
 118      set {
 119        velocity_ = value;
 120      }
 121    }
 122
 123    /// <summary>Field number for the "acceleration" field.</summary>
 124    public const int AccelerationFieldNumber = 3;
 125    private global::Micromissiles.CartesianCoordinates acceleration_;
 126    /// <summary>
 127    /// Acceleration in m/s^2.
 128    /// </summary>
 129    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 130    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 131    public global::Micromissiles.CartesianCoordinates Acceleration {
 132      get { return acceleration_; }
 133      set {
 134        acceleration_ = value;
 135      }
 136    }
 137
 138    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 139    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 140    public override bool Equals(object other) {
 141      return Equals(other as State);
 142    }
 143
 144    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 145    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 146    public bool Equals(State other) {
 147      if (ReferenceEquals(other, null)) {
 148        return false;
 149      }
 150      if (ReferenceEquals(other, this)) {
 151        return true;
 152      }
 153      if (!object.Equals(Position, other.Position)) return false;
 154      if (!object.Equals(Velocity, other.Velocity)) return false;
 155      if (!object.Equals(Acceleration, other.Acceleration)) 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 (position_ != null) hash ^= Position.GetHashCode();
 164      if (velocity_ != null) hash ^= Velocity.GetHashCode();
 165      if (acceleration_ != null) hash ^= Acceleration.GetHashCode();
 166      if (_unknownFields != null) {
 167        hash ^= _unknownFields.GetHashCode();
 168      }
 169      return hash;
 170    }
 171
 172    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 173    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 174    public override string ToString() {
 175      return pb::JsonFormatter.ToDiagnosticString(this);
 176    }
 177
 178    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 179    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 180    public void WriteTo(pb::CodedOutputStream output) {
 181    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 182      output.WriteRawMessage(this);
 183    #else
 184      if (position_ != null) {
 185        output.WriteRawTag(10);
 186        output.WriteMessage(Position);
 187      }
 188      if (velocity_ != null) {
 189        output.WriteRawTag(18);
 190        output.WriteMessage(Velocity);
 191      }
 192      if (acceleration_ != null) {
 193        output.WriteRawTag(26);
 194        output.WriteMessage(Acceleration);
 195      }
 196      if (_unknownFields != null) {
 197        _unknownFields.WriteTo(output);
 198      }
 199    #endif
 200    }
 201
 202    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 203    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 204    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 205    void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
 206      if (position_ != null) {
 207        output.WriteRawTag(10);
 208        output.WriteMessage(Position);
 209      }
 210      if (velocity_ != null) {
 211        output.WriteRawTag(18);
 212        output.WriteMessage(Velocity);
 213      }
 214      if (acceleration_ != null) {
 215        output.WriteRawTag(26);
 216        output.WriteMessage(Acceleration);
 217      }
 218      if (_unknownFields != null) {
 219        _unknownFields.WriteTo(ref output);
 220      }
 221    }
 222    #endif
 223
 224    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 225    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 226    public int CalculateSize() {
 227      int size = 0;
 228      if (position_ != null) {
 229        size += 1 + pb::CodedOutputStream.ComputeMessageSize(Position);
 230      }
 231      if (velocity_ != null) {
 232        size += 1 + pb::CodedOutputStream.ComputeMessageSize(Velocity);
 233      }
 234      if (acceleration_ != null) {
 235        size += 1 + pb::CodedOutputStream.ComputeMessageSize(Acceleration);
 236      }
 237      if (_unknownFields != null) {
 238        size += _unknownFields.CalculateSize();
 239      }
 240      return size;
 241    }
 242
 243    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 244    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 245    public void MergeFrom(State other) {
 246      if (other == null) {
 247        return;
 248      }
 249      if (other.position_ != null) {
 250        if (position_ == null) {
 251          Position = new global::Micromissiles.CartesianCoordinates();
 252        }
 253        Position.MergeFrom(other.Position);
 254      }
 255      if (other.velocity_ != null) {
 256        if (velocity_ == null) {
 257          Velocity = new global::Micromissiles.CartesianCoordinates();
 258        }
 259        Velocity.MergeFrom(other.Velocity);
 260      }
 261      if (other.acceleration_ != null) {
 262        if (acceleration_ == null) {
 263          Acceleration = new global::Micromissiles.CartesianCoordinates();
 264        }
 265        Acceleration.MergeFrom(other.Acceleration);
 266      }
 267      _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 268    }
 269
 270    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 271    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 272    public void MergeFrom(pb::CodedInputStream input) {
 273    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 274      input.ReadRawMessage(this);
 275    #else
 276      uint tag;
 277      while ((tag = input.ReadTag()) != 0) {
 278      if ((tag & 7) == 4) {
 279        // Abort on any end group tag.
 280        return;
 281      }
 282      switch(tag) {
 283          default:
 284            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
 285            break;
 286          case 10: {
 287            if (position_ == null) {
 288              Position = new global::Micromissiles.CartesianCoordinates();
 289            }
 290            input.ReadMessage(Position);
 291            break;
 292          }
 293          case 18: {
 294            if (velocity_ == null) {
 295              Velocity = new global::Micromissiles.CartesianCoordinates();
 296            }
 297            input.ReadMessage(Velocity);
 298            break;
 299          }
 300          case 26: {
 301            if (acceleration_ == null) {
 302              Acceleration = new global::Micromissiles.CartesianCoordinates();
 303            }
 304            input.ReadMessage(Acceleration);
 305            break;
 306          }
 307        }
 308      }
 309    #endif
 310    }
 311
 312    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 313    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 314    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 315    void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
 316      uint tag;
 317      while ((tag = input.ReadTag()) != 0) {
 318      if ((tag & 7) == 4) {
 319        // Abort on any end group tag.
 320        return;
 321      }
 322      switch(tag) {
 323          default:
 324            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
 325            break;
 326          case 10: {
 327            if (position_ == null) {
 328              Position = new global::Micromissiles.CartesianCoordinates();
 329            }
 330            input.ReadMessage(Position);
 331            break;
 332          }
 333          case 18: {
 334            if (velocity_ == null) {
 335              Velocity = new global::Micromissiles.CartesianCoordinates();
 336            }
 337            input.ReadMessage(Velocity);
 338            break;
 339          }
 340          case 26: {
 341            if (acceleration_ == null) {
 342              Acceleration = new global::Micromissiles.CartesianCoordinates();
 343            }
 344            input.ReadMessage(Acceleration);
 345            break;
 346          }
 347        }
 348      }
 349    }
 350    #endif
 351
 352  }
 353
 354  #endregion
 355
 356}
 357
 358#endregion Designer generated code

Methods/Properties

Descriptor()
StateReflection()