Exemple #1
0
        public void Write(TProtocol oprot)
        {
            TStruct struc = new TStruct("TopologyActionOptions");

            oprot.WriteStructBegin(struc);
            TField field = new TField();

            if (Kill_options != null && __isset.kill_options)
            {
                field.Name = "kill_options";
                field.Type = TType.Struct;
                field.ID   = 1;
                oprot.WriteFieldBegin(field);
                Kill_options.Write(oprot);
                oprot.WriteFieldEnd();
            }
            if (Rebalance_options != null && __isset.rebalance_options)
            {
                field.Name = "rebalance_options";
                field.Type = TType.Struct;
                field.ID   = 2;
                oprot.WriteFieldBegin(field);
                Rebalance_options.Write(oprot);
                oprot.WriteFieldEnd();
            }
            oprot.WriteFieldStop();
            oprot.WriteStructEnd();
        }
Exemple #2
0
    public override string ToString()
    {
        StringBuilder __sb    = new StringBuilder("TopologyActionOptions(");
        bool          __first = true;

        if (Kill_options != null && __isset.kill_options)
        {
            if (!__first)
            {
                __sb.Append(", ");
            }
            __first = false;
            __sb.Append("Kill_options: ");
            __sb.Append(Kill_options == null ? "<null>" : Kill_options.ToString());
        }
        if (Rebalance_options != null && __isset.rebalance_options)
        {
            if (!__first)
            {
                __sb.Append(", ");
            }
            __first = false;
            __sb.Append("Rebalance_options: ");
            __sb.Append(Rebalance_options == null ? "<null>" : Rebalance_options.ToString());
        }
        __sb.Append(")");
        return(__sb.ToString());
    }
Exemple #3
0
        public override string ToString()
        {
            StringBuilder sb = new StringBuilder("TopologyActionOptions(");

            sb.Append("Kill_options: ");
            sb.Append(Kill_options == null ? "<null>" : Kill_options.ToString());
            sb.Append(",Rebalance_options: ");
            sb.Append(Rebalance_options == null ? "<null>" : Rebalance_options.ToString());
            sb.Append(")");
            return(sb.ToString());
        }