| | 1 | | // <auto-generated> |
| | 2 | | // Generated by the protocol buffer compiler. DO NOT EDIT! |
| | 3 | | // source: decentraland/renderer/common/friend_request_common.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.Renderer.Common { |
| | 13 | |
|
| | 14 | | /// <summary>Holder for reflection information generated from decentraland/renderer/common/friend_request_common.proto |
| | 15 | | public static partial class FriendRequestCommonReflection { |
| | 16 | |
|
| | 17 | | #region Descriptor |
| | 18 | | /// <summary>File descriptor for decentraland/renderer/common/friend_request_common.proto</summary> |
| | 19 | | public static pbr::FileDescriptor Descriptor { |
| | 20 | | get { return descriptor; } |
| | 21 | | } |
| | 22 | | private static pbr::FileDescriptor descriptor; |
| | 23 | |
|
| | 24 | | static FriendRequestCommonReflection() { |
| | 25 | | byte[] descriptorData = global::System.Convert.FromBase64String( |
| | 26 | | string.Concat( |
| | 27 | | "CjhkZWNlbnRyYWxhbmQvcmVuZGVyZXIvY29tbW9uL2ZyaWVuZF9yZXF1ZXN0", |
| | 28 | | "X2NvbW1vbi5wcm90bxIcZGVjZW50cmFsYW5kLnJlbmRlcmVyLmNvbW1vbiKH", |
| | 29 | | "AQoRRnJpZW5kUmVxdWVzdEluZm8SGQoRZnJpZW5kX3JlcXVlc3RfaWQYASAB", |
| | 30 | | "KAkSEQoJdGltZXN0YW1wGAIgASgEEgwKBGZyb20YAyABKAkSCgoCdG8YBCAB", |
| | 31 | | "KAkSGQoMbWVzc2FnZV9ib2R5GAUgASgJSACIAQFCDwoNX21lc3NhZ2VfYm9k", |
| | 32 | | "eSqwAQoTRnJpZW5kc2hpcEVycm9yQ29kZRIeChpGRUNfVE9PX01BTllfUkVR", |
| | 33 | | "VUVTVFNfU0VOVBAAEh4KGkZFQ19OT1RfRU5PVUdIX1RJTUVfUEFTU0VEEAES", |
| | 34 | | "FAoQRkVDX0JMT0NLRURfVVNFUhACEhkKFUZFQ19OT05fRVhJU1RJTkdfVVNF", |
| | 35 | | "UhADEhcKE0ZFQ19JTlZBTElEX1JFUVVFU1QQBBIPCgtGRUNfVU5LTk9XThAF", |
| | 36 | | "YgZwcm90bzM=")); |
| | 37 | | descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, |
| | 38 | | new pbr::FileDescriptor[] { }, |
| | 39 | | new pbr::GeneratedClrTypeInfo(new[] {typeof(global::Decentraland.Renderer.Common.FriendshipErrorCode), }, null |
| | 40 | | new pbr::GeneratedClrTypeInfo(typeof(global::Decentraland.Renderer.Common.FriendRequestInfo), global::Decent |
| | 41 | | })); |
| | 42 | | } |
| | 43 | | #endregion |
| | 44 | |
|
| | 45 | | } |
| | 46 | | #region Enums |
| | 47 | | public enum FriendshipErrorCode { |
| | 48 | | [pbr::OriginalName("FEC_TOO_MANY_REQUESTS_SENT")] FecTooManyRequestsSent = 0, |
| | 49 | | [pbr::OriginalName("FEC_NOT_ENOUGH_TIME_PASSED")] FecNotEnoughTimePassed = 1, |
| | 50 | | [pbr::OriginalName("FEC_BLOCKED_USER")] FecBlockedUser = 2, |
| | 51 | | [pbr::OriginalName("FEC_NON_EXISTING_USER")] FecNonExistingUser = 3, |
| | 52 | | [pbr::OriginalName("FEC_INVALID_REQUEST")] FecInvalidRequest = 4, |
| | 53 | | [pbr::OriginalName("FEC_UNKNOWN")] FecUnknown = 5, |
| | 54 | | } |
| | 55 | |
|
| | 56 | | #endregion |
| | 57 | |
|
| | 58 | | #region Messages |
| | 59 | | public sealed partial class FriendRequestInfo : pb::IMessage<FriendRequestInfo> |
| | 60 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| | 61 | | , pb::IBufferMessage |
| | 62 | | #endif |
| | 63 | | { |
| 0 | 64 | | private static readonly pb::MessageParser<FriendRequestInfo> _parser = new pb::MessageParser<FriendRequestInfo>(() = |
| | 65 | | private pb::UnknownFieldSet _unknownFields; |
| | 66 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 67 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| 0 | 68 | | public static pb::MessageParser<FriendRequestInfo> Parser { get { return _parser; } } |
| | 69 | |
|
| | 70 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 71 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 72 | | public static pbr::MessageDescriptor Descriptor { |
| 0 | 73 | | get { return global::Decentraland.Renderer.Common.FriendRequestCommonReflection.Descriptor.MessageTypes[0]; } |
| | 74 | | } |
| | 75 | |
|
| | 76 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 77 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 78 | | pbr::MessageDescriptor pb::IMessage.Descriptor { |
| 0 | 79 | | get { return Descriptor; } |
| | 80 | | } |
| | 81 | |
|
| | 82 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 83 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| 0 | 84 | | public FriendRequestInfo() { |
| | 85 | | OnConstruction(); |
| 0 | 86 | | } |
| | 87 | |
|
| | 88 | | partial void OnConstruction(); |
| | 89 | |
|
| | 90 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 91 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| 0 | 92 | | public FriendRequestInfo(FriendRequestInfo other) : this() { |
| 0 | 93 | | friendRequestId_ = other.friendRequestId_; |
| 0 | 94 | | timestamp_ = other.timestamp_; |
| 0 | 95 | | from_ = other.from_; |
| 0 | 96 | | to_ = other.to_; |
| 0 | 97 | | messageBody_ = other.messageBody_; |
| 0 | 98 | | _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); |
| 0 | 99 | | } |
| | 100 | |
|
| | 101 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 102 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 103 | | public FriendRequestInfo Clone() { |
| 0 | 104 | | return new FriendRequestInfo(this); |
| | 105 | | } |
| | 106 | |
|
| | 107 | | /// <summary>Field number for the "friend_request_id" field.</summary> |
| | 108 | | public const int FriendRequestIdFieldNumber = 1; |
| 0 | 109 | | private string friendRequestId_ = ""; |
| | 110 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 111 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 112 | | public string FriendRequestId { |
| 0 | 113 | | get { return friendRequestId_; } |
| | 114 | | set { |
| 0 | 115 | | friendRequestId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); |
| 0 | 116 | | } |
| | 117 | | } |
| | 118 | |
|
| | 119 | | /// <summary>Field number for the "timestamp" field.</summary> |
| | 120 | | public const int TimestampFieldNumber = 2; |
| | 121 | | private ulong timestamp_; |
| | 122 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 123 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 124 | | public ulong Timestamp { |
| 0 | 125 | | get { return timestamp_; } |
| | 126 | | set { |
| 0 | 127 | | timestamp_ = value; |
| 0 | 128 | | } |
| | 129 | | } |
| | 130 | |
|
| | 131 | | /// <summary>Field number for the "from" field.</summary> |
| | 132 | | public const int FromFieldNumber = 3; |
| 0 | 133 | | private string from_ = ""; |
| | 134 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 135 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 136 | | public string From { |
| 0 | 137 | | get { return from_; } |
| | 138 | | set { |
| 0 | 139 | | from_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); |
| 0 | 140 | | } |
| | 141 | | } |
| | 142 | |
|
| | 143 | | /// <summary>Field number for the "to" field.</summary> |
| | 144 | | public const int ToFieldNumber = 4; |
| 0 | 145 | | private string to_ = ""; |
| | 146 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 147 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 148 | | public string To { |
| 0 | 149 | | get { return to_; } |
| | 150 | | set { |
| 0 | 151 | | to_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); |
| 0 | 152 | | } |
| | 153 | | } |
| | 154 | |
|
| | 155 | | /// <summary>Field number for the "message_body" field.</summary> |
| | 156 | | public const int MessageBodyFieldNumber = 5; |
| | 157 | | private string messageBody_; |
| | 158 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 159 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 160 | | public string MessageBody { |
| 0 | 161 | | get { return messageBody_ ?? ""; } |
| | 162 | | set { |
| 0 | 163 | | messageBody_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); |
| 0 | 164 | | } |
| | 165 | | } |
| | 166 | | /// <summary>Gets whether the "message_body" field is set</summary> |
| | 167 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 168 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 169 | | public bool HasMessageBody { |
| 0 | 170 | | get { return messageBody_ != null; } |
| | 171 | | } |
| | 172 | | /// <summary>Clears the value of the "message_body" field</summary> |
| | 173 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 174 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 175 | | public void ClearMessageBody() { |
| 0 | 176 | | messageBody_ = null; |
| 0 | 177 | | } |
| | 178 | |
|
| | 179 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 180 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 181 | | public override bool Equals(object other) { |
| 0 | 182 | | return Equals(other as FriendRequestInfo); |
| | 183 | | } |
| | 184 | |
|
| | 185 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 186 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 187 | | public bool Equals(FriendRequestInfo other) { |
| 0 | 188 | | if (ReferenceEquals(other, null)) { |
| 0 | 189 | | return false; |
| | 190 | | } |
| 0 | 191 | | if (ReferenceEquals(other, this)) { |
| 0 | 192 | | return true; |
| | 193 | | } |
| 0 | 194 | | if (FriendRequestId != other.FriendRequestId) return false; |
| 0 | 195 | | if (Timestamp != other.Timestamp) return false; |
| 0 | 196 | | if (From != other.From) return false; |
| 0 | 197 | | if (To != other.To) return false; |
| 0 | 198 | | if (MessageBody != other.MessageBody) return false; |
| 0 | 199 | | return Equals(_unknownFields, other._unknownFields); |
| | 200 | | } |
| | 201 | |
|
| | 202 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 203 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 204 | | public override int GetHashCode() { |
| 0 | 205 | | int hash = 1; |
| 0 | 206 | | if (FriendRequestId.Length != 0) hash ^= FriendRequestId.GetHashCode(); |
| 0 | 207 | | if (Timestamp != 0UL) hash ^= Timestamp.GetHashCode(); |
| 0 | 208 | | if (From.Length != 0) hash ^= From.GetHashCode(); |
| 0 | 209 | | if (To.Length != 0) hash ^= To.GetHashCode(); |
| 0 | 210 | | if (HasMessageBody) hash ^= MessageBody.GetHashCode(); |
| 0 | 211 | | if (_unknownFields != null) { |
| 0 | 212 | | hash ^= _unknownFields.GetHashCode(); |
| | 213 | | } |
| 0 | 214 | | return hash; |
| | 215 | | } |
| | 216 | |
|
| | 217 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 218 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 219 | | public override string ToString() { |
| 0 | 220 | | return pb::JsonFormatter.ToDiagnosticString(this); |
| | 221 | | } |
| | 222 | |
|
| | 223 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 224 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 225 | | public void WriteTo(pb::CodedOutputStream output) { |
| | 226 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| | 227 | | output.WriteRawMessage(this); |
| | 228 | | #else |
| 0 | 229 | | if (FriendRequestId.Length != 0) { |
| 0 | 230 | | output.WriteRawTag(10); |
| 0 | 231 | | output.WriteString(FriendRequestId); |
| | 232 | | } |
| 0 | 233 | | if (Timestamp != 0UL) { |
| 0 | 234 | | output.WriteRawTag(16); |
| 0 | 235 | | output.WriteUInt64(Timestamp); |
| | 236 | | } |
| 0 | 237 | | if (From.Length != 0) { |
| 0 | 238 | | output.WriteRawTag(26); |
| 0 | 239 | | output.WriteString(From); |
| | 240 | | } |
| 0 | 241 | | if (To.Length != 0) { |
| 0 | 242 | | output.WriteRawTag(34); |
| 0 | 243 | | output.WriteString(To); |
| | 244 | | } |
| 0 | 245 | | if (HasMessageBody) { |
| 0 | 246 | | output.WriteRawTag(42); |
| 0 | 247 | | output.WriteString(MessageBody); |
| | 248 | | } |
| 0 | 249 | | if (_unknownFields != null) { |
| 0 | 250 | | _unknownFields.WriteTo(output); |
| | 251 | | } |
| | 252 | | #endif |
| 0 | 253 | | } |
| | 254 | |
|
| | 255 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| | 256 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 257 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 258 | | void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { |
| | 259 | | if (FriendRequestId.Length != 0) { |
| | 260 | | output.WriteRawTag(10); |
| | 261 | | output.WriteString(FriendRequestId); |
| | 262 | | } |
| | 263 | | if (Timestamp != 0UL) { |
| | 264 | | output.WriteRawTag(16); |
| | 265 | | output.WriteUInt64(Timestamp); |
| | 266 | | } |
| | 267 | | if (From.Length != 0) { |
| | 268 | | output.WriteRawTag(26); |
| | 269 | | output.WriteString(From); |
| | 270 | | } |
| | 271 | | if (To.Length != 0) { |
| | 272 | | output.WriteRawTag(34); |
| | 273 | | output.WriteString(To); |
| | 274 | | } |
| | 275 | | if (HasMessageBody) { |
| | 276 | | output.WriteRawTag(42); |
| | 277 | | output.WriteString(MessageBody); |
| | 278 | | } |
| | 279 | | if (_unknownFields != null) { |
| | 280 | | _unknownFields.WriteTo(ref output); |
| | 281 | | } |
| | 282 | | } |
| | 283 | | #endif |
| | 284 | |
|
| | 285 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 286 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 287 | | public int CalculateSize() { |
| 0 | 288 | | int size = 0; |
| 0 | 289 | | if (FriendRequestId.Length != 0) { |
| 0 | 290 | | size += 1 + pb::CodedOutputStream.ComputeStringSize(FriendRequestId); |
| | 291 | | } |
| 0 | 292 | | if (Timestamp != 0UL) { |
| 0 | 293 | | size += 1 + pb::CodedOutputStream.ComputeUInt64Size(Timestamp); |
| | 294 | | } |
| 0 | 295 | | if (From.Length != 0) { |
| 0 | 296 | | size += 1 + pb::CodedOutputStream.ComputeStringSize(From); |
| | 297 | | } |
| 0 | 298 | | if (To.Length != 0) { |
| 0 | 299 | | size += 1 + pb::CodedOutputStream.ComputeStringSize(To); |
| | 300 | | } |
| 0 | 301 | | if (HasMessageBody) { |
| 0 | 302 | | size += 1 + pb::CodedOutputStream.ComputeStringSize(MessageBody); |
| | 303 | | } |
| 0 | 304 | | if (_unknownFields != null) { |
| 0 | 305 | | size += _unknownFields.CalculateSize(); |
| | 306 | | } |
| 0 | 307 | | return size; |
| | 308 | | } |
| | 309 | |
|
| | 310 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 311 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 312 | | public void MergeFrom(FriendRequestInfo other) { |
| 0 | 313 | | if (other == null) { |
| 0 | 314 | | return; |
| | 315 | | } |
| 0 | 316 | | if (other.FriendRequestId.Length != 0) { |
| 0 | 317 | | FriendRequestId = other.FriendRequestId; |
| | 318 | | } |
| 0 | 319 | | if (other.Timestamp != 0UL) { |
| 0 | 320 | | Timestamp = other.Timestamp; |
| | 321 | | } |
| 0 | 322 | | if (other.From.Length != 0) { |
| 0 | 323 | | From = other.From; |
| | 324 | | } |
| 0 | 325 | | if (other.To.Length != 0) { |
| 0 | 326 | | To = other.To; |
| | 327 | | } |
| 0 | 328 | | if (other.HasMessageBody) { |
| 0 | 329 | | MessageBody = other.MessageBody; |
| | 330 | | } |
| 0 | 331 | | _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); |
| 0 | 332 | | } |
| | 333 | |
|
| | 334 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 335 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 336 | | public void MergeFrom(pb::CodedInputStream input) { |
| | 337 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| | 338 | | input.ReadRawMessage(this); |
| | 339 | | #else |
| | 340 | | uint tag; |
| 0 | 341 | | while ((tag = input.ReadTag()) != 0) { |
| | 342 | | switch(tag) { |
| | 343 | | default: |
| 0 | 344 | | _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); |
| 0 | 345 | | break; |
| | 346 | | case 10: { |
| 0 | 347 | | FriendRequestId = input.ReadString(); |
| 0 | 348 | | break; |
| | 349 | | } |
| | 350 | | case 16: { |
| 0 | 351 | | Timestamp = input.ReadUInt64(); |
| 0 | 352 | | break; |
| | 353 | | } |
| | 354 | | case 26: { |
| 0 | 355 | | From = input.ReadString(); |
| 0 | 356 | | break; |
| | 357 | | } |
| | 358 | | case 34: { |
| 0 | 359 | | To = input.ReadString(); |
| 0 | 360 | | break; |
| | 361 | | } |
| | 362 | | case 42: { |
| 0 | 363 | | MessageBody = input.ReadString(); |
| | 364 | | break; |
| | 365 | | } |
| | 366 | | } |
| | 367 | | } |
| | 368 | | #endif |
| 0 | 369 | | } |
| | 370 | |
|
| | 371 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| | 372 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 373 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 374 | | void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { |
| | 375 | | uint tag; |
| | 376 | | while ((tag = input.ReadTag()) != 0) { |
| | 377 | | switch(tag) { |
| | 378 | | default: |
| | 379 | | _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); |
| | 380 | | break; |
| | 381 | | case 10: { |
| | 382 | | FriendRequestId = input.ReadString(); |
| | 383 | | break; |
| | 384 | | } |
| | 385 | | case 16: { |
| | 386 | | Timestamp = input.ReadUInt64(); |
| | 387 | | break; |
| | 388 | | } |
| | 389 | | case 26: { |
| | 390 | | From = input.ReadString(); |
| | 391 | | break; |
| | 392 | | } |
| | 393 | | case 34: { |
| | 394 | | To = input.ReadString(); |
| | 395 | | break; |
| | 396 | | } |
| | 397 | | case 42: { |
| | 398 | | MessageBody = input.ReadString(); |
| | 399 | | break; |
| | 400 | | } |
| | 401 | | } |
| | 402 | | } |
| | 403 | | } |
| | 404 | | #endif |
| | 405 | |
|
| | 406 | | } |
| | 407 | |
|
| | 408 | | #endregion |
| | 409 | |
|
| | 410 | | } |
| | 411 | |
|
| | 412 | | #endregion Designer generated code |