| | 1 | | // <auto-generated> |
| | 2 | | // Generated by the protocol buffer compiler. DO NOT EDIT! |
| | 3 | | // source: decentraland/sdk/components/nft_shape.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/nft_shape.proto</summary> |
| | 15 | | public static partial class NftShapeReflection { |
| | 16 | |
|
| | 17 | | #region Descriptor |
| | 18 | | /// <summary>File descriptor for decentraland/sdk/components/nft_shape.proto</summary> |
| | 19 | | public static pbr::FileDescriptor Descriptor { |
| 0 | 20 | | get { return descriptor; } |
| | 21 | | } |
| | 22 | | private static pbr::FileDescriptor descriptor; |
| | 23 | |
|
| | 24 | | static NftShapeReflection() { |
| 0 | 25 | | byte[] descriptorData = global::System.Convert.FromBase64String( |
| | 26 | | string.Concat( |
| | 27 | | "CitkZWNlbnRyYWxhbmQvc2RrL2NvbXBvbmVudHMvbmZ0X3NoYXBlLnByb3Rv", |
| | 28 | | "EhtkZWNlbnRyYWxhbmQuc2RrLmNvbXBvbmVudHMaIGRlY2VudHJhbGFuZC9j", |
| | 29 | | "b21tb24vY29sb3JzLnByb3RvIp0BCgpQQk5mdFNoYXBlEgsKA3VybhgBIAEo", |
| | 30 | | "CRI9CgVzdHlsZRgCIAEoDjIpLmRlY2VudHJhbGFuZC5zZGsuY29tcG9uZW50", |
| | 31 | | "cy5OZnRGcmFtZVR5cGVIAIgBARIvCgVjb2xvchgDIAEoCzIbLmRlY2VudHJh", |
| | 32 | | "bGFuZC5jb21tb24uQ29sb3IzSAGIAQFCCAoGX3N0eWxlQggKBl9jb2xvcirY", |
| | 33 | | "AwoMTmZ0RnJhbWVUeXBlEg8KC05GVF9DTEFTU0lDEAASGAoUTkZUX0JBUk9R", |
| | 34 | | "VUVfT1JOQU1FTlQQARIYChRORlRfRElBTU9ORF9PUk5BTUVOVBACEhQKEE5G", |
| | 35 | | "VF9NSU5JTUFMX1dJREUQAxIUChBORlRfTUlOSU1BTF9HUkVZEAQSDgoKTkZU", |
| | 36 | | "X0JMT0NLWRAFEhIKDk5GVF9HT0xEX0VER0VTEAYSEwoPTkZUX0dPTERfQ0FS", |
| | 37 | | "VkVEEAcSEQoNTkZUX0dPTERfV0lERRAIEhQKEE5GVF9HT0xEX1JPVU5ERUQQ", |
| | 38 | | "CRIUChBORlRfTUVUQUxfTUVESVVNEAoSEgoOTkZUX01FVEFMX1dJREUQCxIS", |
| | 39 | | "Cg5ORlRfTUVUQUxfU0xJTRAMEhUKEU5GVF9NRVRBTF9ST1VOREVEEA0SDAoI", |
| | 40 | | "TkZUX1BJTlMQDhIVChFORlRfTUlOSU1BTF9CTEFDSxAPEhUKEU5GVF9NSU5J", |
| | 41 | | "TUFMX1dISVRFEBASDAoITkZUX1RBUEUQERIRCg1ORlRfV09PRF9TTElNEBIS", |
| | 42 | | "EQoNTkZUX1dPT0RfV0lERRATEhIKDk5GVF9XT09EX1RXSUdTEBQSDgoKTkZU", |
| | 43 | | "X0NBTlZBUxAVEgwKCE5GVF9OT05FEBZCFKoCEURDTC5FQ1NDb21wb25lbnRz", |
| | 44 | | "YgZwcm90bzM=")); |
| 0 | 45 | | descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, |
| | 46 | | new pbr::FileDescriptor[] { global::Decentraland.Common.ColorsReflection.Descriptor, }, |
| | 47 | | new pbr::GeneratedClrTypeInfo(new[] {typeof(global::DCL.ECSComponents.NftFrameType), }, null, new pbr::Generat |
| | 48 | | new pbr::GeneratedClrTypeInfo(typeof(global::DCL.ECSComponents.PBNftShape), global::DCL.ECSComponents.PBNftS |
| | 49 | | })); |
| 0 | 50 | | } |
| | 51 | | #endregion |
| | 52 | |
|
| | 53 | | } |
| | 54 | | #region Enums |
| | 55 | | /// <summary> |
| | 56 | | /// NftFrameType is a predefined framing style for the image. |
| | 57 | | /// </summary> |
| | 58 | | public enum NftFrameType { |
| | 59 | | [pbr::OriginalName("NFT_CLASSIC")] NftClassic = 0, |
| | 60 | | [pbr::OriginalName("NFT_BAROQUE_ORNAMENT")] NftBaroqueOrnament = 1, |
| | 61 | | [pbr::OriginalName("NFT_DIAMOND_ORNAMENT")] NftDiamondOrnament = 2, |
| | 62 | | [pbr::OriginalName("NFT_MINIMAL_WIDE")] NftMinimalWide = 3, |
| | 63 | | [pbr::OriginalName("NFT_MINIMAL_GREY")] NftMinimalGrey = 4, |
| | 64 | | [pbr::OriginalName("NFT_BLOCKY")] NftBlocky = 5, |
| | 65 | | [pbr::OriginalName("NFT_GOLD_EDGES")] NftGoldEdges = 6, |
| | 66 | | [pbr::OriginalName("NFT_GOLD_CARVED")] NftGoldCarved = 7, |
| | 67 | | [pbr::OriginalName("NFT_GOLD_WIDE")] NftGoldWide = 8, |
| | 68 | | [pbr::OriginalName("NFT_GOLD_ROUNDED")] NftGoldRounded = 9, |
| | 69 | | [pbr::OriginalName("NFT_METAL_MEDIUM")] NftMetalMedium = 10, |
| | 70 | | [pbr::OriginalName("NFT_METAL_WIDE")] NftMetalWide = 11, |
| | 71 | | [pbr::OriginalName("NFT_METAL_SLIM")] NftMetalSlim = 12, |
| | 72 | | [pbr::OriginalName("NFT_METAL_ROUNDED")] NftMetalRounded = 13, |
| | 73 | | [pbr::OriginalName("NFT_PINS")] NftPins = 14, |
| | 74 | | [pbr::OriginalName("NFT_MINIMAL_BLACK")] NftMinimalBlack = 15, |
| | 75 | | [pbr::OriginalName("NFT_MINIMAL_WHITE")] NftMinimalWhite = 16, |
| | 76 | | [pbr::OriginalName("NFT_TAPE")] NftTape = 17, |
| | 77 | | [pbr::OriginalName("NFT_WOOD_SLIM")] NftWoodSlim = 18, |
| | 78 | | [pbr::OriginalName("NFT_WOOD_WIDE")] NftWoodWide = 19, |
| | 79 | | [pbr::OriginalName("NFT_WOOD_TWIGS")] NftWoodTwigs = 20, |
| | 80 | | [pbr::OriginalName("NFT_CANVAS")] NftCanvas = 21, |
| | 81 | | [pbr::OriginalName("NFT_NONE")] NftNone = 22, |
| | 82 | | } |
| | 83 | |
|
| | 84 | | #endregion |
| | 85 | |
|
| | 86 | | #region Messages |
| | 87 | | /// <summary> |
| | 88 | | /// The NftShape component renders a framed picture from an NFT. It supports PNG, JPEG and GIF files. |
| | 89 | | /// |
| | 90 | | /// The `urn` field is the URI of the NFT, and must follow the format 'urn:decentraland:<CHAIN>:<CONTRACT_STANDA |
| | 91 | | /// Example: 'urn:decentraland:ethereum:erc721:0x00000000:123' |
| | 92 | | /// |
| | 93 | | /// The picture frame can have several different styles, plus a background color for images that have |
| | 94 | | /// transparent pixels. |
| | 95 | | /// </summary> |
| | 96 | | public sealed partial class PBNftShape : pb::IMessage<PBNftShape> |
| | 97 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| | 98 | | , pb::IBufferMessage |
| | 99 | | #endif |
| | 100 | | { |
| | 101 | | private static readonly pb::MessageParser<PBNftShape> _parser = new pb::MessageParser<PBNftShape>(() => new PBNftSha |
| | 102 | | private pb::UnknownFieldSet _unknownFields; |
| | 103 | | private int _hasBits0; |
| | 104 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 105 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 106 | | public static pb::MessageParser<PBNftShape> Parser { get { return _parser; } } |
| | 107 | |
|
| | 108 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 109 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 110 | | public static pbr::MessageDescriptor Descriptor { |
| | 111 | | get { return global::DCL.ECSComponents.NftShapeReflection.Descriptor.MessageTypes[0]; } |
| | 112 | | } |
| | 113 | |
|
| | 114 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 115 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 116 | | pbr::MessageDescriptor pb::IMessage.Descriptor { |
| | 117 | | get { return Descriptor; } |
| | 118 | | } |
| | 119 | |
|
| | 120 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 121 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 122 | | public PBNftShape() { |
| | 123 | | OnConstruction(); |
| | 124 | | } |
| | 125 | |
|
| | 126 | | partial void OnConstruction(); |
| | 127 | |
|
| | 128 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 129 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 130 | | public PBNftShape(PBNftShape other) : this() { |
| | 131 | | _hasBits0 = other._hasBits0; |
| | 132 | | urn_ = other.urn_; |
| | 133 | | style_ = other.style_; |
| | 134 | | color_ = other.color_ != null ? other.color_.Clone() : null; |
| | 135 | | _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); |
| | 136 | | } |
| | 137 | |
|
| | 138 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 139 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 140 | | public PBNftShape Clone() { |
| | 141 | | return new PBNftShape(this); |
| | 142 | | } |
| | 143 | |
|
| | 144 | | /// <summary>Field number for the "urn" field.</summary> |
| | 145 | | public const int UrnFieldNumber = 1; |
| | 146 | | private string urn_ = ""; |
| | 147 | | /// <summary> |
| | 148 | | /// the URI of the NFT |
| | 149 | | /// </summary> |
| | 150 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 151 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 152 | | public string Urn { |
| | 153 | | get { return urn_; } |
| | 154 | | set { |
| | 155 | | urn_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); |
| | 156 | | } |
| | 157 | | } |
| | 158 | |
|
| | 159 | | /// <summary>Field number for the "style" field.</summary> |
| | 160 | | public const int StyleFieldNumber = 2; |
| | 161 | | private global::DCL.ECSComponents.NftFrameType style_; |
| | 162 | | /// <summary> |
| | 163 | | /// the frame style (default NFT_CLASSIC) |
| | 164 | | /// </summary> |
| | 165 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 166 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 167 | | public global::DCL.ECSComponents.NftFrameType Style { |
| | 168 | | get { if ((_hasBits0 & 1) != 0) { return style_; } else { return global::DCL.ECSComponents.NftFrameType.NftClassic |
| | 169 | | set { |
| | 170 | | _hasBits0 |= 1; |
| | 171 | | style_ = value; |
| | 172 | | } |
| | 173 | | } |
| | 174 | | /// <summary>Gets whether the "style" field is set</summary> |
| | 175 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 176 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 177 | | public bool HasStyle { |
| | 178 | | get { return (_hasBits0 & 1) != 0; } |
| | 179 | | } |
| | 180 | | /// <summary>Clears the value of the "style" field</summary> |
| | 181 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 182 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 183 | | public void ClearStyle() { |
| | 184 | | _hasBits0 &= ~1; |
| | 185 | | } |
| | 186 | |
|
| | 187 | | /// <summary>Field number for the "color" field.</summary> |
| | 188 | | public const int ColorFieldNumber = 3; |
| | 189 | | private global::Decentraland.Common.Color3 color_; |
| | 190 | | /// <summary> |
| | 191 | | /// RGB background (default [0.6404918, 0.611472, 0.8584906]) |
| | 192 | | /// </summary> |
| | 193 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 194 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 195 | | public global::Decentraland.Common.Color3 Color { |
| | 196 | | get { return color_; } |
| | 197 | | set { |
| | 198 | | color_ = value; |
| | 199 | | } |
| | 200 | | } |
| | 201 | |
|
| | 202 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 203 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 204 | | public override bool Equals(object other) { |
| | 205 | | return Equals(other as PBNftShape); |
| | 206 | | } |
| | 207 | |
|
| | 208 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 209 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 210 | | public bool Equals(PBNftShape other) { |
| | 211 | | if (ReferenceEquals(other, null)) { |
| | 212 | | return false; |
| | 213 | | } |
| | 214 | | if (ReferenceEquals(other, this)) { |
| | 215 | | return true; |
| | 216 | | } |
| | 217 | | if (Urn != other.Urn) return false; |
| | 218 | | if (Style != other.Style) return false; |
| | 219 | | if (!object.Equals(Color, other.Color)) return false; |
| | 220 | | return Equals(_unknownFields, other._unknownFields); |
| | 221 | | } |
| | 222 | |
|
| | 223 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 224 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 225 | | public override int GetHashCode() { |
| | 226 | | int hash = 1; |
| | 227 | | if (Urn.Length != 0) hash ^= Urn.GetHashCode(); |
| | 228 | | if (HasStyle) hash ^= Style.GetHashCode(); |
| | 229 | | if (color_ != null) hash ^= Color.GetHashCode(); |
| | 230 | | if (_unknownFields != null) { |
| | 231 | | hash ^= _unknownFields.GetHashCode(); |
| | 232 | | } |
| | 233 | | return hash; |
| | 234 | | } |
| | 235 | |
|
| | 236 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 237 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 238 | | public override string ToString() { |
| | 239 | | return pb::JsonFormatter.ToDiagnosticString(this); |
| | 240 | | } |
| | 241 | |
|
| | 242 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 243 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 244 | | public void WriteTo(pb::CodedOutputStream output) { |
| | 245 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| | 246 | | output.WriteRawMessage(this); |
| | 247 | | #else |
| | 248 | | if (Urn.Length != 0) { |
| | 249 | | output.WriteRawTag(10); |
| | 250 | | output.WriteString(Urn); |
| | 251 | | } |
| | 252 | | if (HasStyle) { |
| | 253 | | output.WriteRawTag(16); |
| | 254 | | output.WriteEnum((int) Style); |
| | 255 | | } |
| | 256 | | if (color_ != null) { |
| | 257 | | output.WriteRawTag(26); |
| | 258 | | output.WriteMessage(Color); |
| | 259 | | } |
| | 260 | | if (_unknownFields != null) { |
| | 261 | | _unknownFields.WriteTo(output); |
| | 262 | | } |
| | 263 | | #endif |
| | 264 | | } |
| | 265 | |
|
| | 266 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| | 267 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 268 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 269 | | void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { |
| | 270 | | if (Urn.Length != 0) { |
| | 271 | | output.WriteRawTag(10); |
| | 272 | | output.WriteString(Urn); |
| | 273 | | } |
| | 274 | | if (HasStyle) { |
| | 275 | | output.WriteRawTag(16); |
| | 276 | | output.WriteEnum((int) Style); |
| | 277 | | } |
| | 278 | | if (color_ != null) { |
| | 279 | | output.WriteRawTag(26); |
| | 280 | | output.WriteMessage(Color); |
| | 281 | | } |
| | 282 | | if (_unknownFields != null) { |
| | 283 | | _unknownFields.WriteTo(ref output); |
| | 284 | | } |
| | 285 | | } |
| | 286 | | #endif |
| | 287 | |
|
| | 288 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 289 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 290 | | public int CalculateSize() { |
| | 291 | | int size = 0; |
| | 292 | | if (Urn.Length != 0) { |
| | 293 | | size += 1 + pb::CodedOutputStream.ComputeStringSize(Urn); |
| | 294 | | } |
| | 295 | | if (HasStyle) { |
| | 296 | | size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Style); |
| | 297 | | } |
| | 298 | | if (color_ != null) { |
| | 299 | | size += 1 + pb::CodedOutputStream.ComputeMessageSize(Color); |
| | 300 | | } |
| | 301 | | if (_unknownFields != null) { |
| | 302 | | size += _unknownFields.CalculateSize(); |
| | 303 | | } |
| | 304 | | return size; |
| | 305 | | } |
| | 306 | |
|
| | 307 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 308 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 309 | | public void MergeFrom(PBNftShape other) { |
| | 310 | | if (other == null) { |
| | 311 | | return; |
| | 312 | | } |
| | 313 | | if (other.Urn.Length != 0) { |
| | 314 | | Urn = other.Urn; |
| | 315 | | } |
| | 316 | | if (other.HasStyle) { |
| | 317 | | Style = other.Style; |
| | 318 | | } |
| | 319 | | if (other.color_ != null) { |
| | 320 | | if (color_ == null) { |
| | 321 | | Color = new global::Decentraland.Common.Color3(); |
| | 322 | | } |
| | 323 | | Color.MergeFrom(other.Color); |
| | 324 | | } |
| | 325 | | _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); |
| | 326 | | } |
| | 327 | |
|
| | 328 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 329 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 330 | | public void MergeFrom(pb::CodedInputStream input) { |
| | 331 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| | 332 | | input.ReadRawMessage(this); |
| | 333 | | #else |
| | 334 | | uint tag; |
| | 335 | | while ((tag = input.ReadTag()) != 0) { |
| | 336 | | switch(tag) { |
| | 337 | | default: |
| | 338 | | _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); |
| | 339 | | break; |
| | 340 | | case 10: { |
| | 341 | | Urn = input.ReadString(); |
| | 342 | | break; |
| | 343 | | } |
| | 344 | | case 16: { |
| | 345 | | Style = (global::DCL.ECSComponents.NftFrameType) input.ReadEnum(); |
| | 346 | | break; |
| | 347 | | } |
| | 348 | | case 26: { |
| | 349 | | if (color_ == null) { |
| | 350 | | Color = new global::Decentraland.Common.Color3(); |
| | 351 | | } |
| | 352 | | input.ReadMessage(Color); |
| | 353 | | break; |
| | 354 | | } |
| | 355 | | } |
| | 356 | | } |
| | 357 | | #endif |
| | 358 | | } |
| | 359 | |
|
| | 360 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| | 361 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 362 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 363 | | void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { |
| | 364 | | uint tag; |
| | 365 | | while ((tag = input.ReadTag()) != 0) { |
| | 366 | | switch(tag) { |
| | 367 | | default: |
| | 368 | | _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); |
| | 369 | | break; |
| | 370 | | case 10: { |
| | 371 | | Urn = input.ReadString(); |
| | 372 | | break; |
| | 373 | | } |
| | 374 | | case 16: { |
| | 375 | | Style = (global::DCL.ECSComponents.NftFrameType) input.ReadEnum(); |
| | 376 | | break; |
| | 377 | | } |
| | 378 | | case 26: { |
| | 379 | | if (color_ == null) { |
| | 380 | | Color = new global::Decentraland.Common.Color3(); |
| | 381 | | } |
| | 382 | | input.ReadMessage(Color); |
| | 383 | | break; |
| | 384 | | } |
| | 385 | | } |
| | 386 | | } |
| | 387 | | } |
| | 388 | | #endif |
| | 389 | |
|
| | 390 | | } |
| | 391 | |
|
| | 392 | | #endregion |
| | 393 | |
|
| | 394 | | } |
| | 395 | |
|
| | 396 | | #endregion Designer generated code |