@Override
    public void write(org.apache.thrift.protocol.TProtocol prot, TGetOperationStatusResp struct) throws org.apache.thrift.TException {
      org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
      struct.status.write(oprot);
      java.util.BitSet optionals = new java.util.BitSet();
      if (struct.isSetOperationState()) {
        optionals.set(0);
      }
      if (struct.isSetSqlState()) {
        optionals.set(1);
      }
      if (struct.isSetErrorCode()) {
        optionals.set(2);
      }
      if (struct.isSetErrorMessage()) {
        optionals.set(3);
      }
      if (struct.isSetTaskStatus()) {
        optionals.set(4);
      }
      if (struct.isSetOperationStarted()) {
        optionals.set(5);
      }
      if (struct.isSetOperationCompleted()) {
        optionals.set(6);
      }
      if (struct.isSetHasResultSet()) {
        optionals.set(7);
      }
      if (struct.isSetProgressUpdateResponse()) {
        optionals.set(8);
      }
      if (struct.isSetNumModifiedRows()) {
        optionals.set(9);
      }
      oprot.writeBitSet(optionals, 10);
      if (struct.isSetOperationState()) {
        oprot.writeI32(struct.operationState.getValue());
      }
      if (struct.isSetSqlState()) {
        oprot.writeString(struct.sqlState);
      }
      if (struct.isSetErrorCode()) {
        oprot.writeI32(struct.errorCode);
      }
      if (struct.isSetErrorMessage()) {
        oprot.writeString(struct.errorMessage);
      }
      if (struct.isSetTaskStatus()) {
        oprot.writeString(struct.taskStatus);
      }
      if (struct.isSetOperationStarted()) {
        oprot.writeI64(struct.operationStarted);
      }
      if (struct.isSetOperationCompleted()) {
        oprot.writeI64(struct.operationCompleted);
      }
      if (struct.isSetHasResultSet()) {
        oprot.writeBool(struct.hasResultSet);
      }
      if (struct.isSetProgressUpdateResponse()) {
        struct.progressUpdateResponse.write(oprot);
      }
      if (struct.isSetNumModifiedRows()) {
        oprot.writeI64(struct.numModifiedRows);
      }
    }
Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise
service-rpc/src/gen/thrift/gen-javabean/org/apache/hive/service/rpc/thrift/TGetOperationStatusResp.java