Exemple #1
0
 @Override
 public void clear() {
   setMyintIsSet(false);
   this.myint = 0;
   this.myString = null;
   setUnderscore_intIsSet(false);
   this.underscore_int = 0;
 }
Exemple #2
0
 public IntString(int myint, String myString, int underscore_int) {
   this();
   this.myint = myint;
   setMyintIsSet(true);
   this.myString = myString;
   this.underscore_int = underscore_int;
   setUnderscore_intIsSet(true);
 }
Exemple #3
0
 public void read(TProtocol iprot) throws TException {
   TField field;
   iprot.readStructBegin();
   while (true) {
     field = iprot.readFieldBegin();
     if (field.type == TType.STOP) {
       break;
     }
     switch (field.id) {
       case 1: // MYINT
         if (field.type == TType.I32) {
           this.myint = iprot.readI32();
           setMyintIsSet(true);
         } else {
           TProtocolUtil.skip(iprot, field.type);
         }
         break;
       case 2: // MY_STRING
         if (field.type == TType.STRING) {
           this.myString = iprot.readString();
         } else {
           TProtocolUtil.skip(iprot, field.type);
         }
         break;
       case 3: // UNDERSCORE_INT
         if (field.type == TType.I32) {
           this.underscore_int = iprot.readI32();
           setUnderscore_intIsSet(true);
         } else {
           TProtocolUtil.skip(iprot, field.type);
         }
         break;
       default:
         TProtocolUtil.skip(iprot, field.type);
     }
     iprot.readFieldEnd();
   }
   iprot.readStructEnd();
   validate();
 }
Exemple #4
0
 public void setUnderscore_int(int underscore_int) {
   this.underscore_int = underscore_int;
   setUnderscore_intIsSet(true);
 }