/**
 * <auto-generated>
 * Autogenerated by Thrift Compiler (0.22.0)
 * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
 * </auto-generated>
 */
using System;
using System.Collections;
using System.Collections.Generic;
using System.Text;
using System.IO;
using System.Linq;
using System.Threading;
using System.Threading.Tasks;
using Thrift;
using Thrift.Collections;
using System.Runtime.Serialization;
using Thrift.Protocol;
using Thrift.Protocol.Entities;
using Thrift.Protocol.Utilities;
using Thrift.Transport;
using Thrift.Transport.Client;


#pragma warning disable IDE0079  // remove unnecessary pragmas
#pragma warning disable IDE0017  // object init can be simplified
#pragma warning disable IDE0028  // collection init can be simplified
#pragma warning disable IDE0305  // collection init can be simplified
#pragma warning disable IDE0034  // simplify default expression
#pragma warning disable IDE0066  // use switch expression
#pragma warning disable IDE0090  // simplify new expression
#pragma warning disable IDE0290  // use primary CTOR
#pragma warning disable IDE1006  // parts of the code use IDL spelling
#pragma warning disable CA1822   // empty DeepCopy() methods still non-static
#pragma warning disable IDE0083  // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions

namespace Byway.Thrift.Data
{

  [DataContract(Namespace="")]
  public partial class PetCareItemItem : TBase
  {
    private int _Id;
    private int _GroupId;
    private int _ItemId;
    private string _Icon;
    private string _Model;
    private double _Scale;
    private string _Angle;
    private string _GetFrom;
    private int _Price;
    private string _Res;
    private int _ReqId;
    private int _Exp;
    private int _Sort;
    private string _Tex2D;
    private string _Name;

    [DataMember(Order = 0)]
    public int Id
    {
      get
      {
        return _Id;
      }
      set
      {
        __isset.Id = true;
        this._Id = value;
      }
    }

    [DataMember(Order = 0)]
    public int GroupId
    {
      get
      {
        return _GroupId;
      }
      set
      {
        __isset.GroupId = true;
        this._GroupId = value;
      }
    }

    [DataMember(Order = 0)]
    public int ItemId
    {
      get
      {
        return _ItemId;
      }
      set
      {
        __isset.ItemId = true;
        this._ItemId = value;
      }
    }

    [DataMember(Order = 0)]
    public string Icon
    {
      get
      {
        return _Icon;
      }
      set
      {
        __isset.Icon = true;
        this._Icon = value;
      }
    }

    [DataMember(Order = 0)]
    public string Model
    {
      get
      {
        return _Model;
      }
      set
      {
        __isset.Model = true;
        this._Model = value;
      }
    }

    [DataMember(Order = 0)]
    public double Scale
    {
      get
      {
        return _Scale;
      }
      set
      {
        __isset.Scale = true;
        this._Scale = value;
      }
    }

    [DataMember(Order = 0)]
    public string Angle
    {
      get
      {
        return _Angle;
      }
      set
      {
        __isset.Angle = true;
        this._Angle = value;
      }
    }

    [DataMember(Order = 0)]
    public string GetFrom
    {
      get
      {
        return _GetFrom;
      }
      set
      {
        __isset.GetFrom = true;
        this._GetFrom = value;
      }
    }

    [DataMember(Order = 0)]
    public int Price
    {
      get
      {
        return _Price;
      }
      set
      {
        __isset.Price = true;
        this._Price = value;
      }
    }

    [DataMember(Order = 0)]
    public string Res
    {
      get
      {
        return _Res;
      }
      set
      {
        __isset.Res = true;
        this._Res = value;
      }
    }

    [DataMember(Order = 0)]
    public int ReqId
    {
      get
      {
        return _ReqId;
      }
      set
      {
        __isset.ReqId = true;
        this._ReqId = value;
      }
    }

    [DataMember(Order = 0)]
    public int Exp
    {
      get
      {
        return _Exp;
      }
      set
      {
        __isset.Exp = true;
        this._Exp = value;
      }
    }

    [DataMember(Order = 0)]
    public int Sort
    {
      get
      {
        return _Sort;
      }
      set
      {
        __isset.Sort = true;
        this._Sort = value;
      }
    }

    [DataMember(Order = 0)]
    public string Tex2D
    {
      get
      {
        return _Tex2D;
      }
      set
      {
        __isset.Tex2D = true;
        this._Tex2D = value;
      }
    }

