Ejemplo n.º 1
0
        public override int GetHashCode()
        {
            int hashcode = 157;

            unchecked {
                if ((B1 != null) && __isset.b1)
                {
                    hashcode = (hashcode * 397) + B1.GetHashCode();
                }
                if ((B10 != null) && __isset.b10)
                {
                    hashcode = (hashcode * 397) + B10.GetHashCode();
                }
                if ((B100 != null) && __isset.b100)
                {
                    hashcode = (hashcode * 397) + B100.GetHashCode();
                }
                if (__isset.check_true)
                {
                    hashcode = (hashcode * 397) + Check_true.GetHashCode();
                }
                if ((B1000 != null) && __isset.b1000)
                {
                    hashcode = (hashcode * 397) + B1000.GetHashCode();
                }
                if (__isset.check_false)
                {
                    hashcode = (hashcode * 397) + Check_false.GetHashCode();
                }
                if ((Vertwo2000 != null) && __isset.vertwo2000)
                {
                    hashcode = (hashcode * 397) + Vertwo2000.GetHashCode();
                }
                if ((A_set2500 != null) && __isset.a_set2500)
                {
                    hashcode = (hashcode * 397) + TCollections.GetHashCode(A_set2500);
                }
                if ((Vertwo3000 != null) && __isset.vertwo3000)
                {
                    hashcode = (hashcode * 397) + Vertwo3000.GetHashCode();
                }
                if ((Big_numbers != null) && __isset.big_numbers)
                {
                    hashcode = (hashcode * 397) + TCollections.GetHashCode(Big_numbers);
                }
            }
            return(hashcode);
        }
Ejemplo n.º 2
0
        public override string ToString()
        {
            StringBuilder __sb    = new StringBuilder("LargeDeltas(");
            bool          __first = true;

            if (B1 != null && __isset.b1)
            {
                if (!__first)
                {
                    __sb.Append(", ");
                }
                __first = false;
                __sb.Append("B1: ");
                __sb.Append(B1 == null ? "<null>" : B1.ToString());
            }
            if (B10 != null && __isset.b10)
            {
                if (!__first)
                {
                    __sb.Append(", ");
                }
                __first = false;
                __sb.Append("B10: ");
                __sb.Append(B10 == null ? "<null>" : B10.ToString());
            }
            if (B100 != null && __isset.b100)
            {
                if (!__first)
                {
                    __sb.Append(", ");
                }
                __first = false;
                __sb.Append("B100: ");
                __sb.Append(B100 == null ? "<null>" : B100.ToString());
            }
            if (__isset.check_true)
            {
                if (!__first)
                {
                    __sb.Append(", ");
                }
                __first = false;
                __sb.Append("Check_true: ");
                __sb.Append(Check_true);
            }
            if (B1000 != null && __isset.b1000)
            {
                if (!__first)
                {
                    __sb.Append(", ");
                }
                __first = false;
                __sb.Append("B1000: ");
                __sb.Append(B1000 == null ? "<null>" : B1000.ToString());
            }
            if (__isset.check_false)
            {
                if (!__first)
                {
                    __sb.Append(", ");
                }
                __first = false;
                __sb.Append("Check_false: ");
                __sb.Append(Check_false);
            }
            if (Vertwo2000 != null && __isset.vertwo2000)
            {
                if (!__first)
                {
                    __sb.Append(", ");
                }
                __first = false;
                __sb.Append("Vertwo2000: ");
                __sb.Append(Vertwo2000 == null ? "<null>" : Vertwo2000.ToString());
            }
            if (A_set2500 != null && __isset.a_set2500)
            {
                if (!__first)
                {
                    __sb.Append(", ");
                }
                __first = false;
                __sb.Append("A_set2500: ");
                __sb.Append(A_set2500);
            }
            if (Vertwo3000 != null && __isset.vertwo3000)
            {
                if (!__first)
                {
                    __sb.Append(", ");
                }
                __first = false;
                __sb.Append("Vertwo3000: ");
                __sb.Append(Vertwo3000 == null ? "<null>" : Vertwo3000.ToString());
            }
            if (Big_numbers != null && __isset.big_numbers)
            {
                if (!__first)
                {
                    __sb.Append(", ");
                }
                __first = false;
                __sb.Append("Big_numbers: ");
                __sb.Append(Big_numbers);
            }
            __sb.Append(")");
            return(__sb.ToString());
        }
