public void write(org.apache.thrift.protocol.TProtocol oprot, TGetOperationStatusResp struct) throws org.apache.thrift.TException {
      struct.validate();

      oprot.writeStructBegin(STRUCT_DESC);
      if (struct.status != null) {
        oprot.writeFieldBegin(STATUS_FIELD_DESC);
        struct.status.write(oprot);
        oprot.writeFieldEnd();
      }
      if (struct.operationState != null) {
        if (struct.isSetOperationState()) {
          oprot.writeFieldBegin(OPERATION_STATE_FIELD_DESC);
          oprot.writeI32(struct.operationState.getValue());
          oprot.writeFieldEnd();
        }
      }
      if (struct.sqlState != null) {
        if (struct.isSetSqlState()) {
          oprot.writeFieldBegin(SQL_STATE_FIELD_DESC);
          oprot.writeString(struct.sqlState);
          oprot.writeFieldEnd();
        }
      }
      if (struct.isSetErrorCode()) {
        oprot.writeFieldBegin(ERROR_CODE_FIELD_DESC);
        oprot.writeI32(struct.errorCode);
        oprot.writeFieldEnd();
      }
      if (struct.errorMessage != null) {
        if (struct.isSetErrorMessage()) {
          oprot.writeFieldBegin(ERROR_MESSAGE_FIELD_DESC);
          oprot.writeString(struct.errorMessage);
          oprot.writeFieldEnd();
        }
      }
      if (struct.taskStatus != null) {
        if (struct.isSetTaskStatus()) {
          oprot.writeFieldBegin(TASK_STATUS_FIELD_DESC);
          oprot.writeString(struct.taskStatus);
          oprot.writeFieldEnd();
        }
      }
      if (struct.isSetOperationStarted()) {
        oprot.writeFieldBegin(OPERATION_STARTED_FIELD_DESC);
        oprot.writeI64(struct.operationStarted);
        oprot.writeFieldEnd();
      }
      if (struct.isSetOperationCompleted()) {
        oprot.writeFieldBegin(OPERATION_COMPLETED_FIELD_DESC);
        oprot.writeI64(struct.operationCompleted);
        oprot.writeFieldEnd();
      }
      if (struct.isSetHasResultSet()) {
        oprot.writeFieldBegin(HAS_RESULT_SET_FIELD_DESC);
        oprot.writeBool(struct.hasResultSet);
        oprot.writeFieldEnd();
      }
      if (struct.progressUpdateResponse != null) {
        if (struct.isSetProgressUpdateResponse()) {
          oprot.writeFieldBegin(PROGRESS_UPDATE_RESPONSE_FIELD_DESC);
          struct.progressUpdateResponse.write(oprot);
          oprot.writeFieldEnd();
        }
      }
      if (struct.isSetNumModifiedRows()) {
        oprot.writeFieldBegin(NUM_MODIFIED_ROWS_FIELD_DESC);
        oprot.writeI64(struct.numModifiedRows);
        oprot.writeFieldEnd();
      }
      oprot.writeFieldStop();
      oprot.writeStructEnd();
    }
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