| | 1 | | // <auto-generated> |
| | 2 | | // Generated by the protocol buffer compiler. DO NOT EDIT! |
| | 3 | | // source: decentraland/bff/comms_director_service.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 Decentraland.Bff { |
| | 13 | |
|
| | 14 | | /// <summary>Holder for reflection information generated from decentraland/bff/comms_director_service.proto</summary> |
| | 15 | | public static partial class CommsDirectorServiceReflection { |
| | 16 | |
|
| | 17 | | #region Descriptor |
| | 18 | | /// <summary>File descriptor for decentraland/bff/comms_director_service.proto</summary> |
| | 19 | | public static pbr::FileDescriptor Descriptor { |
| | 20 | | get { return descriptor; } |
| | 21 | | } |
| | 22 | | private static pbr::FileDescriptor descriptor; |
| | 23 | |
|
| | 24 | | static CommsDirectorServiceReflection() { |
| | 25 | | byte[] descriptorData = global::System.Convert.FromBase64String( |
| | 26 | | string.Concat( |
| | 27 | | "Ci1kZWNlbnRyYWxhbmQvYmZmL2NvbW1zX2RpcmVjdG9yX3NlcnZpY2UucHJv", |
| | 28 | | "dG8SEGRlY2VudHJhbGFuZC5iZmYaG2dvb2dsZS9wcm90b2J1Zi9lbXB0eS5w", |
| | 29 | | "cm90bxohZGVjZW50cmFsYW5kL2NvbW1vbi92ZWN0b3JzLnByb3RvIlkKDFdv", |
| | 30 | | "cmxkQ29tbWFuZBI+ChFzZXRfY29tbXNfYWRhcHRlchgBIAEoCzIhLmRlY2Vu", |
| | 31 | | "dHJhbGFuZC5iZmYuU2V0Q29tbXNBZGFwdGVySABCCQoHY29tbWFuZCIsCg9T", |
| | 32 | | "ZXRDb21tc0FkYXB0ZXISGQoRY29ubmVjdGlvbl9zdHJpbmcYASABKAkiaAoJ", |
| | 33 | | "SGVhcnRiZWF0Ei8KCHBvc2l0aW9uGAEgASgLMh0uZGVjZW50cmFsYW5kLmNv", |
| | 34 | | "bW1vbi5Qb3NpdGlvbhIZCgxkZXNpcmVkX3Jvb20YAiABKAlIAIgBAUIPCg1f", |
| | 35 | | "ZGVzaXJlZF9yb29tMq4BChRDb21tc0RpcmVjdG9yU2VydmljZRJGCg1TZW5k", |
| | 36 | | "SGVhcnRiZWF0EhsuZGVjZW50cmFsYW5kLmJmZi5IZWFydGJlYXQaFi5nb29n", |
| | 37 | | "bGUucHJvdG9idWYuRW1wdHkiABJOChBHZXRDb21tc0NvbW1hbmRzEhYuZ29v", |
| | 38 | | "Z2xlLnByb3RvYnVmLkVtcHR5Gh4uZGVjZW50cmFsYW5kLmJmZi5Xb3JsZENv", |
| | 39 | | "bW1hbmQiADABYgZwcm90bzM=")); |
| | 40 | | descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, |
| | 41 | | new pbr::FileDescriptor[] { global::Google.Protobuf.WellKnownTypes.EmptyReflection.Descriptor, global::Decentr |
| | 42 | | new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { |
| | 43 | | new pbr::GeneratedClrTypeInfo(typeof(global::Decentraland.Bff.WorldCommand), global::Decentraland.Bff.WorldC |
| | 44 | | new pbr::GeneratedClrTypeInfo(typeof(global::Decentraland.Bff.SetCommsAdapter), global::Decentraland.Bff.Set |
| | 45 | | new pbr::GeneratedClrTypeInfo(typeof(global::Decentraland.Bff.Heartbeat), global::Decentraland.Bff.Heartbeat |
| | 46 | | })); |
| | 47 | | } |
| | 48 | | #endregion |
| | 49 | |
|
| | 50 | | } |
| | 51 | | #region Messages |
| | 52 | | public sealed partial class WorldCommand : pb::IMessage<WorldCommand> |
| | 53 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| | 54 | | , pb::IBufferMessage |
| | 55 | | #endif |
| | 56 | | { |
| | 57 | | private static readonly pb::MessageParser<WorldCommand> _parser = new pb::MessageParser<WorldCommand>(() => new Worl |
| | 58 | | private pb::UnknownFieldSet _unknownFields; |
| | 59 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 60 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 61 | | public static pb::MessageParser<WorldCommand> Parser { get { return _parser; } } |
| | 62 | |
|
| | 63 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 64 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 65 | | public static pbr::MessageDescriptor Descriptor { |
| | 66 | | get { return global::Decentraland.Bff.CommsDirectorServiceReflection.Descriptor.MessageTypes[0]; } |
| | 67 | | } |
| | 68 | |
|
| | 69 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 70 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 71 | | pbr::MessageDescriptor pb::IMessage.Descriptor { |
| | 72 | | get { return Descriptor; } |
| | 73 | | } |
| | 74 | |
|
| | 75 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 76 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 77 | | public WorldCommand() { |
| | 78 | | OnConstruction(); |
| | 79 | | } |
| | 80 | |
|
| | 81 | | partial void OnConstruction(); |
| | 82 | |
|
| | 83 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 84 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 85 | | public WorldCommand(WorldCommand other) : this() { |
| | 86 | | switch (other.CommandCase) { |
| | 87 | | case CommandOneofCase.SetCommsAdapter: |
| | 88 | | SetCommsAdapter = other.SetCommsAdapter.Clone(); |
| | 89 | | break; |
| | 90 | | } |
| | 91 | |
|
| | 92 | | _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); |
| | 93 | | } |
| | 94 | |
|
| | 95 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 96 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 97 | | public WorldCommand Clone() { |
| | 98 | | return new WorldCommand(this); |
| | 99 | | } |
| | 100 | |
|
| | 101 | | /// <summary>Field number for the "set_comms_adapter" field.</summary> |
| | 102 | | public const int SetCommsAdapterFieldNumber = 1; |
| | 103 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 104 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 105 | | public global::Decentraland.Bff.SetCommsAdapter SetCommsAdapter { |
| | 106 | | get { return commandCase_ == CommandOneofCase.SetCommsAdapter ? (global::Decentraland.Bff.SetCommsAdapter) command |
| | 107 | | set { |
| | 108 | | command_ = value; |
| | 109 | | commandCase_ = value == null ? CommandOneofCase.None : CommandOneofCase.SetCommsAdapter; |
| | 110 | | } |
| | 111 | | } |
| | 112 | |
|
| | 113 | | private object command_; |
| | 114 | | /// <summary>Enum of possible cases for the "command" oneof.</summary> |
| | 115 | | public enum CommandOneofCase { |
| | 116 | | None = 0, |
| | 117 | | SetCommsAdapter = 1, |
| | 118 | | } |
| | 119 | | private CommandOneofCase commandCase_ = CommandOneofCase.None; |
| | 120 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 121 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 122 | | public CommandOneofCase CommandCase { |
| | 123 | | get { return commandCase_; } |
| | 124 | | } |
| | 125 | |
|
| | 126 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 127 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 128 | | public void ClearCommand() { |
| | 129 | | commandCase_ = CommandOneofCase.None; |
| | 130 | | command_ = null; |
| | 131 | | } |
| | 132 | |
|
| | 133 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 134 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 135 | | public override bool Equals(object other) { |
| | 136 | | return Equals(other as WorldCommand); |
| | 137 | | } |
| | 138 | |
|
| | 139 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 140 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 141 | | public bool Equals(WorldCommand other) { |
| | 142 | | if (ReferenceEquals(other, null)) { |
| | 143 | | return false; |
| | 144 | | } |
| | 145 | | if (ReferenceEquals(other, this)) { |
| | 146 | | return true; |
| | 147 | | } |
| | 148 | | if (!object.Equals(SetCommsAdapter, other.SetCommsAdapter)) return false; |
| | 149 | | if (CommandCase != other.CommandCase) return false; |
| | 150 | | return Equals(_unknownFields, other._unknownFields); |
| | 151 | | } |
| | 152 | |
|
| | 153 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 154 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 155 | | public override int GetHashCode() { |
| | 156 | | int hash = 1; |
| | 157 | | if (commandCase_ == CommandOneofCase.SetCommsAdapter) hash ^= SetCommsAdapter.GetHashCode(); |
| | 158 | | hash ^= (int) commandCase_; |
| | 159 | | if (_unknownFields != null) { |
| | 160 | | hash ^= _unknownFields.GetHashCode(); |
| | 161 | | } |
| | 162 | | return hash; |
| | 163 | | } |
| | 164 | |
|
| | 165 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 166 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 167 | | public override string ToString() { |
| | 168 | | return pb::JsonFormatter.ToDiagnosticString(this); |
| | 169 | | } |
| | 170 | |
|
| | 171 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 172 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 173 | | public void WriteTo(pb::CodedOutputStream output) { |
| | 174 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| | 175 | | output.WriteRawMessage(this); |
| | 176 | | #else |
| | 177 | | if (commandCase_ == CommandOneofCase.SetCommsAdapter) { |
| | 178 | | output.WriteRawTag(10); |
| | 179 | | output.WriteMessage(SetCommsAdapter); |
| | 180 | | } |
| | 181 | | if (_unknownFields != null) { |
| | 182 | | _unknownFields.WriteTo(output); |
| | 183 | | } |
| | 184 | | #endif |
| | 185 | | } |
| | 186 | |
|
| | 187 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| | 188 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 189 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 190 | | void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { |
| | 191 | | if (commandCase_ == CommandOneofCase.SetCommsAdapter) { |
| | 192 | | output.WriteRawTag(10); |
| | 193 | | output.WriteMessage(SetCommsAdapter); |
| | 194 | | } |
| | 195 | | if (_unknownFields != null) { |
| | 196 | | _unknownFields.WriteTo(ref output); |
| | 197 | | } |
| | 198 | | } |
| | 199 | | #endif |
| | 200 | |
|
| | 201 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 202 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 203 | | public int CalculateSize() { |
| | 204 | | int size = 0; |
| | 205 | | if (commandCase_ == CommandOneofCase.SetCommsAdapter) { |
| | 206 | | size += 1 + pb::CodedOutputStream.ComputeMessageSize(SetCommsAdapter); |
| | 207 | | } |
| | 208 | | if (_unknownFields != null) { |
| | 209 | | size += _unknownFields.CalculateSize(); |
| | 210 | | } |
| | 211 | | return size; |
| | 212 | | } |
| | 213 | |
|
| | 214 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 215 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 216 | | public void MergeFrom(WorldCommand other) { |
| | 217 | | if (other == null) { |
| | 218 | | return; |
| | 219 | | } |
| | 220 | | switch (other.CommandCase) { |
| | 221 | | case CommandOneofCase.SetCommsAdapter: |
| | 222 | | if (SetCommsAdapter == null) { |
| | 223 | | SetCommsAdapter = new global::Decentraland.Bff.SetCommsAdapter(); |
| | 224 | | } |
| | 225 | | SetCommsAdapter.MergeFrom(other.SetCommsAdapter); |
| | 226 | | break; |
| | 227 | | } |
| | 228 | |
|
| | 229 | | _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); |
| | 230 | | } |
| | 231 | |
|
| | 232 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 233 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 234 | | public void MergeFrom(pb::CodedInputStream input) { |
| | 235 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| | 236 | | input.ReadRawMessage(this); |
| | 237 | | #else |
| | 238 | | uint tag; |
| | 239 | | while ((tag = input.ReadTag()) != 0) { |
| | 240 | | switch(tag) { |
| | 241 | | default: |
| | 242 | | _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); |
| | 243 | | break; |
| | 244 | | case 10: { |
| | 245 | | global::Decentraland.Bff.SetCommsAdapter subBuilder = new global::Decentraland.Bff.SetCommsAdapter(); |
| | 246 | | if (commandCase_ == CommandOneofCase.SetCommsAdapter) { |
| | 247 | | subBuilder.MergeFrom(SetCommsAdapter); |
| | 248 | | } |
| | 249 | | input.ReadMessage(subBuilder); |
| | 250 | | SetCommsAdapter = subBuilder; |
| | 251 | | break; |
| | 252 | | } |
| | 253 | | } |
| | 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.InternalMergeFrom(ref pb::ParseContext input) { |
| | 262 | | uint tag; |
| | 263 | | while ((tag = input.ReadTag()) != 0) { |
| | 264 | | switch(tag) { |
| | 265 | | default: |
| | 266 | | _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); |
| | 267 | | break; |
| | 268 | | case 10: { |
| | 269 | | global::Decentraland.Bff.SetCommsAdapter subBuilder = new global::Decentraland.Bff.SetCommsAdapter(); |
| | 270 | | if (commandCase_ == CommandOneofCase.SetCommsAdapter) { |
| | 271 | | subBuilder.MergeFrom(SetCommsAdapter); |
| | 272 | | } |
| | 273 | | input.ReadMessage(subBuilder); |
| | 274 | | SetCommsAdapter = subBuilder; |
| | 275 | | break; |
| | 276 | | } |
| | 277 | | } |
| | 278 | | } |
| | 279 | | } |
| | 280 | | #endif |
| | 281 | |
|
| | 282 | | } |
| | 283 | |
|
| | 284 | | public sealed partial class SetCommsAdapter : pb::IMessage<SetCommsAdapter> |
| | 285 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| | 286 | | , pb::IBufferMessage |
| | 287 | | #endif |
| | 288 | | { |
| 0 | 289 | | private static readonly pb::MessageParser<SetCommsAdapter> _parser = new pb::MessageParser<SetCommsAdapter>(() => ne |
| | 290 | | private pb::UnknownFieldSet _unknownFields; |
| | 291 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 292 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| 0 | 293 | | public static pb::MessageParser<SetCommsAdapter> Parser { get { return _parser; } } |
| | 294 | |
|
| | 295 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 296 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 297 | | public static pbr::MessageDescriptor Descriptor { |
| 0 | 298 | | get { return global::Decentraland.Bff.CommsDirectorServiceReflection.Descriptor.MessageTypes[1]; } |
| | 299 | | } |
| | 300 | |
|
| | 301 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 302 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 303 | | pbr::MessageDescriptor pb::IMessage.Descriptor { |
| 0 | 304 | | get { return Descriptor; } |
| | 305 | | } |
| | 306 | |
|
| | 307 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 308 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| 0 | 309 | | public SetCommsAdapter() { |
| | 310 | | OnConstruction(); |
| 0 | 311 | | } |
| | 312 | |
|
| | 313 | | partial void OnConstruction(); |
| | 314 | |
|
| | 315 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 316 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| 0 | 317 | | public SetCommsAdapter(SetCommsAdapter other) : this() { |
| 0 | 318 | | connectionString_ = other.connectionString_; |
| 0 | 319 | | _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); |
| 0 | 320 | | } |
| | 321 | |
|
| | 322 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 323 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 324 | | public SetCommsAdapter Clone() { |
| 0 | 325 | | return new SetCommsAdapter(this); |
| | 326 | | } |
| | 327 | |
|
| | 328 | | /// <summary>Field number for the "connection_string" field.</summary> |
| | 329 | | public const int ConnectionStringFieldNumber = 1; |
| 0 | 330 | | private string connectionString_ = ""; |
| | 331 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 332 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 333 | | public string ConnectionString { |
| 0 | 334 | | get { return connectionString_; } |
| | 335 | | set { |
| 0 | 336 | | connectionString_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); |
| 0 | 337 | | } |
| | 338 | | } |
| | 339 | |
|
| | 340 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 341 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 342 | | public override bool Equals(object other) { |
| 0 | 343 | | return Equals(other as SetCommsAdapter); |
| | 344 | | } |
| | 345 | |
|
| | 346 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 347 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 348 | | public bool Equals(SetCommsAdapter other) { |
| 0 | 349 | | if (ReferenceEquals(other, null)) { |
| 0 | 350 | | return false; |
| | 351 | | } |
| 0 | 352 | | if (ReferenceEquals(other, this)) { |
| 0 | 353 | | return true; |
| | 354 | | } |
| 0 | 355 | | if (ConnectionString != other.ConnectionString) return false; |
| 0 | 356 | | return Equals(_unknownFields, other._unknownFields); |
| | 357 | | } |
| | 358 | |
|
| | 359 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 360 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 361 | | public override int GetHashCode() { |
| 0 | 362 | | int hash = 1; |
| 0 | 363 | | if (ConnectionString.Length != 0) hash ^= ConnectionString.GetHashCode(); |
| 0 | 364 | | if (_unknownFields != null) { |
| 0 | 365 | | hash ^= _unknownFields.GetHashCode(); |
| | 366 | | } |
| 0 | 367 | | return hash; |
| | 368 | | } |
| | 369 | |
|
| | 370 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 371 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 372 | | public override string ToString() { |
| 0 | 373 | | return pb::JsonFormatter.ToDiagnosticString(this); |
| | 374 | | } |
| | 375 | |
|
| | 376 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 377 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 378 | | public void WriteTo(pb::CodedOutputStream output) { |
| | 379 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| | 380 | | output.WriteRawMessage(this); |
| | 381 | | #else |
| 0 | 382 | | if (ConnectionString.Length != 0) { |
| 0 | 383 | | output.WriteRawTag(10); |
| 0 | 384 | | output.WriteString(ConnectionString); |
| | 385 | | } |
| 0 | 386 | | if (_unknownFields != null) { |
| 0 | 387 | | _unknownFields.WriteTo(output); |
| | 388 | | } |
| | 389 | | #endif |
| 0 | 390 | | } |
| | 391 | |
|
| | 392 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| | 393 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 394 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 395 | | void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { |
| | 396 | | if (ConnectionString.Length != 0) { |
| | 397 | | output.WriteRawTag(10); |
| | 398 | | output.WriteString(ConnectionString); |
| | 399 | | } |
| | 400 | | if (_unknownFields != null) { |
| | 401 | | _unknownFields.WriteTo(ref output); |
| | 402 | | } |
| | 403 | | } |
| | 404 | | #endif |
| | 405 | |
|
| | 406 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 407 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 408 | | public int CalculateSize() { |
| 0 | 409 | | int size = 0; |
| 0 | 410 | | if (ConnectionString.Length != 0) { |
| 0 | 411 | | size += 1 + pb::CodedOutputStream.ComputeStringSize(ConnectionString); |
| | 412 | | } |
| 0 | 413 | | if (_unknownFields != null) { |
| 0 | 414 | | size += _unknownFields.CalculateSize(); |
| | 415 | | } |
| 0 | 416 | | return size; |
| | 417 | | } |
| | 418 | |
|
| | 419 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 420 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 421 | | public void MergeFrom(SetCommsAdapter other) { |
| 0 | 422 | | if (other == null) { |
| 0 | 423 | | return; |
| | 424 | | } |
| 0 | 425 | | if (other.ConnectionString.Length != 0) { |
| 0 | 426 | | ConnectionString = other.ConnectionString; |
| | 427 | | } |
| 0 | 428 | | _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); |
| 0 | 429 | | } |
| | 430 | |
|
| | 431 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 432 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 433 | | public void MergeFrom(pb::CodedInputStream input) { |
| | 434 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| | 435 | | input.ReadRawMessage(this); |
| | 436 | | #else |
| | 437 | | uint tag; |
| 0 | 438 | | while ((tag = input.ReadTag()) != 0) { |
| | 439 | | switch(tag) { |
| | 440 | | default: |
| 0 | 441 | | _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); |
| 0 | 442 | | break; |
| | 443 | | case 10: { |
| 0 | 444 | | ConnectionString = input.ReadString(); |
| | 445 | | break; |
| | 446 | | } |
| | 447 | | } |
| | 448 | | } |
| | 449 | | #endif |
| 0 | 450 | | } |
| | 451 | |
|
| | 452 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| | 453 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 454 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 455 | | void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { |
| | 456 | | uint tag; |
| | 457 | | while ((tag = input.ReadTag()) != 0) { |
| | 458 | | switch(tag) { |
| | 459 | | default: |
| | 460 | | _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); |
| | 461 | | break; |
| | 462 | | case 10: { |
| | 463 | | ConnectionString = input.ReadString(); |
| | 464 | | break; |
| | 465 | | } |
| | 466 | | } |
| | 467 | | } |
| | 468 | | } |
| | 469 | | #endif |
| | 470 | |
|
| | 471 | | } |
| | 472 | |
|
| | 473 | | public sealed partial class Heartbeat : pb::IMessage<Heartbeat> |
| | 474 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| | 475 | | , pb::IBufferMessage |
| | 476 | | #endif |
| | 477 | | { |
| | 478 | | private static readonly pb::MessageParser<Heartbeat> _parser = new pb::MessageParser<Heartbeat>(() => new Heartbeat( |
| | 479 | | private pb::UnknownFieldSet _unknownFields; |
| | 480 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 481 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 482 | | public static pb::MessageParser<Heartbeat> Parser { get { return _parser; } } |
| | 483 | |
|
| | 484 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 485 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 486 | | public static pbr::MessageDescriptor Descriptor { |
| | 487 | | get { return global::Decentraland.Bff.CommsDirectorServiceReflection.Descriptor.MessageTypes[2]; } |
| | 488 | | } |
| | 489 | |
|
| | 490 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 491 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 492 | | pbr::MessageDescriptor pb::IMessage.Descriptor { |
| | 493 | | get { return Descriptor; } |
| | 494 | | } |
| | 495 | |
|
| | 496 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 497 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 498 | | public Heartbeat() { |
| | 499 | | OnConstruction(); |
| | 500 | | } |
| | 501 | |
|
| | 502 | | partial void OnConstruction(); |
| | 503 | |
|
| | 504 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 505 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 506 | | public Heartbeat(Heartbeat other) : this() { |
| | 507 | | position_ = other.position_ != null ? other.position_.Clone() : null; |
| | 508 | | desiredRoom_ = other.desiredRoom_; |
| | 509 | | _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); |
| | 510 | | } |
| | 511 | |
|
| | 512 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 513 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 514 | | public Heartbeat Clone() { |
| | 515 | | return new Heartbeat(this); |
| | 516 | | } |
| | 517 | |
|
| | 518 | | /// <summary>Field number for the "position" field.</summary> |
| | 519 | | public const int PositionFieldNumber = 1; |
| | 520 | | private global::Decentraland.Common.Position position_; |
| | 521 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 522 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 523 | | public global::Decentraland.Common.Position Position { |
| | 524 | | get { return position_; } |
| | 525 | | set { |
| | 526 | | position_ = value; |
| | 527 | | } |
| | 528 | | } |
| | 529 | |
|
| | 530 | | /// <summary>Field number for the "desired_room" field.</summary> |
| | 531 | | public const int DesiredRoomFieldNumber = 2; |
| | 532 | | private string desiredRoom_; |
| | 533 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 534 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 535 | | public string DesiredRoom { |
| | 536 | | get { return desiredRoom_ ?? ""; } |
| | 537 | | set { |
| | 538 | | desiredRoom_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); |
| | 539 | | } |
| | 540 | | } |
| | 541 | | /// <summary>Gets whether the "desired_room" field is set</summary> |
| | 542 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 543 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 544 | | public bool HasDesiredRoom { |
| | 545 | | get { return desiredRoom_ != null; } |
| | 546 | | } |
| | 547 | | /// <summary>Clears the value of the "desired_room" field</summary> |
| | 548 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 549 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 550 | | public void ClearDesiredRoom() { |
| | 551 | | desiredRoom_ = null; |
| | 552 | | } |
| | 553 | |
|
| | 554 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 555 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 556 | | public override bool Equals(object other) { |
| | 557 | | return Equals(other as Heartbeat); |
| | 558 | | } |
| | 559 | |
|
| | 560 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 561 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 562 | | public bool Equals(Heartbeat other) { |
| | 563 | | if (ReferenceEquals(other, null)) { |
| | 564 | | return false; |
| | 565 | | } |
| | 566 | | if (ReferenceEquals(other, this)) { |
| | 567 | | return true; |
| | 568 | | } |
| | 569 | | if (!object.Equals(Position, other.Position)) return false; |
| | 570 | | if (DesiredRoom != other.DesiredRoom) return false; |
| | 571 | | return Equals(_unknownFields, other._unknownFields); |
| | 572 | | } |
| | 573 | |
|
| | 574 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 575 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 576 | | public override int GetHashCode() { |
| | 577 | | int hash = 1; |
| | 578 | | if (position_ != null) hash ^= Position.GetHashCode(); |
| | 579 | | if (HasDesiredRoom) hash ^= DesiredRoom.GetHashCode(); |
| | 580 | | if (_unknownFields != null) { |
| | 581 | | hash ^= _unknownFields.GetHashCode(); |
| | 582 | | } |
| | 583 | | return hash; |
| | 584 | | } |
| | 585 | |
|
| | 586 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 587 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 588 | | public override string ToString() { |
| | 589 | | return pb::JsonFormatter.ToDiagnosticString(this); |
| | 590 | | } |
| | 591 | |
|
| | 592 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 593 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 594 | | public void WriteTo(pb::CodedOutputStream output) { |
| | 595 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| | 596 | | output.WriteRawMessage(this); |
| | 597 | | #else |
| | 598 | | if (position_ != null) { |
| | 599 | | output.WriteRawTag(10); |
| | 600 | | output.WriteMessage(Position); |
| | 601 | | } |
| | 602 | | if (HasDesiredRoom) { |
| | 603 | | output.WriteRawTag(18); |
| | 604 | | output.WriteString(DesiredRoom); |
| | 605 | | } |
| | 606 | | if (_unknownFields != null) { |
| | 607 | | _unknownFields.WriteTo(output); |
| | 608 | | } |
| | 609 | | #endif |
| | 610 | | } |
| | 611 | |
|
| | 612 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| | 613 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 614 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 615 | | void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { |
| | 616 | | if (position_ != null) { |
| | 617 | | output.WriteRawTag(10); |
| | 618 | | output.WriteMessage(Position); |
| | 619 | | } |
| | 620 | | if (HasDesiredRoom) { |
| | 621 | | output.WriteRawTag(18); |
| | 622 | | output.WriteString(DesiredRoom); |
| | 623 | | } |
| | 624 | | if (_unknownFields != null) { |
| | 625 | | _unknownFields.WriteTo(ref output); |
| | 626 | | } |
| | 627 | | } |
| | 628 | | #endif |
| | 629 | |
|
| | 630 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 631 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 632 | | public int CalculateSize() { |
| | 633 | | int size = 0; |
| | 634 | | if (position_ != null) { |
| | 635 | | size += 1 + pb::CodedOutputStream.ComputeMessageSize(Position); |
| | 636 | | } |
| | 637 | | if (HasDesiredRoom) { |
| | 638 | | size += 1 + pb::CodedOutputStream.ComputeStringSize(DesiredRoom); |
| | 639 | | } |
| | 640 | | if (_unknownFields != null) { |
| | 641 | | size += _unknownFields.CalculateSize(); |
| | 642 | | } |
| | 643 | | return size; |
| | 644 | | } |
| | 645 | |
|
| | 646 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 647 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 648 | | public void MergeFrom(Heartbeat other) { |
| | 649 | | if (other == null) { |
| | 650 | | return; |
| | 651 | | } |
| | 652 | | if (other.position_ != null) { |
| | 653 | | if (position_ == null) { |
| | 654 | | Position = new global::Decentraland.Common.Position(); |
| | 655 | | } |
| | 656 | | Position.MergeFrom(other.Position); |
| | 657 | | } |
| | 658 | | if (other.HasDesiredRoom) { |
| | 659 | | DesiredRoom = other.DesiredRoom; |
| | 660 | | } |
| | 661 | | _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); |
| | 662 | | } |
| | 663 | |
|
| | 664 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 665 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 666 | | public void MergeFrom(pb::CodedInputStream input) { |
| | 667 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| | 668 | | input.ReadRawMessage(this); |
| | 669 | | #else |
| | 670 | | uint tag; |
| | 671 | | while ((tag = input.ReadTag()) != 0) { |
| | 672 | | switch(tag) { |
| | 673 | | default: |
| | 674 | | _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); |
| | 675 | | break; |
| | 676 | | case 10: { |
| | 677 | | if (position_ == null) { |
| | 678 | | Position = new global::Decentraland.Common.Position(); |
| | 679 | | } |
| | 680 | | input.ReadMessage(Position); |
| | 681 | | break; |
| | 682 | | } |
| | 683 | | case 18: { |
| | 684 | | DesiredRoom = input.ReadString(); |
| | 685 | | break; |
| | 686 | | } |
| | 687 | | } |
| | 688 | | } |
| | 689 | | #endif |
| | 690 | | } |
| | 691 | |
|
| | 692 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| | 693 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 694 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 695 | | void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { |
| | 696 | | uint tag; |
| | 697 | | while ((tag = input.ReadTag()) != 0) { |
| | 698 | | switch(tag) { |
| | 699 | | default: |
| | 700 | | _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); |
| | 701 | | break; |
| | 702 | | case 10: { |
| | 703 | | if (position_ == null) { |
| | 704 | | Position = new global::Decentraland.Common.Position(); |
| | 705 | | } |
| | 706 | | input.ReadMessage(Position); |
| | 707 | | break; |
| | 708 | | } |
| | 709 | | case 18: { |
| | 710 | | DesiredRoom = input.ReadString(); |
| | 711 | | break; |
| | 712 | | } |
| | 713 | | } |
| | 714 | | } |
| | 715 | | } |
| | 716 | | #endif |
| | 717 | |
|
| | 718 | | } |
| | 719 | |
|
| | 720 | | #endregion |
| | 721 | |
|
| | 722 | | } |
| | 723 | |
|
| | 724 | | #endregion Designer generated code |