| | 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 | |
|
| | 8 | | using pb = global::Google.Protobuf; |
| | 9 | | using pbc = global::Google.Protobuf.Collections; |
| | 10 | | using pbr = global::Google.Protobuf.Reflection; |
| | 11 | | using scg = global::System.Collections.Generic; |
| | 12 | | namespace 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 { |
| | 20 | | get { return descriptor; } |
| | 21 | | } |
| | 22 | | private static pbr::FileDescriptor descriptor; |
| | 23 | |
|
| | 24 | | static RealmInfoReflection() { |
| | 25 | | byte[] descriptorData = global::System.Convert.FromBase64String( |
| | 26 | | string.Concat( |
| | 27 | | "CixkZWNlbnRyYWxhbmQvc2RrL2NvbXBvbmVudHMvcmVhbG1faW5mby5wcm90", |
| | 28 | | "bxIbZGVjZW50cmFsYW5kLnNkay5jb21wb25lbnRzIo4BCgtQQlJlYWxtSW5m", |
| | 29 | | "bxIQCghiYXNlX3VybBgBIAEoCRISCgpyZWFsbV9uYW1lGAIgASgJEhIKCm5l", |
| | 30 | | "dHdvcmtfaWQYAyABKAUSFQoNY29tbXNfYWRhcHRlchgEIAEoCRISCgppc19w", |
| | 31 | | "cmV2aWV3GAUgASgIEhEKBHJvb20YBiABKAlIAIgBAUIHCgVfcm9vbUIUqgIR", |
| | 32 | | "RENMLkVDU0NvbXBvbmVudHNiBnByb3RvMw==")); |
| | 33 | | 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 | | })); |
| | 38 | | } |
| | 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 | | { |
| 0 | 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)] |
| 0 | 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 { |
| 0 | 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 { |
| 0 | 63 | | get { return Descriptor; } |
| | 64 | | } |
| | 65 | |
|
| | 66 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 67 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| 0 | 68 | | public PBRealmInfo() { |
| | 69 | | OnConstruction(); |
| 0 | 70 | | } |
| | 71 | |
|
| | 72 | | partial void OnConstruction(); |
| | 73 | |
|
| | 74 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 75 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| 0 | 76 | | public PBRealmInfo(PBRealmInfo other) : this() { |
| 0 | 77 | | baseUrl_ = other.baseUrl_; |
| 0 | 78 | | realmName_ = other.realmName_; |
| 0 | 79 | | networkId_ = other.networkId_; |
| 0 | 80 | | commsAdapter_ = other.commsAdapter_; |
| 0 | 81 | | isPreview_ = other.isPreview_; |
| 0 | 82 | | room_ = other.room_; |
| 0 | 83 | | _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); |
| 0 | 84 | | } |
| | 85 | |
|
| | 86 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 87 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 88 | | public PBRealmInfo Clone() { |
| 0 | 89 | | return new PBRealmInfo(this); |
| | 90 | | } |
| | 91 | |
|
| | 92 | | /// <summary>Field number for the "base_url" field.</summary> |
| | 93 | | public const int BaseUrlFieldNumber = 1; |
| 0 | 94 | | private string baseUrl_ = ""; |
| | 95 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 96 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 97 | | public string BaseUrl { |
| 0 | 98 | | get { return baseUrl_; } |
| | 99 | | set { |
| 0 | 100 | | baseUrl_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); |
| 0 | 101 | | } |
| | 102 | | } |
| | 103 | |
|
| | 104 | | /// <summary>Field number for the "realm_name" field.</summary> |
| | 105 | | public const int RealmNameFieldNumber = 2; |
| 0 | 106 | | private string realmName_ = ""; |
| | 107 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 108 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 109 | | public string RealmName { |
| 0 | 110 | | get { return realmName_; } |
| | 111 | | set { |
| 0 | 112 | | realmName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); |
| 0 | 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 { |
| 0 | 122 | | get { return networkId_; } |
| | 123 | | set { |
| 0 | 124 | | networkId_ = value; |
| 0 | 125 | | } |
| | 126 | | } |
| | 127 | |
|
| | 128 | | /// <summary>Field number for the "comms_adapter" field.</summary> |
| | 129 | | public const int CommsAdapterFieldNumber = 4; |
| 0 | 130 | | private string commsAdapter_ = ""; |
| | 131 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 132 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 133 | | public string CommsAdapter { |
| 0 | 134 | | get { return commsAdapter_; } |
| | 135 | | set { |
| 0 | 136 | | commsAdapter_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); |
| 0 | 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 { |
| 0 | 146 | | get { return isPreview_; } |
| | 147 | | set { |
| 0 | 148 | | isPreview_ = value; |
| 0 | 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 { |
| 0 | 158 | | get { return room_ ?? ""; } |
| | 159 | | set { |
| 0 | 160 | | room_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); |
| 0 | 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 { |
| 0 | 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() { |
| 0 | 173 | | room_ = null; |
| 0 | 174 | | } |
| | 175 | |
|
| | 176 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 177 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 178 | | public override bool Equals(object other) { |
| 0 | 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) { |
| 0 | 185 | | if (ReferenceEquals(other, null)) { |
| 0 | 186 | | return false; |
| | 187 | | } |
| 0 | 188 | | if (ReferenceEquals(other, this)) { |
| 0 | 189 | | return true; |
| | 190 | | } |
| 0 | 191 | | if (BaseUrl != other.BaseUrl) return false; |
| 0 | 192 | | if (RealmName != other.RealmName) return false; |
| 0 | 193 | | if (NetworkId != other.NetworkId) return false; |
| 0 | 194 | | if (CommsAdapter != other.CommsAdapter) return false; |
| 0 | 195 | | if (IsPreview != other.IsPreview) return false; |
| 0 | 196 | | if (Room != other.Room) return false; |
| 0 | 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() { |
| 0 | 203 | | int hash = 1; |
| 0 | 204 | | if (BaseUrl.Length != 0) hash ^= BaseUrl.GetHashCode(); |
| 0 | 205 | | if (RealmName.Length != 0) hash ^= RealmName.GetHashCode(); |
| 0 | 206 | | if (NetworkId != 0) hash ^= NetworkId.GetHashCode(); |
| 0 | 207 | | if (CommsAdapter.Length != 0) hash ^= CommsAdapter.GetHashCode(); |
| 0 | 208 | | if (IsPreview != false) hash ^= IsPreview.GetHashCode(); |
| 0 | 209 | | if (HasRoom) hash ^= Room.GetHashCode(); |
| 0 | 210 | | if (_unknownFields != null) { |
| 0 | 211 | | hash ^= _unknownFields.GetHashCode(); |
| | 212 | | } |
| 0 | 213 | | return hash; |
| | 214 | | } |
| | 215 | |
|
| | 216 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 217 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 218 | | public override string ToString() { |
| 0 | 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 |
| 0 | 228 | | if (BaseUrl.Length != 0) { |
| 0 | 229 | | output.WriteRawTag(10); |
| 0 | 230 | | output.WriteString(BaseUrl); |
| | 231 | | } |
| 0 | 232 | | if (RealmName.Length != 0) { |
| 0 | 233 | | output.WriteRawTag(18); |
| 0 | 234 | | output.WriteString(RealmName); |
| | 235 | | } |
| 0 | 236 | | if (NetworkId != 0) { |
| 0 | 237 | | output.WriteRawTag(24); |
| 0 | 238 | | output.WriteInt32(NetworkId); |
| | 239 | | } |
| 0 | 240 | | if (CommsAdapter.Length != 0) { |
| 0 | 241 | | output.WriteRawTag(34); |
| 0 | 242 | | output.WriteString(CommsAdapter); |
| | 243 | | } |
| 0 | 244 | | if (IsPreview != false) { |
| 0 | 245 | | output.WriteRawTag(40); |
| 0 | 246 | | output.WriteBool(IsPreview); |
| | 247 | | } |
| 0 | 248 | | if (HasRoom) { |
| 0 | 249 | | output.WriteRawTag(50); |
| 0 | 250 | | output.WriteString(Room); |
| | 251 | | } |
| 0 | 252 | | if (_unknownFields != null) { |
| 0 | 253 | | _unknownFields.WriteTo(output); |
| | 254 | | } |
| | 255 | | #endif |
| 0 | 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() { |
| 0 | 295 | | int size = 0; |
| 0 | 296 | | if (BaseUrl.Length != 0) { |
| 0 | 297 | | size += 1 + pb::CodedOutputStream.ComputeStringSize(BaseUrl); |
| | 298 | | } |
| 0 | 299 | | if (RealmName.Length != 0) { |
| 0 | 300 | | size += 1 + pb::CodedOutputStream.ComputeStringSize(RealmName); |
| | 301 | | } |
| 0 | 302 | | if (NetworkId != 0) { |
| 0 | 303 | | size += 1 + pb::CodedOutputStream.ComputeInt32Size(NetworkId); |
| | 304 | | } |
| 0 | 305 | | if (CommsAdapter.Length != 0) { |
| 0 | 306 | | size += 1 + pb::CodedOutputStream.ComputeStringSize(CommsAdapter); |
| | 307 | | } |
| 0 | 308 | | if (IsPreview != false) { |
| 0 | 309 | | size += 1 + 1; |
| | 310 | | } |
| 0 | 311 | | if (HasRoom) { |
| 0 | 312 | | size += 1 + pb::CodedOutputStream.ComputeStringSize(Room); |
| | 313 | | } |
| 0 | 314 | | if (_unknownFields != null) { |
| 0 | 315 | | size += _unknownFields.CalculateSize(); |
| | 316 | | } |
| 0 | 317 | | return size; |
| | 318 | | } |
| | 319 | |
|
| | 320 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 321 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 322 | | public void MergeFrom(PBRealmInfo other) { |
| 0 | 323 | | if (other == null) { |
| 0 | 324 | | return; |
| | 325 | | } |
| 0 | 326 | | if (other.BaseUrl.Length != 0) { |
| 0 | 327 | | BaseUrl = other.BaseUrl; |
| | 328 | | } |
| 0 | 329 | | if (other.RealmName.Length != 0) { |
| 0 | 330 | | RealmName = other.RealmName; |
| | 331 | | } |
| 0 | 332 | | if (other.NetworkId != 0) { |
| 0 | 333 | | NetworkId = other.NetworkId; |
| | 334 | | } |
| 0 | 335 | | if (other.CommsAdapter.Length != 0) { |
| 0 | 336 | | CommsAdapter = other.CommsAdapter; |
| | 337 | | } |
| 0 | 338 | | if (other.IsPreview != false) { |
| 0 | 339 | | IsPreview = other.IsPreview; |
| | 340 | | } |
| 0 | 341 | | if (other.HasRoom) { |
| 0 | 342 | | Room = other.Room; |
| | 343 | | } |
| 0 | 344 | | _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); |
| 0 | 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; |
| 0 | 354 | | while ((tag = input.ReadTag()) != 0) { |
| | 355 | | switch(tag) { |
| | 356 | | default: |
| 0 | 357 | | _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); |
| 0 | 358 | | break; |
| | 359 | | case 10: { |
| 0 | 360 | | BaseUrl = input.ReadString(); |
| 0 | 361 | | break; |
| | 362 | | } |
| | 363 | | case 18: { |
| 0 | 364 | | RealmName = input.ReadString(); |
| 0 | 365 | | break; |
| | 366 | | } |
| | 367 | | case 24: { |
| 0 | 368 | | NetworkId = input.ReadInt32(); |
| 0 | 369 | | break; |
| | 370 | | } |
| | 371 | | case 34: { |
| 0 | 372 | | CommsAdapter = input.ReadString(); |
| 0 | 373 | | break; |
| | 374 | | } |
| | 375 | | case 40: { |
| 0 | 376 | | IsPreview = input.ReadBool(); |
| 0 | 377 | | break; |
| | 378 | | } |
| | 379 | | case 50: { |
| 0 | 380 | | Room = input.ReadString(); |
| | 381 | | break; |
| | 382 | | } |
| | 383 | | } |
| | 384 | | } |
| | 385 | | #endif |
| 0 | 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 |