public void read(org.apache.thrift7.protocol.TProtocol iprot)
     throws org.apache.thrift7.TException {
   org.apache.thrift7.protocol.TField field;
   iprot.readStructBegin();
   while (true) {
     field = iprot.readFieldBegin();
     if (field.type == org.apache.thrift7.protocol.TType.STOP) {
       break;
     }
     switch (field.id) {
       case 1: // MSG
         if (field.type == org.apache.thrift7.protocol.TType.STRING) {
           this.msg = iprot.readString();
         } else {
           org.apache.thrift7.protocol.TProtocolUtil.skip(iprot, field.type);
         }
         break;
       default:
         org.apache.thrift7.protocol.TProtocolUtil.skip(iprot, field.type);
     }
     iprot.readFieldEnd();
   }
   iprot.readStructEnd();
   validate();
 }
Example #2
0
 public void read(org.apache.thrift7.protocol.TProtocol iprot)
     throws org.apache.thrift7.TException {
   org.apache.thrift7.protocol.TField field;
   iprot.readStructBegin();
   while (true) {
     field = iprot.readFieldBegin();
     if (field.type == org.apache.thrift7.protocol.TType.STOP) {
       break;
     }
     switch (field.id) {
       case 1: // SUPERVISORS
         if (field.type == org.apache.thrift7.protocol.TType.LIST) {
           {
             org.apache.thrift7.protocol.TList _list37 = iprot.readListBegin();
             this.supervisors = new ArrayList<SupervisorSummary>(_list37.size);
             for (int _i38 = 0; _i38 < _list37.size; ++_i38) {
               SupervisorSummary _elem39; // required
               _elem39 = new SupervisorSummary();
               _elem39.read(iprot);
               this.supervisors.add(_elem39);
             }
             iprot.readListEnd();
           }
         } else {
           org.apache.thrift7.protocol.TProtocolUtil.skip(iprot, field.type);
         }
         break;
       case 2: // NIMBUS_UPTIME_SECS
         if (field.type == org.apache.thrift7.protocol.TType.I32) {
           this.nimbus_uptime_secs = iprot.readI32();
           set_nimbus_uptime_secs_isSet(true);
         } else {
           org.apache.thrift7.protocol.TProtocolUtil.skip(iprot, field.type);
         }
         break;
       case 3: // TOPOLOGIES
         if (field.type == org.apache.thrift7.protocol.TType.LIST) {
           {
             org.apache.thrift7.protocol.TList _list40 = iprot.readListBegin();
             this.topologies = new ArrayList<TopologySummary>(_list40.size);
             for (int _i41 = 0; _i41 < _list40.size; ++_i41) {
               TopologySummary _elem42; // required
               _elem42 = new TopologySummary();
               _elem42.read(iprot);
               this.topologies.add(_elem42);
             }
             iprot.readListEnd();
           }
         } else {
           org.apache.thrift7.protocol.TProtocolUtil.skip(iprot, field.type);
         }
         break;
       case 4: // VERSION
         if (field.type == org.apache.thrift7.protocol.TType.STRING) {
           this.version = iprot.readString();
         } else {
           org.apache.thrift7.protocol.TProtocolUtil.skip(iprot, field.type);
         }
         break;
       default:
         org.apache.thrift7.protocol.TProtocolUtil.skip(iprot, field.type);
     }
     iprot.readFieldEnd();
   }
   iprot.readStructEnd();
   validate();
 }