| | 1 | | // <auto-generated> |
| | 2 | | // Generated by the protocol buffer compiler. DO NOT EDIT! |
| | 3 | | // source: NFTShape.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 NFTShape.proto</summary> |
| | 15 | | public static partial class NFTShapeReflection { |
| | 16 | |
|
| | 17 | | #region Descriptor |
| | 18 | | /// <summary>File descriptor for NFTShape.proto</summary> |
| | 19 | | public static pbr::FileDescriptor Descriptor { |
| | 20 | | get { return descriptor; } |
| | 21 | | } |
| | 22 | | private static pbr::FileDescriptor descriptor; |
| | 23 | |
|
| | 24 | | static NFTShapeReflection() { |
| | 25 | | byte[] descriptorData = global::System.Convert.FromBase64String( |
| | 26 | | string.Concat( |
| | 27 | | "Cg5ORlRTaGFwZS5wcm90bxIQZGVjZW50cmFsYW5kLmVjcxoTY29tbW9uL0Nv", |
| | 28 | | "bG9yMy5wcm90byKOAgoKUEJORlRTaGFwZRIcCg93aXRoX2NvbGxpc2lvbnMY", |
| | 29 | | "ASABKAhIAIgBARIfChJpc19wb2ludGVyX2Jsb2NrZXIYAiABKAhIAYgBARIU", |
| | 30 | | "Cgd2aXNpYmxlGAMgASgISAKIAQESCwoDc3JjGAQgASgJEhUKCGFzc2V0X2lk", |
| | 31 | | "GAUgASgJSAOIAQESEgoFc3R5bGUYBiABKAVIBIgBARIbCgVjb2xvchgHIAEo", |
| | 32 | | "CzIHLkNvbG9yM0gFiAEBQhIKEF93aXRoX2NvbGxpc2lvbnNCFQoTX2lzX3Bv", |
| | 33 | | "aW50ZXJfYmxvY2tlckIKCghfdmlzaWJsZUILCglfYXNzZXRfaWRCCAoGX3N0", |
| | 34 | | "eWxlQggKBl9jb2xvckIUqgIRRENMLkVDU0NvbXBvbmVudHNiBnByb3RvMw==")); |
| | 35 | | descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, |
| | 36 | | new pbr::FileDescriptor[] { global::Color3Reflection.Descriptor, }, |
| | 37 | | new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { |
| | 38 | | new pbr::GeneratedClrTypeInfo(typeof(global::DCL.ECSComponents.PBNFTShape), global::DCL.ECSComponents.PBNFTS |
| | 39 | | })); |
| | 40 | | } |
| | 41 | | #endregion |
| | 42 | |
|
| | 43 | | } |
| | 44 | | #region Messages |
| | 45 | | public sealed partial class PBNFTShape : pb::IMessage<PBNFTShape> |
| | 46 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| | 47 | | , pb::IBufferMessage |
| | 48 | | #endif |
| | 49 | | { |
| 4 | 50 | | private static readonly pb::MessageParser<PBNFTShape> _parser = new pb::MessageParser<PBNFTShape>(() => new PBNFTSha |
| | 51 | | private pb::UnknownFieldSet _unknownFields; |
| | 52 | | private int _hasBits0; |
| | 53 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 54 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| 0 | 55 | | public static pb::MessageParser<PBNFTShape> Parser { get { return _parser; } } |
| | 56 | |
|
| | 57 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 58 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 59 | | public static pbr::MessageDescriptor Descriptor { |
| 0 | 60 | | get { return global::DCL.ECSComponents.NFTShapeReflection.Descriptor.MessageTypes[0]; } |
| | 61 | | } |
| | 62 | |
|
| | 63 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 64 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 65 | | pbr::MessageDescriptor pb::IMessage.Descriptor { |
| 0 | 66 | | get { return Descriptor; } |
| | 67 | | } |
| | 68 | |
|
| | 69 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 70 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| 8 | 71 | | public PBNFTShape() { |
| | 72 | | OnConstruction(); |
| 8 | 73 | | } |
| | 74 | |
|
| | 75 | | partial void OnConstruction(); |
| | 76 | |
|
| | 77 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 78 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| 0 | 79 | | public PBNFTShape(PBNFTShape other) : this() { |
| 0 | 80 | | _hasBits0 = other._hasBits0; |
| 0 | 81 | | withCollisions_ = other.withCollisions_; |
| 0 | 82 | | isPointerBlocker_ = other.isPointerBlocker_; |
| 0 | 83 | | visible_ = other.visible_; |
| 0 | 84 | | src_ = other.src_; |
| 0 | 85 | | assetId_ = other.assetId_; |
| 0 | 86 | | style_ = other.style_; |
| 0 | 87 | | color_ = other.color_ != null ? other.color_.Clone() : null; |
| 0 | 88 | | _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); |
| 0 | 89 | | } |
| | 90 | |
|
| | 91 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 92 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 93 | | public PBNFTShape Clone() { |
| 0 | 94 | | return new PBNFTShape(this); |
| | 95 | | } |
| | 96 | |
|
| | 97 | | /// <summary>Field number for the "with_collisions" field.</summary> |
| | 98 | | public const int WithCollisionsFieldNumber = 1; |
| | 99 | | private bool withCollisions_; |
| | 100 | | /// <summary> |
| | 101 | | /// @deprecated use MeshCollider instead https://github.com/decentraland/sdk/issues/366 |
| | 102 | | /// </summary> |
| | 103 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 104 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 105 | | public bool WithCollisions { |
| 0 | 106 | | get { if ((_hasBits0 & 1) != 0) { return withCollisions_; } else { return false; } } |
| | 107 | | set { |
| 7 | 108 | | _hasBits0 |= 1; |
| 7 | 109 | | withCollisions_ = value; |
| 7 | 110 | | } |
| | 111 | | } |
| | 112 | | /// <summary>Gets whether the "with_collisions" field is set</summary> |
| | 113 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 114 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 115 | | public bool HasWithCollisions { |
| 0 | 116 | | get { return (_hasBits0 & 1) != 0; } |
| | 117 | | } |
| | 118 | | /// <summary>Clears the value of the "with_collisions" field</summary> |
| | 119 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 120 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 121 | | public void ClearWithCollisions() { |
| 0 | 122 | | _hasBits0 &= ~1; |
| 0 | 123 | | } |
| | 124 | |
|
| | 125 | | /// <summary>Field number for the "is_pointer_blocker" field.</summary> |
| | 126 | | public const int IsPointerBlockerFieldNumber = 2; |
| | 127 | | private bool isPointerBlocker_; |
| | 128 | | /// <summary> |
| | 129 | | /// @deprecated use MeshCollider instead https://github.com/decentraland/sdk/issues/366 |
| | 130 | | /// </summary> |
| | 131 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 132 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 133 | | public bool IsPointerBlocker { |
| 0 | 134 | | get { if ((_hasBits0 & 2) != 0) { return isPointerBlocker_; } else { return false; } } |
| | 135 | | set { |
| 6 | 136 | | _hasBits0 |= 2; |
| 6 | 137 | | isPointerBlocker_ = value; |
| 6 | 138 | | } |
| | 139 | | } |
| | 140 | | /// <summary>Gets whether the "is_pointer_blocker" field is set</summary> |
| | 141 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 142 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 143 | | public bool HasIsPointerBlocker { |
| 0 | 144 | | get { return (_hasBits0 & 2) != 0; } |
| | 145 | | } |
| | 146 | | /// <summary>Clears the value of the "is_pointer_blocker" field</summary> |
| | 147 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 148 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 149 | | public void ClearIsPointerBlocker() { |
| 0 | 150 | | _hasBits0 &= ~2; |
| 0 | 151 | | } |
| | 152 | |
|
| | 153 | | /// <summary>Field number for the "visible" field.</summary> |
| | 154 | | public const int VisibleFieldNumber = 3; |
| | 155 | | private bool visible_; |
| | 156 | | /// <summary> |
| | 157 | | /// @deprecated use HiddenComponent instead https://github.com/decentraland/sdk/issues/353 |
| | 158 | | /// </summary> |
| | 159 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 160 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 161 | | public bool Visible { |
| 0 | 162 | | get { if ((_hasBits0 & 4) != 0) { return visible_; } else { return false; } } |
| | 163 | | set { |
| 7 | 164 | | _hasBits0 |= 4; |
| 7 | 165 | | visible_ = value; |
| 7 | 166 | | } |
| | 167 | | } |
| | 168 | | /// <summary>Gets whether the "visible" field is set</summary> |
| | 169 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 170 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 171 | | public bool HasVisible { |
| 0 | 172 | | get { return (_hasBits0 & 4) != 0; } |
| | 173 | | } |
| | 174 | | /// <summary>Clears the value of the "visible" field</summary> |
| | 175 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 176 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 177 | | public void ClearVisible() { |
| 0 | 178 | | _hasBits0 &= ~4; |
| 0 | 179 | | } |
| | 180 | |
|
| | 181 | | /// <summary>Field number for the "src" field.</summary> |
| | 182 | | public const int SrcFieldNumber = 4; |
| 8 | 183 | | private string src_ = ""; |
| | 184 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 185 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 186 | | public string Src { |
| 0 | 187 | | get { return src_; } |
| | 188 | | set { |
| 8 | 189 | | src_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); |
| 8 | 190 | | } |
| | 191 | | } |
| | 192 | |
|
| | 193 | | /// <summary>Field number for the "asset_id" field.</summary> |
| | 194 | | public const int AssetIdFieldNumber = 5; |
| | 195 | | private string assetId_; |
| | 196 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 197 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 198 | | public string AssetId { |
| 0 | 199 | | get { return assetId_ ?? ""; } |
| | 200 | | set { |
| 0 | 201 | | assetId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); |
| 0 | 202 | | } |
| | 203 | | } |
| | 204 | | /// <summary>Gets whether the "asset_id" field is set</summary> |
| | 205 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 206 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 207 | | public bool HasAssetId { |
| 0 | 208 | | get { return assetId_ != null; } |
| | 209 | | } |
| | 210 | | /// <summary>Clears the value of the "asset_id" field</summary> |
| | 211 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 212 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 213 | | public void ClearAssetId() { |
| 0 | 214 | | assetId_ = null; |
| 0 | 215 | | } |
| | 216 | |
|
| | 217 | | /// <summary>Field number for the "style" field.</summary> |
| | 218 | | public const int StyleFieldNumber = 6; |
| | 219 | | private int style_; |
| | 220 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 221 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 222 | | public int Style { |
| 0 | 223 | | get { if ((_hasBits0 & 8) != 0) { return style_; } else { return 0; } } |
| | 224 | | set { |
| 0 | 225 | | _hasBits0 |= 8; |
| 0 | 226 | | style_ = value; |
| 0 | 227 | | } |
| | 228 | | } |
| | 229 | | /// <summary>Gets whether the "style" field is set</summary> |
| | 230 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 231 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 232 | | public bool HasStyle { |
| 0 | 233 | | get { return (_hasBits0 & 8) != 0; } |
| | 234 | | } |
| | 235 | | /// <summary>Clears the value of the "style" field</summary> |
| | 236 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 237 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 238 | | public void ClearStyle() { |
| 0 | 239 | | _hasBits0 &= ~8; |
| 0 | 240 | | } |
| | 241 | |
|
| | 242 | | /// <summary>Field number for the "color" field.</summary> |
| | 243 | | public const int ColorFieldNumber = 7; |
| | 244 | | private global::Color3 color_; |
| | 245 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 246 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 247 | | public global::Color3 Color { |
| 24 | 248 | | get { return color_; } |
| | 249 | | set { |
| 8 | 250 | | color_ = value; |
| 8 | 251 | | } |
| | 252 | | } |
| | 253 | |
|
| | 254 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 255 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 256 | | public override bool Equals(object other) { |
| 0 | 257 | | return Equals(other as PBNFTShape); |
| | 258 | | } |
| | 259 | |
|
| | 260 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 261 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 262 | | public bool Equals(PBNFTShape other) { |
| 0 | 263 | | if (ReferenceEquals(other, null)) { |
| 0 | 264 | | return false; |
| | 265 | | } |
| 0 | 266 | | if (ReferenceEquals(other, this)) { |
| 0 | 267 | | return true; |
| | 268 | | } |
| 0 | 269 | | if (WithCollisions != other.WithCollisions) return false; |
| 0 | 270 | | if (IsPointerBlocker != other.IsPointerBlocker) return false; |
| 0 | 271 | | if (Visible != other.Visible) return false; |
| 0 | 272 | | if (Src != other.Src) return false; |
| 0 | 273 | | if (AssetId != other.AssetId) return false; |
| 0 | 274 | | if (Style != other.Style) return false; |
| 0 | 275 | | if (!object.Equals(Color, other.Color)) return false; |
| 0 | 276 | | return Equals(_unknownFields, other._unknownFields); |
| | 277 | | } |
| | 278 | |
|
| | 279 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 280 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 281 | | public override int GetHashCode() { |
| 0 | 282 | | int hash = 1; |
| 0 | 283 | | if (HasWithCollisions) hash ^= WithCollisions.GetHashCode(); |
| 0 | 284 | | if (HasIsPointerBlocker) hash ^= IsPointerBlocker.GetHashCode(); |
| 0 | 285 | | if (HasVisible) hash ^= Visible.GetHashCode(); |
| 0 | 286 | | if (Src.Length != 0) hash ^= Src.GetHashCode(); |
| 0 | 287 | | if (HasAssetId) hash ^= AssetId.GetHashCode(); |
| 0 | 288 | | if (HasStyle) hash ^= Style.GetHashCode(); |
| 0 | 289 | | if (color_ != null) hash ^= Color.GetHashCode(); |
| 0 | 290 | | if (_unknownFields != null) { |
| 0 | 291 | | hash ^= _unknownFields.GetHashCode(); |
| | 292 | | } |
| 0 | 293 | | return hash; |
| | 294 | | } |
| | 295 | |
|
| | 296 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 297 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 298 | | public override string ToString() { |
| 0 | 299 | | return pb::JsonFormatter.ToDiagnosticString(this); |
| | 300 | | } |
| | 301 | |
|
| | 302 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 303 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 304 | | public void WriteTo(pb::CodedOutputStream output) { |
| | 305 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| | 306 | | output.WriteRawMessage(this); |
| | 307 | | #else |
| 4 | 308 | | if (HasWithCollisions) { |
| 3 | 309 | | output.WriteRawTag(8); |
| 3 | 310 | | output.WriteBool(WithCollisions); |
| | 311 | | } |
| 4 | 312 | | if (HasIsPointerBlocker) { |
| 3 | 313 | | output.WriteRawTag(16); |
| 3 | 314 | | output.WriteBool(IsPointerBlocker); |
| | 315 | | } |
| 4 | 316 | | if (HasVisible) { |
| 3 | 317 | | output.WriteRawTag(24); |
| 3 | 318 | | output.WriteBool(Visible); |
| | 319 | | } |
| 4 | 320 | | if (Src.Length != 0) { |
| 3 | 321 | | output.WriteRawTag(34); |
| 3 | 322 | | output.WriteString(Src); |
| | 323 | | } |
| 4 | 324 | | if (HasAssetId) { |
| 0 | 325 | | output.WriteRawTag(42); |
| 0 | 326 | | output.WriteString(AssetId); |
| | 327 | | } |
| 4 | 328 | | if (HasStyle) { |
| 0 | 329 | | output.WriteRawTag(48); |
| 0 | 330 | | output.WriteInt32(Style); |
| | 331 | | } |
| 4 | 332 | | if (color_ != null) { |
| 3 | 333 | | output.WriteRawTag(58); |
| 3 | 334 | | output.WriteMessage(Color); |
| | 335 | | } |
| 4 | 336 | | if (_unknownFields != null) { |
| 0 | 337 | | _unknownFields.WriteTo(output); |
| | 338 | | } |
| | 339 | | #endif |
| 4 | 340 | | } |
| | 341 | |
|
| | 342 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| | 343 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 344 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 345 | | void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { |
| | 346 | | if (HasWithCollisions) { |
| | 347 | | output.WriteRawTag(8); |
| | 348 | | output.WriteBool(WithCollisions); |
| | 349 | | } |
| | 350 | | if (HasIsPointerBlocker) { |
| | 351 | | output.WriteRawTag(16); |
| | 352 | | output.WriteBool(IsPointerBlocker); |
| | 353 | | } |
| | 354 | | if (HasVisible) { |
| | 355 | | output.WriteRawTag(24); |
| | 356 | | output.WriteBool(Visible); |
| | 357 | | } |
| | 358 | | if (Src.Length != 0) { |
| | 359 | | output.WriteRawTag(34); |
| | 360 | | output.WriteString(Src); |
| | 361 | | } |
| | 362 | | if (HasAssetId) { |
| | 363 | | output.WriteRawTag(42); |
| | 364 | | output.WriteString(AssetId); |
| | 365 | | } |
| | 366 | | if (HasStyle) { |
| | 367 | | output.WriteRawTag(48); |
| | 368 | | output.WriteInt32(Style); |
| | 369 | | } |
| | 370 | | if (color_ != null) { |
| | 371 | | output.WriteRawTag(58); |
| | 372 | | output.WriteMessage(Color); |
| | 373 | | } |
| | 374 | | if (_unknownFields != null) { |
| | 375 | | _unknownFields.WriteTo(ref output); |
| | 376 | | } |
| | 377 | | } |
| | 378 | | #endif |
| | 379 | |
|
| | 380 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 381 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 382 | | public int CalculateSize() { |
| 3 | 383 | | int size = 0; |
| 3 | 384 | | if (HasWithCollisions) { |
| 3 | 385 | | size += 1 + 1; |
| | 386 | | } |
| 3 | 387 | | if (HasIsPointerBlocker) { |
| 3 | 388 | | size += 1 + 1; |
| | 389 | | } |
| 3 | 390 | | if (HasVisible) { |
| 3 | 391 | | size += 1 + 1; |
| | 392 | | } |
| 3 | 393 | | if (Src.Length != 0) { |
| 3 | 394 | | size += 1 + pb::CodedOutputStream.ComputeStringSize(Src); |
| | 395 | | } |
| 3 | 396 | | if (HasAssetId) { |
| 0 | 397 | | size += 1 + pb::CodedOutputStream.ComputeStringSize(AssetId); |
| | 398 | | } |
| 3 | 399 | | if (HasStyle) { |
| 0 | 400 | | size += 1 + pb::CodedOutputStream.ComputeInt32Size(Style); |
| | 401 | | } |
| 3 | 402 | | if (color_ != null) { |
| 3 | 403 | | size += 1 + pb::CodedOutputStream.ComputeMessageSize(Color); |
| | 404 | | } |
| 3 | 405 | | if (_unknownFields != null) { |
| 0 | 406 | | size += _unknownFields.CalculateSize(); |
| | 407 | | } |
| 3 | 408 | | return size; |
| | 409 | | } |
| | 410 | |
|
| | 411 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 412 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 413 | | public void MergeFrom(PBNFTShape other) { |
| 0 | 414 | | if (other == null) { |
| 0 | 415 | | return; |
| | 416 | | } |
| 0 | 417 | | if (other.HasWithCollisions) { |
| 0 | 418 | | WithCollisions = other.WithCollisions; |
| | 419 | | } |
| 0 | 420 | | if (other.HasIsPointerBlocker) { |
| 0 | 421 | | IsPointerBlocker = other.IsPointerBlocker; |
| | 422 | | } |
| 0 | 423 | | if (other.HasVisible) { |
| 0 | 424 | | Visible = other.Visible; |
| | 425 | | } |
| 0 | 426 | | if (other.Src.Length != 0) { |
| 0 | 427 | | Src = other.Src; |
| | 428 | | } |
| 0 | 429 | | if (other.HasAssetId) { |
| 0 | 430 | | AssetId = other.AssetId; |
| | 431 | | } |
| 0 | 432 | | if (other.HasStyle) { |
| 0 | 433 | | Style = other.Style; |
| | 434 | | } |
| 0 | 435 | | if (other.color_ != null) { |
| 0 | 436 | | if (color_ == null) { |
| 0 | 437 | | Color = new global::Color3(); |
| | 438 | | } |
| 0 | 439 | | Color.MergeFrom(other.Color); |
| | 440 | | } |
| 0 | 441 | | _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); |
| 0 | 442 | | } |
| | 443 | |
|
| | 444 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 445 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 446 | | public void MergeFrom(pb::CodedInputStream input) { |
| | 447 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| | 448 | | input.ReadRawMessage(this); |
| | 449 | | #else |
| | 450 | | uint tag; |
| 18 | 451 | | while ((tag = input.ReadTag()) != 0) { |
| | 452 | | switch(tag) { |
| | 453 | | default: |
| 0 | 454 | | _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); |
| 0 | 455 | | break; |
| | 456 | | case 8: { |
| 3 | 457 | | WithCollisions = input.ReadBool(); |
| 3 | 458 | | break; |
| | 459 | | } |
| | 460 | | case 16: { |
| 3 | 461 | | IsPointerBlocker = input.ReadBool(); |
| 3 | 462 | | break; |
| | 463 | | } |
| | 464 | | case 24: { |
| 3 | 465 | | Visible = input.ReadBool(); |
| 3 | 466 | | break; |
| | 467 | | } |
| | 468 | | case 34: { |
| 3 | 469 | | Src = input.ReadString(); |
| 3 | 470 | | break; |
| | 471 | | } |
| | 472 | | case 42: { |
| 0 | 473 | | AssetId = input.ReadString(); |
| 0 | 474 | | break; |
| | 475 | | } |
| | 476 | | case 48: { |
| 0 | 477 | | Style = input.ReadInt32(); |
| 0 | 478 | | break; |
| | 479 | | } |
| | 480 | | case 58: { |
| 3 | 481 | | if (color_ == null) { |
| 3 | 482 | | Color = new global::Color3(); |
| | 483 | | } |
| 3 | 484 | | input.ReadMessage(Color); |
| | 485 | | break; |
| | 486 | | } |
| | 487 | | } |
| | 488 | | } |
| | 489 | | #endif |
| 3 | 490 | | } |
| | 491 | |
|
| | 492 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| | 493 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 494 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 495 | | void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { |
| | 496 | | uint tag; |
| | 497 | | while ((tag = input.ReadTag()) != 0) { |
| | 498 | | switch(tag) { |
| | 499 | | default: |
| | 500 | | _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); |
| | 501 | | break; |
| | 502 | | case 8: { |
| | 503 | | WithCollisions = input.ReadBool(); |
| | 504 | | break; |
| | 505 | | } |
| | 506 | | case 16: { |
| | 507 | | IsPointerBlocker = input.ReadBool(); |
| | 508 | | break; |
| | 509 | | } |
| | 510 | | case 24: { |
| | 511 | | Visible = input.ReadBool(); |
| | 512 | | break; |
| | 513 | | } |
| | 514 | | case 34: { |
| | 515 | | Src = input.ReadString(); |
| | 516 | | break; |
| | 517 | | } |
| | 518 | | case 42: { |
| | 519 | | AssetId = input.ReadString(); |
| | 520 | | break; |
| | 521 | | } |
| | 522 | | case 48: { |
| | 523 | | Style = input.ReadInt32(); |
| | 524 | | break; |
| | 525 | | } |
| | 526 | | case 58: { |
| | 527 | | if (color_ == null) { |
| | 528 | | Color = new global::Color3(); |
| | 529 | | } |
| | 530 | | input.ReadMessage(Color); |
| | 531 | | break; |
| | 532 | | } |
| | 533 | | } |
| | 534 | | } |
| | 535 | | } |
| | 536 | | #endif |
| | 537 | |
|
| | 538 | | } |
| | 539 | |
|
| | 540 | | #endregion |
| | 541 | |
|
| | 542 | | } |
| | 543 | |
|
| | 544 | | #endregion Designer generated code |