| | 1 | | // <auto-generated> |
| | 2 | | // Generated by the protocol buffer compiler. DO NOT EDIT! |
| | 3 | | // source: decentraland/sdk/components/avatar_base.proto |
| | 4 | | // </auto-generated> |
| | 5 | | #pragma warning disable 1591, 0612, 3021 |
| | 6 | | #region Designer generated code |
| | 7 | |
|
| | 8 | | using pb = global::Google.Protobuf; |
| | 9 | | using pbc = global::Google.Protobuf.Collections; |
| | 10 | | using pbr = global::Google.Protobuf.Reflection; |
| | 11 | | using scg = global::System.Collections.Generic; |
| | 12 | | namespace DCL.ECSComponents { |
| | 13 | |
|
| | 14 | | /// <summary>Holder for reflection information generated from decentraland/sdk/components/avatar_base.proto</summary> |
| | 15 | | public static partial class AvatarBaseReflection { |
| | 16 | |
|
| | 17 | | #region Descriptor |
| | 18 | | /// <summary>File descriptor for decentraland/sdk/components/avatar_base.proto</summary> |
| | 19 | | public static pbr::FileDescriptor Descriptor { |
| | 20 | | get { return descriptor; } |
| | 21 | | } |
| | 22 | | private static pbr::FileDescriptor descriptor; |
| | 23 | |
|
| | 24 | | static AvatarBaseReflection() { |
| | 25 | | byte[] descriptorData = global::System.Convert.FromBase64String( |
| | 26 | | string.Concat( |
| | 27 | | "Ci1kZWNlbnRyYWxhbmQvc2RrL2NvbXBvbmVudHMvYXZhdGFyX2Jhc2UucHJv", |
| | 28 | | "dG8SG2RlY2VudHJhbGFuZC5zZGsuY29tcG9uZW50cxogZGVjZW50cmFsYW5k", |
| | 29 | | "L2NvbW1vbi9jb2xvcnMucHJvdG8ixwEKDFBCQXZhdGFyQmFzZRIvCgpza2lu", |
| | 30 | | "X2NvbG9yGAEgASgLMhsuZGVjZW50cmFsYW5kLmNvbW1vbi5Db2xvcjMSLwoK", |
| | 31 | | "ZXllc19jb2xvchgCIAEoCzIbLmRlY2VudHJhbGFuZC5jb21tb24uQ29sb3Iz", |
| | 32 | | "Ei8KCmhhaXJfY29sb3IYAyABKAsyGy5kZWNlbnRyYWxhbmQuY29tbW9uLkNv", |
| | 33 | | "bG9yMxIWCg5ib2R5X3NoYXBlX3VybhgEIAEoCRIMCgRuYW1lGAUgASgJQhSq", |
| | 34 | | "AhFEQ0wuRUNTQ29tcG9uZW50c2IGcHJvdG8z")); |
| | 35 | | descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, |
| | 36 | | new pbr::FileDescriptor[] { global::Decentraland.Common.ColorsReflection.Descriptor, }, |
| | 37 | | new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { |
| | 38 | | new pbr::GeneratedClrTypeInfo(typeof(global::DCL.ECSComponents.PBAvatarBase), global::DCL.ECSComponents.PBAv |
| | 39 | | })); |
| | 40 | | } |
| | 41 | | #endregion |
| | 42 | |
|
| | 43 | | } |
| | 44 | | #region Messages |
| | 45 | | /// <summary> |
| | 46 | | /// AvatarBase sets all modifiers over the avatar's apparence. |
| | 47 | | /// </summary> |
| | 48 | | public sealed partial class PBAvatarBase : pb::IMessage<PBAvatarBase> |
| | 49 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| | 50 | | , pb::IBufferMessage |
| | 51 | | #endif |
| | 52 | | { |
| 0 | 53 | | private static readonly pb::MessageParser<PBAvatarBase> _parser = new pb::MessageParser<PBAvatarBase>(() => new PBAv |
| | 54 | | private pb::UnknownFieldSet _unknownFields; |
| | 55 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 56 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| 0 | 57 | | public static pb::MessageParser<PBAvatarBase> Parser { get { return _parser; } } |
| | 58 | |
|
| | 59 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 60 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 61 | | public static pbr::MessageDescriptor Descriptor { |
| 0 | 62 | | get { return global::DCL.ECSComponents.AvatarBaseReflection.Descriptor.MessageTypes[0]; } |
| | 63 | | } |
| | 64 | |
|
| | 65 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 66 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 67 | | pbr::MessageDescriptor pb::IMessage.Descriptor { |
| 0 | 68 | | get { return Descriptor; } |
| | 69 | | } |
| | 70 | |
|
| | 71 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 72 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| 0 | 73 | | public PBAvatarBase() { |
| | 74 | | OnConstruction(); |
| 0 | 75 | | } |
| | 76 | |
|
| | 77 | | partial void OnConstruction(); |
| | 78 | |
|
| | 79 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 80 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| 0 | 81 | | public PBAvatarBase(PBAvatarBase other) : this() { |
| 0 | 82 | | skinColor_ = other.skinColor_ != null ? other.skinColor_.Clone() : null; |
| 0 | 83 | | eyesColor_ = other.eyesColor_ != null ? other.eyesColor_.Clone() : null; |
| 0 | 84 | | hairColor_ = other.hairColor_ != null ? other.hairColor_.Clone() : null; |
| 0 | 85 | | bodyShapeUrn_ = other.bodyShapeUrn_; |
| 0 | 86 | | name_ = other.name_; |
| 0 | 87 | | _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); |
| 0 | 88 | | } |
| | 89 | |
|
| | 90 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 91 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 92 | | public PBAvatarBase Clone() { |
| 0 | 93 | | return new PBAvatarBase(this); |
| | 94 | | } |
| | 95 | |
|
| | 96 | | /// <summary>Field number for the "skin_color" field.</summary> |
| | 97 | | public const int SkinColorFieldNumber = 1; |
| | 98 | | private global::Decentraland.Common.Color3 skinColor_; |
| | 99 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 100 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 101 | | public global::Decentraland.Common.Color3 SkinColor { |
| 0 | 102 | | get { return skinColor_; } |
| | 103 | | set { |
| 0 | 104 | | skinColor_ = value; |
| 0 | 105 | | } |
| | 106 | | } |
| | 107 | |
|
| | 108 | | /// <summary>Field number for the "eyes_color" field.</summary> |
| | 109 | | public const int EyesColorFieldNumber = 2; |
| | 110 | | private global::Decentraland.Common.Color3 eyesColor_; |
| | 111 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 112 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 113 | | public global::Decentraland.Common.Color3 EyesColor { |
| 0 | 114 | | get { return eyesColor_; } |
| | 115 | | set { |
| 0 | 116 | | eyesColor_ = value; |
| 0 | 117 | | } |
| | 118 | | } |
| | 119 | |
|
| | 120 | | /// <summary>Field number for the "hair_color" field.</summary> |
| | 121 | | public const int HairColorFieldNumber = 3; |
| | 122 | | private global::Decentraland.Common.Color3 hairColor_; |
| | 123 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 124 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 125 | | public global::Decentraland.Common.Color3 HairColor { |
| 0 | 126 | | get { return hairColor_; } |
| | 127 | | set { |
| 0 | 128 | | hairColor_ = value; |
| 0 | 129 | | } |
| | 130 | | } |
| | 131 | |
|
| | 132 | | /// <summary>Field number for the "body_shape_urn" field.</summary> |
| | 133 | | public const int BodyShapeUrnFieldNumber = 4; |
| 0 | 134 | | private string bodyShapeUrn_ = ""; |
| | 135 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 136 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 137 | | public string BodyShapeUrn { |
| 0 | 138 | | get { return bodyShapeUrn_; } |
| | 139 | | set { |
| 0 | 140 | | bodyShapeUrn_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); |
| 0 | 141 | | } |
| | 142 | | } |
| | 143 | |
|
| | 144 | | /// <summary>Field number for the "name" field.</summary> |
| | 145 | | public const int NameFieldNumber = 5; |
| 0 | 146 | | private string name_ = ""; |
| | 147 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 148 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 149 | | public string Name { |
| 0 | 150 | | get { return name_; } |
| | 151 | | set { |
| 0 | 152 | | name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); |
| 0 | 153 | | } |
| | 154 | | } |
| | 155 | |
|
| | 156 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 157 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 158 | | public override bool Equals(object other) { |
| 0 | 159 | | return Equals(other as PBAvatarBase); |
| | 160 | | } |
| | 161 | |
|
| | 162 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 163 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 164 | | public bool Equals(PBAvatarBase other) { |
| 0 | 165 | | if (ReferenceEquals(other, null)) { |
| 0 | 166 | | return false; |
| | 167 | | } |
| 0 | 168 | | if (ReferenceEquals(other, this)) { |
| 0 | 169 | | return true; |
| | 170 | | } |
| 0 | 171 | | if (!object.Equals(SkinColor, other.SkinColor)) return false; |
| 0 | 172 | | if (!object.Equals(EyesColor, other.EyesColor)) return false; |
| 0 | 173 | | if (!object.Equals(HairColor, other.HairColor)) return false; |
| 0 | 174 | | if (BodyShapeUrn != other.BodyShapeUrn) return false; |
| 0 | 175 | | if (Name != other.Name) return false; |
| 0 | 176 | | return Equals(_unknownFields, other._unknownFields); |
| | 177 | | } |
| | 178 | |
|
| | 179 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 180 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 181 | | public override int GetHashCode() { |
| 0 | 182 | | int hash = 1; |
| 0 | 183 | | if (skinColor_ != null) hash ^= SkinColor.GetHashCode(); |
| 0 | 184 | | if (eyesColor_ != null) hash ^= EyesColor.GetHashCode(); |
| 0 | 185 | | if (hairColor_ != null) hash ^= HairColor.GetHashCode(); |
| 0 | 186 | | if (BodyShapeUrn.Length != 0) hash ^= BodyShapeUrn.GetHashCode(); |
| 0 | 187 | | if (Name.Length != 0) hash ^= Name.GetHashCode(); |
| 0 | 188 | | if (_unknownFields != null) { |
| 0 | 189 | | hash ^= _unknownFields.GetHashCode(); |
| | 190 | | } |
| 0 | 191 | | return hash; |
| | 192 | | } |
| | 193 | |
|
| | 194 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 195 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 196 | | public override string ToString() { |
| 0 | 197 | | return pb::JsonFormatter.ToDiagnosticString(this); |
| | 198 | | } |
| | 199 | |
|
| | 200 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 201 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 202 | | public void WriteTo(pb::CodedOutputStream output) { |
| | 203 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| | 204 | | output.WriteRawMessage(this); |
| | 205 | | #else |
| 0 | 206 | | if (skinColor_ != null) { |
| 0 | 207 | | output.WriteRawTag(10); |
| 0 | 208 | | output.WriteMessage(SkinColor); |
| | 209 | | } |
| 0 | 210 | | if (eyesColor_ != null) { |
| 0 | 211 | | output.WriteRawTag(18); |
| 0 | 212 | | output.WriteMessage(EyesColor); |
| | 213 | | } |
| 0 | 214 | | if (hairColor_ != null) { |
| 0 | 215 | | output.WriteRawTag(26); |
| 0 | 216 | | output.WriteMessage(HairColor); |
| | 217 | | } |
| 0 | 218 | | if (BodyShapeUrn.Length != 0) { |
| 0 | 219 | | output.WriteRawTag(34); |
| 0 | 220 | | output.WriteString(BodyShapeUrn); |
| | 221 | | } |
| 0 | 222 | | if (Name.Length != 0) { |
| 0 | 223 | | output.WriteRawTag(42); |
| 0 | 224 | | output.WriteString(Name); |
| | 225 | | } |
| 0 | 226 | | if (_unknownFields != null) { |
| 0 | 227 | | _unknownFields.WriteTo(output); |
| | 228 | | } |
| | 229 | | #endif |
| 0 | 230 | | } |
| | 231 | |
|
| | 232 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| | 233 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 234 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 235 | | void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { |
| | 236 | | if (skinColor_ != null) { |
| | 237 | | output.WriteRawTag(10); |
| | 238 | | output.WriteMessage(SkinColor); |
| | 239 | | } |
| | 240 | | if (eyesColor_ != null) { |
| | 241 | | output.WriteRawTag(18); |
| | 242 | | output.WriteMessage(EyesColor); |
| | 243 | | } |
| | 244 | | if (hairColor_ != null) { |
| | 245 | | output.WriteRawTag(26); |
| | 246 | | output.WriteMessage(HairColor); |
| | 247 | | } |
| | 248 | | if (BodyShapeUrn.Length != 0) { |
| | 249 | | output.WriteRawTag(34); |
| | 250 | | output.WriteString(BodyShapeUrn); |
| | 251 | | } |
| | 252 | | if (Name.Length != 0) { |
| | 253 | | output.WriteRawTag(42); |
| | 254 | | output.WriteString(Name); |
| | 255 | | } |
| | 256 | | if (_unknownFields != null) { |
| | 257 | | _unknownFields.WriteTo(ref output); |
| | 258 | | } |
| | 259 | | } |
| | 260 | | #endif |
| | 261 | |
|
| | 262 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 263 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 264 | | public int CalculateSize() { |
| 0 | 265 | | int size = 0; |
| 0 | 266 | | if (skinColor_ != null) { |
| 0 | 267 | | size += 1 + pb::CodedOutputStream.ComputeMessageSize(SkinColor); |
| | 268 | | } |
| 0 | 269 | | if (eyesColor_ != null) { |
| 0 | 270 | | size += 1 + pb::CodedOutputStream.ComputeMessageSize(EyesColor); |
| | 271 | | } |
| 0 | 272 | | if (hairColor_ != null) { |
| 0 | 273 | | size += 1 + pb::CodedOutputStream.ComputeMessageSize(HairColor); |
| | 274 | | } |
| 0 | 275 | | if (BodyShapeUrn.Length != 0) { |
| 0 | 276 | | size += 1 + pb::CodedOutputStream.ComputeStringSize(BodyShapeUrn); |
| | 277 | | } |
| 0 | 278 | | if (Name.Length != 0) { |
| 0 | 279 | | size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); |
| | 280 | | } |
| 0 | 281 | | if (_unknownFields != null) { |
| 0 | 282 | | size += _unknownFields.CalculateSize(); |
| | 283 | | } |
| 0 | 284 | | return size; |
| | 285 | | } |
| | 286 | |
|
| | 287 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 288 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 289 | | public void MergeFrom(PBAvatarBase other) { |
| 0 | 290 | | if (other == null) { |
| 0 | 291 | | return; |
| | 292 | | } |
| 0 | 293 | | if (other.skinColor_ != null) { |
| 0 | 294 | | if (skinColor_ == null) { |
| 0 | 295 | | SkinColor = new global::Decentraland.Common.Color3(); |
| | 296 | | } |
| 0 | 297 | | SkinColor.MergeFrom(other.SkinColor); |
| | 298 | | } |
| 0 | 299 | | if (other.eyesColor_ != null) { |
| 0 | 300 | | if (eyesColor_ == null) { |
| 0 | 301 | | EyesColor = new global::Decentraland.Common.Color3(); |
| | 302 | | } |
| 0 | 303 | | EyesColor.MergeFrom(other.EyesColor); |
| | 304 | | } |
| 0 | 305 | | if (other.hairColor_ != null) { |
| 0 | 306 | | if (hairColor_ == null) { |
| 0 | 307 | | HairColor = new global::Decentraland.Common.Color3(); |
| | 308 | | } |
| 0 | 309 | | HairColor.MergeFrom(other.HairColor); |
| | 310 | | } |
| 0 | 311 | | if (other.BodyShapeUrn.Length != 0) { |
| 0 | 312 | | BodyShapeUrn = other.BodyShapeUrn; |
| | 313 | | } |
| 0 | 314 | | if (other.Name.Length != 0) { |
| 0 | 315 | | Name = other.Name; |
| | 316 | | } |
| 0 | 317 | | _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); |
| 0 | 318 | | } |
| | 319 | |
|
| | 320 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 321 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 322 | | public void MergeFrom(pb::CodedInputStream input) { |
| | 323 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| | 324 | | input.ReadRawMessage(this); |
| | 325 | | #else |
| | 326 | | uint tag; |
| 0 | 327 | | while ((tag = input.ReadTag()) != 0) { |
| | 328 | | switch(tag) { |
| | 329 | | default: |
| 0 | 330 | | _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); |
| 0 | 331 | | break; |
| | 332 | | case 10: { |
| 0 | 333 | | if (skinColor_ == null) { |
| 0 | 334 | | SkinColor = new global::Decentraland.Common.Color3(); |
| | 335 | | } |
| 0 | 336 | | input.ReadMessage(SkinColor); |
| 0 | 337 | | break; |
| | 338 | | } |
| | 339 | | case 18: { |
| 0 | 340 | | if (eyesColor_ == null) { |
| 0 | 341 | | EyesColor = new global::Decentraland.Common.Color3(); |
| | 342 | | } |
| 0 | 343 | | input.ReadMessage(EyesColor); |
| 0 | 344 | | break; |
| | 345 | | } |
| | 346 | | case 26: { |
| 0 | 347 | | if (hairColor_ == null) { |
| 0 | 348 | | HairColor = new global::Decentraland.Common.Color3(); |
| | 349 | | } |
| 0 | 350 | | input.ReadMessage(HairColor); |
| 0 | 351 | | break; |
| | 352 | | } |
| | 353 | | case 34: { |
| 0 | 354 | | BodyShapeUrn = input.ReadString(); |
| 0 | 355 | | break; |
| | 356 | | } |
| | 357 | | case 42: { |
| 0 | 358 | | Name = input.ReadString(); |
| | 359 | | break; |
| | 360 | | } |
| | 361 | | } |
| | 362 | | } |
| | 363 | | #endif |
| 0 | 364 | | } |
| | 365 | |
|
| | 366 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| | 367 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 368 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 369 | | void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { |
| | 370 | | uint tag; |
| | 371 | | while ((tag = input.ReadTag()) != 0) { |
| | 372 | | switch(tag) { |
| | 373 | | default: |
| | 374 | | _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); |
| | 375 | | break; |
| | 376 | | case 10: { |
| | 377 | | if (skinColor_ == null) { |
| | 378 | | SkinColor = new global::Decentraland.Common.Color3(); |
| | 379 | | } |
| | 380 | | input.ReadMessage(SkinColor); |
| | 381 | | break; |
| | 382 | | } |
| | 383 | | case 18: { |
| | 384 | | if (eyesColor_ == null) { |
| | 385 | | EyesColor = new global::Decentraland.Common.Color3(); |
| | 386 | | } |
| | 387 | | input.ReadMessage(EyesColor); |
| | 388 | | break; |
| | 389 | | } |
| | 390 | | case 26: { |
| | 391 | | if (hairColor_ == null) { |
| | 392 | | HairColor = new global::Decentraland.Common.Color3(); |
| | 393 | | } |
| | 394 | | input.ReadMessage(HairColor); |
| | 395 | | break; |
| | 396 | | } |
| | 397 | | case 34: { |
| | 398 | | BodyShapeUrn = input.ReadString(); |
| | 399 | | break; |
| | 400 | | } |
| | 401 | | case 42: { |
| | 402 | | Name = input.ReadString(); |
| | 403 | | break; |
| | 404 | | } |
| | 405 | | } |
| | 406 | | } |
| | 407 | | } |
| | 408 | | #endif |
| | 409 | |
|
| | 410 | | } |
| | 411 | |
|
| | 412 | | #endregion |
| | 413 | |
|
| | 414 | | } |
| | 415 | |
|
| | 416 | | #endregion Designer generated code |