< Summary

Class:Configs.SwarmConfigReflection
Assembly:bamlab.micromissiles
File(s):/github/workspace/Assets/Scripts/Generated/Proto/SwarmConfig.cs
Covered lines:0
Uncovered lines:5
Coverable lines:5
Total lines:298
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
SwarmConfigReflection()0%2100%

File(s)

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

#LineLine coverage
 1// <auto-generated>
 2//     Generated by the protocol buffer compiler.  DO NOT EDIT!
 3//     source: Configs/swarm_config.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 Configs {
 13
 14  /// <summary>Holder for reflection information generated from Configs/swarm_config.proto</summary>
 15  public static partial class SwarmConfigReflection {
 16
 17    #region Descriptor
 18    /// <summary>File descriptor for Configs/swarm_config.proto</summary>
 19    public static pbr::FileDescriptor Descriptor {
 020      get { return descriptor; }
 21    }
 22    private static pbr::FileDescriptor descriptor;
 23
 024    static SwarmConfigReflection() {
 025      byte[] descriptorData = global::System.Convert.FromBase64String(
 26          string.Concat(
 27            "ChpDb25maWdzL3N3YXJtX2NvbmZpZy5wcm90bxIHY29uZmlncxoaQ29uZmln",
 28            "cy9hZ2VudF9jb25maWcucHJvdG8iTQoLU3dhcm1Db25maWcSEgoKbnVtX2Fn",
 29            "ZW50cxgBIAEoDRIqCgxhZ2VudF9jb25maWcYAiABKAsyFC5jb25maWdzLkFn",
 30            "ZW50Q29uZmlnYgZwcm90bzM="));
 031      descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
 32          new pbr::FileDescriptor[] { global::Configs.AgentConfigReflection.Descriptor, },
 33          new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
 34            new pbr::GeneratedClrTypeInfo(typeof(global::Configs.SwarmConfig), global::Configs.SwarmConfig.Parser, new[]
 35          }));
 036    }
 37    #endregion
 38
 39  }
 40  #region Messages
 41  /// <summary>
 42  /// Swarm configuration.
 43  /// </summary>
 44  [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
 45  public sealed partial class SwarmConfig : pb::IMessage<SwarmConfig>
 46  #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 47      , pb::IBufferMessage
 48  #endif
 49  {
 50    private static readonly pb::MessageParser<SwarmConfig> _parser = new pb::MessageParser<SwarmConfig>(() => new SwarmC
 51    private pb::UnknownFieldSet _unknownFields;
 52    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 53    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 54    public static pb::MessageParser<SwarmConfig> Parser { get { return _parser; } }
 55
 56    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 57    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 58    public static pbr::MessageDescriptor Descriptor {
 59      get { return global::Configs.SwarmConfigReflection.Descriptor.MessageTypes[0]; }
 60    }
 61
 62    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 63    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 64    pbr::MessageDescriptor pb::IMessage.Descriptor {
 65      get { return Descriptor; }
 66    }
 67
 68    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 69    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 70    public SwarmConfig() {
 71      OnConstruction();
 72    }
 73
 74    partial void OnConstruction();
 75
 76    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 77    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 78    public SwarmConfig(SwarmConfig other) : this() {
 79      numAgents_ = other.numAgents_;
 80      agentConfig_ = other.agentConfig_ != null ? other.agentConfig_.Clone() : null;
 81      _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
 82    }
 83
 84    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 85    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 86    public SwarmConfig Clone() {
 87      return new SwarmConfig(this);
 88    }
 89
 90    /// <summary>Field number for the "num_agents" field.</summary>
 91    public const int NumAgentsFieldNumber = 1;
 92    private uint numAgents_;
 93    /// <summary>
 94    /// Number of agents.
 95    /// </summary>
 96    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 97    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 98    public uint NumAgents {
 99      get { return numAgents_; }
 100      set {
 101        numAgents_ = value;
 102      }
 103    }
 104
 105    /// <summary>Field number for the "agent_config" field.</summary>
 106    public const int AgentConfigFieldNumber = 2;
 107    private global::Configs.AgentConfig agentConfig_;
 108    /// <summary>
 109    /// Agent configuration.
 110    /// </summary>
 111    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 112    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 113    public global::Configs.AgentConfig AgentConfig {
 114      get { return agentConfig_; }
 115      set {
 116        agentConfig_ = value;
 117      }
 118    }
 119
 120    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 121    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 122    public override bool Equals(object other) {
 123      return Equals(other as SwarmConfig);
 124    }
 125
 126    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 127    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 128    public bool Equals(SwarmConfig other) {
 129      if (ReferenceEquals(other, null)) {
 130        return false;
 131      }
 132      if (ReferenceEquals(other, this)) {
 133        return true;
 134      }
 135      if (NumAgents != other.NumAgents) return false;
 136      if (!object.Equals(AgentConfig, other.AgentConfig)) return false;
 137      return Equals(_unknownFields, other._unknownFields);
 138    }
 139
 140    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 141    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 142    public override int GetHashCode() {
 143      int hash = 1;
 144      if (NumAgents != 0) hash ^= NumAgents.GetHashCode();
 145      if (agentConfig_ != null) hash ^= AgentConfig.GetHashCode();
 146      if (_unknownFields != null) {
 147        hash ^= _unknownFields.GetHashCode();
 148      }
 149      return hash;
 150    }
 151
 152    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 153    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 154    public override string ToString() {
 155      return pb::JsonFormatter.ToDiagnosticString(this);
 156    }
 157
 158    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 159    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 160    public void WriteTo(pb::CodedOutputStream output) {
 161    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 162      output.WriteRawMessage(this);
 163    #else
 164      if (NumAgents != 0) {
 165        output.WriteRawTag(8);
 166        output.WriteUInt32(NumAgents);
 167      }
 168      if (agentConfig_ != null) {
 169        output.WriteRawTag(18);
 170        output.WriteMessage(AgentConfig);
 171      }
 172      if (_unknownFields != null) {
 173        _unknownFields.WriteTo(output);
 174      }
 175    #endif
 176    }
 177
 178    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 179    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 180    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 181    void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
 182      if (NumAgents != 0) {
 183        output.WriteRawTag(8);
 184        output.WriteUInt32(NumAgents);
 185      }
 186      if (agentConfig_ != null) {
 187        output.WriteRawTag(18);
 188        output.WriteMessage(AgentConfig);
 189      }
 190      if (_unknownFields != null) {
 191        _unknownFields.WriteTo(ref output);
 192      }
 193    }
 194    #endif
 195
 196    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 197    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 198    public int CalculateSize() {
 199      int size = 0;
 200      if (NumAgents != 0) {
 201        size += 1 + pb::CodedOutputStream.ComputeUInt32Size(NumAgents);
 202      }
 203      if (agentConfig_ != null) {
 204        size += 1 + pb::CodedOutputStream.ComputeMessageSize(AgentConfig);
 205      }
 206      if (_unknownFields != null) {
 207        size += _unknownFields.CalculateSize();
 208      }
 209      return size;
 210    }
 211
 212    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 213    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 214    public void MergeFrom(SwarmConfig other) {
 215      if (other == null) {
 216        return;
 217      }
 218      if (other.NumAgents != 0) {
 219        NumAgents = other.NumAgents;
 220      }
 221      if (other.agentConfig_ != null) {
 222        if (agentConfig_ == null) {
 223          AgentConfig = new global::Configs.AgentConfig();
 224        }
 225        AgentConfig.MergeFrom(other.AgentConfig);
 226      }
 227      _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 228    }
 229
 230    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 231    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 232    public void MergeFrom(pb::CodedInputStream input) {
 233    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 234      input.ReadRawMessage(this);
 235    #else
 236      uint tag;
 237      while ((tag = input.ReadTag()) != 0) {
 238      if ((tag & 7) == 4) {
 239        // Abort on any end group tag.
 240        return;
 241      }
 242      switch(tag) {
 243          default:
 244            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
 245            break;
 246          case 8: {
 247            NumAgents = input.ReadUInt32();
 248            break;
 249          }
 250          case 18: {
 251            if (agentConfig_ == null) {
 252              AgentConfig = new global::Configs.AgentConfig();
 253            }
 254            input.ReadMessage(AgentConfig);
 255            break;
 256          }
 257        }
 258      }
 259    #endif
 260    }
 261
 262    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 263    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 264    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 265    void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
 266      uint tag;
 267      while ((tag = input.ReadTag()) != 0) {
 268      if ((tag & 7) == 4) {
 269        // Abort on any end group tag.
 270        return;
 271      }
 272      switch(tag) {
 273          default:
 274            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
 275            break;
 276          case 8: {
 277            NumAgents = input.ReadUInt32();
 278            break;
 279          }
 280          case 18: {
 281            if (agentConfig_ == null) {
 282              AgentConfig = new global::Configs.AgentConfig();
 283            }
 284            input.ReadMessage(AgentConfig);
 285            break;
 286          }
 287        }
 288      }
 289    }
 290    #endif
 291
 292  }
 293
 294  #endregion
 295
 296}
 297
 298#endregion Designer generated code