    [DataMember(Order = 0)]
    public string Name
    {
      get
      {
        return _Name;
      }
      set
      {
        __isset.Name = true;
        this._Name = value;
      }
    }


    [DataMember(Order = 1)]
    public Isset __isset;
    [DataContract]
    public struct Isset
    {
      [DataMember]
      public bool Id;
      [DataMember]
      public bool GroupId;
      [DataMember]
      public bool ItemId;
      [DataMember]
      public bool Icon;
      [DataMember]
      public bool Model;
      [DataMember]
      public bool Scale;
      [DataMember]
      public bool Angle;
      [DataMember]
      public bool GetFrom;
      [DataMember]
      public bool Price;
      [DataMember]
      public bool Res;
      [DataMember]
      public bool ReqId;
      [DataMember]
      public bool Exp;
      [DataMember]
      public bool Sort;
      [DataMember]
      public bool Tex2D;
      [DataMember]
      public bool Name;
    }

    #region XmlSerializer support

    public bool ShouldSerializeId()
    {
      return __isset.Id;
    }

    public bool ShouldSerializeGroupId()
    {
      return __isset.GroupId;
    }

    public bool ShouldSerializeItemId()
    {
      return __isset.ItemId;
    }

    public bool ShouldSerializeIcon()
    {
      return __isset.Icon;
    }

    public bool ShouldSerializeModel()
    {
      return __isset.Model;
    }

    public bool ShouldSerializeScale()
    {
      return __isset.Scale;
    }

    public bool ShouldSerializeAngle()
    {
      return __isset.Angle;
    }

    public bool ShouldSerializeGetFrom()
    {
      return __isset.GetFrom;
    }

    public bool ShouldSerializePrice()
    {
      return __isset.Price;
    }

    public bool ShouldSerializeRes()
    {
      return __isset.Res;
    }

    public bool ShouldSerializeReqId()
    {
      return __isset.ReqId;
    }

    public bool ShouldSerializeExp()
    {
      return __isset.Exp;
    }

    public bool ShouldSerializeSort()
    {
      return __isset.Sort;
    }

    public bool ShouldSerializeTex2D()
    {
      return __isset.Tex2D;
    }

    public bool ShouldSerializeName()
    {
      return __isset.Name;
    }

    #endregion XmlSerializer support

    public PetCareItemItem()
    {
    }

    public PetCareItemItem DeepCopy()
    {
      var tmp0 = new PetCareItemItem();
      if(__isset.Id)
      {
        tmp0.Id = this.Id;
      }
      tmp0.__isset.Id = this.__isset.Id;
      if(__isset.GroupId)
      {
        tmp0.GroupId = this.GroupId;
      }
      tmp0.__isset.GroupId = this.__isset.GroupId;
      if(__isset.ItemId)
      {
        tmp0.ItemId = this.ItemId;
      }
      tmp0.__isset.ItemId = this.__isset.ItemId;
      if((Icon != null) && __isset.Icon)
      {
        tmp0.Icon = this.Icon;
      }
      tmp0.__isset.Icon = this.__isset.Icon;
      if((Model != null) && __isset.Model)
      {
        tmp0.Model = this.Model;
      }
      tmp0.__isset.Model = this.__isset.Model;
      if(__isset.Scale)
      {
        tmp0.Scale = this.Scale;
      }
      tmp0.__isset.Scale = this.__isset.Scale;
      if((Angle != null) && __isset.Angle)
      {
        tmp0.Angle = this.Angle;
      }
      tmp0.__isset.Angle = this.__isset.Angle;
      if((GetFrom != null) && __isset.GetFrom)
      {
        tmp0.GetFrom = this.GetFrom;
      }
      tmp0.__isset.GetFrom = this.__isset.GetFrom;
      if(__isset.Price)
      {
        tmp0.Price = this.Price;
      }
      tmp0.__isset.Price = this.__isset.Price;
      if((Res != null) && __isset.Res)
      {
        tmp0.Res = this.Res;
      }
      tmp0.__isset.Res = this.__isset.Res;
      if(__isset.ReqId)
      {
        tmp0.ReqId = this.ReqId;
      }
      tmp0.__isset.ReqId = this.__isset.ReqId;
      if(__isset.Exp)
      {
        tmp0.Exp = this.Exp;
      }
      tmp0.__isset.Exp = this.__isset.Exp;
      if(__isset.Sort)
      {
        tmp0.Sort = this.Sort;
      }
      tmp0.__isset.Sort = this.__isset.Sort;
      if((Tex2D != null) && __isset.Tex2D)
      {
        tmp0.Tex2D = this.Tex2D;
      }
      tmp0.__isset.Tex2D = this.__isset.Tex2D;
      if((Name != null) && __isset.Name)
      {
        tmp0.Name = this.Name;
      }
      tmp0.__isset.Name = this.__isset.Name;
      return tmp0;
    }