Ejemplo n.º 3
0
 public void Write(TProtocol oprot)
 {
     oprot.IncrementRecursionDepth();
     try
     {
         TStruct struc = new TStruct("LargeDeltas");
         oprot.WriteStructBegin(struc);
         TField field = new TField();
         if (B1 != null && __isset.b1)
         {
             field.Name = "b1";
             field.Type = TType.Struct;
             field.ID   = 1;
             oprot.WriteFieldBegin(field);
             B1.Write(oprot);
             oprot.WriteFieldEnd();
         }
         if (B10 != null && __isset.b10)
         {
             field.Name = "b10";
             field.Type = TType.Struct;
             field.ID   = 10;
             oprot.WriteFieldBegin(field);
             B10.Write(oprot);
             oprot.WriteFieldEnd();
         }
         if (B100 != null && __isset.b100)
         {
             field.Name = "b100";
             field.Type = TType.Struct;
             field.ID   = 100;
             oprot.WriteFieldBegin(field);
             B100.Write(oprot);
             oprot.WriteFieldEnd();
         }
         if (__isset.check_true)
         {
             field.Name = "check_true";
             field.Type = TType.Bool;
             field.ID   = 500;
             oprot.WriteFieldBegin(field);
             oprot.WriteBool(Check_true);
             oprot.WriteFieldEnd();
         }
         if (B1000 != null && __isset.b1000)
         {
             field.Name = "b1000";
             field.Type = TType.Struct;
             field.ID   = 1000;
             oprot.WriteFieldBegin(field);
             B1000.Write(oprot);
             oprot.WriteFieldEnd();
         }
         if (__isset.check_false)
         {
             field.Name = "check_false";
             field.Type = TType.Bool;
             field.ID   = 1500;
             oprot.WriteFieldBegin(field);
             oprot.WriteBool(Check_false);
             oprot.WriteFieldEnd();
         }
         if (Vertwo2000 != null && __isset.vertwo2000)
         {
             field.Name = "vertwo2000";
             field.Type = TType.Struct;
             field.ID   = 2000;
             oprot.WriteFieldBegin(field);
             Vertwo2000.Write(oprot);
             oprot.WriteFieldEnd();
         }
         if (A_set2500 != null && __isset.a_set2500)
         {
             field.Name = "a_set2500";
             field.Type = TType.Set;
             field.ID   = 2500;
             oprot.WriteFieldBegin(field);
             {
                 oprot.WriteSetBegin(new TSet(TType.String, A_set2500.Count));
                 foreach (string _iter81 in A_set2500)
                 {
                     oprot.WriteString(_iter81);
                 }
                 oprot.WriteSetEnd();
             }
             oprot.WriteFieldEnd();
         }
         if (Vertwo3000 != null && __isset.vertwo3000)
         {
             field.Name = "vertwo3000";
             field.Type = TType.Struct;
             field.ID   = 3000;
             oprot.WriteFieldBegin(field);
             Vertwo3000.Write(oprot);
             oprot.WriteFieldEnd();
         }
         if (Big_numbers != null && __isset.big_numbers)
         {
             field.Name = "big_numbers";
             field.Type = TType.List;
             field.ID   = 4000;
             oprot.WriteFieldBegin(field);
             {
                 oprot.WriteListBegin(new TList(TType.I32, Big_numbers.Count));
                 foreach (int _iter82 in Big_numbers)
                 {
                     oprot.WriteI32(_iter82);
                 }
                 oprot.WriteListEnd();
             }
             oprot.WriteFieldEnd();
         }
         oprot.WriteFieldStop();
         oprot.WriteStructEnd();
     }
     finally
     {
         oprot.DecrementRecursionDepth();
     }
 }
Ejemplo n.º 4
0
        public override string ToString()
        {
            var sb     = new StringBuilder("LargeDeltas(");
            int tmp116 = 0;

            if ((B1 != null) && __isset.b1)
            {
                if (0 < tmp116++)
                {
                    sb.Append(", ");
                }
                sb.Append("B1: ");
                B1.ToString(sb);
            }
            if ((B10 != null) && __isset.b10)
            {
                if (0 < tmp116++)
                {
                    sb.Append(", ");
                }
                sb.Append("B10: ");
                B10.ToString(sb);
            }
            if ((B100 != null) && __isset.b100)
            {
                if (0 < tmp116++)
                {
                    sb.Append(", ");
                }
                sb.Append("B100: ");
                B100.ToString(sb);
            }
            if (__isset.check_true)
            {
                if (0 < tmp116++)
                {
                    sb.Append(", ");
                }
                sb.Append("Check_true: ");
                Check_true.ToString(sb);
            }
            if ((B1000 != null) && __isset.b1000)
            {
                if (0 < tmp116++)
                {
                    sb.Append(", ");
                }
                sb.Append("B1000: ");
                B1000.ToString(sb);
            }
            if (__isset.check_false)
            {
                if (0 < tmp116++)
                {
                    sb.Append(", ");
                }
                sb.Append("Check_false: ");
                Check_false.ToString(sb);
            }
            if ((Vertwo2000 != null) && __isset.vertwo2000)
            {
                if (0 < tmp116++)
                {
                    sb.Append(", ");
                }
                sb.Append("Vertwo2000: ");
                Vertwo2000.ToString(sb);
            }
            if ((A_set2500 != null) && __isset.a_set2500)
            {
                if (0 < tmp116++)
                {
                    sb.Append(", ");
                }
                sb.Append("A_set2500: ");
                A_set2500.ToString(sb);
            }
            if ((Vertwo3000 != null) && __isset.vertwo3000)
            {
                if (0 < tmp116++)
                {
                    sb.Append(", ");
                }
                sb.Append("Vertwo3000: ");
                Vertwo3000.ToString(sb);
            }
            if ((Big_numbers != null) && __isset.big_numbers)
            {
                if (0 < tmp116++)
                {
                    sb.Append(", ");
                }
                sb.Append("Big_numbers: ");
                Big_numbers.ToString(sb);
            }
            sb.Append(')');
            return(sb.ToString());
        }
