| | 1 | | // <auto-generated> |
| | 2 | | // Generated by the protocol buffer compiler. DO NOT EDIT! |
| | 3 | | // source: decentraland/common/entity.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.Common { |
| | 13 | |
|
| | 14 | | /// <summary>Holder for reflection information generated from decentraland/common/entity.proto</summary> |
| | 15 | | public static partial class EntityReflection { |
| | 16 | |
|
| | 17 | | #region Descriptor |
| | 18 | | /// <summary>File descriptor for decentraland/common/entity.proto</summary> |
| | 19 | | public static pbr::FileDescriptor Descriptor { |
| | 20 | | get { return descriptor; } |
| | 21 | | } |
| | 22 | | private static pbr::FileDescriptor descriptor; |
| | 23 | |
|
| | 24 | | static EntityReflection() { |
| | 25 | | byte[] descriptorData = global::System.Convert.FromBase64String( |
| | 26 | | string.Concat( |
| | 27 | | "CiBkZWNlbnRyYWxhbmQvY29tbW9uL2VudGl0eS5wcm90bxITZGVjZW50cmFs", |
| | 28 | | "YW5kLmNvbW1vbhopZGVjZW50cmFsYW5kL2NvbW1vbi9jb250ZW50X21hcHBp", |
| | 29 | | "bmcucHJvdG8igQEKBkVudGl0eRIKCgJpZBgBIAEoCRIQCghwb2ludGVycxgC", |
| | 30 | | "IAMoCRIQCghtZXRhZGF0YRgDIAEoCRIRCgl0aW1lc3RhbXAYBCABKA0SNAoH", |
| | 31 | | "Y29udGVudBgFIAMoCzIjLmRlY2VudHJhbGFuZC5jb21tb24uQ29udGVudE1h", |
| | 32 | | "cHBpbmdiBnByb3RvMw==")); |
| | 33 | | descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, |
| | 34 | | new pbr::FileDescriptor[] { global::Decentraland.Common.ContentMappingReflection.Descriptor, }, |
| | 35 | | new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { |
| | 36 | | new pbr::GeneratedClrTypeInfo(typeof(global::Decentraland.Common.Entity), global::Decentraland.Common.Entity |
| | 37 | | })); |
| | 38 | | } |
| | 39 | | #endregion |
| | 40 | |
|
| | 41 | | } |
| | 42 | | #region Messages |
| | 43 | | public sealed partial class Entity : pb::IMessage<Entity> |
| | 44 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| | 45 | | , pb::IBufferMessage |
| | 46 | | #endif |
| | 47 | | { |
| 1 | 48 | | private static readonly pb::MessageParser<Entity> _parser = new pb::MessageParser<Entity>(() => new Entity()); |
| | 49 | | private pb::UnknownFieldSet _unknownFields; |
| | 50 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 51 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| 1 | 52 | | public static pb::MessageParser<Entity> Parser { get { return _parser; } } |
| | 53 | |
|
| | 54 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 55 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 56 | | public static pbr::MessageDescriptor Descriptor { |
| 0 | 57 | | get { return global::Decentraland.Common.EntityReflection.Descriptor.MessageTypes[0]; } |
| | 58 | | } |
| | 59 | |
|
| | 60 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 61 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 62 | | pbr::MessageDescriptor pb::IMessage.Descriptor { |
| 0 | 63 | | get { return Descriptor; } |
| | 64 | | } |
| | 65 | |
|
| | 66 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 67 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| 12 | 68 | | public Entity() { |
| | 69 | | OnConstruction(); |
| 12 | 70 | | } |
| | 71 | |
|
| | 72 | | partial void OnConstruction(); |
| | 73 | |
|
| | 74 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 75 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| 0 | 76 | | public Entity(Entity other) : this() { |
| 0 | 77 | | id_ = other.id_; |
| 0 | 78 | | pointers_ = other.pointers_.Clone(); |
| 0 | 79 | | metadata_ = other.metadata_; |
| 0 | 80 | | timestamp_ = other.timestamp_; |
| 0 | 81 | | content_ = other.content_.Clone(); |
| 0 | 82 | | _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); |
| 0 | 83 | | } |
| | 84 | |
|
| | 85 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 86 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 87 | | public Entity Clone() { |
| 0 | 88 | | return new Entity(this); |
| | 89 | | } |
| | 90 | |
|
| | 91 | | /// <summary>Field number for the "id" field.</summary> |
| | 92 | | public const int IdFieldNumber = 1; |
| 12 | 93 | | private string id_ = ""; |
| | 94 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 95 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 96 | | public string Id { |
| 42 | 97 | | get { return id_; } |
| | 98 | | set { |
| 12 | 99 | | id_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); |
| 12 | 100 | | } |
| | 101 | | } |
| | 102 | |
|
| | 103 | | /// <summary>Field number for the "pointers" field.</summary> |
| | 104 | | public const int PointersFieldNumber = 2; |
| 1 | 105 | | private static readonly pb::FieldCodec<string> _repeated_pointers_codec |
| | 106 | | = pb::FieldCodec.ForString(18); |
| 12 | 107 | | private readonly pbc::RepeatedField<string> pointers_ = new pbc::RepeatedField<string>(); |
| | 108 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 109 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 110 | | public pbc::RepeatedField<string> Pointers { |
| 0 | 111 | | get { return pointers_; } |
| | 112 | | } |
| | 113 | |
|
| | 114 | | /// <summary>Field number for the "metadata" field.</summary> |
| | 115 | | public const int MetadataFieldNumber = 3; |
| 12 | 116 | | private string metadata_ = ""; |
| | 117 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 118 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 119 | | public string Metadata { |
| 42 | 120 | | get { return metadata_; } |
| | 121 | | set { |
| 12 | 122 | | metadata_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); |
| 12 | 123 | | } |
| | 124 | | } |
| | 125 | |
|
| | 126 | | /// <summary>Field number for the "timestamp" field.</summary> |
| | 127 | | public const int TimestampFieldNumber = 4; |
| | 128 | | private uint timestamp_; |
| | 129 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 130 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 131 | | public uint Timestamp { |
| 18 | 132 | | get { return timestamp_; } |
| | 133 | | set { |
| 0 | 134 | | timestamp_ = value; |
| 0 | 135 | | } |
| | 136 | | } |
| | 137 | |
|
| | 138 | | /// <summary>Field number for the "content" field.</summary> |
| | 139 | | public const int ContentFieldNumber = 5; |
| 1 | 140 | | private static readonly pb::FieldCodec<global::Decentraland.Common.ContentMapping> _repeated_content_codec |
| | 141 | | = pb::FieldCodec.ForMessage(42, global::Decentraland.Common.ContentMapping.Parser); |
| 12 | 142 | | private readonly pbc::RepeatedField<global::Decentraland.Common.ContentMapping> content_ = new pbc::RepeatedField<gl |
| | 143 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 144 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 145 | | public pbc::RepeatedField<global::Decentraland.Common.ContentMapping> Content { |
| 6 | 146 | | get { return content_; } |
| | 147 | | } |
| | 148 | |
|
| | 149 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 150 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 151 | | public override bool Equals(object other) { |
| 0 | 152 | | return Equals(other as Entity); |
| | 153 | | } |
| | 154 | |
|
| | 155 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 156 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 157 | | public bool Equals(Entity other) { |
| 0 | 158 | | if (ReferenceEquals(other, null)) { |
| 0 | 159 | | return false; |
| | 160 | | } |
| 0 | 161 | | if (ReferenceEquals(other, this)) { |
| 0 | 162 | | return true; |
| | 163 | | } |
| 0 | 164 | | if (Id != other.Id) return false; |
| 0 | 165 | | if(!pointers_.Equals(other.pointers_)) return false; |
| 0 | 166 | | if (Metadata != other.Metadata) return false; |
| 0 | 167 | | if (Timestamp != other.Timestamp) return false; |
| 0 | 168 | | if(!content_.Equals(other.content_)) return false; |
| 0 | 169 | | return Equals(_unknownFields, other._unknownFields); |
| | 170 | | } |
| | 171 | |
|
| | 172 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 173 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 174 | | public override int GetHashCode() { |
| 0 | 175 | | int hash = 1; |
| 0 | 176 | | if (Id.Length != 0) hash ^= Id.GetHashCode(); |
| 0 | 177 | | hash ^= pointers_.GetHashCode(); |
| 0 | 178 | | if (Metadata.Length != 0) hash ^= Metadata.GetHashCode(); |
| 0 | 179 | | if (Timestamp != 0) hash ^= Timestamp.GetHashCode(); |
| 0 | 180 | | hash ^= content_.GetHashCode(); |
| 0 | 181 | | if (_unknownFields != null) { |
| 0 | 182 | | hash ^= _unknownFields.GetHashCode(); |
| | 183 | | } |
| 0 | 184 | | return hash; |
| | 185 | | } |
| | 186 | |
|
| | 187 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 188 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 189 | | public override string ToString() { |
| 0 | 190 | | return pb::JsonFormatter.ToDiagnosticString(this); |
| | 191 | | } |
| | 192 | |
|
| | 193 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 194 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 195 | | public void WriteTo(pb::CodedOutputStream output) { |
| | 196 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| | 197 | | output.WriteRawMessage(this); |
| | 198 | | #else |
| 6 | 199 | | if (Id.Length != 0) { |
| 6 | 200 | | output.WriteRawTag(10); |
| 6 | 201 | | output.WriteString(Id); |
| | 202 | | } |
| 6 | 203 | | pointers_.WriteTo(output, _repeated_pointers_codec); |
| 6 | 204 | | if (Metadata.Length != 0) { |
| 6 | 205 | | output.WriteRawTag(26); |
| 6 | 206 | | output.WriteString(Metadata); |
| | 207 | | } |
| 6 | 208 | | if (Timestamp != 0) { |
| 0 | 209 | | output.WriteRawTag(32); |
| 0 | 210 | | output.WriteUInt32(Timestamp); |
| | 211 | | } |
| 6 | 212 | | content_.WriteTo(output, _repeated_content_codec); |
| 6 | 213 | | if (_unknownFields != null) { |
| 0 | 214 | | _unknownFields.WriteTo(output); |
| | 215 | | } |
| | 216 | | #endif |
| 6 | 217 | | } |
| | 218 | |
|
| | 219 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| | 220 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 221 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 222 | | void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { |
| | 223 | | if (Id.Length != 0) { |
| | 224 | | output.WriteRawTag(10); |
| | 225 | | output.WriteString(Id); |
| | 226 | | } |
| | 227 | | pointers_.WriteTo(ref output, _repeated_pointers_codec); |
| | 228 | | if (Metadata.Length != 0) { |
| | 229 | | output.WriteRawTag(26); |
| | 230 | | output.WriteString(Metadata); |
| | 231 | | } |
| | 232 | | if (Timestamp != 0) { |
| | 233 | | output.WriteRawTag(32); |
| | 234 | | output.WriteUInt32(Timestamp); |
| | 235 | | } |
| | 236 | | content_.WriteTo(ref output, _repeated_content_codec); |
| | 237 | | if (_unknownFields != null) { |
| | 238 | | _unknownFields.WriteTo(ref output); |
| | 239 | | } |
| | 240 | | } |
| | 241 | | #endif |
| | 242 | |
|
| | 243 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 244 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 245 | | public int CalculateSize() { |
| 12 | 246 | | int size = 0; |
| 12 | 247 | | if (Id.Length != 0) { |
| 12 | 248 | | size += 1 + pb::CodedOutputStream.ComputeStringSize(Id); |
| | 249 | | } |
| 12 | 250 | | size += pointers_.CalculateSize(_repeated_pointers_codec); |
| 12 | 251 | | if (Metadata.Length != 0) { |
| 12 | 252 | | size += 1 + pb::CodedOutputStream.ComputeStringSize(Metadata); |
| | 253 | | } |
| 12 | 254 | | if (Timestamp != 0) { |
| 0 | 255 | | size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Timestamp); |
| | 256 | | } |
| 12 | 257 | | size += content_.CalculateSize(_repeated_content_codec); |
| 12 | 258 | | if (_unknownFields != null) { |
| 0 | 259 | | size += _unknownFields.CalculateSize(); |
| | 260 | | } |
| 12 | 261 | | return size; |
| | 262 | | } |
| | 263 | |
|
| | 264 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 265 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 266 | | public void MergeFrom(Entity other) { |
| 0 | 267 | | if (other == null) { |
| 0 | 268 | | return; |
| | 269 | | } |
| 0 | 270 | | if (other.Id.Length != 0) { |
| 0 | 271 | | Id = other.Id; |
| | 272 | | } |
| 0 | 273 | | pointers_.Add(other.pointers_); |
| 0 | 274 | | if (other.Metadata.Length != 0) { |
| 0 | 275 | | Metadata = other.Metadata; |
| | 276 | | } |
| 0 | 277 | | if (other.Timestamp != 0) { |
| 0 | 278 | | Timestamp = other.Timestamp; |
| | 279 | | } |
| 0 | 280 | | content_.Add(other.content_); |
| 0 | 281 | | _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); |
| 0 | 282 | | } |
| | 283 | |
|
| | 284 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 285 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 286 | | public void MergeFrom(pb::CodedInputStream input) { |
| | 287 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| | 288 | | input.ReadRawMessage(this); |
| | 289 | | #else |
| | 290 | | uint tag; |
| 18 | 291 | | while ((tag = input.ReadTag()) != 0) { |
| | 292 | | switch(tag) { |
| | 293 | | default: |
| 0 | 294 | | _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); |
| 0 | 295 | | break; |
| | 296 | | case 10: { |
| 6 | 297 | | Id = input.ReadString(); |
| 6 | 298 | | break; |
| | 299 | | } |
| | 300 | | case 18: { |
| 0 | 301 | | pointers_.AddEntriesFrom(input, _repeated_pointers_codec); |
| 0 | 302 | | break; |
| | 303 | | } |
| | 304 | | case 26: { |
| 6 | 305 | | Metadata = input.ReadString(); |
| 6 | 306 | | break; |
| | 307 | | } |
| | 308 | | case 32: { |
| 0 | 309 | | Timestamp = input.ReadUInt32(); |
| 0 | 310 | | break; |
| | 311 | | } |
| | 312 | | case 42: { |
| 0 | 313 | | content_.AddEntriesFrom(input, _repeated_content_codec); |
| | 314 | | break; |
| | 315 | | } |
| | 316 | | } |
| | 317 | | } |
| | 318 | | #endif |
| 6 | 319 | | } |
| | 320 | |
|
| | 321 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| | 322 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 323 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 324 | | void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { |
| | 325 | | uint tag; |
| | 326 | | while ((tag = input.ReadTag()) != 0) { |
| | 327 | | switch(tag) { |
| | 328 | | default: |
| | 329 | | _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); |
| | 330 | | break; |
| | 331 | | case 10: { |
| | 332 | | Id = input.ReadString(); |
| | 333 | | break; |
| | 334 | | } |
| | 335 | | case 18: { |
| | 336 | | pointers_.AddEntriesFrom(ref input, _repeated_pointers_codec); |
| | 337 | | break; |
| | 338 | | } |
| | 339 | | case 26: { |
| | 340 | | Metadata = input.ReadString(); |
| | 341 | | break; |
| | 342 | | } |
| | 343 | | case 32: { |
| | 344 | | Timestamp = input.ReadUInt32(); |
| | 345 | | break; |
| | 346 | | } |
| | 347 | | case 42: { |
| | 348 | | content_.AddEntriesFrom(ref input, _repeated_content_codec); |
| | 349 | | break; |
| | 350 | | } |
| | 351 | | } |
| | 352 | | } |
| | 353 | | } |
| | 354 | | #endif |
| | 355 | |
|
| | 356 | | } |
| | 357 | |
|
| | 358 | | #endregion |
| | 359 | |
|
| | 360 | | } |
| | 361 | |
|
| | 362 | | #endregion Designer generated code |