| | 1 | | // <auto-generated> |
| | 2 | | // Generated by the protocol buffer compiler. DO NOT EDIT! |
| | 3 | | // source: decentraland/bff/topics_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/topics_service.proto</summary> |
| | 15 | | public static partial class TopicsServiceReflection { |
| | 16 | |
|
| | 17 | | #region Descriptor |
| | 18 | | /// <summary>File descriptor for decentraland/bff/topics_service.proto</summary> |
| | 19 | | public static pbr::FileDescriptor Descriptor { |
| | 20 | | get { return descriptor; } |
| | 21 | | } |
| | 22 | | private static pbr::FileDescriptor descriptor; |
| | 23 | |
|
| | 24 | | static TopicsServiceReflection() { |
| | 25 | | byte[] descriptorData = global::System.Convert.FromBase64String( |
| | 26 | | string.Concat( |
| | 27 | | "CiVkZWNlbnRyYWxhbmQvYmZmL3RvcGljc19zZXJ2aWNlLnByb3RvEhBkZWNl", |
| | 28 | | "bnRyYWxhbmQuYmZmIiQKE1N1YnNjcmlwdGlvblJlcXVlc3QSDQoFdG9waWMY", |
| | 29 | | "ASABKAkiUQofUGVlclRvcGljU3Vic2NyaXB0aW9uUmVzdWx0RWxlbRIPCgdw", |
| | 30 | | "YXlsb2FkGAEgASgMEg0KBXRvcGljGAIgASgJEg4KBnNlbmRlchgDIAEoCSJD", |
| | 31 | | "CiFTeXN0ZW1Ub3BpY1N1YnNjcmlwdGlvblJlc3VsdEVsZW0SDwoHcGF5bG9h", |
| | 32 | | "ZBgBIAEoDBINCgV0b3BpYxgCIAEoCSI3ChVQdWJsaXNoVG9Ub3BpY1JlcXVl", |
| | 33 | | "c3QSDQoFdG9waWMYASABKAkSDwoHcGF5bG9hZBgCIAEoDCIiChRQdWJsaXNo", |
| | 34 | | "VG9Ub3BpY1Jlc3VsdBIKCgJvaxgBIAEoCDLcAgoNVG9waWNzU2VydmljZRJw", |
| | 35 | | "ChBQZWVyU3Vic2NyaXB0aW9uEiUuZGVjZW50cmFsYW5kLmJmZi5TdWJzY3Jp", |
| | 36 | | "cHRpb25SZXF1ZXN0GjEuZGVjZW50cmFsYW5kLmJmZi5QZWVyVG9waWNTdWJz", |
| | 37 | | "Y3JpcHRpb25SZXN1bHRFbGVtIgAwARJ0ChJTeXN0ZW1TdWJzY3JpcHRpb24S", |
| | 38 | | "JS5kZWNlbnRyYWxhbmQuYmZmLlN1YnNjcmlwdGlvblJlcXVlc3QaMy5kZWNl", |
| | 39 | | "bnRyYWxhbmQuYmZmLlN5c3RlbVRvcGljU3Vic2NyaXB0aW9uUmVzdWx0RWxl", |
| | 40 | | "bSIAMAESYwoOUHVibGlzaFRvVG9waWMSJy5kZWNlbnRyYWxhbmQuYmZmLlB1", |
| | 41 | | "Ymxpc2hUb1RvcGljUmVxdWVzdBomLmRlY2VudHJhbGFuZC5iZmYuUHVibGlz", |
| | 42 | | "aFRvVG9waWNSZXN1bHQiAGIGcHJvdG8z")); |
| | 43 | | descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, |
| | 44 | | new pbr::FileDescriptor[] { }, |
| | 45 | | new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { |
| | 46 | | new pbr::GeneratedClrTypeInfo(typeof(global::Decentraland.Bff.SubscriptionRequest), global::Decentraland.Bff |
| | 47 | | new pbr::GeneratedClrTypeInfo(typeof(global::Decentraland.Bff.PeerTopicSubscriptionResultElem), global::Dece |
| | 48 | | new pbr::GeneratedClrTypeInfo(typeof(global::Decentraland.Bff.SystemTopicSubscriptionResultElem), global::De |
| | 49 | | new pbr::GeneratedClrTypeInfo(typeof(global::Decentraland.Bff.PublishToTopicRequest), global::Decentraland.B |
| | 50 | | new pbr::GeneratedClrTypeInfo(typeof(global::Decentraland.Bff.PublishToTopicResult), global::Decentraland.Bf |
| | 51 | | })); |
| | 52 | | } |
| | 53 | | #endregion |
| | 54 | |
|
| | 55 | | } |
| | 56 | | #region Messages |
| | 57 | | public sealed partial class SubscriptionRequest : pb::IMessage<SubscriptionRequest> |
| | 58 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| | 59 | | , pb::IBufferMessage |
| | 60 | | #endif |
| | 61 | | { |
| | 62 | | private static readonly pb::MessageParser<SubscriptionRequest> _parser = new pb::MessageParser<SubscriptionRequest>( |
| | 63 | | private pb::UnknownFieldSet _unknownFields; |
| | 64 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 65 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 66 | | public static pb::MessageParser<SubscriptionRequest> Parser { get { return _parser; } } |
| | 67 | |
|
| | 68 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 69 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 70 | | public static pbr::MessageDescriptor Descriptor { |
| | 71 | | get { return global::Decentraland.Bff.TopicsServiceReflection.Descriptor.MessageTypes[0]; } |
| | 72 | | } |
| | 73 | |
|
| | 74 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 75 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 76 | | pbr::MessageDescriptor pb::IMessage.Descriptor { |
| | 77 | | get { return Descriptor; } |
| | 78 | | } |
| | 79 | |
|
| | 80 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 81 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 82 | | public SubscriptionRequest() { |
| | 83 | | OnConstruction(); |
| | 84 | | } |
| | 85 | |
|
| | 86 | | partial void OnConstruction(); |
| | 87 | |
|
| | 88 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 89 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 90 | | public SubscriptionRequest(SubscriptionRequest other) : this() { |
| | 91 | | topic_ = other.topic_; |
| | 92 | | _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); |
| | 93 | | } |
| | 94 | |
|
| | 95 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 96 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 97 | | public SubscriptionRequest Clone() { |
| | 98 | | return new SubscriptionRequest(this); |
| | 99 | | } |
| | 100 | |
|
| | 101 | | /// <summary>Field number for the "topic" field.</summary> |
| | 102 | | public const int TopicFieldNumber = 1; |
| | 103 | | private string topic_ = ""; |
| | 104 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 105 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 106 | | public string Topic { |
| | 107 | | get { return topic_; } |
| | 108 | | set { |
| | 109 | | topic_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); |
| | 110 | | } |
| | 111 | | } |
| | 112 | |
|
| | 113 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 114 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 115 | | public override bool Equals(object other) { |
| | 116 | | return Equals(other as SubscriptionRequest); |
| | 117 | | } |
| | 118 | |
|
| | 119 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 120 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 121 | | public bool Equals(SubscriptionRequest other) { |
| | 122 | | if (ReferenceEquals(other, null)) { |
| | 123 | | return false; |
| | 124 | | } |
| | 125 | | if (ReferenceEquals(other, this)) { |
| | 126 | | return true; |
| | 127 | | } |
| | 128 | | if (Topic != other.Topic) return false; |
| | 129 | | return Equals(_unknownFields, other._unknownFields); |
| | 130 | | } |
| | 131 | |
|
| | 132 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 133 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 134 | | public override int GetHashCode() { |
| | 135 | | int hash = 1; |
| | 136 | | if (Topic.Length != 0) hash ^= Topic.GetHashCode(); |
| | 137 | | if (_unknownFields != null) { |
| | 138 | | hash ^= _unknownFields.GetHashCode(); |
| | 139 | | } |
| | 140 | | return hash; |
| | 141 | | } |
| | 142 | |
|
| | 143 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 144 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 145 | | public override string ToString() { |
| | 146 | | return pb::JsonFormatter.ToDiagnosticString(this); |
| | 147 | | } |
| | 148 | |
|
| | 149 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 150 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 151 | | public void WriteTo(pb::CodedOutputStream output) { |
| | 152 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| | 153 | | output.WriteRawMessage(this); |
| | 154 | | #else |
| | 155 | | if (Topic.Length != 0) { |
| | 156 | | output.WriteRawTag(10); |
| | 157 | | output.WriteString(Topic); |
| | 158 | | } |
| | 159 | | if (_unknownFields != null) { |
| | 160 | | _unknownFields.WriteTo(output); |
| | 161 | | } |
| | 162 | | #endif |
| | 163 | | } |
| | 164 | |
|
| | 165 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| | 166 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 167 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 168 | | void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { |
| | 169 | | if (Topic.Length != 0) { |
| | 170 | | output.WriteRawTag(10); |
| | 171 | | output.WriteString(Topic); |
| | 172 | | } |
| | 173 | | if (_unknownFields != null) { |
| | 174 | | _unknownFields.WriteTo(ref output); |
| | 175 | | } |
| | 176 | | } |
| | 177 | | #endif |
| | 178 | |
|
| | 179 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 180 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 181 | | public int CalculateSize() { |
| | 182 | | int size = 0; |
| | 183 | | if (Topic.Length != 0) { |
| | 184 | | size += 1 + pb::CodedOutputStream.ComputeStringSize(Topic); |
| | 185 | | } |
| | 186 | | if (_unknownFields != null) { |
| | 187 | | size += _unknownFields.CalculateSize(); |
| | 188 | | } |
| | 189 | | return size; |
| | 190 | | } |
| | 191 | |
|
| | 192 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 193 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 194 | | public void MergeFrom(SubscriptionRequest other) { |
| | 195 | | if (other == null) { |
| | 196 | | return; |
| | 197 | | } |
| | 198 | | if (other.Topic.Length != 0) { |
| | 199 | | Topic = other.Topic; |
| | 200 | | } |
| | 201 | | _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); |
| | 202 | | } |
| | 203 | |
|
| | 204 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 205 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 206 | | public void MergeFrom(pb::CodedInputStream input) { |
| | 207 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| | 208 | | input.ReadRawMessage(this); |
| | 209 | | #else |
| | 210 | | uint tag; |
| | 211 | | while ((tag = input.ReadTag()) != 0) { |
| | 212 | | switch(tag) { |
| | 213 | | default: |
| | 214 | | _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); |
| | 215 | | break; |
| | 216 | | case 10: { |
| | 217 | | Topic = input.ReadString(); |
| | 218 | | break; |
| | 219 | | } |
| | 220 | | } |
| | 221 | | } |
| | 222 | | #endif |
| | 223 | | } |
| | 224 | |
|
| | 225 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| | 226 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 227 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 228 | | void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { |
| | 229 | | uint tag; |
| | 230 | | while ((tag = input.ReadTag()) != 0) { |
| | 231 | | switch(tag) { |
| | 232 | | default: |
| | 233 | | _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); |
| | 234 | | break; |
| | 235 | | case 10: { |
| | 236 | | Topic = input.ReadString(); |
| | 237 | | break; |
| | 238 | | } |
| | 239 | | } |
| | 240 | | } |
| | 241 | | } |
| | 242 | | #endif |
| | 243 | |
|
| | 244 | | } |
| | 245 | |
|
| | 246 | | public sealed partial class PeerTopicSubscriptionResultElem : pb::IMessage<PeerTopicSubscriptionResultElem> |
| | 247 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| | 248 | | , pb::IBufferMessage |
| | 249 | | #endif |
| | 250 | | { |
| | 251 | | private static readonly pb::MessageParser<PeerTopicSubscriptionResultElem> _parser = new pb::MessageParser<PeerTopic |
| | 252 | | private pb::UnknownFieldSet _unknownFields; |
| | 253 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 254 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 255 | | public static pb::MessageParser<PeerTopicSubscriptionResultElem> Parser { get { return _parser; } } |
| | 256 | |
|
| | 257 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 258 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 259 | | public static pbr::MessageDescriptor Descriptor { |
| | 260 | | get { return global::Decentraland.Bff.TopicsServiceReflection.Descriptor.MessageTypes[1]; } |
| | 261 | | } |
| | 262 | |
|
| | 263 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 264 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 265 | | pbr::MessageDescriptor pb::IMessage.Descriptor { |
| | 266 | | get { return Descriptor; } |
| | 267 | | } |
| | 268 | |
|
| | 269 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 270 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 271 | | public PeerTopicSubscriptionResultElem() { |
| | 272 | | OnConstruction(); |
| | 273 | | } |
| | 274 | |
|
| | 275 | | partial void OnConstruction(); |
| | 276 | |
|
| | 277 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 278 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 279 | | public PeerTopicSubscriptionResultElem(PeerTopicSubscriptionResultElem other) : this() { |
| | 280 | | payload_ = other.payload_; |
| | 281 | | topic_ = other.topic_; |
| | 282 | | sender_ = other.sender_; |
| | 283 | | _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); |
| | 284 | | } |
| | 285 | |
|
| | 286 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 287 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 288 | | public PeerTopicSubscriptionResultElem Clone() { |
| | 289 | | return new PeerTopicSubscriptionResultElem(this); |
| | 290 | | } |
| | 291 | |
|
| | 292 | | /// <summary>Field number for the "payload" field.</summary> |
| | 293 | | public const int PayloadFieldNumber = 1; |
| | 294 | | private pb::ByteString payload_ = pb::ByteString.Empty; |
| | 295 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 296 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 297 | | public pb::ByteString Payload { |
| | 298 | | get { return payload_; } |
| | 299 | | set { |
| | 300 | | payload_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); |
| | 301 | | } |
| | 302 | | } |
| | 303 | |
|
| | 304 | | /// <summary>Field number for the "topic" field.</summary> |
| | 305 | | public const int TopicFieldNumber = 2; |
| | 306 | | private string topic_ = ""; |
| | 307 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 308 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 309 | | public string Topic { |
| | 310 | | get { return topic_; } |
| | 311 | | set { |
| | 312 | | topic_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); |
| | 313 | | } |
| | 314 | | } |
| | 315 | |
|
| | 316 | | /// <summary>Field number for the "sender" field.</summary> |
| | 317 | | public const int SenderFieldNumber = 3; |
| | 318 | | private string sender_ = ""; |
| | 319 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 320 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 321 | | public string Sender { |
| | 322 | | get { return sender_; } |
| | 323 | | set { |
| | 324 | | sender_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); |
| | 325 | | } |
| | 326 | | } |
| | 327 | |
|
| | 328 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 329 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 330 | | public override bool Equals(object other) { |
| | 331 | | return Equals(other as PeerTopicSubscriptionResultElem); |
| | 332 | | } |
| | 333 | |
|
| | 334 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 335 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 336 | | public bool Equals(PeerTopicSubscriptionResultElem other) { |
| | 337 | | if (ReferenceEquals(other, null)) { |
| | 338 | | return false; |
| | 339 | | } |
| | 340 | | if (ReferenceEquals(other, this)) { |
| | 341 | | return true; |
| | 342 | | } |
| | 343 | | if (Payload != other.Payload) return false; |
| | 344 | | if (Topic != other.Topic) return false; |
| | 345 | | if (Sender != other.Sender) return false; |
| | 346 | | return Equals(_unknownFields, other._unknownFields); |
| | 347 | | } |
| | 348 | |
|
| | 349 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 350 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 351 | | public override int GetHashCode() { |
| | 352 | | int hash = 1; |
| | 353 | | if (Payload.Length != 0) hash ^= Payload.GetHashCode(); |
| | 354 | | if (Topic.Length != 0) hash ^= Topic.GetHashCode(); |
| | 355 | | if (Sender.Length != 0) hash ^= Sender.GetHashCode(); |
| | 356 | | if (_unknownFields != null) { |
| | 357 | | hash ^= _unknownFields.GetHashCode(); |
| | 358 | | } |
| | 359 | | return hash; |
| | 360 | | } |
| | 361 | |
|
| | 362 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 363 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 364 | | public override string ToString() { |
| | 365 | | return pb::JsonFormatter.ToDiagnosticString(this); |
| | 366 | | } |
| | 367 | |
|
| | 368 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 369 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 370 | | public void WriteTo(pb::CodedOutputStream output) { |
| | 371 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| | 372 | | output.WriteRawMessage(this); |
| | 373 | | #else |
| | 374 | | if (Payload.Length != 0) { |
| | 375 | | output.WriteRawTag(10); |
| | 376 | | output.WriteBytes(Payload); |
| | 377 | | } |
| | 378 | | if (Topic.Length != 0) { |
| | 379 | | output.WriteRawTag(18); |
| | 380 | | output.WriteString(Topic); |
| | 381 | | } |
| | 382 | | if (Sender.Length != 0) { |
| | 383 | | output.WriteRawTag(26); |
| | 384 | | output.WriteString(Sender); |
| | 385 | | } |
| | 386 | | if (_unknownFields != null) { |
| | 387 | | _unknownFields.WriteTo(output); |
| | 388 | | } |
| | 389 | | #endif |
| | 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 (Payload.Length != 0) { |
| | 397 | | output.WriteRawTag(10); |
| | 398 | | output.WriteBytes(Payload); |
| | 399 | | } |
| | 400 | | if (Topic.Length != 0) { |
| | 401 | | output.WriteRawTag(18); |
| | 402 | | output.WriteString(Topic); |
| | 403 | | } |
| | 404 | | if (Sender.Length != 0) { |
| | 405 | | output.WriteRawTag(26); |
| | 406 | | output.WriteString(Sender); |
| | 407 | | } |
| | 408 | | if (_unknownFields != null) { |
| | 409 | | _unknownFields.WriteTo(ref output); |
| | 410 | | } |
| | 411 | | } |
| | 412 | | #endif |
| | 413 | |
|
| | 414 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 415 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 416 | | public int CalculateSize() { |
| | 417 | | int size = 0; |
| | 418 | | if (Payload.Length != 0) { |
| | 419 | | size += 1 + pb::CodedOutputStream.ComputeBytesSize(Payload); |
| | 420 | | } |
| | 421 | | if (Topic.Length != 0) { |
| | 422 | | size += 1 + pb::CodedOutputStream.ComputeStringSize(Topic); |
| | 423 | | } |
| | 424 | | if (Sender.Length != 0) { |
| | 425 | | size += 1 + pb::CodedOutputStream.ComputeStringSize(Sender); |
| | 426 | | } |
| | 427 | | if (_unknownFields != null) { |
| | 428 | | size += _unknownFields.CalculateSize(); |
| | 429 | | } |
| | 430 | | return size; |
| | 431 | | } |
| | 432 | |
|
| | 433 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 434 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 435 | | public void MergeFrom(PeerTopicSubscriptionResultElem other) { |
| | 436 | | if (other == null) { |
| | 437 | | return; |
| | 438 | | } |
| | 439 | | if (other.Payload.Length != 0) { |
| | 440 | | Payload = other.Payload; |
| | 441 | | } |
| | 442 | | if (other.Topic.Length != 0) { |
| | 443 | | Topic = other.Topic; |
| | 444 | | } |
| | 445 | | if (other.Sender.Length != 0) { |
| | 446 | | Sender = other.Sender; |
| | 447 | | } |
| | 448 | | _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); |
| | 449 | | } |
| | 450 | |
|
| | 451 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 452 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 453 | | public void MergeFrom(pb::CodedInputStream input) { |
| | 454 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| | 455 | | input.ReadRawMessage(this); |
| | 456 | | #else |
| | 457 | | uint tag; |
| | 458 | | while ((tag = input.ReadTag()) != 0) { |
| | 459 | | switch(tag) { |
| | 460 | | default: |
| | 461 | | _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); |
| | 462 | | break; |
| | 463 | | case 10: { |
| | 464 | | Payload = input.ReadBytes(); |
| | 465 | | break; |
| | 466 | | } |
| | 467 | | case 18: { |
| | 468 | | Topic = input.ReadString(); |
| | 469 | | break; |
| | 470 | | } |
| | 471 | | case 26: { |
| | 472 | | Sender = input.ReadString(); |
| | 473 | | break; |
| | 474 | | } |
| | 475 | | } |
| | 476 | | } |
| | 477 | | #endif |
| | 478 | | } |
| | 479 | |
|
| | 480 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| | 481 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 482 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 483 | | void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { |
| | 484 | | uint tag; |
| | 485 | | while ((tag = input.ReadTag()) != 0) { |
| | 486 | | switch(tag) { |
| | 487 | | default: |
| | 488 | | _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); |
| | 489 | | break; |
| | 490 | | case 10: { |
| | 491 | | Payload = input.ReadBytes(); |
| | 492 | | break; |
| | 493 | | } |
| | 494 | | case 18: { |
| | 495 | | Topic = input.ReadString(); |
| | 496 | | break; |
| | 497 | | } |
| | 498 | | case 26: { |
| | 499 | | Sender = input.ReadString(); |
| | 500 | | break; |
| | 501 | | } |
| | 502 | | } |
| | 503 | | } |
| | 504 | | } |
| | 505 | | #endif |
| | 506 | |
|
| | 507 | | } |
| | 508 | |
|
| | 509 | | public sealed partial class SystemTopicSubscriptionResultElem : pb::IMessage<SystemTopicSubscriptionResultElem> |
| | 510 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| | 511 | | , pb::IBufferMessage |
| | 512 | | #endif |
| | 513 | | { |
| | 514 | | private static readonly pb::MessageParser<SystemTopicSubscriptionResultElem> _parser = new pb::MessageParser<SystemT |
| | 515 | | private pb::UnknownFieldSet _unknownFields; |
| | 516 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 517 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 518 | | public static pb::MessageParser<SystemTopicSubscriptionResultElem> Parser { get { return _parser; } } |
| | 519 | |
|
| | 520 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 521 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 522 | | public static pbr::MessageDescriptor Descriptor { |
| | 523 | | get { return global::Decentraland.Bff.TopicsServiceReflection.Descriptor.MessageTypes[2]; } |
| | 524 | | } |
| | 525 | |
|
| | 526 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 527 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 528 | | pbr::MessageDescriptor pb::IMessage.Descriptor { |
| | 529 | | get { return Descriptor; } |
| | 530 | | } |
| | 531 | |
|
| | 532 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 533 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 534 | | public SystemTopicSubscriptionResultElem() { |
| | 535 | | OnConstruction(); |
| | 536 | | } |
| | 537 | |
|
| | 538 | | partial void OnConstruction(); |
| | 539 | |
|
| | 540 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 541 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 542 | | public SystemTopicSubscriptionResultElem(SystemTopicSubscriptionResultElem other) : this() { |
| | 543 | | payload_ = other.payload_; |
| | 544 | | topic_ = other.topic_; |
| | 545 | | _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); |
| | 546 | | } |
| | 547 | |
|
| | 548 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 549 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 550 | | public SystemTopicSubscriptionResultElem Clone() { |
| | 551 | | return new SystemTopicSubscriptionResultElem(this); |
| | 552 | | } |
| | 553 | |
|
| | 554 | | /// <summary>Field number for the "payload" field.</summary> |
| | 555 | | public const int PayloadFieldNumber = 1; |
| | 556 | | private pb::ByteString payload_ = pb::ByteString.Empty; |
| | 557 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 558 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 559 | | public pb::ByteString Payload { |
| | 560 | | get { return payload_; } |
| | 561 | | set { |
| | 562 | | payload_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); |
| | 563 | | } |
| | 564 | | } |
| | 565 | |
|
| | 566 | | /// <summary>Field number for the "topic" field.</summary> |
| | 567 | | public const int TopicFieldNumber = 2; |
| | 568 | | private string topic_ = ""; |
| | 569 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 570 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 571 | | public string Topic { |
| | 572 | | get { return topic_; } |
| | 573 | | set { |
| | 574 | | topic_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); |
| | 575 | | } |
| | 576 | | } |
| | 577 | |
|
| | 578 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 579 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 580 | | public override bool Equals(object other) { |
| | 581 | | return Equals(other as SystemTopicSubscriptionResultElem); |
| | 582 | | } |
| | 583 | |
|
| | 584 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 585 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 586 | | public bool Equals(SystemTopicSubscriptionResultElem other) { |
| | 587 | | if (ReferenceEquals(other, null)) { |
| | 588 | | return false; |
| | 589 | | } |
| | 590 | | if (ReferenceEquals(other, this)) { |
| | 591 | | return true; |
| | 592 | | } |
| | 593 | | if (Payload != other.Payload) return false; |
| | 594 | | if (Topic != other.Topic) return false; |
| | 595 | | return Equals(_unknownFields, other._unknownFields); |
| | 596 | | } |
| | 597 | |
|
| | 598 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 599 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 600 | | public override int GetHashCode() { |
| | 601 | | int hash = 1; |
| | 602 | | if (Payload.Length != 0) hash ^= Payload.GetHashCode(); |
| | 603 | | if (Topic.Length != 0) hash ^= Topic.GetHashCode(); |
| | 604 | | if (_unknownFields != null) { |
| | 605 | | hash ^= _unknownFields.GetHashCode(); |
| | 606 | | } |
| | 607 | | return hash; |
| | 608 | | } |
| | 609 | |
|
| | 610 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 611 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 612 | | public override string ToString() { |
| | 613 | | return pb::JsonFormatter.ToDiagnosticString(this); |
| | 614 | | } |
| | 615 | |
|
| | 616 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 617 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 618 | | public void WriteTo(pb::CodedOutputStream output) { |
| | 619 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| | 620 | | output.WriteRawMessage(this); |
| | 621 | | #else |
| | 622 | | if (Payload.Length != 0) { |
| | 623 | | output.WriteRawTag(10); |
| | 624 | | output.WriteBytes(Payload); |
| | 625 | | } |
| | 626 | | if (Topic.Length != 0) { |
| | 627 | | output.WriteRawTag(18); |
| | 628 | | output.WriteString(Topic); |
| | 629 | | } |
| | 630 | | if (_unknownFields != null) { |
| | 631 | | _unknownFields.WriteTo(output); |
| | 632 | | } |
| | 633 | | #endif |
| | 634 | | } |
| | 635 | |
|
| | 636 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| | 637 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 638 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 639 | | void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { |
| | 640 | | if (Payload.Length != 0) { |
| | 641 | | output.WriteRawTag(10); |
| | 642 | | output.WriteBytes(Payload); |
| | 643 | | } |
| | 644 | | if (Topic.Length != 0) { |
| | 645 | | output.WriteRawTag(18); |
| | 646 | | output.WriteString(Topic); |
| | 647 | | } |
| | 648 | | if (_unknownFields != null) { |
| | 649 | | _unknownFields.WriteTo(ref output); |
| | 650 | | } |
| | 651 | | } |
| | 652 | | #endif |
| | 653 | |
|
| | 654 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 655 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 656 | | public int CalculateSize() { |
| | 657 | | int size = 0; |
| | 658 | | if (Payload.Length != 0) { |
| | 659 | | size += 1 + pb::CodedOutputStream.ComputeBytesSize(Payload); |
| | 660 | | } |
| | 661 | | if (Topic.Length != 0) { |
| | 662 | | size += 1 + pb::CodedOutputStream.ComputeStringSize(Topic); |
| | 663 | | } |
| | 664 | | if (_unknownFields != null) { |
| | 665 | | size += _unknownFields.CalculateSize(); |
| | 666 | | } |
| | 667 | | return size; |
| | 668 | | } |
| | 669 | |
|
| | 670 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 671 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 672 | | public void MergeFrom(SystemTopicSubscriptionResultElem other) { |
| | 673 | | if (other == null) { |
| | 674 | | return; |
| | 675 | | } |
| | 676 | | if (other.Payload.Length != 0) { |
| | 677 | | Payload = other.Payload; |
| | 678 | | } |
| | 679 | | if (other.Topic.Length != 0) { |
| | 680 | | Topic = other.Topic; |
| | 681 | | } |
| | 682 | | _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); |
| | 683 | | } |
| | 684 | |
|
| | 685 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 686 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 687 | | public void MergeFrom(pb::CodedInputStream input) { |
| | 688 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| | 689 | | input.ReadRawMessage(this); |
| | 690 | | #else |
| | 691 | | uint tag; |
| | 692 | | while ((tag = input.ReadTag()) != 0) { |
| | 693 | | switch(tag) { |
| | 694 | | default: |
| | 695 | | _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); |
| | 696 | | break; |
| | 697 | | case 10: { |
| | 698 | | Payload = input.ReadBytes(); |
| | 699 | | break; |
| | 700 | | } |
| | 701 | | case 18: { |
| | 702 | | Topic = input.ReadString(); |
| | 703 | | break; |
| | 704 | | } |
| | 705 | | } |
| | 706 | | } |
| | 707 | | #endif |
| | 708 | | } |
| | 709 | |
|
| | 710 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| | 711 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 712 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 713 | | void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { |
| | 714 | | uint tag; |
| | 715 | | while ((tag = input.ReadTag()) != 0) { |
| | 716 | | switch(tag) { |
| | 717 | | default: |
| | 718 | | _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); |
| | 719 | | break; |
| | 720 | | case 10: { |
| | 721 | | Payload = input.ReadBytes(); |
| | 722 | | break; |
| | 723 | | } |
| | 724 | | case 18: { |
| | 725 | | Topic = input.ReadString(); |
| | 726 | | break; |
| | 727 | | } |
| | 728 | | } |
| | 729 | | } |
| | 730 | | } |
| | 731 | | #endif |
| | 732 | |
|
| | 733 | | } |
| | 734 | |
|
| | 735 | | public sealed partial class PublishToTopicRequest : pb::IMessage<PublishToTopicRequest> |
| | 736 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| | 737 | | , pb::IBufferMessage |
| | 738 | | #endif |
| | 739 | | { |
| 0 | 740 | | private static readonly pb::MessageParser<PublishToTopicRequest> _parser = new pb::MessageParser<PublishToTopicReque |
| | 741 | | private pb::UnknownFieldSet _unknownFields; |
| | 742 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 743 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| 0 | 744 | | public static pb::MessageParser<PublishToTopicRequest> Parser { get { return _parser; } } |
| | 745 | |
|
| | 746 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 747 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 748 | | public static pbr::MessageDescriptor Descriptor { |
| 0 | 749 | | get { return global::Decentraland.Bff.TopicsServiceReflection.Descriptor.MessageTypes[3]; } |
| | 750 | | } |
| | 751 | |
|
| | 752 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 753 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 754 | | pbr::MessageDescriptor pb::IMessage.Descriptor { |
| 0 | 755 | | get { return Descriptor; } |
| | 756 | | } |
| | 757 | |
|
| | 758 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 759 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| 0 | 760 | | public PublishToTopicRequest() { |
| | 761 | | OnConstruction(); |
| 0 | 762 | | } |
| | 763 | |
|
| | 764 | | partial void OnConstruction(); |
| | 765 | |
|
| | 766 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 767 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| 0 | 768 | | public PublishToTopicRequest(PublishToTopicRequest other) : this() { |
| 0 | 769 | | topic_ = other.topic_; |
| 0 | 770 | | payload_ = other.payload_; |
| 0 | 771 | | _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); |
| 0 | 772 | | } |
| | 773 | |
|
| | 774 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 775 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 776 | | public PublishToTopicRequest Clone() { |
| 0 | 777 | | return new PublishToTopicRequest(this); |
| | 778 | | } |
| | 779 | |
|
| | 780 | | /// <summary>Field number for the "topic" field.</summary> |
| | 781 | | public const int TopicFieldNumber = 1; |
| 0 | 782 | | private string topic_ = ""; |
| | 783 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 784 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 785 | | public string Topic { |
| 0 | 786 | | get { return topic_; } |
| | 787 | | set { |
| 0 | 788 | | topic_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); |
| 0 | 789 | | } |
| | 790 | | } |
| | 791 | |
|
| | 792 | | /// <summary>Field number for the "payload" field.</summary> |
| | 793 | | public const int PayloadFieldNumber = 2; |
| 0 | 794 | | private pb::ByteString payload_ = pb::ByteString.Empty; |
| | 795 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 796 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 797 | | public pb::ByteString Payload { |
| 0 | 798 | | get { return payload_; } |
| | 799 | | set { |
| 0 | 800 | | payload_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); |
| 0 | 801 | | } |
| | 802 | | } |
| | 803 | |
|
| | 804 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 805 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 806 | | public override bool Equals(object other) { |
| 0 | 807 | | return Equals(other as PublishToTopicRequest); |
| | 808 | | } |
| | 809 | |
|
| | 810 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 811 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 812 | | public bool Equals(PublishToTopicRequest other) { |
| 0 | 813 | | if (ReferenceEquals(other, null)) { |
| 0 | 814 | | return false; |
| | 815 | | } |
| 0 | 816 | | if (ReferenceEquals(other, this)) { |
| 0 | 817 | | return true; |
| | 818 | | } |
| 0 | 819 | | if (Topic != other.Topic) return false; |
| 0 | 820 | | if (Payload != other.Payload) return false; |
| 0 | 821 | | return Equals(_unknownFields, other._unknownFields); |
| | 822 | | } |
| | 823 | |
|
| | 824 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 825 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 826 | | public override int GetHashCode() { |
| 0 | 827 | | int hash = 1; |
| 0 | 828 | | if (Topic.Length != 0) hash ^= Topic.GetHashCode(); |
| 0 | 829 | | if (Payload.Length != 0) hash ^= Payload.GetHashCode(); |
| 0 | 830 | | if (_unknownFields != null) { |
| 0 | 831 | | hash ^= _unknownFields.GetHashCode(); |
| | 832 | | } |
| 0 | 833 | | return hash; |
| | 834 | | } |
| | 835 | |
|
| | 836 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 837 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 838 | | public override string ToString() { |
| 0 | 839 | | return pb::JsonFormatter.ToDiagnosticString(this); |
| | 840 | | } |
| | 841 | |
|
| | 842 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 843 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 844 | | public void WriteTo(pb::CodedOutputStream output) { |
| | 845 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| | 846 | | output.WriteRawMessage(this); |
| | 847 | | #else |
| 0 | 848 | | if (Topic.Length != 0) { |
| 0 | 849 | | output.WriteRawTag(10); |
| 0 | 850 | | output.WriteString(Topic); |
| | 851 | | } |
| 0 | 852 | | if (Payload.Length != 0) { |
| 0 | 853 | | output.WriteRawTag(18); |
| 0 | 854 | | output.WriteBytes(Payload); |
| | 855 | | } |
| 0 | 856 | | if (_unknownFields != null) { |
| 0 | 857 | | _unknownFields.WriteTo(output); |
| | 858 | | } |
| | 859 | | #endif |
| 0 | 860 | | } |
| | 861 | |
|
| | 862 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| | 863 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 864 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 865 | | void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { |
| | 866 | | if (Topic.Length != 0) { |
| | 867 | | output.WriteRawTag(10); |
| | 868 | | output.WriteString(Topic); |
| | 869 | | } |
| | 870 | | if (Payload.Length != 0) { |
| | 871 | | output.WriteRawTag(18); |
| | 872 | | output.WriteBytes(Payload); |
| | 873 | | } |
| | 874 | | if (_unknownFields != null) { |
| | 875 | | _unknownFields.WriteTo(ref output); |
| | 876 | | } |
| | 877 | | } |
| | 878 | | #endif |
| | 879 | |
|
| | 880 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 881 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 882 | | public int CalculateSize() { |
| 0 | 883 | | int size = 0; |
| 0 | 884 | | if (Topic.Length != 0) { |
| 0 | 885 | | size += 1 + pb::CodedOutputStream.ComputeStringSize(Topic); |
| | 886 | | } |
| 0 | 887 | | if (Payload.Length != 0) { |
| 0 | 888 | | size += 1 + pb::CodedOutputStream.ComputeBytesSize(Payload); |
| | 889 | | } |
| 0 | 890 | | if (_unknownFields != null) { |
| 0 | 891 | | size += _unknownFields.CalculateSize(); |
| | 892 | | } |
| 0 | 893 | | return size; |
| | 894 | | } |
| | 895 | |
|
| | 896 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 897 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 898 | | public void MergeFrom(PublishToTopicRequest other) { |
| 0 | 899 | | if (other == null) { |
| 0 | 900 | | return; |
| | 901 | | } |
| 0 | 902 | | if (other.Topic.Length != 0) { |
| 0 | 903 | | Topic = other.Topic; |
| | 904 | | } |
| 0 | 905 | | if (other.Payload.Length != 0) { |
| 0 | 906 | | Payload = other.Payload; |
| | 907 | | } |
| 0 | 908 | | _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); |
| 0 | 909 | | } |
| | 910 | |
|
| | 911 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 912 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 913 | | public void MergeFrom(pb::CodedInputStream input) { |
| | 914 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| | 915 | | input.ReadRawMessage(this); |
| | 916 | | #else |
| | 917 | | uint tag; |
| 0 | 918 | | while ((tag = input.ReadTag()) != 0) { |
| | 919 | | switch(tag) { |
| | 920 | | default: |
| 0 | 921 | | _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); |
| 0 | 922 | | break; |
| | 923 | | case 10: { |
| 0 | 924 | | Topic = input.ReadString(); |
| 0 | 925 | | break; |
| | 926 | | } |
| | 927 | | case 18: { |
| 0 | 928 | | Payload = input.ReadBytes(); |
| | 929 | | break; |
| | 930 | | } |
| | 931 | | } |
| | 932 | | } |
| | 933 | | #endif |
| 0 | 934 | | } |
| | 935 | |
|
| | 936 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| | 937 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 938 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 939 | | void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { |
| | 940 | | uint tag; |
| | 941 | | while ((tag = input.ReadTag()) != 0) { |
| | 942 | | switch(tag) { |
| | 943 | | default: |
| | 944 | | _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); |
| | 945 | | break; |
| | 946 | | case 10: { |
| | 947 | | Topic = input.ReadString(); |
| | 948 | | break; |
| | 949 | | } |
| | 950 | | case 18: { |
| | 951 | | Payload = input.ReadBytes(); |
| | 952 | | break; |
| | 953 | | } |
| | 954 | | } |
| | 955 | | } |
| | 956 | | } |
| | 957 | | #endif |
| | 958 | |
|
| | 959 | | } |
| | 960 | |
|
| | 961 | | public sealed partial class PublishToTopicResult : pb::IMessage<PublishToTopicResult> |
| | 962 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| | 963 | | , pb::IBufferMessage |
| | 964 | | #endif |
| | 965 | | { |
| | 966 | | private static readonly pb::MessageParser<PublishToTopicResult> _parser = new pb::MessageParser<PublishToTopicResult |
| | 967 | | private pb::UnknownFieldSet _unknownFields; |
| | 968 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 969 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 970 | | public static pb::MessageParser<PublishToTopicResult> Parser { get { return _parser; } } |
| | 971 | |
|
| | 972 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 973 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 974 | | public static pbr::MessageDescriptor Descriptor { |
| | 975 | | get { return global::Decentraland.Bff.TopicsServiceReflection.Descriptor.MessageTypes[4]; } |
| | 976 | | } |
| | 977 | |
|
| | 978 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 979 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 980 | | pbr::MessageDescriptor pb::IMessage.Descriptor { |
| | 981 | | get { return Descriptor; } |
| | 982 | | } |
| | 983 | |
|
| | 984 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 985 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 986 | | public PublishToTopicResult() { |
| | 987 | | OnConstruction(); |
| | 988 | | } |
| | 989 | |
|
| | 990 | | partial void OnConstruction(); |
| | 991 | |
|
| | 992 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 993 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 994 | | public PublishToTopicResult(PublishToTopicResult other) : this() { |
| | 995 | | ok_ = other.ok_; |
| | 996 | | _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); |
| | 997 | | } |
| | 998 | |
|
| | 999 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 1000 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 1001 | | public PublishToTopicResult Clone() { |
| | 1002 | | return new PublishToTopicResult(this); |
| | 1003 | | } |
| | 1004 | |
|
| | 1005 | | /// <summary>Field number for the "ok" field.</summary> |
| | 1006 | | public const int OkFieldNumber = 1; |
| | 1007 | | private bool ok_; |
| | 1008 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 1009 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 1010 | | public bool Ok { |
| | 1011 | | get { return ok_; } |
| | 1012 | | set { |
| | 1013 | | ok_ = value; |
| | 1014 | | } |
| | 1015 | | } |
| | 1016 | |
|
| | 1017 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 1018 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 1019 | | public override bool Equals(object other) { |
| | 1020 | | return Equals(other as PublishToTopicResult); |
| | 1021 | | } |
| | 1022 | |
|
| | 1023 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 1024 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 1025 | | public bool Equals(PublishToTopicResult other) { |
| | 1026 | | if (ReferenceEquals(other, null)) { |
| | 1027 | | return false; |
| | 1028 | | } |
| | 1029 | | if (ReferenceEquals(other, this)) { |
| | 1030 | | return true; |
| | 1031 | | } |
| | 1032 | | if (Ok != other.Ok) return false; |
| | 1033 | | return Equals(_unknownFields, other._unknownFields); |
| | 1034 | | } |
| | 1035 | |
|
| | 1036 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 1037 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 1038 | | public override int GetHashCode() { |
| | 1039 | | int hash = 1; |
| | 1040 | | if (Ok != false) hash ^= Ok.GetHashCode(); |
| | 1041 | | if (_unknownFields != null) { |
| | 1042 | | hash ^= _unknownFields.GetHashCode(); |
| | 1043 | | } |
| | 1044 | | return hash; |
| | 1045 | | } |
| | 1046 | |
|
| | 1047 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 1048 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 1049 | | public override string ToString() { |
| | 1050 | | return pb::JsonFormatter.ToDiagnosticString(this); |
| | 1051 | | } |
| | 1052 | |
|
| | 1053 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 1054 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 1055 | | public void WriteTo(pb::CodedOutputStream output) { |
| | 1056 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| | 1057 | | output.WriteRawMessage(this); |
| | 1058 | | #else |
| | 1059 | | if (Ok != false) { |
| | 1060 | | output.WriteRawTag(8); |
| | 1061 | | output.WriteBool(Ok); |
| | 1062 | | } |
| | 1063 | | if (_unknownFields != null) { |
| | 1064 | | _unknownFields.WriteTo(output); |
| | 1065 | | } |
| | 1066 | | #endif |
| | 1067 | | } |
| | 1068 | |
|
| | 1069 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| | 1070 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 1071 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 1072 | | void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { |
| | 1073 | | if (Ok != false) { |
| | 1074 | | output.WriteRawTag(8); |
| | 1075 | | output.WriteBool(Ok); |
| | 1076 | | } |
| | 1077 | | if (_unknownFields != null) { |
| | 1078 | | _unknownFields.WriteTo(ref output); |
| | 1079 | | } |
| | 1080 | | } |
| | 1081 | | #endif |
| | 1082 | |
|
| | 1083 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 1084 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 1085 | | public int CalculateSize() { |
| | 1086 | | int size = 0; |
| | 1087 | | if (Ok != false) { |
| | 1088 | | size += 1 + 1; |
| | 1089 | | } |
| | 1090 | | if (_unknownFields != null) { |
| | 1091 | | size += _unknownFields.CalculateSize(); |
| | 1092 | | } |
| | 1093 | | return size; |
| | 1094 | | } |
| | 1095 | |
|
| | 1096 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 1097 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 1098 | | public void MergeFrom(PublishToTopicResult other) { |
| | 1099 | | if (other == null) { |
| | 1100 | | return; |
| | 1101 | | } |
| | 1102 | | if (other.Ok != false) { |
| | 1103 | | Ok = other.Ok; |
| | 1104 | | } |
| | 1105 | | _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); |
| | 1106 | | } |
| | 1107 | |
|
| | 1108 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 1109 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 1110 | | public void MergeFrom(pb::CodedInputStream input) { |
| | 1111 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| | 1112 | | input.ReadRawMessage(this); |
| | 1113 | | #else |
| | 1114 | | uint tag; |
| | 1115 | | while ((tag = input.ReadTag()) != 0) { |
| | 1116 | | switch(tag) { |
| | 1117 | | default: |
| | 1118 | | _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); |
| | 1119 | | break; |
| | 1120 | | case 8: { |
| | 1121 | | Ok = input.ReadBool(); |
| | 1122 | | break; |
| | 1123 | | } |
| | 1124 | | } |
| | 1125 | | } |
| | 1126 | | #endif |
| | 1127 | | } |
| | 1128 | |
|
| | 1129 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| | 1130 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 1131 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 1132 | | void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { |
| | 1133 | | uint tag; |
| | 1134 | | while ((tag = input.ReadTag()) != 0) { |
| | 1135 | | switch(tag) { |
| | 1136 | | default: |
| | 1137 | | _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); |
| | 1138 | | break; |
| | 1139 | | case 8: { |
| | 1140 | | Ok = input.ReadBool(); |
| | 1141 | | break; |
| | 1142 | | } |
| | 1143 | | } |
| | 1144 | | } |
| | 1145 | | } |
| | 1146 | | #endif |
| | 1147 | |
|
| | 1148 | | } |
| | 1149 | |
|
| | 1150 | | #endregion |
| | 1151 | |
|
| | 1152 | | } |
| | 1153 | |
|
| | 1154 | | #endregion Designer generated code |