Ejemplo n.º 5
0
        public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken)
        {
            oprot.IncrementRecursionDepth();
            try
            {
                var struc = new TStruct("LargeDeltas");
                await oprot.WriteStructBeginAsync(struc, cancellationToken);

                var field = new TField();
                if ((B1 != null) && __isset.b1)
                {
                    field.Name = "b1";
                    field.Type = TType.Struct;
                    field.ID   = 1;
                    await oprot.WriteFieldBeginAsync(field, cancellationToken);

                    await B1.WriteAsync(oprot, cancellationToken);

                    await oprot.WriteFieldEndAsync(cancellationToken);
                }
                if ((B10 != null) && __isset.b10)
                {
                    field.Name = "b10";
                    field.Type = TType.Struct;
                    field.ID   = 10;
                    await oprot.WriteFieldBeginAsync(field, cancellationToken);

                    await B10.WriteAsync(oprot, cancellationToken);

                    await oprot.WriteFieldEndAsync(cancellationToken);
                }
                if ((B100 != null) && __isset.b100)
                {
                    field.Name = "b100";
                    field.Type = TType.Struct;
                    field.ID   = 100;
                    await oprot.WriteFieldBeginAsync(field, cancellationToken);

                    await B100.WriteAsync(oprot, cancellationToken);

                    await oprot.WriteFieldEndAsync(cancellationToken);
                }
                if (__isset.check_true)
                {
                    field.Name = "check_true";
                    field.Type = TType.Bool;
                    field.ID   = 500;
                    await oprot.WriteFieldBeginAsync(field, cancellationToken);

                    await oprot.WriteBoolAsync(Check_true, cancellationToken);

                    await oprot.WriteFieldEndAsync(cancellationToken);
                }
                if ((B1000 != null) && __isset.b1000)
                {
                    field.Name = "b1000";
                    field.Type = TType.Struct;
                    field.ID   = 1000;
                    await oprot.WriteFieldBeginAsync(field, cancellationToken);

                    await B1000.WriteAsync(oprot, cancellationToken);

                    await oprot.WriteFieldEndAsync(cancellationToken);
                }
                if (__isset.check_false)
                {
                    field.Name = "check_false";
                    field.Type = TType.Bool;
                    field.ID   = 1500;
                    await oprot.WriteFieldBeginAsync(field, cancellationToken);

                    await oprot.WriteBoolAsync(Check_false, cancellationToken);

                    await oprot.WriteFieldEndAsync(cancellationToken);
                }
                if ((Vertwo2000 != null) && __isset.vertwo2000)
                {
                    field.Name = "vertwo2000";
                    field.Type = TType.Struct;
                    field.ID   = 2000;
                    await oprot.WriteFieldBeginAsync(field, cancellationToken);

                    await Vertwo2000.WriteAsync(oprot, cancellationToken);

                    await oprot.WriteFieldEndAsync(cancellationToken);
                }
                if ((A_set2500 != null) && __isset.a_set2500)
                {
                    field.Name = "a_set2500";
                    field.Type = TType.Set;
                    field.ID   = 2500;
                    await oprot.WriteFieldBeginAsync(field, cancellationToken);

                    {
                        await oprot.WriteSetBeginAsync(new TSet(TType.String, A_set2500.Count), cancellationToken);

                        foreach (string _iter114 in A_set2500)
                        {
                            await oprot.WriteStringAsync(_iter114, cancellationToken);
                        }
                        await oprot.WriteSetEndAsync(cancellationToken);
                    }
                    await oprot.WriteFieldEndAsync(cancellationToken);
                }
                if ((Vertwo3000 != null) && __isset.vertwo3000)
                {
                    field.Name = "vertwo3000";
                    field.Type = TType.Struct;
                    field.ID   = 3000;
                    await oprot.WriteFieldBeginAsync(field, cancellationToken);

                    await Vertwo3000.WriteAsync(oprot, cancellationToken);

                    await oprot.WriteFieldEndAsync(cancellationToken);
                }
                if ((Big_numbers != null) && __isset.big_numbers)
                {
                    field.Name = "big_numbers";
                    field.Type = TType.List;
                    field.ID   = 4000;
                    await oprot.WriteFieldBeginAsync(field, cancellationToken);

                    {
                        await oprot.WriteListBeginAsync(new TList(TType.I32, Big_numbers.Count), cancellationToken);

                        foreach (int _iter115 in Big_numbers)
                        {
                            await oprot.WriteI32Async(_iter115, cancellationToken);
                        }
                        await oprot.WriteListEndAsync(cancellationToken);
                    }
                    await oprot.WriteFieldEndAsync(cancellationToken);
                }
                await oprot.WriteFieldStopAsync(cancellationToken);

                await oprot.WriteStructEndAsync(cancellationToken);
            }
            finally
            {
                oprot.DecrementRecursionDepth();
            }
        }