    public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken)
    {
      iprot.IncrementRecursionDepth();
      try
      {
        TField field;
        await iprot.ReadStructBeginAsync(cancellationToken);
        while (true)
        {
          field = await iprot.ReadFieldBeginAsync(cancellationToken);
          if (field.Type == TType.Stop)
          {
            break;
          }

          switch (field.ID)
          {
            case 1:
              if (field.Type == TType.I32)
              {
                Id = await iprot.ReadI32Async(cancellationToken);
              }
              else
              {
                await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken);
              }
              break;
            case 2:
              if (field.Type == TType.I32)
              {
                GroupId = await iprot.ReadI32Async(cancellationToken);
              }
              else
              {
                await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken);
              }
              break;
            case 3:
              if (field.Type == TType.I32)
              {
                ItemId = await iprot.ReadI32Async(cancellationToken);
              }
              else
              {
                await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken);
              }
              break;
            case 4:
              if (field.Type == TType.String)
              {
                Icon = await iprot.ReadStringAsync(cancellationToken);
              }
              else
              {
                await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken);
              }
              break;
            case 5:
              if (field.Type == TType.String)
              {
                Model = await iprot.ReadStringAsync(cancellationToken);
              }
              else
              {
                await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken);
              }
              break;
            case 6:
              if (field.Type == TType.Double)
              {
                Scale = await iprot.ReadDoubleAsync(cancellationToken);
              }
              else
              {
                await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken);
              }
              break;
            case 7:
              if (field.Type == TType.String)
              {
                Angle = await iprot.ReadStringAsync(cancellationToken);
              }
              else
              {
                await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken);
              }
              break;
            case 8:
              if (field.Type == TType.String)
              {
                GetFrom = await iprot.ReadStringAsync(cancellationToken);
              }
              else
              {
                await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken);
              }
              break;
            case 9:
              if (field.Type == TType.I32)
              {
                Price = await iprot.ReadI32Async(cancellationToken);
              }
              else
              {
                await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken);
              }
              break;
            case 10:
              if (field.Type == TType.String)
              {
                Res = await iprot.ReadStringAsync(cancellationToken);
              }
              else
              {
                await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken);
              }
              break;
            case 11:
              if (field.Type == TType.I32)
              {
                ReqId = await iprot.ReadI32Async(cancellationToken);
              }
              else
              {
                await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken);
              }
              break;
            case 12:
              if (field.Type == TType.I32)
              {
                Exp = await iprot.ReadI32Async(cancellationToken);
              }
              else
              {
                await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken);
              }
              break;
            case 13:
              if (field.Type == TType.I32)
              {
                Sort = await iprot.ReadI32Async(cancellationToken);
              }
              else
              {
                await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken);
              }
              break;
            case 14:
              if (field.Type == TType.String)
              {
                Tex2D = await iprot.ReadStringAsync(cancellationToken);
              }
              else
              {
                await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken);
              }
              break;
            case 15:
              if (field.Type == TType.String)
              {
                Name = await iprot.ReadStringAsync(cancellationToken);
              }
              else
              {
                await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken);
              }
              break;
            default: 
              await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken);
              break;
          }

          await iprot.ReadFieldEndAsync(cancellationToken);
        }

        await iprot.ReadStructEndAsync(cancellationToken);
      }
      finally
      {
        iprot.DecrementRecursionDepth();
      }
    }

    public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken)
    {
      oprot.IncrementRecursionDepth();
      try
      {
        var tmp1 = new TStruct("PetCareItemItem");
        await oprot.WriteStructBeginAsync(tmp1, cancellationToken);
        var tmp2 = new TField();
        if(__isset.Id)
        {
          tmp2.Name = "Id";
          tmp2.Type = TType.I32;
          tmp2.ID = 1;
          await oprot.WriteFieldBeginAsync(tmp2, cancellationToken);
          await oprot.WriteI32Async(Id, cancellationToken);
          await oprot.WriteFieldEndAsync(cancellationToken);
        }
        if(__isset.GroupId)
        {
          tmp2.Name = "GroupId";
          tmp2.Type = TType.I32;
          tmp2.ID = 2;
          await oprot.WriteFieldBeginAsync(tmp2, cancellationToken);
          await oprot.WriteI32Async(GroupId, cancellationToken);
          await oprot.WriteFieldEndAsync(cancellationToken);
        }
        if(__isset.ItemId)
        {
          tmp2.Name = "ItemId";
          tmp2.Type = TType.I32;
          tmp2.ID = 3;
          await oprot.WriteFieldBeginAsync(tmp2, cancellationToken);
          await oprot.WriteI32Async(ItemId, cancellationToken);
          await oprot.WriteFieldEndAsync(cancellationToken);
        }
        if((Icon != null) && __isset.Icon)
        {
          tmp2.Name = "Icon";
          tmp2.Type = TType.String;
          tmp2.ID = 4;
          await oprot.WriteFieldBeginAsync(tmp2, cancellationToken);
          await oprot.WriteStringAsync(Icon, cancellationToken);
          await oprot.WriteFieldEndAsync(cancellationToken);
        }
        if((Model != null) && __isset.Model)
        {
          tmp2.Name = "Model";
          tmp2.Type = TType.String;
          tmp2.ID = 5;
          await oprot.WriteFieldBeginAsync(tmp2, cancellationToken);
          await oprot.WriteStringAsync(Model, cancellationToken);
          await oprot.WriteFieldEndAsync(cancellationToken);
        }
        if(__isset.Scale)
        {
          tmp2.Name = "Scale";
          tmp2.Type = TType.Double;
          tmp2.ID = 6;
          await oprot.WriteFieldBeginAsync(tmp2, cancellationToken);
          await oprot.WriteDoubleAsync(Scale, cancellationToken);
          await oprot.WriteFieldEndAsync(cancellationToken);
        }
        if((Angle != null) && __isset.Angle)
        {
          tmp2.Name = "Angle";
          tmp2.Type = TType.String;
          tmp2.ID = 7;
          await oprot.WriteFieldBeginAsync(tmp2, cancellationToken);
          await oprot.WriteStringAsync(Angle, cancellationToken);
          await oprot.WriteFieldEndAsync(cancellationToken);
        }
        if((GetFrom != null) && __isset.GetFrom)
        {
          tmp2.Name = "GetFrom";
          tmp2.Type = TType.String;
          tmp2.ID = 8;
          await oprot.WriteFieldBeginAsync(tmp2, cancellationToken);
          await oprot.WriteStringAsync(GetFrom, cancellationToken);
          await oprot.WriteFieldEndAsync(cancellationToken);
        }
        if(__isset.Price)
        {
          tmp2.Name = "Price";
          tmp2.Type = TType.I32;
          tmp2.ID = 9;
          await oprot.WriteFieldBeginAsync(tmp2, cancellationToken);
          await oprot.WriteI32Async(Price, cancellationToken);
          await oprot.WriteFieldEndAsync(cancellationToken);
        }
        if((Res != null) && __isset.Res)
        {
          tmp2.Name = "Res";
          tmp2.Type = TType.String;
          tmp2.ID = 10;
          await oprot.WriteFieldBeginAsync(tmp2, cancellationToken);
          await oprot.WriteStringAsync(Res, cancellationToken);
          await oprot.WriteFieldEndAsync(cancellationToken);
        }
        if(__isset.ReqId)
        {
          tmp2.Name = "ReqId";
          tmp2.Type = TType.I32;
          tmp2.ID = 11;
          await oprot.WriteFieldBeginAsync(tmp2, cancellationToken);
          await oprot.WriteI32Async(ReqId, cancellationToken);
          await oprot.WriteFieldEndAsync(cancellationToken);
        }
        if(__isset.Exp)
        {
          tmp2.Name = "Exp";
          tmp2.Type = TType.I32;
          tmp2.ID = 12;
          await oprot.WriteFieldBeginAsync(tmp2, cancellationToken);
          await oprot.WriteI32Async(Exp, cancellationToken);
          await oprot.WriteFieldEndAsync(cancellationToken);
        }
        if(__isset.Sort)
        {
          tmp2.Name = "Sort";
          tmp2.Type = TType.I32;
          tmp2.ID = 13;
          await oprot.WriteFieldBeginAsync(tmp2, cancellationToken);
          await oprot.WriteI32Async(Sort, cancellationToken);
          await oprot.WriteFieldEndAsync(cancellationToken);
        }
        if((Tex2D != null) && __isset.Tex2D)
        {
          tmp2.Name = "Tex2D";
          tmp2.Type = TType.String;
          tmp2.ID = 14;
          await oprot.WriteFieldBeginAsync(tmp2, cancellationToken);
          await oprot.WriteStringAsync(Tex2D, cancellationToken);
          await oprot.WriteFieldEndAsync(cancellationToken);
        }
        if((Name != null) && __isset.Name)
        {
          tmp2.Name = "Name";
          tmp2.Type = TType.String;
          tmp2.ID = 15;
          await oprot.WriteFieldBeginAsync(tmp2, cancellationToken);
          await oprot.WriteStringAsync(Name, cancellationToken);
          await oprot.WriteFieldEndAsync(cancellationToken);
        }
        await oprot.WriteFieldStopAsync(cancellationToken);
        await oprot.WriteStructEndAsync(cancellationToken);
      }
      finally
      {
        oprot.DecrementRecursionDepth();
      }
    }

    public override bool Equals(object that)
    {
      if (!(that is PetCareItemItem other)) return false;
      if (ReferenceEquals(this, other)) return true;
      return ((__isset.Id == other.__isset.Id) && ((!__isset.Id) || (global::System.Object.Equals(Id, other.Id))))
        && ((__isset.GroupId == other.__isset.GroupId) && ((!__isset.GroupId) || (global::System.Object.Equals(GroupId, other.GroupId))))
        && ((__isset.ItemId == other.__isset.ItemId) && ((!__isset.ItemId) || (global::System.Object.Equals(ItemId, other.ItemId))))
        && ((__isset.Icon == other.__isset.Icon) && ((!__isset.Icon) || (global::System.Object.Equals(Icon, other.Icon))))
        && ((__isset.Model == other.__isset.Model) && ((!__isset.Model) || (global::System.Object.Equals(Model, other.Model))))
        && ((__isset.Scale == other.__isset.Scale) && ((!__isset.Scale) || (global::System.Object.Equals(Scale, other.Scale))))
        && ((__isset.Angle == other.__isset.Angle) && ((!__isset.Angle) || (global::System.Object.Equals(Angle, other.Angle))))
        && ((__isset.GetFrom == other.__isset.GetFrom) && ((!__isset.GetFrom) || (global::System.Object.Equals(GetFrom, other.GetFrom))))
        && ((__isset.Price == other.__isset.Price) && ((!__isset.Price) || (global::System.Object.Equals(Price, other.Price))))
        && ((__isset.Res == other.__isset.Res) && ((!__isset.Res) || (global::System.Object.Equals(Res, other.Res))))
        && ((__isset.ReqId == other.__isset.ReqId) && ((!__isset.ReqId) || (global::System.Object.Equals(ReqId, other.ReqId))))
        && ((__isset.Exp == other.__isset.Exp) && ((!__isset.Exp) || (global::System.Object.Equals(Exp, other.Exp))))
        && ((__isset.Sort == other.__isset.Sort) && ((!__isset.Sort) || (global::System.Object.Equals(Sort, other.Sort))))
        && ((__isset.Tex2D == other.__isset.Tex2D) && ((!__isset.Tex2D) || (global::System.Object.Equals(Tex2D, other.Tex2D))))
        && ((__isset.Name == other.__isset.Name) && ((!__isset.Name) || (global::System.Object.Equals(Name, other.Name))));
    }

    public override int GetHashCode() {
      int hashcode = 157;
      unchecked {
        if(__isset.Id)
        {
          hashcode = (hashcode * 397) + Id.GetHashCode();
        }
        if(__isset.GroupId)
        {
          hashcode = (hashcode * 397) + GroupId.GetHashCode();
        }
        if(__isset.ItemId)
        {
          hashcode = (hashcode * 397) + ItemId.GetHashCode();
        }
        if((Icon != null) && __isset.Icon)
        {
          hashcode = (hashcode * 397) + Icon.GetHashCode();
        }
        if((Model != null) && __isset.Model)
        {
          hashcode = (hashcode * 397) + Model.GetHashCode();
        }
        if(__isset.Scale)
        {
          hashcode = (hashcode * 397) + Scale.GetHashCode();
        }
        if((Angle != null) && __isset.Angle)
        {
          hashcode = (hashcode * 397) + Angle.GetHashCode();
        }
        if((GetFrom != null) && __isset.GetFrom)
        {
          hashcode = (hashcode * 397) + GetFrom.GetHashCode();
        }
        if(__isset.Price)
        {
          hashcode = (hashcode * 397) + Price.GetHashCode();
        }
        if((Res != null) && __isset.Res)
        {
          hashcode = (hashcode * 397) + Res.GetHashCode();
        }
        if(__isset.ReqId)
        {
          hashcode = (hashcode * 397) + ReqId.GetHashCode();
        }
        if(__isset.Exp)
        {
          hashcode = (hashcode * 397) + Exp.GetHashCode();
        }
        if(__isset.Sort)
        {
          hashcode = (hashcode * 397) + Sort.GetHashCode();
        }
        if((Tex2D != null) && __isset.Tex2D)
        {
          hashcode = (hashcode * 397) + Tex2D.GetHashCode();
        }
        if((Name != null) && __isset.Name)
        {
          hashcode = (hashcode * 397) + Name.GetHashCode();
        }
      }
      return hashcode;
    }

    public override string ToString()
    {
      var tmp3 = new StringBuilder("PetCareItemItem(");
      int tmp4 = 0;
      if(__isset.Id)
      {
        if(0 < tmp4++) { tmp3.Append(", "); }
        tmp3.Append("Id: ");
        Id.ToString(tmp3);
      }
      if(__isset.GroupId)
      {
        if(0 < tmp4++) { tmp3.Append(", "); }
        tmp3.Append("GroupId: ");
        GroupId.ToString(tmp3);
      }
      if(__isset.ItemId)
      {
        if(0 < tmp4++) { tmp3.Append(", "); }
        tmp3.Append("ItemId: ");
        ItemId.ToString(tmp3);
      }
      if((Icon != null) && __isset.Icon)
      {
        if(0 < tmp4++) { tmp3.Append(", "); }
        tmp3.Append("Icon: ");
        Icon.ToString(tmp3);
      }
      if((Model != null) && __isset.Model)
      {
        if(0 < tmp4++) { tmp3.Append(", "); }
        tmp3.Append("Model: ");
        Model.ToString(tmp3);
      }
      if(__isset.Scale)
      {
        if(0 < tmp4++) { tmp3.Append(", "); }
        tmp3.Append("Scale: ");
        Scale.ToString(tmp3);
      }
      if((Angle != null) && __isset.Angle)
      {
        if(0 < tmp4++) { tmp3.Append(", "); }
        tmp3.Append("Angle: ");
        Angle.ToString(tmp3);
      }
      if((GetFrom != null) && __isset.GetFrom)
      {
        if(0 < tmp4++) { tmp3.Append(", "); }
        tmp3.Append("GetFrom: ");
        GetFrom.ToString(tmp3);
      }
      if(__isset.Price)
      {
        if(0 < tmp4++) { tmp3.Append(", "); }
        tmp3.Append("Price: ");
        Price.ToString(tmp3);
      }
      if((Res != null) && __isset.Res)
      {
        if(0 < tmp4++) { tmp3.Append(", "); }
        tmp3.Append("Res: ");
        Res.ToString(tmp3);
      }
      if(__isset.ReqId)
      {
        if(0 < tmp4++) { tmp3.Append(", "); }
        tmp3.Append("ReqId: ");
        ReqId.ToString(tmp3);
      }
      if(__isset.Exp)
      {
        if(0 < tmp4++) { tmp3.Append(", "); }
        tmp3.Append("Exp: ");
        Exp.ToString(tmp3);
      }
      if(__isset.Sort)
      {
        if(0 < tmp4++) { tmp3.Append(", "); }
        tmp3.Append("Sort: ");
        Sort.ToString(tmp3);
      }
      if((Tex2D != null) && __isset.Tex2D)
      {
        if(0 < tmp4++) { tmp3.Append(", "); }
        tmp3.Append("Tex2D: ");
        Tex2D.ToString(tmp3);
      }
      if((Name != null) && __isset.Name)
      {
        if(0 < tmp4++) { tmp3.Append(", "); }
        tmp3.Append("Name: ");
        Name.ToString(tmp3);
      }
      tmp3.Append(')');
      return tmp3.ToString();
    }
  }

}
