< Summary

Class:DCL.ECSComponents.RealmInfoReflection
Assembly:Decentraland.Protocol.GeneratedCode
File(s):/tmp/workspace/unity-renderer/unity-renderer/Assets/Scripts/MainScripts/DCL/DecentralandProtocol/RealmInfo.gen.cs
Covered lines:0
Uncovered lines:4
Coverable lines:4
Total lines:433
Line coverage:0% (0 of 4)
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
RealmInfoReflection()0%2100%

File(s)

/tmp/workspace/unity-renderer/unity-renderer/Assets/Scripts/MainScripts/DCL/DecentralandProtocol/RealmInfo.gen.cs

#LineLine coverage
 1// <auto-generated>
 2//     Generated by the protocol buffer compiler.  DO NOT EDIT!
 3//     source: decentraland/sdk/components/realm_info.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/realm_info.proto</summary>
 15  public static partial class RealmInfoReflection {
 16
 17    #region Descriptor
 18    /// <summary>File descriptor for decentraland/sdk/components/realm_info.proto</summary>
 19    public static pbr::FileDescriptor Descriptor {
 020      get { return descriptor; }
 21    }
 22    private static pbr::FileDescriptor descriptor;
 23
 24    static RealmInfoReflection() {
 025      byte[] descriptorData = global::System.Convert.FromBase64String(
 26          string.Concat(
 27            "CixkZWNlbnRyYWxhbmQvc2RrL2NvbXBvbmVudHMvcmVhbG1faW5mby5wcm90",
 28            "bxIbZGVjZW50cmFsYW5kLnNkay5jb21wb25lbnRzIo4BCgtQQlJlYWxtSW5m",
 29            "bxIQCghiYXNlX3VybBgBIAEoCRISCgpyZWFsbV9uYW1lGAIgASgJEhIKCm5l",
 30            "dHdvcmtfaWQYAyABKAUSFQoNY29tbXNfYWRhcHRlchgEIAEoCRISCgppc19w",
 31            "cmV2aWV3GAUgASgIEhEKBHJvb20YBiABKAlIAIgBAUIHCgVfcm9vbUIUqgIR",
 32            "RENMLkVDU0NvbXBvbmVudHNiBnByb3RvMw=="));
 033      descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
 34          new pbr::FileDescriptor[] { },
 35          new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
 36            new pbr::GeneratedClrTypeInfo(typeof(global::DCL.ECSComponents.PBRealmInfo), global::DCL.ECSComponents.PBRea
 37          }));
 038    }
 39    #endregion
 40
 41  }
 42  #region Messages
 43  public sealed partial class PBRealmInfo : pb::IMessage<PBRealmInfo>
 44  #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 45      , pb::IBufferMessage
 46  #endif
 47  {
 48    private static readonly pb::MessageParser<PBRealmInfo> _parser = new pb::MessageParser<PBRealmInfo>(() => new PBReal
 49    private pb::UnknownFieldSet _unknownFields;
 50    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 51    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 52    public static pb::MessageParser<PBRealmInfo> Parser { get { return _parser; } }
 53
 54    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 55    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 56    public static pbr::MessageDescriptor Descriptor {
 57      get { return global::DCL.ECSComponents.RealmInfoReflection.Descriptor.MessageTypes[0]; }
 58    }
 59
 60    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 61    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 62    pbr::MessageDescriptor pb::IMessage.Descriptor {
 63      get { return Descriptor; }
 64    }
 65
 66    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 67    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 68    public PBRealmInfo() {
 69      OnConstruction();
 70    }
 71
 72    partial void OnConstruction();
 73
 74    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 75    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 76    public PBRealmInfo(PBRealmInfo other) : this() {
 77      baseUrl_ = other.baseUrl_;
 78      realmName_ = other.realmName_;
 79      networkId_ = other.networkId_;
 80      commsAdapter_ = other.commsAdapter_;
 81      isPreview_ = other.isPreview_;
 82      room_ = other.room_;
 83      _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
 84    }
 85
 86    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 87    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 88    public PBRealmInfo Clone() {
 89      return new PBRealmInfo(this);
 90    }
 91
 92    /// <summary>Field number for the "base_url" field.</summary>
 93    public const int BaseUrlFieldNumber = 1;
 94    private string baseUrl_ = "";
 95    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 96    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 97    public string BaseUrl {
 98      get { return baseUrl_; }
 99      set {
 100        baseUrl_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
 101      }
 102    }
 103
 104    /// <summary>Field number for the "realm_name" field.</summary>
 105    public const int RealmNameFieldNumber = 2;
 106    private string realmName_ = "";
 107    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 108    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 109    public string RealmName {
 110      get { return realmName_; }
 111      set {
 112        realmName_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
 113      }
 114    }
 115
 116    /// <summary>Field number for the "network_id" field.</summary>
 117    public const int NetworkIdFieldNumber = 3;
 118    private int networkId_;
 119    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 120    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 121    public int NetworkId {
 122      get { return networkId_; }
 123      set {
 124        networkId_ = value;
 125      }
 126    }
 127
 128    /// <summary>Field number for the "comms_adapter" field.</summary>
 129    public const int CommsAdapterFieldNumber = 4;
 130    private string commsAdapter_ = "";
 131    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 132    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 133    public string CommsAdapter {
 134      get { return commsAdapter_; }
 135      set {
 136        commsAdapter_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
 137      }
 138    }
 139
 140    /// <summary>Field number for the "is_preview" field.</summary>
 141    public const int IsPreviewFieldNumber = 5;
 142    private bool isPreview_;
 143    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 144    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 145    public bool IsPreview {
 146      get { return isPreview_; }
 147      set {
 148        isPreview_ = value;
 149      }
 150    }
 151
 152    /// <summary>Field number for the "room" field.</summary>
 153    public const int RoomFieldNumber = 6;
 154    private string room_;
 155    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 156    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 157    public string Room {
 158      get { return room_ ?? ""; }
 159      set {
 160        room_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
 161      }
 162    }
 163    /// <summary>Gets whether the "room" field is set</summary>
 164    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 165    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 166    public bool HasRoom {
 167      get { return room_ != null; }
 168    }
 169    /// <summary>Clears the value of the "room" field</summary>
 170    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 171    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 172    public void ClearRoom() {
 173      room_ = null;
 174    }
 175
 176    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 177    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 178    public override bool Equals(object other) {
 179      return Equals(other as PBRealmInfo);
 180    }
 181
 182    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 183    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 184    public bool Equals(PBRealmInfo other) {
 185      if (ReferenceEquals(other, null)) {
 186        return false;
 187      }
 188      if (ReferenceEquals(other, this)) {
 189        return true;
 190      }
 191      if (BaseUrl != other.BaseUrl) return false;
 192      if (RealmName != other.RealmName) return false;
 193      if (NetworkId != other.NetworkId) return false;
 194      if (CommsAdapter != other.CommsAdapter) return false;
 195      if (IsPreview != other.IsPreview) return false;
 196      if (Room != other.Room) return false;
 197      return Equals(_unknownFields, other._unknownFields);
 198    }
 199
 200    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 201    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 202    public override int GetHashCode() {
 203      int hash = 1;
 204      if (BaseUrl.Length != 0) hash ^= BaseUrl.GetHashCode();
 205      if (RealmName.Length != 0) hash ^= RealmName.GetHashCode();
 206      if (NetworkId != 0) hash ^= NetworkId.GetHashCode();
 207      if (CommsAdapter.Length != 0) hash ^= CommsAdapter.GetHashCode();
 208      if (IsPreview != false) hash ^= IsPreview.GetHashCode();
 209      if (HasRoom) hash ^= Room.GetHashCode();
 210      if (_unknownFields != null) {
 211        hash ^= _unknownFields.GetHashCode();
 212      }
 213      return hash;
 214    }
 215
 216    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 217    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 218    public override string ToString() {
 219      return pb::JsonFormatter.ToDiagnosticString(this);
 220    }
 221
 222    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 223    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 224    public void WriteTo(pb::CodedOutputStream output) {
 225    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 226      output.WriteRawMessage(this);
 227    #else
 228      if (BaseUrl.Length != 0) {
 229        output.WriteRawTag(10);
 230        output.WriteString(BaseUrl);
 231      }
 232      if (RealmName.Length != 0) {
 233        output.WriteRawTag(18);
 234        output.WriteString(RealmName);
 235      }
 236      if (NetworkId != 0) {
 237        output.WriteRawTag(24);
 238        output.WriteInt32(NetworkId);
 239      }
 240      if (CommsAdapter.Length != 0) {
 241        output.WriteRawTag(34);
 242        output.WriteString(CommsAdapter);
 243      }
 244      if (IsPreview != false) {
 245        output.WriteRawTag(40);
 246        output.WriteBool(IsPreview);
 247      }
 248      if (HasRoom) {
 249        output.WriteRawTag(50);
 250        output.WriteString(Room);
 251      }
 252      if (_unknownFields != null) {
 253        _unknownFields.WriteTo(output);
 254      }
 255    #endif
 256    }
 257
 258    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 259    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 260    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 261    void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
 262      if (BaseUrl.Length != 0) {
 263        output.WriteRawTag(10);
 264        output.WriteString(BaseUrl);
 265      }
 266      if (RealmName.Length != 0) {
 267        output.WriteRawTag(18);
 268        output.WriteString(RealmName);
 269      }
 270      if (NetworkId != 0) {
 271        output.WriteRawTag(24);
 272        output.WriteInt32(NetworkId);
 273      }
 274      if (CommsAdapter.Length != 0) {
 275        output.WriteRawTag(34);
 276        output.WriteString(CommsAdapter);
 277      }
 278      if (IsPreview != false) {
 279        output.WriteRawTag(40);
 280        output.WriteBool(IsPreview);
 281      }
 282      if (HasRoom) {
 283        output.WriteRawTag(50);
 284        output.WriteString(Room);
 285      }
 286      if (_unknownFields != null) {
 287        _unknownFields.WriteTo(ref output);
 288      }
 289    }
 290    #endif
 291
 292    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 293    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 294    public int CalculateSize() {
 295      int size = 0;
 296      if (BaseUrl.Length != 0) {
 297        size += 1 + pb::CodedOutputStream.ComputeStringSize(BaseUrl);
 298      }
 299      if (RealmName.Length != 0) {
 300        size += 1 + pb::CodedOutputStream.ComputeStringSize(RealmName);
 301      }
 302      if (NetworkId != 0) {
 303        size += 1 + pb::CodedOutputStream.ComputeInt32Size(NetworkId);
 304      }
 305      if (CommsAdapter.Length != 0) {
 306        size += 1 + pb::CodedOutputStream.ComputeStringSize(CommsAdapter);
 307      }
 308      if (IsPreview != false) {
 309        size += 1 + 1;
 310      }
 311      if (HasRoom) {
 312        size += 1 + pb::CodedOutputStream.ComputeStringSize(Room);
 313      }
 314      if (_unknownFields != null) {
 315        size += _unknownFields.CalculateSize();
 316      }
 317      return size;
 318    }
 319
 320    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 321    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 322    public void MergeFrom(PBRealmInfo other) {
 323      if (other == null) {
 324        return;
 325      }
 326      if (other.BaseUrl.Length != 0) {
 327        BaseUrl = other.BaseUrl;
 328      }
 329      if (other.RealmName.Length != 0) {
 330        RealmName = other.RealmName;
 331      }
 332      if (other.NetworkId != 0) {
 333        NetworkId = other.NetworkId;
 334      }
 335      if (other.CommsAdapter.Length != 0) {
 336        CommsAdapter = other.CommsAdapter;
 337      }
 338      if (other.IsPreview != false) {
 339        IsPreview = other.IsPreview;
 340      }
 341      if (other.HasRoom) {
 342        Room = other.Room;
 343      }
 344      _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 345    }
 346
 347    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 348    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 349    public void MergeFrom(pb::CodedInputStream input) {
 350    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 351      input.ReadRawMessage(this);
 352    #else
 353      uint tag;
 354      while ((tag = input.ReadTag()) != 0) {
 355        switch(tag) {
 356          default:
 357            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
 358            break;
 359          case 10: {
 360            BaseUrl = input.ReadString();
 361            break;
 362          }
 363          case 18: {
 364            RealmName = input.ReadString();
 365            break;
 366          }
 367          case 24: {
 368            NetworkId = input.ReadInt32();
 369            break;
 370          }
 371          case 34: {
 372            CommsAdapter = input.ReadString();
 373            break;
 374          }
 375          case 40: {
 376            IsPreview = input.ReadBool();
 377            break;
 378          }
 379          case 50: {
 380            Room = input.ReadString();
 381            break;
 382          }
 383        }
 384      }
 385    #endif
 386    }
 387
 388    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 389    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 390    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 391    void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
 392      uint tag;
 393      while ((tag = input.ReadTag()) != 0) {
 394        switch(tag) {
 395          default:
 396            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
 397            break;
 398          case 10: {
 399            BaseUrl = input.ReadString();
 400            break;
 401          }
 402          case 18: {
 403            RealmName = input.ReadString();
 404            break;
 405          }
 406          case 24: {
 407            NetworkId = input.ReadInt32();
 408            break;
 409          }
 410          case 34: {
 411            CommsAdapter = input.ReadString();
 412            break;
 413          }
 414          case 40: {
 415            IsPreview = input.ReadBool();
 416            break;
 417          }
 418          case 50: {
 419            Room = input.ReadString();
 420            break;
 421          }
 422        }
 423      }
 424    }
 425    #endif
 426
 427  }
 428
 429  #endregion
 430
 431}
 432
 433#endregion Designer generated code

Methods/Properties

Descriptor()
RealmInfoReflection()