| | 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 | | "bG9yMy5wcm90byKYAQoKUEJORlRTaGFwZRIXCg93aXRoX2NvbGxpc2lvbnMY", |
| | 29 | | "ASABKAgSGgoSaXNfcG9pbnRlcl9ibG9ja2VyGAIgASgIEg8KB3Zpc2libGUY", |
| | 30 | | "AyABKAgSCwoDc3JjGAQgASgJEhAKCGFzc2V0X2lkGAUgASgJEg0KBXN0eWxl", |
| | 31 | | "GAYgASgFEhYKBWNvbG9yGAcgASgLMgcuQ29sb3IzQhSqAhFEQ0wuRUNTQ29t", |
| | 32 | | "cG9uZW50c2IGcHJvdG8z")); |
| | 33 | | descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, |
| | 34 | | new pbr::FileDescriptor[] { global::Color3Reflection.Descriptor, }, |
| | 35 | | new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { |
| | 36 | | new pbr::GeneratedClrTypeInfo(typeof(global::DCL.ECSComponents.PBNFTShape), global::DCL.ECSComponents.PBNFTS |
| | 37 | | })); |
| | 38 | | } |
| | 39 | | #endregion |
| | 40 | |
|
| | 41 | | } |
| | 42 | | #region Messages |
| | 43 | | public sealed partial class PBNFTShape : pb::IMessage<PBNFTShape> { |
| 4 | 44 | | private static readonly pb::MessageParser<PBNFTShape> _parser = new pb::MessageParser<PBNFTShape>(() => new PBNFTSha |
| | 45 | | private pb::UnknownFieldSet _unknownFields; |
| | 46 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| 0 | 47 | | public static pb::MessageParser<PBNFTShape> Parser { get { return _parser; } } |
| | 48 | |
|
| | 49 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 50 | | public static pbr::MessageDescriptor Descriptor { |
| 0 | 51 | | get { return global::DCL.ECSComponents.NFTShapeReflection.Descriptor.MessageTypes[0]; } |
| | 52 | | } |
| | 53 | |
|
| | 54 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 55 | | pbr::MessageDescriptor pb::IMessage.Descriptor { |
| 0 | 56 | | get { return Descriptor; } |
| | 57 | | } |
| | 58 | |
|
| | 59 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| 15 | 60 | | public PBNFTShape() { |
| | 61 | | OnConstruction(); |
| 15 | 62 | | } |
| | 63 | |
|
| | 64 | | partial void OnConstruction(); |
| | 65 | |
|
| | 66 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| 0 | 67 | | public PBNFTShape(PBNFTShape other) : this() { |
| 0 | 68 | | withCollisions_ = other.withCollisions_; |
| 0 | 69 | | isPointerBlocker_ = other.isPointerBlocker_; |
| 0 | 70 | | visible_ = other.visible_; |
| 0 | 71 | | src_ = other.src_; |
| 0 | 72 | | assetId_ = other.assetId_; |
| 0 | 73 | | style_ = other.style_; |
| 0 | 74 | | color_ = other.color_ != null ? other.color_.Clone() : null; |
| 0 | 75 | | _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); |
| 0 | 76 | | } |
| | 77 | |
|
| | 78 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 79 | | public PBNFTShape Clone() { |
| 0 | 80 | | return new PBNFTShape(this); |
| | 81 | | } |
| | 82 | |
|
| | 83 | | /// <summary>Field number for the "with_collisions" field.</summary> |
| | 84 | | public const int WithCollisionsFieldNumber = 1; |
| | 85 | | private bool withCollisions_; |
| | 86 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 87 | | public bool WithCollisions { |
| 0 | 88 | | get { return withCollisions_; } |
| | 89 | | set { |
| 1 | 90 | | withCollisions_ = value; |
| 1 | 91 | | } |
| | 92 | | } |
| | 93 | |
|
| | 94 | | /// <summary>Field number for the "is_pointer_blocker" field.</summary> |
| | 95 | | public const int IsPointerBlockerFieldNumber = 2; |
| | 96 | | private bool isPointerBlocker_; |
| | 97 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 98 | | public bool IsPointerBlocker { |
| 0 | 99 | | get { return isPointerBlocker_; } |
| | 100 | | set { |
| 0 | 101 | | isPointerBlocker_ = value; |
| 0 | 102 | | } |
| | 103 | | } |
| | 104 | |
|
| | 105 | | /// <summary>Field number for the "visible" field.</summary> |
| | 106 | | public const int VisibleFieldNumber = 3; |
| | 107 | | private bool visible_; |
| | 108 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 109 | | public bool Visible { |
| 0 | 110 | | get { return visible_; } |
| | 111 | | set { |
| 1 | 112 | | visible_ = value; |
| 1 | 113 | | } |
| | 114 | | } |
| | 115 | |
|
| | 116 | | /// <summary>Field number for the "src" field.</summary> |
| | 117 | | public const int SrcFieldNumber = 4; |
| 15 | 118 | | private string src_ = ""; |
| | 119 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 120 | | public string Src { |
| 0 | 121 | | get { return src_; } |
| | 122 | | set { |
| 8 | 123 | | src_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); |
| 8 | 124 | | } |
| | 125 | | } |
| | 126 | |
|
| | 127 | | /// <summary>Field number for the "asset_id" field.</summary> |
| | 128 | | public const int AssetIdFieldNumber = 5; |
| 15 | 129 | | private string assetId_ = ""; |
| | 130 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 131 | | public string AssetId { |
| 0 | 132 | | get { return assetId_; } |
| | 133 | | set { |
| 0 | 134 | | assetId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); |
| 0 | 135 | | } |
| | 136 | | } |
| | 137 | |
|
| | 138 | | /// <summary>Field number for the "style" field.</summary> |
| | 139 | | public const int StyleFieldNumber = 6; |
| | 140 | | private int style_; |
| | 141 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 142 | | public int Style { |
| 0 | 143 | | get { return style_; } |
| | 144 | | set { |
| 0 | 145 | | style_ = value; |
| 0 | 146 | | } |
| | 147 | | } |
| | 148 | |
|
| | 149 | | /// <summary>Field number for the "color" field.</summary> |
| | 150 | | public const int ColorFieldNumber = 7; |
| | 151 | | private global::Color3 color_; |
| | 152 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 153 | | public global::Color3 Color { |
| 24 | 154 | | get { return color_; } |
| | 155 | | set { |
| 8 | 156 | | color_ = value; |
| 8 | 157 | | } |
| | 158 | | } |
| | 159 | |
|
| | 160 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 161 | | public override bool Equals(object other) { |
| 0 | 162 | | return Equals(other as PBNFTShape); |
| | 163 | | } |
| | 164 | |
|
| | 165 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 166 | | public bool Equals(PBNFTShape other) { |
| 0 | 167 | | if (ReferenceEquals(other, null)) { |
| 0 | 168 | | return false; |
| | 169 | | } |
| 0 | 170 | | if (ReferenceEquals(other, this)) { |
| 0 | 171 | | return true; |
| | 172 | | } |
| 0 | 173 | | if (WithCollisions != other.WithCollisions) return false; |
| 0 | 174 | | if (IsPointerBlocker != other.IsPointerBlocker) return false; |
| 0 | 175 | | if (Visible != other.Visible) return false; |
| 0 | 176 | | if (Src != other.Src) return false; |
| 0 | 177 | | if (AssetId != other.AssetId) return false; |
| 0 | 178 | | if (Style != other.Style) return false; |
| 0 | 179 | | if (!object.Equals(Color, other.Color)) return false; |
| 0 | 180 | | return Equals(_unknownFields, other._unknownFields); |
| | 181 | | } |
| | 182 | |
|
| | 183 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 184 | | public override int GetHashCode() { |
| 0 | 185 | | int hash = 1; |
| 0 | 186 | | if (WithCollisions != false) hash ^= WithCollisions.GetHashCode(); |
| 0 | 187 | | if (IsPointerBlocker != false) hash ^= IsPointerBlocker.GetHashCode(); |
| 0 | 188 | | if (Visible != false) hash ^= Visible.GetHashCode(); |
| 0 | 189 | | if (Src.Length != 0) hash ^= Src.GetHashCode(); |
| 0 | 190 | | if (AssetId.Length != 0) hash ^= AssetId.GetHashCode(); |
| 0 | 191 | | if (Style != 0) hash ^= Style.GetHashCode(); |
| 0 | 192 | | if (color_ != null) hash ^= Color.GetHashCode(); |
| 0 | 193 | | if (_unknownFields != null) { |
| 0 | 194 | | hash ^= _unknownFields.GetHashCode(); |
| | 195 | | } |
| 0 | 196 | | return hash; |
| | 197 | | } |
| | 198 | |
|
| | 199 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 200 | | public override string ToString() { |
| 0 | 201 | | return pb::JsonFormatter.ToDiagnosticString(this); |
| | 202 | | } |
| | 203 | |
|
| | 204 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 205 | | public void WriteTo(pb::CodedOutputStream output) { |
| 4 | 206 | | if (WithCollisions != false) { |
| 1 | 207 | | output.WriteRawTag(8); |
| 1 | 208 | | output.WriteBool(WithCollisions); |
| | 209 | | } |
| 4 | 210 | | if (IsPointerBlocker != false) { |
| 1 | 211 | | output.WriteRawTag(16); |
| 1 | 212 | | output.WriteBool(IsPointerBlocker); |
| | 213 | | } |
| 4 | 214 | | if (Visible != false) { |
| 0 | 215 | | output.WriteRawTag(24); |
| 0 | 216 | | output.WriteBool(Visible); |
| | 217 | | } |
| 4 | 218 | | if (Src.Length != 0) { |
| 3 | 219 | | output.WriteRawTag(34); |
| 3 | 220 | | output.WriteString(Src); |
| | 221 | | } |
| 4 | 222 | | if (AssetId.Length != 0) { |
| 0 | 223 | | output.WriteRawTag(42); |
| 0 | 224 | | output.WriteString(AssetId); |
| | 225 | | } |
| 4 | 226 | | if (Style != 0) { |
| 0 | 227 | | output.WriteRawTag(48); |
| 0 | 228 | | output.WriteInt32(Style); |
| | 229 | | } |
| 4 | 230 | | if (color_ != null) { |
| 3 | 231 | | output.WriteRawTag(58); |
| 3 | 232 | | output.WriteMessage(Color); |
| | 233 | | } |
| 4 | 234 | | if (_unknownFields != null) { |
| 0 | 235 | | _unknownFields.WriteTo(output); |
| | 236 | | } |
| 4 | 237 | | } |
| | 238 | |
|
| | 239 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 240 | | public int CalculateSize() { |
| 3 | 241 | | int size = 0; |
| 3 | 242 | | if (WithCollisions != false) { |
| 1 | 243 | | size += 1 + 1; |
| | 244 | | } |
| 3 | 245 | | if (IsPointerBlocker != false) { |
| 1 | 246 | | size += 1 + 1; |
| | 247 | | } |
| 3 | 248 | | if (Visible != false) { |
| 0 | 249 | | size += 1 + 1; |
| | 250 | | } |
| 3 | 251 | | if (Src.Length != 0) { |
| 3 | 252 | | size += 1 + pb::CodedOutputStream.ComputeStringSize(Src); |
| | 253 | | } |
| 3 | 254 | | if (AssetId.Length != 0) { |
| 0 | 255 | | size += 1 + pb::CodedOutputStream.ComputeStringSize(AssetId); |
| | 256 | | } |
| 3 | 257 | | if (Style != 0) { |
| 0 | 258 | | size += 1 + pb::CodedOutputStream.ComputeInt32Size(Style); |
| | 259 | | } |
| 3 | 260 | | if (color_ != null) { |
| 3 | 261 | | size += 1 + pb::CodedOutputStream.ComputeMessageSize(Color); |
| | 262 | | } |
| 3 | 263 | | if (_unknownFields != null) { |
| 0 | 264 | | size += _unknownFields.CalculateSize(); |
| | 265 | | } |
| 3 | 266 | | return size; |
| | 267 | | } |
| | 268 | |
|
| | 269 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 270 | | public void MergeFrom(PBNFTShape other) { |
| 0 | 271 | | if (other == null) { |
| 0 | 272 | | return; |
| | 273 | | } |
| 0 | 274 | | if (other.WithCollisions != false) { |
| 0 | 275 | | WithCollisions = other.WithCollisions; |
| | 276 | | } |
| 0 | 277 | | if (other.IsPointerBlocker != false) { |
| 0 | 278 | | IsPointerBlocker = other.IsPointerBlocker; |
| | 279 | | } |
| 0 | 280 | | if (other.Visible != false) { |
| 0 | 281 | | Visible = other.Visible; |
| | 282 | | } |
| 0 | 283 | | if (other.Src.Length != 0) { |
| 0 | 284 | | Src = other.Src; |
| | 285 | | } |
| 0 | 286 | | if (other.AssetId.Length != 0) { |
| 0 | 287 | | AssetId = other.AssetId; |
| | 288 | | } |
| 0 | 289 | | if (other.Style != 0) { |
| 0 | 290 | | Style = other.Style; |
| | 291 | | } |
| 0 | 292 | | if (other.color_ != null) { |
| 0 | 293 | | if (color_ == null) { |
| 0 | 294 | | Color = new global::Color3(); |
| | 295 | | } |
| 0 | 296 | | Color.MergeFrom(other.Color); |
| | 297 | | } |
| 0 | 298 | | _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); |
| 0 | 299 | | } |
| | 300 | |
|
| | 301 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 302 | | public void MergeFrom(pb::CodedInputStream input) { |
| | 303 | | uint tag; |
| 11 | 304 | | while ((tag = input.ReadTag()) != 0) { |
| | 305 | | switch(tag) { |
| | 306 | | default: |
| 0 | 307 | | _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); |
| 0 | 308 | | break; |
| | 309 | | case 8: { |
| 1 | 310 | | WithCollisions = input.ReadBool(); |
| 1 | 311 | | break; |
| | 312 | | } |
| | 313 | | case 16: { |
| 1 | 314 | | IsPointerBlocker = input.ReadBool(); |
| 1 | 315 | | break; |
| | 316 | | } |
| | 317 | | case 24: { |
| 0 | 318 | | Visible = input.ReadBool(); |
| 0 | 319 | | break; |
| | 320 | | } |
| | 321 | | case 34: { |
| 3 | 322 | | Src = input.ReadString(); |
| 3 | 323 | | break; |
| | 324 | | } |
| | 325 | | case 42: { |
| 0 | 326 | | AssetId = input.ReadString(); |
| 0 | 327 | | break; |
| | 328 | | } |
| | 329 | | case 48: { |
| 0 | 330 | | Style = input.ReadInt32(); |
| 0 | 331 | | break; |
| | 332 | | } |
| | 333 | | case 58: { |
| 3 | 334 | | if (color_ == null) { |
| 3 | 335 | | Color = new global::Color3(); |
| | 336 | | } |
| 3 | 337 | | input.ReadMessage(Color); |
| | 338 | | break; |
| | 339 | | } |
| | 340 | | } |
| | 341 | | } |
| 3 | 342 | | } |
| | 343 | |
|
| | 344 | | } |
| | 345 | |
|
| | 346 | | #endregion |
| | 347 | |
|
| | 348 | | } |
| | 349 | |
|
| | 350 | | #endregion Designer generated code |