| | 1 | | // <auto-generated> |
| | 2 | | // Generated by the protocol buffer compiler. DO NOT EDIT! |
| | 3 | | // source: ecs/components/AvatarShape.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 ecs/components/AvatarShape.proto</summary> |
| | 15 | | public static partial class AvatarShapeReflection { |
| | 16 | |
|
| | 17 | | #region Descriptor |
| | 18 | | /// <summary>File descriptor for ecs/components/AvatarShape.proto</summary> |
| | 19 | | public static pbr::FileDescriptor Descriptor { |
| | 20 | | get { return descriptor; } |
| | 21 | | } |
| | 22 | | private static pbr::FileDescriptor descriptor; |
| | 23 | |
|
| | 24 | | static AvatarShapeReflection() { |
| | 25 | | byte[] descriptorData = global::System.Convert.FromBase64String( |
| | 26 | | string.Concat( |
| | 27 | | "CiBlY3MvY29tcG9uZW50cy9BdmF0YXJTaGFwZS5wcm90bxIQZGVjZW50cmFs", |
| | 28 | | "YW5kLmVjcxoiZWNzL2NvbXBvbmVudHMvY29tbW9uL0NvbG9yMy5wcm90byLy", |
| | 29 | | "AwoNUEJBdmF0YXJTaGFwZRIKCgJpZBgBIAEoCRIRCgRuYW1lGAIgASgJSACI", |
| | 30 | | "AQESFwoKYm9keV9zaGFwZRgDIAEoCUgBiAEBEjEKCnNraW5fY29sb3IYBCAB", |
| | 31 | | "KAsyGC5kZWNlbnRyYWxhbmQuZWNzLkNvbG9yM0gCiAEBEjEKCmhhaXJfY29s", |
| | 32 | | "b3IYBSABKAsyGC5kZWNlbnRyYWxhbmQuZWNzLkNvbG9yM0gDiAEBEjAKCWV5", |
| | 33 | | "ZV9jb2xvchgGIAEoCzIYLmRlY2VudHJhbGFuZC5lY3MuQ29sb3IzSASIAQES", |
| | 34 | | "IgoVZXhwcmVzc2lvbl90cmlnZ2VyX2lkGAcgASgJSAWIAQESKQocZXhwcmVz", |
| | 35 | | "c2lvbl90cmlnZ2VyX3RpbWVzdGFtcBgIIAEoA0gGiAEBEhQKB3RhbGtpbmcY", |
| | 36 | | "CSABKAhIB4gBARIRCgl3ZWFyYWJsZXMYCiADKAkSDgoGZW1vdGVzGAsgAygJ", |
| | 37 | | "QgcKBV9uYW1lQg0KC19ib2R5X3NoYXBlQg0KC19za2luX2NvbG9yQg0KC19o", |
| | 38 | | "YWlyX2NvbG9yQgwKCl9leWVfY29sb3JCGAoWX2V4cHJlc3Npb25fdHJpZ2dl", |
| | 39 | | "cl9pZEIfCh1fZXhwcmVzc2lvbl90cmlnZ2VyX3RpbWVzdGFtcEIKCghfdGFs", |
| | 40 | | "a2luZ0IUqgIRRENMLkVDU0NvbXBvbmVudHNiBnByb3RvMw==")); |
| | 41 | | descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, |
| | 42 | | new pbr::FileDescriptor[] { global::DCL.ECSComponents.Color3Reflection.Descriptor, }, |
| | 43 | | new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { |
| | 44 | | new pbr::GeneratedClrTypeInfo(typeof(global::DCL.ECSComponents.PBAvatarShape), global::DCL.ECSComponents.PBA |
| | 45 | | })); |
| | 46 | | } |
| | 47 | | #endregion |
| | 48 | |
|
| | 49 | | } |
| | 50 | | #region Messages |
| | 51 | | public sealed partial class PBAvatarShape : pb::IMessage<PBAvatarShape> |
| | 52 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| | 53 | | , pb::IBufferMessage |
| | 54 | | #endif |
| | 55 | | { |
| 2 | 56 | | private static readonly pb::MessageParser<PBAvatarShape> _parser = new pb::MessageParser<PBAvatarShape>(() => new PB |
| | 57 | | private pb::UnknownFieldSet _unknownFields; |
| | 58 | | private int _hasBits0; |
| | 59 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 60 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| 0 | 61 | | public static pb::MessageParser<PBAvatarShape> Parser { get { return _parser; } } |
| | 62 | |
|
| | 63 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 64 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 65 | | public static pbr::MessageDescriptor Descriptor { |
| 0 | 66 | | get { return global::DCL.ECSComponents.AvatarShapeReflection.Descriptor.MessageTypes[0]; } |
| | 67 | | } |
| | 68 | |
|
| | 69 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 70 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 71 | | pbr::MessageDescriptor pb::IMessage.Descriptor { |
| 0 | 72 | | get { return Descriptor; } |
| | 73 | | } |
| | 74 | |
|
| | 75 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 76 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| 14 | 77 | | public PBAvatarShape() { |
| | 78 | | OnConstruction(); |
| 14 | 79 | | } |
| | 80 | |
|
| | 81 | | partial void OnConstruction(); |
| | 82 | |
|
| | 83 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 84 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| 0 | 85 | | public PBAvatarShape(PBAvatarShape other) : this() { |
| 0 | 86 | | _hasBits0 = other._hasBits0; |
| 0 | 87 | | id_ = other.id_; |
| 0 | 88 | | name_ = other.name_; |
| 0 | 89 | | bodyShape_ = other.bodyShape_; |
| 0 | 90 | | skinColor_ = other.skinColor_ != null ? other.skinColor_.Clone() : null; |
| 0 | 91 | | hairColor_ = other.hairColor_ != null ? other.hairColor_.Clone() : null; |
| 0 | 92 | | eyeColor_ = other.eyeColor_ != null ? other.eyeColor_.Clone() : null; |
| 0 | 93 | | expressionTriggerId_ = other.expressionTriggerId_; |
| 0 | 94 | | expressionTriggerTimestamp_ = other.expressionTriggerTimestamp_; |
| 0 | 95 | | talking_ = other.talking_; |
| 0 | 96 | | wearables_ = other.wearables_.Clone(); |
| 0 | 97 | | emotes_ = other.emotes_.Clone(); |
| 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 PBAvatarShape Clone() { |
| 0 | 104 | | return new PBAvatarShape(this); |
| | 105 | | } |
| | 106 | |
|
| | 107 | | /// <summary>Field number for the "id" field.</summary> |
| | 108 | | public const int IdFieldNumber = 1; |
| 14 | 109 | | private string id_ = ""; |
| | 110 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 111 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 112 | | public string Id { |
| 0 | 113 | | get { return id_; } |
| | 114 | | set { |
| 8 | 115 | | id_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); |
| 8 | 116 | | } |
| | 117 | | } |
| | 118 | |
|
| | 119 | | /// <summary>Field number for the "name" field.</summary> |
| | 120 | | public const int NameFieldNumber = 2; |
| | 121 | | private string name_; |
| | 122 | | /// <summary> |
| | 123 | | /// default = NPC |
| | 124 | | /// </summary> |
| | 125 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 126 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 127 | | public string Name { |
| 0 | 128 | | get { return name_ ?? ""; } |
| | 129 | | set { |
| 8 | 130 | | name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); |
| 8 | 131 | | } |
| | 132 | | } |
| | 133 | | /// <summary>Gets whether the "name" field is set</summary> |
| | 134 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 135 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 136 | | public bool HasName { |
| 0 | 137 | | get { return name_ != null; } |
| | 138 | | } |
| | 139 | | /// <summary>Clears the value of the "name" field</summary> |
| | 140 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 141 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 142 | | public void ClearName() { |
| 0 | 143 | | name_ = null; |
| 0 | 144 | | } |
| | 145 | |
|
| | 146 | | /// <summary>Field number for the "body_shape" field.</summary> |
| | 147 | | public const int BodyShapeFieldNumber = 3; |
| | 148 | | private string bodyShape_; |
| | 149 | | /// <summary> |
| | 150 | | /// default = urn:decentraland:off-chain:base-avatars:BaseFemale |
| | 151 | | /// </summary> |
| | 152 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 153 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 154 | | public string BodyShape { |
| 0 | 155 | | get { return bodyShape_ ?? ""; } |
| | 156 | | set { |
| 8 | 157 | | bodyShape_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); |
| 8 | 158 | | } |
| | 159 | | } |
| | 160 | | /// <summary>Gets whether the "body_shape" field is set</summary> |
| | 161 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 162 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 163 | | public bool HasBodyShape { |
| 0 | 164 | | get { return bodyShape_ != null; } |
| | 165 | | } |
| | 166 | | /// <summary>Clears the value of the "body_shape" field</summary> |
| | 167 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 168 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 169 | | public void ClearBodyShape() { |
| 0 | 170 | | bodyShape_ = null; |
| 0 | 171 | | } |
| | 172 | |
|
| | 173 | | /// <summary>Field number for the "skin_color" field.</summary> |
| | 174 | | public const int SkinColorFieldNumber = 4; |
| | 175 | | private global::DCL.ECSComponents.Color3 skinColor_; |
| | 176 | | /// <summary> |
| | 177 | | /// default = Color3(R = 0.6f, G = 0.462f, B = 0.356f) |
| | 178 | | /// </summary> |
| | 179 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 180 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 181 | | public global::DCL.ECSComponents.Color3 SkinColor { |
| 24 | 182 | | get { return skinColor_; } |
| | 183 | | set { |
| 8 | 184 | | skinColor_ = value; |
| 8 | 185 | | } |
| | 186 | | } |
| | 187 | |
|
| | 188 | | /// <summary>Field number for the "hair_color" field.</summary> |
| | 189 | | public const int HairColorFieldNumber = 5; |
| | 190 | | private global::DCL.ECSComponents.Color3 hairColor_; |
| | 191 | | /// <summary> |
| | 192 | | /// default = Color3(R = 0.283f, G = 0.142f, B = 0f) |
| | 193 | | /// </summary> |
| | 194 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 195 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 196 | | public global::DCL.ECSComponents.Color3 HairColor { |
| 24 | 197 | | get { return hairColor_; } |
| | 198 | | set { |
| 8 | 199 | | hairColor_ = value; |
| 8 | 200 | | } |
| | 201 | | } |
| | 202 | |
|
| | 203 | | /// <summary>Field number for the "eye_color" field.</summary> |
| | 204 | | public const int EyeColorFieldNumber = 6; |
| | 205 | | private global::DCL.ECSComponents.Color3 eyeColor_; |
| | 206 | | /// <summary> |
| | 207 | | /// default = Color3(R = 0.6f, G = 0.462f, B = 0.356f) |
| | 208 | | /// </summary> |
| | 209 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 210 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 211 | | public global::DCL.ECSComponents.Color3 EyeColor { |
| 24 | 212 | | get { return eyeColor_; } |
| | 213 | | set { |
| 8 | 214 | | eyeColor_ = value; |
| 8 | 215 | | } |
| | 216 | | } |
| | 217 | |
|
| | 218 | | /// <summary>Field number for the "expression_trigger_id" field.</summary> |
| | 219 | | public const int ExpressionTriggerIdFieldNumber = 7; |
| | 220 | | private string expressionTriggerId_; |
| | 221 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 222 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 223 | | public string ExpressionTriggerId { |
| 0 | 224 | | get { return expressionTriggerId_ ?? ""; } |
| | 225 | | set { |
| 8 | 226 | | expressionTriggerId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); |
| 8 | 227 | | } |
| | 228 | | } |
| | 229 | | /// <summary>Gets whether the "expression_trigger_id" field is set</summary> |
| | 230 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 231 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 232 | | public bool HasExpressionTriggerId { |
| 0 | 233 | | get { return expressionTriggerId_ != null; } |
| | 234 | | } |
| | 235 | | /// <summary>Clears the value of the "expression_trigger_id" field</summary> |
| | 236 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 237 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 238 | | public void ClearExpressionTriggerId() { |
| 0 | 239 | | expressionTriggerId_ = null; |
| 0 | 240 | | } |
| | 241 | |
|
| | 242 | | /// <summary>Field number for the "expression_trigger_timestamp" field.</summary> |
| | 243 | | public const int ExpressionTriggerTimestampFieldNumber = 8; |
| | 244 | | private long expressionTriggerTimestamp_; |
| | 245 | | /// <summary> |
| | 246 | | /// default = timestamp |
| | 247 | | /// </summary> |
| | 248 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 249 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 250 | | public long ExpressionTriggerTimestamp { |
| 14 | 251 | | get { if ((_hasBits0 & 1) != 0) { return expressionTriggerTimestamp_; } else { return 0L; } } |
| | 252 | | set { |
| 9 | 253 | | _hasBits0 |= 1; |
| 9 | 254 | | expressionTriggerTimestamp_ = value; |
| 9 | 255 | | } |
| | 256 | | } |
| | 257 | | /// <summary>Gets whether the "expression_trigger_timestamp" field is set</summary> |
| | 258 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 259 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 260 | | public bool HasExpressionTriggerTimestamp { |
| 0 | 261 | | get { return (_hasBits0 & 1) != 0; } |
| | 262 | | } |
| | 263 | | /// <summary>Clears the value of the "expression_trigger_timestamp" field</summary> |
| | 264 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 265 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 266 | | public void ClearExpressionTriggerTimestamp() { |
| 0 | 267 | | _hasBits0 &= ~1; |
| 0 | 268 | | } |
| | 269 | |
|
| | 270 | | /// <summary>Field number for the "talking" field.</summary> |
| | 271 | | public const int TalkingFieldNumber = 9; |
| | 272 | | private bool talking_; |
| | 273 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 274 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 275 | | public bool Talking { |
| 0 | 276 | | get { if ((_hasBits0 & 2) != 0) { return talking_; } else { return false; } } |
| | 277 | | set { |
| 0 | 278 | | _hasBits0 |= 2; |
| 0 | 279 | | talking_ = value; |
| 0 | 280 | | } |
| | 281 | | } |
| | 282 | | /// <summary>Gets whether the "talking" field is set</summary> |
| | 283 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 284 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 285 | | public bool HasTalking { |
| 0 | 286 | | get { return (_hasBits0 & 2) != 0; } |
| | 287 | | } |
| | 288 | | /// <summary>Clears the value of the "talking" field</summary> |
| | 289 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 290 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 291 | | public void ClearTalking() { |
| 0 | 292 | | _hasBits0 &= ~2; |
| 0 | 293 | | } |
| | 294 | |
|
| | 295 | | /// <summary>Field number for the "wearables" field.</summary> |
| | 296 | | public const int WearablesFieldNumber = 10; |
| 1 | 297 | | private static readonly pb::FieldCodec<string> _repeated_wearables_codec |
| | 298 | | = pb::FieldCodec.ForString(82); |
| 14 | 299 | | private readonly pbc::RepeatedField<string> wearables_ = new pbc::RepeatedField<string>(); |
| | 300 | | /// <summary> |
| | 301 | | ///* |
| | 302 | | /// default = ["urn:decentraland:off-chain:base-avatars:f_eyes_00", |
| | 303 | | /// "urn:decentraland:off-chain:base-avatars:f_eyebrows_00", |
| | 304 | | /// "urn:decentraland:off-chain:base-avatars:f_mouth_00" |
| | 305 | | /// "urn:decentraland:off-chain:base-avatars:standard_hair", |
| | 306 | | /// "urn:decentraland:off-chain:base-avatars:f_simple_yellow_tshirt", |
| | 307 | | /// "urn:decentraland:off-chain:base-avatars:f_brown_trousers", |
| | 308 | | /// "urn:decentraland:off-chain:base-avatars:bun_shoes"] |
| | 309 | | /// </summary> |
| | 310 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 311 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 312 | | public pbc::RepeatedField<string> Wearables { |
| 88 | 313 | | get { return wearables_; } |
| | 314 | | } |
| | 315 | |
|
| | 316 | | /// <summary>Field number for the "emotes" field.</summary> |
| | 317 | | public const int EmotesFieldNumber = 11; |
| 1 | 318 | | private static readonly pb::FieldCodec<string> _repeated_emotes_codec |
| | 319 | | = pb::FieldCodec.ForString(90); |
| 14 | 320 | | private readonly pbc::RepeatedField<string> emotes_ = new pbc::RepeatedField<string>(); |
| | 321 | | /// <summary> |
| | 322 | | ///* |
| | 323 | | /// default = [] |
| | 324 | | /// </summary> |
| | 325 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 326 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 327 | | public pbc::RepeatedField<string> Emotes { |
| 0 | 328 | | get { return emotes_; } |
| | 329 | | } |
| | 330 | |
|
| | 331 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 332 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 333 | | public override bool Equals(object other) { |
| 1 | 334 | | return Equals(other as PBAvatarShape); |
| | 335 | | } |
| | 336 | |
|
| | 337 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 338 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 339 | | public bool Equals(PBAvatarShape other) { |
| 1 | 340 | | if (ReferenceEquals(other, null)) { |
| 0 | 341 | | return false; |
| | 342 | | } |
| 1 | 343 | | if (ReferenceEquals(other, this)) { |
| 1 | 344 | | return true; |
| | 345 | | } |
| 0 | 346 | | if (Id != other.Id) return false; |
| 0 | 347 | | if (Name != other.Name) return false; |
| 0 | 348 | | if (BodyShape != other.BodyShape) return false; |
| 0 | 349 | | if (!object.Equals(SkinColor, other.SkinColor)) return false; |
| 0 | 350 | | if (!object.Equals(HairColor, other.HairColor)) return false; |
| 0 | 351 | | if (!object.Equals(EyeColor, other.EyeColor)) return false; |
| 0 | 352 | | if (ExpressionTriggerId != other.ExpressionTriggerId) return false; |
| 0 | 353 | | if (ExpressionTriggerTimestamp != other.ExpressionTriggerTimestamp) return false; |
| 0 | 354 | | if (Talking != other.Talking) return false; |
| 0 | 355 | | if(!wearables_.Equals(other.wearables_)) return false; |
| 0 | 356 | | if(!emotes_.Equals(other.emotes_)) return false; |
| 0 | 357 | | return Equals(_unknownFields, other._unknownFields); |
| | 358 | | } |
| | 359 | |
|
| | 360 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 361 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 362 | | public override int GetHashCode() { |
| 0 | 363 | | int hash = 1; |
| 0 | 364 | | if (Id.Length != 0) hash ^= Id.GetHashCode(); |
| 0 | 365 | | if (HasName) hash ^= Name.GetHashCode(); |
| 0 | 366 | | if (HasBodyShape) hash ^= BodyShape.GetHashCode(); |
| 0 | 367 | | if (skinColor_ != null) hash ^= SkinColor.GetHashCode(); |
| 0 | 368 | | if (hairColor_ != null) hash ^= HairColor.GetHashCode(); |
| 0 | 369 | | if (eyeColor_ != null) hash ^= EyeColor.GetHashCode(); |
| 0 | 370 | | if (HasExpressionTriggerId) hash ^= ExpressionTriggerId.GetHashCode(); |
| 0 | 371 | | if (HasExpressionTriggerTimestamp) hash ^= ExpressionTriggerTimestamp.GetHashCode(); |
| 0 | 372 | | if (HasTalking) hash ^= Talking.GetHashCode(); |
| 0 | 373 | | hash ^= wearables_.GetHashCode(); |
| 0 | 374 | | hash ^= emotes_.GetHashCode(); |
| 0 | 375 | | if (_unknownFields != null) { |
| 0 | 376 | | hash ^= _unknownFields.GetHashCode(); |
| | 377 | | } |
| 0 | 378 | | return hash; |
| | 379 | | } |
| | 380 | |
|
| | 381 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 382 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 383 | | public override string ToString() { |
| 0 | 384 | | return pb::JsonFormatter.ToDiagnosticString(this); |
| | 385 | | } |
| | 386 | |
|
| | 387 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 388 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 389 | | public void WriteTo(pb::CodedOutputStream output) { |
| | 390 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| | 391 | | output.WriteRawMessage(this); |
| | 392 | | #else |
| 1 | 393 | | if (Id.Length != 0) { |
| 1 | 394 | | output.WriteRawTag(10); |
| 1 | 395 | | output.WriteString(Id); |
| | 396 | | } |
| 1 | 397 | | if (HasName) { |
| 1 | 398 | | output.WriteRawTag(18); |
| 1 | 399 | | output.WriteString(Name); |
| | 400 | | } |
| 1 | 401 | | if (HasBodyShape) { |
| 1 | 402 | | output.WriteRawTag(26); |
| 1 | 403 | | output.WriteString(BodyShape); |
| | 404 | | } |
| 1 | 405 | | if (skinColor_ != null) { |
| 1 | 406 | | output.WriteRawTag(34); |
| 1 | 407 | | output.WriteMessage(SkinColor); |
| | 408 | | } |
| 1 | 409 | | if (hairColor_ != null) { |
| 1 | 410 | | output.WriteRawTag(42); |
| 1 | 411 | | output.WriteMessage(HairColor); |
| | 412 | | } |
| 1 | 413 | | if (eyeColor_ != null) { |
| 1 | 414 | | output.WriteRawTag(50); |
| 1 | 415 | | output.WriteMessage(EyeColor); |
| | 416 | | } |
| 1 | 417 | | if (HasExpressionTriggerId) { |
| 1 | 418 | | output.WriteRawTag(58); |
| 1 | 419 | | output.WriteString(ExpressionTriggerId); |
| | 420 | | } |
| 1 | 421 | | if (HasExpressionTriggerTimestamp) { |
| 1 | 422 | | output.WriteRawTag(64); |
| 1 | 423 | | output.WriteInt64(ExpressionTriggerTimestamp); |
| | 424 | | } |
| 1 | 425 | | if (HasTalking) { |
| 0 | 426 | | output.WriteRawTag(72); |
| 0 | 427 | | output.WriteBool(Talking); |
| | 428 | | } |
| 1 | 429 | | wearables_.WriteTo(output, _repeated_wearables_codec); |
| 1 | 430 | | emotes_.WriteTo(output, _repeated_emotes_codec); |
| 1 | 431 | | if (_unknownFields != null) { |
| 0 | 432 | | _unknownFields.WriteTo(output); |
| | 433 | | } |
| | 434 | | #endif |
| 1 | 435 | | } |
| | 436 | |
|
| | 437 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| | 438 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 439 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 440 | | void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { |
| | 441 | | if (Id.Length != 0) { |
| | 442 | | output.WriteRawTag(10); |
| | 443 | | output.WriteString(Id); |
| | 444 | | } |
| | 445 | | if (HasName) { |
| | 446 | | output.WriteRawTag(18); |
| | 447 | | output.WriteString(Name); |
| | 448 | | } |
| | 449 | | if (HasBodyShape) { |
| | 450 | | output.WriteRawTag(26); |
| | 451 | | output.WriteString(BodyShape); |
| | 452 | | } |
| | 453 | | if (skinColor_ != null) { |
| | 454 | | output.WriteRawTag(34); |
| | 455 | | output.WriteMessage(SkinColor); |
| | 456 | | } |
| | 457 | | if (hairColor_ != null) { |
| | 458 | | output.WriteRawTag(42); |
| | 459 | | output.WriteMessage(HairColor); |
| | 460 | | } |
| | 461 | | if (eyeColor_ != null) { |
| | 462 | | output.WriteRawTag(50); |
| | 463 | | output.WriteMessage(EyeColor); |
| | 464 | | } |
| | 465 | | if (HasExpressionTriggerId) { |
| | 466 | | output.WriteRawTag(58); |
| | 467 | | output.WriteString(ExpressionTriggerId); |
| | 468 | | } |
| | 469 | | if (HasExpressionTriggerTimestamp) { |
| | 470 | | output.WriteRawTag(64); |
| | 471 | | output.WriteInt64(ExpressionTriggerTimestamp); |
| | 472 | | } |
| | 473 | | if (HasTalking) { |
| | 474 | | output.WriteRawTag(72); |
| | 475 | | output.WriteBool(Talking); |
| | 476 | | } |
| | 477 | | wearables_.WriteTo(ref output, _repeated_wearables_codec); |
| | 478 | | emotes_.WriteTo(ref output, _repeated_emotes_codec); |
| | 479 | | if (_unknownFields != null) { |
| | 480 | | _unknownFields.WriteTo(ref output); |
| | 481 | | } |
| | 482 | | } |
| | 483 | | #endif |
| | 484 | |
|
| | 485 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 486 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 487 | | public int CalculateSize() { |
| 1 | 488 | | int size = 0; |
| 1 | 489 | | if (Id.Length != 0) { |
| 1 | 490 | | size += 1 + pb::CodedOutputStream.ComputeStringSize(Id); |
| | 491 | | } |
| 1 | 492 | | if (HasName) { |
| 1 | 493 | | size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); |
| | 494 | | } |
| 1 | 495 | | if (HasBodyShape) { |
| 1 | 496 | | size += 1 + pb::CodedOutputStream.ComputeStringSize(BodyShape); |
| | 497 | | } |
| 1 | 498 | | if (skinColor_ != null) { |
| 1 | 499 | | size += 1 + pb::CodedOutputStream.ComputeMessageSize(SkinColor); |
| | 500 | | } |
| 1 | 501 | | if (hairColor_ != null) { |
| 1 | 502 | | size += 1 + pb::CodedOutputStream.ComputeMessageSize(HairColor); |
| | 503 | | } |
| 1 | 504 | | if (eyeColor_ != null) { |
| 1 | 505 | | size += 1 + pb::CodedOutputStream.ComputeMessageSize(EyeColor); |
| | 506 | | } |
| 1 | 507 | | if (HasExpressionTriggerId) { |
| 1 | 508 | | size += 1 + pb::CodedOutputStream.ComputeStringSize(ExpressionTriggerId); |
| | 509 | | } |
| 1 | 510 | | if (HasExpressionTriggerTimestamp) { |
| 1 | 511 | | size += 1 + pb::CodedOutputStream.ComputeInt64Size(ExpressionTriggerTimestamp); |
| | 512 | | } |
| 1 | 513 | | if (HasTalking) { |
| 0 | 514 | | size += 1 + 1; |
| | 515 | | } |
| 1 | 516 | | size += wearables_.CalculateSize(_repeated_wearables_codec); |
| 1 | 517 | | size += emotes_.CalculateSize(_repeated_emotes_codec); |
| 1 | 518 | | if (_unknownFields != null) { |
| 0 | 519 | | size += _unknownFields.CalculateSize(); |
| | 520 | | } |
| 1 | 521 | | return size; |
| | 522 | | } |
| | 523 | |
|
| | 524 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 525 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 526 | | public void MergeFrom(PBAvatarShape other) { |
| 0 | 527 | | if (other == null) { |
| 0 | 528 | | return; |
| | 529 | | } |
| 0 | 530 | | if (other.Id.Length != 0) { |
| 0 | 531 | | Id = other.Id; |
| | 532 | | } |
| 0 | 533 | | if (other.HasName) { |
| 0 | 534 | | Name = other.Name; |
| | 535 | | } |
| 0 | 536 | | if (other.HasBodyShape) { |
| 0 | 537 | | BodyShape = other.BodyShape; |
| | 538 | | } |
| 0 | 539 | | if (other.skinColor_ != null) { |
| 0 | 540 | | if (skinColor_ == null) { |
| 0 | 541 | | SkinColor = new global::DCL.ECSComponents.Color3(); |
| | 542 | | } |
| 0 | 543 | | SkinColor.MergeFrom(other.SkinColor); |
| | 544 | | } |
| 0 | 545 | | if (other.hairColor_ != null) { |
| 0 | 546 | | if (hairColor_ == null) { |
| 0 | 547 | | HairColor = new global::DCL.ECSComponents.Color3(); |
| | 548 | | } |
| 0 | 549 | | HairColor.MergeFrom(other.HairColor); |
| | 550 | | } |
| 0 | 551 | | if (other.eyeColor_ != null) { |
| 0 | 552 | | if (eyeColor_ == null) { |
| 0 | 553 | | EyeColor = new global::DCL.ECSComponents.Color3(); |
| | 554 | | } |
| 0 | 555 | | EyeColor.MergeFrom(other.EyeColor); |
| | 556 | | } |
| 0 | 557 | | if (other.HasExpressionTriggerId) { |
| 0 | 558 | | ExpressionTriggerId = other.ExpressionTriggerId; |
| | 559 | | } |
| 0 | 560 | | if (other.HasExpressionTriggerTimestamp) { |
| 0 | 561 | | ExpressionTriggerTimestamp = other.ExpressionTriggerTimestamp; |
| | 562 | | } |
| 0 | 563 | | if (other.HasTalking) { |
| 0 | 564 | | Talking = other.Talking; |
| | 565 | | } |
| 0 | 566 | | wearables_.Add(other.wearables_); |
| 0 | 567 | | emotes_.Add(other.emotes_); |
| 0 | 568 | | _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); |
| 0 | 569 | | } |
| | 570 | |
|
| | 571 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 572 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 573 | | public void MergeFrom(pb::CodedInputStream input) { |
| | 574 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| | 575 | | input.ReadRawMessage(this); |
| | 576 | | #else |
| | 577 | | uint tag; |
| 10 | 578 | | while ((tag = input.ReadTag()) != 0) { |
| | 579 | | switch(tag) { |
| | 580 | | default: |
| 0 | 581 | | _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); |
| 0 | 582 | | break; |
| | 583 | | case 10: { |
| 1 | 584 | | Id = input.ReadString(); |
| 1 | 585 | | break; |
| | 586 | | } |
| | 587 | | case 18: { |
| 1 | 588 | | Name = input.ReadString(); |
| 1 | 589 | | break; |
| | 590 | | } |
| | 591 | | case 26: { |
| 1 | 592 | | BodyShape = input.ReadString(); |
| 1 | 593 | | break; |
| | 594 | | } |
| | 595 | | case 34: { |
| 1 | 596 | | if (skinColor_ == null) { |
| 1 | 597 | | SkinColor = new global::DCL.ECSComponents.Color3(); |
| | 598 | | } |
| 1 | 599 | | input.ReadMessage(SkinColor); |
| 1 | 600 | | break; |
| | 601 | | } |
| | 602 | | case 42: { |
| 1 | 603 | | if (hairColor_ == null) { |
| 1 | 604 | | HairColor = new global::DCL.ECSComponents.Color3(); |
| | 605 | | } |
| 1 | 606 | | input.ReadMessage(HairColor); |
| 1 | 607 | | break; |
| | 608 | | } |
| | 609 | | case 50: { |
| 1 | 610 | | if (eyeColor_ == null) { |
| 1 | 611 | | EyeColor = new global::DCL.ECSComponents.Color3(); |
| | 612 | | } |
| 1 | 613 | | input.ReadMessage(EyeColor); |
| 1 | 614 | | break; |
| | 615 | | } |
| | 616 | | case 58: { |
| 1 | 617 | | ExpressionTriggerId = input.ReadString(); |
| 1 | 618 | | break; |
| | 619 | | } |
| | 620 | | case 64: { |
| 1 | 621 | | ExpressionTriggerTimestamp = input.ReadInt64(); |
| 1 | 622 | | break; |
| | 623 | | } |
| | 624 | | case 72: { |
| 0 | 625 | | Talking = input.ReadBool(); |
| 0 | 626 | | break; |
| | 627 | | } |
| | 628 | | case 82: { |
| 1 | 629 | | wearables_.AddEntriesFrom(input, _repeated_wearables_codec); |
| 1 | 630 | | break; |
| | 631 | | } |
| | 632 | | case 90: { |
| 0 | 633 | | emotes_.AddEntriesFrom(input, _repeated_emotes_codec); |
| | 634 | | break; |
| | 635 | | } |
| | 636 | | } |
| | 637 | | } |
| | 638 | | #endif |
| 1 | 639 | | } |
| | 640 | |
|
| | 641 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| | 642 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 643 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 644 | | void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { |
| | 645 | | uint tag; |
| | 646 | | while ((tag = input.ReadTag()) != 0) { |
| | 647 | | switch(tag) { |
| | 648 | | default: |
| | 649 | | _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); |
| | 650 | | break; |
| | 651 | | case 10: { |
| | 652 | | Id = input.ReadString(); |
| | 653 | | break; |
| | 654 | | } |
| | 655 | | case 18: { |
| | 656 | | Name = input.ReadString(); |
| | 657 | | break; |
| | 658 | | } |
| | 659 | | case 26: { |
| | 660 | | BodyShape = input.ReadString(); |
| | 661 | | break; |
| | 662 | | } |
| | 663 | | case 34: { |
| | 664 | | if (skinColor_ == null) { |
| | 665 | | SkinColor = new global::DCL.ECSComponents.Color3(); |
| | 666 | | } |
| | 667 | | input.ReadMessage(SkinColor); |
| | 668 | | break; |
| | 669 | | } |
| | 670 | | case 42: { |
| | 671 | | if (hairColor_ == null) { |
| | 672 | | HairColor = new global::DCL.ECSComponents.Color3(); |
| | 673 | | } |
| | 674 | | input.ReadMessage(HairColor); |
| | 675 | | break; |
| | 676 | | } |
| | 677 | | case 50: { |
| | 678 | | if (eyeColor_ == null) { |
| | 679 | | EyeColor = new global::DCL.ECSComponents.Color3(); |
| | 680 | | } |
| | 681 | | input.ReadMessage(EyeColor); |
| | 682 | | break; |
| | 683 | | } |
| | 684 | | case 58: { |
| | 685 | | ExpressionTriggerId = input.ReadString(); |
| | 686 | | break; |
| | 687 | | } |
| | 688 | | case 64: { |
| | 689 | | ExpressionTriggerTimestamp = input.ReadInt64(); |
| | 690 | | break; |
| | 691 | | } |
| | 692 | | case 72: { |
| | 693 | | Talking = input.ReadBool(); |
| | 694 | | break; |
| | 695 | | } |
| | 696 | | case 82: { |
| | 697 | | wearables_.AddEntriesFrom(ref input, _repeated_wearables_codec); |
| | 698 | | break; |
| | 699 | | } |
| | 700 | | case 90: { |
| | 701 | | emotes_.AddEntriesFrom(ref input, _repeated_emotes_codec); |
| | 702 | | break; |
| | 703 | | } |
| | 704 | | } |
| | 705 | | } |
| | 706 | | } |
| | 707 | | #endif |
| | 708 | |
|
| | 709 | | } |
| | 710 | |
|
| | 711 | | #endregion |
| | 712 | |
|
| | 713 | | } |
| | 714 | |
|
| | 715 | | #endregion Designer generated code |